/* ============================================================
   styles.css — Wyre Website
   ============================================================ */

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-family);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-primary);
  background: var(--bg-app);
  -webkit-font-smoothing: antialiased;
  transition: background var(--transition), color var(--transition);
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--scrollbar-thumb); border-radius: 999px; }

/* ── Container ──────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Buttons ────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 20px;
  height: 40px;
  font-family: var(--font-family);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  white-space: nowrap;
  text-decoration: none;
  position: relative;
  overflow: hidden;
  transition: background var(--transition), color var(--transition),
    box-shadow var(--transition), transform var(--transition-fast);
}
.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.07);
  opacity: 0;
  transition: opacity var(--transition-fast);
  border-radius: inherit;
}
.btn:hover::after { opacity: 1; }
.btn:active { transform: scale(0.97); }

.btn--primary {
  background: var(--accent-mid);
  color: #fff;
  box-shadow: 0 4px 18px var(--accent-glow-sm), var(--nm-raised);
}
.btn--primary:hover {
  background: var(--accent-hover);
  box-shadow: 0 6px 24px var(--accent-glow), var(--nm-raised);
  transform: translateY(-2px);
}

.btn--secondary {
  background: var(--bg-app);
  color: var(--text-primary);
  box-shadow: var(--nm-raised);
}
.btn--secondary:hover {
  color: var(--accent-mid);
  transform: translateY(-2px);
}

.btn--ghost {
  background: transparent;
  color: var(--text-secondary);
}
.btn--ghost:hover {
  background: var(--bg-surface);
  color: var(--accent-mid);
}

.btn--sm  { height: 34px; padding: 0 14px; font-size: 13.5px; border-radius: var(--radius-sm); }
.btn--lg  { height: 52px; padding: 0 28px; font-size: 16px; border-radius: var(--radius-lg); gap: 10px; }
.btn__icon { font-size: 14px; flex-shrink: 0; }

/* ── Section Shared ─────────────────────────────────────── */
.section-header {
  text-align: center;
  margin-bottom: 64px;
}
.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 14px;
  background: var(--accent-50);
  border: 1px solid var(--accent-100);
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 600;
  color: var(--accent-text);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 20px;
}
.section-title {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: var(--text-primary);
  margin-bottom: 16px;
}
.section-subtitle {
  font-size: 17px;
  color: var(--text-secondary);
  max-width: 520px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ══════════════════════════════════════════════════════════
   NAV
   ══════════════════════════════════════════════════════════ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 12px 0;
  transition: padding var(--transition), background var(--transition);
}

/* Scrolled — shrinks into a floating pill */
.nav.scrolled {
  padding: 8px 0;
}
.nav.scrolled .nav__inner {
  background: rgba(18,18,20,0.80);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--border-default);
  box-shadow: 0 4px 24px rgba(0,0,0,0.35), 0 1px 0 rgba(255,255,255,0.04) inset;
  border-radius: var(--radius-xl);
  max-width: 1000px;
}
[data-theme="light"] .nav.scrolled .nav__inner {
  background: rgba(224,229,236,0.85);
  box-shadow: 0 4px 24px rgba(163,177,198,0.40), var(--nm-raised);
}

.nav__inner {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 56px;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
  transition: background var(--transition), border-radius var(--transition),
    box-shadow var(--transition), max-width var(--transition), border var(--transition);
  border: 1px solid transparent;
  border-radius: 0;
}

/* Logo */
.nav__logo {
  display: flex;
  align-items: center;
  gap: 9px;
  text-decoration: none;
  flex-shrink: 0;
  margin-right: 8px;
}
.nav__logo-img {
  width: 30px;
  height: 30px;
  border-radius: var(--radius-sm);
  object-fit: contain;
  box-shadow: 0 2px 10px var(--accent-glow-sm);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}
.nav__logo:hover .nav__logo-img {
  transform: scale(1.08) rotate(-4deg);
  box-shadow: 0 4px 18px var(--accent-glow);
}
.nav__logo-text {
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--text-primary);
}

/* Links */
.nav__links {
  display: flex;
  align-items: center;
  gap: 2px;
  list-style: none;
  margin-left: auto;
}
.nav__link {
  position: relative;
  padding: 6px 11px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
  transition: color var(--transition-fast), background var(--transition-fast);
  white-space: nowrap;
}
.nav__link::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 50%;
  transform: translateX(-50%) scaleX(0);
  width: 16px;
  height: 2px;
  border-radius: 2px;
  background: var(--accent-mid);
  transition: transform var(--transition-fast);
}
.nav__link:hover {
  color: var(--text-primary);
  background: var(--border-subtle);
}
.nav__link:hover::after { transform: translateX(-50%) scaleX(1); }
.nav__link.active {
  color: var(--accent-text);
  background: var(--accent-50);
}
.nav__link.active::after { transform: translateX(-50%) scaleX(1); }

/* Separator */
.nav__sep {
  width: 1px;
  height: 20px;
  background: var(--border-default);
  margin: 0 6px;
  flex-shrink: 0;
}

/* Actions */
.nav__actions {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}

/* Icon buttons (GitHub, theme) */
.nav__icon-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: var(--radius-sm);
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-size: 15px;
  cursor: pointer;
  transition: color var(--transition-fast), background var(--transition-fast);
  text-decoration: none;
  flex-shrink: 0;
}
.nav__icon-btn:hover {
  color: var(--text-primary);
  background: var(--border-subtle);
}

