/* CrashCrafts theme: night violet, toxic lime, ice cyan. Tokens first, then brand-only components. */
@font-face { font-family: "Chakra"; src: url(/fonts/chakra-700.woff2) format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Chakra"; src: url(/fonts/chakra-600.woff2) format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Rubik"; src: url(/fonts/rubik.woff2) format("woff2"); font-weight: 300 900; font-display: swap; }

:root {
  --bg: #08060f; --bg-2: #0e0b1a; --surface: #120e22; --surface-2: #191431;
  --line: #2a2148; --line-2: #3b2f66;
  --text: #f1eefb; --text-2: #b9b2d6; --text-3: #8d85ad;
  --accent: #a6f21b; --accent-2: #c8ff5a; --accent-ink: #0d1400;
  --accent-soft: rgba(166, 242, 27, .12);
  --violet: #8f4dff; --violet-2: #b48aff; --magenta: #e04dff; --cyan: #2fd8f5; --danger: #ff5d73;

  --font-display: "Chakra", "Rubik", system-ui, sans-serif;
  --font-body: "Rubik", system-ui, sans-serif;
  --display-transform: uppercase;
  --display-tracking: -0.01em;
  --display-leading: 1;
  --h1-hero: clamp(2.8rem, 7.4vw, 5.6rem);
  --h1-page: clamp(2.4rem, 6vw, 4.4rem);
  --h2: clamp(2rem, 4.6vw, 3.3rem);
  --eyebrow-font: 700 .78rem/1 var(--font-display);
  --eyebrow-tracking: .16em;
  --eyebrow-color: var(--accent);

  --radius: 0px;
  --radius-lg: 0px;
  --cut: 14px;
  --btn-radius: 0px;
  --btn-cut: 14px;
  --btn-font: 700 .92rem/1 var(--font-display);
  --btn-transform: uppercase;
  --btn-tracking: .06em;
  --btn-primary-bg: linear-gradient(180deg, var(--accent-2), var(--accent));
  --btn-primary-bg-hover: linear-gradient(180deg, #d8ff80, var(--accent-2));
  --btn-ghost-line: var(--cyan);

  --wrap: 1220px;
  --header-h: 74px;
  --nav-font: 600 .82rem/1 var(--font-display);
  --nav-transform: uppercase;
  --nav-tracking: .1em;
  --nav-indicator: var(--accent);
  --nav-current: var(--accent);

  --hero-overlay: linear-gradient(90deg, rgba(8, 6, 15, .92) 0%, rgba(8, 6, 15, .6) 38%, rgba(8, 6, 15, .05) 70%), linear-gradient(0deg, var(--bg) 0%, transparent 32%);
  --hero-overlay-sm: linear-gradient(0deg, var(--bg) 4%, rgba(8, 6, 15, .7) 50%, rgba(8, 6, 15, .45));
  --page-hero-overlay: linear-gradient(90deg, rgba(8, 6, 15, .94), rgba(8, 6, 15, .55) 60%, rgba(8, 6, 15, .3)), linear-gradient(0deg, var(--bg), transparent 55%);
}

html { scrollbar-color: var(--violet) var(--bg); }
::-webkit-scrollbar-thumb { background: linear-gradient(var(--violet), var(--magenta)); }
.lime { color: var(--accent); }
.eyebrow::before { content: ""; width: 4px; height: 16px; background: var(--accent); transform: skewX(-20deg); box-shadow: 0 0 10px var(--accent); }
.link-arrow { font: 700 .85rem/1 var(--font-display); text-transform: uppercase; letter-spacing: .06em; }
.btn-primary { filter: drop-shadow(0 8px 18px rgba(166, 242, 27, .3)); }
.btn-primary:hover { filter: drop-shadow(0 10px 24px rgba(166, 242, 27, .5)); }
.btn-ghost { background: rgba(8, 6, 15, .4); }
.btn-ghost:hover { background: rgba(47, 216, 245, .12); }
.card { border-color: transparent; }
.cell .i { color: var(--cyan); }
.faq details { border-radius: 0; }

.brand img { height: 62px; width: auto; filter: drop-shadow(0 0 14px rgba(143, 77, 255, .35)); transition: filter .3s; }
.brand:hover img { filter: drop-shadow(0 0 18px rgba(166, 242, 27, .45)); }

/* hero */
.hero { border-bottom: 0; }
.hero-media img { object-position: 60% 40%; }
.hero-inner { min-height: min(760px, 90vh); padding-block: 88px 120px; }
.hero h1 { line-height: .95; max-width: 11ch; text-shadow: 0 6px 30px rgba(0, 0, 0, .55); }
.hero-copy { max-width: 42ch; color: #e2dcf6; text-shadow: 0 2px 14px rgba(0, 0, 0, .6); }
.hero-feats { display: flex; flex-wrap: wrap; gap: 26px; margin: 34px 0 0; padding: 0; list-style: none; }
.hero-feats li { display: grid; justify-items: center; gap: 8px; width: 88px; text-align: center; font: 600 .74rem/1.2 var(--font-display); text-transform: uppercase; letter-spacing: .06em; }
.hero-feats .i { width: 34px; height: 34px; stroke-width: 1.6; }
.hero-feats li:nth-child(1) .i { color: var(--magenta); }
.hero-feats li:nth-child(2) .i { color: var(--cyan); }
.hero-feats li:nth-child(3) .i { color: var(--violet-2); }
.hero-feats li:nth-child(4) .i { color: var(--accent); }

/* live status pill */
.status-pill { display: inline-flex; align-items: center; gap: 10px; width: max-content; margin-bottom: 26px; padding: 9px 14px; border: 1px solid color-mix(in srgb, currentColor 55%, transparent); background: rgba(8, 6, 15, .6); backdrop-filter: blur(6px); font: 600 .74rem/1 var(--font-display); letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
.status-pill .dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; box-shadow: 0 0 10px currentColor; }
.status-pill[data-state="down"] { color: var(--danger); }
.status-pill[data-state="unknown"] { color: var(--text-2); }
.page-hero .status-pill { margin: 32px 0 0; }

/* neon tiles overlapping the hero */
.tiles { position: relative; z-index: 2; display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: -76px; }
.tile { --glow: var(--accent); position: relative; display: grid; grid-template-columns: 54px 1fr; gap: 14px; align-items: center; padding: 20px; background: linear-gradient(160deg, rgba(25, 20, 49, .96), rgba(14, 11, 26, .96)); }
.tile::before, .plan::before { content: ""; position: absolute; inset: 0; padding: 1.5px; background: linear-gradient(135deg, var(--glow), transparent 55%, var(--glow)); clip-path: inherit; -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none; }
.tile:nth-child(2) { --glow: var(--magenta); } .tile:nth-child(3) { --glow: var(--cyan); } .tile:nth-child(4) { --glow: var(--violet); }
.tile .i { width: 46px; height: 46px; color: var(--glow); stroke-width: 1.5; filter: drop-shadow(0 0 10px var(--glow)); }
.tile h3 { font-size: 1rem; letter-spacing: .03em; }
.tile p { margin-top: 4px; color: var(--text-2); font-size: .86rem; line-height: 1.45; }

/* full-bleed diagonal image split */
.bleed { display: grid; grid-template-columns: 1fr 1.1fr; min-height: 440px; border-block: 1px solid var(--line); background: var(--bg-2); }
.bleed-copy { align-self: center; padding: clamp(40px, 6vw, 72px) clamp(24px, 4vw, 56px) clamp(40px, 6vw, 72px) max(var(--gutter), calc((100vw - var(--wrap)) / 2)); }
.bleed-copy h2 { font-size: clamp(2rem, 4.2vw, 3rem); }
.bleed-copy .lede { margin-top: 16px; }
.bleed-copy .hero-actions { margin-top: 28px; }
.bleed-img { position: relative; clip-path: polygon(14% 0, 100% 0, 100% 100%, 0 100%); }
.bleed-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.bleed.flip { grid-template-columns: 1.1fr 1fr; }
.bleed.flip .bleed-img { order: -1; clip-path: polygon(0 0, 100% 0, 86% 100%, 0 100%); }
.bleed.flip .bleed-copy { padding: clamp(40px, 6vw, 72px) max(var(--gutter), calc((100vw - var(--wrap)) / 2)) clamp(40px, 6vw, 72px) clamp(24px, 4vw, 56px); }

/* game cards */
.games { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.game { --glow: var(--accent); position: relative; display: flex; flex-direction: column; background: var(--surface); clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 18px, 100% 100%, 18px 100%, 0 calc(100% - 18px)); transition: transform .35s var(--ease); scroll-margin-top: calc(var(--header-h) + 24px); }
.game:nth-child(2) { --glow: var(--cyan); } .game:nth-child(3) { --glow: var(--magenta); }
.game:hover { transform: translateY(-4px); }
.game-img { aspect-ratio: 16 / 10; overflow: hidden; }
.game-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.game:hover .game-img img { transform: scale(1.06); }
.game-body { padding: 20px 22px 24px; border-top: 2px solid var(--glow); }
.game .genre { font: 700 .72rem/1 var(--font-display); letter-spacing: .14em; text-transform: uppercase; color: var(--glow); }
.game h3 { font-size: 1.5rem; margin-top: 8px; }
.game p { color: var(--text-2); font-size: .94rem; margin-top: 10px; }
.game .cover { position: absolute; inset: 0; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.tags span { padding: 5px 9px; background: rgba(143, 77, 255, .14); border: 1px solid var(--line-2); font-size: .74rem; font-weight: 600; color: var(--text-2); }

/* pricing */
.toggle { display: inline-flex; gap: 4px; padding: 5px; border: 1px solid var(--line-2); border-radius: 999px; background: var(--surface); }
.toggle button { display: inline-flex; align-items: center; gap: 8px; padding: 11px 20px; border: 0; border-radius: 999px; background: none; color: var(--text-2); font: 700 .82rem/1 var(--font-display); letter-spacing: .08em; text-transform: uppercase; cursor: pointer; transition: background .2s, color .2s; }
.toggle button[aria-pressed="true"] { background: var(--accent-soft); color: var(--accent); box-shadow: inset 0 0 0 1.5px var(--accent); }
.toggle .save { padding: 3px 7px; border-radius: 999px; background: var(--accent); color: var(--accent-ink); font-size: .7rem; }
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; margin-top: 36px; }
.plan { --glow: var(--line-2); position: relative; display: flex; flex-direction: column; padding: 26px 24px 24px; background: linear-gradient(180deg, var(--surface-2), var(--surface)); }
.plan::before { padding: 1px; background: linear-gradient(160deg, var(--line-2), var(--line)); }
.plan.popular { background: linear-gradient(180deg, var(--accent-soft), var(--surface) 45%); }
.plan.popular::before { padding: 2px; background: linear-gradient(160deg, var(--accent), var(--violet)); }
.plan .badge { position: absolute; top: 18px; right: 18px; padding: 5px 9px; background: var(--accent); color: var(--accent-ink); font: 700 .66rem/1 var(--font-display); letter-spacing: .1em; text-transform: uppercase; }
.plan h3 { font-size: 1.6rem; }
.plan .tagline { min-height: 2.8em; margin-top: 6px; color: var(--text-2); font-size: .9rem; }
.price { display: flex; align-items: baseline; gap: 6px; margin-top: 18px; }
.price strong { font: 700 2.4rem/1 var(--font-display); font-variant-numeric: tabular-nums; }
.price span { color: var(--text-3); font-size: .9rem; }
.price-note { min-height: 1.3em; margin-top: 6px; color: var(--text-3); font-size: .8rem; }
.plan .checklist { margin: 20px 0 24px; gap: 10px; }
.plan .checklist li { font-size: .92rem; }
.plan .btn { width: 100%; margin-top: auto; }
.notice { margin-top: 36px; padding: 28px; border: 1px dashed var(--line-2); color: var(--text-2); text-align: center; }
.notice strong { color: var(--text); }
.skeleton { height: 420px; background: linear-gradient(90deg, var(--surface) 0%, var(--surface-2) 50%, var(--surface) 100%); background-size: 200% 100%; animation: shimmer 1.4s linear infinite; }
.skeleton-row { height: 76px; }
@keyframes shimmer { to { background-position: -200% 0; } }

/* live servers */
.server-list { display: grid; gap: 10px; }
.server { display: grid; grid-template-columns: auto 1fr auto auto; gap: 18px; align-items: center; padding: 18px 22px; border: 1px solid var(--line); background: var(--surface); }
.server .state { width: 10px; height: 10px; border-radius: 50%; background: var(--text-3); }
.server[data-state="running"] .state { background: var(--accent); box-shadow: 0 0 10px var(--accent); }
.server[data-state="offline"] .state { background: var(--danger); }
.server h3 { font-size: 1.1rem; letter-spacing: .02em; }
.server .game-name { color: var(--text-3); font-size: .85rem; }
.server .players { font: 600 .95rem/1 var(--font-display); color: var(--text-2); font-variant-numeric: tabular-nums; }
.copy { display: inline-flex; align-items: center; gap: 8px; padding: 9px 12px; border: 1px solid var(--line-2); background: var(--bg); color: var(--text); font: 500 .88rem/1 ui-monospace, "Cascadia Mono", Consolas, monospace; cursor: pointer; }
.copy:hover, .copy[data-done] { border-color: var(--accent); }
.copy[data-done] { color: var(--accent); }

/* image CTA */
.cta-hero { position: relative; isolation: isolate; overflow: hidden; padding-block: clamp(80px, 10vw, 130px); text-align: center; }
.cta-hero .hero-media::after { background: linear-gradient(0deg, var(--bg), rgba(8, 6, 15, .45) 45%, var(--bg)); }
.cta-hero .logo { width: min(320px, 70vw); margin: 0 auto; filter: drop-shadow(0 10px 40px rgba(143, 77, 255, .5)); }
.cta-hero h2 { font-size: clamp(2rem, 5vw, 3.4rem); margin-top: 18px; }
.cta-hero p { color: var(--text-2); margin-top: 12px; }
.cta-hero .hero-actions { justify-content: center; }

/* footer */
.footer-top { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 28px; padding-block: 34px; }
.footer-logo img { height: 56px; width: auto; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 4px 22px; }
.footer-nav a { padding-block: 8px; font: var(--nav-font); letter-spacing: var(--nav-tracking); text-transform: uppercase; color: var(--text-2); }
.footer-nav a:hover { color: var(--accent); }
.socials { display: flex; gap: 10px; }
.socials a { display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid var(--line-2); color: var(--text-2); transition: color .2s, border-color .2s; }
.socials a:hover { color: var(--accent); border-color: var(--accent); }

@media (prefers-reduced-motion: no-preference) {
  .hero-feats { animation: rise 1s var(--ease) both .16s; }
  .hero-media img { animation: drift 30s ease-in-out infinite alternate; }
  @keyframes drift { from { transform: scale(1.04); } to { transform: scale(1.1) translateX(-1.5%); } }
}
@media (max-width: 1100px) {
  .tiles { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 960px) {
  .bleed, .bleed.flip { grid-template-columns: 1fr; }
  .bleed-img, .bleed.flip .bleed-img { order: -1; min-height: 240px; clip-path: polygon(0 0, 100% 0, 100% 88%, 0 100%); }
  .bleed-copy, .bleed.flip .bleed-copy { padding: 40px var(--gutter) 56px; }
  .games { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .brand img { height: 50px; }
  .tiles { grid-template-columns: 1fr; margin-top: -48px; }
  .hero-feats { gap: 8px; justify-content: space-between; }
  .hero-feats li { width: 74px; font-size: .7rem; }
  .hero-inner { padding-block: 64px 90px; }
  .server { grid-template-columns: auto 1fr; }
  .server .players, .server .copy { grid-column: 2; justify-self: start; }
  .footer-top { flex-direction: column; align-items: flex-start; }
}

.tile, .plan, .skeleton { clip-path: polygon(var(--cut) 0, 100% 0, 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0 100%, 0 var(--cut)); }
