/* ── RESET & BASE ───────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* ── DARK THEME (default) ────────────────────────────────── */
:root,
[data-theme="dark"] {
  --bg:              #0d0d12;
  --bg-2:            #12121a;
  --bg-card:         #17171f;
  --border:          rgba(255, 255, 255, 0.07);
  --text:            #f0f0f5;
  --text-muted:      #888899;
  --accent:          #f97316;
  --accent-2:        #8b5cf6;
  --accent-3:        #14b8a6;
  --glow-orange:     rgba(249, 115, 22, 0.18);
  --glow-purple:     rgba(139, 92, 246, 0.18);
  --glow-teal:       rgba(20, 184, 166, 0.10);
  --nav-blur-bg:     rgba(13, 13, 18, 0.85);
  --shadow-card:     rgba(0, 0, 0, 0.50);
  --shadow-progress: rgba(0, 0, 0, 0.50);
  --device-bg:       rgba(255, 255, 255, 0.04);
  --device-pill-bg:  rgba(255, 255, 255, 0.07);
  --progress-track:  rgba(255, 255, 255, 0.07);
  --store-btn-bg:    rgba(255, 255, 255, 0.07);
  --store-btn-hover: rgba(255, 255, 255, 0.11);
  --disabled-bg:     rgba(255, 255, 255, 0.06);
  --scrollbar-thumb: #2a2a38;
  --radius:          16px;
  --radius-lg:       24px;
  --nav-h:           68px;
}

/* ── LIGHT THEME ─────────────────────────────────────────── */
[data-theme="light"] {
  --bg:              #f4f4f8;
  --bg-2:            #eaeaf0;
  --bg-card:         #ffffff;
  --border:          rgba(0, 0, 0, 0.08);
  --text:            #111118;
  --text-muted:      #666677;
  --accent:          #ea6c0a;
  --accent-2:        #7c3aed;
  --accent-3:        #0d9488;
  --glow-orange:     rgba(249, 115, 22, 0.10);
  --glow-purple:     rgba(139, 92, 246, 0.10);
  --glow-teal:       rgba(20, 184, 166, 0.06);
  --nav-blur-bg:     rgba(244, 244, 248, 0.88);
  --shadow-card:     rgba(0, 0, 0, 0.10);
  --shadow-progress: rgba(0, 0, 0, 0.12);
  --device-bg:       rgba(0, 0, 0, 0.04);
  --device-pill-bg:  rgba(0, 0, 0, 0.06);
  --progress-track:  rgba(0, 0, 0, 0.08);
  --store-btn-bg:    rgba(0, 0, 0, 0.05);
  --store-btn-hover: rgba(0, 0, 0, 0.09);
  --disabled-bg:     rgba(0, 0, 0, 0.05);
  --scrollbar-thumb: #ccccdd;
}

html {
  scroll-behavior: smooth;
  transition: color 0.3s, background-color 0.3s;
}

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  transition: background 0.3s, color 0.3s;
}

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

a { text-decoration: none; color: inherit; }

/* ── SCROLLBAR ──────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--scrollbar-thumb); border-radius: 10px; }

/* ── CURSOR GLOW ─────────────────────────────────────────── */
/* Soft ambient glow that trails the cursor. Native cursor unchanged. */
/* Only activates on real pointer/mouse devices — never on touch.    */
@media (hover: hover) and (pointer: fine) {
  .cursor-glow {
    position: fixed;
    top: 0;
    left: 0;
    width: 420px;
    height: 420px;
    border-radius: 50%;
    pointer-events: none;
    z-index: 9998;
    transform: translate(-50%, -50%);
    background: radial-gradient(
      circle,
      rgba(249, 115, 22, 0.22) 0%,
      rgba(249, 115, 22, 0.09) 45%,
      transparent 70%
    );
    transition: opacity 0.5s ease, width 0.4s ease, height 0.4s ease;
    will-change: left, top;
  }

  /* Tighten + intensify when hovering links/buttons */
  .cursor-glow.hovered {
    width: 260px;
    height: 260px;
    background: radial-gradient(
      circle,
      rgba(249, 115, 22, 0.38) 0%,
      rgba(249, 115, 22, 0.15) 45%,
      transparent 70%
    );
  }

  /* Softer in light mode */
  [data-theme="light"] .cursor-glow {
    background: radial-gradient(
      circle,
      rgba(234, 108, 10, 0.14) 0%,
      rgba(234, 108, 10, 0.05) 45%,
      transparent 70%
    );
  }
  [data-theme="light"] .cursor-glow.hovered {
    background: radial-gradient(
      circle,
      rgba(234, 108, 10, 0.24) 0%,
      rgba(234, 108, 10, 0.09) 45%,
      transparent 70%
    );
  }
}

