/* ============================================================
   BEST IPTV PLAYER — Linear.app-style design
   Palette + system mirror linear.app exactly
   ============================================================ */

@import url("https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Inter+Tight:wght@400;500;600;700;800;900&display=swap");

:root {
  /* === Linear palette === */
  --bg: #08090a;
  --bg-elev: #0d0e10;
  --bg-card: rgba(255, 255, 255, 0.02);
  --bg-card-hover: rgba(255, 255, 255, 0.035);
  --line: rgba(255, 255, 255, 0.06);
  --line-strong: rgba(255, 255, 255, 0.10);

  --fg: hsl(220, 9%, 96%);
  --fg-2: hsl(220, 8%, 78%);
  --fg-mute: hsl(220, 6%, 60%);
  --fg-dim: hsl(220, 5%, 44%);

  /* Linear's signature accent — soft indigo */
  --accent: #7170ff;
  --accent-2: #5e6ad2;
  --accent-soft: rgba(113, 112, 255, 0.14);
  --accent-glow: rgba(113, 112, 255, 0.55);

  /* Linear-style heading gradient (vertical fade) */
  --grad-heading: linear-gradient(180deg, #fff 32%, hsla(0, 0%, 100%, 0.55));
  --grad-heading-soft: linear-gradient(180deg, #fff, hsla(0, 0%, 100%, 0.7));

  /* Linear-style ambient orbs */
  --orb-1: radial-gradient(circle at center, rgba(113, 112, 255, 0.45) 0%, transparent 60%);
  --orb-2: radial-gradient(circle at center, rgba(94, 234, 212, 0.20) 0%, transparent 60%);
  --orb-3: radial-gradient(circle at center, rgba(244, 114, 182, 0.18) 0%, transparent 60%);

  /* surface elevations */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 6px 24px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 24px 64px -12px rgba(0, 0, 0, 0.6);

  /* type */
  --font-display: "Inter Tight", "Inter", system-ui, -apple-system, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, sans-serif;
  --font-mono: ui-monospace, "SF Mono", Menlo, Monaco, Consolas, monospace;

  /* layout */
  --container: 1180px;
  --container-narrow: 880px;
  --radius-xs: 6px;
  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
*::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.6;
  font-weight: 400;
  color: var(--fg);
  background: var(--bg);
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "ss01", "ss02", "cv11";
}

/* ===== ambient gradient orbs (linear's signature) ===== */
.orbs {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  overflow: hidden;
}
.orbs::before,
.orbs::after,
.orbs > .orb {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.7;
  will-change: transform;
}
.orbs::before {
  top: -10%;
  left: -8%;
  width: 60vw;
  height: 60vw;
  max-width: 760px;
  max-height: 760px;
  background: var(--orb-1);
  animation: drift-1 28s ease-in-out infinite;
}
.orbs::after {
  bottom: -12%;
  right: -10%;
  width: 56vw;
  height: 56vw;
  max-width: 720px;
  max-height: 720px;
  background: var(--orb-3);
  animation: drift-2 32s ease-in-out infinite;
}
.orbs .orb-mid {
  top: 40%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 50vw;
  height: 50vw;
  max-width: 620px;
  max-height: 620px;
  background: var(--orb-2);
  opacity: 0.5;
  animation: drift-3 36s ease-in-out infinite;
}

@keyframes drift-1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(40px, 30px) scale(1.05); }
}
@keyframes drift-2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-30px, -20px) scale(1.08); }
}
@keyframes drift-3 {
  0%, 100% { transform: translate(-50%, -50%) scale(1); }
  50% { transform: translate(-48%, -52%) scale(1.04); }
}

/* ===== fine grid texture ===== */
.grid-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, black 30%, transparent 90%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, black 30%, transparent 90%);
}

/* ===== typography ===== */
h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.05;
  color: var(--fg);
}
h1 {
  font-size: clamp(2.6rem, 6.4vw, 5.5rem);
  font-weight: 600;
  letter-spacing: -0.045em;
  line-height: 0.98;
  background: var(--grad-heading);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}
