/* ─────────────────────────────────────────────
   iAm Player — Cinematic Streaming Experience
   ───────────────────────────────────────────── */

:root {
  /* Backgrounds */
  --bg: #050816;
  --bg-secondary: #0A0F24;
  --surface: rgba(255, 255, 255, 0.03);
  --surface-hover: rgba(139, 92, 246, 0.08);
  --surface-elevated: rgba(255, 255, 255, 0.05);
  --border: rgba(255, 255, 255, 0.06);
  --border-hover: rgba(139, 92, 246, 0.3);

  /* Brand */
  --primary: #8B5CF6;
  --primary-light: #A78BFA;
  --primary-dark: #6D28D9;
  --primary-glow: rgba(139, 92, 246, 0.4);
  --accent: #06B6D4;
  --accent-glow: rgba(6, 182, 212, 0.3);
  --premium-gold: #F59E0B;
  --premium-gold-bg: rgba(245, 158, 11, 0.1);
  --premium-gold-border: rgba(245, 158, 11, 0.25);

  /* Text */
  --text-primary: #F1F5F9;
  --text-secondary: #94A3B8;
  --text-muted: rgba(148, 163, 184, 0.6);

  /* Header */
  --header-bg: rgba(5, 8, 22, 0.6);
  --header-bg-scrolled: rgba(5, 8, 22, 0.92);

  /* Buttons */
  --btn-ghost-bg: rgba(255, 255, 255, 0.04);
  --btn-ghost-hover-bg: rgba(255, 255, 255, 0.08);
  --btn-ghost-hover-border: rgba(255, 255, 255, 0.15);

  /* Misc */
  --hero-glow: rgba(139, 92, 246, 0.15);
  --support-bg-start: rgba(15, 20, 45, 0.6);
  --support-bg-end: rgba(15, 20, 45, 0);
  --mockup-border: rgba(255, 255, 255, 0.1);
  --mockup-shadow: rgba(139, 92, 246, 0.15);
  --fade-gradient-start: transparent;
  --fade-gradient-end: rgba(5, 8, 22, 0.85);

  /* Typography */
  --font-display: 'Bricolage Grotesque', sans-serif;
  --font-body: 'Be Vietnam Pro', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Layout */
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;

  --shadow-sm: 0 4px 16px rgba(0, 0, 0, 0.2);
  --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.4);
  --shadow-glow: 0 0 60px var(--primary-glow);
  --focus-ring: 0 0 0 3px rgba(139, 92, 246, 0.4);

  --container: min(1240px, calc(100% - 48px));
  --header-height: 72px;
}

[data-theme="light"] {
  --bg: #F8FAFD;
  --bg-secondary: #FFFFFF;
  --surface: rgba(0, 0, 0, 0.02);
  --surface-hover: rgba(139, 92, 246, 0.06);
  --surface-elevated: rgba(0, 0, 0, 0.03);
  --border: rgba(0, 0, 0, 0.07);
  --border-hover: rgba(139, 92, 246, 0.25);

  --text-primary: #0F172A;
  --text-secondary: #475569;
  --text-muted: rgba(71, 85, 105, 0.6);

  --header-bg: rgba(248, 250, 253, 0.7);
  --header-bg-scrolled: rgba(248, 250, 253, 0.92);

  --btn-ghost-bg: rgba(0, 0, 0, 0.03);
  --btn-ghost-hover-bg: rgba(0, 0, 0, 0.06);
  --btn-ghost-hover-border: rgba(0, 0, 0, 0.12);

  --hero-glow: rgba(139, 92, 246, 0.08);
  --support-bg-start: rgba(241, 245, 249, 0.8);
  --support-bg-end: rgba(241, 245, 249, 0);
  --mockup-border: rgba(0, 0, 0, 0.08);
  --mockup-shadow: rgba(139, 92, 246, 0.08);
  --fade-gradient-start: transparent;
  --fade-gradient-end: rgba(248, 250, 253, 0.85);
  --primary-glow: rgba(139, 92, 246, 0.15);
  --accent-glow: rgba(6, 182, 212, 0.1);

  --shadow-sm: 0 4px 16px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.1);
  --shadow-glow: 0 0 60px rgba(139, 92, 246, 0.08);
}


/* ── Reset ─────────────────────────────────── */

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

html {
  color-scheme: dark light;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body.menu-open {
  overflow: hidden;
}


/* ── Typography ────────────────────────────── */

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  line-height: 1.08;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--text-primary);
}

