/* ============================================================
   SKATE 3 BROWSER — design system
   Dark skatepark theme · caution tape · sticker badges
   ============================================================ */

:root {
  --bg: #0b0e14;
  --bg-soft: #0e121b;
  --surface: #141926;
  --surface-2: #1a2132;
  --line: rgba(255, 255, 255, 0.09);
  --text: #e9edf5;
  --muted: #9aa5b8;
  --accent: #ff5c1a;
  --accent-hi: #ff8a3d;
  --cyan: #35d6ff;
  --yellow: #ffd23e;
  --green: #3ddc84;
  --red: #ff4b5c;
  --radius: 14px;
  --font-display: "Bebas Neue", Impact, "Arial Narrow", sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--accent); color: #fff; }

img, svg { display: block; max-width: 100%; }

a { color: var(--cyan); text-decoration: none; }
a:hover { text-decoration: underline; }

.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--accent); color: #fff; padding: 10px 18px;
  z-index: 100; border-radius: 0 0 10px 0; font-weight: 700;
}
.skip:focus { left: 0; }

.container { max-width: 1120px; margin: 0 auto; padding: 0 22px; }

/* ---------- caution tape ---------- */
.tape {
  height: 10px;
  background: repeating-linear-gradient(
    -45deg, var(--yellow) 0 16px, #14161c 16px 32px);
}

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(11, 14, 20, 0.86);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex; align-items: center; gap: 26px;
  height: 68px;
}

.brand {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-display);
  font-size: 24px; letter-spacing: 0.06em;
  color: var(--text); text-decoration: none;
}
.brand:hover { text-decoration: none; }
.brand b { color: var(--accent); font-weight: 400; }
.brand svg { width: 40px; height: auto; flex: none; }

.nav { display: flex; gap: 22px; margin-left: auto; flex-wrap: wrap; }
.nav a {
  color: var(--muted); font-weight: 600; font-size: 14.5px;
  text-decoration: none; padding: 6px 2px;
  border-bottom: 2px solid transparent;
}
.nav a:hover { color: var(--text); text-decoration: none; }
.nav a[aria-current="page"] {
  color: var(--accent-hi);
  border-bottom-color: var(--accent);
}

.nav-toggle {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: 0; cursor: pointer; padding: 8px;
}
.nav-toggle span {
  width: 24px; height: 2.5px; background: var(--text);
  border-radius: 2px; transition: 0.25s;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--font-body); font-weight: 700; font-size: 16px;
  border-radius: 12px; padding: 14px 28px;
  border: 1px solid transparent; cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s;
  text-decoration: none; white-space: nowrap;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }

.btn-primary {
  background: linear-gradient(135deg, #ff7a1a, #ff3d00);
  color: #fff;
  box-shadow: 0 10px 30px -10px rgba(255, 90, 0, 0.55);
}
.btn-primary:hover {
  box-shadow: 0 16px 38px -12px rgba(255, 90, 0, 0.75);
  color: #fff;
}

.btn-ghost {
  border-color: var(--line); color: var(--text);
  background: rgba(255, 255, 255, 0.03);
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.07); color: var(--text); }

.btn-lg { padding: 18px 40px; font-size: 18px; border-radius: 14px; }
.btn-sm { padding: 10px 20px; font-size: 14px; border-radius: 10px; }

.btn-play { animation: pulse 2.6s ease-in-out infinite; }
@keyframes pulse {
  0%, 100% { box-shadow: 0 10px 30px -10px rgba(255, 90, 0, 0.55); }
  50% { box-shadow: 0 10px 44px -4px rgba(255, 90, 0, 0.85); }
}

