/* TiyaTube — Editorial Obsidian + Crimson-Violet Aesthetic */

:root {
  --bg: #050508;
  --bg-2: #0c0c14;
  --ink: #f6f6fc;
  --ink-2: #c5c5da;
  --muted: #82829e;
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.16);
  --surface: rgba(255, 255, 255, 0.03);
  --surface-2: rgba(255, 255, 255, 0.065);
  --red: #ff0033;
  --red-2: #ff3b63;
  --violet: #7a3cf5;
  --violet-2: #a875ff;
  --emerald: #10b981;
  --radius: 22px;
  --max: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --display: "Inter Tight", "Inter", system-ui, sans-serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "Cascadia Code", monospace;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 16px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; }
code {
  font-family: var(--mono); font-size: 0.9em;
  padding: 2px 6px; border-radius: 6px;
  background: rgba(255, 255, 255, 0.06); border: 1px solid var(--line);
}
::selection { background: rgba(255, 0, 51, 0.42); color: #fff; }
:focus-visible { outline: 2px solid var(--violet-2); outline-offset: 3px; border-radius: 6px; }

.skip {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  padding: 10px 14px; border-radius: 10px; background: #fff; color: #000;
  text-decoration: none; font-weight: 600;
}
.skip:focus { top: 12px; }

/* ---------- subtle architectural grid background ---------- */
.bg-grid {
  position: fixed; inset: 0; z-index: -3; pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 15%, #000 40%, transparent 100%);
  mask-image: radial-gradient(ellipse 80% 60% at 50% 15%, #000 40%, transparent 100%);
}

/* ---------- buttons ---------- */
.btn {
  --h: 44px;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: var(--h); padding: 0 20px; border-radius: 999px;
  font: 600 14.5px/1 var(--sans); letter-spacing: -0.01em;
  text-decoration: none; white-space: nowrap;
  border: 1px solid transparent; cursor: pointer;
  transition: transform 0.3s var(--ease), background-color 0.25s, border-color 0.25s, box-shadow 0.3s;
}
.btn:active { transform: scale(0.97); }
.btn--sm { --h: 36px; padding: 0 16px; font-size: 13.5px; }
.btn--lg { --h: 52px; padding: 0 26px; font-size: 15.5px; }
.btn--primary {
  background: linear-gradient(135deg, #ffffff 0%, #ede8f7 100%);
  color: #090710;
  box-shadow: 0 10px 30px -10px rgba(255, 0, 51, 0.55), 0 8px 24px -12px rgba(122, 60, 245, 0.65);
}
.btn--primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 0 6px rgba(255, 255, 255, 0.08), 0 16px 40px -10px rgba(255, 0, 51, 0.8);
}
.btn--accent {
  background: linear-gradient(135deg, var(--red) 0%, var(--violet) 100%);
  color: #fff;
  box-shadow: 0 12px 32px -12px rgba(255, 0, 51, 0.72);
}
.btn--accent:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 0 5px rgba(255, 0, 51, 0.2), 0 16px 38px -10px rgba(122, 60, 245, 0.85);
}
.btn--ghost {
  background: rgba(255, 255, 255, 0.045);
  border-color: var(--line-2);
  color: var(--ink);
  backdrop-filter: blur(12px);
}
.btn--ghost:hover {
  background: rgba(255, 255, 255, 0.095);
  border-color: rgba(255, 255, 255, 0.32);
}

/* ---------- floating glass navbar ---------- */
.nav {
  position: fixed; inset: 12px var(--gutter) auto var(--gutter); z-index: 50;
  max-width: var(--max); margin: 0 auto;
  display: flex; align-items: center; gap: 20px;
  height: 60px; padding: 0 14px 0 18px;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: background-color 0.35s, border-color 0.35s, box-shadow 0.35s, backdrop-filter 0.35s;
}
.nav.is-scrolled {
  background: rgba(10, 10, 18, 0.76);
  backdrop-filter: blur(20px) saturate(1.5);
  -webkit-backdrop-filter: blur(20px) saturate(1.5);
  border-color: rgba(255, 255, 255, 0.13);
  box-shadow: 0 16px 40px -20px rgba(0, 0, 0, 0.9);
}
.nav__brand {
  display: flex; align-items: center; gap: 10px;
  white-space: nowrap; text-decoration: none;
  font: 800 18px/1 var(--display); letter-spacing: -0.025em;
}
.nav__brand span b { color: var(--red); }
.nav__links { display: flex; gap: 2px; margin: 0 auto; }
.nav__links a {
  padding: 7px 12px; border-radius: 999px;
  font-size: 13.5px; font-weight: 500; color: var(--ink-2); text-decoration: none;
  transition: color 0.2s, background-color 0.2s;
}
.nav__links a:hover { color: var(--ink); background: rgba(255, 255, 255, 0.07); }
.nav__actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.nav__links + .nav__actions { margin-left: 0; }
.gh-pill {
  display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 12px;
  border-radius: 999px; border: 1px solid var(--line-2); background: rgba(255, 255, 255, 0.035);
  font-size: 13px; font-weight: 600; text-decoration: none; color: var(--ink-2);
  transition: border-color 0.2s, color 0.2s;
}
.gh-pill:hover { color: var(--ink); border-color: rgba(255, 255, 255, 0.3); }
.gh-pill__count {
  padding-left: 8px; border-left: 1px solid var(--line-2);
  font-variant-numeric: tabular-nums; color: var(--ink);
}
@media (max-width: 880px) { .nav__links { display: none; } }
@media (max-width: 440px) { .gh-pill__label { display: none; } }

/* ---------- hero ---------- */
.hero {
  position: relative;
  padding: 136px var(--gutter) 32px;
  isolation: isolate;
}
.hero__bg {
  position: absolute; inset: 0 0 auto 0; height: min(1050px, 125vh); width: 100%; z-index: -2;
  -webkit-mask-image: linear-gradient(#000 58%, transparent);
  mask-image: linear-gradient(#000 58%, transparent);
  opacity: 0; transition: opacity 1.3s var(--ease);
}
.hero__bg.is-ready { opacity: 1; }
.hero__grain {
  position: absolute; inset: 0 0 auto 0; height: min(1050px, 125vh); z-index: -1; pointer-events: none;
  opacity: 0.2; mix-blend-mode: overlay;
  -webkit-mask-image: linear-gradient(#000 45%, transparent);
  mask-image: linear-gradient(#000 45%, transparent);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.hero__inner { max-width: var(--max); margin: 0 auto; text-align: center; }
.hero__pill {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 7px 15px; border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.045);
  backdrop-filter: blur(12px);
  font: 600 13px/1 var(--mono); color: var(--ink-2);
  margin-bottom: 24px;
}
.hero__dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: linear-gradient(135deg, var(--red), var(--violet));
  box-shadow: 0 0 14px var(--red);
  animation: pulse 2.2s infinite;
}
@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.28); opacity: 0.72; }
}
.hero__title {
  margin: 0 auto 20px; max-width: 16ch;
  font: 800 clamp(42px, 6.8vw, 82px)/0.97 var(--display);
  letter-spacing: -0.04em;
  background: linear-gradient(180deg, #ffffff 35%, #d6cef0 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero__title em {
  font-style: normal;
  background: linear-gradient(95deg, #ff1a47 0%, #d96eff 52%, #7a3cf5 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero__sub {
  margin: 0 auto 30px; max-width: 64ch;
  font-size: clamp(16px, 1.9vw, 19px); color: var(--ink-2);
}
.hero__cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-bottom: 18px; }
.hero__meta { margin: 0 0 46px; font-size: 13.5px; color: var(--muted); }
.hero__meta a { color: var(--ink-2); text-decoration: none; border-bottom: 1px dashed var(--line-2); }
.hero__meta a:hover { color: #fff; }

/* ---------- interactive app mockup with glowing border ---------- */
.appframe-wrap {
  position: relative; max-width: 1080px; margin: 0 auto; padding: 1.5px;
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(255, 0, 51, 0.55), rgba(255, 255, 255, 0.14) 45%, rgba(122, 60, 245, 0.6));
  box-shadow:
    0 36px 96px -24px rgba(0, 0, 0, 0.9),
    0 0 110px -30px rgba(255, 0, 51, 0.32),
    0 0 110px -30px rgba(122, 60, 245, 0.34);
}
.appframe {
  border-radius: 22.5px;
  background: #0b0b12;
  overflow: hidden;
  text-align: left;
}
.appframe__bar {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  height: 46px; padding: 0 16px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.028);
}
.appframe__tabs { display: flex; align-items: center; gap: 6px; overflow: hidden; }
.appframe__tab {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 5px 12px; border-radius: 8px;
  font-size: 12px; font-weight: 600; color: var(--muted);
}
.appframe__tab.is-active {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.085);
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.appframe__tab i { width: 7px; height: 7px; border-radius: 50%; background: var(--red); }
.appframe__search {
  flex: 1; max-width: 340px; height: 28px; padding: 0 12px;
  border-radius: 999px; border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  display: flex; align-items: center; font-size: 12px; color: var(--muted);
}
.appframe__win { display: flex; gap: 7px; }
.appframe__win span { width: 10px; height: 10px; border-radius: 50%; background: rgba(255, 255, 255, 0.18); }
.appframe__body { display: grid; grid-template-columns: 200px 1fr; min-height: 410px; }
.appframe__side {
  padding: 14px 10px;
  border-right: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.28);
  display: flex; flex-direction: column; gap: 3px;
}
.appframe__nav {
  padding: 7px 10px; border-radius: 9px;
  font-size: 12.5px; font-weight: 500; color: var(--muted);
  display: flex; align-items: center; justify-content: space-between;
}
.appframe__nav.is-active { background: rgba(255, 0, 51, 0.16); color: #fff; font-weight: 600; }
.appframe__nav small { font-size: 10px; opacity: 0.72; }
.appframe__main { padding: 18px; display: flex; flex-direction: column; gap: 16px; }
.appframe__player {
  display: grid; grid-template-columns: 1.35fr 0.9fr; gap: 14px;
  padding: 12px; border-radius: 16px;
  border: 1px solid var(--line); background: rgba(255, 255, 255, 0.025);
}
.stage {
  position: relative; border-radius: 12px; padding: 16px; min-height: 170px;
  background: radial-gradient(circle at 22% 30%, rgba(255, 0, 51, 0.35), transparent 60%),
              radial-gradient(circle at 80% 70%, rgba(122, 60, 245, 0.35), transparent 60%),
              #090910;
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex; flex-direction: column; justify-content: space-between;
}
.stage__top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.stage__pill {
  padding: 3px 9px; border-radius: 999px;
  background: rgba(16, 185, 129, 0.2); border: 1px solid rgba(16, 185, 129, 0.45);
  font: 600 10.5px/1.2 var(--mono); color: #6ee7b7;
}
.stage__hw {
  padding: 3px 9px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  font: 600 10.5px/1.2 var(--mono); color: var(--ink-2);
}
.stage__ctrls { display: flex; flex-direction: column; gap: 8px; }
.stage__prog { height: 5px; border-radius: 999px; background: rgba(255, 255, 255, 0.12); overflow: hidden; }
.stage__prog i { display: block; height: 100%; width: 58%; background: linear-gradient(90deg, var(--red), var(--violet)); transition: width 0.3s; }
.stage__row { display: flex; align-items: center; justify-content: space-between; font-size: 12px; color: var(--ink-2); }
.stage__play {
  padding: 4px 11px; border-radius: 999px; border: 1px solid var(--line-2);
  background: rgba(255, 255, 255, 0.09); font-size: 11.5px; font-weight: 600; cursor: pointer;
}
.stage__play:hover { background: rgba(255, 255, 255, 0.16); }
.queue { display: flex; flex-direction: column; gap: 8px; justify-content: center; }
.qitem {
  padding: 9px 11px; border-radius: 10px;
  border: 1px solid var(--line); background: rgba(255, 255, 255, 0.03);
  font-size: 12px; display: flex; justify-content: space-between; gap: 8px;
}
.qitem.is-now { border-color: rgba(255, 0, 51, 0.45); background: rgba(255, 0, 51, 0.1); }
.qitem span { font-weight: 600; }
.qitem small { color: var(--muted); font-family: var(--mono); }
.appframe__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.vcard {
  border-radius: 13px; padding: 10px;
  background: rgba(255, 255, 255, 0.03); border: 1px solid var(--line);
}
.vcard__title { font-size: 12.5px; font-weight: 600; color: var(--ink); margin-bottom: 3px; }
.vcard__meta { font-size: 11px; color: var(--muted); }
@media (max-width: 860px) {
  .appframe__body { grid-template-columns: 1fr; }
  .appframe__side { display: none; }
  .appframe__player { grid-template-columns: 1fr; }
  .appframe__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 540px) {
  .appframe__grid { grid-template-columns: 1fr; }
  .appframe__search { display: none; }
}

/* ---------- marquee strip ---------- */
.marquee {
  margin: 46px 0 0; padding: 14px 0;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.018);
  overflow: hidden;
}
.marquee__track {
  display: flex; gap: 28px; width: max-content;
  animation: scroll-x 34s linear infinite;
  font: 600 13px/1 var(--mono); color: var(--ink-2); text-transform: uppercase; letter-spacing: 0.08em;
}
.marquee__track span { display: inline-flex; align-items: center; gap: 28px; white-space: nowrap; }
.marquee__track span::after { content: "✦"; color: var(--red-2); font-size: 11px; }
@keyframes scroll-x {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ---------- stats ---------- */
.stats { max-width: var(--max); margin: 44px auto 0; padding: 0 var(--gutter); }
.stats__grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px;
  padding: 24px; border-radius: var(--radius);
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.015));
}
.stat { padding: 6px 10px; }
.stat__num {
  font: 800 clamp(28px, 3.6vw, 42px)/1 var(--display); letter-spacing: -0.03em;
  background: linear-gradient(95deg, #fff 20%, #d8c8ff 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.stat__label { margin-top: 6px; font-size: 13.5px; color: var(--muted); }
@media (max-width: 780px) { .stats__grid { grid-template-columns: repeat(2, 1fr); } }

/* ---------- sections ---------- */
.section { max-width: var(--max); margin: 0 auto; padding: clamp(72px, 9vw, 118px) var(--gutter) 0; }
.section__head { max-width: 70ch; margin-bottom: 38px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font: 700 12px/1 var(--mono); letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--red-2); margin-bottom: 12px;
}
.section__title {
  margin: 0 0 14px;
  font: 800 clamp(30px, 4.4vw, 48px)/1.05 var(--display);
  letter-spacing: -0.035em;
}
.section__sub { margin: 0; font-size: 17px; color: var(--ink-2); }

/* ---------- bento grid ---------- */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.card {
  grid-column: span 2;
  position: relative; padding: 26px; border-radius: var(--radius);
  border: 1px solid var(--line); background: var(--surface);
  overflow: hidden;
  transition: transform 0.35s var(--ease), border-color 0.3s, background-color 0.3s;
}
.card--wide { grid-column: span 3; }
.card::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), rgba(255, 0, 51, 0.14), transparent 60%);
  transition: opacity 0.35s;
}
.card:hover { transform: translateY(-3px); border-color: rgba(255, 255, 255, 0.22); background: var(--surface-2); }
.card:hover::before { opacity: 1; }
.card__icon {
  width: 42px; height: 42px; border-radius: 12px;
  display: inline-flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, rgba(255, 0, 51, 0.22), rgba(122, 60, 245, 0.26));
  border: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 19px; margin-bottom: 16px;
}
.card h3 { margin: 0 0 8px; font: 700 19px/1.25 var(--display); letter-spacing: -0.02em; }
.card p { margin: 0; font-size: 14.5px; color: var(--ink-2); }
.card__tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 16px; }
.tag {
  padding: 4px 9px; border-radius: 999px;
  border: 1px solid var(--line); background: rgba(255, 255, 255, 0.03);
  font: 500 11.5px/1.2 var(--mono); color: var(--muted);
}
@media (max-width: 960px) { .card, .card--wide { grid-column: span 3; } }
@media (max-width: 640px) { .card, .card--wide { grid-column: span 6; } }