h1 {
  font-size: clamp(2.8rem, 6vw, 5rem);
  font-weight: 800;
  margin-bottom: 24px;
}

h2 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  margin-bottom: 16px;
}

h3 {
  font-size: 1.35rem;
  margin-bottom: 12px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

p {
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  font-size: 1.05rem;
  line-height: 1.7;
}

a {
  text-decoration: none;
  color: inherit;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

button {
  font: inherit;
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
}

:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
}


/* ── Custom Scrollbar ──────────────────────── */

::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg);
}

::-webkit-scrollbar-thumb {
  background: rgba(139, 92, 246, 0.3);
  border-radius: 100px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(139, 92, 246, 0.5);
}


/* ── Noise Overlay ─────────────────────────── */

body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 256px 256px;
}


/* ── Gradient Text ─────────────────────────── */

.gradient-text {
  background: linear-gradient(135deg, var(--accent) 0%, var(--primary) 40%, var(--primary-light) 100%);
  padding-right: 8px;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}


/* ── Layout ────────────────────────────────── */

.container {
  width: var(--container);
  margin: 0 auto;
}

.section {
  padding: 120px 0;
  position: relative;
}

section[id] {
  scroll-margin-top: calc(var(--header-height) + 32px);
}

.skip-link {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 1100;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  background: var(--bg-secondary);
  color: var(--text-primary);
  border: 1px solid var(--border);
  transform: translateY(-140%);
  font-family: var(--font-body);
}

.skip-link:focus-visible {
  transform: translateY(0);
}

.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 72px;
}

.section-head p {
  font-size: 1.2rem;
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: rgba(139, 92, 246, 0.08);
  color: var(--primary-light);
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 600;
  font-family: var(--font-mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 20px;
  border: 1px solid rgba(139, 92, 246, 0.15);
}


/* ── Buttons ───────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 28px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
  font-size: 0.95rem;
  font-family: var(--font-body);
  transition: all 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
  gap: 10px;
  letter-spacing: 0.01em;
}

.btn-lg {
  padding: 16px 36px;
  font-size: 1.05rem;
  border-radius: 14px;
}

.btn-small {
  padding: 8px 18px;
  font-size: 0.85rem;
}

.btn-icon {
  padding: 10px;
  border-radius: 50%;
  aspect-ratio: 1;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: white;
  box-shadow: 0 4px 24px var(--primary-glow);
  border: 1px solid rgba(139, 92, 246, 0.3);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary) 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px var(--primary-glow), 0 0 0 1px rgba(139, 92, 246, 0.2);
}

.btn-ghost {
  background: var(--btn-ghost-bg);
  border: 1px solid var(--border);
  color: var(--text-primary);
  backdrop-filter: blur(8px);
}

.btn-ghost:hover {
  background: var(--btn-ghost-hover-bg);
  border-color: var(--btn-ghost-hover-border);
  transform: translateY(-2px);
}


/* ── Header ────────────────────────────────── */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 0;
  background: var(--header-bg);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid transparent;
  transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.site-header.scrolled {
  background: var(--header-bg-scrolled);
  border-bottom-color: var(--border);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.15);
}

.nav-wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: var(--header-height);
  position: relative;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  font-size: 1.15rem;
  font-family: var(--font-display);
  letter-spacing: -0.02em;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-primary);
  cursor: pointer;
  padding: 8px;
}

.nav-toggle-icon[hidden],
.theme-icon[hidden],
.sun-icon[hidden],
.moon-icon[hidden] {
  display: none;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.main-nav a:not(.btn) {
  font-weight: 500;
  color: var(--text-secondary);
  font-size: 0.9rem;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  transition: all 0.25s ease;
}

.main-nav a:not(.btn):hover,
.main-nav a.active {
  color: var(--text-primary);
  background: var(--surface-hover);
}

.main-nav a:not(.btn):focus-visible,
.footer-links a:focus-visible,
.brand:focus-visible,
.faq-question:focus-visible,
.nav-toggle:focus-visible,
.btn:focus-visible,
.sha256-value:focus-visible {
  box-shadow: var(--focus-ring);
}


/* ── Hero ──────────────────────────────────── */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: var(--header-height);
  overflow: hidden;
}

/* Animated gradient orbs */
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}

.hero-bg::before {
  content: '';
  position: absolute;
  top: -30%;
  left: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.2) 0%, transparent 70%);
  filter: blur(80px);
  animation: orb-drift 20s ease-in-out infinite;
}