/* Hamburger */
.nav__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 7px;
  margin-left: 4px;
  border-radius: var(--radius-sm);
  transition: background var(--transition-fast);
}
.nav__hamburger:hover { background: var(--border-subtle); }
.nav__hamburger span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text-secondary);
  border-radius: 2px;
  transition: transform var(--transition-fast), opacity var(--transition-fast), width var(--transition-fast);
}
.nav__hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__hamburger.open span:nth-child(2) { opacity: 0; width: 0; }
.nav__hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile menu */
.nav__mobile {
  display: none;
  flex-direction: column;
  gap: 4px;
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.35s var(--ease-out), opacity 0.25s ease;
  opacity: 0;
  background: var(--bg-surface);
  border-top: 1px solid var(--border-subtle);
  padding: 0 16px;
}
.nav__mobile.open {
  display: flex;
  max-height: 400px;
  opacity: 1;
  padding: 12px 16px 16px;
}
.nav__mobile ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.nav__mobile-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 14px;
  font-size: 15px;
  font-weight: 500;
  color: var(--text-secondary);
  border-radius: var(--radius-md);
  transition: color var(--transition-fast), background var(--transition-fast);
}
.nav__mobile-link i {
  width: 16px;
  text-align: center;
  font-size: 13px;
  color: var(--accent-mid);
  flex-shrink: 0;
}
.nav__mobile-link:hover {
  color: var(--text-primary);
  background: var(--accent-50);
}

.nav__mobile__footer {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--border-subtle);
}
.nav__mobile__footer .btn {
  width: 100%;
  justify-content: center;
  height: 44px;
  font-size: 15px;
}
.nav__mobile__github {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  border-radius: var(--radius-md);
  transition: color var(--transition-fast), background var(--transition-fast);
}
.nav__mobile__github:hover {
  color: var(--text-primary);
  background: var(--border-subtle);
}
.nav__mobile__github i { font-size: 16px; }
/* ══════════════════════════════════════════════════════════
   HERO
   ══════════════════════════════════════════════════════════ */
.hero {
  position: relative;
  padding: 140px 0 0;
  overflow: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.hero__glow {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(80px);
}
.hero__glow--1 {
  width: 600px; height: 600px;
  top: -200px; left: 50%;
  transform: translateX(-50%);
  background: hsla(var(--h), var(--s), 65%, 0.12);
}
.hero__glow--2 {
  width: 400px; height: 400px;
  top: 100px; right: -100px;
  background: hsla(calc(var(--h) + 40), var(--s), 65%, 0.08);
}
.hero__glow--3 {
  width: 300px; height: 300px;
  top: 200px; left: -80px;
  background: hsla(var(--h), var(--s), 55%, 0.06);
}

.hero .container { position: relative; z-index: 1; text-align: center; }

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: var(--accent-50);
  border: 1px solid var(--accent-100);
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 600;
  color: var(--accent-text);
  margin-bottom: 28px;
  letter-spacing: 0.01em;
  animation: fadeInUp 0.6s var(--ease-out) both;
}
.hero__badge-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 8px var(--success-glow);
  animation: pulse 2.5s ease-in-out infinite;
}

.hero__title {
  font-size: clamp(40px, 6vw, 72px);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1.08;
  color: var(--text-primary);
  margin-bottom: 24px;
  animation: fadeInUp 0.6s 0.1s var(--ease-out) both;
}
.hero__title-gradient {
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero__subtitle {
  font-size: clamp(16px, 2vw, 19px);
  color: var(--text-secondary);
  max-width: 560px;
  margin: 0 auto 40px;
  line-height: 1.7;
  animation: fadeInUp 0.6s 0.2s var(--ease-out) both;
}

.hero__actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 56px;
  animation: fadeInUp 0.6s 0.3s var(--ease-out) both;
}

.hero__stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  flex-wrap: wrap;
  padding: 20px 32px;
  background: var(--bg-surface);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-sm);
  display: inline-flex;
  margin: 0 auto;
  animation: fadeInUp 0.6s 0.4s var(--ease-out) both;
}
.hero__stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 0 28px;
}
.hero__stat-value {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--accent-text);
  font-family: var(--font-mono);
}
.hero__stat-label {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 500;
  white-space: nowrap;
}
.hero__stat-divider {
  width: 1px;
  height: 36px;
  background: var(--border-default);
  flex-shrink: 0;
}

/* ── App Mockup ─────────────────────────────────────────── */
.hero__mockup-wrap {
  position: relative;
  z-index: 1;
  margin-top: 72px;
  padding-bottom: 0;
}
.hero__mockup {
  perspective: 1200px;
  animation: heroFloat 6s ease-in-out infinite;
}

.mockup-window {
  background: var(--bg-surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-default);
  box-shadow: var(--shadow-lg), 0 0 80px hsla(var(--h), var(--s), 65%, 0.12);
  overflow: hidden;
  max-width: 820px;
  margin: 0 auto;
  transform: rotateX(4deg);
  transform-origin: bottom center;
}

