/* Phantom Racing Development - site styles */
:root {
  --bg: #07070b;
  --bg-2: #0c0c13;
  --panel: #12121b;
  --line: rgba(255, 255, 255, 0.09);
  --text: #f4f4f5;
  --muted: #a1a1aa;
  --purple: #8b4fd8;
  --purple-soft: rgba(139, 79, 216, 0.16);
  --green: #7ed321;
  --cyan: #3fd8f0;
  --radius: 10px;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; background: var(--bg); color: var(--text); }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--green); text-underline-offset: 3px; }
.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 12px; background: var(--green); color: #000; padding: 8px 12px; z-index: 100; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(7, 7, 11, 0.86);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; }
.brand img { width: 36px; height: 36px; border-radius: 8px; }
.brand span { font-family: var(--mono); font-weight: 900; letter-spacing: 2.5px; font-size: 13px; }
.brand b { color: var(--green); }
.nav { display: flex; gap: 20px; flex-wrap: wrap; }
.nav a { color: var(--muted); text-decoration: none; font-family: var(--mono); font-size: 12px; font-weight: 700; letter-spacing: 1.5px; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--text); }
/* Compact "Join our Discord" button, top right of the header */
.nav-discord {
  display: inline-flex; align-items: center; gap: 6px; flex: none;
  padding: 5px 12px 5px 5px; border-radius: 999px; text-decoration: none; color: #ffffff;
  background: rgba(88, 101, 242, 0.14); border: 1px solid rgba(88, 101, 242, 0.55);
  font-family: var(--mono); font-size: 11px; font-weight: 800; letter-spacing: 1.2px; white-space: nowrap;
  transition: background-color 0.15s ease, box-shadow 0.15s ease;
}
.nav-discord:hover { background: #5865f2; box-shadow: 0 0 22px rgba(88, 101, 242, 0.45); }
.nav-discord img, .nav-discord .nd-mark { width: 22px; height: 22px; border-radius: 6px; flex: none; }
.nav-discord .nd-mark { display: grid; place-items: center; background: #5865f2; }
.nav-discord:hover .nd-mark { background: #ffffff; }
.nav-discord .nd-mark svg { width: 14px; height: 14px; fill: #ffffff; }
.nav-discord:hover .nd-mark svg { fill: #5865f2; }
.nav-discord .nd-x { color: var(--muted); font-size: 11px; line-height: 1; }

/* ---------- type ---------- */
.eyebrow { font-family: var(--mono); color: var(--green); font-size: 12px; font-weight: 900; letter-spacing: 4px; text-transform: uppercase; }
h1, h2, h3 { line-height: 1.12; margin: 0; }
h1 { font-size: clamp(36px, 6.5vw, 64px); font-weight: 900; letter-spacing: -0.5px; margin: 14px 0 18px; }
h2 { font-size: clamp(26px, 4vw, 38px); font-weight: 900; margin: 10px 0 14px; }
h3 { font-size: 18px; font-weight: 800; margin-bottom: 6px; }
.lead { color: var(--muted); font-size: clamp(17px, 2.2vw, 20px); max-width: 640px; }
.accent { color: var(--cyan); }

/* ---------- buttons ---------- */
.btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 22px; border-radius: 6px; text-decoration: none;
  font-family: var(--mono); font-weight: 900; font-size: 13px; letter-spacing: 1.5px;
  border: 1px solid transparent;
}
.btn-primary { background: var(--green); color: #050505; }
.btn-primary:hover { filter: brightness(1.08); }
.btn-ghost { border-color: var(--line); color: var(--text); }
.btn-ghost:hover { border-color: rgba(255, 255, 255, 0.28); }
.btn-soon { border: 1px dashed var(--line); color: var(--muted); cursor: default; }
.btn svg { flex: none; }

/* ---------- sections ---------- */
section { padding: 72px 0; }
.section-alt { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.center { text-align: center; }
.center .lead { margin-left: auto; margin-right: auto; }

.hero { padding: 64px 0 56px; position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: -30% -10% auto -10%; height: 90%;
  background: radial-gradient(ellipse at 70% 30%, rgba(139, 79, 216, 0.28), transparent 60%),
              radial-gradient(ellipse at 20% 10%, rgba(63, 216, 240, 0.12), transparent 55%);
  pointer-events: none;
}
.hero .wrap { position: relative; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 40px; align-items: center; }
/* Grid children must be allowed to shrink below the image's natural size,
   otherwise the artwork pushes the page wider than a phone screen. */
.hero .wrap > * { min-width: 0; }
.hero-art { width: 100%; border-radius: 16px; border: 1px solid var(--line); overflow: hidden; box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6), 0 0 60px rgba(139, 79, 216, 0.18); }
.hero-logo { width: min(360px, 80%); margin: 0 auto; filter: drop-shadow(0 20px 60px rgba(139, 79, 216, 0.35)); }

.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); margin-top: 32px; }
.card {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px;
}
.card p { margin: 0; color: var(--muted); font-size: 15px; }
.icon {
  width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; margin-bottom: 14px;
  background: var(--purple-soft); color: var(--green);
}
.icon svg { width: 22px; height: 22px; }

.app-card { display: grid; grid-template-columns: 280px 1fr; gap: 28px; align-items: center; padding: 26px; }
.app-card img { border-radius: 12px; border: 1px solid var(--line); }
.tag { display: inline-block; font-family: var(--mono); font-size: 11px; font-weight: 900; letter-spacing: 1.5px; padding: 4px 8px; border-radius: 4px; margin-right: 6px; }
.tag-live { background: rgba(126, 211, 33, 0.14); color: var(--green); }
.tag-soon { background: rgba(63, 216, 240, 0.12); color: var(--cyan); }

.steps { counter-reset: step; display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); margin-top: 32px; }
.step { counter-increment: step; position: relative; padding-top: 44px; }
.step::before {
  content: counter(step); position: absolute; top: 20px; left: 22px;
  font-family: var(--mono); font-weight: 900; color: var(--green); font-size: 13px; letter-spacing: 2px;
}

.price { max-width: 460px; margin: 32px auto 0; text-align: center; border-color: rgba(126, 211, 33, 0.35); }
.price .big { font-size: 44px; font-weight: 900; }
.price .big small { font-size: 16px; color: var(--muted); font-weight: 600; }
.price ul { list-style: none; padding: 0; margin: 18px 0 0; color: #d4d4d8; text-align: left; }
.price li { padding: 6px 0 6px 26px; position: relative; }
.price li::before { content: ""; position: absolute; left: 4px; top: 15px; width: 8px; height: 8px; background: var(--green); border-radius: 2px; }

details { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 20px; margin-top: 10px; }
summary { cursor: pointer; font-weight: 800; }
details p { color: var(--muted); margin: 10px 0 0; }

/* ---------- documents (legal/support) ---------- */
.doc { max-width: 780px; padding: 56px 0 24px; }
.doc h1 { font-size: clamp(32px, 5vw, 46px); }
.doc h2 { font-size: 20px; margin-top: 36px; color: var(--text); }
.doc h3 { margin-top: 24px; }
.doc p, .doc li { color: #d4d4d8; }
.updated { font-family: var(--mono); font-size: 12px; letter-spacing: 1px; color: var(--muted); }
.callout { background: var(--purple-soft); border: 1px solid rgba(139, 79, 216, 0.4); border-radius: var(--radius); padding: 18px 20px; margin: 20px 0; }
.callout p { margin: 0; }

/* ---------- join ---------- */
.join { max-width: 560px; margin: 0 auto; text-align: center; padding: 56px 0; }
.code {
  font-family: var(--mono); font-weight: 900; font-size: clamp(34px, 9vw, 54px); letter-spacing: 10px;
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px 12px; margin: 18px 0 8px;
}
.join .btns { justify-content: center; }
.join ol { text-align: left; color: #d4d4d8; }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 40px 0 48px; color: var(--muted); font-size: 14px; margin-top: 40px; }
.site-footer .wrap { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 24px; }
.site-footer h4 { margin: 0 0 10px; font-family: var(--mono); font-size: 12px; letter-spacing: 2px; color: var(--text); }
.site-footer a { color: var(--muted); text-decoration: none; display: block; padding: 3px 0; }
.site-footer a:hover { color: var(--text); }
.copy { margin-top: 12px; font-size: 13px; }

[hidden] { display: none !important; }

@media (max-width: 820px) {
  .nav-discord { order: 2; }
  .nav { order: 3; width: 100%; }
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-art { order: -1; max-width: 520px; }
  .app-card { grid-template-columns: 1fr; }
  .site-footer .wrap { grid-template-columns: 1fr 1fr; }
  section { padding: 56px 0; }
}
@media (max-width: 480px) {
  .nav-discord .nd-text { display: none; }
  .nav-discord { padding: 5px 8px 5px 5px; }
  .nav { gap: 14px; }
  .site-footer .wrap { grid-template-columns: 1fr; }
}
