/* ============================================================
   Shirley OS — GTM site
   Brand: deep navy ground · mint/emerald signal · cream type
   ============================================================ */

:root {
  --ink:      #0B1620;
  --ink-2:    #0F1E29;
  --ink-3:    #142838;
  --line:     #1E3242;
  --steel:    #4F6B7E;
  --steel-2:  #83A2B5;
  --fg:       #EEF2EC;
  --fg-soft:  #AEC0C1;
  --muted:    #6E8696;

  --signal:     #5FE0A8;   /* mint — primary accent */
  --signal-hi:  #8BF0C4;
  --emerald:    #2FBE86;   /* deeper emerald — CTA fill */
  --signal-dim: rgba(95,224,168,0.12);
  --signal-line:rgba(95,224,168,0.30);

  --card:     #0F1E29;
  --card-br:  #1C3141;
  --scrim:    rgba(11,22,32,0.74);

  --maxw: 1140px;
  --gutter: clamp(20px, 5vw, 56px);

  --mono: ui-monospace, "SF Mono", "JetBrains Mono", "Cascadia Code", Menlo, Consolas, monospace;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --display: "Helvetica Neue", Helvetica, "Segoe UI", system-ui, Arial, sans-serif;

  color-scheme: dark;
}

:root[data-theme="light"] {
  --ink:      #F4F2E8;
  --ink-2:    #ECEADC;
  --ink-3:    #E3E0CF;
  --line:     #D7D3C0;
  --steel:    #6B8292;
  --steel-2:  #46606F;
  --fg:       #0C1A16;
  --fg-soft:  #35504A;
  --muted:    #637A72;
  --signal:     #0F9A64;
  --signal-hi:  #0A8054;
  --emerald:    #12A06A;
  --signal-dim: rgba(15,154,100,0.10);
  --signal-line:rgba(15,154,100,0.28);
  --card:     #FBFAF2;
  --card-br:  #E0DCC8;
  --scrim:    rgba(244,242,232,0.72);
  color-scheme: light;
}

@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --ink:      #F4F2E8; --ink-2: #ECEADC; --ink-3: #E3E0CF; --line: #D7D3C0;
    --steel:    #6B8292; --steel-2: #46606F; --fg: #0C1A16; --fg-soft: #35504A; --muted: #637A72;
    --signal: #0F9A64; --signal-hi: #0A8054; --emerald: #12A06A;
    --signal-dim: rgba(15,154,100,0.10); --signal-line: rgba(15,154,100,0.28);
    --card: #FBFAF2; --card-br: #E0DCC8; --scrim: rgba(244,242,232,0.72);
    color-scheme: light;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--ink);
  color: var(--fg);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.wrap { max-width: var(--maxw); margin: 0 auto; padding-inline: var(--gutter); }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 2px solid var(--signal); outline-offset: 3px; border-radius: 2px; }
img { max-width: 100%; display: block; }

.mono { font-family: var(--mono); }
.eyebrow {
  font-family: var(--mono); font-size: 12.5px; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--signal); display: inline-flex; align-items: center; gap: 10px; margin: 0 0 22px;
}
.eyebrow::before { content: ""; width: 26px; height: 1px; background: var(--signal); opacity: .85; }

h1, h2, h3 { font-family: var(--display); font-weight: 800; letter-spacing: -0.03em; text-wrap: balance; margin: 0; }
h2 { font-size: clamp(30px, 4.2vw, 50px); line-height: 1.04; }
h3 { font-size: 21px; letter-spacing: -0.015em; }
p { margin: 0; }
.lead { color: var(--fg-soft); font-size: clamp(17px, 1.6vw, 20px); line-height: 1.55; max-width: 60ch; }
.dim { color: var(--muted); }
em { color: var(--fg); font-style: italic; }

/* ---------- nav ---------- */
header.nav {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(14px);
  background: color-mix(in srgb, var(--ink) 80%, transparent);
  border-bottom: 1px solid var(--line);
}
.nav-row { display: flex; align-items: center; justify-content: space-between; height: 66px; gap: 20px; }
.brand { display: flex; align-items: center; gap: 10px; }
.brand img { height: 30px; width: auto; }
.nav-links { display: flex; gap: 26px; align-items: center; }
.nav-links a { font-size: 14.5px; color: var(--fg-soft); transition: color .18s; }
.nav-links a:hover, .nav-links a.active { color: var(--fg); }
.nav-mobile-only { display: none; }
.nav-toggle { display: none; background: transparent; border: 1px solid var(--line); border-radius: 3px;
  width: 42px; height: 34px; color: var(--fg); font-size: 17px; line-height: 1; cursor: pointer;
  align-items: center; justify-content: center; transition: border-color .18s; }