.mockup-window__titlebar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: var(--bg-elevated);
  border-bottom: 1px solid var(--border-subtle);
}
.mockup-window__controls { display: flex; gap: 6px; }
.mockup-window__dot {
  width: 12px; height: 12px;
  border-radius: 50%;
}
.mockup-window__dot--red    { background: #ff5f57; }
.mockup-window__dot--yellow { background: #febc2e; }
.mockup-window__dot--green  { background: #28c840; }
.mockup-window__title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-tertiary);
  margin: 0 auto;
  letter-spacing: -0.01em;
}

.mockup-window__body {
  display: flex;
  height: 340px;
}

.mockup-sidebar {
  width: 180px;
  flex-shrink: 0;
  background: var(--bg-sidebar, var(--bg-elevated));
  border-right: 1px solid var(--border-subtle);
  padding: 16px 10px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.mockup-sidebar__item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-tertiary);
  cursor: default;
  transition: all var(--transition-fast);
}
.mockup-sidebar__item--active {
  background: var(--accent-50);
  color: var(--accent-text);
  box-shadow: var(--nm-pressed);
}
.mockup-sidebar__item i { width: 16px; text-align: center; font-size: 13px; }

.mockup-content {
  flex: 1;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  overflow: hidden;
}

.mockup-section-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  text-transform: uppercase;
}

.mockup-devices {
  display: flex;
  gap: 10px;
}
.mockup-device {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 12px 10px;
  background: var(--bg-app);
  border-radius: var(--radius-md);
  box-shadow: var(--nm-raised);
  min-width: 72px;
  cursor: default;
  transition: all var(--transition-fast);
}
.mockup-device--selected {
  box-shadow: var(--nm-pressed), 0 0 0 2px var(--accent-mid), 0 4px 20px var(--accent-glow);
}
.mockup-device__avatar {
  width: 38px; height: 38px;
  border-radius: var(--radius-sm);
  background: var(--gradient-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 700;
  color: #fff;
}
.mockup-device__dot {
  position: absolute;
  top: 6px; right: 6px;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--success);
  border: 2px solid var(--bg-surface);
  box-shadow: 0 0 6px var(--success-glow);
  animation: pulse 2.5s ease-in-out infinite;
}
.mockup-device__name {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-secondary);
  white-space: nowrap;
}
.mockup-device__os {
  font-size: 11px;
  color: var(--text-muted);
}

.mockup-dropzone {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px;
  background: var(--bg-app);
  border-radius: var(--radius-md);
  box-shadow: var(--nm-pressed);
  font-size: 12px;
  color: var(--text-tertiary);
}
.mockup-dropzone i { color: var(--accent-mid); font-size: 16px; }
.mockup-dropzone u { color: var(--accent-text); cursor: pointer; }

.mockup-transfer {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 12px 12px 16px;
  background: var(--bg-app);
  border-radius: var(--radius-md);
  box-shadow: var(--nm-raised);
  overflow: hidden;
}
.mockup-transfer__stripe {
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 4px;
  background: var(--gradient-accent);
  border-radius: var(--radius-md) 0 0 var(--radius-md);
}
.mockup-transfer__icon {
  width: 30px; height: 30px;
  border-radius: var(--radius-sm);
  background: var(--bg-app);
  box-shadow: var(--nm-pressed);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-mid);
  font-size: 12px;
  flex-shrink: 0;
}
.mockup-transfer__info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.mockup-transfer__name {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.mockup-transfer__bar {
  height: 4px;
  background: var(--bg-overlay);
  border-radius: 999px;
  overflow: hidden;
  box-shadow: var(--nm-pressed);
}
.mockup-transfer__fill {
  height: 100%;
  background: var(--gradient-accent);
  border-radius: 999px;
  animation: progressShimmer 2s ease-in-out infinite;
}
.mockup-transfer__pct {
  font-size: 12px;
  font-weight: 700;
  color: var(--accent-text);
  font-family: var(--font-mono);
  flex-shrink: 0;
}

/* ══════════════════════════════════════════════════════════
   FEATURES
   ══════════════════════════════════════════════════════════ */
.features {
  padding: 120px 0;
  position: relative;
}
.features::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-default), transparent);
}

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

.feature-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), border-color var(--transition-fast);
  position: relative;
  overflow: hidden;
}
.feature-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gradient-hero);
  opacity: 0;
  transition: opacity var(--transition-fast);
  pointer-events: none;
}
.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--border-default);
}
.feature-card:hover::before { opacity: 1; }

.feature-card--large {
  grid-column: span 2;
}
.feature-card--right {
  /* no extra styles needed */
}

.feature-card__icon-wrap {
  width: 44px; height: 44px;
  border-radius: var(--radius-md);
  background: var(--accent-50);
  border: 1px solid var(--accent-100);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}
.feature-card__icon {
  font-size: 18px;
  color: var(--accent-mid);
}
.feature-card__title {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin-bottom: 8px;
}
.feature-card__desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.65;
}

/* Radar visual */
.feature-card__visual {
  margin-top: 24px;
}
.feature-card__visual--radar {
  display: flex;
  justify-content: center;
}

