/* ═══════════════════════════════════════════════════════════════════════════
   Torrex website — shared styles (dark, app design tokens)
   Tokens mirror the desktop app's src/index.css.
   ═══════════════════════════════════════════════════════════════════════════ */

@import url("https://fonts.googleapis.com/css2?family=Playfair+Display:wght@600;700;800&family=Bebas+Neue&family=Source+Serif+4:ital,wght@0,400;0,600;1,400&display=swap");

:root {
  --bg-base: #0e0a07;
  --bg-surface: #1a0f07;
  --bg-elevated: #251508;
  --gold: #c9973a;
  --gold-muted: #8a6525;
  --gold-subtle: rgba(201, 151, 58, 0.15);
  --gold-subtle2: rgba(201, 151, 58, 0.07);
  --burgundy: #8b1a1a;
  --burgundy-hover: #a82020;
  --burgundy-deep: #5d1414;
  --text-primary: #f8f2e6;
  --text-secondary: #e0cfb4;
  --text-muted: #b8a88c;
  --text-faint: #8a7a62;
  --border-subtle: rgba(201, 151, 58, 0.12);
  --border-default: rgba(201, 151, 58, 0.22);
  --border-strong: rgba(201, 151, 58, 0.45);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  /* Onboarding background: warm near-black + gold glow top, burgundy bottom-left */
  background:
    radial-gradient(ellipse 60% 50% at 50% 0%, rgba(201, 151, 58, 0.07) 0%, transparent 70%),
    radial-gradient(ellipse 40% 30% at 20% 100%, rgba(139, 26, 26, 0.05) 0%, transparent 60%),
    var(--bg-base);
  color: var(--text-primary);
  font-family: "Source Serif 4", Georgia, serif;
  overflow-x: hidden;
  min-height: 100vh;
}

h1, h2, h3 { font-family: "Playfair Display", Georgia, serif; }