h2 {
  font-size: clamp(1.9rem, 3.6vw, 3rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  background: var(--grad-heading);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}
h3 {
  font-size: clamp(1.15rem, 1.5vw, 1.4rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--fg);
}
h4 { font-size: 1rem; font-weight: 600; }

p {
  color: var(--fg-2);
  font-size: 1rem;
  line-height: 1.65;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.15s ease;
}
a:hover { color: var(--fg); }

::selection { background: var(--accent); color: white; }

/* ===== layout ===== */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}
.container-narrow {
  max-width: var(--container-narrow);
}

section {
  position: relative;
  padding: clamp(64px, 8vw, 120px) 0;
}

.section-head {
  max-width: 640px;
  margin-bottom: clamp(40px, 5vw, 64px);
}
.section-head.center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}
.section-head .eyebrow {
  margin-bottom: 16px;
}
.section-head p {
  margin-top: 14px;
  color: var(--fg-mute);
  font-size: 1.05rem;
}

/* ===== eyebrow ===== */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 500;
  color: var(--accent);
  letter-spacing: -0.005em;
}
.eyebrow::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent-glow);
}

/* ===== buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 14px;
  letter-spacing: -0.005em;
  padding: 9px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
  white-space: nowrap;
  text-decoration: none;
  position: relative;
}
.btn-primary {
  background: linear-gradient(180deg, #fff, #e6e6ec);
  color: #08090a;
  font-weight: 500;
  box-shadow:
    0 1px 0 0 rgba(255, 255, 255, 0.4) inset,
    0 0 0 1px rgba(255, 255, 255, 0.2),
    0 6px 20px -6px rgba(255, 255, 255, 0.18);
}
.btn-primary:hover {
  color: #08090a;
  background: linear-gradient(180deg, #fff, #f1f1f6);
  transform: translateY(-1px);
  box-shadow:
    0 1px 0 0 rgba(255, 255, 255, 0.5) inset,
    0 0 0 1px rgba(255, 255, 255, 0.3),
    0 12px 28px -8px rgba(255, 255, 255, 0.25);
}
.btn-ghost {
  background: var(--bg-card);
  border-color: var(--line);
  color: var(--fg);
}
.btn-ghost:hover {
  background: var(--bg-card-hover);
  border-color: var(--line-strong);
  color: var(--fg);
}
.btn-link {
  padding: 0;
  background: transparent;
  color: var(--fg-2);
  border: none;
  font-weight: 500;
}
.btn-link:hover { color: var(--fg); }
.btn-link .arrow {
  display: inline-block;
  transition: transform 0.2s ease;
}
.btn-link:hover .arrow { transform: translateX(3px); }

.btn-lg { font-size: 15px; padding: 11px 20px; }
.btn-sm { font-size: 13px; padding: 7px 12px; }

/* ===== header ===== */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 14px 0;
  background: rgba(8, 9, 10, 0.7);
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  border-bottom: 1px solid var(--line);
}
.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 14.5px;
  letter-spacing: -0.015em;
  color: var(--fg);
  flex-shrink: 0;
}
.logo img {
  width: 22px;
  height: 22px;
  border-radius: 5px;
}
.nav {
  display: flex;
  align-items: center;
  gap: 22px;
  flex: 1;
  justify-content: center;
}
.nav a {
  font-size: 13.5px;
  font-weight: 500;
  color: var(--fg-mute);
}
.nav a:hover { color: var(--fg); }

.header-cta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  color: var(--fg);
  cursor: pointer;
}

/* ===== skip link ===== */
.skip-link {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 200;
  padding: 10px 16px;
  background: var(--accent);
  color: white;
  font-weight: 500;
  font-size: 13px;
  border-bottom-right-radius: var(--radius-sm);
  transform: translateY(-110%);
  transition: transform 0.18s ease;
  text-decoration: none;
}
.skip-link:focus { transform: translateY(0); color: white; outline: none; }

/* ===== hero ===== */
.hero {
  padding: clamp(80px, 11vw, 160px) 0 clamp(48px, 6vw, 80px);
  text-align: center;
  position: relative;
}
.hero .container { max-width: 920px; }

