/* ===================================
   RESET
   =================================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* ===================================
   TOKENS — dark editorial theme
   =================================== */
:root {
  /* Palette: deep navy-black bg, warm off-white text, terracotta accent */
  --bg:         #070b12;
  --bg2:        #0d1420;
  --surface:    #111c2e;
  --surface2:   #192538;
  --border:     #1e2d42;
  --border-hi:  #2a3d58;

  --text:       #e8e6e0;
  --text-2:     #8a9ab5;
  --text-3:     #4a5a72;

  /* Terracotta/amber accent — warm, human, not startup blue */
  --accent:     #e8845a;
  --accent-dim: #c96e46;
  --accent-sub: rgba(232,132,90,0.1);

  --green:      #5ab88a;
  --green-bg:   rgba(90,184,138,0.08);
  --green-border: rgba(90,184,138,0.2);

  /* Typography */
  --serif:  'DM Serif Display', Georgia, serif;
  --sans:   'DM Sans', system-ui, sans-serif;

  /* Spacing */
  --s1:4px; --s2:8px; --s3:12px; --s4:16px;
  --s5:20px; --s6:24px; --s8:32px; --s10:40px;
  --s12:48px; --s16:64px; --s20:80px; --s24:96px;

  --r:10px; --rl:16px; --rxl:24px;

  --sh:   0 1px 2px rgba(0,0,0,0.4);
  --sh-m: 0 4px 16px rgba(0,0,0,0.5), 0 1px 3px rgba(0,0,0,0.3);
  --sh-l: 0 16px 48px rgba(0,0,0,0.6), 0 4px 8px rgba(0,0,0,0.3);

  --max: 1120px;
}

/* ===================================
   BASE
   =================================== */
html {
  scroll-behavior: smooth;
  color-scheme: dark;
}
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ===================================
   NAV
   =================================== */
nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: 58px;
  padding: 0 var(--s6);
  display: flex;
  align-items: center;
  background: rgba(7,11,18,0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: var(--max);
  width: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: var(--s8);
}
.logo {
  font-family: var(--serif);
  font-size: 1.25rem;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -0.01em;
  flex-shrink: 0;
}
.logo span { color: var(--accent); }
.nav-links {
  display: flex;
  gap: var(--s6);
  margin-right: auto;
}
.nav-links a {
  font-size: 0.875rem;
  font-weight: 400;
  color: var(--text-2);
  text-decoration: none;
  transition: color 0.15s;
  letter-spacing: 0.01em;
}
.nav-links a:hover { color: var(--text); }
.nav-btn {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--bg);
  background: var(--text);
  text-decoration: none;
  padding: 7px 18px;
  border-radius: 100px;
  white-space: nowrap;
  transition: opacity 0.15s;
}
.nav-btn:hover { opacity: 0.85; }
.nav-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ===================================
   HERO
   =================================== */
.hero {
  position: relative;
  min-height: 100svh;
  padding: calc(58px + var(--s20)) var(--s6) var(--s20);
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: var(--s16);
  max-width: var(--max);
  margin: 0 auto;
  overflow: hidden;
}

/* subtle noise texture over hero */
.hero-noise {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 200px 200px;
}

.hero-inner { position: relative; z-index: 1; }

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: var(--s2);
  background: var(--green-bg);
  color: var(--green);
  border: 1px solid var(--green-border);
  padding: 5px 12px;
  border-radius: 100px;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  margin-bottom: var(--s6);
}
.tag-dot {
  width: 6px; height: 6px;
  background: var(--green);
  border-radius: 50%;
  animation: pulse 2.5s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.4; transform: scale(0.8); }
}

h1 {
  font-family: var(--serif);
  font-size: clamp(2.8rem, 5vw, 4.5rem);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.01em;
  color: var(--text);
  margin-bottom: var(--s5);
  text-wrap: balance;
}
h1 em {
  font-style: italic;
  color: var(--accent);
}

.hero-desc {
  font-size: 1.1rem;
  font-weight: 300;
  color: var(--text-2);
  max-width: 480px;
  line-height: 1.8;
  margin-bottom: var(--s8);
  letter-spacing: 0.01em;
}

.hero-cta {
  display: flex;
  align-items: center;
  gap: var(--s4);
  margin-bottom: var(--s12);
  flex-wrap: wrap;
}