.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* ── Nav ──────────────────────────────────────────────────────────────────── */
.site-nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 42px;
  border-bottom: 1px solid var(--border-subtle);
  position: sticky; top: 0; z-index: 50;
  background: rgba(14, 10, 7, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.nav-ticket,
.nav-wordmark {
  background: var(--burgundy); color: var(--text-primary);
  font-family: "Playfair Display", serif; font-weight: 700; font-size: 20px;
  padding: 7px 18px; letter-spacing: 0.06em;
  clip-path: polygon(0 0, 100% 0, 96% 50%, 100% 100%, 0 100%, 4% 50%);
  text-decoration: none; display: inline-block;
}
.nav-links { display: flex; gap: 30px; list-style: none; align-items: center; }
.nav-links a {
  color: var(--text-muted); text-decoration: none;
  font-family: "Bebas Neue", sans-serif; letter-spacing: 0.14em; font-size: 16px;
  transition: color 0.15s;
}
.nav-links a:hover { color: var(--gold); }
.nav-links a.active:not(.nav-cta) { color: var(--gold); border-bottom: 2px solid var(--gold); }
.nav-cta {
  background: var(--gold); color: var(--bg-base) !important;
  padding: 8px 20px 6px; border-radius: 4px; font-weight: 600; line-height: 1;
}
.nav-cta:hover { filter: brightness(1.1); }

/* ── Hero (home) ──────────────────────────────────────────────────────────── */
.hero { text-align: center; padding: 78px 24px 0; position: relative; }
.hero-eyebrow {
  font-family: "Bebas Neue", sans-serif; letter-spacing: 0.35em; font-size: 15px;
  color: var(--gold); margin-bottom: 18px;
}
.hero h1 {
  font-size: clamp(56px, 9vw, 108px);
  font-weight: 800; letter-spacing: 0.02em; line-height: 0.95;
  color: var(--text-primary);
  text-shadow: 0 0 80px rgba(201, 151, 58, 0.25);
}
.hero-tagline {
  font-size: clamp(19px, 2.6vw, 26px); font-style: italic;
  color: var(--text-secondary); margin-top: 14px;
}
.hero-sub {
  max-width: 520px; margin: 18px auto 0; font-size: 16px; line-height: 1.6;
  color: var(--text-muted);
}

/* Smart download button — gold, like the app's primary CTA */
.dl-block { margin-top: 38px; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.dl-btn {
  display: inline-flex; align-items: center; gap: 14px;
  background: var(--gold); color: var(--bg-base); text-decoration: none;
  padding: 18px 40px; font-size: 19px;
  font-family: "Playfair Display", serif; font-weight: 700;
  border-radius: 5px; letter-spacing: 0.02em;
  box-shadow: 0 6px 0 var(--gold-muted), 0 16px 44px rgba(201, 151, 58, 0.28);
  transition: transform 0.12s ease, box-shadow 0.12s ease, filter 0.12s;
}
.dl-btn:hover {
  transform: translateY(2px); filter: brightness(1.08);
  box-shadow: 0 4px 0 var(--gold-muted), 0 10px 30px rgba(201, 151, 58, 0.24);
}
.dl-btn svg { width: 22px; height: 22px; fill: currentColor; }
.dl-meta { font-size: 13.5px; color: var(--text-faint); }
.dl-alt { font-size: 14px; color: var(--text-muted); }
.dl-alt a { color: var(--gold); font-weight: 600; }

/* ── Theater stage (home) ─────────────────────────────────────────────────── */
.stage { margin-top: 70px; position: relative; padding: 0 0 90px; }
.stage-inner { position: relative; max-width: 1060px; margin: 0 auto; padding: 0 24px; }
.marquee { text-align: center; margin-bottom: -8px; position: relative; z-index: 3; }
.marquee-board {
  display: inline-block; background: var(--bg-surface);
  border: 3px solid var(--gold-muted); border-radius: 6px; padding: 10px 38px;
  color: var(--text-secondary);
  font-family: "Bebas Neue", sans-serif; font-size: 21px; letter-spacing: 0.3em;
  box-shadow: 0 0 0 3px var(--bg-base), 0 10px 40px rgba(0, 0, 0, 0.6), 0 0 34px rgba(201, 151, 58, 0.12);
}
.marquee-board .lit { color: var(--gold); text-shadow: 0 0 18px rgba(201, 151, 58, 0.6); }
.screen-frame {
  position: relative; border-radius: 8px; background: #000;
  box-shadow: 0 34px 90px rgba(0, 0, 0, 0.75), 0 0 0 1px var(--border-default), 0 0 70px rgba(201, 151, 58, 0.08);
  overflow: hidden; aspect-ratio: 16 / 9;
}
.screen-frame img.screenshot {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
}
.stage-caption { text-align: center; margin-top: 34px; color: var(--text-faint); font-size: 14.5px; font-style: italic; }
.stage-caption b { color: var(--text-secondary); font-style: normal; font-weight: 600; }

.shot-thumbs { display: flex; gap: 14px; justify-content: center; margin-top: 26px; }
.shot-thumbs button {
  width: 150px; aspect-ratio: 16 / 10; border-radius: 5px;
  border: 1px solid var(--border-subtle);
  background: linear-gradient(135deg, var(--bg-elevated), var(--bg-surface));
  background-size: cover; background-position: center;
  cursor: pointer;
  color: var(--text-faint);
  font-family: "Bebas Neue", sans-serif; letter-spacing: 0.15em; font-size: 11px;
  transition: border-color 0.15s, color 0.15s;
}
.shot-thumbs button:hover { border-color: var(--border-default); color: var(--text-muted); }
.shot-thumbs button.active { border-color: var(--gold); color: var(--gold); box-shadow: 0 0 20px rgba(201, 151, 58, 0.15); }

/* Placeholder screenshot (until real captures land) */
.shot { position: absolute; inset: 0; background: var(--bg-base); display: flex; flex-direction: column; }
.shot-titlebar { height: 30px; background: var(--bg-surface); display: flex; align-items: center; gap: 6px; padding: 0 12px; }
.shot-titlebar i { width: 10px; height: 10px; border-radius: 50%; background: rgba(248, 242, 230, 0.15); }
.shot-body { flex: 1; display: flex; }
.shot-side { width: 64px; background: var(--bg-surface); display: flex; flex-direction: column; gap: 16px; align-items: center; padding-top: 20px; }
.shot-side i { width: 26px; height: 26px; border-radius: 7px; background: var(--gold-subtle2); border: 1px solid var(--border-subtle); }
.shot-side i:first-child { background: var(--gold-subtle); border-color: var(--border-default); }
.shot-main { flex: 1; padding: 22px 26px; }
.shot-hero {
  height: 42%; border-radius: 10px;
  background:
    radial-gradient(circle at 80% 20%, rgba(201, 151, 58, 0.28), transparent 55%),
    linear-gradient(100deg, rgba(139, 26, 26, 0.55) 0%, var(--bg-elevated) 60%);
  border: 1px solid var(--border-subtle);
  position: relative; margin-bottom: 20px;
}
.shot-hero::after {
  content: "FEATURED · CONTINUE WATCHING";
  position: absolute; left: 22px; bottom: 18px;
  font-family: "Bebas Neue", sans-serif; letter-spacing: 0.25em; font-size: 12px;
  color: var(--text-secondary);
}
.shot-row-label { font-family: "Bebas Neue", sans-serif; letter-spacing: 0.2em; font-size: 11px; color: var(--text-faint); margin-bottom: 10px; }
.shot-posters { display: flex; gap: 12px; }
.shot-posters i {
  flex: 1; aspect-ratio: 2 / 3; border-radius: 6px; max-height: 120px;
  background: linear-gradient(160deg, var(--bg-elevated), var(--bg-surface));
  border: 1px solid var(--border-subtle);
}
.shot-posters i:nth-child(2) { background: linear-gradient(160deg, rgba(139, 26, 26, 0.4), var(--bg-surface)); }
.shot-posters i:nth-child(4) { background: linear-gradient(160deg, var(--gold-subtle), var(--bg-surface)); }

/* Discover mock — filter chips + poster grid */
.shot-chips { display: flex; gap: 8px; margin-bottom: 16px; flex-wrap: wrap; }
.shot-chips i {
  height: 22px; width: 62px; border-radius: 11px;
  background: var(--gold-subtle2); border: 1px solid var(--border-subtle);
}
.shot-chips i:first-child { background: var(--gold-subtle); border-color: var(--border-default); }
.shot-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.shot-grid i {
  aspect-ratio: 2 / 3; border-radius: 6px; max-height: 96px;
  background: linear-gradient(160deg, var(--bg-elevated), var(--bg-surface));
  border: 1px solid var(--border-subtle);
}
.shot-grid i:nth-child(3) { background: linear-gradient(160deg, rgba(139, 26, 26, 0.4), var(--bg-surface)); }
.shot-grid i:nth-child(6) { background: linear-gradient(160deg, var(--gold-subtle), var(--bg-surface)); }
.shot-grid i:nth-child(8) { background: linear-gradient(160deg, rgba(139, 26, 26, 0.4), var(--bg-surface)); }
.shot-note {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  color: rgba(248, 242, 230, 0.28);
  font-family: "Bebas Neue", sans-serif; letter-spacing: 0.3em; font-size: 15px;
  pointer-events: none;
}

/* ── Section headings ─────────────────────────────────────────────────────── */
.sec-heading { text-align: center; margin-bottom: 54px; }
.sec-heading .kicker { font-family: "Bebas Neue", sans-serif; letter-spacing: 0.35em; color: var(--gold); font-size: 14px; }
.sec-heading h2 { font-size: clamp(30px, 4.4vw, 44px); margin-top: 8px; color: var(--text-primary); }

/* ── Features (home) ──────────────────────────────────────────────────────── */
.features { max-width: 1060px; margin: 0 auto; padding: 40px 24px; }
.features-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px;
  background: var(--border-subtle); border: 1px solid var(--border-subtle);
  border-radius: 10px; overflow: hidden;
}
.feat { background: var(--bg-surface); padding: 30px 28px; transition: background 0.15s; }
.feat:hover { background: var(--bg-elevated); }
.feat .num { font-family: "Bebas Neue", sans-serif; color: var(--gold); font-size: 15px; letter-spacing: 0.2em; }
.feat h3 { font-size: 20px; margin: 10px 0 8px; color: var(--text-primary); }
.feat p { font-size: 15px; line-height: 1.6; color: var(--text-muted); }

/* ── Platforms (home) ─────────────────────────────────────────────────────── */
.platforms { max-width: 1060px; margin: 0 auto; padding: 60px 24px 90px; }
.plat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.plat-card {
  border: 1px solid var(--border-subtle); border-radius: 10px; padding: 28px 26px;
  position: relative; background: var(--bg-surface);
  display: flex; flex-direction: column; gap: 10px; min-height: 190px;
  transition: border-color 0.15s, background 0.15s;
}
.plat-card:hover { border-color: var(--border-default); background: var(--bg-elevated); }
.plat-card .icon { width: 34px; height: 34px; fill: var(--text-secondary); }
.plat-card h3 { font-size: 21px; color: var(--text-primary); }
.plat-card p { font-size: 14px; color: var(--text-muted); line-height: 1.55; flex: 1; }
.plat-card .plat-link { color: var(--gold); font-weight: 600; font-size: 15px; text-decoration: none; }
.plat-card .plat-link:hover { text-decoration: underline; }
.plat-card.soon { border-style: dashed; border-color: var(--border-default); }
.plat-card.soon:hover { background: var(--bg-surface); }
.plat-card.soon .icon { opacity: 0.55; }
.soon-stub {
  position: absolute; top: 16px; right: -9px;
  background: var(--burgundy); color: var(--text-primary);
  font-family: "Bebas Neue", sans-serif; letter-spacing: 0.16em; font-size: 13px;
  padding: 5px 14px 5px 12px;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%, 6% 50%);
  box-shadow: 0 3px 12px rgba(139, 26, 26, 0.4);
}
.soon-stub::after {
  content: ""; position: absolute; right: 0; bottom: -6px;
  border: 3px solid transparent;
  border-top-color: var(--burgundy-deep); border-left-color: var(--burgundy-deep);
}
.plat-notify { font-size: 13.5px; }
.plat-notify a { color: var(--gold); }
.plat-sync { border: none !important; background: transparent !important; align-items: center; justify-content: center; text-align: center; }
.plat-sync p { font-style: italic; font-size: 15px; color: var(--text-faint); flex: none; }