.hero h1 {
  margin: 18px auto 22px;
  max-width: 16ch;
}
.hero .lead {
  max-width: 620px;
  margin: 0 auto;
  color: var(--fg-mute);
  font-size: clamp(1rem, 1.4vw, 1.18rem);
  line-height: 1.55;
}
.hero-actions {
  margin-top: 32px;
  display: inline-flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.hero-visual {
  margin-top: clamp(48px, 7vw, 96px);
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0));
  padding: 22px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.hero-visual::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.18), transparent 50%);
  -webkit-mask: linear-gradient(#000, #000) content-box, linear-gradient(#000, #000);
  mask: linear-gradient(#000, #000) content-box, linear-gradient(#000, #000);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}
.hero-visual img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius-lg);
}

/* ===== trust strip ===== */
.trust {
  padding: 16px 0 56px;
  text-align: center;
}
.trust-label {
  font-size: 11.5px;
  color: var(--fg-dim);
  font-weight: 500;
  letter-spacing: 0.06em;
  margin-bottom: 22px;
  text-transform: uppercase;
}
.trust-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px 28px;
}
.trust-tag {
  font-size: 13.5px;
  color: var(--fg-mute);
  letter-spacing: -0.005em;
  white-space: nowrap;
  position: relative;
}
.trust-tag b {
  font-weight: 600;
  color: var(--fg);
}
.trust-tag + .trust-tag::before {
  content: "·";
  color: var(--fg-dim);
  position: absolute;
  left: -16px;
  top: 50%;
  transform: translateY(-50%);
}

/* ===== bento grid ===== */
.bento {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 14px;
}
.bento-card {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  padding: 28px;
  overflow: hidden;
  transition: background 0.2s ease, border-color 0.2s ease;
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 240px;
}
.bento-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--line-strong);
}
.bento-card h3 {
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--fg);
}
.bento-card p {
  font-size: 0.94rem;
  color: var(--fg-mute);
  line-height: 1.55;
}
.bento-card .icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: rgba(113, 112, 255, 0.10);
  color: var(--accent);
  border: 1px solid rgba(113, 112, 255, 0.18);
}

.bento-card.span-3 { grid-column: span 3; }
.bento-card.span-4 { grid-column: span 4; }
.bento-card.span-2 { grid-column: span 2; }
.bento-card.span-6 { grid-column: span 6; }

.bento-hero { min-height: 320px; }
.bento-hero h3 { font-size: 1.45rem; }

.bento-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}
.bento-stats div { display: flex; flex-direction: column; gap: 2px; }
.bento-stats b {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 600;
  letter-spacing: -0.025em;
  color: var(--fg);
}
.bento-stats span {
  font-size: 12.5px;
  color: var(--fg-dim);
}

/* bento channel-grid mock */
.bento-mock {
  margin-top: auto;
  margin-bottom: -28px;
  margin-left: -28px;
  margin-right: -28px;
  padding: 14px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent);
  border-top: 1px solid var(--line);
}
.bento-mock-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
}
.bento-mock-cell {
  aspect-ratio: 16 / 10;
  border-radius: 5px;
  background: linear-gradient(135deg, rgba(113, 112, 255, 0.14), rgba(113, 112, 255, 0.04));
  border: 1px solid var(--line);
}
.bento-mock-cell:nth-child(2n) { background: linear-gradient(135deg, rgba(94, 234, 212, 0.10), rgba(94, 234, 212, 0.03)); }
.bento-mock-cell:nth-child(3n) { background: linear-gradient(135deg, rgba(244, 114, 182, 0.10), rgba(244, 114, 182, 0.03)); }

/* EPG-style timeline mock */
.bento-epg {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.bento-epg-row {
  display: flex;
  align-items: center;
  gap: 8px;
}
.bento-epg-time {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--fg-dim);
  width: 38px;
  flex-shrink: 0;
}
.bento-epg-bar {
  flex: 1;
  height: 18px;
  border-radius: 4px;
  background: linear-gradient(90deg, rgba(113, 112, 255, 0.30), rgba(113, 112, 255, 0.06));
  border: 1px solid var(--line);
}
.bento-epg-row:nth-child(2) .bento-epg-bar { background: linear-gradient(90deg, rgba(94, 234, 212, 0.25), rgba(94, 234, 212, 0.05)); }
.bento-epg-row:nth-child(3) .bento-epg-bar { background: linear-gradient(90deg, rgba(244, 114, 182, 0.25), rgba(244, 114, 182, 0.05)); width: 70%; }