.radar-demo {
  position: relative;
  width: 160px;
  height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.radar-demo__ring {
  position: absolute;
  border-radius: 50%;
  border: 1.5px solid var(--accent-mid);
  opacity: 0;
  animation: radarRing 2.4s ease-out infinite;
}
.radar-demo__ring--1 { width: 60px;  height: 60px;  animation-delay: 0s; }
.radar-demo__ring--2 { width: 110px; height: 110px; animation-delay: 0.8s; }
.radar-demo__ring--3 { width: 160px; height: 160px; animation-delay: 1.6s; }

.radar-demo__center {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--gradient-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 16px;
  box-shadow: 0 0 20px var(--accent-glow);
  z-index: 1;
  animation: glowPulse 2.5s ease-in-out infinite;
}

.radar-demo__device {
  position: absolute;
  width: 30px; height: 30px;
  border-radius: var(--radius-sm);
  background: var(--bg-elevated);
  border: 1px solid var(--border-default);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  color: var(--text-secondary);
  box-shadow: var(--shadow-sm);
}
.radar-demo__device--1 { top: 10px;  right: 20px; color: #A8A5FF; }
.radar-demo__device--2 { bottom: 10px; right: 10px; color: #81C784; }
.radar-demo__device--3 { bottom: 20px; left: 10px; color: #4FC3F7; }

/* Theme visual */
.theme-demo {
  display: flex;
  gap: 12px;
  margin-top: 8px;
}
.theme-demo__dark,
.theme-demo__light {
  flex: 1;
  border-radius: var(--radius-md);
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.theme-demo__dark {
  background: #121214;
  border: 1px solid rgba(255,255,255,0.08);
}
.theme-demo__light {
  background: #e0e5ec;
  border: 1px solid rgba(0,0,0,0.08);
}
.theme-demo__bar {
  height: 8px;
  border-radius: 4px;
  background: var(--gradient-accent);
  width: 60%;
}
.theme-demo__row {
  height: 6px;
  border-radius: 3px;
  background: rgba(128,128,128,0.25);
}
.theme-demo__row--short { width: 70%; }

/* ══════════════════════════════════════════════════════════
   HOW IT WORKS
   ══════════════════════════════════════════════════════════ */
.how-it-works {
  padding: 120px 0;
  background: var(--bg-surface);
  position: relative;
}
.how-it-works::before,
.how-it-works::after {
  content: '';
  position: absolute;
  left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-default), transparent);
}
.how-it-works::before { top: 0; }
.how-it-works::after  { bottom: 0; }

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  position: relative;
}

.step {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0 32px;
}

.step__number {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: var(--accent-mid);
  margin-bottom: 20px;
  font-family: var(--font-mono);
}

.step__icon-wrap {
  width: 64px; height: 64px;
  border-radius: var(--radius-lg);
  background: var(--bg-app);
  border: 1px solid var(--border-default);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}
.step:hover .step__icon-wrap {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md), 0 0 24px var(--accent-glow-sm);
  border-color: var(--accent-mid);
}
.step__icon {
  font-size: 24px;
  color: var(--accent-mid);
}

.step__title {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin-bottom: 10px;
}
.step__desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.65;
}

.step__connector {
  position: absolute;
  top: 88px;
  right: -16px;
  width: 32px;
  height: 2px;
  background: linear-gradient(90deg, var(--border-default), var(--accent-mid));
  z-index: 1;
}
.step__connector::after {
  content: '';
  position: absolute;
  right: -4px;
  top: -3px;
  width: 8px; height: 8px;
  border-top: 2px solid var(--accent-mid);
  border-right: 2px solid var(--accent-mid);
  transform: rotate(45deg);
}

/* ══════════════════════════════════════════════════════════
   PLATFORMS
   ══════════════════════════════════════════════════════════ */
.platforms {
  padding: 120px 0;
}

.platforms__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 32px;
}

.platform-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 28px 20px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), border-color var(--transition-fast);
  position: relative;
  overflow: hidden;
}
.platform-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gradient-hero);
  opacity: 0;
  transition: opacity var(--transition-fast);
}
.platform-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--border-default);
}
.platform-card:hover::before { opacity: 1; }

.platform-card__icon {
  width: 56px; height: 56px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  margin: 0 auto 16px;
  box-shadow: var(--shadow-sm);
}
.platform-card__icon--windows { background: rgba(79,195,247,0.12); color: #4FC3F7; }
.platform-card__icon--macos   { background: rgba(168,165,255,0.12); color: #A8A5FF; }
.platform-card__icon--linux   { background: rgba(129,199,132,0.12); color: #81C784; }
.platform-card__icon--android { background: rgba(52,199,89,0.12);   color: #34c759; }

.platform-card__name {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin-bottom: 8px;
}
.platform-card__desc {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 14px;
}
.platform-card__badge {
  display: inline-block;
  padding: 3px 10px;
  background: var(--bg-app);
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  box-shadow: var(--nm-pressed);
  font-family: var(--font-mono);
}

.platforms__compat {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 24px;
  background: var(--success-subtle);
  border: 1px solid rgba(52,199,89,0.20);
  border-radius: var(--radius-lg);
  max-width: 600px;
  margin: 0 auto 12px;
}
.platforms__compat-icon { color: var(--success); font-size: 18px; flex-shrink: 0; }
.platforms__compat p { font-size: 14px; color: var(--text-secondary); line-height: 1.5; }

.platforms__relay {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px 24px;
  background: var(--accent-50);
  border: 1px solid var(--accent-100);
  border-radius: var(--radius-lg);
  max-width: 600px;
  margin: 0 auto;
}
.platforms__relay-icon { color: var(--accent-mid); font-size: 18px; flex-shrink: 0; margin-top: 1px; }
.platforms__relay-text { font-size: 14px; color: var(--text-secondary); line-height: 1.55; }
.platforms__relay-text strong { color: var(--text-primary); font-weight: 600; }

/* ══════════════════════════════════════════════════════════
   PRIVACY
   ══════════════════════════════════════════════════════════ */
.privacy {
  padding: 120px 0;
  background: var(--bg-surface);
  position: relative;
}
.privacy::before,
.privacy::after {
  content: '';
  position: absolute;
  left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-default), transparent);
}
.privacy::before { top: 0; }
.privacy::after  { bottom: 0; }

.privacy__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.privacy__content .section-header { text-align: left; margin-bottom: 0; }
.privacy__content .section-badge  { margin-bottom: 16px; }
.privacy__content .section-title  { margin-bottom: 16px; }
.privacy__content .section-subtitle { margin: 0 0 28px; max-width: none; }

.privacy__list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.privacy__list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  color: var(--text-secondary);
  font-weight: 500;
}
.privacy__list li i { color: var(--success); font-size: 14px; flex-shrink: 0; }

/* Privacy diagram */
.privacy__visual {
  display: flex;
  align-items: center;
  justify-content: center;
}
.privacy__diagram {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  position: relative;
}

.privacy__node {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 20px 28px;
  background: var(--bg-app);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  min-width: 140px;
}
.privacy__node i { font-size: 28px; color: var(--accent-mid); }
.privacy__node span { font-size: 13px; font-weight: 600; color: var(--text-secondary); }

.privacy__arrow {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.privacy__arrow-line {
  width: 3px;
  height: 48px;
  background: linear-gradient(180deg, var(--accent-mid), var(--accent-bright));
  border-radius: 2px;
  position: relative;
  overflow: hidden;
}
.privacy__arrow-packet {
  position: absolute;
  width: 100%;
  height: 12px;
  background: rgba(255,255,255,0.6);
  border-radius: 2px;
  animation: packetFlow 1.8s ease-in-out infinite;
}
.privacy__arrow-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--accent-text);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-family: var(--font-mono);
}

