/* ==========================================================================
   SGT-Harness — standalone site styles
   Theme tokens come from assets/brand/sgt-theme.css (canonical Synapse kit).
   Dark-first, flat, 2-color discipline. No emoji icons, no gradients-as-decoration.
   ========================================================================== */

:root {
  --bg: var(--sgt-bg);
  --panel: var(--sgt-surface);
  --line: var(--sgt-border);
  --text: var(--sgt-ink);
  --muted: var(--sgt-muted);
  --violet: var(--sgt-violet);
  --violet-2: var(--sgt-violet-2);
  --cyan: var(--sgt-cyan);
}

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sgt-font);
  background-image:
    linear-gradient(rgba(124, 92, 255, .028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(124, 92, 255, .028) 1px, transparent 1px);
  background-size: 52px 52px;
  -webkit-font-smoothing: antialiased;
}

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: -999px; top: 8px; z-index: 200; background: var(--violet); color: #fff; padding: 10px 16px; border-radius: var(--sgt-radius); }
.skip-link:focus { left: 8px; }

a { color: var(--violet-2); }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, [href]:focus-visible { outline: 2px solid var(--violet); outline-offset: 3px; border-radius: 4px; }

/* ---------- header ---------- */
.site-header {
  height: 76px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 0 3.5vw;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(13, 15, 30, .92);
  backdrop-filter: blur(16px);
}
.logo { justify-self: start; display: flex; align-items: center; gap: 8px; font-size: 12px; letter-spacing: .18em; text-decoration: none; color: var(--text); }
.logo img { height: 32px; width: auto; }
.product-name { font-weight: 800; letter-spacing: .14em; font-size: 19px; }
.site-header nav { justify-self: end; display: flex; align-items: center; gap: 26px; font-size: 15px; font-weight: 600; color: #AEB6D0; }
.site-header nav a { text-decoration: none; color: #AEB6D0; transition: color .2s; }
.site-header nav a:hover { color: var(--text); }
.nav-cta { padding: 11px 16px; border: 1px solid var(--violet); color: var(--violet-2) !important; border-radius: var(--sgt-radius); }
.nav-cta:hover { background: var(--violet); color: #fff !important; }
.menu-toggle { display: none; }

/* ---------- hero ---------- */
.hero {
  width: min(1480px, 93vw);
  margin: auto;
  min-height: 640px;
  display: grid;
  grid-template-columns: 1.03fr .97fr;
  align-items: center;
  gap: 6vw;
  padding: 40px 0 76px;
}
.status, .eyebrow { font: 10px ui-monospace, monospace; letter-spacing: .13em; color: var(--muted); }
.eyebrow { display: inline-flex; align-items: center; gap: 9px; padding: 8px 14px; border: 1px solid var(--sgt-border); border-radius: var(--sgt-pill); color: var(--violet-2); text-transform: uppercase; }
.eyebrow i { display: inline-block; width: 7px; height: 7px; background: var(--cyan); border-radius: 50%; box-shadow: 0 0 14px var(--cyan); }
.hero h1 { font-size: clamp(48px, 6vw, 100px); line-height: .9; letter-spacing: -.07em; margin: 28px 0 34px; max-width: 900px; font-weight: 650; }
.hero h1 em { font-style: normal; color: var(--violet); }
.lede { max-width: 660px; color: #9CA3C2; font-size: clamp(16px, 1.4vw, 20px); line-height: 1.65; }
.actions { display: flex; gap: 12px; margin-top: 38px; }
.button {
  padding: 16px 20px;
  border: 1px solid #3a4166;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .03em;
  text-decoration: none;
  border-radius: 10px;
  transition: all .15s ease;
  /* 3D raised-key base */
  background: linear-gradient(180deg, #232748 0%, #1b1f3a 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .18),
    inset 0 -2px 0 rgba(0, 0, 0, .35),
    0 3px 0 #3a3f63,
    0 6px 12px rgba(0, 0, 0, .35);
  color: var(--text);
}
.button:active, .button.pressed {
  transform: translateY(3px) scale(.99);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .08),
    inset 0 -1px 0 rgba(0, 0, 0, .30),
    0 1px 0 #3a3f63,
    0 2px 6px rgba(0, 0, 0, .3);
}
.button.primary {
  background: linear-gradient(180deg, #8A6DFF 0%, #7C5CFF 55%, #6A49F0 100%);
  border-color: #5A3AD8;
  color: #fff;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 28px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .25),
    inset 0 -1px 0 rgba(60, 30, 150, .45),
    0 3px 0 #4A2BB0,
    0 5px 10px rgba(124, 92, 255, .22);
}
.button.primary:hover { background: linear-gradient(180deg, #977BFF 0%, #8A6DFF 55%, #7757F5 100%); }
.button.primary:active {
  transform: translateY(2px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .20),
    inset 0 -1px 0 rgba(60, 30, 150, .35),
    0 1px 0 #4A2BB0,
    0 2px 5px rgba(124, 92, 255, .2);
}
.button.ghost { color: var(--text); display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.button.ghost:hover { border-color: var(--violet); color: var(--violet-2); }
.button.ghost:active { border-color: var(--violet); color: var(--violet-2); }
.track .button.ghost {
  background: linear-gradient(180deg, #8A6DFF 0%, #7C5CFF 55%, #6A49F0 100%);
  border-color: #5A3AD8;
  color: #fff;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .25),
    inset 0 -1px 0 rgba(60, 30, 150, .45),
    0 3px 0 #4A2BB0,
    0 5px 10px rgba(124, 92, 255, .22);
}
.track .button.ghost:hover { background: linear-gradient(180deg, #977BFF 0%, #8A6DFF 55%, #7757F5 100%); }
.track .button.ghost:active {
  transform: translateY(2px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .20),
    inset 0 -1px 0 rgba(60, 30, 150, .35),
    0 1px 0 #4A2BB0,
    0 2px 5px rgba(124, 92, 255, .2);
}
.hero-foot { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 26px 32px; margin-top: 38px; font: 700 11px ui-monospace, monospace; letter-spacing: .07em; color: #AEB6D0; text-transform: uppercase; }
.hero-foot span { padding-left: 18px; }
.hero-foot span:before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--cyan); margin-left: -18px; margin-right: 10px; box-shadow: 0 0 8px rgba(34, 211, 238, .7); }

/* framed image / video (console-style chrome around generated art) */
.hero .img-frame { margin-top: 0; transform: translateY(-123px); }
.img-frame { border: 1px solid #2a2d47; background: var(--panel); box-shadow: 0 32px 80px rgba(0, 0, 0, .35); margin: 0; border-radius: var(--sgt-radius-lg); overflow: hidden; }
.img-frame .console-top { height: 52px; display: flex; align-items: center; padding: 0 18px; border-bottom: 1px solid var(--line); font: 700 12px/1 ui-monospace, monospace; letter-spacing: .12em; color: #C6CDE4; }
.img-frame .console-top span { display: flex; gap: 6px; margin-right: auto; }
.img-frame .console-top i { width: 11px; height: 11px; border-radius: 50%; background: #2c2f4a; }
.img-frame .console-top em { font-style: normal; color: var(--cyan); text-shadow: 0 0 12px rgba(34, 211, 238, .8); }
.img-frame .console-top small { margin-left: auto; color: var(--cyan); text-shadow: 0 0 12px rgba(34, 211, 238, .8); }
.img-frame img, .img-frame video { display: block; width: 100%; height: auto; }

/* ---------- sections ---------- */
.section { width: min(1320px, 90vw); margin: auto; padding: 100px 0; }
.section-label { font: 700 15px ui-monospace, monospace; letter-spacing: .14em; color: var(--violet); margin-bottom: 45px; }
.section-head { display: grid; grid-template-columns: 1.2fr .8fr; gap: 10vw; align-items: end; margin-bottom: 64px; }
.section h2 { font-size: clamp(40px, 5vw, 72px); line-height: .98; letter-spacing: -.055em; margin: 0; }
.section h2 span { color: #9CA3C2; }
.section-head p, .roi-wrap > div > p, .roi-wrap .note, .roi-example { color: #9CA3C2; line-height: 1.75; margin: 0; max-width: 560px; font-size: clamp(16px, 1.4vw, 20px); }

/* ---------- problem ---------- */
.problem { border-top: 1px solid var(--line); }
.problem .section-head { align-items: center; margin-bottom: 0; }
.problem .section-head p { margin-top: 0; max-width: 660px; }

/* ---------- pillars ---------- */
.pillars { border-top: 1px solid var(--line); }
.pillars .section-head { align-items: center; }
.pillar-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border: 1px solid var(--line); background: #0a0c1c; border-radius: var(--sgt-radius-lg); overflow: hidden; }
.pillar { padding: 34px 30px; border-left: 1px solid var(--line); min-height: 300px; }
.pillar:first-child { border-left: 0; }
.pillar-num { font: 9px ui-monospace, monospace; color: var(--muted); letter-spacing: .14em; }
.pillar h3 { font-size: 14px; letter-spacing: .22em; margin: 30px 0 16px; color: var(--violet-2); }
.pillar p { font-size: clamp(18px, 1.6vw, 23px); line-height: 1.45; margin: 0; color: var(--text); }
.pillar p strong { color: var(--cyan); font-weight: 700; }
.roi-callout { margin-top: 24px; padding: 18px; border-left: 2px solid var(--violet); background: var(--panel); font-size: 14px; line-height: 1.5; color: #c8d6d7; border-radius: 0 var(--sgt-radius) var(--sgt-radius) 0; }
.roi-callout strong { color: var(--cyan); }

/* ---------- metric band ---------- */
.metric-band { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin-top: 28px; border: 1px solid var(--line); border-radius: var(--sgt-radius-lg); background: var(--panel); overflow: hidden; }
.metric { padding: 28px 26px; border-left: 1px solid var(--line); }
.metric:first-child { border-left: 0; }
.metric b { display: block; font: 700 44px/1.1 ui-monospace, monospace; font-variant-numeric: tabular-nums; color: var(--sgt-ink); letter-spacing: -.02em; }
.metric:first-child b { color: var(--cyan); }
.pillar p .tile-ast { color: var(--muted); font-weight: 800; font-size: 0.72em; vertical-align: super; margin: 0 1px; }
.metric span { display: block; margin-top: 10px; font: 500 12px/1.4 var(--sgt-font); color: #9CA3C2; letter-spacing: .02em; }
.metric-note { margin-top: 18px; margin-bottom: 0; font-size: 13px; color: var(--muted) !important; opacity: .85; }

/* ---------- how it works ---------- */
.how { border-top: 1px solid var(--line); }
.how-layout { display: grid; grid-template-columns: 1.05fr .95fr; gap: 5vw; align-items: center; }
.how-grid { list-style: none; padding: 0; margin: 0; }
.how-grid li { position: relative; padding: 26px 0 26px 74px; border-top: 1px solid var(--line); }
.how-grid li:first-child { border-top: 0; }
.how-grid li:last-child { padding-bottom: 0; }
.how-grid li > span { position: absolute; left: 0; top: 22px; font: 40px ui-monospace, monospace; color: #33375c; }
.how-grid h3 { font-size: 21px; margin: 0 0 8px; }
.how-grid p { font-size: 15px; color: #9CA3C2; line-height: 1.6; margin: 0; max-width: 380px; }

/* ---------- tracks ---------- */
.tracks { border-top: 1px solid var(--line); }
.tracks .section-head { align-items: center; }
.tracks-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.track { border: 1px solid #2a2d47; background: linear-gradient(180deg, #1a1e38 0%, #12152a 60%, #0e1124 100%); padding: 36px 32px; display: flex; flex-direction: column; border-radius: var(--sgt-radius-lg); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06), 0 12px 28px rgba(0, 0, 0, .35); }
.track-tag { font: 9px ui-monospace, monospace; letter-spacing: .16em; color: var(--cyan); }
.track h3 { font-size: clamp(22px, 2vw, 30px); margin: 22px 0 12px; }
.track p { font-size: 14px; color: #a7b7b9; margin: 0 0 22px; }
.track ul { list-style: none; padding: 0; margin: 0 0 30px; }
.track li { position: relative; padding: 10px 0 10px 22px; border-top: 1px solid #1d2138; font-size: 13px; color: #a7b7b9; }
.track li:before { content: ""; position: absolute; left: 0; top: 18px; width: 6px; height: 6px; background: var(--violet-2); }
.track .button { justify-content: space-between; margin-top: auto; }
.tracks-note { margin: 0; max-width: 560px; color: #9CA3C2; line-height: 1.75; font-size: clamp(16px, 1.4vw, 20px); }

/* ---------- roi calculator ---------- */
.roi { border-top: 1px solid var(--line); }
.roi-wrap { display: grid; grid-template-columns: .9fr 1.1fr; gap: 7vw; align-items: center; }
.roi-wrap > div > p { margin-top: 26px; }
.roi-example { margin-top: 28px; font: 9px ui-monospace, monospace; letter-spacing: .1em; color: var(--muted); }
.roi-example b { display: block; margin-top: 8px; font-size: 22px; letter-spacing: 0; color: var(--cyan); }
.note { font-size: 11px; color: var(--muted) !important; opacity: .85; }
.calculator { border: 1px solid #2a2d47; background: linear-gradient(180deg, #1a1e38 0%, #12152a 60%, #0e1124 100%); padding: 28px; border-radius: var(--sgt-radius-lg); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06), 0 12px 28px rgba(0, 0, 0, .35); }
.calc-head { display: flex; justify-content: space-between; font: 15px ui-monospace, monospace; color: #a6b9bb; }
.calc-head b { color: #a6b9bb; }
.calc-head i { font-style: normal; color: var(--cyan); }
.calculator input { width: 100%; accent-color: var(--violet); margin: 30px 0; }
.cost-row { display: grid; grid-template-columns: 1fr auto auto; align-items: end; padding: 23px 0; border-top: 1px solid #1d2138; }
.cost-row span { font-size: 14px; }
.cost-row small { color: #a6b9bb; font-size: 12px; }
.cost-row strong { font: 28px ui-monospace, monospace; }
.cost-row em { font: 11px ui-monospace, monospace; color: #a6b9bb; margin: 0 0 5px 5px; }
.cost-row.after strong { color: var(--cyan); }
.saving { display: flex; justify-content: space-between; background: var(--violet); color: #fff; padding: 20px; margin-top: 8px; align-items: center; border-radius: var(--sgt-radius); }
.saving span { font-size: 14px; }
.saving b { font: 24px ui-monospace, monospace; }
.calculator > p { font-size: 8px; line-height: 1.5; color: #526b70; margin: 14px 0 0; }

/* ---------- closing / footer ---------- */
.closing { padding: 110px 7vw; color: #fff; display: grid; grid-template-columns: 1fr .75fr; gap: 10vw; align-items: center; border-top: 1px solid #3a2a6b; background: linear-gradient(180deg, #2a2056 0%, #1f1642 55%, #171034 100%); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06), inset 0 -60px 120px rgba(0, 0, 0, .25); }
.closing > div > span { font: 9px ui-monospace, monospace; letter-spacing: .14em; opacity: .8; }
.closing h2 { font-size: clamp(44px, 6vw, 88px); line-height: .92; letter-spacing: -.06em; margin: 25px 0; }
.closing p { max-width: 600px; line-height: 1.6; }
.closing form { border: 1px solid rgba(255, 255, 255, .35); padding: 30px; border-radius: var(--sgt-radius-lg); }
.closing label { display: block; font-size: 10px; font-weight: 700; margin-bottom: 18px; }
.closing input, .closing select { display: block; width: 100%; border: 0; border-bottom: 1px solid rgba(255, 255, 255, .55); background: transparent; padding: 12px 0; border-radius: 0; color: #fff; outline: none; font-family: var(--sgt-font); }
.closing input:-webkit-autofill,
.closing input:-webkit-autofill:hover,
.closing input:-webkit-autofill:focus {
  -webkit-box-shadow: 0 0 0 1000px #1f1642 inset;
  box-shadow: 0 0 0 1000px #1f1642 inset;
  -webkit-text-fill-color: #fff;
  caret-color: #fff;
  border-bottom-color: rgba(255, 255, 255, .55);
  transition: background-color 9999999s ease-in-out 0s;
}
.closing select option { color: #0d0f1e; }
.closing button { width: 100%; border: 1px solid #5A3AD8; background: linear-gradient(180deg, #8A6DFF 0%, #7C5CFF 55%, #6A49F0 100%); color: #fff; padding: 17px; margin-top: 8px; display: flex; justify-content: space-between; font-size: 12px; cursor: pointer; border-radius: var(--sgt-radius); font-family: var(--sgt-font); font-weight: 600; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25), inset 0 -1px 0 rgba(60, 30, 150, .45), 0 3px 0 #4A2BB0, 0 5px 10px rgba(124, 92, 255, .22); transition: all .15s ease; }
.closing button:hover { background: linear-gradient(180deg, #977BFF 0%, #8A6DFF 55%, #7757F5 100%); }
.closing button:active { transform: translateY(2px); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .20), inset 0 -1px 0 rgba(60, 30, 150, .35), 0 1px 0 #4A2BB0, 0 2px 5px rgba(124, 92, 255, .2); }
.closing button:disabled { opacity: .75; cursor: default; }
.interest-group { border: 0; padding: 0; margin: 0 0 20px; }
.interest-group legend { font-size: 10px; font-weight: 700; margin-bottom: 14px; padding: 0; }
.interest-pills { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.interest-pills label { position: relative; display: block; margin: 0; cursor: pointer; }
.interest-pills input { position: absolute; opacity: 0; width: 0; height: 0; }
.interest-pills span { display: block; border: 1px solid rgba(138, 109, 255, .45); background: rgba(124, 92, 255, .08); color: #d8dbf0; padding: 12px 14px; border-radius: 10px; font-size: 12px; line-height: 1.3; text-align: center; transition: all .15s ease; }
.interest-pills label:hover span { border-color: rgba(138, 109, 255, .75); }
.interest-pills input:checked + span { border-color: var(--violet); background: linear-gradient(180deg, #8A6DFF 0%, #7C5CFF 55%, #6A49F0 100%); color: #fff; box-shadow: 0 3px 0 #4A2BB0, 0 5px 10px rgba(124, 92, 255, .22); }
.interest-pills input:focus-visible + span { outline: 2px solid var(--violet); outline-offset: 2px; }
.closing form small { display: block; font-size: 8px; margin-top: 12px; opacity: .6; }
.email-field { position: relative; }
.email-error { display: block; margin-top: 8px; font-size: 11px; line-height: 1.4; color: #ff8fa3; }
.closing input.invalid { border-bottom-color: #ff5c78; }
footer { min-height: 130px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: 0 3.5vw; color: var(--muted); font-size: 10px; }
footer .logo { justify-self: start; }
footer p { margin: 0; max-width: 420px; }
footer em { font-style: italic; opacity: .75; }
footer div { justify-self: end; display: flex; gap: 20px; }
footer i { font-style: normal; }

/* ---------- reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 1000px) {
  .site-header { grid-template-columns: 1fr auto; }
  .menu-toggle { display: block; justify-self: end; background: none; border: 1px solid var(--line); color: var(--text); padding: 11px 15px; font-size: 14px; font-weight: 600; border-radius: var(--sgt-radius); cursor: pointer; }
  .site-header nav { position: absolute; top: 76px; left: 0; right: 0; background: var(--bg); border-bottom: 1px solid var(--line); padding: 24px; display: none; flex-direction: column; align-items: stretch; }
  .site-header nav.is-open { display: flex; }
  .site-header nav a { padding: 12px 0; border-bottom: 1px solid rgba(35, 38, 58, .6); }
  .hero { grid-template-columns: 1fr; padding-top: 20px; }
  .hero .img-frame { transform: none; margin-top: 28px; }
  .img-frame { max-width: 700px; }
  .section-head, .roi-wrap, .how-layout { grid-template-columns: 1fr; gap: 45px; }
  .pillar-grid { grid-template-columns: 1fr; }
  .pillar { border-left: 0; border-top: 1px solid var(--line); }
  .pillar:first-child { border-top: 0; }
  .tracks-grid { grid-template-columns: 1fr; }
  .closing { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .hero { width: min(100% - 28px, 1480px); min-height: auto; }
  .hero h1 { font-size: 46px; }
  .actions { flex-direction: column; align-items: stretch; }
  .hero-foot { grid-template-columns: 1fr; justify-content: start; gap: 12px; }
  .section { width: min(100% - 28px, 1320px); padding: 68px 0; }
  .closing { padding: 80px 20px; }
  .closing form { padding: 20px; }
  footer { grid-template-columns: 1fr; gap: 16px; padding: 35px 20px; }
  footer p, footer div { justify-self: start; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}
