/* ===========================================================
   Vivroz.ai - stylesheet
   Brand tokens matched to the Vivroz pitch deck / one-pager
   =========================================================== */

:root {
  --ink: #0B0E14;
  --ink-soft: #2A2E3A;
  --accent: #5B4EFC;
  --accent-dark: #4638D6;
  --muted: #5B6070;
  --rule: #D8D6F5;
  --tint: #F3F2FC;
  --tint-2: #F6F6F4;
  --bg: #FFFFFF;
  --white: #FFFFFF;
  --danger: #C2432B;

  --font-display: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;

  --shadow-sm: 0 1px 2px rgba(11, 14, 20, 0.06);
  --shadow-md: 0 8px 24px rgba(11, 14, 20, 0.08);
  --shadow-lg: 0 20px 50px rgba(91, 78, 252, 0.16);

  --max-width: 1160px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 { font-family: var(--font-display); margin: 0; color: var(--ink); font-weight: 800; letter-spacing: -0.02em; }
p { margin: 0; }
button { font-family: inherit; cursor: pointer; }
input, select, textarea { font-family: inherit; font-size: 1rem; }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--accent);
  color: var(--white);
  padding: 10px 16px;
  z-index: 1000;
  border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding-inline: 24px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 999px;
  font-weight: 600;
  border: 1px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease;
  white-space: nowrap;
}
.btn-lg { padding: 14px 28px; font-size: 1.02rem; }
.btn-sm { padding: 9px 18px; font-size: 0.9rem; }
.btn-primary {
  background: var(--accent);
  color: var(--white);
  box-shadow: var(--shadow-md);
}
.btn-primary:hover { background: var(--accent-dark); transform: translateY(-1px); }
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: rgba(11,14,20,0.14);
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.9);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid rgba(11,14,20,0.06);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 16px;
}
.logo { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.logo-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px; height: 32px;
  border-radius: 9px;
  background: var(--accent);
  color: var(--white);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 16px;
}
.logo-text {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: 0.02em;
  color: var(--ink);
}
.logo-dot { color: var(--accent); }

.site-nav { display: flex; align-items: center; gap: 28px; margin-left: auto; margin-right: 28px; }
.site-nav a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--ink-soft);
  transition: color 0.15s ease;
}
.site-nav a:hover { color: var(--accent); }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px; height: 40px;
  background: transparent;
  border: none;
  border-radius: 8px;
}
.nav-toggle span {
  display: block;
  height: 2px;
  width: 22px;
  margin-inline: auto;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

/* ---------- Hero ---------- */
.hero {
  padding: 72px 0 88px;
  background:
    radial-gradient(700px 320px at 85% -10%, rgba(91,78,252,0.10), transparent 60%),
    var(--bg);
}
.hero-inner {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}
.eyebrow {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 14px;
}
.eyebrow--accent { color: var(--accent); }

.hero h1 {
  font-size: clamp(2.1rem, 4vw, 3.05rem);
  line-height: 1.1;
  margin-bottom: 20px;
}
.hero-sub {
  font-size: 1.08rem;
  color: var(--ink-soft);
  max-width: 54ch;
  margin-bottom: 30px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 18px; }
.hero-note { font-size: 0.88rem; color: var(--muted); max-width: 46ch; }

/* Hero mock card */
.hero-visual { display: flex; justify-content: center; }
.mock-card {
  position: relative;
  width: 100%;
  max-width: 420px;
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 22px;
}
.mock-tag {
  position: absolute;
  top: -12px;
  left: 22px;
  background: var(--ink);
  color: var(--white);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 5px 10px;
  border-radius: 999px;
}
.mock-row { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 14px; }
.mock-row--out { flex-direction: row-reverse; text-align: right; }
.mock-avatar {
  flex-shrink: 0;
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--tint);
  color: var(--accent);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.72rem; font-weight: 700;
}
.mock-avatar--you { background: var(--accent); color: var(--white); }
.mock-bubble {
  background: var(--tint-2);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  font-size: 0.86rem;
  color: var(--ink-soft);
}
.mock-bubble--reply { background: var(--tint); }
.mock-name { font-size: 0.72rem; font-weight: 700; color: var(--muted); margin-bottom: 4px; }
.mock-row--out .mock-name { text-align: right; }
.mock-divider {
  text-align: center;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin: 16px 0;
  position: relative;
}
.mock-divider::before, .mock-divider::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 30%;
  border-top: 1px dashed var(--rule);
}
.mock-divider::before { left: 0; }
.mock-divider::after { right: 0; }

/* ---------- Sections (generic) ---------- */
.section { padding: 84px 0; }
.section--tint { background: var(--tint-2); }
.section-head { max-width: 680px; margin: 0 auto 44px; text-align: center; }
.section-head h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin-bottom: 14px; }
.section-sub { color: var(--muted); font-size: 1.02rem; }
.section-quote {
  text-align: center;
  max-width: 640px;
  margin: 44px auto 0;
  font-size: 1.15rem;
  font-style: italic;
  color: var(--ink-soft);
}

