/* ============================================================
   Agency OS — shared design system (mikee.ai/agency-os funnel)
   Hand-authored, framework-free. Linked by the root opt-in
   landing and the /agency-os/ training page so both read as
   one product. Harmonized with the mikee.ai indigo/slate brand.
   ============================================================ */

:root {
  /* --- primitive tokens --- */
  --ink-950: #070b14;
  --ink-900: #0b0f1a;
  --ink-850: #0e1422;
  --ink-800: #131b2e;
  --ink-700: #1c273f;
  --line:    #263349;
  --line-2:  #33425e;

  --fog-100: #f2f5fb;
  --fog-200: #dfe6f2;
  --fog-300: #b8c2d6;
  --fog-400: #93a0ba;
  --fog-500: #6c7893;

  --indigo:  #6366f1;
  --indigo-bright: #818cf8;
  --violet:  #8b5cf6;
  --violet-bright: #a78bfa;
  --sky:     #38bdf8;
  --gold:    #f5b13d;
  --gold-soft:#fbbf24;
  --green:   #34d399;
  --rose:    #fb7185;

  /* --- semantic tokens --- */
  --bg:        var(--ink-900);
  --bg-elev:   var(--ink-800);
  --bg-panel:  var(--ink-850);
  --text:      #e9edf7;
  --text-muted:var(--fog-400);
  --text-dim:  var(--fog-500);
  --border:    var(--line);
  --accent:    var(--indigo);
  --accent-2:  var(--violet);
  --focus:     var(--indigo-bright);

  --grad-brand: linear-gradient(120deg, var(--indigo) 0%, var(--violet) 55%, var(--sky) 130%);
  --grad-cta:   linear-gradient(120deg, #6d74ff 0%, #8b5cf6 100%);
  --grad-text:  linear-gradient(100deg, #c3c9ff 0%, #a78bfa 60%, #7dd3fc 110%);

  /* --- shape & rhythm --- */
  --radius:   14px;
  --radius-sm:10px;
  --radius-lg:22px;
  --radius-pill:999px;
  --maxw:     1120px;
  --readw:    720px;
  --shadow:   0 24px 60px -28px rgba(2,6,18,.85);
  --shadow-glow: 0 0 0 1px rgba(129,140,248,.18), 0 30px 80px -30px rgba(99,102,241,.45);

  --ease:     cubic-bezier(.22,.61,.36,1);
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* ambient background: quiet grid + two color auroras */
body::before {
  content: "";
  position: fixed; inset: 0; z-index: -2;
  background:
    radial-gradient(60% 50% at 15% -5%, rgba(99,102,241,.20), transparent 60%),
    radial-gradient(55% 45% at 92% 8%, rgba(139,92,246,.16), transparent 62%),
    radial-gradient(50% 60% at 50% 108%, rgba(56,189,248,.10), transparent 60%),
    var(--bg);
}
body::after {
  content: "";
  position: fixed; inset: 0; z-index: -1; opacity: .5;
  background-image:
    linear-gradient(to right, rgba(148,163,184,.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(148,163,184,.05) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(80% 60% at 50% 0%, #000 30%, transparent 85%);
          mask-image: radial-gradient(80% 60% at 50% 0%, #000 30%, transparent 85%);
}

img { max-width: 100%; display: block; }
a { color: inherit; }

/* ---- layout ---- */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: clamp(18px, 5vw, 40px); }
.narrow { max-width: 760px; }
.section { padding-block: clamp(56px, 9vw, 104px); position: relative; }

/* ---- type ---- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .8rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  color: var(--indigo-bright);
}
.eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--grad-brand); box-shadow: 0 0 12px var(--indigo); }

h1, h2, h3 { line-height: 1.08; letter-spacing: -.02em; margin: 0 0 .4em; font-weight: 800; }
h1 { font-size: clamp(2.3rem, 6vw, 4rem); }
h2 { font-size: clamp(1.8rem, 4vw, 2.85rem); }
h3 { font-size: clamp(1.15rem, 2vw, 1.4rem); font-weight: 700; }
.balance { text-wrap: balance; }
.lede { font-size: clamp(1.08rem, 2vw, 1.3rem); color: var(--fog-300); text-wrap: pretty; }
.grad { background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
.tabnum { font-variant-numeric: tabular-nums; }
.muted { color: var(--text-muted); }

/* ---- pill / badge ---- */
.pill {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 7px 15px; border-radius: var(--radius-pill);
  background: rgba(129,140,248,.09);
  border: 1px solid rgba(129,140,248,.28);
  color: var(--fog-200); font-size: .86rem; font-weight: 500;
  backdrop-filter: blur(6px);
}

/* ---- buttons ---- */
.btn {
  --_bg: var(--grad-cta);
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font: inherit; font-weight: 700; font-size: 1.02rem; line-height: 1;
  padding: 16px 26px; border: 0; border-radius: var(--radius);
  color: #fff; background: var(--_bg); cursor: pointer;
  text-decoration: none; letter-spacing: -.01em;
  box-shadow: 0 14px 34px -14px rgba(109,116,255,.75), inset 0 1px 0 rgba(255,255,255,.22);
  transition: transform .18s var(--ease), box-shadow .18s var(--ease), filter .18s var(--ease);
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 22px 46px -16px rgba(109,116,255,.9), inset 0 1px 0 rgba(255,255,255,.28); filter: saturate(1.06); }
.btn:active { transform: translateY(0); }
.btn.ghost { background: transparent; color: var(--fog-200); box-shadow: inset 0 0 0 1px var(--line-2); }
.btn.ghost:hover { background: rgba(129,140,248,.08); box-shadow: inset 0 0 0 1px var(--indigo); }
.btn.gold { --_bg: linear-gradient(120deg,#f5b13d,#fb923c); color: #1a1205; box-shadow: 0 14px 34px -14px rgba(245,177,61,.7), inset 0 1px 0 rgba(255,255,255,.4); }
.btn.lg { padding: 19px 32px; font-size: 1.08rem; }
.btn.block { width: 100%; }
.btn:disabled, .btn[aria-disabled="true"] { opacity: .55; cursor: not-allowed; transform: none; filter: grayscale(.3); }

/* focus visibility (a11y) */
:where(a, button, input, [tabindex]):focus-visible {
  outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 6px;
}

/* ---- cards / panels ---- */
.card {
  background: linear-gradient(180deg, rgba(28,39,63,.72), rgba(14,20,34,.72));
  border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: clamp(20px, 3vw, 30px);
  box-shadow: var(--shadow);
}
.card.glow { box-shadow: var(--shadow-glow); border-color: rgba(129,140,248,.35); }

.grid { display: grid; gap: clamp(16px, 2.4vw, 22px); }
.g2 { grid-template-columns: repeat(2, 1fr); }
.g3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 860px) { .g2, .g3 { grid-template-columns: 1fr; } }

/* feature tile */
.tile { padding: 22px; border-radius: var(--radius); border: 1px solid var(--border); background: rgba(19,27,46,.6); }
.tile .ic {
  width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center;
  background: rgba(129,140,248,.12); border: 1px solid rgba(129,140,248,.28);
  color: var(--indigo-bright); margin-bottom: 14px;
}
.tile h3 { margin-bottom: 6px; }
.tile p { margin: 0; color: var(--text-muted); font-size: .98rem; }

/* checklist */
.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.checks li { display: flex; gap: 12px; align-items: flex-start; color: var(--fog-200); }
.checks .ck {
  flex: 0 0 auto; width: 22px; height: 22px; border-radius: 7px; margin-top: 2px;
  display: grid; place-items: center; color: #071018; font-weight: 900; font-size: .8rem;
  background: linear-gradient(135deg, var(--green), #10b981);
}

/* ---- opt-in form ---- */
.optin { display: grid; gap: 12px; }
.field { position: relative; }
.optin input[type="email"], .optin input[type="text"] {
  width: 100%; font: inherit; font-size: 1.02rem; color: var(--text);
  padding: 16px 18px; border-radius: var(--radius);
  background: rgba(7,11,20,.66); border: 1px solid var(--line-2);
  transition: border-color .15s var(--ease), box-shadow .15s var(--ease);
}
.optin input::placeholder { color: var(--fog-500); }
.optin input:focus { border-color: var(--indigo); box-shadow: 0 0 0 4px rgba(99,102,241,.18); outline: none; }
.optin .row { display: grid; grid-template-columns: 1fr auto; gap: 12px; }
@media (max-width: 560px) { .optin .row { grid-template-columns: 1fr; } }
.finehint { font-size: .82rem; color: var(--text-muted); display: flex; align-items: center; gap: 7px; }
.formmsg { font-size: .92rem; min-height: 1.2em; }
.formmsg.err { color: var(--rose); }
.formmsg.ok { color: var(--green); }

/* ---- proof / trust strip ---- */
.trust { display: flex; flex-wrap: wrap; gap: 10px 22px; align-items: center; color: var(--text-muted); font-size: .9rem; }
.trust span { display: inline-flex; align-items: center; gap: 8px; }
.trust svg { color: var(--indigo-bright); flex: 0 0 auto; }

/* ---- divider label ---- */
.hr { height: 1px; background: linear-gradient(to right, transparent, var(--line-2), transparent); border: 0; margin: 0; }

/* ---- header ---- */
.top { position: sticky; top: 0; z-index: 40; backdrop-filter: blur(10px); background: rgba(7,11,20,.55); border-bottom: 1px solid rgba(38,51,73,.7); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; padding-block: 14px; }
.brand { display: inline-flex; align-items: center; gap: 11px; font-weight: 800; letter-spacing: -.02em; text-decoration: none; color: var(--text); }
.brand .mark {
  width: 30px; height: 30px; border-radius: 9px; background: var(--grad-brand);
  display: grid; place-items: center; color: #fff; font-weight: 900; font-size: .95rem;
  box-shadow: 0 6px 18px -6px rgba(99,102,241,.8), inset 0 1px 0 rgba(255,255,255,.35);
}
.brand small { display: block; font-size: .66rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--text-dim); }

/* ---- footer ---- */
.foot { border-top: 1px solid var(--border); color: var(--text-muted); font-size: .88rem; }
.foot .wrap { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; justify-content: space-between; padding-block: 30px; }
.foot a { color: var(--text-muted); text-decoration: none; }
.foot a:hover { color: var(--fog-200); }

/* ---- reveal on scroll ---- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* subtle float for hero art */
@keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
