/* Hood platform — master landing. Self-contained (no external fonts/CDN),
   light/dark aware, CSS-only motion. Shares the visual language of
   /preview/preview.css without depending on its internals. */

:root {
  color-scheme: light dark;
  --bg: #ffffff;
  --bg-soft: #f5f7fa;
  --bg-card: #ffffff;
  --fg: #0d1117;
  --fg-muted: #566072;
  --border: #e6e9ef;
  --border-strong: #d4d9e2;
  --accent: #4f7cff;
  --accent-2: #9b5cff;
  --accent-3: #10b981;
  --accent-ink: #ffffff;
  --code-bg: #0d1117;
  --code-fg: #cfe3ff;
  --shadow: 0 1px 2px rgba(16,22,30,.04), 0 8px 30px rgba(16,22,30,.06);
  --shadow-lift: 0 6px 16px rgba(16,22,30,.08), 0 24px 60px rgba(16,22,30,.12);
  --radius: 16px;
  --radius-sm: 10px;
  --maxw: 1160px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0a0d12;
    --bg-soft: #10141b;
    --bg-card: #12171f;
    --fg: #e7edf5;
    --fg-muted: #93a1b3;
    --border: #212a35;
    --border-strong: #2c3743;
    --accent: #6b93ff;
    --accent-2: #b07bff;
    --accent-3: #34d399;
    --code-bg: #070a0e;
    --shadow: 0 1px 2px rgba(0,0,0,.3), 0 8px 30px rgba(0,0,0,.35);
    --shadow-lift: 0 6px 16px rgba(0,0,0,.4), 0 24px 60px rgba(0,0,0,.5);
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 16px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; }
code { font-family: ui-monospace, Menlo, monospace; font-size: .9em; background: var(--bg-soft); border: 1px solid var(--border); border-radius: 6px; padding: 1px 6px; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ---------- nav ---------- */
.nav { position: sticky; top: 0; z-index: 50; backdrop-filter: saturate(1.4) blur(10px); background: color-mix(in srgb, var(--bg) 82%, transparent); border-bottom: 1px solid var(--border); }
.nav .wrap { display: flex; align-items: center; gap: 22px; height: 60px; }
.brand { display: flex; align-items: center; gap: 9px; font-weight: 800; font-size: 18px; letter-spacing: -.02em; color: var(--fg); }
.brand:hover { text-decoration: none; }
.brand .dot { width: 14px; height: 14px; border-radius: 5px; background: linear-gradient(135deg, var(--accent), var(--accent-2)); }
.brand .muted-brand { color: var(--fg-muted); font-weight: 600; }
.nav nav { display: flex; gap: 18px; margin-left: auto; font-size: 14px; }
.nav nav a { color: var(--fg-muted); }
.nav nav a:hover { color: var(--fg); text-decoration: none; }
@media (max-width: 760px) { .nav nav { display: none; } }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; gap: 8px; font: 600 14.5px/1 inherit; padding: 12px 20px; border-radius: 12px; border: 1px solid var(--border-strong); background: var(--bg-card); color: var(--fg); cursor: pointer; transition: .16s; }
.btn:hover { border-color: var(--accent); transform: translateY(-1px); box-shadow: var(--shadow); text-decoration: none; }
.btn.primary { background: linear-gradient(135deg, var(--accent), var(--accent-2)); border: 0; color: #fff; box-shadow: 0 8px 22px color-mix(in srgb, var(--accent) 40%, transparent); }
.btn.primary:hover { filter: brightness(1.06); }
.btn.sm { padding: 8px 14px; font-size: 13px; border-radius: 10px; }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; padding: 84px 0 70px; }
.hero-bg { position: absolute; inset: 0; pointer-events: none; }
.hero-bg i { position: absolute; border-radius: 50%; filter: blur(80px); opacity: .35; }
.hero-bg .b1 { width: 520px; height: 520px; left: -140px; top: -160px; background: var(--accent); animation: drift 16s ease-in-out infinite alternate; }
.hero-bg .b2 { width: 460px; height: 460px; right: -120px; top: -60px; background: var(--accent-2); animation: drift 19s ease-in-out infinite alternate-reverse; }
.hero-bg .b3 { width: 380px; height: 380px; right: 24%; bottom: -220px; background: var(--accent-3); opacity: .22; animation: drift 22s ease-in-out infinite alternate; }
@keyframes drift { from { transform: translate(0,0) scale(1); } to { transform: translate(60px, 40px) scale(1.12); } }

