:root {
  --bg: #0D1117; --surface: #171F2A; --raised: #1F2937; --line: #2A3542; --fg: #F5F7F8; --muted: #AAB4C0; --subtle: #7F8A97;
  --mint: #B8FFCF; --mint-deep: #8EF0B0; --violet: #8069FF; --err: #FF9099;
  --head: "Unbounded", -apple-system, "Helvetica Neue", Arial, sans-serif;
  --body: -apple-system, "Helvetica Neue", Inter, Arial, sans-serif;
  --gutter: 16px; --max: 1200px;
}
@media (min-width: 360px) { :root { --gutter: 20px; } }
@media (min-width: 480px) { :root { --gutter: 24px; } }
@media (min-width: 768px) { :root { --gutter: 32px; } }
@media (min-width: 1024px) { :root { --gutter: 40px; } }
@media (min-width: 1280px) { :root { --gutter: 48px; } }

* { box-sizing: border-box; }
html { background: var(--bg); scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }
body { margin: 0; color: var(--fg); background: var(--bg); font: 16px/1.5 var(--body); overflow-x: hidden; padding-left: env(safe-area-inset-left); padding-right: env(safe-area-inset-right); }
a { color: var(--mint); }
h1, h2, h3 { font-family: var(--head); font-weight: 800; letter-spacing: -0.01em; margin: 0; }
h1 { font-size: clamp(34px, 9vw, 46px); line-height: 1.06; }
h1 span { display: block; }
h2 { font-size: clamp(26px, 6vw, 40px); line-height: 1.12; }
h3 { font-size: 20px; }
p { margin: 0; }
main { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
section { padding: 56px 0 0; }
.lead { color: var(--muted); font-size: 17px; line-height: 1.55; max-width: 540px; }
.eyebrow { color: var(--mint); font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 14px; }
.note { color: var(--subtle); font-size: 14px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 24px; border-radius: 14px; background: var(--mint); color: #0D1117; font-weight: 800; font-size: 16px; text-decoration: none; border: 0; cursor: pointer; transition: background .2s, transform .2s, box-shadow .2s; box-shadow: 0 0 0 0 rgba(128,105,255,0); }
.btn:hover { background: var(--mint-deep); box-shadow: 0 8px 30px rgba(128,105,255,.35); }
.btn:active { transform: scale(.985); }
.btn[disabled] { opacity: .65; cursor: default; }
.btn.wide { width: 100%; }
.btn.small { min-height: 40px; padding: 0 16px; font-size: 14px; border-radius: 11px; }
.btn.small .long { display: none; } .btn.small .short { display: inline; }
@media (min-width: 480px) { .btn.small .long { display: inline; } .btn.small .short { display: none; } }
.textlink { display: inline-flex; align-items: center; min-height: 48px; color: var(--fg); font-weight: 700; text-decoration: none; border-bottom: 2px solid var(--violet); line-height: 1; padding: 0 2px; }
.textlink:hover { color: var(--mint); }
:focus-visible { outline: 3px solid var(--violet); outline-offset: 2px; }

/* Header */
.top { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; justify-content: space-between; gap: 8px; height: 60px; padding: 0 var(--gutter); background: rgba(13,17,23,.9); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
@media (min-width: 1024px) { .top { height: 76px; } }
.mark { font-family: var(--head); font-weight: 800; text-transform: uppercase; font-size: 16px; letter-spacing: .02em; color: var(--fg); text-decoration: none; display: flex; gap: 5px; white-space: nowrap; }
@media (min-width: 480px) { .mark { font-size: 18px; } }
.mark .hi { color: var(--mint); }
.actions { display: flex; align-items: center; gap: 8px; }
.lang { position: relative; }
.lang summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 12px; border-radius: 11px; border: 1px solid var(--line); font-weight: 700; font-size: 14px; color: var(--fg); }
.lang summary::-webkit-details-marker { display: none; }
.lang summary:hover { background: var(--surface); }
.chev { width: 7px; height: 7px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: translateY(-2px) rotate(45deg); }
.lang ul { position: absolute; right: 0; top: 46px; margin: 0; padding: 6px; list-style: none; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; min-width: 190px; box-shadow: 0 16px 40px rgba(0,0,0,.5); }
.lang li a { display: flex; align-items: center; gap: 12px; padding: 9px 10px; border-radius: 10px; color: var(--muted); text-decoration: none; font-size: 14px; }
.lang li a b { color: var(--fg); width: 24px; }
.lang li a:hover, .lang li a[aria-current] { background: var(--raised); color: var(--fg); }

/* Hero */
.hero { display: grid; gap: 20px; padding-top: 36px; position: relative; }
.hero::before { content: ""; position: absolute; inset: -60px -40px 0; z-index: -1; pointer-events: none; background: radial-gradient(50% 45% at 75% 35%, rgba(128,105,255,.22), transparent 70%), radial-gradient(35% 35% at 15% 85%, rgba(184,255,207,.08), transparent 70%); }
.hero .lead { margin: 16px 0 24px; }
.ctas { display: flex; flex-direction: column; gap: 12px; align-items: stretch; }
.ctas .textlink { align-self: center; }
.trust { color: var(--subtle); font-size: 14px; margin-top: 14px; }
.hero .art img { display: block; width: min(100%, 420px); max-height: 360px; height: auto; object-fit: contain; margin: 8px auto 0; filter: drop-shadow(0 20px 40px rgba(128,105,255,.3)); animation: float 6s ease-in-out infinite; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@media (max-height: 640px) { .hero .art img { max-height: 300px; } }
@media (min-width: 768px) {
  .hero { grid-template-columns: 1fr 1fr; align-items: center; gap: 32px; padding-top: 48px; }
  .hero .art img { max-height: none; margin: 0 auto; }
  h1 { font-size: clamp(42px, 5.2vw, 56px); }
  .ctas { flex-direction: row; align-items: center; gap: 20px; }
}
@media (min-width: 1024px) {
  .hero { grid-template-columns: 55fr 45fr; min-height: calc(100vh - 76px); padding: 24px 0; }
  h1 { font-size: clamp(48px, 5vw, 76px); }
  .lead { font-size: 18px; }
  section { padding-top: 88px; }
}

/* Strip */
.strip { display: grid; gap: 10px; padding-top: 40px; }
.strip div { display: flex; flex-direction: column; gap: 2px; padding: 16px 18px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; }
.strip strong { font-family: var(--head); font-size: 15px; font-weight: 800; }
.strip span { color: var(--muted); font-size: 14px; }
@media (min-width: 480px) { .strip { grid-template-columns: 1fr 1fr; } .strip div:last-child { grid-column: 1 / -1; } }
@media (min-width: 768px) { .strip { grid-template-columns: repeat(3, 1fr); } .strip div:last-child { grid-column: auto; } }

/* Steps */
.how h2 { margin-bottom: 20px; }
.steps { counter-reset: s; list-style: none; padding: 0; margin: 0 0 16px; display: grid; gap: 12px; }
.steps li { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 18px 18px 18px 70px; min-height: 84px; display: grid; grid-template-columns: 1fr 96px; align-items: center; column-gap: 12px; row-gap: 4px; }
.steps li img { grid-column: 2; grid-row: 1 / span 2; width: 96px; height: auto; justify-self: end; }
.steps li strong, .steps li span { grid-column: 1; }
.steps li::before { counter-increment: s; content: counter(s); position: absolute; left: 18px; top: 18px; width: 38px; height: 38px; border-radius: 50%; background: var(--mint); color: #0D1117; font-family: var(--head); font-weight: 800; display: grid; place-items: center; font-size: 15px; }
.steps strong { font-family: var(--head); font-size: 16px; font-weight: 800; }
.steps span { color: var(--muted); font-size: 15px; }
@media (min-width: 768px) { .steps { grid-template-columns: repeat(3, 1fr); } .steps li { padding: 70px 20px 22px; grid-template-columns: 1fr; } .steps li img { grid-column: 1; grid-row: auto; width: 150px; justify-self: center; margin: -8px 0 10px; } .steps li strong, .steps li span { grid-column: 1; } }

/* Pitch */
.pitch { display: grid; gap: 20px; }
.pitch .lead { margin: 14px 0 18px; }
.pitch .art img { display: block; width: min(80%, 340px); height: auto; margin: 0 auto; filter: drop-shadow(0 16px 36px rgba(184,255,207,.18)); }
@media (min-width: 768px) { .pitch { grid-template-columns: 1fr 1fr; align-items: center; gap: 32px; } .pitch .art img { width: min(100%, 360px); } }

/* The application: a dialog, nothing else on screen */
.apply { border: 0; padding: 0; background: transparent; max-width: none; max-height: none; width: 100%; height: 100%; margin: 0; display: none; place-items: center; }
.apply[open] { display: grid; }
.apply::backdrop { background: rgba(13,17,23,.88); backdrop-filter: blur(6px); }
.apply .card { position: relative; width: min(100% - 2 * var(--gutter), 520px); max-height: calc(100vh - 32px); max-height: calc(100dvh - 32px); overflow: auto; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 28px 20px 24px; box-shadow: 0 30px 80px rgba(0,0,0,.6); }
@media (min-width: 480px) { .apply .card { padding: 32px 28px 28px; } }
.apply .intro { color: var(--muted); margin: 8px 0 22px; }
.close { position: absolute; top: 12px; right: 12px; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: var(--bg); cursor: pointer; display: grid; place-items: center; }
.close span { position: relative; width: 14px; height: 14px; }
.close span::before, .close span::after { content: ""; position: absolute; left: 0; top: 6px; width: 14px; height: 2px; background: var(--muted); transform: rotate(45deg); }
.close span::after { transform: rotate(-45deg); }
.close:hover { background: var(--raised); }
body.modal-open { overflow: hidden; }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.field label { font-size: 14px; font-weight: 700; }
.field input { width: 100%; min-height: 48px; border-radius: 12px; border: 1px solid var(--line); background: var(--bg); color: var(--fg); padding: 12px 14px; font: 16px/1.4 var(--body); outline: none; }
.field input:focus { border-color: var(--mint); box-shadow: 0 0 0 3px rgba(184,255,207,.2); }
.field [aria-invalid="true"] { border-color: var(--err); }
.field.check label { display: flex; gap: 12px; align-items: flex-start; font-weight: 400; color: var(--muted); font-size: 14px; line-height: 1.5; cursor: pointer; }
.field.check input { width: 22px; height: 22px; min-height: 0; margin: 1px 0 0; flex: none; accent-color: var(--mint); }
.field.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.err { color: var(--err); font-size: 13px; }
.form-err { margin-bottom: 12px; }
.cf-turnstile { margin-bottom: 12px; }
.cf-turnstile:empty { margin: 0; }
.done { text-align: center; padding: 8px 0; }
.done img { width: 150px; height: auto; margin: 0 auto 8px; }
.done p { color: var(--muted); margin: 8px 0 20px; }

/* Footer */
footer { border-top: 1px solid var(--line); padding: 24px var(--gutter) calc(32px + env(safe-area-inset-bottom)); text-align: center; max-width: var(--max); margin: 32px auto 0; }
footer p { color: var(--subtle); font-size: 13px; margin: 0 0 8px; }
footer .links a { color: var(--muted); text-decoration: none; margin: 0 10px; }
footer .links a:hover { color: var(--mint); }
footer .elig { max-width: 640px; margin: 10px auto 0; }

/* Legal pages */
.legal { max-width: 760px; padding-top: 32px; padding-bottom: 40px; }
.legal h1 { font-size: clamp(28px, 6vw, 40px); margin-bottom: 6px; }
.legal .updated { color: var(--subtle); font-size: 14px; margin-bottom: 24px; }
.legal h2 { font-size: 18px; margin: 24px 0 6px; }
.legal p { color: var(--muted); margin-bottom: 10px; font-size: 15px; line-height: 1.6; }
.legal .note { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px; margin-bottom: 20px; }