/* Inline notify form (coming-soon cards) */
.notify-form { display: flex; gap: 8px; margin-top: 10px; }
.notify-input {
  flex: 1; min-width: 0;
  background: var(--bg-base); color: var(--text-primary);
  border: 1px solid var(--border-default); border-radius: 4px;
  padding: 9px 12px; font-size: 13.5px; font-family: inherit;
}
.notify-input:focus { outline: none; border-color: var(--gold); }
.notify-input::placeholder { color: var(--text-faint); }
.notify-btn {
  background: var(--gold); color: var(--bg-base); border: none; border-radius: 4px;
  padding: 9px 16px; font-size: 13px; font-weight: 600; font-family: inherit;
  cursor: pointer; white-space: nowrap;
}
.notify-btn:hover { filter: brightness(1.1); }
.notify-done { font-size: 13.5px; color: var(--gold); margin-top: 10px; }

/* ── FAQ (home) ───────────────────────────────────────────────────────────── */
.faq {
  background: var(--bg-surface);
  border-top: 1px solid var(--border-subtle); border-bottom: 1px solid var(--border-subtle);
  padding: 80px 24px;
}
.faq-list { max-width: 720px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--border-subtle); padding: 22px 4px; }
.faq-item:last-child { border-bottom: none; }
.faq-item h3 { font-size: 18px; display: flex; justify-content: space-between; color: var(--text-primary); }
.faq-item h3 span:last-child { color: var(--gold); }
.faq-item p { margin-top: 12px; font-size: 15px; line-height: 1.65; color: var(--text-muted); }