.privacy__no-cloud {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
}
.privacy__cloud-cross {
  position: relative;
  width: 44px; height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.privacy__cloud-cross i { font-size: 28px; color: var(--text-muted); opacity: 0.4; }
.privacy__cloud-x {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.privacy__cloud-x::before,
.privacy__cloud-x::after {
  content: '';
  position: absolute;
  width: 36px; height: 2.5px;
  background: var(--danger);
  border-radius: 2px;
}
.privacy__cloud-x::before { transform: rotate(45deg); }
.privacy__cloud-x::after  { transform: rotate(-45deg); }
.privacy__no-cloud span {
  font-size: 11px;
  font-weight: 600;
  color: var(--danger-text);
  letter-spacing: 0.04em;
}

/* ══════════════════════════════════════════════════════════
   DOWNLOAD
   ══════════════════════════════════════════════════════════ */
.download {
  padding: 120px 0;
  position: relative;
  overflow: hidden;
}
.download__glow {
  position: absolute;
  width: 600px; height: 400px;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  background: radial-gradient(ellipse, hsla(var(--h), var(--s), 65%, 0.10) 0%, transparent 70%);
  pointer-events: none;
}

.download__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 32px;
  overflow: visible;
}

.download-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 20px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  text-decoration: none;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), border-color var(--transition-fast);
  cursor: pointer;
}
.download-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--accent-mid);
}

.download-card__icon {
  width: 44px; height: 44px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}
.download-card__icon--windows { background: rgba(79,195,247,0.12); color: #4FC3F7; }
.download-card__icon--macos   { background: rgba(168,165,255,0.12); color: #A8A5FF; }
.download-card__icon--linux   { background: rgba(129,199,132,0.12); color: #81C784; }
.download-card__icon--android { background: rgba(52,199,89,0.12);   color: #34c759; }

.download-card__info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.download-card__platform {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}
.download-card__format {
  font-size: 12px;
  color: var(--text-muted);
  font-family: var(--font-mono);
}
.download-card__arrow {
  color: var(--accent-mid);
  font-size: 14px;
  flex-shrink: 0;
  transition: transform var(--transition-fast);
}
.download-card:hover .download-card__arrow { transform: translateY(2px); }

/* macOS wrapper — relative so dropdown positions against it */
.macos-wrap {
  position: relative;
}

/* macOS trigger card — identical height to others, chevron rotates when open */
.download-card--macos-trigger {
  cursor: pointer;
  user-select: none;
  opacity: 1 !important;
  transform: none;
  width: 100%;
}
.download-card--macos-trigger.open {
  border-color: var(--accent-mid);
  box-shadow: var(--shadow-md), 0 0 0 1px var(--accent-mid);
}
.download-card--macos-trigger.open .download-card__chevron {
  transform: rotate(180deg);
  color: var(--accent-mid);
}

/* Floating dropdown — absolute, below the card */
.macos-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%) translateY(-6px);
  width: 280px;
  z-index: 999;
  background: var(--bg-elevated);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg), 0 0 40px hsla(var(--h), var(--s), 65%, 0.15);
  padding: 6px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease, transform 180ms ease;
}
.macos-dropdown.open {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}

/* Small arrow pointer */
.macos-dropdown__arrow {
  position: absolute;
  top: -6px;
  left: 50%;
  transform: translateX(-50%) rotate(45deg);
  width: 11px;
  height: 11px;
  background: var(--bg-elevated);
  border-left: 1px solid var(--border-default);
  border-top: 1px solid var(--border-default);
}

.macos-dropdown__item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: var(--radius-md);
  text-decoration: none;
  transition: background var(--transition-fast);
  color: var(--text-primary);
}
.macos-dropdown__item:hover {
  background: var(--accent-50);
}
.macos-dropdown__item:hover .macos-dropdown__item-dl {
  color: var(--accent-mid);
}