/* ---------- hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(900px 480px at 72% -10%, rgba(255, 92, 26, 0.16), transparent 60%),
    radial-gradient(700px 420px at 8% 112%, rgba(53, 214, 255, 0.09), transparent 60%),
    var(--bg-soft);
}
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(180deg, rgba(0,0,0,.9), transparent 75%);
  -webkit-mask-image: linear-gradient(180deg, rgba(0,0,0,.9), transparent 75%);
}

.hero-grid {
  position: relative;
  display: grid; grid-template-columns: 1.12fr 0.88fr;
  gap: 52px; align-items: center;
  padding: 78px 0 68px;
}

.kicker {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--accent-hi); font-weight: 700;
  letter-spacing: 0.16em; text-transform: uppercase; font-size: 13px;
  margin-bottom: 18px;
}
.kicker::before {
  content: ""; width: 26px; height: 3px;
  background: var(--accent); border-radius: 2px;
}

h1 {
  font-family: var(--font-display);
  font-size: clamp(46px, 7vw, 86px);
  line-height: 0.94; letter-spacing: 0.015em;
  text-transform: uppercase; font-weight: 400;
  margin-bottom: 20px;
}
h1 .outline {
  color: transparent;
  -webkit-text-stroke: 2px var(--accent);
}

.h1-tagline {
  font-family: var(--font-display);
  font-size: clamp(20px, 3vw, 30px);
  letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--accent);
  margin: -10px 0 22px;
}

.hero .sub {
  color: var(--muted); font-size: 18px; max-width: 54ch;
  margin-bottom: 30px;
}
.hero .sub strong { color: var(--text); }

.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 26px; }

.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 34px; }
.chip {
  border: 1px solid var(--line); border-radius: 999px;
  padding: 7px 14px; font-size: 13.5px; color: var(--muted);
  background: rgba(255, 255, 255, 0.03);
}
.chip b { color: var(--text); font-weight: 600; }

.stats { display: flex; gap: 42px; flex-wrap: wrap; }
.stat b {
  display: block; font-family: var(--font-display);
  font-size: 38px; color: var(--accent-hi); letter-spacing: 0.03em;
}
.stat span { color: var(--muted); font-size: 13.5px; }

/* ---------- hero "screenshot" card ---------- */
.screen-card {
  position: relative; border: 1px solid var(--line);
  border-radius: 18px; overflow: hidden;
  background: #0d1119;
  box-shadow: 0 34px 90px -30px rgba(0, 0, 0, 0.85);
  transform: rotate(1.6deg);
}
.screen-top, .screen-foot {
  display: flex; align-items: center; justify-content: space-between;
  gap: 10px; padding: 10px 16px;
  font: 600 12px var(--font-mono); color: var(--muted);
  letter-spacing: 0.04em;
}
.screen-top .live { display: flex; align-items: center; gap: 8px; color: var(--text); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--red); animation: blink 1.6s infinite; }
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0.25; } }

.screen-sky {
  position: relative; aspect-ratio: 16 / 10;
  background: linear-gradient(180deg, #2b1a4a 0%, #6d2f5e 44%, #ff7a3d 78%, #ffb15e 100%);
  overflow: hidden;
}
.sun {
  position: absolute; right: 16%; top: 34%;
  width: 92px; height: 92px; border-radius: 50%;
  background: #ffd88a;
  box-shadow: 0 0 70px 24px rgba(255, 200, 120, 0.45);
}
.ramp {
  position: absolute; bottom: 0; background: #10131d;
}
.ramp-1 { left: -8%; width: 62%; height: 46%; clip-path: polygon(0 100%, 0 52%, 58% 100%); }
.ramp-2 { right: -14%; width: 74%; height: 34%; clip-path: polygon(38% 100%, 100% 0, 100% 100%); }
.skater-emoji {
  position: absolute; left: 22%; bottom: 34%;
  font-size: 46px; line-height: 1;
  filter: drop-shadow(0 10px 12px rgba(0, 0, 0, 0.45));
  animation: skatejump 4.2s ease-in-out infinite;
}
@keyframes skatejump {
  0%, 100% { transform: translate(0, 0) rotate(3deg); }
  50% { transform: translate(84px, -54px) rotate(-16deg); }
}
.screen-hud {
  position: absolute; inset: 12px 14px auto 14px;
  display: flex; justify-content: space-between; gap: 8px;
  pointer-events: none;
}
.hud {
  background: rgba(8, 10, 16, 0.6); border-radius: 8px;
  padding: 5px 10px; font: 700 11.5px var(--font-mono);
  letter-spacing: 0.05em; color: #fff;
  backdrop-filter: blur(3px);
}
.hud .hl { color: var(--yellow); }

.sticker {
  position: absolute; top: -14px; right: -12px; z-index: 2;
  background: #fff; color: #0b0e14;
  font-weight: 800; font-size: 13px; letter-spacing: 0.02em;
  padding: 9px 16px; border-radius: 9px;
  transform: rotate(6deg);
  box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.5);
}
.sticker--inline { position: static; display: inline-block; transform: rotate(-2deg); }

/* ---------- sections ---------- */
.section { padding: 76px 0; }
.section-alt { background: var(--bg-soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.section-head { margin-bottom: 42px; }
h2 {
  font-family: var(--font-display);
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.02; letter-spacing: 0.02em;
  text-transform: uppercase; font-weight: 400;
}
.section-head h2 { margin-bottom: 12px; }
.section-head p { color: var(--muted); max-width: 68ch; }

.grid { display: grid; gap: 20px; }
.cols-2 { grid-template-columns: repeat(2, 1fr); }
.cols-3 { grid-template-columns: repeat(3, 1fr); }
.cols-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 26px;
  transition: transform 0.2s ease, border-color 0.2s, box-shadow 0.2s;
}
.card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 122, 26, 0.45);
  box-shadow: 0 22px 44px -22px rgba(0, 0, 0, 0.7);
}
.card h3 { font-size: 18.5px; margin-bottom: 8px; letter-spacing: 0.01em; }
.card p { color: var(--muted); font-size: 15px; }