/* Hide element entirely on touch devices */
@media not all and (hover: hover) {
  .cursor-glow { display: none; }
}

/* ── NAVBAR ─────────────────────────────────────────────── */
#navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-h);
  z-index: 100;
  /* Always show a background so nothing leaks above the nav */
  background: var(--bg);
  transition: background 0.3s, backdrop-filter 0.3s, box-shadow 0.3s;
}
#navbar.scrolled {
  background: var(--nav-blur-bg);
  backdrop-filter: blur(20px);
  box-shadow: 0 1px 0 var(--border);
}

.nav-inner {
  max-width: 1120px;
  margin: 0 auto;
  height: 100%;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 32px;
}

/* Group theme toggle + download button */
.nav-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* ── THEME TOGGLE ────────────────────────────────────────── */
.theme-toggle {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  /* No transform here — animation handles it */
  transition: background 0.2s, border-color 0.2s, color 0.2s;
  flex-shrink: 0;
}
.theme-toggle:hover {
  background: rgba(249, 115, 22, 0.1);
  border-color: rgba(249, 115, 22, 0.35);
  color: var(--accent);
  /* Intentionally NO transform here to avoid conflict with spin animation */
}

/* CSS keyframe for click spin — triggered by .spinning class from JS */
@keyframes toggle-spin {
  0%   { transform: rotate(0deg)   scale(1);    }
  40%  { transform: rotate(200deg) scale(0.82); }
  70%  { transform: rotate(340deg) scale(1.08); }
  100% { transform: rotate(360deg) scale(1);    }
}
.theme-toggle.spinning {
  animation: toggle-spin 0.45s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

/* Icon visibility controlled by theme */
[data-theme="dark"]  .icon-moon { display: none; }
[data-theme="dark"]  .icon-sun  { display: block; }
[data-theme="light"] .icon-sun  { display: none; }
[data-theme="light"] .icon-moon { display: block; }

.nav-logo {
  display: flex; align-items: center; gap: 8px;
  font-size: 1.2rem; font-weight: 800;
  letter-spacing: -0.5px;
}
.logo-icon { font-size: 1.4rem; }
.logo-text { color: var(--text); }

.nav-links {
  display: flex; list-style: none; gap: 6px;
  margin-left: auto;
}
.nav-links a {
  font-size: .9rem; font-weight: 500; color: var(--text-muted);
  padding: 6px 14px; border-radius: 8px;
  transition: color .2s, background .2s;
}
.nav-links a:hover { color: var(--text); background: var(--device-bg); }

.btn-nav-download {
  background: var(--accent);
  color: #fff; font-size: .9rem; font-weight: 600;
  padding: 8px 20px; border-radius: 10px;
  transition: opacity .2s, transform .2s;
  white-space: nowrap;
}
.btn-nav-download:hover { opacity: .88; transform: translateY(-1px); }

.nav-hamburger {
  display: none;
  flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 6px;
  margin-left: auto;
}
.nav-hamburger span {
  display: block; width: 22px; height: 2px;
  background: var(--text); border-radius: 4px;
  transition: .3s;
}

/* MOBILE MENU */
.mobile-menu {
  position: fixed;
  top: var(--nav-h);
  left: 0;
  right: 0;
  background: var(--bg-2);
  border-bottom: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  z-index: 99;
  /* Hide above viewport — use visibility so nothing peeks through */
  transform: translateY(-100%);
  visibility: hidden;
  pointer-events: none;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
              visibility 0.3s,
              opacity 0.3s;
  opacity: 0;
}
.mobile-menu.open {
  transform: translateY(0);
  visibility: visible;
  pointer-events: auto;
  opacity: 1;
}
.mobile-link {
  padding: 16px 24px;
  font-size: .95rem;
  font-weight: 500;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
  transition: color .2s, background .2s;
}
.mobile-link:hover { color: var(--text); background: var(--device-bg); }
.mobile-dl {
  color: var(--accent);
  font-weight: 700;
}

/* ── HERO ────────────────────────────────────────────────── */
#hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: calc(var(--nav-h) + 72px) 0 0;
  position: relative;
  overflow: hidden;
}