/* devices mock */
.bento-devices {
  margin-top: auto;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 12px;
  padding-top: 16px;
}
.bento-devices .device {
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.01));
  position: relative;
}
.bento-devices .device::after {
  content: "";
  position: absolute;
  inset: 6px;
  border-radius: 3px;
  background: linear-gradient(135deg, rgba(113, 112, 255, 0.18), rgba(113, 112, 255, 0.04));
}
.bento-devices .d-tv { width: 88px; height: 56px; }
.bento-devices .d-tab { width: 44px; height: 60px; }
.bento-devices .d-phone { width: 24px; height: 44px; }

/* ===== platforms ===== */
.platforms {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.platform {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-card);
  transition: background 0.18s, border-color 0.18s;
}
.platform:hover {
  background: var(--bg-card-hover);
  border-color: var(--line-strong);
}
.platform .p-icon {
  width: 28px;
  height: 28px;
  color: var(--fg-2);
  flex-shrink: 0;
}
.platform .p-name {
  font-weight: 500;
  font-size: 14.5px;
  color: var(--fg);
  letter-spacing: -0.005em;
}
.platform .p-meta {
  font-size: 12px;
  color: var(--fg-dim);
  margin-top: 1px;
}
.platform .p-tag {
  margin-left: auto;
  font-size: 11px;
  font-weight: 500;
  padding: 3px 8px;
  color: var(--accent);
  background: var(--accent-soft);
  border-radius: 999px;
}

/* ===== how-it-works ===== */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.step {
  padding: 32px 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: background 0.18s, border-color 0.18s;
}
.step:hover {
  background: var(--bg-card-hover);
  border-color: var(--line-strong);
}
.step-num {
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: -0.005em;
}
.step h3 { font-size: 1.1rem; font-weight: 600; }
.step p {
  font-size: 0.92rem;
  color: var(--fg-mute);
  line-height: 1.55;
}

/* ===== faq ===== */
.faq-list {
  max-width: var(--container-narrow);
  margin: 0 auto;
  border-top: 1px solid var(--line);
}
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 22px 4px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  font-family: var(--font-display);
  font-size: 1.02rem;
  font-weight: 500;
  letter-spacing: -0.012em;
  color: var(--fg);
  transition: color 0.15s;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--accent); }
.faq-item summary::after {
  content: "";
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 14 14' fill='none'><path d='M3 7h8M7 3v8' stroke='%237170ff' stroke-width='1.4' stroke-linecap='round'/></svg>");
  background-repeat: no-repeat;
  background-position: center;
  transition: transform 0.2s ease;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-body {
  padding: 0 4px 24px;
  color: var(--fg-mute);
  font-size: 0.94rem;
  line-height: 1.65;
}

/* ===== final CTA ===== */
.cta { padding: clamp(80px, 9vw, 120px) 0; }
.cta-card {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  padding: clamp(48px, 6vw, 80px) clamp(28px, 4vw, 56px);
  text-align: center;
  background: linear-gradient(180deg, rgba(113, 112, 255, 0.05), rgba(255, 255, 255, 0.01));
  overflow: hidden;
}
.cta-card::before {
  content: "";
  position: absolute;
  top: -40%;
  left: 50%;
  transform: translateX(-50%);
  width: 120%;
  height: 120%;
  background: var(--orb-1);
  filter: blur(60px);
  opacity: 0.5;
  pointer-events: none;
}
.cta-card > * { position: relative; z-index: 1; }
.cta-card h2 { margin-bottom: 14px; }
.cta-card p { max-width: 540px; margin: 0 auto 28px; color: var(--fg-mute); }
.cta-actions {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

/* ===== legal-band ===== */
.legal-band { padding: 56px 0 0; }
.legal-band-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px 32px;
  background: var(--bg-card);
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: center;
  justify-content: space-between;
}
.legal-band-card h3 { font-size: 1.1rem; margin-bottom: 4px; }
.legal-band-card p { font-size: 0.92rem; color: var(--fg-mute); max-width: 540px; }
.legal-band-actions {
  display: inline-flex;
  gap: 8px;
  flex-wrap: wrap;
}

/* ===== footer ===== */
.footer {
  padding: 64px 0 32px;
  border-top: 1px solid var(--line);
  margin-top: 64px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(4, 1fr);
  gap: 32px;
  margin-bottom: 56px;
}
.footer-brand { max-width: 280px; }
.footer-brand p {
  font-size: 13px;
  color: var(--fg-mute);
  margin-top: 12px;
  line-height: 1.55;
}
.footer-col h5 {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--fg-2);
  margin-bottom: 14px;
  letter-spacing: -0.005em;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col a, .footer-col span {
  font-size: 13px;
  color: var(--fg-mute);
}
.footer-col a:hover { color: var(--fg); }
.footer-soon {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
}
.footer-soon em {
  font-style: normal;
  font-size: 10.5px;
  font-weight: 500;
  color: var(--fg-dim);
  padding: 2px 6px;
  border-radius: 999px;
  border: 1px solid var(--line);
}
.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 12.5px;
  color: var(--fg-dim);
}
.footer-bottom .legal-links { display: inline-flex; gap: 18px; flex-wrap: wrap; }