.hero-bg::after {
  content: '';
  position: absolute;
  bottom: -20%;
  right: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(6, 182, 212, 0.12) 0%, transparent 70%);
  filter: blur(80px);
  animation: orb-drift 25s ease-in-out infinite reverse;
}

@keyframes orb-drift {
  0%, 100% { transform: translate(0, 0) scale(1); }
  25% { transform: translate(60px, -40px) scale(1.1); }
  50% { transform: translate(-30px, 50px) scale(0.95); }
  75% { transform: translate(40px, 20px) scale(1.05); }
}

/* Hero Split Layout */
.hero-split {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  align-items: center;
  gap: 56px;
}

.hero-text {
  text-align: left;
}

.hero-copy {
  font-size: 1.1rem;
  line-height: 1.7;
  margin-bottom: 0;
}

/* Release badge */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: rgba(139, 92, 246, 0.08);
  color: var(--primary-light);
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 600;
  font-family: var(--font-mono);
  letter-spacing: 0.04em;
  margin-bottom: 28px;
  border: 1px solid rgba(139, 92, 246, 0.15);
}

.tag::before {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--accent-glow);
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.8); }
}

.release-note {
  max-width: 40rem;
  margin-bottom: 0;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.hero-cta {
  display: flex;
  gap: 16px;
  margin-top: 36px;
  flex-wrap: wrap;
}

/* Hero Logo */
.hero-logo {
  max-width: 260px;
  width: 100%;
  margin-bottom: 32px;
  display: block;
}


/* ── Hero Mockup — MacBook Laptop ─────────── */

.hero-mockup {
  width: 100%;
  perspective: 1200px;
  display: flex;
  justify-content: center;
}

.laptop-frame {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 720px;
  transform: rotateX(4deg) scale(0.98);
  transition: transform 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
  filter: drop-shadow(0 30px 60px rgba(0, 0, 0, 0.35))
          drop-shadow(0 0 80px var(--mockup-shadow));
}

.laptop-frame:hover {
  transform: rotateX(0deg) scale(1);
}

/* ── Screen lid ── */
.laptop-lid {
  position: relative;
  width: 100%;
  background: #1c1c21;
  border-radius: 14px 14px 0 0;
  padding: 8px 8px 8px 8px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.07),
    0 0 0 1px rgba(255, 255, 255, 0.05);
}

/* Notch / camera cutout at top center (MacBook style) */
.laptop-notch {
  width: 72px;
  height: 14px;
  background: #1c1c21;
  border-radius: 0 0 10px 10px;
  margin: -8px auto 6px;
  position: relative;
  z-index: 2;
  box-shadow:
    inset 0 -1px 2px rgba(0, 0, 0, 0.3),
    0 0 0 1px rgba(255, 255, 255, 0.04);
}

