/* ============================================================
   WAKEFUL AI — Brand stylesheet
   Palette: Navy (dormant/trust) → Amber (the wake signal)
   Type: Newsreader (display serif) / Inter (body) / IBM Plex Mono (data)
   Motif: the "wakeline" — flat signal that spikes on detection
   ============================================================ */

:root {
  --navy:      #0E1420;
  --navy-2:    #16202E;
  --navy-3:    #1E2B3D;
  --slate:     #4C6E91;
  --slate-lt:  #9BB0C4;
  --amber:     #F2A93B;
  --amber-dim: #C98A2C;
  --paper:     #F5F7FA;
  --white:     #FFFFFF;
  --ink:       #10151F;
  --mist:      #64707E;
  --line:      #DFE4EA;

  --serif: "Newsreader", Georgia, serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", "Courier New", monospace;

  --maxw: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  line-height: 1.55;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 500; margin: 0; color: var(--navy); }
p { margin: 0; }
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 32px; }
section { padding: 96px 0; }
@media (max-width: 720px) {
  section { padding: 64px 0; }
  .container { padding: 0 20px; }
}

.eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--amber-dim);
  display: block;
  margin-bottom: 14px;
}
.eyebrow.on-dark { color: var(--amber); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 14.5px;
  padding: 13px 24px;
  border-radius: 3px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.15s ease;
}
.btn-primary { background: var(--amber); color: var(--navy); }
.btn-primary:hover { background: #ffb84f; }
.btn-ghost-dark { border-color: rgba(255,255,255,0.28); color: var(--white); }
.btn-ghost-dark:hover { border-color: var(--white); background: rgba(255,255,255,0.06); }
.btn-ghost-light { border-color: var(--navy); color: var(--navy); }
.btn-ghost-light:hover { background: var(--navy); color: var(--white); }

/* ---------- Nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(14,20,32,0.96);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.nav-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 32px;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo { display: flex; align-items: center; gap: 10px; }
.nav-logo .mark { width: 30px; height: 30px; flex-shrink: 0; }
.nav-logo .word { font-family: var(--serif); font-style: italic; font-size: 21px; color: var(--white); }
.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--slate-lt);
  transition: color 0.15s ease;
}
.nav-links a:hover, .nav-links a.active { color: var(--white); }
.nav-cta { margin-left: 6px; }
.nav-toggle { display: none; }
@media (max-width: 860px) {
  .nav-links { display: none; }
}

/* ---------- Hero (dark) ---------- */
.hero {
  background: var(--navy);
  color: var(--white);
  padding: 108px 0 96px;
  position: relative;
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 56px;
  align-items: center;
}
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
}
.hero h1 {
  font-size: 52px;
  line-height: 1.12;
  color: var(--white);
  font-weight: 500;
  letter-spacing: -0.01em;
}
.hero h1 em { color: var(--amber); font-style: italic; }
.hero .sub {
  font-size: 18px;
  color: var(--slate-lt);
  margin-top: 22px;
  max-width: 46ch;
  line-height: 1.6;
}
.hero .cta-row { display: flex; gap: 14px; margin-top: 36px; flex-wrap: wrap; }

/* wakeline signature graphic */
.wakeline-box {
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 4px;
  background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0));
  padding: 22px 22px 0;
}
.wakeline-box .cap {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--slate-lt);
  display: flex;
  justify-content: space-between;
  padding-bottom: 14px;
}
.wakeline-svg path.trace {
  fill: none;
  stroke: var(--amber);
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 900;
  stroke-dashoffset: 900;
  animation: draw 2.6s ease-out forwards;
}
@keyframes draw { to { stroke-dashoffset: 0; } }
@media (prefers-reduced-motion: reduce) {
  .wakeline-svg path.trace { animation: none; stroke-dashoffset: 0; }
}

/* ---------- Stat band ---------- */
.stat-band {
  background: var(--navy-2);
  border-top: 1px solid rgba(255,255,255,0.08);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.stat-band .container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  padding: 52px 32px;
}
@media (max-width: 760px) {
  .stat-band .container { grid-template-columns: repeat(2, 1fr); }
}
.stat .num { font-family: var(--mono); font-size: 34px; color: var(--amber); font-weight: 500; }
.stat .lbl { font-size: 13.5px; color: var(--slate-lt); margin-top: 6px; line-height: 1.45; }

/* ---------- Sections (light) ---------- */
.section-head { max-width: 640px; margin-bottom: 52px; }
.section-head h2 { font-size: 34px; line-height: 1.2; }
.section-head .sub { color: var(--mist); font-size: 16px; margin-top: 14px; line-height: 1.6; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
@media (max-width: 860px) {
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
}

.card {
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 32px 28px;
  background: var(--white);
}
.card .num-tag {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--amber-dim);
  margin-bottom: 16px;
  display: block;
}
.card h3 { font-size: 20px; margin-bottom: 10px; }
.card p { color: var(--mist); font-size: 14.5px; line-height: 1.6; }