.hero-proof {
  display: flex;
  align-items: center;
  gap: var(--s6);
  padding-top: var(--s8);
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
}
.proof-item { display: flex; flex-direction: column; gap: 2px; }
.proof-num {
  font-family: var(--serif);
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--text);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.proof-label { font-size: 0.78rem; color: var(--text-3); letter-spacing: 0.02em; }
.proof-div { width: 1px; height: 36px; background: var(--border); }

/* Chat card */
.hero-card-wrap { position: relative; z-index: 1; }
.hero-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--rxl);
  box-shadow: var(--sh-l);
  overflow: hidden;
}
.hc-top {
  display: flex;
  align-items: center;
  gap: var(--s3);
  padding: var(--s4) var(--s5);
  background: var(--bg2);
  border-bottom: 1px solid var(--border);
}
.hc-dots { display: flex; gap: 6px; }
.hc-dots span { width: 10px; height: 10px; border-radius: 50%; }
.hc-dots span:nth-child(1) { background: #f87171; }
.hc-dots span:nth-child(2) { background: #fbbf24; }
.hc-dots span:nth-child(3) { background: #4ade80; }
.hc-label { font-size: 0.8rem; font-weight: 500; color: var(--text-3); margin: 0 auto; }
.hc-body {
  padding: var(--s5);
  display: flex;
  flex-direction: column;
  gap: var(--s3);
}
.hc-msg { display: flex; }
.hc-right { justify-content: flex-end; }
.hc-msg p {
  max-width: 82%;
  padding: 10px 14px;
  border-radius: var(--rl);
  font-size: 0.875rem;
  line-height: 1.55;
}
.hc-left p {
  background: var(--bg2);
  color: var(--text-2);
  border-bottom-left-radius: 4px;
}
.hc-right p {
  background: var(--accent);
  color: #fff;
  border-bottom-right-radius: 4px;
}
.hc-foot {
  display: flex;
  align-items: center;
  gap: var(--s3);
  padding: var(--s3) var(--s5) var(--s4);
  border-top: 1px solid var(--border);
}
.hc-typing {
  display: flex;
  gap: 4px;
  align-items: center;
}
.hc-typing span {
  width: 6px; height: 6px;
  background: var(--text-3);
  border-radius: 50%;
  animation: bounce 1.4s ease-in-out infinite;
}
.hc-typing span:nth-child(2) { animation-delay: 0.2s; }
.hc-typing span:nth-child(3) { animation-delay: 0.4s; }
@keyframes bounce {
  0%, 80%, 100% { transform: translateY(0); opacity: 0.4; }
  40%           { transform: translateY(-5px); opacity: 1; }
}
.hc-typing-label { font-size: 0.78rem; color: var(--text-3); }

/* ===================================
   TICKER
   =================================== */
.ticker {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 13px 0;
  overflow: hidden;
  background: var(--bg2);
}
.ticker-track {
  display: inline-flex;
  gap: var(--s5);
  white-space: nowrap;
  animation: ticker 30s linear infinite;
  font-size: 0.82rem;
  font-weight: 400;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-3);
}
.ticker-track .sep { color: var(--border-hi); }
@keyframes ticker {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ===================================
   SHARED
   =================================== */
.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: var(--s24) var(--s6);
}
.section-head { margin-bottom: var(--s12); }
.eyebrow {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: var(--s3);
}
h2 {
  font-family: var(--serif);
  font-size: clamp(1.9rem, 3.2vw, 3rem);
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1.1;
  color: var(--text);
  text-wrap: balance;
}

/* ===================================
   HOW IT WORKS
   =================================== */
.how { background: var(--bg); }
.steps {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0;
  border: 1px solid var(--border);
  border-radius: var(--rl);
  overflow: hidden;
}
.step {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 0;
  border-bottom: 1px solid var(--border);
  transition: background 0.2s;
}
.step:last-child { border-bottom: none; }
.step:hover { background: var(--bg2); }
.step-n {
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--serif);
  font-size: 1.5rem;
  color: var(--text-3);
  font-style: italic;
  border-right: 1px solid var(--border);
  padding: var(--s8) var(--s6);
  transition: color 0.2s;
}
.step:hover .step-n { color: var(--accent); }
.step-body {
  padding: var(--s8) var(--s8);
}
.step-context {
  font-size: 0.875rem;
  font-style: italic;
  color: var(--text-3);
  border-left: 2px solid var(--border-hi);
  padding-left: var(--s4);
  margin-bottom: var(--s4);
  line-height: 1.65;
}
.step:hover .step-context { border-left-color: var(--accent); color: var(--text-2); }
.step-body h3 {
  font-family: var(--serif);
  font-size: 1.15rem;
  font-weight: 400;
  color: var(--text);
  margin-bottom: var(--s3);
}
.step-body p { font-size: 0.9rem; font-weight: 300; color: var(--text-2); line-height: 1.75; }
.step-body em { font-style: italic; color: var(--accent); }

/* ===================================
   SERVICES
   =================================== */
.services { background: var(--bg2); }
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--rl);
  overflow: hidden;
}
.service {
  background: var(--bg2);
  padding: var(--s8);
  cursor: default;
  transition: background 0.2s;
  outline-offset: -2px;
}
.service:hover, .service:focus { background: var(--surface); }
.service:focus { outline: 2px solid var(--accent); }
.service--featured {
  background: var(--surface);
  position: relative;
}
.svc-icon {
  width: 40px; height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface2);
  color: var(--accent);
  border-radius: var(--r);
  margin-bottom: var(--s5);
  border: 1px solid var(--border-hi);
}
.service h3 {
  font-family: var(--serif);
  font-size: 1.05rem;
  font-weight: 400;
  color: var(--text);
  margin-bottom: var(--s3);
}
.service p { font-size: 0.875rem; font-weight: 300; color: var(--text-2); line-height: 1.7; }
.svc-badge {
  display: inline-block;
  margin-top: var(--s4);
  background: var(--accent-sub);
  color: var(--accent);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 100px;
  border: 1px solid rgba(232,132,90,0.2);
}