/* Camera dot inside notch */
.laptop-notch::after {
  content: '';
  position: absolute;
  top: 4px;
  left: 50%;
  transform: translateX(-50%);
  width: 5px;
  height: 5px;
  background: radial-gradient(circle, #2e3038 30%, #1c1c21 70%);
  border-radius: 50%;
  box-shadow: 0 0 2px rgba(100, 120, 255, 0.15);
}

/* Screen area */
.laptop-screen {
  position: relative;
  width: 100%;
  border-radius: 3px;
  overflow: hidden;
  background: #0A0F24;
}

.laptop-screen video,
.laptop-screen img {
  width: 100%;
  height: auto;
  display: block;
  background: #0A0F24;
}

/* ── Base / keyboard deck ── */
.laptop-base {
  width: 108%;
  height: 12px;
  background: linear-gradient(180deg, #2c2c32 0%, #232328 50%, #1e1e23 100%);
  border-radius: 0 0 8px 8px;
  position: relative;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 2px 6px rgba(0, 0, 0, 0.4),
    0 0 0 1px rgba(255, 255, 255, 0.04);
}

/* Front lip indent (trackpad area hint) */
.laptop-base-notch {
  width: 80px;
  height: 4px;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 0 0 4px 4px;
  margin: 0 auto;
  position: relative;
  top: 0;
}

/* ── Light theme — silver MacBook ── */
[data-theme="light"] .laptop-lid {
  background: #e4e4e8;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.8),
    0 0 0 1px rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .laptop-notch {
  background: #e4e4e8;
  box-shadow:
    inset 0 -1px 2px rgba(0, 0, 0, 0.1),
    0 0 0 1px rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .laptop-notch::after {
  background: radial-gradient(circle, #c0c4cc 30%, #e4e4e8 70%);
  box-shadow: none;
}

[data-theme="light"] .laptop-base {
  background: linear-gradient(180deg, #d8d8dc 0%, #c8c8ce 50%, #bdbdc4 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.6),
    0 2px 6px rgba(0, 0, 0, 0.12),
    0 0 0 1px rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .laptop-base-notch {
  background: rgba(0, 0, 0, 0.05);
}


/* ── Features Bento Grid ───────────────────── */

.bento-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: auto;
  gap: 16px;
}

.bento-grid .card:nth-child(1) {
  grid-column: span 2;
  --reveal-delay: 0s;
}

.bento-grid .card:nth-child(2) {
  grid-column: span 2;
  --reveal-delay: 0.1s;
}

.bento-grid .card:nth-child(3) {
  --reveal-delay: 0.15s;
}

.bento-grid .card:nth-child(4) {
  --reveal-delay: 0.2s;
}

.bento-grid .card:nth-child(5) {
  grid-column: span 2;
  --reveal-delay: 0.25s;
}

.bento-grid .card:nth-child(6) {
  grid-column: span 2;
  --reveal-delay: 0.3s;
}

.bento-grid .card:nth-child(7) {
  --reveal-delay: 0.35s;
}

.bento-grid .card:nth-child(8) {
  --reveal-delay: 0.4s;
}


/* ── Card ──────────────────────────────────── */

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  transition:
    transform 0.35s cubic-bezier(0.25, 0.8, 0.25, 1),
    background-color 0.3s ease,
    border-color 0.3s ease,
    box-shadow 0.3s ease;
  position: relative;
  overflow: hidden;
}

/* Subtle top-edge highlight */
.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 20%;
  right: 20%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--primary-light), transparent);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.card-icon {
  width: 52px;
  height: 52px;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.12) 0%, rgba(6, 182, 212, 0.06) 100%);
  color: var(--primary-light);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  transition: transform 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
  border: 1px solid rgba(139, 92, 246, 0.1);
}

.bento-grid .card-icon > svg {
  width: 26px;
  height: 26px;
  flex: 0 0 26px;
  display: block;
}

.bento-grid .card-icon > svg.feature-icon--compact {
  transform: scale(1.12);
  transform-origin: center;
}

.bento-grid .card-icon > svg.feature-icon--wide {
  width: 30px;
  height: 18px;
  flex: 0 0 30px;
}

@media (hover: hover) and (pointer: fine) {
  .card:hover {
    transform: translateY(-4px);
    background: var(--surface-hover);
    border-color: var(--border-hover);
    box-shadow: 0 12px 40px rgba(139, 92, 246, 0.08);
  }

  .card:hover::before {
    opacity: 0.6;
  }

  .card:hover .card-icon {
    transform: scale(1.1) rotate(-3deg);
  }
}

.card-title-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.card-title-row h3 {
  margin-bottom: 0;
}

.badge-premium {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  background: var(--premium-gold-bg);
  color: var(--premium-gold);
  border: 1px solid var(--premium-gold-border);
  border-radius: 100px;
  font-size: 0.65rem;
  font-weight: 700;
  font-family: var(--font-mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}

.card h3 {
  margin-bottom: 16px;
}

.card p {
  margin-bottom: 0;
  font-size: 0.95rem;
  line-height: 1.7;
}


/* ── Downloads ─────────────────────────────── */

.downloads {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.download-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  text-align: center;
  transition: all 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.download-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(ellipse at 50% 0%, rgba(139, 92, 246, 0.06) 0%, transparent 70%);
  pointer-events: none;
}

.download-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-hover);
  box-shadow: 0 16px 48px rgba(139, 92, 246, 0.1);
}

.download-icon {
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.1) 0%, rgba(6, 182, 212, 0.05) 100%);
  color: var(--primary-light);
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  border: 1px solid rgba(139, 92, 246, 0.08);
  position: relative;
  z-index: 1;
}

.download-card h3 {
  margin-bottom: 12px;
  position: relative;
  z-index: 1;
}

.download-card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 28px;
  flex-grow: 1;
  position: relative;
  z-index: 1;
}

.download-card .btn {
  width: 100%;
  position: relative;
  z-index: 1;
}

.download-meta {
  margin: 14px 0 0;
  color: var(--text-muted);
  font-size: 0.82rem;
  font-family: var(--font-mono);
  flex-grow: 0;
  position: relative;
  z-index: 1;
}