.macos-dropdown__item-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: rgba(168,165,255,0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #A8A5FF;
  font-size: 14px;
  flex-shrink: 0;
}

.macos-dropdown__item-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.macos-dropdown__item-name {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text-primary);
}
.macos-dropdown__item-sub {
  font-size: 11px;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

.macos-dropdown__item-dl {
  font-size: 13px;
  color: var(--text-muted);
  flex-shrink: 0;
  transition: color var(--transition-fast);
}

.macos-dropdown__divider {
  height: 1px;
  background: var(--border-subtle);
  margin: 4px 14px;
}

.download__footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
}
.download__github {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: var(--bg-surface);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-full);
  font-size: 14px;
  font-weight: 600;
  color: var(--text-secondary);
  text-decoration: none;
  transition: all var(--transition-fast);
  box-shadow: var(--shadow-sm);
}
.download__github:hover {
  color: var(--text-primary);
  border-color: var(--border-strong);
  transform: translateY(-2px);
}
.download__github i { font-size: 16px; }
.download__version {
  font-size: 13px;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

/* ══════════════════════════════════════════════════════════
   DEVELOPER
   ══════════════════════════════════════════════════════════ */
.developer {
  padding: 120px 0;
  position: relative;
  overflow: hidden;
  background: var(--bg-surface);
}
.developer::before,
.developer::after {
  content: '';
  position: absolute;
  left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-default), transparent);
}
.developer::before { top: 0; }
.developer::after  { bottom: 0; }

.developer__glow {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(80px);
}
.developer__glow--1 {
  width: 500px; height: 500px;
  top: -100px; right: -100px;
  background: hsla(var(--h), var(--s), 65%, 0.09);
}
.developer__glow--2 {
  width: 300px; height: 300px;
  bottom: -60px; left: -60px;
  background: hsla(calc(var(--h) + 40), var(--s), 65%, 0.06);
}

.developer__inner {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 80px;
  align-items: center;
  position: relative;
  z-index: 1;
}

/* Photo */
.developer__photo-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.developer__photo-ring {
  position: absolute;
  inset: -16px;
  border-radius: 50%;
  border: 1.5px solid var(--accent-mid);
  opacity: 0.25;
  animation: devRingPulse 3s ease-in-out infinite;
}
.developer__photo-ring--2 {
  inset: -32px;
  opacity: 0.12;
  animation-delay: 1s;
}

.developer__photo {
  width: 280px;
  height: 280px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center top;
  border: 3px solid var(--border-default);
  box-shadow:
    0 0 0 6px var(--accent-50),
    var(--shadow-lg),
    0 0 60px hsla(var(--h), var(--s), 65%, 0.18);
  transition: box-shadow var(--transition);
  position: relative;
  z-index: 1;
}
.developer__photo-wrap:hover .developer__photo {
  box-shadow:
    0 0 0 6px var(--accent-100),
    var(--shadow-lg),
    0 0 80px hsla(var(--h), var(--s), 65%, 0.28);
}

.developer__photo-badge {
  position: absolute;
  bottom: 12px;
  right: 12px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--gradient-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 17px;
  box-shadow: 0 4px 18px var(--accent-glow), 0 0 0 3px var(--bg-surface);
  z-index: 2;
  animation: glowPulse 2.5s ease-in-out infinite;
}

/* Content */
.developer__content { display: flex; flex-direction: column; gap: 0; }
.developer__content .section-badge { margin-bottom: 14px; }

.developer__name {
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1.05;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.developer__role {
  font-size: 15px;
  font-weight: 600;
  color: var(--accent-text);
  letter-spacing: 0.01em;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.developer__role::before {
  content: '';
  display: inline-block;
  width: 24px;
  height: 2px;
  background: var(--gradient-accent);
  border-radius: 2px;
  flex-shrink: 0;
}

.developer__bio {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.75;
  margin-bottom: 28px;
  max-width: 520px;
}

.developer__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 32px;
}
.developer__tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  background: var(--bg-app);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  box-shadow: var(--shadow-sm);
  transition: border-color var(--transition-fast), color var(--transition-fast);
}
.developer__tag i { color: var(--accent-mid); font-size: 11px; }
.developer__tag:hover { border-color: var(--accent-mid); color: var(--text-primary); }

.developer__links {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.developer__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 22px;
  height: 44px;
  border-radius: var(--radius-lg);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}
.developer__link--primary {
  background: var(--text-primary);
  color: var(--bg-app);
  box-shadow: 0 4px 18px rgba(0,0,0,0.25);
}
.developer__link--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(0,0,0,0.30);
}
.developer__link--secondary {
  background: var(--bg-app);
  color: var(--text-primary);
  border: 1px solid var(--border-default);
  box-shadow: var(--shadow-sm);
}
.developer__link--secondary:hover {
  transform: translateY(-2px);
  border-color: var(--accent-mid);
  color: var(--accent-text);
  box-shadow: var(--shadow-md);
}

@keyframes devRingPulse {
  0%, 100% { transform: scale(1);    opacity: 0.25; }
  50%       { transform: scale(1.04); opacity: 0.40; }
}