/* ===================================
   ABOUT
   =================================== */
.about { background: var(--bg); }
.about-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s16);
  align-items: start;
}
.about-text h2 { margin-bottom: var(--s6); }
.about-text p {
  font-size: 1rem;
  font-weight: 300;
  color: var(--text-2);
  line-height: 1.85;
  margin-bottom: var(--s5);
}
.about-text p:last-of-type { margin-bottom: var(--s8); }

.about-quote {
  border: 1px solid var(--border);
  border-left: 2px solid var(--accent);
  border-radius: var(--r);
  padding: var(--s6) var(--s8);
  margin-bottom: var(--s6);
  background: var(--bg2);
}
.about-quote p {
  font-family: var(--serif);
  font-size: 1.15rem;
  font-style: italic;
  color: var(--text);
  line-height: 1.6;
  margin-bottom: var(--s3);
}
.about-quote footer {
  font-size: 0.82rem;
  color: var(--text-3);
}

.about-stats {
  display: flex;
  flex-direction: column;
  gap: 0;
  border: 1px solid var(--border);
  border-radius: var(--r);
  overflow: hidden;
}
.a-stat {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--s4) var(--s6);
  border-bottom: 1px solid var(--border);
  transition: background 0.15s;
}
.a-stat:last-child { border-bottom: none; }
.a-stat:hover { background: var(--bg2); }
.a-val {
  font-family: var(--serif);
  font-size: 1.3rem;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}
.a-lbl { font-size: 0.82rem; color: var(--text-3); }

/* ===================================
   FAQ
   =================================== */
.faq { background: var(--bg2); }
.faq-wrap {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: var(--s16);
  align-items: start;
}
.faq-left { position: sticky; top: 78px; }
.faq-left h2 { margin-bottom: var(--s4); }
.faq-sub {
  font-size: 0.9rem;
  font-weight: 300;
  color: var(--text-2);
  line-height: 1.75;
  margin-bottom: var(--s8);
}
.faq-right {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
  border-radius: var(--rl);
  overflow: hidden;
}
.faq-item {
  border-bottom: 1px solid var(--border);
  transition: background 0.15s;
}
.faq-item:last-child { border-bottom: none; }
.faq-item:hover { background: var(--surface); }
.faq-q {
  width: 100%;
  background: none;
  border: none;
  color: var(--text);
  font-family: var(--sans);
  font-size: 0.95rem;
  font-weight: 400;
  text-align: left;
  padding: var(--s5) var(--s6);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--s4);
  transition: color 0.15s;
}
.faq-q:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.faq-q::after {
  content: '+';
  font-family: var(--serif);
  font-size: 1.4rem;
  color: var(--text-3);
  flex-shrink: 0;
  transition: transform 0.25s, color 0.15s;
  line-height: 1;
}
.faq-item.open .faq-q::after { transform: rotate(45deg); color: var(--accent); }
.faq-a {
  max-height: 0;
  overflow: hidden;
  padding: 0 var(--s6);
  color: var(--text-2);
  font-size: 0.9rem;
  font-weight: 300;
  line-height: 1.8;
  transition: max-height 0.3s ease, padding 0.3s ease;
}
.faq-item.open .faq-a {
  max-height: 300px;
  padding: 0 var(--s6) var(--s5);
}

