/* ============================================================
   CNYTeslaGuy.com — Design System
   Dark, cinematic, electric. Built for Cnyteslaguy.com
   ============================================================ */

:root {
  --bg: #07070b;
  --bg-2: #0d0d14;
  --bg-3: #13131d;
  --surface: rgba(255, 255, 255, 0.04);
  --surface-2: rgba(255, 255, 255, 0.07);
  --border: rgba(255, 255, 255, 0.10);
  --border-hi: rgba(255, 255, 255, 0.22);
  --text: #f4f5f7;
  --text-dim: #a7adbb;
  --text-faint: #6b7180;
  --red: #e82127;            /* Tesla red */
  --red-hot: #ff3a41;
  --cyan: #21d4fd;
  --blue: #3a7bd5;
  --green: #2ecc71;
  --amber: #f5a623;
  --grad-electric: linear-gradient(100deg, #21d4fd 0%, #3a7bd5 45%, #e82127 100%);
  --grad-red: linear-gradient(100deg, #e82127, #ff5f3a);
  --radius: 16px;
  --radius-lg: 24px;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.55);
  --font-head: "Space Grotesk", "Segoe UI", system-ui, sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, sans-serif;
  --maxw: 1200px;
}

* { 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: 16.5px;
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ambient background glow */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(900px 500px at 85% -10%, rgba(232, 33, 39, 0.13), transparent 60%),
    radial-gradient(800px 600px at -10% 30%, rgba(33, 212, 253, 0.09), transparent 55%),
    radial-gradient(700px 500px at 50% 110%, rgba(58, 123, 213, 0.10), transparent 60%);
}

h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.15; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.4rem, 6vw, 4.4rem); font-weight: 700; }
h2 { font-size: clamp(1.8rem, 4vw, 2.7rem); font-weight: 700; }
h3 { font-size: 1.35rem; font-weight: 600; }
p  { color: var(--text-dim); }
a  { color: var(--cyan); text-decoration: none; }
a:hover { color: #7fe6ff; }
img, iframe, video { max-width: 100%; border-radius: var(--radius); }
::selection { background: var(--red); color: #fff; }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
section { padding: 88px 0; position: relative; }
.section-tight { padding: 48px 0; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--cyan);
  margin-bottom: 14px;
}
.eyebrow::before { content: ""; width: 26px; height: 2px; background: var(--grad-electric); border-radius: 2px; }

.grad-text {
  background: var(--grad-electric);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.red-text { color: var(--red-hot); }
.lead { font-size: 1.18rem; color: var(--text-dim); max-width: 720px; }
.center { text-align: center; }
.center .lead { margin: 0 auto; }
.mt-1 { margin-top: 12px; } .mt-2 { margin-top: 24px; } .mt-3 { margin-top: 40px; }
.mb-2 { margin-bottom: 24px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 30px; border-radius: 999px;
  font-family: var(--font-head); font-weight: 600; font-size: 0.98rem;
  cursor: pointer; border: 1px solid transparent;
  transition: transform 0.25s cubic-bezier(.2,.9,.3,1.4), box-shadow 0.25s, background 0.25s, border-color 0.25s;
  white-space: nowrap;
}
.btn:active { transform: scale(0.97); }
.btn-primary {
  background: var(--grad-red); color: #fff;
  box-shadow: 0 8px 30px rgba(232, 33, 39, 0.38);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 40px rgba(232, 33, 39, 0.5); color: #fff; }
.btn-ghost {
  background: var(--surface); color: var(--text); border-color: var(--border);
  backdrop-filter: blur(8px);
}
.btn-ghost:hover { border-color: var(--border-hi); background: var(--surface-2); transform: translateY(-2px); color: #fff; }
.btn-cyan { background: linear-gradient(100deg, #21d4fd, #3a7bd5); color: #04121c; box-shadow: 0 8px 30px rgba(33, 212, 253, 0.25); }
.btn-cyan:hover { transform: translateY(-2px); color: #04121c; }
.btn-sm { padding: 9px 18px; font-size: 0.86rem; }
.btn-danger { background: rgba(232,33,39,.15); color: var(--red-hot); border-color: rgba(232,33,39,.4); }
.btn-danger:hover { background: rgba(232,33,39,.3); color: #fff; }
.btn-success { background: rgba(46,204,113,.15); color: var(--green); border-color: rgba(46,204,113,.4); }
.btn-success:hover { background: rgba(46,204,113,.3); color: #fff; }
.btn[disabled] { opacity: .5; pointer-events: none; }

/* ---------- Header / Nav ---------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  transition: background 0.35s, box-shadow 0.35s, border-color 0.35s;
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: rgba(7, 7, 11, 0.82);
  backdrop-filter: blur(18px);
  border-bottom-color: var(--border);
  box-shadow: 0 8px 30px rgba(0,0,0,.4);
}
.nav-inner {
  max-width: 1320px; margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center; justify-content: space-between;
  height: 72px; gap: 20px;
}
.brand {
  font-family: var(--font-head); font-weight: 700; font-size: 1.22rem;
  color: #fff; display: flex; align-items: center; gap: 10px; letter-spacing: -0.01em;
}
.brand:hover { color: #fff; }
/* Wordmark logo: Cny[T]eslaGuy — the T is a stylized EV blade glyph */
.brand-word {
  display: inline-flex; align-items: baseline;
  font-family: var(--font-head); font-weight: 700; font-size: 1.42rem;
  letter-spacing: -0.015em; line-height: 1; white-space: nowrap;
}
.brand-word .cny { color: var(--cyan); }
.brand-word .wm-esla { color: #fff; }
.brand-word .wm-guy { color: var(--red-hot); }
.wm-t {
  display: inline-block; width: 0.98em; height: 0.98em;
  margin: 0 0.02em 0 0.04em; align-self: center; transform: translateY(0.05em);
  filter: drop-shadow(0 2px 8px rgba(232, 33, 39, 0.55));
  animation: pulse-mark 3.2s ease-in-out infinite;
  transition: transform 0.3s cubic-bezier(.2,.9,.3,1.6);
}
.wm-t svg { width: 100%; height: 100%; display: block; border-radius: 0; }
.brand:hover .wm-t { transform: translateY(0.05em) scale(1.14); }
@keyframes pulse-mark {
  0%, 100% { filter: drop-shadow(0 2px 8px rgba(232, 33, 39, 0.55)); }
  50% { filter: drop-shadow(0 2px 16px rgba(232, 33, 39, 0.95)); }
}
.brand-text { display: flex; flex-direction: column; line-height: 1.15; gap: 3px; }
.brand-text small {
  font-family: var(--font-body); font-weight: 600; font-size: 0.58rem;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-faint);
}
.brand .cny { color: var(--cyan); }
.nav-links { display: flex; align-items: center; gap: 1px; list-style: none; }
.nav-links a {
  color: var(--text-dim); font-size: 0.88rem; font-weight: 500;
  padding: 9px 10px; border-radius: 10px; transition: color .2s, background .2s;
  white-space: nowrap;
}
.nav-links a:hover { color: #fff; background: var(--surface-2); }
.nav-links a.active { color: #fff; background: var(--surface-2); box-shadow: inset 0 -2px 0 var(--red); }
.nav-cta { display: flex; align-items: center; gap: 10px; }
.nav-toggle {
  display: none; background: var(--surface); border: 1px solid var(--border);
  color: #fff; width: 44px; height: 44px; border-radius: 12px; font-size: 1.25rem; cursor: pointer;
}
@media (max-width: 1380px) {
  .nav-links {
    display: none; position: absolute; top: 72px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 2px;
    background: rgba(9, 9, 14, 0.98); backdrop-filter: blur(20px);
    padding: 16px 20px 24px; border-bottom: 1px solid var(--border);
  }
  .nav-links.open { display: flex; animation: fadeDown .3s ease; }
  .nav-links a { padding: 13px 16px; font-size: 1.02rem; }
  .nav-toggle { display: grid; place-items: center; }
  .nav-cta .btn { display: none; }
}
@keyframes fadeDown { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }

/* ---------- Hero ---------- */
.hero {
  min-height: 100svh; display: flex; align-items: center;
  position: relative; padding: 130px 0 80px; overflow: hidden;
}
.hero-canvas { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; border-radius: 0; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 9px;
  background: var(--surface); border: 1px solid var(--border);
  padding: 8px 18px; border-radius: 999px; font-size: 0.85rem; color: var(--text-dim);
  backdrop-filter: blur(10px); margin-bottom: 26px;
}
.hero-badge .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); animation: blink 1.8s infinite; }
@keyframes blink { 50% { opacity: 0.25; } }
.hero h1 { max-width: 900px; }
.hero .lead { margin-top: 22px; font-size: 1.25rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 38px; }
.hero-stats {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 14px; margin-top: 64px; max-width: 860px;
}
.stat-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 20px 22px; backdrop-filter: blur(10px);
  transition: transform .3s, border-color .3s;
}
.stat-card:hover { transform: translateY(-4px); border-color: var(--border-hi); }
.stat-card .num { font-family: var(--font-head); font-size: 1.9rem; font-weight: 700; color: #fff; }
.stat-card .num span { color: var(--red-hot); }
.stat-card .lbl { font-size: 0.82rem; color: var(--text-faint); text-transform: uppercase; letter-spacing: 0.08em; margin-top: 2px; }
.scroll-hint {
  position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%);
  color: var(--text-faint); font-size: 1.4rem; animation: bob 2s ease-in-out infinite;
}
@keyframes bob { 0%,100% { transform: translate(-50%, 0); } 50% { transform: translate(-50%, 10px); } }

/* ---------- Cards & grids ---------- */
.grid { display: grid; gap: 22px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 980px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 30px;
  backdrop-filter: blur(12px);
  transition: transform .35s cubic-bezier(.2,.8,.3,1), border-color .35s, box-shadow .35s;
  position: relative; overflow: hidden;
}
.card::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 2px;
  background: var(--grad-electric); opacity: 0; transition: opacity .35s;
}
.card:hover { transform: translateY(-6px); border-color: var(--border-hi); box-shadow: var(--shadow); }
.card:hover::before { opacity: 1; }
.card h3 { margin-bottom: 10px; color: #fff; }
.card .icon {
  width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center;
  font-size: 1.5rem; margin-bottom: 18px;
  background: linear-gradient(135deg, rgba(33,212,253,.14), rgba(232,33,39,.14));
  border: 1px solid var(--border);
}
.card p { font-size: 0.97rem; }
.card-link { display: inline-flex; align-items: center; gap: 7px; margin-top: 16px; font-weight: 600; font-size: .93rem; }
.card-link::after { content: "→"; transition: transform .25s; }
.card-link:hover::after { transform: translateX(5px); }

/* vehicle showcase card */
.vehicle-card { padding: 0; overflow: hidden; }
.vehicle-visual {
  height: 190px; display: grid; place-items: center; position: relative;
  background: radial-gradient(circle at 50% 120%, rgba(232,33,39,.22), transparent 65%), var(--bg-3);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}
.vehicle-visual svg { width: 78%; height: auto; filter: drop-shadow(0 18px 22px rgba(0,0,0,.6)); transition: transform .5s cubic-bezier(.2,.8,.3,1); }
.vehicle-card:hover .vehicle-visual svg { transform: scale(1.06) translateY(-4px); }
.vehicle-visual img {
  width: 100%; height: 100%; object-fit: cover; border-radius: 0; display: block;
  transition: transform .5s cubic-bezier(.2,.8,.3,1);
}
.vehicle-card:hover .vehicle-visual img { transform: scale(1.05); }
.vehicle-visual.card { padding: 0; overflow: hidden; }
/* Studio renders: red car floating on the black card, not cropped */
.vehicle-visual img.studio {
  object-fit: contain; width: 92%; height: 92%; margin: auto;
  filter: drop-shadow(0 22px 26px rgba(0, 0, 0, 0.7));
}
.vehicle-card:hover .vehicle-visual img.studio { transform: scale(1.07) translateY(-3px); }
.vehicle-visual img.dark-photo {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: center 72%;
}
.vehicle-body { padding: 24px 26px 28px; }
.vehicle-body .price { color: var(--cyan); font-weight: 600; font-size: 0.92rem; margin-bottom: 12px; }
.vehicle-specs { display: flex; gap: 0; margin-top: 16px; border-top: 1px solid var(--border); padding-top: 14px; }
.vehicle-specs div { flex: 1; }
.vehicle-specs .v { font-family: var(--font-head); font-weight: 700; color: #fff; font-size: 1.05rem; }
.vehicle-specs .k { font-size: 0.72rem; color: var(--text-faint); text-transform: uppercase; letter-spacing: .07em; }

/* ---------- Tabs ---------- */
.tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 30px 0; }
.tab-btn {
  padding: 11px 22px; border-radius: 999px; cursor: pointer;
  background: var(--surface); border: 1px solid var(--border); color: var(--text-dim);
  font-family: var(--font-head); font-weight: 600; font-size: 0.92rem; transition: all .25s;
}
.tab-btn:hover { color: #fff; border-color: var(--border-hi); }
.tab-btn.active { background: var(--grad-red); color: #fff; border-color: transparent; box-shadow: 0 6px 22px rgba(232,33,39,.4); }
.tab-panel { display: none; animation: fadeUp .45s ease; }
.tab-panel.active { display: block; }

/* ---------- Spec tables ---------- */
.spec-table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.spec-table th, .spec-table td { padding: 14px 16px; text-align: left; border-bottom: 1px solid var(--border); }
.spec-table th { font-family: var(--font-head); color: #fff; font-size: 0.85rem; text-transform: uppercase; letter-spacing: .06em; }
.spec-table td { color: var(--text-dim); }
.spec-table td:first-child { color: #fff; font-weight: 500; }
.spec-table tr:hover td { background: var(--surface); }
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); backdrop-filter: blur(10px); }

/* ---------- Timeline ---------- */
.timeline { position: relative; margin-top: 46px; padding-left: 34px; }
.timeline::before { content: ""; position: absolute; left: 9px; top: 6px; bottom: 6px; width: 2px; background: linear-gradient(var(--cyan), var(--red)); border-radius: 2px; }
.tl-item { position: relative; padding: 0 0 34px 14px; }
.tl-item::before {
  content: ""; position: absolute; left: -32px; top: 7px; width: 14px; height: 14px;
  border-radius: 50%; background: var(--bg); border: 3px solid var(--cyan);
  box-shadow: 0 0 14px rgba(33,212,253,.6);
}
.tl-item:nth-child(even)::before { border-color: var(--red); box-shadow: 0 0 14px rgba(232,33,39,.6); }
.tl-item .year { font-family: var(--font-head); font-weight: 700; color: var(--cyan); font-size: 1.05rem; }
.tl-item:nth-child(even) .year { color: var(--red-hot); }
.tl-item h4 { color: #fff; margin: 3px 0 5px; font-size: 1.1rem; }
.tl-item p { font-size: 0.95rem; }

/* ---------- Video ---------- */
.video-frame {
  position: relative; padding-top: 56.25%; border-radius: var(--radius-lg);
  overflow: hidden; border: 1px solid var(--border); background: var(--bg-3);
  box-shadow: var(--shadow);
}
.video-frame iframe, .video-frame video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; border-radius: 0; object-fit: cover; }

/* ---------- FAQ ---------- */
.faq-item { border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); margin-bottom: 12px; overflow: hidden; backdrop-filter: blur(8px); }
.faq-q {
  width: 100%; text-align: left; padding: 20px 24px; cursor: pointer;
  background: none; border: 0; color: #fff; font-family: var(--font-head);
  font-size: 1.02rem; font-weight: 600; display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.faq-q .chev { transition: transform .3s; color: var(--cyan); flex-shrink: 0; }
.faq-item.open .faq-q .chev { transform: rotate(180deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .45s ease; }
.faq-a-inner { padding: 0 24px 22px; color: var(--text-dim); font-size: 0.97rem; }

/* ---------- Forms ---------- */
.form-card { max-width: 560px; margin: 0 auto; }
label { display: block; font-size: 0.86rem; font-weight: 600; color: var(--text); margin: 18px 0 7px; font-family: var(--font-head); }
input, select, textarea {
  width: 100%; padding: 13px 16px; border-radius: 12px;
  background: rgba(0,0,0,.35); border: 1px solid var(--border); color: #fff;
  font-family: var(--font-body); font-size: 0.98rem; transition: border-color .25s, box-shadow .25s;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(33,212,253,.15); }
select option { background: var(--bg-2); }
textarea { resize: vertical; min-height: 110px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; } }
.form-msg { margin-top: 16px; padding: 13px 16px; border-radius: 12px; font-size: 0.93rem; display: none; }
.form-msg.err { display: block; background: rgba(232,33,39,.12); border: 1px solid rgba(232,33,39,.4); color: #ff9b9e; }
.form-msg.ok { display: block; background: rgba(46,204,113,.12); border: 1px solid rgba(46,204,113,.4); color: #7ee2ab; }

/* ---------- Badges / chips ---------- */
.chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 5px 13px;
  border-radius: 999px; font-size: 0.76rem; font-weight: 700;
  letter-spacing: .04em; text-transform: uppercase;
  background: var(--surface-2); border: 1px solid var(--border); color: var(--text-dim);
}
.chip-green { background: rgba(46,204,113,.13); border-color: rgba(46,204,113,.4); color: var(--green); }
.chip-red { background: rgba(232,33,39,.13); border-color: rgba(232,33,39,.4); color: var(--red-hot); }
.chip-amber { background: rgba(245,166,35,.13); border-color: rgba(245,166,35,.4); color: var(--amber); }
.chip-cyan { background: rgba(33,212,253,.12); border-color: rgba(33,212,253,.4); color: var(--cyan); }

/* ---------- Listings ---------- */
.listing-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(310px, 1fr)); gap: 24px; }
.listing-card { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.listing-photo {
  height: 210px; background-size: cover; background-position: center; position: relative;
  background-color: var(--bg-3); border-bottom: 1px solid var(--border);
  display: grid; place-items: center;
}
.listing-photo .placeholder { font-size: 3rem; opacity: .35; }
.listing-photo .chip { position: absolute; top: 14px; left: 14px; backdrop-filter: blur(8px); }
.listing-body { padding: 22px 24px 26px; flex: 1; display: flex; flex-direction: column; }
.listing-body h3 { font-size: 1.18rem; }
.listing-price { font-family: var(--font-head); font-size: 1.5rem; font-weight: 700; color: var(--cyan); margin: 8px 0 12px; }
.listing-meta { display: flex; flex-wrap: wrap; gap: 8px 16px; font-size: 0.86rem; color: var(--text-faint); margin-bottom: 16px; }
.listing-meta span { display: inline-flex; align-items: center; gap: 5px; }

/* ---------- Filter bar ---------- */
.filter-bar {
  display: flex; flex-wrap: wrap; gap: 12px; align-items: end;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 20px 22px; margin-bottom: 34px; backdrop-filter: blur(10px);
}
.filter-bar > div { flex: 1; min-width: 150px; }
.filter-bar label { margin-top: 0; }

/* ---------- Admin ---------- */
.admin-shell { display: grid; grid-template-columns: 230px 1fr; gap: 26px; align-items: start; }
@media (max-width: 900px) { .admin-shell { grid-template-columns: 1fr; } }
.admin-nav { position: sticky; top: 96px; display: flex; flex-direction: column; gap: 6px; }
.admin-nav button {
  text-align: left; padding: 13px 18px; border-radius: 12px; cursor: pointer;
  background: var(--surface); border: 1px solid var(--border); color: var(--text-dim);
  font-family: var(--font-head); font-weight: 600; font-size: 0.92rem; transition: all .2s;
}
.admin-nav button:hover { color: #fff; border-color: var(--border-hi); }
.admin-nav button.active { background: var(--grad-red); color: #fff; border-color: transparent; }
.admin-panel { display: none; }
.admin-panel.active { display: block; animation: fadeUp .35s ease; }
.admin-row {
  display: flex; flex-wrap: wrap; gap: 14px; align-items: center; justify-content: space-between;
  border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface);
  padding: 18px 22px; margin-bottom: 12px;
}
.admin-row .info { flex: 1; min-width: 240px; }
.admin-row .info b { color: #fff; font-family: var(--font-head); }
.admin-row .info small { display: block; color: var(--text-faint); margin-top: 3px; }
.admin-row .actions { display: flex; gap: 8px; flex-wrap: wrap; }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 14px; margin-bottom: 30px; }

/* ---------- Slots ---------- */
.slot-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 10px; margin-top: 10px; }
.slot {
  padding: 12px 8px; text-align: center; border-radius: 12px; cursor: pointer;
  background: var(--surface); border: 1px solid var(--border); color: var(--text-dim);
  font-family: var(--font-head); font-weight: 600; font-size: 0.9rem; transition: all .2s;
}
.slot:hover { border-color: var(--cyan); color: #fff; }
.slot.selected { background: linear-gradient(100deg, #21d4fd, #3a7bd5); color: #04121c; border-color: transparent; }
.slot.taken { opacity: 0.3; pointer-events: none; text-decoration: line-through; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--border); background: rgba(0,0,0,.35); padding: 64px 0 30px; margin-top: 40px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-grid h4 { font-size: 0.85rem; text-transform: uppercase; letter-spacing: .12em; color: var(--text-faint); margin-bottom: 16px; }
.footer-grid ul { list-style: none; }
.footer-grid li { margin-bottom: 10px; }
.footer-grid a { color: var(--text-dim); font-size: 0.94rem; }
.footer-grid a:hover { color: #fff; }
.footer-bottom {
  margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--border);
  display: flex; flex-wrap: wrap; gap: 14px; justify-content: space-between;
  color: var(--text-faint); font-size: 0.85rem;
}
.footer-disclaimer { margin-top: 18px; font-size: 0.78rem; color: var(--text-faint); line-height: 1.6; max-width: 900px; }

/* ---------- Page hero (interior pages) ---------- */
.page-hero { padding: 165px 0 70px; position: relative; overflow: hidden; }
.page-hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(700px 340px at 70% 0%, rgba(232,33,39,.16), transparent 65%);
}

/* ---------- Reveal animations ---------- */
.reveal { opacity: 0; transform: translateY(34px); transition: opacity .8s cubic-bezier(.2,.7,.3,1), transform .8s cubic-bezier(.2,.7,.3,1); }
.reveal.in { opacity: 1; transform: none; }
.reveal-d1 { transition-delay: .1s; } .reveal-d2 { transition-delay: .2s; }
.reveal-d3 { transition-delay: .3s; } .reveal-d4 { transition-delay: .4s; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- Marquee ---------- */
.marquee { overflow: hidden; border-block: 1px solid var(--border); padding: 18px 0; background: rgba(0,0,0,.3); }
.marquee-track { display: flex; gap: 56px; width: max-content; animation: marquee 32s linear infinite; }
.marquee-track span { font-family: var(--font-head); font-weight: 600; color: var(--text-faint); font-size: 0.95rem; display: flex; align-items: center; gap: 12px; white-space: nowrap; }
.marquee-track span::before { content: "⚡"; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- CTA band ---------- */
.cta-band {
  border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 58px 40px; text-align: center; position: relative; overflow: hidden;
  background:
    radial-gradient(600px 260px at 20% 0%, rgba(33,212,253,.14), transparent 60%),
    radial-gradient(600px 260px at 85% 100%, rgba(232,33,39,.18), transparent 60%),
    var(--bg-2);
}
.cta-band h2 { margin-bottom: 12px; }
.cta-band .lead { margin: 0 auto 30px; }

/* ---------- Misc ---------- */
.divider { height: 1px; background: var(--border); border: 0; margin: 40px 0; }
.notice {
  border: 1px solid rgba(245,166,35,.4); background: rgba(245,166,35,.08);
  color: #ffd48a; padding: 14px 18px; border-radius: 12px; font-size: 0.9rem;
}
code.inline { background: var(--surface-2); border: 1px solid var(--border); border-radius: 6px; padding: 2px 8px; font-size: .88em; color: var(--cyan); }
.article { max-width: 780px; }
.article h2 { margin: 44px 0 14px; font-size: 1.6rem; }
.article h3 { margin: 30px 0 10px; }
.article p { margin-bottom: 16px; }
.article ul, .article ol { color: var(--text-dim); margin: 0 0 16px 22px; }
.article li { margin-bottom: 8px; }
.sitemap-cols { columns: 3; column-gap: 48px; }
@media (max-width: 900px) { .sitemap-cols { columns: 2; } }
@media (max-width: 560px) { .sitemap-cols { columns: 1; } }
.sitemap-cols ul { list-style: none; margin-bottom: 30px; break-inside: avoid; }
.sitemap-cols h3 { margin-bottom: 12px; }
.sitemap-cols li { margin-bottom: 9px; }