/* ── Developer responsive ───────────────────────────────── */
@media (max-width: 900px) {
  .developer__inner {
    grid-template-columns: 1fr;
    gap: 48px;
    text-align: center;
  }
  .developer__photo-wrap { justify-content: center; }
  .developer__photo      { width: 220px; height: 220px; }
  .developer__content    { align-items: center; }
  .developer__role       { justify-content: center; }
  .developer__bio        { text-align: center; }
  .developer__tags       { justify-content: center; }
  .developer__links      { justify-content: center; }
}

@media (max-width: 480px) {
  .developer            { padding: 80px 0; }
  .developer__photo     { width: 180px; height: 180px; }
  .developer__name      { font-size: 28px; }
  .developer__links     { flex-direction: column; align-items: stretch; }
  .developer__link      { justify-content: center; }
}
.footer {
  padding: 48px 0 32px;
  border-top: 1px solid var(--border-subtle);
  background: var(--bg-surface);
}
.footer__inner {
  display: flex;
  gap: 64px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}
.footer__brand {
  flex: 1;
  min-width: 200px;
}
.footer__tagline {
  font-size: 14px;
  color: var(--text-muted);
  margin-top: 12px;
  line-height: 1.6;
  max-width: 260px;
}
.footer__links {
  display: flex;
  gap: 48px;
  flex-wrap: wrap;
}
.footer__col {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer__col-title {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-tertiary);
  margin-bottom: 4px;
}
.footer__col a {
  font-size: 14px;
  color: var(--text-muted);
  transition: color var(--transition-fast);
}
.footer__col a:hover { color: var(--text-primary); }

.footer__bottom {
  padding-top: 24px;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
}
.footer__copy {
  font-size: 13px;
  color: var(--text-muted);
}
.footer__copy a {
  color: var(--accent-text);
  font-weight: 600;
  transition: color var(--transition-fast);
}
.footer__copy a:hover { color: var(--accent-mid); }

/* ══════════════════════════════════════════════════════════
   ANIMATIONS
   ══════════════════════════════════════════════════════════ */
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.6; transform: scale(0.9); }
}

@keyframes radarRing {
  0%   { transform: scale(0.3); opacity: 0.8; }
  100% { transform: scale(1);   opacity: 0; }
}

@keyframes glowPulse {
  0%, 100% { box-shadow: 0 0 20px var(--accent-glow); }
  50%       { box-shadow: 0 0 36px var(--accent-glow), 0 0 60px var(--accent-glow-sm); }
}

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

@keyframes progressShimmer {
  0%   { filter: brightness(1); }
  50%  { filter: brightness(1.2); }
  100% { filter: brightness(1); }
}