.download-coming-soon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 28px;
  background: var(--btn-ghost-bg);
  color: var(--text-muted);
  border-radius: var(--radius-sm);
  font-weight: 600;
  border: 1px dashed var(--border);
  cursor: not-allowed;
  gap: 10px;
  width: 100%;
  font-size: 0.95rem;
  position: relative;
  z-index: 1;
}

.sha256-hash {
  margin-top: 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  width: 100%;
  position: relative;
  z-index: 1;
}

.sha256-label {
  font-size: 0.65rem;
  color: var(--text-muted);
  font-weight: 600;
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.sha256-value {
  color: var(--text-secondary);
  padding: 8px 12px;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
  width: 100%;
  text-align: center;
  border: 1px solid transparent;
  display: inline-flex;
  justify-content: center;
  align-items: center;
}

.sha256-value:hover {
  background: rgba(0, 0, 0, 0.35);
  border-color: var(--border);
}

.sha256-text {
  font-size: 0.6rem;
  font-family: var(--font-mono);
  word-break: break-all;
  line-height: 1.5;
}


/* ── Platforms ──────────────────────────────── */

.platforms {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.platform-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 24px;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--border);
  min-width: 140px;
  transition: all 0.3s ease;
  color: var(--text-secondary);
}

.platform-item svg {
  color: var(--text-muted);
  transition: all 0.3s ease;
}

.platform-item:hover {
  background: var(--surface-hover);
  border-color: var(--border-hover);
  transform: translateY(-4px);
  color: var(--text-primary);
}

.platform-item:hover svg {
  color: var(--primary-light);
}


/* ── FAQ ───────────────────────────────────── */

.faq-list {
  max-width: 740px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color 0.35s ease, box-shadow 0.35s ease;
}

.faq-item[open] {
  border-color: var(--border-hover);
  box-shadow: 0 4px 24px rgba(139, 92, 246, 0.06);
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 28px;
  cursor: pointer;
  font-weight: 600;
  font-size: 1rem;
  font-family: var(--font-display);
  color: var(--text-primary);
  list-style: none;
  user-select: none;
  transition: background 0.25s ease;
  letter-spacing: -0.01em;
}

.faq-question::-webkit-details-marker {
  display: none;
}

.faq-question:hover {
  background: var(--surface-hover);
}

.faq-chevron {
  flex-shrink: 0;
  color: var(--primary-light);
  transition: transform 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.faq-item[open] .faq-chevron {
  transform: rotate(180deg);
}

.faq-answer {
  padding: 0 28px 24px;
  margin-bottom: 0;
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.8;
  border-top: 1px solid var(--border);
  padding-top: 20px;
}


/* ── Support Block ─────────────────────────── */

.support-block {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 80px 48px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.support-block::before {
  content: '';
  position: absolute;
  top: 0;
  left: 10%;
  right: 10%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--primary), var(--accent), transparent);
  opacity: 0.5;
}

.support-block::after {
  content: '';
  position: absolute;
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.support-content {
  position: relative;
  z-index: 1;
  max-width: 560px;
  margin: 0 auto;
}

.support-content h2 {
  margin-bottom: 20px;
}


/* ── Legal Pages ───────────────────────────── */

.legal-page {
  padding: 120px 20px 60px;
  max-width: 800px;
  margin: 0 auto;
}

.legal-page h1 {
  margin-bottom: 30px;
  font-size: 2.5rem;
}

.legal-page h2 {
  margin-top: 40px;
  margin-bottom: 15px;
  font-size: 1.5rem;
}

.legal-page p,
.legal-page li {
  margin-bottom: 15px;
  line-height: 1.7;
  color: var(--text-secondary);
}

.legal-page ul,
.legal-page ol {
  margin-left: 20px;
  margin-bottom: 20px;
}

.alert-box {
  background-color: rgba(239, 68, 68, 0.08);
  border-left: 3px solid #ef4444;
  padding: 20px;
  border-radius: var(--radius-sm);
  margin-bottom: 30px;
}

.instruction-steps {
  background: var(--surface);
  padding: 30px;
  border-radius: var(--radius-md);
  margin-top: 30px;
  border: 1px solid var(--border);
}

.link-inline {
  color: var(--primary-light);
}


/* ── Footer ────────────────────────────────── */

.site-footer {
  border-top: 1px solid var(--border);
  padding: 56px 0;
  margin-top: 40px;
  background: var(--bg-secondary);
}

.footer-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 20px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.1rem;
  color: var(--text-primary);
  font-family: var(--font-display);
  font-weight: 700;
}

