@font-face { font-family: Orbitron; src: url("fonts/orbitron-latin-wght-normal.woff2") format("woff2"); font-weight: 400 900; font-display: swap; }
:root {
  /* RaceCore default theme */
  --bg: #090f1c; --bg-soft: #101a2e; --panel: #141f34; --panel-2: #0c1527; --line: #2a3a58;
  --text: #f7f8fb; --muted: #9aa9c4; --accent: #d21f22; --accent-2: #0ea5e9; --ok: #26c281;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
a { color: var(--accent-2); }
img, video { display: block; max-width: 100%; height: auto; border-radius: 10px; border: 1px solid var(--line); background: #000; }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 16px; }
section { padding: 64px 0 8px; }
h1, h2, .logo span, .tile h3 { font-family: Orbitron, system-ui, sans-serif; }
h1 { font-size: clamp(1.7rem, 4vw, 2.6rem); line-height: 1.2; margin: 0 0 16px; font-weight: 800; }
h2 { font-size: clamp(1.3rem, 2.6vw, 1.7rem); margin: 0 0 8px; font-weight: 700; }
h2 + .sub { color: var(--muted); margin: 0 0 24px; max-width: 760px; }
h3 { font-size: 1.05rem; margin: 0 0 6px; }
.small { color: var(--muted); font-size: .9rem; }
.kicker { display: inline-block; color: var(--accent-2); font-weight: 700; font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 8px; }

.top { position: sticky; top: 0; z-index: 10; background: rgba(9,15,28,.92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 60px; flex-wrap: wrap; }
.logo { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 800; text-decoration: none; font-size: 1.05rem; }
.logo img { border: 0; border-radius: 9px; background: none; box-shadow: 0 6px 16px rgba(210,31,34,.25); }
.logo b { color: var(--accent); }
nav { display: flex; align-items: center; gap: 4px 14px; flex-wrap: wrap; }
nav a { color: var(--muted); text-decoration: none; font-size: .95rem; }
nav a:hover { color: var(--text); }
#lang { background: none; color: var(--text); border: 1px solid var(--line); border-radius: 6px; padding: 3px 10px; font: inherit; font-size: .85rem; cursor: pointer; }

.hero { padding-top: 56px; background: radial-gradient(900px 400px at 85% 0%, rgba(210,31,34,.16), transparent 70%), radial-gradient(700px 360px at 0% 30%, rgba(14,165,233,.10), transparent 70%); padding-bottom: 24px; }
.hero-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 40px; align-items: center; }
.lead { font-size: 1.12rem; color: #c9d3e6; }
.cta { display: flex; gap: 12px; flex-wrap: wrap; margin: 24px 0 12px; }
.btn { display: inline-block; padding: 10px 20px; border-radius: 8px; border: 1px solid var(--line); color: var(--text); text-decoration: none; font-weight: 600; background: var(--panel); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn:hover { filter: brightness(1.1); }

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 16px; }
.cards article { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 18px 20px; }
.cards p { margin: 0; color: #c3cde0; }
.cards video, .cards img { margin-top: 14px; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.split.flip > :first-child { order: 2; }
.ticks { list-style: none; padding: 0; margin: 16px 0 0; }
.ticks li { padding-left: 28px; position: relative; margin-bottom: 10px; color: #d3dbea; }
.ticks li::before { content: "✓"; position: absolute; left: 0; color: var(--ok); font-weight: 800; }
.stack { display: grid; gap: 14px; }

.band { background: linear-gradient(180deg, var(--bg-soft), var(--bg)); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding-bottom: 56px; margin-top: 56px; }

.gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 20px; }
figure { margin: 0; }
figcaption { color: var(--muted); font-size: .9rem; margin-top: 8px; }

.placeholder { background: var(--panel); border: 1px dashed var(--line); border-radius: 12px; padding: 28px; color: var(--muted); text-align: center; }

.steps { padding-left: 1.2em; }
.steps li { margin-bottom: 12px; }
pre { background: var(--panel-2); border: 1px solid var(--line); border-radius: 8px; padding: 12px 14px; overflow-x: auto; font-size: .9rem; }


@media (max-width: 860px) {
  .hero-grid, .split { grid-template-columns: 1fr; gap: 24px; }
  .split.flip > :first-child { order: 0; }
  .gallery { grid-template-columns: 1fr; }
  section { padding-top: 44px; }
}

/* Get started */
.tabs { display: flex; gap: 8px; flex-wrap: wrap; margin: 8px 0 20px; }
.tabs button { font: inherit; font-weight: 600; color: var(--muted); background: var(--panel); border: 1px solid var(--line); border-radius: 999px; padding: 8px 18px; cursor: pointer; }
.tabs button[aria-selected="true"] { color: #fff; background: var(--accent); border-color: var(--accent); }
.os { background: var(--panel-2); border: 1px solid var(--line); border-radius: 14px; padding: 20px 22px; }
.note { margin-top: 0; color: #c9d3e6; }
.guide { list-style: none; counter-reset: g; padding: 0; margin: 0; }
.guide > li { counter-increment: g; position: relative; padding: 0 0 22px 52px; margin-bottom: 22px; border-bottom: 1px solid var(--line); color: #d3dbea; }
.guide > li:last-child { border-bottom: 0; margin-bottom: 0; }
.guide > li::before { content: counter(g); position: absolute; left: 0; top: 0; width: 36px; height: 36px; border-radius: 50%; background: var(--accent); color: #fff; font: 800 1rem/36px Orbitron, sans-serif; text-align: center; }
.guide h3 { font-size: 1.15rem; margin: 4px 0 8px; color: var(--text); }
.guide ul, .sub-steps { margin: 10px 0; padding-left: 1.3em; }
.guide li li { margin-bottom: 6px; }
kbd { display: inline-block; font: 600 .85em/1.4 system-ui, sans-serif; padding: 1px 7px; border: 1px solid var(--line); border-bottom-width: 3px; border-radius: 6px; background: var(--panel); color: var(--text); }
code { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; }
p code, li code, span code { background: var(--panel); padding: 1px 6px; border-radius: 5px; font-size: .9em; }
pre { position: relative; padding-right: 96px; }
pre code { color: #e6edf8; background: none !important; padding: 0 !important; font-size: 1em !important; }
.copy { position: absolute; top: 8px; right: 8px; font: 600 .8rem system-ui, sans-serif; color: #fff; background: var(--accent-2); border: 0; border-radius: 6px; padding: 5px 10px; cursor: pointer; }
.tip, .warn { border-radius: 8px; padding: 10px 14px; margin: 12px 0 0; }
.tip { background: rgba(14,165,233,.10); border: 1px solid rgba(14,165,233,.35); }
.warn { background: rgba(245,166,35,.10); border: 1px solid rgba(245,166,35,.45); }
.more { margin-top: 16px; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 12px 16px; }
.more summary { cursor: pointer; font-weight: 700; }
@media (max-width: 600px) { pre { white-space: pre-wrap; word-break: break-all; padding-right: 14px; padding-top: 42px; } .guide > li { padding-left: 0; padding-top: 46px; } .os { padding: 16px; } }

/* ---- multi-page layout ---- */
.burger { display: none; background: none; border: 1px solid var(--line); border-radius: 8px; width: 42px; height: 38px; cursor: pointer; position: relative; }
.burger span, .burger span::before, .burger span::after { position: absolute; left: 10px; right: 10px; height: 2px; background: var(--text); content: ""; }
.burger span { top: 18px; } .burger span::before { top: -7px; left: 0; right: 0; } .burger span::after { top: 7px; left: 0; right: 0; }
nav a[aria-current="page"], .drop.active > .drop-btn { color: var(--text); }
nav > a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--accent); }
.drop { position: relative; }
.drop-btn { font: inherit; font-size: .95rem; color: var(--muted); background: none; border: 0; cursor: pointer; padding: 6px 0; }
.drop-btn:hover { color: var(--text); }
.drop-menu { display: none; position: absolute; top: calc(100% + 10px); left: -16px; min-width: 260px; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 8px; box-shadow: 0 16px 40px rgba(0,0,0,.45); }
.drop.open .drop-menu { display: grid; }
.drop-menu a { display: flex; gap: 10px; align-items: center; padding: 8px 10px; border-radius: 8px; color: var(--text); }
.drop-menu a:hover, .drop-menu a[aria-current="page"] { background: var(--bg-soft); }
.drop-menu a[aria-current="page"] { box-shadow: inset 3px 0 0 var(--accent); }
.ico { width: 1.4em; text-align: center; }

.page-hero { padding: 48px 0 8px; background: radial-gradient(800px 300px at 90% 0%, rgba(210,31,34,.14), transparent 70%); }
.page-hero .lead { max-width: 820px; }
.crumbs { color: var(--muted); font-size: .9rem; margin: 0 0 8px; }
.crumbs a { color: var(--muted); }
.h-ico { margin-right: 12px; }

.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px; }
.tile { display: flex; flex-direction: column; background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 20px; color: var(--text); text-decoration: none; transition: border-color .15s, transform .15s; }
.tile:hover { border-color: var(--accent); transform: translateY(-2px); }
.tile-ico { font-size: 1.8rem; }
.tile h3 { margin: 8px 0 6px; font-size: 1.1rem; }
.tile p { color: #c3cde0; margin: 0 0 12px; font-size: .95rem; flex: 1; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.more-link { color: var(--accent-2); font-weight: 600; font-size: .9rem; }

.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.feature-card { display: flex; flex-direction: column; background: var(--panel); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; color: var(--text); text-decoration: none; }
.feature-card:hover { border-color: var(--accent); }
.feature-card img { border: 0; border-radius: 0; }
.feature-card > div { padding: 18px 20px; }
.feature-card h2 { font-size: 1.2rem; }
.feature-card p { color: #c3cde0; margin: 0; }

.level { margin-top: 4px; }
.level-pane { background: var(--panel-2); border: 1px solid var(--line); border-radius: 14px; padding: 20px 22px; }
.level-pane .guide > li { padding-bottom: 14px; margin-bottom: 14px; padding-top: 6px; }
.adv { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 12px 16px; margin-top: 10px; }
.adv summary { cursor: pointer; font-weight: 700; }
.adv ol { margin: 12px 0 4px; padding-left: 1.4em; color: #d3dbea; }
.adv li { margin-bottom: 8px; }
.pager { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

.foot { margin-top: 64px; border-top: 1px solid var(--line); background: var(--panel-2); padding: 32px 0; }
.foot-grid { display: grid; grid-template-columns: 1.2fr 2fr 1fr; gap: 24px; }
.foot-links { display: flex; flex-wrap: wrap; gap: 6px 16px; align-content: start; }
.foot-links a { color: var(--muted); text-decoration: none; font-size: .9rem; }
.foot-links a:hover { color: var(--text); }

@media (max-width: 860px) {
  .burger { display: block; }
  nav#menu { display: none; width: 100%; flex-direction: column; align-items: stretch; gap: 0; padding: 8px 0 14px; }
  nav#menu.open { display: flex; }
  nav#menu > a, .drop-btn { padding: 10px 4px; border-bottom: 1px solid var(--line); text-align: left; width: 100%; }
  .drop-menu { position: static; display: grid; box-shadow: none; border: 0; background: none; padding: 4px 0 4px 12px; min-width: 0; }
  .drop-btn span[aria-hidden] { display: none; }
  #lang { align-self: flex-start; margin-top: 10px; }
  .duo, .foot-grid { grid-template-columns: 1fr; }
}
.foot-license { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); color: var(--muted); }
.foot-license a { color: inherit; text-decoration: underline; }

/* ---- racing look: floating menu bar, slanted headings, // section titles ---- */
body {
  background:
    linear-gradient(115deg, transparent 0 58%, rgba(210,31,34,.10) 58% 61%, transparent 61% 63%, rgba(210,31,34,.06) 63% 64%, transparent 64%) top / 100% 760px no-repeat,
    radial-gradient(1100px 520px at 80% -10%, rgba(14,165,233,.10), transparent 70%) top / 100% 900px no-repeat,
    var(--bg);
}
.top { background: none; border-bottom: 0; backdrop-filter: none; padding-top: 10px; }
.top .bar { background: rgba(16,26,46,.82); backdrop-filter: blur(10px); border: 1px solid var(--line); border-radius: 18px; padding: 6px 10px 6px 14px; min-height: 54px; box-shadow: 0 10px 30px rgba(0,0,0,.35); max-width: 1128px; }
nav a, .drop-btn { font-weight: 700; font-size: .85rem; letter-spacing: .06em; text-transform: uppercase; }
nav > a[aria-current="page"] { box-shadow: none; color: #fff; }
nav > a[aria-current="page"]::after, .drop.active > .drop-btn::after { content: ""; display: block; height: 2px; margin-top: 2px; background: var(--accent); border-radius: 2px; }
.drop-menu a { text-transform: none; letter-spacing: 0; font-weight: 600; font-size: .95rem; }
#lang { border-radius: 999px; font-weight: 700; }

h1 { font-style: italic; font-weight: 900; text-transform: uppercase; letter-spacing: .01em; line-height: 1.12; }
h1::after { content: ""; display: inline-block; width: .9em; height: .16em; margin-left: .3em; background: var(--accent); transform: skewX(-20deg) translateY(-.15em); border-radius: 2px; }
.page-hero h1 { font-size: clamp(1.35rem, 2.6vw, 1.9rem); }

section > h2, section > .wrap > h2, #howto > h2, .split h2 {
  font-size: 1rem; font-weight: 800; font-style: italic; text-transform: uppercase; letter-spacing: .08em;
  padding-bottom: 10px; margin-bottom: 14px; border-bottom: 1px solid var(--line);
}
section > h2::before, section > .wrap > h2::before, #howto > h2::before, .split h2::before { content: "//"; color: var(--accent); margin-right: 8px; letter-spacing: -.1em; }
.feature-card h2 { font-style: italic; }

.btn { border-radius: 999px; padding: 10px 22px; font-weight: 800; font-size: .9rem; text-transform: uppercase; letter-spacing: .06em; background: rgba(16,26,46,.8); border-color: #3a5a8c; }
.btn.primary { box-shadow: 0 8px 22px rgba(210,31,34,.35); }
.btn:hover { filter: brightness(1.15); }

.tile, .feature-card, .level-pane, .os, .adv, .more { border-radius: 16px; }
.tile { background: linear-gradient(160deg, var(--panel), var(--panel-2)); }
.tile:hover, .feature-card:hover { border-color: var(--accent); box-shadow: 0 10px 28px rgba(210,31,34,.18); }
.kicker { color: var(--accent); }
.kicker::before { content: "● "; }

@media (max-width: 860px) {
  .top { padding: 8px 8px 0; }
  .top .bar { border-radius: 14px; }
  nav a, .drop-btn { font-size: .9rem; }
  nav > a[aria-current="page"]::after, .drop.active > .drop-btn::after { display: none; }
}
section.wrap { padding-top: 48px; padding-bottom: 8px; }
.hero h1 { font-size: clamp(1.45rem, 2.5vw, 2rem); letter-spacing: .02em; }
@media (max-width: 860px) { section.wrap { padding-top: 36px; } }