/* ===================================
   CONTACT
   =================================== */
.contact { background: var(--bg); }
.contact-wrap { max-width: 680px; }
.contact-head { margin-bottom: var(--s10); }
.contact-head h2 { margin-bottom: var(--s4); }
.contact-head p {
  font-size: 1rem;
  font-weight: 300;
  color: var(--text-2);
  line-height: 1.75;
}
.contact-btns {
  display: flex;
  gap: var(--s3);
  flex-wrap: wrap;
  margin-bottom: var(--s4);
}
.contact-note {
  font-size: 0.82rem;
  color: var(--text-3);
  margin-bottom: var(--s8);
  letter-spacing: 0.01em;
}
.calendly-inline-widget {
  border-radius: var(--rl);
  overflow: hidden;
  border: 1px solid var(--border);
  width: 100%;
  height: 420px !important;
}

/* ===================================
   BUTTONS
   =================================== */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  padding: 11px 22px;
  border-radius: 100px;
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  transition: background 0.15s, transform 0.15s;
}
.btn-primary:hover { background: var(--accent-dim); transform: translateY(-1px); }
.btn-primary:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text-2);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 400;
  transition: color 0.15s;
  padding: 11px 0;
}
.btn-ghost:hover { color: var(--text); }

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  color: var(--text-2);
  text-decoration: none;
  padding: 11px 22px;
  border-radius: 100px;
  font-size: 0.9rem;
  font-weight: 400;
  border: 1px solid var(--border-hi);
  transition: all 0.15s;
}
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }
.btn-outline:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ===================================
   FOOTER
   =================================== */
footer {
  background: var(--bg2);
  border-top: 1px solid var(--border);
  padding: var(--s8) var(--s6);
}
.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s6);
  flex-wrap: wrap;
}
footer p { font-size: 0.82rem; color: var(--text-3); }
.footer-links { display: flex; gap: var(--s2); align-items: center; }
.footer-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px; height: 32px;
  border-radius: var(--r);
  color: var(--text-3);
  text-decoration: none;
  transition: color 0.15s, background 0.15s;
}
.footer-links a:hover { color: var(--accent); background: var(--accent-sub); }
.footer-links a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ===================================
   REVEAL ANIMATION
   =================================== */
.reveal { opacity: 1; transform: none; }
/* JS adds .animated class to body when ready, then animates */
.js-ready .reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
.js-ready .reveal.visible { opacity: 1; transform: translateY(0); }

/* ===================================
   RESPONSIVE
   =================================== */
@media (max-width: 1024px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-bottom: var(--s16);
  }
  .hero-card-wrap { display: none; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .about-wrap, .faq-wrap { grid-template-columns: 1fr; gap: var(--s12); }
  .faq-left { position: static; }
}
@media (max-width: 640px) {
  .wrap { padding: var(--s16) var(--s5); }
  .nav-links { display: none; }
  .steps { }
  .step { grid-template-columns: 56px 1fr; }
  .step-n { font-size: 1.1rem; padding: var(--s6) var(--s4); }
  .services-grid { grid-template-columns: 1fr; }
  h1 { font-size: 2.4rem; }
  h2 { font-size: 1.8rem; }
  .hero-proof { gap: var(--s4); }
  .proof-div { display: none; }
  .hero-cta { flex-direction: column; align-items: flex-start; }
  .contact-btns { flex-direction: column; align-items: flex-start; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}

/* ===================================
   REDUCED MOTION
   =================================== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}