.icon {
  width: 46px; height: 46px; border-radius: 12px;
  display: grid; place-items: center;
  background: rgba(255, 92, 26, 0.13);
  font-size: 22px; margin-bottom: 16px;
}
.icon--cyan { background: rgba(53, 214, 255, 0.12); }
.icon--green { background: rgba(61, 220, 132, 0.12); }
.icon--yellow { background: rgba(255, 210, 62, 0.13); }

/* link cards */
.link-card { display: flex; flex-direction: column; gap: 8px; }
.link-card .go {
  margin-top: auto; padding-top: 14px;
  color: var(--accent-hi); font-weight: 700; font-size: 14.5px;
}
.link-card:hover .go { text-decoration: underline; }
.link-card { text-decoration: none; color: inherit; }
.link-card:hover { text-decoration: none; }

/* ---------- steps ---------- */
.steps { display: grid; gap: 22px; counter-reset: step; }
.step {
  display: grid; grid-template-columns: 58px 1fr; gap: 20px;
  align-items: start;
}
.step-num {
  width: 58px; height: 58px; border-radius: 50%;
  border: 2px solid var(--accent);
  display: grid; place-items: center;
  font-family: var(--font-display); font-size: 26px;
  color: var(--accent-hi);
  background: rgba(255, 92, 26, 0.08);
}
.step h3 { font-size: 17.5px; margin-bottom: 6px; }
.step p { color: var(--muted); font-size: 15px; }

/* ---------- tables ---------- */
.table-wrap {
  overflow-x: auto; border: 1px solid var(--line);
  border-radius: 12px; background: var(--surface);
}
table { width: 100%; border-collapse: collapse; min-width: 520px; }
th {
  text-align: left; padding: 13px 18px;
  font-size: 12.5px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--accent-hi); background: var(--surface-2);
  white-space: nowrap;
}
td {
  padding: 13px 18px; font-size: 15px; color: var(--text);
  border-top: 1px solid var(--line); vertical-align: top;
}
td.mut { color: var(--muted); }

kbd {
  display: inline-block;
  background: #0b0e14; border: 1px solid var(--line);
  border-bottom-width: 3px; border-radius: 6px;
  padding: 2px 9px; margin: 0 1px;
  font-family: var(--font-mono); font-size: 13px; color: var(--text);
}

/* ---------- notes ---------- */
.note {
  border-left: 3px solid var(--yellow);
  background: rgba(255, 210, 62, 0.07);
  padding: 15px 20px; border-radius: 0 10px 10px 0;
  font-size: 14.5px; color: var(--muted);
  margin: 22px 0;
}
.note b { color: var(--text); }
.note--info { border-left-color: var(--cyan); background: rgba(53, 214, 255, 0.06); }
.note--green { border-left-color: var(--green); background: rgba(61, 220, 132, 0.06); }

/* ---------- check list ---------- */
.check-list { list-style: none; display: grid; gap: 12px; }
.check-list li {
  display: flex; gap: 12px; align-items: flex-start;
  color: var(--muted); font-size: 15px;
}
.check-list li::before {
  content: "✓"; flex: none;
  width: 22px; height: 22px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(61, 220, 132, 0.15); color: var(--green);
  font-size: 13px; font-weight: 800; margin-top: 3px;
}
.check-list li b { color: var(--text); }

/* ---------- FAQ ---------- */
.faq-group { margin-bottom: 46px; }
.faq-group h3 {
  font-family: var(--font-display); font-size: 24px;
  letter-spacing: 0.04em; text-transform: uppercase;
  color: var(--accent-hi); margin-bottom: 18px; font-weight: 400;
}
details.faq {
  border: 1px solid var(--line); border-radius: 12px;
  background: var(--surface); margin-bottom: 10px;
  overflow: hidden;
}
details.faq summary {
  cursor: pointer; padding: 17px 22px;
  font-weight: 600; font-size: 15.5px;
  list-style: none; display: flex;
  justify-content: space-between; align-items: center; gap: 18px;
}
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after {
  content: "+"; font-size: 24px; font-weight: 400;
  color: var(--accent-hi); line-height: 1; transition: 0.2s;
}
details.faq[open] summary::after { content: "–"; }
details.faq[open] summary { border-bottom: 1px solid var(--line); }
.faq-body { padding: 16px 22px 20px; color: var(--muted); font-size: 15px; }
.faq-body a { word-break: break-word; }