/* ── Download page ────────────────────────────────────────────────────────── */
.page-head { text-align: center; padding: 64px 24px 44px; }
.page-head .kicker { font-family: "Bebas Neue", sans-serif; letter-spacing: 0.35em; font-size: 14px; color: var(--gold); }
.page-head h1 { font-size: clamp(38px, 6vw, 62px); margin-top: 10px; text-shadow: 0 0 60px rgba(201, 151, 58, 0.2); }
.page-head p { color: var(--text-muted); margin-top: 12px; font-size: 16.5px; }
.page-head .ver-line { margin-top: 18px; font-size: 14.5px; color: var(--text-faint); }
.page-head .ver-line b { color: var(--gold); }
.page-head .ver-line a { color: var(--gold); }

.dl-wrap { max-width: 880px; margin: 0 auto; padding: 0 24px 90px; }

.featured {
  border: 1.5px solid var(--gold-muted); border-radius: 12px;
  background: linear-gradient(135deg, var(--bg-elevated), var(--bg-surface));
  padding: 30px 34px; display: flex; align-items: center; gap: 26px;
  position: relative; overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 0 0 50px rgba(201, 151, 58, 0.07);
  margin-bottom: 54px;
}
.featured::before {
  content: "DETECTED"; position: absolute; top: 14px; right: -32px;
  background: var(--gold); color: var(--bg-base); transform: rotate(38deg);
  font-family: "Bebas Neue", sans-serif; letter-spacing: 0.2em; font-size: 12px;
  padding: 4px 40px;
}
.featured .icon { width: 52px; height: 52px; fill: var(--text-secondary); flex-shrink: 0; }
.featured-body { flex: 1; }
.featured-body h2 { font-size: 26px; color: var(--text-primary); }
.featured-body p { color: var(--text-muted); font-size: 14.5px; margin-top: 6px; }
.featured .dl-btn { padding: 15px 30px; font-size: 17px; white-space: nowrap; box-shadow: 0 5px 0 var(--gold-muted), 0 12px 34px rgba(201, 151, 58, 0.25); }
.featured .dl-btn:hover { box-shadow: 0 3px 0 var(--gold-muted); }