@keyframes packetFlow {
  0%   { top: -12px; opacity: 0; }
  20%  { opacity: 1; }
  80%  { opacity: 1; }
  100% { top: 100%; opacity: 0; }
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Scroll-triggered reveal */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* ══════════════════════════════════════════════════════════
   RESPONSIVE — Full mobile support
   ══════════════════════════════════════════════════════════ */

/* ── 1024px — Tablet landscape ─────────────────────────── */
@media (max-width: 1024px) {
  .features__grid          { grid-template-columns: repeat(2, 1fr); }
  .feature-card--large     { grid-column: span 2; }
  .platforms__grid         { grid-template-columns: repeat(2, 1fr); }
  .download__grid          { grid-template-columns: repeat(2, 1fr); }

  .privacy__inner          { grid-template-columns: 1fr; gap: 48px; }
  .privacy__visual         { order: -1; }
  .privacy__diagram        { flex-direction: row; flex-wrap: wrap; justify-content: center; gap: 12px; }

  .hero__stat              { padding: 0 18px; }
}

/* ── 768px — Tablet portrait / large phone ──────────────── */
@media (max-width: 768px) {
  /* Nav */
  .nav__links                    { display: none; }
  .nav__actions .btn--primary    { display: none; }
  .nav__hamburger                { display: flex; }
  .nav__inner                    { gap: 0; }
  /* Section spacing */
  .features,
  .how-it-works,
  .platforms,
  .privacy,
  .download        { padding: 80px 0; }
  .section-header  { margin-bottom: 44px; }
  .section-subtitle { font-size: 15px; }

  /* Hero */
  .hero            { padding-top: 96px; min-height: auto; }
  .hero__title     { font-size: clamp(32px, 8vw, 52px); }
  .hero__subtitle  { font-size: 15px; margin-bottom: 32px; }
  .hero__actions   { gap: 10px; margin-bottom: 40px; }
  .hero__stats     {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    padding: 0;
    border-radius: var(--radius-lg);
    overflow: hidden;
    width: 100%;
  }
  .hero__stat {
    padding: 16px 12px;
    border: 1px solid var(--border-subtle);
    border-radius: 0;
  }
  .hero__stat:nth-child(1) { border-radius: var(--radius-md) 0 0 0; }
  .hero__stat:nth-child(3) { border-radius: 0 var(--radius-md) 0 0; }
  .hero__stat:nth-child(5) { border-radius: 0 0 0 var(--radius-md); }
  .hero__stat:nth-child(7) { border-radius: 0 0 var(--radius-md) 0; }
  .hero__stat-divider      { display: none; }
  .hero__stat-value        { font-size: 17px; }

  /* Mockup */
  .hero__mockup-wrap       { margin-top: 48px; }
  .hero__mockup            { animation: none; }
  .mockup-window           { transform: none; border-radius: var(--radius-md); }
  .mockup-window__body     { height: 260px; }
  .mockup-sidebar          { display: none; }
  .mockup-devices          { gap: 8px; }
  .mockup-device           { min-width: 60px; padding: 10px 8px; }
  .mockup-device__avatar   { width: 32px; height: 32px; font-size: 13px; }

  /* Features */
  .features__grid          { grid-template-columns: 1fr; gap: 12px; }
  .feature-card--large     { grid-column: span 1; }
  .feature-card            { padding: 22px; }
  .feature-card__visual    { display: none; }

  /* Steps */
  .steps                   { grid-template-columns: 1fr; gap: 32px; }
  .step                    { padding: 0 16px; }
  .step__connector         { display: none; }
  .step__content           { display: flex; flex-direction: column; align-items: center; }

  /* Platforms */
  .platforms__grid         { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .platform-card           { padding: 22px 16px; }
  .platforms__relay        { flex-direction: column; text-align: center; align-items: center; }

  /* Privacy */
  .privacy__inner          { gap: 36px; }
  .privacy__content        { text-align: center; }
  .privacy__content .section-header { text-align: center; }
  .privacy__content .section-subtitle { margin: 0 auto 28px; }
  .privacy__list           { align-items: center; }
  .privacy__diagram        { flex-direction: row; flex-wrap: wrap; justify-content: center; gap: 8px; }
  .privacy__node           { min-width: 110px; padding: 14px 16px; }
  .privacy__node i         { font-size: 22px; }

  /* Download */
  .download__grid          { grid-template-columns: 1fr; gap: 10px; }
  .macos-dropdown          { width: calc(100vw - 48px); left: 50%; transform: translateX(-50%) translateY(-6px); }
  .macos-dropdown.open     { transform: translateX(-50%) translateY(0); }

  /* Footer */
  .footer                  { padding: 40px 0 24px; }
  .footer__inner           { flex-direction: column; gap: 28px; margin-bottom: 28px; align-items: center; text-align: center; }
  .footer__brand           { display: flex; flex-direction: column; align-items: center; }
  .footer__tagline         { max-width: 100%; text-align: center; }
  .footer__links           { justify-content: center; gap: 28px; }
  .footer__col             { align-items: center; }
}

/* ── 480px — Small phones ───────────────────────────────── */
@media (max-width: 480px) {
  .container               { padding: 0 16px; }

  /* Nav */
  .nav__inner              { padding: 0 16px; }
  .nav__mobile             { padding: 10px 16px 16px; }

  /* Hero */
  .hero                    { padding-top: 88px; }
  .hero__title             { font-size: clamp(28px, 9vw, 40px); letter-spacing: -0.03em; }
  .hero__subtitle          { font-size: 14px; }
  .hero__actions           { flex-direction: column; align-items: stretch; }
  .hero__actions .btn      { justify-content: center; width: 100%; }
  .hero__stats             { grid-template-columns: 1fr 1fr; }

  /* Mockup — simplified on very small screens */
  .mockup-window__body     { height: 220px; }
  .mockup-devices          { gap: 6px; }
  .mockup-device           { min-width: 52px; }
  .mockup-device__name     { display: none; }
  .mockup-dropzone span    { display: none; }
  .mockup-transfer__pct    { display: none; }

  /* Features */
  .feature-card            { padding: 18px; }
  .feature-card__title     { font-size: 16px; }

  /* Steps */
  .step                    { padding: 0; }
  .step__icon-wrap         { width: 52px; height: 52px; }
  .step__icon              { font-size: 20px; }
  .step__title             { font-size: 16px; }

  /* Platforms */
  .platforms__grid         { grid-template-columns: 1fr 1fr; gap: 10px; }
  .platform-card           { padding: 18px 12px; }
  .platform-card__icon     { width: 44px; height: 44px; font-size: 20px; }
  .platform-card__name     { font-size: 15px; }
  .platform-card__desc     { font-size: 12px; }

  /* Privacy */
  .privacy__node           { min-width: 90px; padding: 12px; }
  .privacy__list li        { font-size: 14px; }

  /* Download */
  .download-card           { padding: 14px 16px; gap: 12px; }
  .download-card__icon     { width: 38px; height: 38px; font-size: 17px; }
  .download-card__platform { font-size: 14px; }
  .download-card__format   { font-size: 11px; }
  .macos-dropdown          { width: calc(100vw - 32px); }

  /* Section text */
  .section-title           { font-size: clamp(24px, 7vw, 32px); }
  .section-subtitle        { font-size: 14px; }
  .section-header          { margin-bottom: 32px; }

  /* Footer */
  .footer__links           { flex-direction: column; gap: 20px; align-items: center; }
  .footer__col             { align-items: center; gap: 8px; }
}

/* ── 360px — Very small phones ──────────────────────────── */
@media (max-width: 360px) {
  .hero__title             { font-size: 26px; }
  .platforms__grid         { grid-template-columns: 1fr; }
  .hero__stats             { grid-template-columns: 1fr 1fr; }
  .mockup-window__body     { height: 190px; }
}

/* ── Touch devices — remove hover effects that feel wrong ── */
@media (hover: none) {
  .feature-card:hover,
  .platform-card:hover,
  .download-card:hover,
  .step:hover .step__icon-wrap {
    transform: none;
    box-shadow: var(--shadow-sm);
    border-color: var(--border-subtle);
  }
  .btn--primary:hover  { transform: none; }
  .btn--secondary:hover { transform: none; }
  .download__github:hover { transform: none; }
}
