/* Kazcade — kazcade.app site styles. Brand tokens transcribed from brand/kazcade_brand.html. */
@import url('https://fonts.googleapis.com/css2?family=Bricolage+Grotesque:opsz,wght@12..96,600;12..96,700;12..96,800&family=Hanken+Grotesk:wght@400;500;600;700&display=swap');

:root {
  --ink: #04120F;
  --ink-2: #080B11;
  --bg: #0A0D13;
  --surface: #121826;
  --surface-2: #1A2130;
  --border: #232c3d;
  --text: #E7ECF4;
  --text-2: #C9D1DE;
  --muted: #8B97A8;
  --cyan: #35E0D0;
  --blue: #4D8CFF;
  --violet: #B06BFF;
  --green: #46D17A;
  --grad: linear-gradient(120deg, #35E0D0, #4D8CFF 55%, #B06BFF);
  --disp: 'Bricolage Grotesque', ui-sans-serif, system-ui, sans-serif;
  --ui: 'Hanken Grotesk', ui-sans-serif, system-ui, -apple-system, sans-serif;
  --maxw: 1080px;
  --r: 16px;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--ui);
  color: var(--text);
  background:
    radial-gradient(1200px 700px at 50% -10%, rgba(77,140,255,0.14), transparent 60%),
    radial-gradient(900px 600px at 85% 10%, rgba(176,107,255,0.10), transparent 55%),
    var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: var(--cyan); text-decoration: none; }
a:hover { text-decoration: underline; }
::selection { background: rgba(53,224,208,0.28); }

h1, h2, h3, h4 { font-family: var(--disp); font-weight: 800; line-height: 1.1; text-wrap: balance; margin: 0 0 .5em; letter-spacing: -0.01em; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---- top bar ---- */
.nav { position: sticky; top: 0; z-index: 20; backdrop-filter: blur(12px); background: rgba(4,18,15,0.72); border-bottom: 1px solid var(--border); }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 66px; }
.brand { display: flex; align-items: center; gap: 12px; font-family: var(--disp); font-weight: 800; font-size: 20px; letter-spacing: -0.02em; color: var(--text); }
.brand img { width: 34px; height: 34px; border-radius: 9px; }