/* ===== legal-doc (sub-pages) ===== */
.legal-doc {
  padding: 64px 0 96px;
  max-width: var(--container-narrow);
  margin: 0 auto;
}
.legal-doc h1 {
  font-size: clamp(1.9rem, 3.4vw, 2.8rem);
  margin-bottom: 32px;
  background: var(--grad-heading);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}
.legal-doc h2 {
  font-size: 1.3rem;
  margin: 38px 0 12px;
  color: var(--fg);
  background: none;
  -webkit-text-fill-color: var(--fg);
}
.legal-doc h3 {
  font-size: 1.05rem;
  margin: 22px 0 8px;
  color: var(--fg-2);
}
.legal-doc p { margin-bottom: 12px; color: var(--fg-2); line-height: 1.7; font-size: 0.96rem; }
.legal-doc ul, .legal-doc ol { margin: 10px 0 16px 22px; }
.legal-doc li { margin-bottom: 6px; color: var(--fg-2); line-height: 1.65; font-size: 0.96rem; }
.legal-doc a {
  color: var(--accent);
  border-bottom: 1px dotted rgba(113, 112, 255, 0.4);
}
.legal-doc strong { color: var(--fg); }
.legal-doc table { width: 100%; border-collapse: collapse; margin: 16px 0; font-size: 0.92rem; }
.legal-doc th, .legal-doc td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
}
.legal-doc th {
  font-size: 11px;
  text-transform: uppercase;
  color: var(--fg-dim);
  font-weight: 500;
  letter-spacing: 0.05em;
}
.legal-doc .callout {
  margin: 22px 0;
  padding: 18px 20px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--bg-card);
}

/* ===== reveal ===== */
.reveal {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ===== scrollbar ===== */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.06); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: rgba(255, 255, 255, 0.12); }

/* ===== focus ===== */
*:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ===== responsive ===== */
@media (max-width: 1024px) {
  .bento { grid-template-columns: repeat(4, 1fr); }
  .bento-card.span-3, .bento-card.span-4 { grid-column: span 4; }
  .bento-card.span-2 { grid-column: span 2; }
  .platforms { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; }
  .nav { display: none; }
  .menu-toggle { display: flex; }
  .nav.open {
    display: flex;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    padding: 12px 16px;
    background: rgba(8, 9, 10, 0.96);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--line);
    justify-content: flex-start;
  }
  .nav.open a {
    padding: 12px 0;
    border-bottom: 1px solid var(--line);
    width: 100%;
  }
  .nav.open a:last-child { border-bottom: none; }
}

@media (max-width: 720px) {
  section { padding: 56px 0; }
  .container { padding: 0 18px; }
  .bento { grid-template-columns: 1fr; gap: 12px; }
  .bento-card { grid-column: span 1 !important; min-height: auto; padding: 22px; }
  .platforms { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: span 2; max-width: none; }
  .legal-band-card { padding: 22px; }
  .header-cta .btn-ghost { display: none; }
  h1 { font-size: clamp(2.1rem, 9vw, 3rem); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}