.card-dark {
  background: var(--navy);
  color: var(--white);
  border-radius: 4px;
  padding: 36px 32px;
}
.card-dark h3 { color: var(--white); font-size: 21px; margin-bottom: 12px; }
.card-dark p { color: var(--slate-lt); font-size: 14.5px; line-height: 1.65; }

/* ---------- Process rail ---------- */
.rail { position: relative; }
.rail-step {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 24px;
  padding: 30px 0;
  border-top: 1px solid var(--line);
}
.rail-step:last-child { border-bottom: 1px solid var(--line); }
.rail-step .tag { font-family: var(--mono); font-size: 13px; color: var(--amber-dim); padding-top: 4px; }
.rail-step h4 { font-size: 19px; margin-bottom: 8px; }
.rail-step p { color: var(--mist); font-size: 14.5px; max-width: 62ch; }
@media (max-width: 640px) {
  .rail-step { grid-template-columns: 1fr; gap: 8px; }
}

/* ---------- Quote / CEO block ---------- */
.quote-block {
  background: var(--paper);
  border-radius: 4px;
  padding: 48px;
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 32px;
  align-items: start;
}
@media (max-width: 700px) {
  .quote-block { grid-template-columns: 1fr; padding: 32px; }
}
.avatar-mono {
  width: 96px; height: 96px; border-radius: 3px;
  background: var(--navy);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--serif); font-style: italic; color: var(--amber); font-size: 34px;
}
.quote-block blockquote {
  font-family: var(--serif);
  font-size: 22px;
  font-style: italic;
  color: var(--navy);
  line-height: 1.5;
  margin: 0 0 16px;
}
.quote-block .attrib { font-size: 13.5px; color: var(--mist); font-family: var(--mono); }

/* ---------- Table ---------- */
table.compare { width: 100%; border-collapse: collapse; font-size: 14.5px; }
table.compare th, table.compare td { text-align: left; padding: 14px 16px; border-bottom: 1px solid var(--line); }
table.compare th { font-family: var(--mono); font-size: 12px; letter-spacing: 0.06em; color: var(--mist); text-transform: uppercase; }
table.compare td.yes { color: var(--amber-dim); font-weight: 600; }
table.compare td.no { color: var(--mist); }

/* ---------- Banner CTA ---------- */
.cta-banner {
  background: var(--navy);
  color: var(--white);
  border-radius: 4px;
  padding: 56px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.cta-banner h3 { color: var(--white); font-size: 27px; max-width: 34ch; }

/* ---------- Footer ---------- */
footer { background: var(--navy); color: var(--slate-lt); padding: 64px 0 32px; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 32px;
  padding-bottom: 44px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
@media (max-width: 760px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
.footer-grid h5 {
  font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--slate-lt); margin-bottom: 16px;
}
.footer-grid a, .footer-grid p { display: block; font-size: 14px; color: #B7C4D3; margin-bottom: 10px; }
.footer-grid a:hover { color: var(--white); }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 26px; font-size: 12.5px; color: #6C7C8E; flex-wrap: wrap; gap: 12px;
}
.footer-logo { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.footer-logo .mark { width: 26px; height: 26px; }
.footer-logo .word { font-family: var(--serif); font-style: italic; font-size: 19px; color: var(--white); }
.footer-tagline { font-size: 13.5px; color: var(--slate-lt); max-width: 32ch; line-height: 1.6; }

/* ---------- Page hero (light-on-dark, smaller, for inner pages) ---------- */
.page-hero {
  background: var(--navy);
  color: var(--white);
  padding: 72px 0 64px;
}
.page-hero h1 { color: var(--white); font-size: 42px; max-width: 20ch; }
.page-hero .sub { color: var(--slate-lt); font-size: 17px; margin-top: 18px; max-width: 60ch; }

/* ---------- Icon circle ---------- */
.icon-circ {
  width: 46px; height: 46px; border-radius: 50%;
  background: rgba(242,169,59,0.12);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
}
.icon-circ svg { width: 22px; height: 22px; }

/* ---------- Utility ---------- */
.mt-64 { margin-top: 64px; }
.tag-pill {
  display: inline-block;
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.05em;
  padding: 5px 10px;
  border: 1px solid var(--line);
  border-radius: 20px;
  color: var(--mist);
  margin: 4px 6px 4px 0;
}
.two-col-split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
@media (max-width: 860px) { .two-col-split { grid-template-columns: 1fr; } }
.bg-paper { background: var(--paper); }
