/* =========================================================
   Sovari AI — Stylesheet
   Palette: Ink Navy / Signal Brass / Cool Porcelain
   Type: Fraunces (display) + Inter (body) + IBM Plex Mono (labels)
   ========================================================= */

:root {
  --ink: #12173B;
  --ink-2: #1B2153;
  --ink-3: #262C63;
  --brass: #C08A2E;
  --brass-light: #E3B564;
  --brass-dim: #8A661F;
  --porcelain: #F3F4F8;
  --porcelain-2: #E9EBF3;
  --white: #FFFFFF;
  --slate: #4B4F6B;
  --slate-light: #83879F;
  --line: #E1E3EE;
  --line-dark: #333B72;
  --green: #3FA772;

  --font-display: "Fraunces", "Cambria", Georgia, serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", "Courier New", monospace;

  --max: 1180px;
  --radius: 14px;
  --radius-sm: 8px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--white);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
section { position: relative; }

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

.eyebrow {
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brass-dim);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
}
.eyebrow::before {
  content: "";
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--brass);
  display: inline-block;
}
.on-dark .eyebrow { color: var(--brass-light); }

h1, h2, h3 { font-family: var(--font-display); font-weight: 600; margin: 0; color: var(--ink); }
.on-dark h1, .on-dark h2, .on-dark h3, .on-dark p { color: var(--white); }

h2.section-title {
  font-size: clamp(28px, 3.4vw, 42px);
  line-height: 1.15;
  letter-spacing: -0.01em;
  max-width: 15ch;
}