.hero-bg-orb {
  position: fixed; border-radius: 50%;
  filter: blur(80px); pointer-events: none; z-index: 0;
}
.orb1 { width: 500px; height: 500px; background: var(--glow-orange); top: -100px; left: -150px; }
.orb2 { width: 400px; height: 400px; background: var(--glow-purple); top: 200px; right: -100px; }
.orb3 { width: 300px; height: 300px; background: var(--glow-teal);   bottom: 0; left: 30%; }

/* Centred text block */
.hero-text-block {
  position: relative;
  z-index: 1;
  width: 100%;
  padding: 0 24px 56px;
  text-align: center;
}
.hero-text-block .badge { margin-left: auto; margin-right: auto; }
.hero-text-block h1 { max-width: 760px; margin-left: auto; margin-right: auto; }
.hero-text-block .hero-sub { max-width: 540px; margin-left: auto; margin-right: auto; }
.hero-text-block .hero-chips { justify-content: center; }
.hero-text-block .hero-ctas  { justify-content: center; }

/* Kept for fade-up observer compatibility */
.hero-content { position: relative; z-index: 1; }

.badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(249,115,22,0.12); border: 1px solid rgba(249,115,22,0.25);
  color: var(--accent); font-size: .8rem; font-weight: 600;
  padding: 5px 14px; border-radius: 100px;
  letter-spacing: .5px; text-transform: uppercase;
  margin-bottom: 24px;
}

h1 {
  font-size: clamp(2.8rem, 6vw, 5rem);
  font-weight: 900; line-height: 1.08;
  letter-spacing: -2px;
  margin-bottom: 20px;
}

