/* SwinglySim web: dark premium theme derived from the app icon (deep navy, mint glow, fairway green, flag red). */
@font-face { font-family: "Inter"; src: url("../fonts/inter-var.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Space Grotesk"; src: url("../fonts/space-grotesk-var.woff2") format("woff2"); font-weight: 300 700; font-display: swap; }

:root {
  --bg: #050b1f;
  --bg-2: #08122e;
  --navy: #0b1e4a;
  --ink: #e9f1ff;
  --ink-2: #a9b8d6;
  --muted: #7d8db0;
  --mint: #6ff7d0;
  --mint-2: #35e0b0;
  --green: #2f9e5a;
  --flag: #ef3e55;
  --glass: rgba(18, 34, 74, .42);
  --glass-strong: rgba(14, 28, 64, .72);
  --stroke: rgba(160, 200, 255, .14);
  --stroke-2: rgba(111, 247, 208, .35);
  --radius: 22px;
  --radius-sm: 14px;
  --shadow: 0 30px 80px -30px rgba(0, 0, 0, .7);
  --glow: 0 0 0 1px rgba(111, 247, 208, .25), 0 10px 40px -10px rgba(111, 247, 208, .45);
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --display: "Space Grotesk", "Inter", system-ui, sans-serif;
  --container: 1200px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font); font-size: 17px; line-height: 1.6;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: hidden;
  background-image:
    radial-gradient(1200px 600px at 85% -10%, rgba(53, 224, 176, .08), transparent 60%),
    radial-gradient(900px 600px at -10% 30%, rgba(40, 90, 220, .12), transparent 60%);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--mint); text-decoration: none; }
a:hover { color: #b6ffe9; }
code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .9em; background: rgba(255,255,255,.06); padding: .1em .4em; border-radius: 6px; }
:focus-visible { outline: 2px solid var(--mint); outline-offset: 3px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--mint); color: #022; padding: 10px 16px; border-radius: 10px; font-weight: 600; }
.skip-link:focus { top: 12px; }
.container { width: min(100% - 40px, var(--container)); margin-inline: auto; }
.narrow { max-width: 780px; }
.center { text-align: center; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }

/* Type */
.display, .display-sm, .h1, .h2, .h3, h1, h2, h3 { font-family: var(--display); letter-spacing: -.02em; line-height: 1.05; margin: 0 0 .5em; font-weight: 650; }
.display { font-size: clamp(3rem, 7.5vw, 6.4rem); letter-spacing: -.045em; line-height: .95; }
.display-sm { font-size: clamp(2.4rem, 5.4vw, 4.4rem); letter-spacing: -.035em; }
.h1 { font-size: clamp(2rem, 4.2vw, 3.4rem); }
.h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); }
.h3, h3 { font-size: 1.25rem; letter-spacing: -.01em; line-height: 1.25; }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: var(--ink-2); max-width: 62ch; }
.grad-text { background: linear-gradient(100deg, #fff 0%, var(--mint) 45%, #7fb2ff 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.eyebrow { display: inline-flex; align-items: center; gap: .55em; font-size: .78rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--mint); margin-bottom: 1.1rem; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 0 0 rgba(111,247,208,.6); animation: pulse 2.2s infinite; display: inline-block; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(111,247,208,.6); } 70% { box-shadow: 0 0 0 10px rgba(111,247,208,0); } 100% { box-shadow: 0 0 0 0 rgba(111,247,208,0); } }

/* Buttons & pills */
.btn { --h: 46px; display: inline-flex; align-items: center; justify-content: center; gap: .5em; height: var(--h); padding: 0 1.3em; border-radius: 999px; font-weight: 600; font-size: .98rem; border: 1px solid transparent; cursor: pointer; transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s; white-space: nowrap; font-family: inherit; }
.btn-lg { --h: 56px; padding: 0 1.7em; font-size: 1.05rem; }
.btn-sm { --h: 38px; padding: 0 1.05em; font-size: .9rem; }
.btn-primary { background: linear-gradient(135deg, var(--mint) 0%, var(--mint-2) 100%); color: #04241c; box-shadow: var(--glow); }
.btn-primary:hover { color: #04241c; transform: translateY(-2px); box-shadow: 0 0 0 1px rgba(111,247,208,.4), 0 18px 50px -12px rgba(111,247,208,.65); }
.btn-ghost { background: rgba(255,255,255,.06); color: var(--ink); border-color: var(--stroke); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.btn-ghost:hover { color: #fff; background: rgba(255,255,255,.12); transform: translateY(-2px); }
.pill { display: inline-flex; align-items: center; font-size: .72rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; padding: .3em .75em; border-radius: 999px; border: 1px solid var(--stroke); color: var(--ink-2); background: rgba(255,255,255,.04); }
.pill-soon { color: var(--mint); border-color: var(--stroke-2); background: rgba(111,247,208,.08); }
.pill-ok { color: #a6f3c4; border-color: rgba(47,158,90,.5); background: rgba(47,158,90,.15); }

/* Glass */
.glass { background: linear-gradient(160deg, rgba(30, 52, 110, .45), rgba(10, 20, 50, .38)); border: 1px solid var(--stroke); border-radius: var(--radius); backdrop-filter: blur(18px) saturate(140%); -webkit-backdrop-filter: blur(18px) saturate(140%); box-shadow: var(--shadow), inset 0 1px 0 rgba(255,255,255,.06); }

/* Header */
.dev-banner { position: relative; z-index: 60; text-align: center; font-size: .78rem; letter-spacing: .14em; font-weight: 700; padding: 6px; color: #2a1600; background: repeating-linear-gradient(45deg, #ffcf5c, #ffcf5c 14px, #ffbe2e 14px, #ffbe2e 28px); }
.site-header { position: sticky; top: 0; z-index: 50; transition: background .3s, border-color .3s, backdrop-filter .3s; border-bottom: 1px solid transparent; }
.site-header.scrolled { background: rgba(5, 11, 31, .72); backdrop-filter: blur(16px) saturate(150%); -webkit-backdrop-filter: blur(16px) saturate(150%); border-bottom-color: var(--stroke); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: inline-flex; align-items: center; gap: .6rem; color: #fff; font-family: var(--display); font-weight: 700; font-size: 1.3rem; letter-spacing: -.02em; }
.brand img { border-radius: 10px; box-shadow: 0 0 24px -6px rgba(111,247,208,.6); }
.brand:hover { color: #fff; }
.brand-accent { color: var(--mint); }
.nav-links { display: flex; align-items: center; gap: 1.6rem; list-style: none; margin: 0; padding: 0; }
.nav-links a:not(.btn) { color: var(--ink-2); font-weight: 500; font-size: .95rem; position: relative; }
.nav-links a:not(.btn)::after { content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px; background: var(--mint); transform: scaleX(0); transition: transform .3s var(--ease); border-radius: 2px; }
.nav-links a:not(.btn):hover { color: #fff; }
.nav-links a:not(.btn):hover::after { transform: scaleX(1); }
.nav-toggle { display: none; background: none; border: 1px solid var(--stroke); border-radius: 12px; width: 44px; height: 44px; padding: 0; cursor: pointer; flex-direction: column; align-items: center; justify-content: center; gap: 6px; }
.nav-toggle .bar { width: 18px; height: 2px; background: #fff; border-radius: 2px; transition: transform .3s; }
.nav-toggle[aria-expanded="true"] .bar:first-of-type { transform: translateY(4px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .bar:last-of-type { transform: translateY(-4px) rotate(-45deg); }

/* Hero */
.hero { position: relative; min-height: min(100svh, 980px); display: flex; align-items: center; overflow: hidden; margin-top: -72px; padding: 140px 0 110px; isolation: isolate; }
.hero-media { position: absolute; inset: -6% 0 -6% 0; z-index: -3; will-change: transform; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 60%; transform: scale(1.06); animation: heroZoom 18s var(--ease) forwards; }
@keyframes heroZoom { to { transform: scale(1); } }
.hero-shade { position: absolute; inset: 0; z-index: -2; background:
  linear-gradient(90deg, rgba(5,11,31,.94) 0%, rgba(5,11,31,.78) 38%, rgba(5,11,31,.2) 70%, rgba(5,11,31,.45) 100%),
  linear-gradient(180deg, rgba(5,11,31,.55) 0%, rgba(5,11,31,0) 30%, rgba(5,11,31,0) 60%, var(--bg) 100%); }
.aurora { position: absolute; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.aurora span { position: absolute; width: 46vw; height: 46vw; border-radius: 50%; filter: blur(90px); opacity: .28; mix-blend-mode: screen; animation: drift 22s ease-in-out infinite alternate; }
.aurora span:nth-child(1) { background: #35e0b0; left: -12vw; top: 10%; }
.aurora span:nth-child(2) { background: #2f5bff; right: -14vw; top: -10%; animation-delay: -6s; opacity: .2; }
.aurora span:nth-child(3) { background: #0fb39a; left: 30%; bottom: -30%; animation-delay: -12s; opacity: .14; }
@keyframes drift { 0% { transform: translate3d(0,0,0) scale(1); } 100% { transform: translate3d(6vw, 4vh, 0) scale(1.15); } }
.tracer { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; }
.tracer-path { fill: none; stroke-width: 4; stroke-linecap: round; stroke-dasharray: 1600; stroke-dashoffset: 1600; animation: draw 3.2s .4s cubic-bezier(.25,.1,.3,1) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.hero-inner { display: grid; grid-template-columns: 1.25fr .75fr; gap: 48px; align-items: end; }
.hero-copy .lead { margin: 1.3rem 0 2rem; }
.cta-row { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-badges { display: flex; flex-wrap: wrap; gap: 10px 22px; list-style: none; padding: 0; margin: 2.2rem 0 0; color: var(--ink-2); font-size: .92rem; }
.hero-badges li { display: inline-flex; align-items: center; gap: .5em; }
.hero-badges .icon { color: var(--mint); }
.shot-card { padding: 22px; max-width: 380px; justify-self: end; animation: floatY 7s ease-in-out infinite; }
@keyframes floatY { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
.shot-card header { display: flex; justify-content: space-between; font-size: .82rem; margin-bottom: 14px; }
.live { display: inline-flex; align-items: center; gap: .5em; color: var(--mint); font-weight: 600; }
.shot-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 18px; margin: 0; }
.shot-grid dt { font-size: .72rem; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); }
.shot-grid dd { margin: 2px 0 0; font-family: var(--display); font-size: 2rem; font-weight: 650; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.shot-grid dd small { font-size: .85rem; color: var(--ink-2); margin-left: .25em; font-family: var(--font); font-weight: 500; }
.shot-grid dd.accent { color: var(--mint); text-shadow: 0 0 24px rgba(111,247,208,.45); }
.shot-bar { height: 6px; border-radius: 6px; background: rgba(255,255,255,.08); margin: 18px 0 10px; overflow: hidden; }
.shot-bar span { display: block; height: 100%; width: var(--w); background: linear-gradient(90deg, var(--mint-2), var(--mint)); border-radius: inherit; transform-origin: left; animation: grow 2.4s 1s var(--ease) both; }
@keyframes grow { from { transform: scaleX(0); } }
.scroll-cue { position: absolute; left: 50%; bottom: 28px; width: 26px; height: 42px; border: 2px solid rgba(255,255,255,.35); border-radius: 14px; transform: translateX(-50%); }
.scroll-cue span { position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: var(--mint); animation: cue 1.8s infinite; }
@keyframes cue { 0% { opacity: 0; transform: translateY(0); } 40% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

/* Ticker */
.ticker { border-block: 1px solid var(--stroke); background: rgba(8, 18, 46, .6); overflow: hidden; padding: 18px 0; -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.ticker-track { display: flex; width: max-content; animation: marquee 40s linear infinite; }
.ticker ul { display: flex; gap: 56px; padding: 0 28px; margin: 0; list-style: none; }
.ticker li { font-family: var(--display); font-weight: 600; font-size: 1.05rem; color: var(--ink-2); white-space: nowrap; display: flex; align-items: center; gap: 56px; }
.ticker li::after { content: "◆"; font-size: .55rem; color: var(--mint); opacity: .7; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* Sections */
.section { padding: clamp(72px, 10vw, 130px) 0; position: relative; }
.section-head { max-width: 760px; margin-bottom: 52px; }

/* Bento features */
.bento { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card { padding: 28px; position: relative; overflow: hidden; transition: transform .4s var(--ease), border-color .4s, box-shadow .4s; color: var(--ink); }
.card::before { content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; background: radial-gradient(400px circle at var(--mx, 50%) var(--my, 0%), rgba(111,247,208,.5), transparent 40%); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; opacity: 0; transition: opacity .4s; pointer-events: none; }
.card:hover { transform: translateY(-4px); border-color: rgba(111,247,208,.25); }
.card:hover::before { opacity: 1; }
.card h3 { margin-top: 18px; }
.card p { color: var(--ink-2); margin: 0; font-size: .98rem; }
.span-2 { grid-column: span 2; grid-row: span 2; }
.feature-hero { padding: 0; display: flex; flex-direction: column; }
.feature-hero .card-media { flex: 1; min-height: 260px; position: relative; overflow: hidden; }
.feature-hero .card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.feature-hero:hover .card-media img { transform: scale(1.05); }
.feature-hero .card-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgba(8,16,40,.9)); }
.feature-hero .card-body { padding: 0 28px 28px; margin-top: -40px; position: relative; }
.icon-badge { display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; color: var(--mint); background: linear-gradient(145deg, rgba(111,247,208,.18), rgba(111,247,208,.04)); border: 1px solid var(--stroke-2); box-shadow: 0 8px 30px -10px rgba(111,247,208,.5); }
.icon-badge.big { width: 68px; height: 68px; border-radius: 20px; }

/* Showcase */
.showcase-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 64px; align-items: center; }
.showcase-media { position: relative; border-radius: var(--radius); transform-style: preserve-3d; transition: transform .3s ease-out; }
.showcase-media img { border-radius: var(--radius); border: 1px solid var(--stroke); box-shadow: 0 50px 120px -40px rgba(0,0,0,.9), 0 0 80px -30px rgba(111,247,208,.35); }
.float-chip { position: absolute; left: -18px; bottom: -18px; padding: 12px 18px; border-radius: 16px; display: inline-flex; gap: .5em; align-items: center; font-weight: 600; color: #fff; }
.float-chip .icon { color: var(--flag); }
.checks { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 14px; }
.checks li { display: flex; gap: 12px; align-items: flex-start; color: var(--ink-2); }
.checks .icon { color: var(--mint); flex: none; margin-top: 3px; }

/* Gallery */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 210px; grid-auto-flow: dense; gap: 16px; }
.shot { margin: 0; position: relative; border-radius: var(--radius-sm); overflow: hidden; border: 1px solid var(--stroke); background: var(--bg-2); }
.shot.wide { grid-column: span 2; grid-row: span 2; }
.shot a { display: block; height: 100%; }
.shot img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease), filter .6s; filter: saturate(1.05); }
.shot:hover img { transform: scale(1.06); filter: saturate(1.2); }
.shot figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 30px 16px 12px; font-size: .85rem; font-weight: 500; color: #fff; background: linear-gradient(180deg, transparent, rgba(3,8,24,.85)); pointer-events: none; }
.lightbox { border: 0; padding: 0; background: transparent; max-width: min(94vw, 1600px); max-height: 92vh; }
.lightbox::backdrop { background: rgba(2,6,18,.88); backdrop-filter: blur(6px); }
.lightbox img { max-height: 88vh; width: auto; border-radius: 14px; border: 1px solid var(--stroke); }
.lightbox-close { position: absolute; right: 10px; top: 10px; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--stroke); background: rgba(5,11,31,.8); color: #fff; font-size: 1.6rem; cursor: pointer; line-height: 1; }

/* Courses */
.course-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px; }
.course-card { overflow: hidden; display: flex; flex-direction: column; transition: transform .4s var(--ease), border-color .4s; color: var(--ink); }
.course-card:hover { transform: translateY(-6px); border-color: rgba(111,247,208,.25); color: var(--ink); }
.course-media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; }
.course-media img:first-child { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.course-card:hover .course-media img:first-child { transform: scale(1.06); }
.course-media.logo-only { background: radial-gradient(circle at 50% 40%, rgba(111,247,208,.25), transparent 60%), linear-gradient(160deg, #0f2f2a, #0a1838); display: grid; place-items: center; }
.course-media.logo-only .course-logo { position: static; width: 120px; height: 120px; }
.course-logo { position: absolute; left: 16px; bottom: 16px; width: 72px; height: 72px; border-radius: 16px; box-shadow: 0 10px 30px rgba(0,0,0,.5); }
.course-body { padding: 20px 22px 24px; }
.course-meta { display: flex; justify-content: space-between; align-items: center; font-size: .85rem; }
.course-body h3 { margin: 12px 0 6px; }
.course-body p { color: var(--ink-2); margin: 0; font-size: .95rem; }
.build-your-own { padding: 28px; justify-content: center; align-items: flex-start; gap: 8px; background: radial-gradient(500px circle at 0% 0%, rgba(111,247,208,.15), transparent 60%), linear-gradient(160deg, rgba(30,52,110,.45), rgba(10,20,50,.38)); }
.build-your-own p { color: var(--ink-2); margin: 0; }
.link { display: inline-flex; align-items: center; gap: .4em; color: var(--mint); font-weight: 600; margin-top: 14px; }
.link .icon { transition: transform .3s var(--ease); }
a:hover .link .icon { transform: translateX(4px); }

/* Roadmap */
.roadmap-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.roadmap-grid.two { grid-template-columns: repeat(2, 1fr); }
.roadmap-card .pill { position: absolute; top: 28px; right: 28px; }
.roadmap { background: radial-gradient(800px 400px at 50% 0%, rgba(47, 91, 255, .12), transparent 70%); }

/* Signup */
.signup-card { display: grid; grid-template-columns: 1fr 1.1fr; gap: 40px; padding: clamp(28px, 5vw, 56px); position: relative; overflow: hidden; }
.signup-card::after { content: ""; position: absolute; right: -120px; top: -120px; width: 380px; height: 380px; border-radius: 50%; background: radial-gradient(circle, rgba(111,247,208,.25), transparent 70%); pointer-events: none; }
.signup-copy .lead { margin: 0; }
.signup-form { display: grid; gap: 16px; align-content: center; position: relative; z-index: 1; }
.field-row { display: flex; gap: 10px; background: rgba(3, 8, 24, .55); border: 1px solid var(--stroke); border-radius: 999px; padding: 6px; transition: border-color .3s, box-shadow .3s; }
.field-row:focus-within { border-color: var(--stroke-2); box-shadow: 0 0 0 4px rgba(111,247,208,.12); }
.field-row input { flex: 1; min-width: 0; background: transparent; border: 0; color: #fff; font: inherit; padding: 0 16px; outline: none; }
.field-row input::placeholder { color: var(--muted); }
.field-row input[aria-invalid="true"] { color: #ffb3bd; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; border: 0; margin: 0; padding: 0; }
.chip { cursor: pointer; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip span { display: inline-flex; align-items: center; padding: .45em .95em; border-radius: 999px; font-size: .85rem; border: 1px solid var(--stroke); color: var(--ink-2); background: rgba(255,255,255,.03); transition: all .2s; }
.chip input:checked + span { color: #04241c; background: var(--mint); border-color: var(--mint); font-weight: 600; }
.chip input:focus-visible + span { outline: 2px solid var(--mint); outline-offset: 2px; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-msg { margin: 0; min-height: 1.2em; color: #ffb3bd; font-size: .9rem; }
.fine-print { margin: 0; font-size: .8rem; color: var(--muted); }
.signup-done { display: flex; gap: 16px; align-items: flex-start; align-self: center; padding: 22px; border-radius: var(--radius-sm); background: rgba(111,247,208,.08); border: 1px solid var(--stroke-2); position: relative; z-index: 1; }
.signup-done .icon { color: var(--mint); flex: none; }
.signup-done p { margin: 4px 0 0; color: var(--ink-2); }

/* Page hero (sub pages) */
.page-hero { position: relative; margin-top: -72px; padding: 190px 0 110px; overflow: hidden; isolation: isolate; }
.page-hero-bg { position: absolute; inset: -12% -4%; background-size: cover; background-position: center 65%; z-index: -3; filter: blur(4px) saturate(1.25) brightness(.85); transform-origin: center; }
.page-hero { -webkit-mask-image: linear-gradient(180deg, #000 75%, transparent); mask-image: linear-gradient(180deg, #000 75%, transparent); }
.page-hero .lead { margin-top: 1rem; }

/* Designer visual */
.designer-visual { padding: 22px; display: grid; gap: 18px; }
.chat { display: grid; gap: 10px; }
.bubble { margin: 0; padding: 12px 16px; border-radius: 16px; font-size: .92rem; max-width: 88%; line-height: 1.45; }
.bubble.me { justify-self: end; background: linear-gradient(135deg, var(--mint), var(--mint-2)); color: #04241c; border-bottom-right-radius: 4px; }
.bubble.ai { background: rgba(255,255,255,.06); border: 1px solid var(--stroke); color: var(--ink); border-bottom-left-radius: 4px; }
.bubble.ai .icon { color: var(--mint); vertical-align: -3px; }
.hole-map { width: 100%; height: auto; background: radial-gradient(circle at 30% 30%, #1b5a35, #0e3220); border-radius: 16px; border: 1px solid var(--stroke); }
.hole-map .pond { transform-origin: 255px 172px; animation: pond 5s ease-in-out infinite; }
@keyframes pond { 0%, 30% { transform: scale(1); } 50%, 85% { transform: scale(1.5); } 100% { transform: scale(1); } }

/* Store */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.step-n { position: absolute; right: 24px; top: 14px; font-family: var(--display); font-size: 4.2rem; font-weight: 700; color: rgba(111,247,208,.12); line-height: 1; }
.platforms { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin: 28px 0 18px; }
.platform { padding: 22px 26px; display: grid; gap: 4px; }

.note { display: flex; gap: 14px; align-items: flex-start; padding: 20px 24px; margin-top: 28px; }
.note .icon { color: var(--mint); flex: none; margin-top: 2px; }
.note p { margin: 0; color: var(--ink-2); }

.leaderboard { margin-top: 28px; padding: 22px 26px; max-width: 620px; }
.leaderboard header { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 10px; }
.leaderboard ol { list-style: none; margin: 0; padding: 0; }
.leaderboard li { display: grid; grid-template-columns: 48px 1fr 60px 60px; padding: 12px 0; border-top: 1px solid var(--stroke); font-variant-numeric: tabular-nums; }
.leaderboard .pos { color: var(--muted); }
.leaderboard .thru { color: var(--muted); text-align: right; }
.leaderboard .score { text-align: right; font-weight: 700; }
.leaderboard .under { color: var(--flag); }

.legal h2 { margin-top: 2em; }
.legal ul { color: var(--ink-2); }
.error-page { min-height: 60vh; display: grid; place-items: center; }

/* Footer */
.site-footer { border-top: 1px solid var(--stroke); background: linear-gradient(180deg, transparent, rgba(3,8,24,.8)); padding: 64px 0 28px; margin-top: 40px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 32px; }
.footer-brand p { color: var(--muted); margin: 12px 0 0; max-width: 34ch; }
.footer-h { font-family: var(--font); font-size: .78rem; text-transform: uppercase; letter-spacing: .14em; color: var(--ink-2); margin: 0 0 14px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.site-footer a:not(.brand) { color: var(--muted); }
.site-footer a:not(.brand):hover { color: #fff; }
.footer-base { margin-top: 48px; padding-top: 22px; border-top: 1px solid var(--stroke); font-size: .82rem; color: var(--muted); }
.footer-base p { margin: 4px 0; }

/* Scroll reveal (only when JS has run) */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }

/* Responsive */
@media (max-width: 1000px) {
  .hero-inner, .showcase-grid, .signup-card { grid-template-columns: 1fr; }
  .shot-card { justify-self: start; }
  .bento, .roadmap-grid, .steps { grid-template-columns: 1fr 1fr; }
  .span-2 { grid-column: span 2; grid-row: auto; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 820px) {
  .nav-toggle { display: inline-flex; }
  .nav-links { position: fixed; inset: 72px 12px auto 12px; flex-direction: column; align-items: stretch; gap: 0; padding: 12px; border-radius: 20px; background: rgba(6, 14, 38, .96); border: 1px solid var(--stroke); box-shadow: var(--shadow); transform: translateY(-12px); opacity: 0; pointer-events: none; transition: all .3s var(--ease); }
  .nav-links.open { transform: none; opacity: 1; pointer-events: auto; }
  .nav-links li a:not(.btn) { display: block; padding: 14px 12px; }
  .nav-links li .btn { width: 100%; margin-top: 8px; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .bento, .roadmap-grid, .roadmap-grid.two, .steps, .platforms { grid-template-columns: 1fr; }
  .span-2 { grid-column: auto; }
  .gallery { grid-template-columns: 1fr; grid-auto-rows: 220px; }
  .shot.wide { grid-column: auto; grid-row: auto; }
  .field-row { flex-direction: column; border-radius: 20px; }
  .field-row input { height: 46px; }
  .hero { padding-top: 120px; }
  .footer-grid { grid-template-columns: 1fr; }
  .float-chip { left: 10px; bottom: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .tracer-path { stroke-dashoffset: 0; }
  .js .reveal { opacity: 1; transform: none; }
}

/* ---- p40: golfer accounts (/account, /me) ---- */
.account .account-card { padding: 28px; margin: 18px 0; border-radius: var(--radius); }
.form-stack { display: flex; flex-direction: column; gap: 14px; }
.form-stack fieldset { border: 1px solid var(--stroke); border-radius: var(--radius-sm); padding: 14px; margin: 0; }
.form-stack legend { padding: 0 6px; color: var(--ink-2); font-weight: 600; }
.account label { display: flex; flex-direction: column; gap: 6px; font-weight: 600; color: var(--ink-2); font-size: .95rem; }
.account label.check { flex-direction: row; align-items: center; gap: 10px; font-weight: 500; }
.account input:not([type=checkbox]), .account select {
  background: rgba(5, 11, 31, .6); color: var(--ink); border: 1px solid var(--stroke); border-radius: 10px; padding: 10px 12px; font: inherit; font-weight: 400;
}
.account input:focus-visible, .account select:focus-visible { outline: 2px solid var(--mint); outline-offset: 1px; }
.account .hint { font-weight: 400; color: var(--muted); font-size: .85rem; }
.form-msg.ok { color: var(--mint); }
.settings-tabs { margin: 12px 0 22px; border-bottom: 1px solid var(--stroke); }
.settings-tabs .tab-strip { display: flex; flex-wrap: nowrap; gap: 4px; overflow-x: auto; scrollbar-width: thin; }
.settings-tabs .tab { padding: 10px 16px; border: 1px solid transparent; border-bottom: 0; border-radius: var(--radius-sm) var(--radius-sm) 0 0; color: var(--ink-2); text-decoration: none; font-size: .92rem; white-space: nowrap; margin-bottom: -1px; }
.settings-tabs .tab:hover { color: var(--ink); background: rgba(111, 247, 208, .05); }
.settings-tabs .tab.active { border-color: var(--stroke); border-bottom: 1px solid var(--bg, #0b1220); color: var(--ink); background: rgba(111, 247, 208, .08); font-weight: 600; }
.settings-tabs .tab-admin { margin-left: auto; color: var(--flag); }
.subtabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 18px; }
.subtabs a { padding: 6px 12px; border-radius: 999px; border: 1px solid var(--stroke); color: var(--ink-2); text-decoration: none; font-size: .88rem; }
.subtabs a.active, .subtabs a:hover { border-color: var(--stroke-2); color: var(--ink); background: rgba(111, 247, 208, .08); }
.admin-table { width: 100%; border-collapse: collapse; font-size: .9rem; margin: 12px 0; }
.admin-table th, .admin-table td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--stroke); vertical-align: top; }
.admin-table th { color: var(--ink-2); font-weight: 600; }
.admin-scroll { overflow-x: auto; }
.badge { display: inline-block; padding: 1px 8px; border-radius: 999px; border: 1px solid var(--stroke-2); font-size: .78rem; }
.badge.warn { color: var(--flag); border-color: rgba(239, 62, 85, .5); }
.badge.good { color: #6ff7d0; border-color: rgba(111, 247, 208, .5); }
.admin-forms { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.me-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; margin: 18px 0; }
.me-card { padding: 22px; border-radius: var(--radius); }
.me-card .big { font-family: var(--display); font-size: 2rem; margin: 4px 0; }
.bag-list { display: grid; gap: 14px; margin: 14px 0; }
.bag-card { padding: 18px 22px; border-radius: var(--radius-sm); margin: 12px 0; }
.bag-head { display: flex; align-items: center; gap: 12px; justify-content: space-between; }
.bag-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.inline-form { display: flex; gap: 8px; align-items: center; }
.inline-form input { padding: 6px 10px !important; }
.btn.danger, .danger { color: var(--flag); }
.danger-zone { border: 1px solid rgba(239, 62, 85, .35); }
.club-form { padding: 18px; border-radius: var(--radius-sm); margin: 14px 0 4px; }
.club-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.club-actions { margin-top: 12px; }
.club-delete { margin: 0 0 16px; }
.table-wrap { overflow-x: auto; border-radius: var(--radius-sm); margin: 12px 0 24px; }
.data-table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.data-table th, .data-table td { padding: 10px 12px; text-align: left; border-bottom: 1px solid var(--stroke); white-space: nowrap; }
.data-table thead th { color: var(--ink-2); font-weight: 600; }
.gap-chart { padding: 18px; border-radius: var(--radius-sm); display: grid; gap: 6px; margin-bottom: 24px; }
.gap-row { display: grid; grid-template-columns: 48px 1fr 120px; gap: 10px; align-items: center; }
.gap-club { font-weight: 700; }
.gap-track { background: rgba(255, 255, 255, .06); border-radius: 6px; height: 18px; display: block; }
.gap-bar { display: block; height: 18px; border-radius: 6px; background: linear-gradient(90deg, var(--mint-2), var(--mint)); }
.nav-form { display: inline; margin: 0; }
.nav-link-button { background: none; border: 0; color: inherit; font: inherit; cursor: pointer; padding: 0; }