.grid { display: grid; gap: 22px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* ---------- Problem ---------- */
.problem-card {
  background: var(--tint-2);
  border-radius: var(--radius-md);
  padding: 24px;
  font-size: 0.98rem;
  color: var(--ink-soft);
  border: 1px solid transparent;
}
.problem-card--highlight {
  background: var(--tint);
  border-color: var(--rule);
  color: var(--ink);
  font-weight: 600;
}

/* ---------- Steps ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin: 0 0 12px;
}
.step {
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: var(--radius-md);
  padding: 26px 22px;
  position: relative;
}
.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px; height: 30px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--white);
  font-weight: 700;
  font-size: 0.85rem;
  margin-bottom: 14px;
}
.step h3 { font-size: 1.05rem; margin-bottom: 8px; }
.step p { color: var(--muted); font-size: 0.92rem; }

/* ---------- Verticals ---------- */
.vertical-card {
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: var(--radius-md);
  padding: 26px 22px;
  text-align: left;
}
.vertical-icon { font-size: 1.6rem; margin-bottom: 12px; }
.vertical-card h3 { font-size: 1.02rem; margin-bottom: 8px; }
.vertical-card p { color: var(--muted); font-size: 0.92rem; }

/* ---------- Compare table ---------- */
.compare-table {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--rule);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--white);
}
.compare-row {
  display: grid;
  grid-template-columns: 1.1fr 1fr 1.6fr;
  gap: 18px;
  padding: 18px 22px;
  border-bottom: 1px solid var(--rule);
  align-items: center;
}
.compare-row:last-child { border-bottom: none; }
.compare-row--head {
  background: var(--accent);
  color: var(--white);
  font-weight: 700;
  font-size: 0.86rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.compare-row--vivroz { background: var(--tint); }
.compare-row div { font-size: 0.92rem; color: var(--ink-soft); }
.compare-row--head div { color: var(--white); }
.whitespace-note {
  margin-top: 22px;
  font-size: 0.95rem;
  color: var(--ink-soft);
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: var(--radius-md);
  padding: 16px 20px;
}

/* ---------- Status ---------- */
.status-grid { margin-top: 6px; }
.status-card {
  background: var(--tint-2);
  border-radius: var(--radius-md);
  padding: 24px;
}
.status-card h3 { font-size: 1rem; margin-bottom: 10px; color: var(--accent); }
.status-card p { color: var(--ink-soft); font-size: 0.94rem; }

/* ---------- About ---------- */
.about-inner {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 40px;
  align-items: flex-start;
}
.about-photo {
  width: 140px; height: 140px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem;
  font-weight: 800;
  font-family: var(--font-display);
  box-shadow: var(--shadow-md);
}
.about-copy h2 { margin-bottom: 16px; }
.about-copy p { color: var(--ink-soft); margin-bottom: 14px; font-size: 1rem; }
.about-copy p:last-child { margin-bottom: 0; }

/* ---------- Early access form ---------- */
.early-access-inner { max-width: 760px; }
.access-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px 20px;
  background: var(--tint-2);
  border-radius: var(--radius-lg);
  padding: 32px;
}
.form-row { display: flex; flex-direction: column; gap: 6px; }
.form-row--full { grid-column: 1 / -1; }
.form-row label { font-size: 0.86rem; font-weight: 600; color: var(--ink-soft); }
.form-row input, .form-row select, .form-row textarea {
  border: 1px solid var(--rule);
  border-radius: var(--radius-sm);
  padding: 11px 14px;
  background: var(--white);
  color: var(--ink);
  resize: vertical;
}
.form-row input:focus, .form-row select:focus, .form-row textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(91,78,252,0.15);
}
.form-actions { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin-top: 6px; }
.form-note { font-size: 0.85rem; color: var(--muted); margin: 0; }
.form-note.is-success { color: #1B8A5A; font-weight: 600; }
.form-note.is-error { color: var(--danger); font-weight: 600; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink);
  color: rgba(255,255,255,0.72);
  padding-top: 48px;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 24px;
  padding-bottom: 28px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
.footer-brand .logo-text { color: var(--white); }
.footer-brand p { margin-top: 8px; font-size: 0.9rem; max-width: 34ch; }
.footer-contact { display: flex; flex-direction: column; gap: 6px; align-items: flex-end; }
.footer-contact a { font-size: 0.92rem; }
.footer-contact a:hover { color: var(--accent); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  padding: 20px 24px 28px;
  font-size: 0.8rem;
}
.footer-disclaimer { opacity: 0.7; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { order: -1; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: 1fr; }
  .compare-row { grid-template-columns: 1fr; gap: 4px; }
  .compare-row--head { display: none; }
  .compare-row div::before {
    content: attr(data-label);
    display: block;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--accent);
    margin-bottom: 2px;
  }
  .compare-row > div { margin-bottom: 8px; }
  .about-inner { grid-template-columns: 1fr; text-align: left; }
  .about-photo { margin-bottom: 8px; }
}

@media (max-width: 760px) {
  .site-nav {
    position: fixed;
    top: 72px;
    left: 0;
    width: 100%;
    z-index: 200;
    background: var(--white);
    flex-direction: column;
    align-items: flex-start;
    padding: 20px 24px 28px;
    gap: 18px;
    box-shadow: var(--shadow-md);
    border-bottom: 1px solid rgba(11,14,20,0.08);
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.18s ease, transform 0.18s ease;
  }
  .site-nav.is-open { opacity: 1; transform: translateY(0); pointer-events: auto; }
  .header-cta { display: none; }
  .nav-toggle { display: flex; }
  .nav-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle.is-open span:nth-child(2) { opacity: 0; }
  .nav-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .steps { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: 1fr; }
  .access-form { grid-template-columns: 1fr; padding: 24px; }
  .footer-contact { align-items: flex-start; }
  .footer-inner { flex-direction: column; }
}