/* ---- buttons ---- */
.btn { display: inline-flex; align-items: center; gap: 10px; font-family: var(--ui); font-weight: 700; font-size: 16px; padding: 13px 22px; border-radius: 999px; border: 0; cursor: pointer; transition: transform .15s ease, box-shadow .15s ease; }
.btn-primary { color: #04120F; background: var(--grad); box-shadow: 0 8px 30px rgba(77,140,255,0.35); }
.btn-primary:hover { transform: translateY(-2px); text-decoration: none; box-shadow: 0 12px 40px rgba(77,140,255,0.45); }
.btn-ghost { color: var(--text); background: var(--surface); border: 1px solid var(--border); }
.btn-ghost:hover { text-decoration: none; border-color: #34405a; }
.btn small { font-weight: 500; opacity: .8; font-size: 12px; }

/* ---- hero ---- */
.hero { padding: 84px 0 56px; }
.hero-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 48px; align-items: center; }
.eyebrow { display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--cyan); border: 1px solid var(--border); border-radius: 999px; padding: 6px 14px; margin-bottom: 22px; }
.hero h1 { font-size: clamp(38px, 6vw, 66px); }
.hero p.lead { font-size: clamp(17px, 2.2vw, 21px); color: var(--text-2); max-width: 34ch; margin: 18px 0 28px; }
.cta-row { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.fineprint { color: var(--muted); font-size: 13.5px; margin-top: 18px; }
.fineprint b { color: var(--text-2); font-weight: 600; }

/* ---- hero gel board (CSS art, no screenshot needed yet) ---- */
.board { aspect-ratio: 1 / 1; width: 100%; max-width: 380px; margin-left: auto; padding: 18px; border-radius: 26px; background: linear-gradient(180deg, #0C1220, #080B11); border: 1px solid var(--border); box-shadow: 0 30px 80px rgba(0,0,0,.5), inset 0 1px 0 rgba(255,255,255,.04); display: grid; grid-template-columns: repeat(6, 1fr); grid-auto-rows: 1fr; gap: 8px; }
.tile { border-radius: 12px; background: linear-gradient(180deg, var(--hi, #2aa) 0%, var(--base, #188) 45%, var(--deep, #044) 100%); position: relative; box-shadow: inset 0 1px 0 rgba(255,255,255,.25); }
.tile::after { content: ''; position: absolute; left: 16%; top: 12%; width: 42%; height: 30%; border-radius: 50%; background: rgba(255,255,255,.35); filter: blur(1px); transform: rotate(-24deg); }
.tile.c { --hi:#7ff0e6; --base:#35E0D0; --deep:#0c9a8d; }
.tile.b { --hi:#9dc0ff; --base:#4D8CFF; --deep:#1d5ad0; }
.tile.v { --hi:#d3abff; --base:#B06BFF; --deep:#7a34d6; }
.tile.g { --hi:#8fe9b3; --base:#46D17A; --deep:#1e9a51; }
.tile.e { background: #0C1220; box-shadow: inset 0 2px 6px rgba(0,0,0,.5); }

/* ---- sections ---- */
section { padding: 40px 0; }
.section-head { max-width: 40ch; margin-bottom: 34px; }
.section-head h2 { font-size: clamp(28px, 4vw, 40px); }
.section-head p { color: var(--muted); font-size: 17px; }

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card { background: linear-gradient(180deg, var(--surface), #0E1420); border: 1px solid var(--border); border-radius: var(--r); padding: 26px; }
.card .ic { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; font-size: 22px; margin-bottom: 16px; background: rgba(53,224,208,.10); border: 1px solid rgba(53,224,208,.22); }
.card h3 { font-size: 20px; }
.card p { color: var(--text-2); font-size: 15.5px; margin: 0; }
.card strong { color: var(--cyan); font-weight: 700; }

/* ---- how it plays ---- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: step; }
.step { padding: 24px; border-radius: var(--r); border: 1px solid var(--border); background: var(--surface); }
.step .n { font-family: var(--disp); font-weight: 800; font-size: 34px; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.step h3 { font-size: 18px; margin: 6px 0 6px; }
.step p { color: var(--muted); font-size: 15px; margin: 0; }

/* ---- faq ---- */
.faq { max-width: 780px; }
details { border-bottom: 1px solid var(--border); padding: 6px 0; }
summary { cursor: pointer; list-style: none; font-family: var(--disp); font-weight: 700; font-size: 18px; padding: 16px 40px 16px 0; position: relative; }
summary::-webkit-details-marker { display: none; }
summary::after { content: '+'; position: absolute; right: 6px; top: 14px; font-size: 24px; color: var(--cyan); transition: transform .2s; }
details[open] summary::after { transform: rotate(45deg); }
details p { color: var(--text-2); margin: 0 0 18px; font-size: 15.5px; }

/* ---- final cta ---- */
.final { text-align: center; padding: 72px 0; }
.final h2 { font-size: clamp(32px, 5vw, 52px); }
.final p { color: var(--text-2); font-size: 18px; margin: 0 0 28px; }

/* ---- footer ---- */
footer { border-top: 1px solid var(--border); padding: 40px 0; margin-top: 30px; color: var(--muted); font-size: 14px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 18px 28px; align-items: center; justify-content: space-between; }
footer nav { display: flex; gap: 22px; flex-wrap: wrap; }
footer a { color: var(--text-2); }
footer .legal { width: 100%; color: var(--muted); font-size: 12.5px; border-top: 1px solid var(--border); padding-top: 18px; margin-top: 6px; }

/* ---- legal / doc pages ---- */
.doc { max-width: 760px; margin: 0 auto; padding: 56px 24px 80px; }
.doc h1 { font-size: clamp(30px, 5vw, 44px); margin-bottom: 8px; }
.doc h2 { font-size: 24px; margin: 40px 0 12px; padding-top: 8px; }
.doc h3 { font-size: 18px; margin: 26px 0 8px; }
.doc p, .doc li { color: var(--text-2); font-size: 16px; }
.doc ul, .doc ol { padding-left: 22px; }
.doc li { margin: 6px 0; }
.doc a { color: var(--cyan); }
.doc code { font-family: ui-monospace, 'SF Mono', Menlo, monospace; font-size: .9em; background: var(--surface-2); padding: 2px 6px; border-radius: 6px; color: var(--text); }
.doc blockquote { border-left: 3px solid var(--blue); margin: 18px 0; padding: 12px 18px; background: var(--surface); border-radius: 0 10px 10px 0; color: var(--muted); }
.doc hr { border: 0; border-top: 1px solid var(--border); margin: 34px 0; }
.doc table { width: 100%; border-collapse: collapse; margin: 18px 0; font-size: 14.5px; display: block; overflow-x: auto; }
.doc th, .doc td { border: 1px solid var(--border); padding: 8px 12px; text-align: left; vertical-align: top; }
.doc th { background: var(--surface-2); color: var(--text); }
.doc .updated { color: var(--muted); font-size: 14px; margin-bottom: 30px; }
mark.todo { background: rgba(255,176,32,.16); color: #FFCF4D; border: 1px dashed rgba(255,176,32,.5); border-radius: 5px; padding: 1px 6px; font-size: .92em; }
.backlink { display: inline-block; margin-bottom: 26px; color: var(--muted); font-weight: 600; }

@media (max-width: 860px) {
  .hero-grid, .features, .steps { grid-template-columns: 1fr; }
  .hero { padding: 52px 0 36px; }
  .board { margin: 8px auto 0; }
  .hero p.lead { max-width: none; }
}