.section-lede {
  font-size: 16.5px;
  color: var(--slate);
  max-width: 46ch;
  margin-top: 18px;
}
.on-dark .section-lede { color: #B7BAD9; }

.section-head {
  margin-bottom: 56px;
}
.section-head.center { text-align: center; margin-left: auto; margin-right: auto; }
.section-head.center .section-lede { margin-left: auto; margin-right: auto; }

.btn {
  font-family: var(--font-body);
  font-size: 14.5px;
  font-weight: 600;
  padding: 13px 26px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, border-color 0.18s ease;
  white-space: nowrap;
}
.btn:focus-visible { outline: 2px solid var(--brass); outline-offset: 3px; }
.btn-primary {
  background: var(--brass);
  color: var(--ink);
}
.btn-primary:hover { background: var(--brass-light); transform: translateY(-1px); }
.btn-ghost {
  background: transparent;
  border-color: rgba(255,255,255,0.28);
  color: var(--white);
}
.btn-ghost:hover { border-color: var(--brass-light); color: var(--brass-light); }
.btn-outline-ink {
  background: transparent;
  border-color: var(--line);
  color: var(--ink);
}
.btn-outline-ink:hover { border-color: var(--brass); color: var(--brass-dim); }

/* ---------------- Nav ---------------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 18px 0;
  background: rgba(18, 23, 59, 0.0);
  transition: background 0.25s ease, box-shadow 0.25s ease, padding 0.25s ease;
}
.nav.scrolled {
  background: rgba(18, 23, 59, 0.92);
  backdrop-filter: blur(10px);
  padding: 12px 0;
  box-shadow: 0 8px 30px rgba(0,0,0,0.18);
}
.nav .wrap { display: flex; align-items: center; justify-content: space-between; }

.brand {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 19px;
  color: var(--white);
}
.brand .mark { width: 30px; height: 30px; flex-shrink: 0; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 34px;
}
.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: #C7CAE6;
  transition: color 0.15s ease;
}
.nav-links a:hover { color: var(--white); }

.nav-cta { display: flex; align-items: center; gap: 16px; }
.nav-toggle {
  display: none;
  background: none; border: none; color: var(--white);
  width: 40px; height: 40px; cursor: pointer;
}

@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .nav.mobile-open .nav-links {
    display: flex;
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    background: var(--ink);
    padding: 12px 32px 24px;
    border-top: 1px solid rgba(255,255,255,0.08);
  }
  .nav.mobile-open .nav-links a { padding: 10px 0; width: 100%; }
}

/* ---------------- Hero ---------------- */
.hero {
  background: radial-gradient(120% 140% at 18% 0%, #232A5E 0%, var(--ink) 55%, #0D1030 100%);
  padding: 170px 0 110px;
  overflow: hidden;
}
.hero .wrap {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 60px;
  align-items: center;
}
.hero-eyebrow-row { display: flex; align-items: center; gap: 14px; margin-bottom: 22px; flex-wrap: wrap; }
.hero h1 {
  font-size: clamp(36px, 4.6vw, 58px);
  line-height: 1.08;
  letter-spacing: -0.015em;
  color: var(--white);
}
.hero h1 em {
  font-style: normal;
  color: var(--brass-light);
}
.hero-sub {
  margin-top: 24px;
  font-size: 17.5px;
  color: #B7BAD9;
  max-width: 46ch;
}
.hero-actions {
  margin-top: 38px;
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.hero-stats {
  margin-top: 52px;
  display: flex;
  gap: 42px;
  flex-wrap: wrap;
}
.hero-stat .num {
  font-family: var(--font-display);
  font-size: 30px;
  color: var(--white);
}
.hero-stat .lbl {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: #8A8FC0;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 4px;
}

/* live chat demo card */
.demo-card {
  background: rgba(255,255,255,0.045);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 20px;
  padding: 22px;
  backdrop-filter: blur(6px);
  box-shadow: 0 30px 70px rgba(0,0,0,0.35);
}
.demo-head {
  display: flex; align-items: center; justify-content: space-between;
  padding-bottom: 16px; margin-bottom: 18px;
  border-bottom: 1px solid rgba(255,255,255,0.10);
}
.demo-head .who { display: flex; align-items: center; gap: 10px; }
.demo-avatar {
  width: 34px; height: 34px; border-radius: 9px;
  background: linear-gradient(135deg, var(--brass), #7A5620);
  display: flex; align-items: center; justify-content: center;
  color: var(--ink); font-family: var(--font-display); font-weight: 700; font-size: 14px;
}
.demo-title { font-size: 13.5px; font-weight: 600; color: var(--white); }
.demo-sub { font-family: var(--font-mono); font-size: 10.5px; color: #7D82B5; margin-top: 2px; }
.demo-live {
  font-family: var(--font-mono); font-size: 10.5px; color: #85E0B4;
  display: flex; align-items: center; gap: 6px; text-transform: uppercase; letter-spacing: 0.08em;
}
.demo-live::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%; background: #47D993;
  box-shadow: 0 0 0 0 rgba(71,217,147, 0.6);
  animation: pulse 1.8s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(71,217,147, 0.55); }
  70% { box-shadow: 0 0 0 8px rgba(71,217,147, 0); }
  100% { box-shadow: 0 0 0 0 rgba(71,217,147, 0); }
}

.demo-log { min-height: 260px; display: flex; flex-direction: column; gap: 12px; justify-content: flex-end; }
.bubble {
  max-width: 82%;
  padding: 11px 15px;
  border-radius: 14px;
  font-size: 13.5px;
  line-height: 1.45;
  opacity: 0;
  transform: translateY(8px);
  animation: bubbleIn 0.35s ease forwards;
}
@keyframes bubbleIn { to { opacity: 1; transform: translateY(0); } }
.bubble.lead {
  align-self: flex-start;
  background: rgba(255,255,255,0.08);
  color: #E7E8F5;
  border-bottom-left-radius: 4px;
}
.bubble.ai {
  align-self: flex-end;
  background: var(--brass-light);
  color: #241A05;
  border-bottom-right-radius: 4px;
  font-weight: 500;
}
.bubble .tag {
  display: block;
  font-family: var(--font-mono);
  font-size: 9.5px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  opacity: 0.6;
  margin-bottom: 4px;
}
.typing-dots { align-self: flex-end; display: flex; gap: 4px; padding: 10px 14px; }
.typing-dots span {
  width: 6px; height: 6px; border-radius: 50%; background: var(--brass-light);
  animation: bounce 1s infinite ease-in-out;
}
.typing-dots span:nth-child(2) { animation-delay: 0.15s; }
.typing-dots span:nth-child(3) { animation-delay: 0.3s; }
@keyframes bounce { 0%, 60%, 100% { transform: translateY(0); opacity: 0.5; } 30% { transform: translateY(-5px); opacity: 1; } }

.demo-foot {
  margin-top: 18px; padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,0.10);
  display: flex; gap: 18px; flex-wrap: wrap;
}
.demo-metric { font-family: var(--font-mono); font-size: 10.5px; color: #8A8FC0; display: flex; align-items: center; gap: 6px; }
.demo-metric svg { width: 13px; height: 13px; color: #47D993; }

/* ---------------- Problem ---------------- */
.problem { padding: 120px 0; background: var(--white); }
.problem-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.problem-card {
  background: var(--porcelain);
  border-radius: var(--radius);
  padding: 32px 28px;
  border: 1px solid var(--line);
}
.problem-card .stat {
  font-family: var(--font-display);
  font-size: 46px;
  color: var(--ink);
  line-height: 1;
}
.problem-card .stat span { color: var(--brass); }
.problem-card h3 { font-size: 17px; margin-top: 18px; }
.problem-card p { font-size: 14px; color: var(--slate); margin-top: 10px; }

/* ---------------- Product (ID badge cards) ---------------- */
.product { padding: 120px 0; background: var(--ink); }
.badge-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
.badge {
  background: linear-gradient(165deg, #1B2153, #151A45);
  border: 1px solid rgba(255,255,255,0.09);
  border-radius: 16px;
  padding: 24px;
  position: relative;
  overflow: hidden;
}
.badge::after {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(120px 90px at 100% 0%, rgba(192,138,46,0.16), transparent 70%);
  pointer-events: none;
}
.badge-top { display: flex; align-items: center; justify-content: space-between; }
.badge-icon {
  width: 44px; height: 44px; border-radius: 10px;
  background: rgba(227,181,100,0.12);
  display: flex; align-items: center; justify-content: center;
  color: var(--brass-light);
}
.badge-icon svg { width: 22px; height: 22px; }
.badge-status {
  font-family: var(--font-mono);
  font-size: 9.5px;
  color: #85E0B4;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border: 1px solid rgba(133,224,180,0.35);
  padding: 3px 8px;
  border-radius: 999px;
}
.badge-role {
  font-family: var(--font-mono);
  font-size: 10px;
  color: #8A8FC0;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 22px;
}
.badge h3 { color: var(--white); font-size: 19px; margin-top: 6px; }
.badge-divider {
  margin: 16px 0;
  border-top: 1px dashed rgba(255,255,255,0.18);
}
.badge p { color: #ACAFD3; font-size: 13px; }
.badge ul { margin-top: 14px; display: flex; flex-direction: column; gap: 7px; }
.badge li { font-size: 12.5px; color: #C4C7E5; display: flex; gap: 8px; align-items: flex-start; }
.badge li::before { content: "—"; color: var(--brass-light); flex-shrink: 0; }

/* ---------------- How it works ---------------- */
.how { padding: 120px 0; background: var(--porcelain); }
.how-track {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  margin-top: 20px;
  position: relative;
}
.how-step {
  padding: 0 18px;
  position: relative;
}
.how-step:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 21px; right: -4px;
  width: calc(100% - 30px);
  border-top: 1.5px dashed var(--line-dark, #C9CCE3);
}
.how-num {
  width: 42px; height: 42px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--brass-light);
  font-family: var(--font-mono);
  font-size: 14px; font-weight: 600;
  display: flex; align-items: center; justify-content: center;
  position: relative; z-index: 2;
}
.how-step h3 { font-size: 15.5px; margin-top: 20px; }
.how-step p { font-size: 13px; color: var(--slate); margin-top: 8px; }

/* ---------------- Founder ---------------- */
.founder { padding: 130px 0; background: var(--white); }
.founder .wrap {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 64px;
  align-items: center;
}
.founder-card {
  background: var(--ink);
  border-radius: 20px;
  padding: 36px;
  color: var(--white);
  position: relative;
  overflow: hidden;
}
.founder-card::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(160px 160px at 90% 100%, rgba(192,138,46,0.25), transparent 70%);
}
.founder-avatar {
  width: 68px; height: 68px; border-radius: 14px;
  background: linear-gradient(135deg, var(--brass-light), var(--brass-dim));
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-size: 26px; font-weight: 700; color: var(--ink);
  position: relative;
}
.founder-name { font-family: var(--font-display); font-size: 22px; margin-top: 20px; position: relative; }
.founder-role { font-family: var(--font-mono); font-size: 11.5px; color: var(--brass-light); text-transform: uppercase; letter-spacing: 0.08em; margin-top: 6px; position: relative; }
.founder-bio { font-size: 13.5px; color: #B7BAD9; margin-top: 18px; line-height: 1.6; position: relative; }
.founder-links { margin-top: 24px; display: flex; flex-direction: column; gap: 10px; position: relative; }
.founder-links a {
  display: flex; align-items: center; gap: 10px;
  font-size: 13.5px; color: var(--white);
  padding: 10px 14px; border-radius: 10px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.09);
  transition: background 0.15s ease, border-color 0.15s ease;
}
.founder-links a:hover { background: rgba(227,181,100,0.14); border-color: rgba(227,181,100,0.4); }
.founder-links svg { width: 16px; height: 16px; color: var(--brass-light); flex-shrink: 0; }

.founder-copy .kicker-line {
  font-family: var(--font-mono); font-size: 12px; color: var(--brass-dim);
  text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 14px;
}
.founder-copy h2 { font-size: clamp(26px, 3vw, 34px); line-height: 1.2; }
.founder-copy p { font-size: 15.5px; color: var(--slate); margin-top: 18px; max-width: 54ch; }
.founder-facts {
  margin-top: 28px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}
.founder-fact {
  border-left: 2px solid var(--porcelain-2);
  padding-left: 16px;
}
.founder-fact .k { font-family: var(--font-mono); font-size: 10.5px; color: var(--slate-light); text-transform: uppercase; letter-spacing: 0.07em; }
.founder-fact .v { font-size: 14px; color: var(--ink); margin-top: 4px; font-weight: 500; }

/* ---------------- Industries ---------------- */
.industries { padding: 110px 0; background: var(--ink); overflow: hidden; }
.industries .section-head { max-width: 640px; }
.chip-row {
  display: flex; flex-wrap: wrap; gap: 12px; margin-top: 44px;
}
.chip {
  font-family: var(--font-mono); font-size: 13px; letter-spacing: 0.02em;
  padding: 11px 20px; border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.14);
  color: #C7CAE6;
}
.chip.active {
  background: var(--brass);
  color: var(--ink);
  border-color: var(--brass);
  font-weight: 600;
}

/* ---------------- Contact ---------------- */
.contact { padding: 130px 0; background: var(--porcelain); }
.contact .wrap {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 60px;
}
.contact-info h2 { font-size: clamp(28px, 3.2vw, 38px); line-height: 1.15; }
.contact-info p.section-lede { margin-top: 18px; }
.contact-channels { margin-top: 36px; display: flex; flex-direction: column; gap: 14px; }
.channel {
  display: flex; align-items: center; gap: 14px;
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius-sm); padding: 16px 18px;
}
.channel-icon {
  width: 38px; height: 38px; border-radius: 10px;
  background: var(--porcelain-2);
  display: flex; align-items: center; justify-content: center;
  color: var(--brass-dim); flex-shrink: 0;
}
.channel-icon svg { width: 18px; height: 18px; }
.channel .k { font-family: var(--font-mono); font-size: 10.5px; color: var(--slate-light); text-transform: uppercase; letter-spacing: 0.06em; }
.channel .v { font-size: 14.5px; font-weight: 600; color: var(--ink); margin-top: 2px; }
.channel a.v-link { font-size: 14.5px; font-weight: 600; color: var(--ink); }
.channel a.v-link:hover { color: var(--brass-dim); }

.contact-form {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 36px;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { margin-bottom: 20px; }
.field label {
  display: block; font-family: var(--font-mono); font-size: 11px;
  text-transform: uppercase; letter-spacing: 0.06em; color: var(--slate-light);
  margin-bottom: 8px;
}
.field input, .field select, .field textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 14.5px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--porcelain);
  color: var(--ink);
  transition: border-color 0.15s ease, background 0.15s ease;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--brass);
  background: var(--white);
}
.field textarea { resize: vertical; min-height: 110px; }
.form-note { font-size: 12px; color: var(--slate-light); margin-top: 14px; }
.form-status {
  margin-top: 16px; font-size: 13.5px; padding: 12px 14px; border-radius: 9px; display: none;
}
.form-status.show { display: block; }
.form-status.ok { background: #E7F6EE; color: #206A44; border: 1px solid #BEE6CE; }
.form-status.err { background: #FBEAEA; color: #9A2E2E; border: 1px solid #F1C7C7; }

/* ---------------- Footer ---------------- */
footer { background: var(--ink); border-top: 1px solid rgba(255,255,255,0.08); padding: 52px 0 32px; }
.foot-top { display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; gap: 30px; padding-bottom: 36px; border-bottom: 1px solid rgba(255,255,255,0.08); }
.foot-brand .brand { margin-bottom: 12px; }
.foot-brand p { font-size: 13.5px; color: #8A8FC0; max-width: 34ch; }
.foot-links { display: flex; gap: 60px; flex-wrap: wrap; }
.foot-col h4 { font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.07em; color: #6D72A6; margin-bottom: 14px; font-weight: 500; }
.foot-col a, .foot-col span { display: block; font-size: 13.5px; color: #B7BAD9; margin-bottom: 10px; }
.foot-col a:hover { color: var(--brass-light); }
.foot-bottom { padding-top: 24px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }
.foot-bottom span { font-size: 12px; color: #6D72A6; }

/* ---------------- Reveal-on-scroll ---------------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.in { opacity: 1; transform: translateY(0); }

/* ---------------- Responsive ---------------- */
@media (max-width: 1020px) {
  .badge-grid { grid-template-columns: repeat(2, 1fr); }
  .how-track { grid-template-columns: repeat(5, 1fr); }
  .founder .wrap { grid-template-columns: 1fr; }
  .contact .wrap { grid-template-columns: 1fr; }
}

@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero { padding: 140px 0 70px; }
  .problem-grid { grid-template-columns: 1fr; }
  .how-track { grid-template-columns: 1fr; gap: 34px; }
  .how-step::after { display: none; }
  .form-row { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
  .wrap { padding: 0 20px; }
  .badge-grid { grid-template-columns: 1fr; }
  .hero-stats { gap: 28px; }
  .founder-facts { grid-template-columns: 1fr; }
}