.nav-toggle:hover { border-color: var(--steel); }
@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; }
  .nav-links .nav-mobile-only { display: block; }
  .nav-links {
    display: flex; flex-direction: column; align-items: stretch; gap: 0;
    position: absolute; top: 100%; left: 0; right: 0;
    background: color-mix(in srgb, var(--ink) 97%, transparent); backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--line);
    max-height: 0; overflow: hidden; opacity: 0; pointer-events: none;
    transition: max-height .26s ease, opacity .2s ease;
  }
  .nav-links a { padding: 15px 24px; font-size: 16px; }
  .nav-links a:not(:last-child) { border-bottom: 1px solid var(--line); }
  .nav-row.nav-open .nav-links { max-height: 80vh; opacity: 1; pointer-events: auto; }
}

.btn {
  font-family: var(--mono); font-size: 13px; letter-spacing: .02em;
  display: inline-flex; align-items: center; gap: 8px; padding: 11px 18px; border-radius: 3px;
  cursor: pointer; border: 1px solid var(--emerald); background: var(--emerald); color: #071a12;
  font-weight: 700; transition: transform .16s, box-shadow .16s, background .16s; white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 8px 26px -10px var(--emerald); background: var(--signal); }
.btn.ghost { background: transparent; color: var(--fg); border-color: var(--line); font-weight: 600; }
.btn.ghost:hover { border-color: var(--signal); box-shadow: none; }
.btn .arr { transition: transform .18s; }
.btn:hover .arr { transform: translateX(3px); }
:root[data-theme="light"] .btn, :root:not([data-theme="dark"]) .btn { color: #F4F2E8; }

.themer {
  font-family: var(--mono); font-size: 12px; color: var(--muted);
  background: transparent; border: 1px solid var(--line); border-radius: 3px; padding: 7px 10px;
  cursor: pointer; transition: border-color .18s, color .18s;
}
.themer:hover { border-color: var(--steel); color: var(--fg-soft); }
.nav-cta { display: flex; gap: 12px; align-items: center; }

/* ---------- hero ---------- */
.hero { position: relative; min-height: min(92vh, 880px); display: flex; align-items: center; isolation: isolate; }
#signal-canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2; display: block; }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(120% 90% at 12% 18%, transparent 28%, var(--ink) 92%),
              linear-gradient(180deg, transparent 42%, var(--ink) 98%);
}
.hero-inner { padding-block: clamp(70px, 12vh, 150px); }
.hero h1 { font-size: clamp(38px, 6.4vw, 80px); line-height: .98; max-width: 17ch; margin-bottom: 26px; }
.hero h1 .hl { color: var(--signal); }
.hero .lead { max-width: 58ch; margin-bottom: 36px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 44px; }
.loopline {
  font-family: var(--mono); font-size: 13px; color: var(--steel-2);
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px;
  padding-top: 26px; border-top: 1px solid var(--line); max-width: 660px;
}
.loopline b { color: var(--signal); font-weight: 600; }
.loopline .sep { color: var(--steel); }

/* ---------- sections ---------- */
section { position: relative; padding-block: clamp(72px, 11vh, 130px); }
.section-br { border-top: 1px solid var(--line); }
.colhead { max-width: 56ch; margin-bottom: 54px; }
.colhead p { color: var(--fg-soft); margin-top: 20px; font-size: 18px; }

.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* ---------- gap ---------- */
.gap-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(32px, 6vw, 84px); align-items: center; }
@media (max-width: 820px) { .gap-grid { grid-template-columns: 1fr; } }
.contrast { font-family: var(--mono); font-size: 14px; line-height: 2; border: 1px solid var(--card-br); border-radius: 6px; overflow: hidden; background: var(--card); }
.contrast .row { display: flex; justify-content: space-between; gap: 16px; padding: 14px 20px; }
.contrast .row + .row { border-top: 1px solid var(--line); }
.contrast .k { color: var(--muted); }
.contrast .v-bad { color: var(--steel-2); }
.contrast .v-good { color: var(--signal); font-weight: 600; }