/* ---------- tabbed showcase ---------- */
.showcase { display: grid; grid-template-columns: 330px 1fr; gap: 20px; align-items: stretch; }
.tabs { display: flex; flex-direction: column; gap: 10px; }
.tab-btn {
  text-align: left; padding: 17px 19px; border-radius: 18px;
  border: 1px solid var(--line); background: var(--surface);
  cursor: pointer; transition: border-color 0.25s, background-color 0.25s;
}
.tab-btn:hover { background: var(--surface-2); border-color: var(--line-2); }
.tab-btn.is-active {
  background: linear-gradient(135deg, rgba(255, 0, 51, 0.15), rgba(122, 60, 245, 0.17));
  border-color: rgba(255, 0, 51, 0.48);
}
.tab-btn h4 { margin: 0 0 5px; font: 700 16px/1.25 var(--display); }
.tab-btn p { margin: 0; font-size: 13.5px; color: var(--ink-2); }
.panel {
  border-radius: var(--radius);
  border: 1px solid var(--line-2);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.02));
  padding: 28px;
}
.panel__pane { display: none; }
.panel__pane.is-active { display: block; animation: fadeIn 0.35s var(--ease); }
@keyframes fadeIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.win-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 18px; }
.mini-win {
  padding: 15px; border-radius: 14px;
  border: 1px solid var(--line-2); background: rgba(5, 5, 8, 0.78);
}
.mini-win__top { display: flex; justify-content: space-between; font: 600 12px/1 var(--mono); color: var(--ink); margin-bottom: 10px; }
.mini-win__bar { height: 6px; border-radius: 999px; background: rgba(255, 255, 255, 0.09); overflow: hidden; margin-bottom: 10px; }
.mini-win__bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--red), var(--violet)); }
.mini-win__meta { font-size: 12px; color: var(--muted); }
.kbd-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-top: 18px; }
.kbd-item {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 11px 14px; border-radius: 12px;
  border: 1px solid var(--line); background: rgba(5, 5, 8, 0.7);
  font-size: 13.5px;
}
kbd {
  padding: 3px 8px; border-radius: 7px;
  border: 1px solid var(--line-2); background: rgba(255, 255, 255, 0.07);
  font: 600 12px/1.2 var(--mono); color: #fff;
}
@media (max-width: 880px) {
  .showcase { grid-template-columns: 1fr; }
  .win-row, .kbd-list { grid-template-columns: 1fr; }
}