/* ---------- article body ---------- */
.article { max-width: 780px; }
.article h2 {
  font-size: clamp(26px, 3.4vw, 36px);
  margin: 52px 0 16px;
}
.article h3 { font-size: 19px; margin: 34px 0 10px; }
.article p { color: var(--muted); margin-bottom: 16px; }
.article p b, .article li b { color: var(--text); }
.article ul, .article ol { color: var(--muted); margin: 0 0 18px 22px; }
.article li { margin-bottom: 8px; }

/* ---------- breadcrumb / page head ---------- */
.breadcrumb {
  padding: 20px 22px 0; font-size: 13.5px; color: var(--muted);
}
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--accent-hi); }
.breadcrumb .sep { margin: 0 8px; color: var(--line); }

.page-head {
  background:
    radial-gradient(700px 340px at 80% -20%, rgba(255, 92, 26, 0.14), transparent 60%),
    var(--bg-soft);
  border-bottom: 1px solid var(--line);
  padding: 46px 0 54px;
}
.page-head h1 {
  font-size: clamp(38px, 5.6vw, 64px); margin-bottom: 14px;
}
.page-head .lede {
  color: var(--muted); font-size: 17.5px; max-width: 70ch;
}
.page-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 26px; }

/* ---------- CTA band ---------- */
.cta-band {
  position: relative; overflow: hidden;
  background:
    radial-gradient(600px 300px at 50% -30%, rgba(255, 122, 26, 0.25), transparent 65%),
    linear-gradient(135deg, rgba(255, 92, 26, 0.13), rgba(255, 61, 0, 0.04)),
    var(--surface);
  border: 1px solid rgba(255, 122, 26, 0.32);
  border-radius: 22px; padding: 54px 34px;
  text-align: center;
}
.cta-band h2 { margin-bottom: 12px; }
.cta-band p {
  color: var(--muted); max-width: 52ch; margin: 0 auto 28px;
}
.cta-band .sub-note {
  margin: 18px 0 0; font-size: 13px; color: var(--muted);
}

/* ---------- footer ---------- */
.site-footer { background: #090c12; border-top: 1px solid var(--line); margin-top: 90px; }
.footer-grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px; padding: 56px 22px 40px;
}
.footer-grid h4 {
  font-size: 12.5px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--accent-hi); margin-bottom: 16px;
}
.footer-grid ul { list-style: none; display: grid; gap: 10px; }
.footer-grid a { color: var(--muted); font-size: 14.5px; }
.footer-grid a:hover { color: var(--text); }
.footer-brand p {
  color: var(--muted); font-size: 14px; margin-top: 14px; max-width: 40ch;
}
.footer-bottom {
  border-top: 1px solid var(--line);
  padding: 22px; display: block;
  color: var(--muted); font-size: 13px; text-align: center;
}

/* ---------- floating playbar (mobile) ---------- */
.playbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  display: none; padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
  background: rgba(11, 14, 20, 0.92);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--line);
}
.playbar .btn { flex: 1; }

/* ---------- back to top ---------- */
.to-top {
  position: fixed; right: 22px; bottom: 24px; z-index: 55;
  width: 46px; height: 46px; border-radius: 50%;
  border: 1px solid var(--line); background: var(--surface);
  color: var(--text); font-size: 19px; cursor: pointer;
  opacity: 0; pointer-events: none; transition: 0.25s;
}
.to-top.show { opacity: 1; pointer-events: auto; }
.to-top:hover { border-color: var(--accent); color: var(--accent-hi); }

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; padding: 56px 0 54px; gap: 44px; }
  .cols-3, .cols-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 820px) {
  .nav {
    display: none; position: absolute; top: 68px; left: 0; right: 0;
    flex-direction: column; gap: 0;
    background: #0d1019; border-bottom: 1px solid var(--line);
    padding: 8px 22px 16px;
  }
  .nav a { padding: 13px 2px; border-bottom: 1px solid var(--line); font-size: 15.5px; }
  .nav a:last-child { border-bottom: 0; }
  body.nav-open .nav { display: flex; }
  .nav-toggle { display: flex; margin-left: auto; }
  .header-inner .btn { display: none; }
  body.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
  body.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
  body.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }
}

@media (max-width: 720px) {
  .playbar { display: flex; }
  body { padding-bottom: 66px; }
  .to-top { bottom: 84px; }
  .cols-2, .cols-3, .cols-4 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .stats { gap: 26px; }
  .section { padding: 58px 0; }
  .sticker { top: -10px; right: -6px; font-size: 11.5px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}