.builds h2 { font-size: 26px; margin-bottom: 6px; color: var(--text-primary); }
.builds .sub { color: var(--text-faint); font-size: 14.5px; margin-bottom: 26px; }
.build-group {
  border: 1px solid var(--border-subtle); border-radius: 10px;
  margin-bottom: 20px; overflow: hidden; background: var(--bg-surface);
}
.build-head {
  display: flex; align-items: center; gap: 14px; padding: 18px 24px;
  background: var(--bg-elevated); border-bottom: 1px solid var(--border-subtle);
}
.build-head .icon { width: 24px; height: 24px; fill: var(--text-secondary); }
.build-head h3 { font-size: 19px; flex: 1; color: var(--text-primary); }
.build-head .req { font-size: 13px; color: var(--text-faint); font-style: italic; }
.build-row {
  display: flex; align-items: center; padding: 14px 24px; gap: 16px;
  border-bottom: 1px solid var(--border-subtle); font-size: 15px;
  transition: background 0.12s;
}
.build-row:hover { background: var(--gold-subtle2); }
.build-row:last-child { border-bottom: none; }
.build-row .fmt {
  font-family: "Bebas Neue", sans-serif; letter-spacing: 0.1em; font-size: 14px;
  background: var(--gold-subtle); color: var(--gold);
  border: 1px solid var(--border-default); border-radius: 3px; padding: 3px 10px;
  min-width: 86px; text-align: center;
}
.build-row .desc { flex: 1; color: var(--text-muted); }
.build-row .size { font-size: 13.5px; color: var(--text-faint); }
.build-row a { color: var(--gold); font-weight: 600; text-decoration: none; white-space: nowrap; }
.build-row a:hover { text-decoration: underline; }

