:root {
  --bg: #07080c;
  --surface: #11131b;
  --surface-2: #171a25;
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.14);
  --text: #eef0f7;
  --muted: #9aa1b7;
  --violet: #a78bfa;
  --cyan: #22d3ee;
  --grad: linear-gradient(135deg, #8b5cf6 0%, #6366f1 45%, #22d3ee 100%);
  --red: #ff3b5c;
  --radius: 18px;
  --max: 1160px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 16px/1.6 "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
}
body::before {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(900px 600px at 85% -10%, rgba(99, 102, 241, 0.20), transparent 60%),
    radial-gradient(700px 500px at -10% 30%, rgba(34, 211, 238, 0.10), transparent 60%),
    radial-gradient(800px 600px at 50% 110%, rgba(167, 139, 250, 0.10), transparent 60%);
}
a { color: var(--violet); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 20;
  background: rgba(7, 8, 12, 0.72); backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}
.nav .wrap { display: flex; align-items: center; gap: 28px; height: 68px; }
.logo { display: flex; align-items: center; gap: 11px; color: var(--text); font-weight: 800; font-size: 18px; letter-spacing: 0.02em; }
.logo:hover { text-decoration: none; }
.logo-mark {
  width: 34px; height: 34px; border-radius: 10px; background: var(--grad);
  display: grid; place-items: center; font: 900 18px/1 "Segoe UI", sans-serif; color: #fff;
  box-shadow: 0 6px 20px -4px rgba(99, 102, 241, 0.8);
}
.logo-mark svg { width: 24px; height: 24px; display: block; }
.tabs { display: flex; gap: 4px; margin-left: 8px; }
.tabs a {
  display: flex; align-items: center; gap: 8px; color: var(--muted); font-weight: 600; font-size: 15px;
  padding: 8px 14px; border-radius: 10px; transition: 0.15s;
}
.tabs a img { width: 20px; height: 20px; border-radius: 5px; }
.tabs a:hover { color: var(--text); background: rgba(255, 255, 255, 0.05); text-decoration: none; }
.tabs a.active { color: var(--text); background: rgba(139, 92, 246, 0.16); box-shadow: inset 0 0 0 1px rgba(167, 139, 250, 0.35); }
.tabs .soon { color: #6b7280; cursor: default; }
.tabs .soon:hover { background: none; color: #6b7280; }
.nav-cta { margin-left: auto; }
.nav-discord { margin-left: auto; }
.nav-discord + .nav-cta { margin-left: 0; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px; border-radius: 14px; font-weight: 700;
  padding: 13px 22px; border: 1px solid var(--line-2); background: var(--surface-2); color: var(--text);
  transition: transform 0.12s, box-shadow 0.2s, border-color 0.2s; cursor: pointer; font-size: 15.5px;
}
.btn:hover { text-decoration: none; border-color: rgba(255, 255, 255, 0.28); transform: translateY(-1px); }
.btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.btn.primary {
  border: 0; color: #fff; background: var(--grad);
  box-shadow: 0 12px 36px -10px rgba(99, 102, 241, 0.9), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}
.btn.primary:hover { box-shadow: 0 16px 44px -8px rgba(99, 102, 241, 1), inset 0 1px 0 rgba(255, 255, 255, 0.25); }
.btn.big { padding: 17px 28px; font-size: 17px; border-radius: 16px; }
.btn small { font-weight: 500; opacity: 0.8; font-size: 13px; }
.btn.sm { padding: 9px 16px; font-size: 14px; border-radius: 11px; }

/* ---------- hero ---------- */
.hero { padding: 88px 0 56px; text-align: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px;
  background: rgba(139, 92, 246, 0.12); border: 1px solid rgba(167, 139, 250, 0.3); color: #c4b5fd;
  font-weight: 600; font-size: 13.5px;
}
.eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: #34d399; box-shadow: 0 0 10px #34d399; }
h1 { font-size: clamp(40px, 6vw, 72px); line-height: 1.04; letter-spacing: -0.03em; margin: 22px 0 18px; font-weight: 800; }
.lead { font-size: clamp(17px, 2vw, 20px); color: var(--muted); max-width: 680px; margin: 0 auto 32px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.meta { margin-top: 16px; color: #6b7280; font-size: 13.5px; }
.hero-shot {
  margin: 56px auto 0; max-width: 1100px; border-radius: 22px; overflow: hidden;
  border: 1px solid var(--line-2);
  box-shadow: 0 40px 120px -30px rgba(99, 102, 241, 0.55), 0 0 0 1px rgba(139, 92, 246, 0.12);
}
.app-icon-xl { width: 96px; height: 96px; margin: 0 auto; filter: drop-shadow(0 14px 34px rgba(99, 102, 241, 0.6)); }

/* ---------- sections ---------- */
section { padding: 72px 0; }
.section-title { text-align: center; margin-bottom: 44px; }
.section-title h2 { font-size: clamp(28px, 3.6vw, 42px); letter-spacing: -0.02em; margin: 0 0 10px; line-height: 1.15; }
.section-title p { color: var(--muted); max-width: 620px; margin: 0 auto; }
.kicker { font-size: 12.5px; font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase; color: var(--violet); }

.pills { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 8px; }
.pill {
  display: inline-flex; align-items: center; gap: 8px; padding: 9px 15px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--line); font-weight: 600; font-size: 14px; color: #d6d9e6;
}
.pill b { color: #fff; }

/* feature rows */
.feature { display: grid; grid-template-columns: 1fr 1.25fr; gap: 56px; align-items: center; padding: 40px 0; }
.feature.flip { grid-template-columns: 1.25fr 1fr; }
.feature.flip .feature-text { order: 2; }
.feature-text h3 { font-size: clamp(24px, 2.8vw, 32px); margin: 8px 0 12px; letter-spacing: -0.015em; line-height: 1.2; }
.feature-text p { color: var(--muted); margin: 0 0 16px; }
.feature-text ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; }
.feature-text li { position: relative; padding-left: 30px; color: #d6d9e6; }
.feature-text li::before {
  content: "✓"; position: absolute; left: 0; top: 3px; width: 20px; height: 20px; border-radius: 6px; background: var(--grad);
  display: grid; place-items: center; color: #fff; font-size: 12px; font-weight: 900; line-height: 1;
}
.shot {
  border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line-2); cursor: zoom-in;
  box-shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.9), 0 0 0 1px rgba(139, 92, 246, 0.08);
  transition: transform 0.25s, box-shadow 0.25s;
}
.shot:hover { transform: translateY(-3px); box-shadow: 0 40px 100px -30px rgba(99, 102, 241, 0.45); }
.shot-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.shot-pair .shot { border-radius: 14px; }
kbd {
  font: 700 13px "Cascadia Mono", Consolas, monospace; padding: 2px 8px; border-radius: 7px;
  background: #1d2030; border: 1px solid var(--line-2); border-bottom-width: 3px; color: #fff; white-space: nowrap;
}

/* alert mockups (matches the app's on-screen alerts) */
.osd-stack { display: grid; gap: 14px; justify-items: end; padding: 28px; border-radius: var(--radius); border: 1px solid var(--line-2);
  background: linear-gradient(rgba(0,0,0,.35), rgba(0,0,0,.35)), url("assets/clutch/scene-gameplay.webp") center / cover; }
.osd {
  display: flex; align-items: center; gap: 12px; min-width: 270px; padding: 11px 16px 11px 12px; border-radius: 14px;
  background: rgba(14, 15, 22, 0.92); border: 1px solid rgba(255, 255, 255, 0.12); box-shadow: 0 10px 30px rgba(0, 0, 0, 0.55);
}
.osd .ic { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; background: var(--grad); box-shadow: 0 0 18px rgba(99, 102, 241, 0.6); }
.osd .ic svg { width: 20px; height: 20px; fill: none; stroke: #fff; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.osd .ic.rec { background: var(--red); box-shadow: 0 0 18px rgba(255, 59, 92, 0.7); }
.osd .ic.rec::after { content: ""; width: 12px; height: 12px; border-radius: 50%; background: #fff; }
.osd .ic.live { background: linear-gradient(135deg, #e11d48, #fb7185); }
.osd b { display: block; font-size: 14.5px; }
.osd span { font-size: 12px; color: var(--muted); }

/* cards / grids */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.card {
  background: linear-gradient(180deg, var(--surface-2), var(--surface)); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 24px;
}
.card h4 { margin: 12px 0 6px; font-size: 18px; }
.card p { margin: 0; color: var(--muted); font-size: 15px; }
.card .num {
  width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center;
  background: var(--grad); font-weight: 800; color: #fff;
}
.note {
  margin-top: 18px; padding: 16px 18px; border-radius: 14px; font-size: 14.5px; color: #e5e7eb;
  background: rgba(251, 191, 36, 0.08); border: 1px solid rgba(251, 191, 36, 0.28);
}
.note b { color: #fcd34d; }

table.keys { width: 100%; border-collapse: collapse; }
table.keys td { padding: 13px 4px; border-bottom: 1px solid var(--line); }
table.keys td:first-child { color: #d6d9e6; }
table.keys td:last-child { text-align: right; }

details { border-bottom: 1px solid var(--line); padding: 4px 0; }
summary { cursor: pointer; list-style: none; padding: 16px 0; font-weight: 700; font-size: 17px; display: flex; justify-content: space-between; gap: 20px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--violet); font-size: 22px; line-height: 1; transition: transform 0.2s; }
details[open] summary::after { transform: rotate(45deg); }
details p { margin: 0 0 18px; color: var(--muted); }

.changelog { display: grid; gap: 14px; }
.release { display: grid; grid-template-columns: 110px 1fr; gap: 18px; align-items: baseline; }
.release .ver { font: 800 15px "Cascadia Mono", Consolas, monospace; color: var(--violet); }
.release .ver.latest::after { content: "LATEST"; display: inline-block; margin-left: 8px; font: 800 9.5px/1 "Segoe UI", sans-serif; letter-spacing: 0.12em; padding: 4px 6px; border-radius: 5px; background: var(--grad); color: #fff; vertical-align: 2px; }
.release p { margin: 0; color: #d6d9e6; }

/* download band */
.download-band {
  text-align: center; padding: 64px 24px; border-radius: 28px; margin: 24px 0 40px;
  background:
    radial-gradient(600px 300px at 50% 0%, rgba(139, 92, 246, 0.35), transparent 70%),
    linear-gradient(180deg, var(--surface-2), var(--surface));
  border: 1px solid rgba(167, 139, 250, 0.3);
}
.download-band h2 { font-size: clamp(30px, 4vw, 46px); margin: 14px 0 10px; letter-spacing: -0.02em; }
.download-band p { color: var(--muted); margin: 0 0 28px; }

/* home: app cards */
.apps { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 20px; }
.app-card {
  position: relative; display: flex; flex-direction: column; gap: 16px; padding: 26px; border-radius: 22px;
  background: linear-gradient(180deg, var(--surface-2), var(--surface)); border: 1px solid var(--line);
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.25s;
}
.app-card:hover { transform: translateY(-4px); border-color: rgba(167, 139, 250, 0.4); box-shadow: 0 30px 70px -30px rgba(99, 102, 241, 0.6); }
.app-card .head { display: flex; align-items: center; gap: 16px; }
.app-card .head img { width: 64px; height: 64px; filter: drop-shadow(0 8px 20px rgba(99, 102, 241, 0.5)); }
.app-card h3 { margin: 0; font-size: 24px; }
.app-card .tag { color: var(--muted); font-size: 14px; }
.app-card p { margin: 0; color: #c9cde0; }
.app-card .preview { border-radius: 14px; overflow: hidden; border: 1px solid var(--line); }
.app-card .actions { display: flex; gap: 10px; margin-top: auto; }
.badge { position: absolute; top: 20px; right: 20px; font: 800 10.5px/1 "Segoe UI", sans-serif; letter-spacing: 0.12em; padding: 6px 9px; border-radius: 7px; background: rgba(52, 211, 153, 0.15); color: #6ee7b7; border: 1px solid rgba(52, 211, 153, 0.35); }
.app-card.soon { align-items: center; justify-content: center; text-align: center; min-height: 360px; border-style: dashed; border-color: var(--line-2); background: rgba(255, 255, 255, 0.015); }
.app-card.soon:hover { transform: none; box-shadow: none; border-color: var(--line-2); }
.app-card.soon .plus { width: 64px; height: 64px; border-radius: 20px; display: grid; place-items: center; font-size: 32px; color: var(--violet); background: rgba(139, 92, 246, 0.12); border: 1px dashed rgba(167, 139, 250, 0.4); }
.values .card { text-align: center; }
.values .icon { font-size: 30px; }

/* footer */
footer { border-top: 1px solid var(--line); padding: 34px 0 44px; color: #6b7280; font-size: 14px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; }
footer a { color: var(--muted); }

/* discord */
.btn.discord { background: #5865f2; border: 0; color: #fff; box-shadow: 0 10px 30px -10px rgba(88, 101, 242, 0.9); }
.btn.discord:hover { box-shadow: 0 14px 38px -8px rgba(88, 101, 242, 1); }
.discord-band {
  display: flex; flex-wrap: wrap; align-items: center; gap: 24px; justify-content: space-between;
  padding: 34px 38px; border-radius: 24px; margin: 8px 0 40px;
  background: radial-gradient(500px 220px at 0% 0%, rgba(88, 101, 242, 0.35), transparent 70%), linear-gradient(180deg, var(--surface-2), var(--surface));
  border: 1px solid rgba(88, 101, 242, 0.45);
}
.discord-band h2 { margin: 0 0 6px; font-size: clamp(24px, 3vw, 32px); }
.discord-band p { margin: 0; color: var(--muted); }

/* risk warning (Pinout Macro) */
.risk {
  display: flex; gap: 14px; align-items: flex-start; text-align: left;
  max-width: 760px; margin: 0 auto 30px; padding: 16px 20px; border-radius: 16px;
  background: rgba(239, 68, 68, 0.10); border: 1px solid rgba(239, 68, 68, 0.45); color: #fecaca; font-size: 15px;
}
.risk .ic { flex: none; width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: #dc2626; color: #fff; font-weight: 900; font-size: 18px; }
.risk b { color: #fff; }
.risk-small { color: #fca5a5; font-size: 13px; margin-top: 10px; }
.badge.danger { background: rgba(239, 68, 68, 0.15); color: #fca5a5; border-color: rgba(239, 68, 68, 0.45); }
.btn.primary.pink { background: linear-gradient(135deg, #a855f7, #ec4899); box-shadow: 0 12px 36px -10px rgba(236, 72, 153, 0.8), inset 0 1px 0 rgba(255,255,255,.25); }
.btn.primary.green { background: linear-gradient(135deg, #15803d, #22c55e 55%, #eab308); box-shadow: 0 12px 36px -10px rgba(34, 197, 94, 0.7), inset 0 1px 0 rgba(255,255,255,.25); }
.grad-pink { background: linear-gradient(135deg, #c084fc, #f472b6); -webkit-background-clip: text; background-clip: text; color: transparent; }
.grad-green { background: linear-gradient(135deg, #4ade80, #facc15); -webkit-background-clip: text; background-clip: text; color: transparent; }
.app-icon-xl.round { border-radius: 24px; }

/* lightbox */
.lightbox { position: fixed; inset: 0; z-index: 50; display: none; place-items: center; padding: 40px; background: rgba(3, 4, 8, 0.88); backdrop-filter: blur(8px); cursor: zoom-out; }
.lightbox.open { display: grid; }
.lightbox img { max-height: 90vh; border-radius: 14px; box-shadow: 0 40px 120px rgba(0, 0, 0, 0.8); }

@media (max-width: 900px) {
  .feature, .feature.flip { grid-template-columns: 1fr; gap: 28px; }
  .feature.flip .feature-text { order: 0; }
  .grid-3 { grid-template-columns: 1fr; }
  .tabs a span.hide-sm { display: none; }
  .nav-cta { display: none; }
  .nav .wrap { gap: 10px; padding: 0 14px; overflow-x: auto; }
  .logo { white-space: nowrap; font-size: 16px; }
  .tabs { margin-left: 0; }
  .tabs a { padding: 7px 9px; font-size: 14px; }
  .tabs .soon { display: none; }
  .tabs a img { display: none; }
  .nav .btn.discord span { display: none; }
  .discord-band { padding: 26px; }
  .release { grid-template-columns: 1fr; gap: 4px; }
}
