/* ShiftTest AI landing — light-first navy/sky system, IBM Plex Sans + JetBrains Mono */
:root {
  --bg: #F8FAFC; --bg-soft: #EEF2F7; --panel: #FFFFFF; --panel-2: #F1F5F9;
  --ink: #020617; --ink-2: #0F172A; --muted: #475569; --line: #E2E8F0;
  --cta: #0369A1; --cta-hover: #075985; --sky: #0EA5E9;
  --pass: #059669; --fail: #DC2626; --warn: #B45309; --heal: #7C3AED;
  --term-bg: #0B1526; --term-line: #1E2D45; --term-text: #C9D6EA;
  --radius: 16px; --radius-sm: 10px;
  --shadow: 0 20px 50px -20px rgba(2, 6, 23, .18);
  --shadow-sm: 0 4px 18px -6px rgba(2, 6, 23, .10);
  --maxw: 1140px;
}
[data-theme="dark"] {
  --bg: #0B1220; --bg-soft: #0E1729; --panel: #101B30; --panel-2: #16233C;
  --ink: #E8ECF6; --ink-2: #F1F5FB; --muted: #93A2BC; --line: #223353;
  --cta: #0EA5E9; --cta-hover: #38BDF8;
  --term-bg: #080F1D; --term-line: #1B2A44; --term-text: #C9D6EA;
  --shadow: 0 20px 50px -18px rgba(0, 0, 0, .55);
  --shadow-sm: 0 4px 18px -6px rgba(0, 0, 0, .45);
}
* { box-sizing: border-box; margin: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: "IBM Plex Sans", ui-sans-serif, system-ui, sans-serif;
  background: var(--bg); color: var(--ink); line-height: 1.65;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
.mono { font-family: "JetBrains Mono", ui-monospace, monospace; }
a { color: var(--cta); text-decoration: none; }
h1, h2, h3 { color: var(--ink-2); letter-spacing: -.025em; line-height: 1.15; }
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
::selection { background: rgba(14, 165, 233, .25); }
svg { flex-shrink: 0; }

/* nav */
.nav-wrap { position: sticky; top: 16px; z-index: 50; padding: 0 16px; }
nav {
  max-width: var(--maxw); margin: 0 auto; display: flex; align-items: center; justify-content: space-between;
  padding: 10px 18px; border: 1px solid var(--line); border-radius: 999px;
  background: color-mix(in srgb, var(--panel) 82%, transparent); backdrop-filter: blur(12px);
  box-shadow: var(--shadow-sm);
}
.logo { font-family: "JetBrains Mono", monospace; font-weight: 700; font-size: 1.05rem; color: var(--ink-2); letter-spacing: -.02em; }
.logo .accent { color: var(--cta); }
.nav-links { display: flex; gap: 22px; align-items: center; }
.nav-links a.plain { color: var(--muted); font-size: .92rem; font-weight: 500; transition: color .2s; }
.nav-links a.plain:hover { color: var(--ink-2); }

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; cursor: pointer;
  padding: 12px 22px; border-radius: 12px; border: 1px solid var(--line); min-height: 44px;
  background: var(--panel); color: var(--ink-2); font-weight: 600; font-size: .95rem; font-family: inherit;
  transition: transform .15s ease, box-shadow .2s ease, background .2s, border-color .2s, color .2s;
}
.btn:hover { transform: translateY(-1px); border-color: var(--cta); box-shadow: var(--shadow-sm); }
.btn:focus-visible { outline: 3px solid rgba(14, 165, 233, .4); outline-offset: 2px; }
.btn.primary { background: var(--cta); border-color: var(--cta); color: #fff; box-shadow: 0 10px 26px -10px rgba(3, 105, 161, .55); }
.btn.primary:hover { background: var(--cta-hover); border-color: var(--cta-hover); }
.btn.small { padding: 8px 14px; min-height: 38px; font-size: .85rem; }
.theme-toggle {
  width: 40px; height: 40px; border-radius: 999px; border: 1px solid var(--line); cursor: pointer;
  background: var(--panel); color: var(--muted); display: inline-flex; align-items: center; justify-content: center;
  transition: color .2s, border-color .2s;
}
.theme-toggle:hover { color: var(--ink-2); border-color: var(--cta); }
[data-theme="dark"] .icon-sun { display: none; }
:root:not([data-theme="dark"]) .icon-moon { display: none; }

/* hero */
.hero { padding: 84px 0 30px; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; font-family: "JetBrains Mono", monospace;
  font-size: .78rem; font-weight: 500; color: var(--cta); background: color-mix(in srgb, var(--cta) 9%, transparent);
  border: 1px solid color-mix(in srgb, var(--cta) 25%, transparent); padding: 6px 14px; border-radius: 999px; margin-bottom: 22px;
}
.eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--pass); animation: pulse 2.4s infinite; }
@keyframes pulse { 0%, 100% { opacity: 1 } 50% { opacity: .35 } }
.hero h1 { font-size: clamp(2.2rem, 4.6vw, 3.4rem); font-weight: 700; }
.hero h1 .flip { color: var(--cta); }
.hero .sub { margin-top: 20px; color: var(--muted); font-size: 1.12rem; max-width: 34rem; }
.hero .sub b { color: var(--ink-2); font-weight: 600; }
.cta-row { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 30px; }
.assurance { display: flex; gap: 18px; flex-wrap: wrap; margin-top: 22px; }
.assurance span { display: inline-flex; gap: 7px; align-items: center; color: var(--muted); font-size: .85rem; }
.assurance svg { color: var(--pass); }