.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; position: relative; }
@media (max-width: 940px) { .hero-grid { grid-template-columns: 1fr; } }
.eyebrow { display: inline-block; font-size: 12.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); background: color-mix(in srgb, var(--accent) 10%, transparent); border: 1px solid color-mix(in srgb, var(--accent) 25%, transparent); border-radius: 20px; padding: 5px 13px; margin-bottom: 16px; }
.hero h1 { font-size: clamp(36px, 5.2vw, 62px); line-height: 1.04; letter-spacing: -.035em; margin: 0 0 18px; font-weight: 800; }
.hero h1 .grad { background: linear-gradient(100deg, var(--accent), var(--accent-2) 55%, var(--accent-3)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .lead { font-size: 18.5px; color: var(--fg-muted); max-width: 34em; margin: 0 0 26px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 34px; }
.hero-stats { display: flex; flex-wrap: wrap; gap: 28px; }
.hero-stats .s b { display: block; font-size: 26px; letter-spacing: -.02em; }
.hero-stats .s span { font-size: 12.5px; color: var(--fg-muted); text-transform: uppercase; letter-spacing: .06em; }

/* floating capability cards */
.hero-visual { position: relative; min-height: 420px; }
.fcard { position: absolute; background: var(--bg-card); border: 1px solid var(--border); border-radius: 14px; box-shadow: var(--shadow-lift); padding: 14px 16px; animation: floaty 7s ease-in-out infinite; }
.fcard h5 { margin: 0 0 4px; font-size: 12.5px; letter-spacing: .02em; }
.fcard p { margin: 0; font-size: 11.5px; color: var(--fg-muted); }
.fcard .bar { height: 6px; border-radius: 4px; background: linear-gradient(90deg, var(--accent), var(--accent-2)); margin-top: 10px; }
.fcard.push { top: 6%; left: 4%; width: 250px; animation-delay: 0s; }
.fcard.modal { top: 34%; right: 2%; width: 230px; animation-delay: 1.4s; }
.fcard.adunit { bottom: 12%; left: 12%; width: 220px; animation-delay: 2.8s; }
.fcard.tagm { bottom: 0; right: 18%; width: 200px; animation-delay: 4.2s; }
.fcard .ico { float: right; font-size: 18px; }
.fcard .adbox { height: 64px; border-radius: 8px; background: linear-gradient(135deg, #4f7cff, #9b5cff); margin-top: 8px; position: relative; }
.fcard .adbox::after { content: "970×250"; position: absolute; right: 8px; bottom: 6px; color: #fff; opacity: .75; font-size: 10px; }
@keyframes floaty { 0%,100% { transform: translateY(0) rotate(-.4deg); } 50% { transform: translateY(-14px) rotate(.4deg); } }
@media (max-width: 940px) { .hero-visual { display: none; } }
@media (prefers-reduced-motion: reduce) { .fcard, .hero-bg i { animation: none !important; } }

/* ---------- sections ---------- */
section { padding: 64px 0; }
section.alt { background: var(--bg-soft); border-block: 1px solid var(--border); }
.section-head { max-width: 44em; margin-bottom: 34px; }
.section-head h2 { font-size: clamp(26px, 3.4vw, 38px); letter-spacing: -.03em; margin: 0 0 10px; }
.section-head p { font-size: 16.5px; color: var(--fg-muted); margin: 0; }

/* pillars */
.pillars { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
@media (max-width: 860px) { .pillars { grid-template-columns: 1fr; } }
.pillar { display: flex; flex-direction: column; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow); transition: .18s; position: relative; overflow: hidden; }
.pillar:hover { border-color: var(--accent); box-shadow: var(--shadow-lift); transform: translateY(-3px); text-decoration: none; }
.pillar::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: linear-gradient(90deg, var(--accent), var(--accent-2)); }
.pillar.engage::before { background: linear-gradient(90deg, var(--accent-2), var(--accent-3)); }
.pillar .tagline { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
.pillar h3 { margin: 6px 0 8px; font-size: 24px; letter-spacing: -.02em; color: var(--fg); }
.pillar > p { color: var(--fg-muted); font-size: 15px; margin: 0 0 16px; }
.pillar ul { list-style: none; margin: 0 0 22px; padding: 0; display: grid; gap: 9px; }
.pillar li { padding-left: 26px; position: relative; font-size: 14.5px; color: var(--fg); }
.pillar li::before { content: "✓"; position: absolute; left: 0; top: 0; color: var(--accent-3); font-weight: 800; }
.pillar li span { color: var(--fg-muted); }
.pillar .go { margin-top: auto; font-weight: 700; color: var(--accent); font-size: 15px; }

/* platforms */
.platforms { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 860px) { .platforms { grid-template-columns: 1fr; } }
.plat { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 10px; }
.plat .pico { font-size: 30px; line-height: 1; }
.plat h3 { margin: 0; font-size: 19px; letter-spacing: -.01em; }
.plat p { margin: 0; color: var(--fg-muted); font-size: 14.5px; flex: 1; }
.store-btns { display: flex; flex-direction: column; gap: 10px; margin-top: 6px; }
.store-btn { display: flex; align-items: center; gap: 12px; background: #0d1117; color: #fff; border: 1px solid #2c3743; border-radius: 12px; padding: 10px 16px; transition: .16s; }
.store-btn:hover { border-color: var(--accent); transform: translateY(-1px); text-decoration: none; }
.store-btn img { width: 26px; height: 26px; }
.store-btn small { display: block; font-size: 10.5px; opacity: .7; letter-spacing: .04em; text-transform: uppercase; }
.store-btn b { font-size: 15px; }

/* quick start */
.quickstart { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
@media (max-width: 860px) { .quickstart { grid-template-columns: 1fr; } }
.qs h3 { margin: 0 0 4px; font-size: 18px; }
.qs .sub { color: var(--fg-muted); font-size: 14px; margin: 0 0 12px; }
.code-wrap { position: relative; }
.code { background: var(--code-bg); color: var(--code-fg); border-radius: var(--radius-sm); padding: 18px; margin: 0; overflow-x: auto; font: 12.5px/1.65 ui-monospace, Menlo, Consolas, monospace; }
.copy-btn { position: absolute; top: 10px; right: 10px; z-index: 2; font: 600 11.5px/1 inherit; color: #cfe3ff; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16); border-radius: 8px; padding: 6px 10px; cursor: pointer; }
.copy-btn:hover { background: rgba(255,255,255,.16); }

/* footer */
footer { border-top: 1px solid var(--border); padding: 30px 0 40px; color: var(--fg-muted); font-size: 13.5px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 18px; align-items: center; justify-content: space-between; }
footer nav { display: flex; flex-wrap: wrap; gap: 16px; }