.footer-desc {
  max-width: 480px;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0;
}

.footer-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 16px;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.footer-links a:hover {
  color: var(--primary-light);
}

.separator {
  color: var(--text-muted);
  opacity: 0.4;
}


/* ── Back to Top ───────────────────────────── */

#back-to-top {
  position: fixed;
  bottom: 28px;
  right: 28px;
  background: var(--surface-elevated);
  border: 1px solid var(--border);
  color: var(--text-primary);
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: all 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
  z-index: 900;
  backdrop-filter: blur(12px);
}

#back-to-top:hover {
  background: var(--primary);
  border-color: var(--primary);
  transform: translateY(-3px);
  box-shadow: 0 8px 24px var(--primary-glow);
}

#back-to-top.visible {
  opacity: 1;
  visibility: visible;
}


/* ── Reveal Animation ──────────────────────── */

.fade-in-up {
  opacity: 0;
  transform: translateY(24px);
}

.fade-in-up.is-revealing {
  transition:
    opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
  transition-delay: var(--reveal-delay, 0s);
}

.fade-in-up.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (hover: hover) and (pointer: fine) {
  .card.fade-in-up.visible:hover {
    transform: translateY(-4px);
  }
}


/* ── Section Dividers ──────────────────────── */

.section-divider {
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
  margin: 0 auto;
  max-width: 600px;
}


/* ── Responsive ────────────────────────────── */

@media (max-width: 1024px) {
  .bento-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .bento-grid .card:nth-child(1),
  .bento-grid .card:nth-child(2),
  .bento-grid .card:nth-child(5),
  .bento-grid .card:nth-child(6) {
    grid-column: span 1;
  }
}

@media (max-width: 768px) {
  :root {
    --header-height: 64px;
    --container: min(100%, calc(100% - 28px));
  }

  h1 {
    font-size: clamp(2.2rem, 8vw, 3rem);
  }

  .section {
    padding: 80px 0;
  }

  .section-head {
    margin-bottom: 48px;
  }

  .nav-toggle {
    display: block;
  }

  .nav-right {
    gap: 8px;
  }

  .main-nav {
    position: absolute;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: var(--bg-secondary);
    flex-direction: column;
    padding: 24px;
    border-bottom: 1px solid var(--border);
    transform: translateY(-12px);
    transition: transform 0.3s ease, opacity 0.3s ease, visibility 0.3s ease;
    align-items: stretch;
    gap: 8px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    z-index: 999;
    backdrop-filter: blur(20px);
  }

  .main-nav.open {
    transform: translateY(0);
    box-shadow: var(--shadow-lg);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .main-nav a:not(.btn) {
    padding: 14px 16px;
    background: var(--surface);
    border-radius: var(--radius-sm);
    text-align: center;
  }

  .hero {
    min-height: auto;
    padding: 120px 0 64px;
  }

  .hero-split {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }

  .hero-text {
    text-align: center;
  }

  .hero-cta {
    justify-content: center;
  }

  .hero-cta .btn {
    width: 100%;
  }

  .bento-grid {
    grid-template-columns: 1fr;
  }

  .bento-grid .card {
    grid-column: span 1 !important;
  }

  .downloads {
    grid-template-columns: 1fr;
  }

  .platforms {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
  }

  .faq-question {
    padding: 18px 20px;
    font-size: 0.95rem;
  }

  .faq-answer {
    padding: 16px 20px 20px;
  }

  .hero-mockup {
    margin-top: 40px;
  }

  .laptop-lid {
    border-radius: 10px 10px 0 0;
    padding: 6px 6px 6px 6px;
  }

  .laptop-notch {
    width: 56px;
    height: 11px;
    margin: -6px auto 4px;
    border-radius: 0 0 8px 8px;
  }

  .laptop-notch::after {
    width: 4px;
    height: 4px;
    top: 3px;
  }

  .laptop-base {
    height: 10px;
  }

  .laptop-base-notch {
    width: 60px;
    height: 3px;
  }

  .support-block {
    padding: 56px 24px;
    border-radius: var(--radius-lg);
  }

  .site-footer {
    padding: 40px 0;
  }

  .footer-links {
    flex-direction: column;
    gap: 10px;
  }

  .separator {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }

  .fade-in-up {
    opacity: 1;
    transform: none;
  }

}
