@font-face { font-family: Anton; src: url(fonts/anton.woff2) format("woff2"); font-display: swap; }

:root {
  --bg: #0b0c0e; --surface: #141619; --card: #1d1f23; --line: #2a2d33;
  --text: #f2f2f2; --muted: #9a9ca3; --accent: #e63946; --accent-dark: #a12a33;
  --rest: #3a86ff; --good: #4caf7a; --app-bg: #111214;
  --radius: 16px; --max: 1120px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { margin: 0; background: var(--bg); color: var(--text); font: 17px/1.65 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; -webkit-font-smoothing: antialiased; }
a { color: var(--accent); }
img, svg { display: block; max-width: 100%; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
.muted { color: var(--muted); }
.card { background: var(--card); border-radius: 12px; padding: 16px 20px; margin: 20px 0; }

/* Privacy policy and other plain pages */
body:not(.landing) main { max-width: 720px; margin: 0 auto; padding: 48px 16px 64px; }
body:not(.landing) h1 { font: 400 44px/1.1 Anton, Impact, sans-serif; text-transform: uppercase; letter-spacing: .01em; margin: 24px 0 8px; }
body:not(.landing) h2 { font-size: 22px; margin: 36px 0 8px; }
body:not(.landing) ul { padding-left: 22px; }

/* Landing page */
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 12px; z-index: 20; background: var(--card); padding: 8px 12px; }
.display { font-family: Anton, Impact, "Arial Narrow", sans-serif; font-weight: 400; text-transform: uppercase; letter-spacing: .01em; line-height: 1.02; margin: 0; }
.eyebrow { color: var(--accent); font-weight: 700; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; margin: 0 0 12px; }

.btn { display: inline-flex; align-items: center; gap: 10px; background: var(--accent); color: #fff; font-weight: 700; text-decoration: none; padding: 14px 22px; border-radius: 999px; border: 0; font-size: 16px; cursor: pointer; transition: transform .15s, background .15s; }
.btn:hover { background: #f04a57; transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--text); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn-ghost:hover { background: var(--surface); }
.btn-small { padding: 9px 16px; font-size: 14px; }
.play { width: 18px; height: 18px; }

.nav { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; gap: 24px; padding: 12px max(16px, calc((100% - var(--max)) / 2)); background: rgba(11, 12, 14, .82); backdrop-filter: blur(12px); border-bottom: 1px solid rgba(255, 255, 255, .06); }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 800; font-size: 18px; margin-right: auto; }
.brand img { border-radius: 9px; }
.nav nav { display: none; gap: 24px; }
.nav nav a { color: var(--muted); text-decoration: none; font-weight: 600; font-size: 15px; }
.nav nav a:hover { color: var(--text); }

.hero { position: relative; isolation: isolate; overflow: hidden; display: grid; gap: 48px; align-items: center; max-width: var(--max); margin: 0 auto; padding: 56px 16px 72px; }
.hero h1 { font-size: clamp(48px, 9vw, 92px); }
.lead { font-size: 19px; color: #c9cbd0; max-width: 34ch; margin: 22px 0 28px; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; }
.ticks { display: flex; flex-wrap: wrap; gap: 8px 20px; list-style: none; padding: 0; margin: 24px 0 0; color: var(--muted); font-size: 15px; }
.ticks li::before { content: "✓"; color: var(--good); font-weight: 800; margin-right: 8px; }
.ropes { position: absolute; inset: 0; pointer-events: none; z-index: -1; }
@media (min-width: 960px) { .ropes { left: 52%; } }
.ropes i { position: absolute; left: -5%; right: -5%; height: 3px; border-radius: 3px; background: linear-gradient(90deg, transparent, rgba(230, 57, 70, .35), transparent); transform: rotate(-4deg); }
.ropes i:nth-child(1) { top: 30%; }
.ropes i:nth-child(2) { top: 50%; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .14), transparent); }
.ropes i:nth-child(3) { top: 70%; background: linear-gradient(90deg, transparent, rgba(58, 134, 255, .3), transparent); }

.hero::before { content: ""; position: absolute; inset: 0; z-index: -2; background-image: radial-gradient(rgba(255, 255, 255, .08) 1px, transparent 1.5px); background-size: 26px 26px; -webkit-mask-image: radial-gradient(ellipse 70% 60% at 70% 45%, #000 15%, transparent 75%); mask-image: radial-gradient(ellipse 70% 60% at 70% 45%, #000 15%, transparent 75%); }
.hero-visual { position: relative; justify-self: center; }

.chip { position: absolute; z-index: 2; background: rgba(29, 31, 35, .92); backdrop-filter: blur(8px); border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 20px 40px rgba(0, 0, 0, .5); animation: float 6s ease-in-out infinite; }
.chip p { margin: 0; }
.chip-score { left: -96px; top: 17%; width: 196px; padding: 12px 16px 14px; }
.chip-title { color: var(--muted); font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.chip-big { color: var(--muted); font-weight: 700; font-size: 15px; margin: 2px 0 4px !important; }
.chip-big b { font: 400 40px/1 Anton, Impact, sans-serif; color: var(--text); margin-right: 2px; }
.chip-line { font-size: 13px; font-weight: 600; line-height: 1.4; }
.chip-bell { right: -72px; bottom: 4%; display: flex; align-items: center; gap: 10px; padding: 10px 16px 10px 10px; font-size: 14px; animation-delay: -3s; }
.chip-bell svg { width: 32px; height: 32px; padding: 6px; border-radius: 50%; background: var(--accent); color: #fff; flex: none; }
@keyframes float { 50% { transform: translateY(-10px); } }
@media (max-width: 560px) {
  .chip-score { left: -4px; top: 7%; width: 168px; }
  .chip-bell { right: -4px; bottom: -3%; }
}

.phone { justify-self: center; width: min(320px, 86vw); aspect-ratio: 9 / 18.5; border-radius: 46px; padding: 12px; background: #1b1c1f; box-shadow: 0 0 0 1px #2c2e33, 0 40px 120px -20px rgba(230, 57, 70, .45), 0 30px 60px rgba(0, 0, 0, .6); position: relative; }
.phone::before { content: ""; position: absolute; top: 22px; left: 50%; width: 84px; height: 22px; margin-left: -42px; border-radius: 12px; background: #000; z-index: 1; }
.screen { height: 100%; border-radius: 36px; overflow: hidden; background: var(--app-bg); padding: 54px 14px 14px; font-size: 13px; }
.app-bar { font-weight: 600; font-size: 15px; padding-bottom: 10px; border-bottom: 1px solid #2c2e33; margin: 0 -14px; padding-left: 14px; }
.app-bar span { margin-right: 10px; }
.app-text { color: #d9dadd; margin: 10px 0; line-height: 1.45; }
.app-card { background: var(--card); border-radius: 12px; padding: 6px; }
.app-timer { display: flex; flex-direction: column; align-items: center; margin-top: 10px; padding: 12px 8px 14px; border-radius: 12px; background: var(--card); transition: background .3s; }
.app-timer .label, .timer-demo .label { font-weight: 800; letter-spacing: .08em; font-size: 12px; }
.app-timer .time { font-weight: 800; font-size: 54px; line-height: 1.1; font-variant-numeric: tabular-nums; }
.app-buttons { display: flex; gap: 8px; margin-top: 4px; }
.app-buttons b { background: rgba(0, 0, 0, .3); padding: 7px 16px; border-radius: 8px; font-size: 12px; }

.skills-section { padding-top: 16px; padding-bottom: 32px; }
.skills-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 16px; margin-bottom: 16px; }
.skills-head h2.eyebrow { font-size: 13px; margin: 0; }
.skills-head p { margin: 0; font-size: 14px; }
.skills { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.skill { display: flex; flex-direction: column; text-align: left; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 10px 10px 16px; color: var(--text); font: inherit; cursor: pointer; transition: transform .2s, border-color .2s; }
.skill:hover { transform: translateY(-3px); border-color: var(--accent); }
.skill svg { width: 100%; height: auto; aspect-ratio: 100 / 95; background: var(--app-bg); border-radius: 12px; }
.skill b { font: 400 24px/1.1 Anton, Impact, sans-serif; text-transform: uppercase; margin: 12px 6px 2px; }
.skill span { color: var(--muted); font-size: 14px; margin: 0 6px; }

.band { background: var(--surface); border-block: 1px solid var(--line); }

.section { max-width: var(--max); margin: 0 auto; padding: 88px 16px; }
.section-head { max-width: 720px; margin-bottom: 40px; }
.section h2 { font-size: clamp(38px, 6vw, 60px); }
.section-lead { color: #c9cbd0; font-size: 18px; margin: 16px 0 0; }

.explorer { background: var(--surface); border: 1px solid var(--line); border-radius: 24px; padding: 16px; }
.tabs { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; }
.tabs button { flex: none; background: transparent; color: var(--muted); border: 1.5px solid var(--line); border-radius: 999px; padding: 9px 18px; font: 700 15px system-ui, sans-serif; cursor: pointer; }
.tabs button[aria-selected="true"] { background: var(--accent); border-color: var(--accent); color: #fff; }
.explorer-body { display: grid; gap: 16px; margin-top: 16px; }
.drill-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; align-content: start; }
.drill-list button { width: 100%; text-align: left; background: var(--card); color: var(--text); border: 1.5px solid transparent; border-radius: 12px; padding: 12px 14px; font: 600 15px system-ui, sans-serif; cursor: pointer; }
.drill-list button small { display: block; color: var(--muted); font-weight: 500; font-size: 13px; margin-top: 2px; }
.drill-list button[aria-current="true"] { border-color: var(--accent); }
.drill-view { display: grid; gap: 16px; }
.stage { background: var(--app-bg); border-radius: 16px; padding: 12px; }
.stage svg { width: 100%; height: auto; max-height: 340px; }
.drill-info h3 { font-size: 26px; margin: 0; }
.drill-info h4 { margin: 18px 0 6px; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.drill-info ol, .drill-info ul { margin: 0; padding-left: 20px; }
.drill-info li { margin-bottom: 4px; }
.meta { display: inline-block; background: rgba(230, 57, 70, .14); color: #ff8a93; font-weight: 700; font-size: 14px; padding: 4px 10px; border-radius: 999px; margin: 8px 0 0; }

.split { display: grid; gap: 40px; align-items: center; }
.points { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 12px; }
.points li { display: flex; align-items: center; gap: 12px; }
.dot { width: 10px; height: 10px; border-radius: 50%; background: var(--muted); flex: none; }
.dot.red { background: linear-gradient(90deg, var(--accent) 33%, var(--rest) 33% 66%, var(--good) 66%); width: 30px; border-radius: 5px; }
.timer-demo { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 36px 20px; border-radius: 24px; background: var(--card); transition: background .3s; text-align: center; }
.timer-demo .label { font-size: 15px; }
.timer-demo .time { font-weight: 800; font-size: clamp(80px, 16vw, 120px); line-height: 1; font-variant-numeric: tabular-nums; }
.rounds { display: flex; gap: 8px; margin: 8px 0 14px; }
.rounds i { width: 28px; height: 6px; border-radius: 3px; background: rgba(255, 255, 255, .2); }
.rounds i.done { background: #fff; }
.td-buttons { display: flex; gap: 10px; }
.td-buttons button { background: rgba(0, 0, 0, .3); color: #fff; border: 0; border-radius: 10px; padding: 12px 22px; font: 700 15px system-ui, sans-serif; cursor: pointer; }
.hint { color: rgba(255, 255, 255, .7); font-size: 13px; margin-top: 12px; }

.rating-grid { display: grid; gap: 32px; align-items: start; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.steps li { display: flex; gap: 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.num { flex: none; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); font: 400 22px Anton, Impact, sans-serif; }
.steps h3 { margin: 0 0 4px; font-size: 20px; }
.steps p { margin: 0; color: #c9cbd0; }
.score-card { margin: 0; background: var(--app-bg); border: 1px solid var(--line); border-radius: 24px; padding: 24px; }
.score-card figcaption { color: var(--muted); font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.score-top { position: relative; width: 120px; height: 120px; margin: 14px 0 10px; }
.ring { transform: rotate(-90deg); }
.ring circle { fill: none; stroke-width: 10; }
.ring-bg { stroke: var(--line); }
.ring-fg { stroke: var(--accent); stroke-linecap: round; stroke-dasharray: 326.7; stroke-dashoffset: 98; }
.score { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; margin: 0; }
.score b { font: 400 46px/1 Anton, Impact, sans-serif; }
.score span { color: var(--muted); font-weight: 700; font-size: 13px; margin-top: 2px; }
.score-card h4 { margin: 16px 0 4px; font-size: 16px; }
.score-card ul { margin: 0; padding-left: 20px; }
.good { color: var(--good); } .bad { color: var(--accent); } .tip { color: var(--rest); }

.cards { display: grid; gap: 16px; }
.cards .card { margin: 0; padding: 24px; border: 1px solid var(--line); }
.cards .icon { width: 42px; height: 42px; padding: 9px; border-radius: 12px; background: rgba(230, 57, 70, .14); color: #ff8a93; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 14px; }
.cards h3 { margin: 0 0 6px; }
.cards p { margin: 0; color: #c9cbd0; }
.center { text-align: center; margin-top: 28px; }

.faq details { border-bottom: 1px solid var(--line); padding: 18px 0; max-width: 780px; }
.faq summary { cursor: pointer; font-weight: 700; font-size: 19px; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--accent); font-size: 24px; line-height: 1; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: #c9cbd0; margin: 10px 0 0; }

.final { max-width: var(--max); margin: 0 auto 72px; padding: 64px 16px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 18px; background: radial-gradient(ellipse at 50% 0%, rgba(230, 57, 70, .28), transparent 60%), var(--surface); border: 1px solid var(--line); border-radius: 28px; }
.final img { border-radius: 22px; }
.final h2 { font-size: clamp(44px, 8vw, 76px); }
.final p { color: #c9cbd0; margin: 0; max-width: 46ch; }
.site-footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 24px; max-width: var(--max); margin: 0 auto; padding: 32px 16px 48px; color: var(--muted); font-size: 14px; border-top: 1px solid var(--line); }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a:hover { color: var(--text); }
.site-footer .brand { color: var(--text); font-size: 16px; margin-right: 0; }
.disclaimer { flex-basis: 100%; margin: 0; font-size: 13px; color: var(--muted); }
body:not(.landing) ol { padding-left: 22px; }

/* Fade in on scroll where the browser supports scroll-driven animations; everything stays visible elsewhere. */
@keyframes rise { from { opacity: 0; transform: translateY(28px); } }
@keyframes fill-ring { from { stroke-dashoffset: 326.7; } }
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .reveal { animation: rise linear both; animation-timeline: view(); animation-range: entry 0% entry 40%; }
    .ring-fg { animation: fill-ring linear both; animation-timeline: view(); animation-range: entry 40% cover 50%; }
  }
}

@media (min-width: 720px) {
  .nav nav { display: flex; }
  .skills { grid-template-columns: repeat(4, 1fr); }
  .cards { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 960px) {
  .hero { grid-template-columns: 1.15fr .85fr; padding-top: 80px; }
  .explorer { padding: 24px; }
  .explorer-body { grid-template-columns: 280px 1fr; }
  .drill-view { grid-template-columns: 1.1fr 1fr; align-items: start; }
  .split { grid-template-columns: 1fr 1fr; gap: 64px; }
  .rating-grid { grid-template-columns: 1fr 1fr; gap: 48px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .chip { animation: none; }
}