.soon-strip { display: flex; gap: 20px; margin-top: 40px; }
.soon-card {
  flex: 1; border: 1.5px dashed var(--border-default); border-radius: 10px;
  padding: 22px 24px; background: var(--bg-surface);
}
.soon-card h3 { font-size: 18px; display: flex; align-items: center; gap: 10px; color: var(--text-primary); }
.soon-card .stub {
  background: var(--burgundy); color: var(--text-primary);
  font-family: "Bebas Neue", sans-serif; letter-spacing: 0.15em; font-size: 11.5px;
  padding: 3px 10px;
  clip-path: polygon(0 0, 100% 0, 96% 50%, 100% 100%, 0 100%, 4% 50%);
}
.soon-card p { font-size: 14px; color: var(--text-muted); margin-top: 8px; line-height: 1.55; }
.soon-card a { color: var(--gold); font-size: 14px; }

.fine {
  margin-top: 46px; border-top: 1px solid var(--border-subtle); padding-top: 26px;
  font-size: 14px; color: var(--text-faint); line-height: 1.7;
}
.fine b { color: var(--text-muted); }
.fine code {
  font-family: ui-monospace, Menlo, monospace; font-size: 12.5px;
  background: var(--gold-subtle2); border: 1px solid var(--border-subtle);
  border-radius: 3px; padding: 2px 7px; color: var(--text-secondary);
}
.fine a { color: var(--gold); }

/* ── Prose pages (privacy, bandwidth-sharing, about) ──────────────────────── */
.privacy-page {
  max-width: 720px; margin: 0 auto; padding: 64px 24px 90px;
  font-size: 15.5px; line-height: 1.7; color: var(--text-muted);
}
.page-title { font-size: clamp(32px, 5vw, 44px); color: var(--text-primary); margin-bottom: 8px; }
.page-meta { font-size: 13.5px; color: var(--text-faint); margin-bottom: 34px; }
.privacy-page h2 {
  font-size: 21px; color: var(--text-primary);
  margin: 38px 0 12px; padding-top: 8px;
}
.privacy-page p { margin-bottom: 14px; }
.privacy-page ul { margin: 0 0 14px 22px; }
.privacy-page li { margin-bottom: 8px; }
.privacy-page a { color: var(--gold); }
.privacy-contact-box {
  margin-top: 44px; border: 1px solid var(--border-default); border-radius: 10px;
  background: var(--bg-surface); padding: 22px 26px;
}

/* ── Footer ───────────────────────────────────────────────────────────────── */
.site-footer {
  border-top: 1px solid var(--border-subtle);
  padding: 44px 42px; display: flex; justify-content: space-between; align-items: center;
  font-size: 14px; color: var(--text-faint);
}
.footer-links { display: flex; gap: 26px; list-style: none; }
.site-footer a { color: var(--text-muted); text-decoration: none; }
.site-footer a:hover { color: var(--gold); }
.footer-copy { color: var(--text-faint); }

/* ── Responsive ───────────────────────────────────────────────────────────── */
@media (max-width: 860px) {
  .features-grid, .plat-grid { grid-template-columns: 1fr; }
  .site-nav { padding: 14px 20px; }
  .nav-links { gap: 18px; }
  .nav-links li.nav-hide-mobile { display: none; }
}
@media (max-width: 720px) {
  .featured { flex-direction: column; text-align: center; }
  .soon-strip { flex-direction: column; }
  .build-row { flex-wrap: wrap; }
  .site-footer { flex-direction: column; gap: 16px; text-align: center; }
}