/* ---------- unit / struct ---------- */
.unit-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 72px); align-items: center; }
@media (max-width: 820px) { .unit-grid { grid-template-columns: 1fr; } }
.struct {
  font-family: var(--mono); font-size: clamp(13px, 1.5vw, 15.5px); line-height: 1.95;
  background: var(--card); border: 1px solid var(--card-br); border-radius: 8px;
  padding: clamp(22px, 3vw, 34px); overflow-x: auto; box-shadow: 0 30px 80px -50px rgba(0,0,0,.8);
}
.struct .c-key { color: var(--signal); } .struct .c-pun { color: var(--steel); }
.struct .c-com { color: var(--muted); }  .struct .c-typ { color: var(--steel-2); }
.chiprow { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.chip { font-family: var(--mono); font-size: 12.5px; color: var(--fg-soft); border: 1px solid var(--line); border-radius: 100px; padding: 7px 14px; }
.chip b { color: var(--signal); font-weight: 600; }

/* ---------- loop ---------- */
.loop { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; counter-reset: step; margin-top: 20px; }
@media (max-width: 880px) { .loop { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .loop { grid-template-columns: 1fr; } }
.step { position: relative; background: var(--card); border: 1px solid var(--card-br); border-radius: 8px; padding: 26px 22px 28px; overflow: hidden; transition: border-color .3s, transform .3s; }
.step::before { counter-increment: step; content: counter(step, decimal-leading-zero); font-family: var(--mono); font-size: 12px; color: var(--signal); letter-spacing: .1em; }
.step.active { border-color: var(--signal-line); transform: translateY(-4px); }
.step .bar { position: absolute; left: 0; top: 0; height: 2px; width: 0; background: var(--signal); transition: width .5s linear; }
.step.active .bar { width: 100%; }
.step h3 { margin: 14px 0 10px; } .step p { color: var(--fg-soft); font-size: 15px; line-height: 1.55; }
.step .ar { position: absolute; right: -11px; top: 50%; transform: translateY(-50%); color: var(--steel); z-index: 2; font-family: var(--mono); }
@media (max-width: 880px) { .step .ar { display: none; } }
.loop-caption { font-family: var(--mono); font-size: 13px; color: var(--steel-2); margin-top: 28px; text-align: center; }
.loop-caption b { color: var(--signal); font-weight: 600; }

/* ---------- showcase (screenshots) ---------- */
.showcase { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 6vw, 72px); align-items: center; }
.showcase.flip { direction: rtl; } .showcase.flip > * { direction: ltr; }
@media (max-width: 820px) { .showcase, .showcase.flip { grid-template-columns: 1fr; direction: ltr; } }
.shot { border: 1px solid var(--card-br); border-radius: 10px; overflow: hidden; background: var(--ink-2); box-shadow: 0 40px 90px -60px rgba(0,0,0,.9); }
.shot img { width: 100%; }
.feat h3 { font-size: 27px; margin-bottom: 14px; }
.feat p { color: var(--fg-soft); }
.feat ul { list-style: none; margin: 22px 0 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.feat li { position: relative; padding-left: 26px; color: var(--fg-soft); font-size: 15.5px; }
.feat li::before { content: "→"; position: absolute; left: 0; color: var(--signal); font-family: var(--mono); }

/* ---------- integrations wall ---------- */
.ints { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; margin-top: 10px; }
@media (max-width: 760px) { .ints { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 440px) { .ints { grid-template-columns: repeat(3, 1fr); } }
.int { aspect-ratio: 1; display: grid; place-items: center; background: #fff; border: 1px solid var(--card-br); border-radius: 10px; padding: 16px; transition: border-color .2s, transform .2s; }
.int:hover { border-color: var(--signal-line); transform: translateY(-3px); }
.int img { max-width: 78%; max-height: 58%; object-fit: contain; }

/* ---------- products ---------- */
.products { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
@media (max-width: 820px) { .products { grid-template-columns: 1fr; } }
.product { position: relative; background: var(--card); border: 1px solid var(--card-br); border-radius: 10px; padding: clamp(26px, 3.2vw, 40px); display: flex; flex-direction: column; transition: border-color .25s, transform .25s; }
.product:hover { border-color: var(--signal-line); transform: translateY(-3px); }
.product .tag { font-family: var(--mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--steel-2); margin-bottom: 18px; }
.product h3 { font-size: 27px; margin-bottom: 8px; }
.product .sub { color: var(--signal); font-family: var(--mono); font-size: 13px; margin-bottom: 20px; }
.product ul { list-style: none; margin: 0 0 30px; padding: 0; display: flex; flex-direction: column; gap: 13px; }
.product li { position: relative; padding-left: 26px; color: var(--fg-soft); font-size: 15.5px; }
.product li::before { content: "→"; position: absolute; left: 0; color: var(--signal); font-family: var(--mono); }
.product .foot { margin-top: auto; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.product .url { font-family: var(--mono); font-size: 12.5px; color: var(--muted); }

/* ---------- moat ---------- */
.moat { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
@media (max-width: 820px) { .moat { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .moat { grid-template-columns: 1fr; } }
.cell { background: var(--ink-2); padding: 30px 26px; }
.cell .n { font-family: var(--mono); font-size: 12px; color: var(--signal); letter-spacing: .08em; }
.cell h3 { font-size: 18px; margin: 14px 0 9px; } .cell p { color: var(--fg-soft); font-size: 14.5px; line-height: 1.55; }

/* ---------- proof ---------- */
.proof-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(18px, 3vw, 40px); }
@media (max-width: 760px) { .proof-grid { grid-template-columns: 1fr 1fr; } }
.stat .big { font-family: var(--display); font-weight: 800; font-size: clamp(36px, 5vw, 56px); letter-spacing: -0.03em; color: var(--fg); line-height: 1; font-variant-numeric: tabular-nums; }
.stat .big span { color: var(--signal); }
.stat .cap { font-family: var(--mono); font-size: 12.5px; color: var(--steel-2); margin-top: 14px; line-height: 1.5; }
.proof-note { font-family: var(--mono); font-size: 12px; color: var(--muted); margin-top: 38px; max-width: 70ch; line-height: 1.7; }

/* ---------- cta / form ---------- */
.cta-band { background: var(--ink-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.cta-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 7vw, 90px); align-items: start; }
@media (max-width: 820px) { .cta-grid { grid-template-columns: 1fr; } }
form { display: flex; flex-direction: column; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field label { font-family: var(--mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.field input, .field select, .field textarea { font-family: var(--sans); font-size: 15px; color: var(--fg); background: var(--ink); border: 1px solid var(--card-br); border-radius: 5px; padding: 12px 14px; transition: border-color .18s; }
.field input::placeholder, .field textarea::placeholder { color: var(--muted); }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--signal); outline: none; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 480px) { .two { grid-template-columns: 1fr; } }
form .btn { justify-content: center; padding: 14px; font-size: 14px; }
.form-note { font-family: var(--mono); font-size: 12px; color: var(--muted); }
.toast { font-family: var(--mono); font-size: 13.5px; color: var(--signal); border: 1px solid var(--signal-line); background: var(--signal-dim); border-radius: 5px; padding: 13px 16px; display: none; }
.toast.show { display: block; }

/* ---------- footer ---------- */
footer { padding-block: 54px; color: var(--muted); }
.foot-row { display: flex; justify-content: space-between; gap: 30px; flex-wrap: wrap; align-items: center; }
.foot-links { display: flex; gap: 24px; flex-wrap: wrap; font-family: var(--mono); font-size: 13px; }
.foot-links a { color: var(--fg-soft); transition: color .18s; }
.foot-links a:hover { color: var(--signal); }
.foot-meta { font-family: var(--mono); font-size: 12.5px; color: var(--muted); }
.foot-end { display: flex; flex-direction: column; align-items: flex-end; gap: 12px; }
@media (max-width: 560px) { .foot-end { align-items: flex-start; } }

/* ---------- generic page header (subpages) ---------- */
.page-head { padding-block: clamp(60px, 10vh, 120px) clamp(30px,5vh,60px); }
.page-head h1 { font-size: clamp(34px, 5.5vw, 66px); line-height: 1.0; max-width: 18ch; margin-bottom: 22px; }
.prose { max-width: 68ch; }
.prose p + p { margin-top: 18px; }