.gradient-text {
  background: linear-gradient(135deg, #f97316, #fb923c, #fbbf24);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  font-size: 1.1rem; color: var(--text-muted); line-height: 1.7;
  margin-bottom: 28px;
}

.hero-chips {
  display: flex; flex-wrap: wrap; gap: 10px;
  margin-bottom: 36px;
}

.chip {
  font-size: .8rem; font-weight: 600;
  padding: 6px 14px; border-radius: 100px;
  border: 1px solid;
}
.chip-teal  { background: rgba(20,184,166,0.1);  border-color: rgba(20,184,166,.3);  color: #14b8a6; }
.chip-green { background: rgba(34,197,94,0.1);   border-color: rgba(34,197,94,.3);   color: #22c55e; }
.chip-orange{ background: rgba(249,115,22,0.1);  border-color: rgba(249,115,22,.3);  color: #f97316; }

.hero-ctas {
  display: flex; flex-wrap: wrap; gap: 14px; align-items: center;
}

.btn-primary {
  display: inline-flex; align-items: center; gap: 9px;
  background: linear-gradient(135deg, #f97316, #ea580c);
  color: #fff; font-size: 1rem; font-weight: 700;
  padding: 14px 28px; border-radius: 12px;
  box-shadow: 0 0 30px rgba(249,115,22,.35);
  transition: transform .2s, box-shadow .2s;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 0 45px rgba(249,115,22,.5); }

.btn-secondary {
  font-size: .95rem; font-weight: 600; color: var(--text-muted);
  padding: 14px 24px; border-radius: 12px;
  border: 1px solid var(--border);
  transition: color .2s, background .2s, border-color .2s;
}
.btn-secondary:hover { color: var(--text); background: var(--device-bg); border-color: rgba(128,128,128,.25); }

/* HERO MOCKUP STRIP — full width image below the headline */
.hero-mockup-strip {
  position: relative;
  z-index: 1;
  width: 100%;
  display: flex;
  justify-content: center;
  /* Fade bottom edge into the page background */
  -webkit-mask-image: linear-gradient(to bottom, black 60%, transparent 100%);
  mask-image: linear-gradient(to bottom, black 60%, transparent 100%);
}

@keyframes float-mockup {
  0%   { transform: translateY(0px); }
  50%  { transform: translateY(-10px); }
  100% { transform: translateY(0px); }
}

.hero-mockup-wrapper {
  width: 100%;
  max-width: 1000px;
  padding: 0 24px;
  animation: float-mockup 7s ease-in-out infinite;
  filter: drop-shadow(0 32px 64px rgba(0,0,0,0.55));
  transition: filter 0.4s ease;
}
.hero-mockup-wrapper:hover {
  filter: drop-shadow(0 40px 80px rgba(249,115,22,0.18)) drop-shadow(0 24px 48px rgba(0,0,0,0.5));
}

[data-theme="light"] .hero-mockup-wrapper {
  filter: drop-shadow(0 24px 48px rgba(0,0,0,0.12)) drop-shadow(0 8px 24px rgba(249,115,22,0.10));
}
[data-theme="light"] .hero-mockup-wrapper:hover {
  filter: drop-shadow(0 32px 64px rgba(249,115,22,0.20)) drop-shadow(0 12px 32px rgba(0,0,0,0.14));
}

.hero-mockup-img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 16px 16px 0 0;
}

/* Keep transfer-card styles for any reuse elsewhere */
.transfer-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 28px;
  width: 100%;
  max-width: 380px;
  box-shadow: 0 24px 80px var(--shadow-card);
  transition: background 0.3s, border-color 0.3s, box-shadow 0.3s;
}

/* ── STATS STRIP ─────────────────────────────────────────── */
.stats-strip {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg-2); padding: 40px 0;
}
.stats-grid {
  display: flex; flex-wrap: wrap; align-items: center;
  justify-content: space-around; gap: 24px;
}
.stat-item {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
}
.stat-num {
  font-size: 2.6rem; font-weight: 900; letter-spacing: -1px;
  background: linear-gradient(135deg, #f97316, #fbbf24);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text; line-height: 1;
}
.stat-unit { font-size: 1.2rem; }
.stat-label { font-size: .8rem; color: var(--text-muted); font-weight: 500; letter-spacing: .5px; text-transform: uppercase; }
.stat-divider { width: 1px; height: 48px; background: var(--border); }

/* ── SECTION COMMON ──────────────────────────────────────── */
section { padding: 100px 0; }
#hero { padding-top: calc(var(--nav-h) + 60px); }

.section-label {
  font-size: .75rem; font-weight: 700; letter-spacing: 2px;
  text-transform: uppercase; color: var(--accent);
  margin-bottom: 14px;
}
.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -1.5px;
  margin-bottom: 56px;
}

/* ── CROSS-PLATFORM SECTION ───────────────────────────────── */
#cross-platform { background: var(--bg-2); }

.cp-subtitle {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 560px;
  margin-top: -36px;
  margin-bottom: 48px;
}

/* Demo row: [Android card] [Beam] [Windows card] */
.cp-demo {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 40px;
}

/* ─ Device Cards ─ */
.cp-card {
  flex: 1 1 260px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 22px;
  transition: border-color 0.25s, box-shadow 0.25s, background 0.3s;
}
.cp-card-android { border-top: 3px solid #3ddc84; }
.cp-card-windows  { border-top: 3px solid #00adef; }
.cp-card:hover {
  box-shadow: 0 12px 48px var(--shadow-card);
}

.cp-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}
.cp-platform-id {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: .85rem;
  font-weight: 700;
  color: var(--text);
}

/* Status badge */
.cp-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: .72rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 100px;
  letter-spacing: .3px;
}
.cp-status-badge.sending  { background: rgba(249,115,22,.12); color: #f97316; }
.cp-status-badge.receiving { background: rgba(0,173,239,.12); color: #00adef; }

.cp-status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  animation: pulse-dot 1.2s ease-in-out infinite;
}

/* File card */
.cp-card-file {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--device-bg);
  border-radius: 10px;
  padding: 10px 12px;
  margin-bottom: 14px;
}
.cp-file-thumb { font-size: 1.4rem; line-height: 1; }
.cp-file-meta  { display: flex; flex-direction: column; gap: 2px; }
.cp-file-name  { font-size: .82rem; font-weight: 600; color: var(--text); }
.cp-file-size  { font-size: .74rem; color: var(--text-muted); }

/* Progress */
.cp-progress-track {
  height: 5px;
  background: var(--progress-track);
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 10px;
}
.cp-progress-fill {
  height: 100%;
  border-radius: 10px;
}
.cp-fill-send {
  background: linear-gradient(90deg, #f97316, #fbbf24);
  animation: cp-send-progress 4s ease-in-out infinite;
}
.cp-fill-recv {
  background: linear-gradient(90deg, #00adef, #3ddc84);
  animation: cp-recv-progress 4s ease-in-out 0.6s infinite;
}
@keyframes cp-send-progress {
  0%   { width: 0%; }
  80%  { width: 75%; }
  95%  { width: 75%; }
  100% { width: 0%; }
}
@keyframes cp-recv-progress {
  0%   { width: 0%; }
  80%  { width: 65%; }
  95%  { width: 65%; }
  100% { width: 0%; }
}

.cp-speed-row {
  display: flex;
  justify-content: space-between;
  font-size: .78rem;
  color: var(--text-muted);
}
.cp-speed-val { font-weight: 700; color: #22c55e; }

/* Received files list */
.cp-recv-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 14px;
}
.cp-recv-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .8rem;
  color: var(--text-muted);
  padding: 6px 10px;
  border-radius: 8px;
  background: var(--device-bg);
}
.cp-recv-row.done   { opacity: 0.6; }
.cp-recv-row.active { opacity: 1; color: var(--text); background: rgba(0,173,239,.08); }
.cp-recv-check {
  color: #22c55e;
  font-weight: 800;
  font-size: .85rem;
  flex-shrink: 0;
}
.cp-recv-name  { font-size: .78rem; }

/* Spinning loader on active receive row */
.cp-recv-spinner {
  display: inline-block;
  width: 12px;
  height: 12px;
  border: 2px solid rgba(0,173,239,.3);
  border-top-color: #00adef;
  border-radius: 50%;
  flex-shrink: 0;
  animation: cp-spin 0.8s linear infinite;
}
@keyframes cp-spin {
  to { transform: rotate(360deg); }
}

/* ─ Transfer Beam (center) ─ */
.cp-beam-area {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  min-width: 120px;
  max-width: 160px;
}
.cp-beam-label-top,
.cp-beam-label-bottom {
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .5px;
  text-transform: uppercase;
  color: var(--text-muted);
  text-align: center;
}

/* Track + packets */
.cp-beam-track {
  position: relative;
  width: 100%;
  height: 14px;
}
.cp-beam-line {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 2px;
  transform: translateY(-50%);
  background: repeating-linear-gradient(
    90deg,
    rgba(249,115,22,.5) 0px,
    rgba(249,115,22,.5) 6px,
    transparent 6px,
    transparent 12px
  );
}

/* Animated data packets */
.cp-pkt {
  position: absolute;
  top: 50%;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: linear-gradient(135deg, #f97316, #fbbf24);
  box-shadow: 0 0 8px rgba(249, 115, 22, 0.7);
  transform: translateY(-50%);
  animation: cp-packet-fly 2.4s ease-in-out infinite;
  opacity: 0;
}
.cp-pkt-1 { animation-delay: 0s; }
.cp-pkt-2 { animation-delay: 0.6s; }
.cp-pkt-3 { animation-delay: 1.2s; }
.cp-pkt-4 { animation-delay: 1.8s; }

@keyframes cp-packet-fly {
  0%   { left: 0%;   opacity: 0; transform: translateY(-50%) scale(0.5); }
  8%   { opacity: 1; transform: translateY(-50%) scale(1); }
  92%  { opacity: 1; }
  100% { left: 100%; opacity: 0; transform: translateY(-50%) scale(0.5); }
}

/* Pulsing hub */
.cp-hub {
  position: relative;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.cp-hub-icon {
  font-size: 1.3rem;
  position: relative;
  z-index: 2;
}
.cp-hub-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid rgba(249, 115, 22, 0.4);
  animation: cp-hub-pulse 2s ease-out infinite;
}
.cp-hub-ring.r2 { animation-delay: 1s; }
@keyframes cp-hub-pulse {
  0%   { transform: scale(1);   opacity: 0.8; }
  100% { transform: scale(2.2); opacity: 0; }
}

/* Coming-soon row */
.cp-coming-row {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}
.cp-coming-label {
  font-size: .78rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: .5px;
}
.cp-coming-chips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.cp-coming-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: .78rem;
  font-weight: 600;
  color: var(--text-muted);
  background: var(--device-bg);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 5px 12px;
  opacity: 0.7;
}

/* Responsive: stack on small screens */
@media (max-width: 640px) {
  .cp-demo {
    flex-direction: column;
    gap: 16px;
  }
  .cp-beam-area {
    flex-direction: row;
    min-width: 100%;
    justify-content: center;
  }
  .cp-beam-track {
    width: 80px;
  }
}

/* ── FEATURES ────────────────────────────────────────────── */
#features { background: var(--bg); }

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

.feat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: border-color .25s, transform .25s, box-shadow .25s, background .3s;
}
.feat-card:hover {
  border-color: rgba(249, 115, 22, 0.30);
  transform: translateY(-4px);
  box-shadow: 0 20px 60px var(--shadow-card);
}
.feat-card-large {
  grid-column: span 1;
}

.feat-icon-wrap {
  width: 52px; height: 52px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
}

.feat-card h3 {
  font-size: 1.05rem; font-weight: 700; margin-bottom: 8px;
}
.feat-card p {
  font-size: .87rem; color: var(--text-muted); line-height: 1.65;
}

/* speed demo */
.feat-speed-demo { margin-top: 20px; display:flex; flex-direction:column; gap:10px; }
.speed-bar {
  display: flex; align-items: center; gap: 10px;
  font-size:.75rem; color:var(--text-muted);
}
.speed-bar span { width: 64px; text-align:right; flex-shrink:0; }
.speed-fill {
  height: 8px; border-radius: 8px;
  background: linear-gradient(90deg, #f97316, #fbbf24);
}
.s1 { width: 88%; animation: speed-in1 1.5s ease both; }
.s2 { width: 20%; background: linear-gradient(90deg,#8b5cf6,#a78bfa); animation: speed-in1 1.5s .2s ease both; }
.s3 { width: 8%; background: linear-gradient(90deg,#14b8a6,#2dd4bf); animation: speed-in1 1.5s .4s ease both; }
@keyframes speed-in1 { from { width:0%; } }

/* ── HOW IT WORKS ────────────────────────────────────────── */
#how-it-works { background: var(--bg-2); }

.steps-row {
  display: flex; flex-wrap: wrap; align-items: flex-start;
  gap: 0; justify-content: center;
}
.step-card {
  flex: 1 1 220px;
  max-width: 280px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  text-align: center;
  position: relative;
  transition: border-color .25s, transform .25s, background .3s;
}
.step-card:hover { border-color: rgba(249, 115, 22, 0.35); transform: translateY(-4px); }
.step-num {
  font-size: .75rem; font-weight: 800; letter-spacing: 2px;
  color: var(--accent); margin-bottom: 16px;
}
.step-icon-wrap {
  width: 64px; height: 64px; border-radius: 18px;
  background: rgba(249,115,22,0.1); border: 1px solid rgba(249,115,22,0.2);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 18px; color: var(--accent);
}
.step-card h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 10px; }
.step-card p { font-size: .85rem; color: var(--text-muted); line-height: 1.65; }

.step-connector {
  color: var(--text-muted); opacity: .35;
  display: flex; align-items: center; padding: 0 8px; padding-top: 80px;
}

/* ── DOWNLOAD ────────────────────────────────────────────── */
#download { background: var(--bg); }
.download-sub { font-size: 1rem; color: var(--text-muted); margin-bottom: 40px; margin-top: -36px; }

.platform-tabs {
  display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px;
}
.platform-tab {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 20px; border-radius: 100px;
  border: 1px solid var(--border);
  background: transparent; color: var(--text-muted);
  font-size: .875rem; font-weight: 600; cursor: pointer;
  font-family: 'Inter', sans-serif;
  transition: all .2s;
}
.platform-tab:hover { border-color: rgba(249,115,22,.4); color: var(--text); }
.platform-tab.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  box-shadow: 0 0 24px rgba(249,115,22,.35);
}

.download-panel {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: background 0.3s, border-color 0.3s;
}
.dl-content { display: none; padding: 36px; }
.dl-content.active { display: flex; flex-wrap: wrap; gap: 28px; align-items: center; }

.dl-info { display: flex; align-items: flex-start; gap: 20px; flex: 1 1 300px; }

.dl-platform-badge {
  width: 72px; height: 72px; border-radius: 18px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
}
.android-badge { background: linear-gradient(135deg, #3ddc84, #0f9d58); }
.windows-badge { background: linear-gradient(135deg, #00adef, #0078d4); }
.macos-badge   { background: linear-gradient(135deg, #a8a8a8, #5a5a5a); }
.linux-badge   { background: linear-gradient(135deg, #fbbf24, #d97706); }
.ios-badge     { background: linear-gradient(135deg, #a78bfa, #7c3aed); }

.dl-details h3 { font-size: 1.2rem; font-weight: 800; margin-bottom: 6px; }
.dl-details p  { font-size: .87rem; color: var(--text-muted); line-height: 1.6; margin-bottom: 12px; }
.dl-meta {
  display: flex; flex-wrap: wrap; gap: 6px;
  font-size: .78rem; color: var(--text-muted);
}

.dl-buttons { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

.btn-download {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 24px; border-radius: 12px;
  font-size: .9rem; font-weight: 700;
  transition: transform .2s, box-shadow .2s, opacity .2s;
}
.btn-primary-dl {
  background: linear-gradient(135deg, #f97316, #ea580c);
  color: #fff;
  box-shadow: 0 0 24px rgba(249,115,22,.3);
}
.btn-primary-dl:hover:not(.btn-disabled) { transform: translateY(-2px); box-shadow: 0 0 36px rgba(249,115,22,.45); }
.btn-store {
  background: var(--store-btn-bg);
  border: 1px solid var(--border);
  color: var(--text);
  transition: background 0.2s;
}
.btn-store:hover { background: var(--store-btn-hover); }
.btn-disabled {
  background: var(--disabled-bg) !important;
  color: var(--text-muted) !important;
  box-shadow: none !important;
  cursor: default;
  border: 1px solid var(--border);
}

.open-source-note {
  margin-top: 22px; font-size: .85rem; color: var(--text-muted);
  display: flex; align-items: center; gap: 8px;
}
.open-source-note a { color: var(--accent); font-weight: 600; }
.open-source-note a:hover { text-decoration: underline; }

/* ── CONTACT ─────────────────────────────────────────────── */
#contact { background: var(--bg-2); }

.contact-row {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
}
.contact-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: border-color .25s, transform .25s, background .3s;
}
.contact-card:hover { border-color: rgba(249, 115, 22, 0.30); transform: translateY(-4px); }
.contact-icon {
  width: 56px; height: 56px; border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
}
.contact-card h3 { font-size: 1rem; font-weight: 700; margin-bottom: 8px; }
.contact-card p { font-size: .85rem; color: var(--text-muted); line-height: 1.65; margin-bottom: 20px; }
.contact-link {
  font-size: .85rem; font-weight: 700; color: var(--accent);
  transition: opacity .2s;
}
.contact-link:hover { opacity: .7; text-decoration: underline; }

/* ── FOOTER ──────────────────────────────────────────────── */
#footer {
  border-top: 1px solid var(--border);
  background: var(--bg); padding: 36px 0;
}
.footer-inner {
  display: flex; flex-wrap: wrap; align-items: center;
  gap: 16px; justify-content: space-between;
}
.footer-logo {
  display: flex; align-items: center; gap: 8px;
  font-size: 1.1rem; font-weight: 800;
}
.footer-copy { font-size: .82rem; color: var(--text-muted); }
.footer-links { display: flex; gap: 20px; }
.footer-links a { font-size: .82rem; color: var(--text-muted); transition: color .2s; }
.footer-links a:hover { color: var(--accent); }

/* ── ANIMATIONS ──────────────────────────────────────────── */
.fade-up {
  opacity: 0; transform: translateY(28px);
  transition: opacity .6s ease, transform .6s ease;
}
.fade-up.visible { opacity: 1; transform: translateY(0); }

/* ── RESPONSIVE ──────────────────────────────────────────── */
@media (max-width: 960px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-row   { grid-template-columns: 1fr 1fr; }
  .stat-divider  { display: none; }
}

@media (max-width: 720px) {
  .nav-links, .nav-right { display: none; }
  .nav-hamburger { display: flex; }
  h1 { font-size: 2.6rem; letter-spacing: -1.5px; }
  .features-grid { grid-template-columns: 1fr; }
  .contact-row   { grid-template-columns: 1fr; }
  .steps-row { flex-direction: column; align-items: center; }
  .step-connector { display: none; }
  .feat-card-large { grid-column: span 1; }
  .dl-content.active { flex-direction: column; }
  .hero-mockup-wrapper { padding: 0 12px; }
}


@media (max-width: 480px) {
  .hero-ctas { flex-direction: column; }
  .btn-primary, .btn-secondary { width: 100%; justify-content: center; }
  .platform-tabs { gap: 6px; }
  .platform-tab { padding: 8px 14px; font-size: .8rem; }
}