/* ---------- theme studio ---------- */
.themes-bar { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 22px; }
.swatch-btn {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 9px 15px; border-radius: 999px;
  border: 1px solid var(--line-2); background: var(--surface);
  font-size: 13.5px; font-weight: 600; cursor: pointer;
  transition: transform 0.2s, border-color 0.2s, background-color 0.2s;
}
.swatch-btn:hover { transform: translateY(-1px); background: var(--surface-2); }
.swatch-btn.is-active { border-color: #fff; background: rgba(255, 255, 255, 0.11); }
.swatch-dot { width: 14px; height: 14px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, 0.25); }
.theme-preview {
  padding: 24px; border-radius: var(--radius);
  border: 1px solid var(--line-2);
  background: var(--tp-bg, #0b0b12); color: var(--tp-text, #f6f6fc);
  transition: background-color 0.35s, color 0.35s, border-color 0.35s;
}
.theme-preview__grid { display: grid; grid-template-columns: 205px 1fr; gap: 16px; }
.theme-preview__side {
  padding: 14px; border-radius: 14px;
  background: var(--tp-side, #09090e);
  border: 1px solid var(--tp-border, rgba(255, 255, 255, 0.1));
}
.theme-preview__cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.theme-preview__card {
  padding: 12px; border-radius: 14px;
  background: var(--tp-card, #14141e);
  border: 1px solid var(--tp-border, rgba(255, 255, 255, 0.1));
}
.theme-preview__thumb {
  height: 76px; border-radius: 10px; margin-bottom: 10px;
  background: linear-gradient(135deg, var(--tp-accent, #ff0033), var(--tp-sec, #7a3cf5));
  opacity: 0.9;
}
.theme-preview__pill {
  display: inline-block; padding: 4px 10px; border-radius: 999px;
  background: var(--tp-accent, #ff0033); color: #fff; font-size: 11.5px; font-weight: 700;
  margin-bottom: 10px;
}
@media (max-width: 780px) {
  .theme-preview__grid, .theme-preview__cards { grid-template-columns: 1fr; }
}

/* ---------- architecture stack strip ---------- */
.stack {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px;
}
.stack__item {
  padding: 20px; border-radius: 18px;
  border: 1px solid var(--line); background: var(--surface);
}
.stack__item strong { display: block; font: 700 16px/1.2 var(--display); margin-bottom: 6px; }
.stack__item span { font-size: 13.5px; color: var(--ink-2); }
@media (max-width: 860px) { .stack { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .stack { grid-template-columns: 1fr; } }

/* ---------- download ---------- */
.dl-box {
  display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 22px;
  padding: clamp(24px, 4vw, 38px);
  border-radius: 26px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background:
    radial-gradient(600px 260px at 10% 0%, rgba(255, 0, 51, 0.16), transparent 65%),
    radial-gradient(600px 260px at 90% 100%, rgba(122, 60, 245, 0.18), transparent 65%),
    rgba(255, 255, 255, 0.03);
}
.dl-box h2 { margin: 0 0 10px; font: 800 clamp(28px, 4vw, 40px)/1.08 var(--display); letter-spacing: -0.03em; }
.dl-box p { margin: 0 0 22px; color: var(--ink-2); }
.dl-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 18px; }
.dl-meta { font: 500 12.5px/1.6 var(--mono); color: var(--muted); }
.dl-verify {
  padding: 20px; border-radius: 18px;
  border: 1px solid var(--line-2); background: rgba(5, 5, 8, 0.78);
  display: flex; flex-direction: column; justify-content: space-between; gap: 14px;
}
.dl-verify h3 { margin: 0; font: 700 15px/1.2 var(--display); }
.dl-code {
  padding: 12px; border-radius: 12px;
  background: rgba(255, 255, 255, 0.04); border: 1px solid var(--line);
  font: 500 12px/1.55 var(--mono); color: var(--ink-2);
  overflow-x: auto; word-break: break-all;
}
@media (max-width: 860px) { .dl-box { grid-template-columns: 1fr; } }

/* ---------- faq ---------- */
.faq__list { display: grid; gap: 12px; max-width: 860px; }
.faq__item { border-radius: 18px; border: 1px solid var(--line); background: var(--surface); overflow: hidden; }
.faq__item summary {
  list-style: none; cursor: pointer;
  padding: 18px 22px; font: 600 16px/1.35 var(--display);
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after { content: "+"; font: 500 22px/1 var(--mono); color: var(--muted); transition: transform 0.25s; }
.faq__item[open] summary::after { transform: rotate(45deg); color: var(--red-2); }
.faq__item p { margin: 0; padding: 0 22px 18px; font-size: 14.5px; color: var(--ink-2); }

/* ---------- footer ---------- */
.footer {
  max-width: var(--max); margin: 0 auto;
  padding: 64px var(--gutter) 44px;
  border-top: 1px solid var(--line);
  margin-top: clamp(72px, 9vw, 110px);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px;
  font-size: 13.5px; color: var(--muted);
}
.footer__links { display: flex; flex-wrap: wrap; gap: 18px; }
.footer a { color: var(--ink-2); text-decoration: none; }
.footer a:hover { color: #fff; text-decoration: underline; }

/* ---------- 404 ---------- */
.page-404 { display: grid; place-items: center; min-height: 100vh; padding: 24px; text-align: center; }
.nf { max-width: 440px; }
.nf img { margin: 0 auto 18px; }
.nf__code { margin: 0; font: 800 56px/1 var(--display); color: var(--red); }
.nf h1 { margin: 10px 0 8px; font: 700 24px/1.2 var(--display); }
.nf__sub { margin: 0 0 24px; color: var(--ink-2); }

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