/* terminal panel — the signature demo */
.term {
  background: var(--term-bg); border: 1px solid var(--term-line); border-radius: var(--radius);
  box-shadow: var(--shadow); overflow: hidden; font-family: "JetBrains Mono", monospace; font-size: .82rem;
}
.term-bar { display: flex; align-items: center; gap: 7px; padding: 12px 16px; border-bottom: 1px solid var(--term-line); }
.term-bar i { width: 11px; height: 11px; border-radius: 50%; display: block; }
.term-bar .r { background: #F87171 } .term-bar .y { background: #FBBF24 } .term-bar .g { background: #34D399 }
.term-bar span { margin-left: 10px; color: #64748B; font-size: .72rem; }
.term-body { padding: 18px 20px 22px; min-height: 300px; }
.term-body .ln { display: flex; gap: 10px; padding: 3.5px 0; color: var(--term-text); opacity: 0; }
.term-body .ln.static { opacity: 1; }
.t-prompt { color: #38BDF8; }
.t-pass { color: #34D399; } .t-fail { color: #F87171; } .t-warn { color: #FBBF24; }
.t-heal { color: #C4B5FD; } .t-dim { color: #64748B; } .t-q { color: #FBBF24; }
.term-cursor { display: inline-block; width: 8px; height: 15px; background: #38BDF8; vertical-align: text-bottom; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0 } }

/* stats strip */
.stats { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; padding: 46px 0 10px; }
.stat {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 14px 26px; text-align: center; box-shadow: var(--shadow-sm); min-width: 150px;
}
.stat b { display: block; font-family: "JetBrains Mono", monospace; font-size: 1.55rem; color: var(--ink-2); }
.stat span { color: var(--muted); font-size: .8rem; }

/* sections */
.section { padding: 76px 0; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 52px; }
.section-head .kicker { font-family: "JetBrains Mono", monospace; font-size: .78rem; color: var(--cta); letter-spacing: .08em; text-transform: uppercase; }
.section-head h2 { font-size: clamp(1.65rem, 3.2vw, 2.25rem); margin-top: 10px; }
.section-head p { color: var(--muted); margin-top: 12px; }

/* steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.step {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px;
  box-shadow: var(--shadow-sm); position: relative; transition: transform .18s ease, box-shadow .25s, border-color .25s;
}
.step:hover { transform: translateY(-4px); border-color: var(--cta); box-shadow: var(--shadow); }
.step .n { font-family: "JetBrains Mono", monospace; font-size: .75rem; color: var(--cta); }
.step .ic {
  width: 44px; height: 44px; border-radius: 12px; margin: 14px 0;
  background: color-mix(in srgb, var(--cta) 10%, transparent); color: var(--cta);
  display: flex; align-items: center; justify-content: center;
}
.step h3 { font-size: 1.08rem; margin-bottom: 8px; }
.step p { color: var(--muted); font-size: .93rem; }

/* bento */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 20px; }
.tile {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px;
  box-shadow: var(--shadow-sm); transition: transform .18s ease, border-color .25s, box-shadow .25s;
}
.tile:hover { transform: translateY(-4px); border-color: var(--cta); box-shadow: var(--shadow); }
.tile.w3 { grid-column: span 3; } .tile.w2 { grid-column: span 2; }
.tile .ic { width: 40px; height: 40px; border-radius: 11px; display: flex; align-items: center; justify-content: center; margin-bottom: 16px; background: color-mix(in srgb, var(--cta) 10%, transparent); color: var(--cta); }
.tile.heal .ic { background: color-mix(in srgb, var(--heal) 12%, transparent); color: var(--heal); }
.tile.pass .ic { background: color-mix(in srgb, var(--pass) 12%, transparent); color: var(--pass); }
.tile h3 { font-size: 1.05rem; margin-bottom: 8px; }
.tile p { color: var(--muted); font-size: .92rem; }
.tile code { font-family: "JetBrains Mono", monospace; font-size: .8em; background: var(--panel-2); border: 1px solid var(--line); border-radius: 6px; padding: 1px 6px; color: var(--ink-2); }

/* compare */
.compare-card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); overflow: hidden; }
.compare-scroll { overflow-x: auto; }
table.compare { width: 100%; border-collapse: collapse; font-size: .92rem; min-width: 640px; }
.compare th { font-family: "JetBrains Mono", monospace; font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; padding: 16px 20px; text-align: left; color: var(--muted); border-bottom: 2px solid var(--line); }
.compare th.us { color: var(--cta); }
.compare td { padding: 14px 20px; border-bottom: 1px solid var(--line); color: var(--muted); }
.compare td.us { color: var(--ink-2); font-weight: 600; }
.compare tr:last-child td { border-bottom: none; }
.footnote { color: var(--muted); font-size: .78rem; text-align: center; margin-top: 14px; }

/* pricing */
.pricing { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 26px; max-width: 780px; margin: 0 auto; align-items: start; }
.plan { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; box-shadow: var(--shadow-sm); position: relative; }
.plan.pro { border-color: var(--cta); box-shadow: var(--shadow); }
.plan .flag { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); background: var(--cta); color: #fff; font-family: "JetBrains Mono", monospace; font-size: .68rem; letter-spacing: .08em; padding: 4px 14px; border-radius: 999px; }
.plan h3 { font-size: 1.05rem; }
.plan .price { font-family: "JetBrains Mono", monospace; font-size: 2.3rem; font-weight: 700; color: var(--ink-2); margin: 14px 0 2px; }
.plan .price small { font-size: .95rem; color: var(--muted); font-weight: 400; font-family: "IBM Plex Sans", sans-serif; }
.plan ul { list-style: none; padding: 0; margin: 20px 0 24px; }
.plan li { display: flex; gap: 10px; align-items: flex-start; padding: 7px 0; color: var(--muted); font-size: .93rem; }
.plan li svg { color: var(--pass); margin-top: 3px; }

/* footer */
footer { border-top: 1px solid var(--line); padding: 40px 24px; margin-top: 30px; }
.foot { max-width: var(--maxw); margin: 0 auto; display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; color: var(--muted); font-size: .88rem; }
.foot .links { display: flex; gap: 18px; flex-wrap: wrap; }
.foot a { color: var(--muted); } .foot a:hover { color: var(--ink-2); }

/* reveal targets (motion sets final state; visible fallback if JS fails) */
.reveal { opacity: 1; }
.js .reveal { opacity: 0; transform: translateY(26px); }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; }
  .term-body .ln { opacity: 1 !important; }
  .eyebrow .dot, .term-cursor { animation: none; }
}

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 36px; }
  .steps { grid-template-columns: 1fr; }
  .bento { grid-template-columns: 1fr 1fr; }
  .tile.w3, .tile.w2 { grid-column: span 2; }
  .nav-links a.plain { display: none; }
}
@media (max-width: 480px) {
  .hero { padding: 56px 0 16px; }
  .bento { grid-template-columns: 1fr; }
  .tile.w3, .tile.w2 { grid-column: span 1; }
  .term { font-size: .74rem; }
}
