/* ===========================================================
   TuPhim Distribution — main.css
   Mobile-first, polished, dark premium design
   =========================================================== */

/* ── FONTS ── */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');

/* ── VARIABLES ── */
:root {
  --bg: #080b14;
  --bg-2: #0d1120;
  --bg-card: rgba(15, 20, 38, 0.85);
  --glass-border: rgba(255, 255, 255, 0.07);
  --text: #f1f5f9;
  --text-secondary: #9ca3b0;
  --text-muted: #5a6270;

  --accent-blue: #4f8ef7;
  --accent-purple: #8b5cf6;
  --accent-green: #10b981;
  --accent-cyan: #22d3ee;
  --accent-orange: #f59e0b;

  --grad-main: linear-gradient(135deg, #4f8ef7 0%, #8b5cf6 100%);
  --grad-ios: linear-gradient(135deg, #4f8ef7 0%, #22d3ee 100%);
  --grad-and: linear-gradient(135deg, #10b981 0%, #22d3ee 100%);
  --grad-win: linear-gradient(135deg, #4f8ef7 0%, #3b82f6 100%);

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-xl: 24px;

  --transition: all .22s cubic-bezier(.4, 0, .2, 1);
}

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

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

body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img {
  display: block;
  max-width: 100%;
}

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

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

svg {
  flex-shrink: 0;
}

/* ── BACKGROUND SCENE ── */
.bg-scene {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 80% 60% at 20% 10%, rgba(79, 142, 247, 0.10) 0%, transparent 60%),
    radial-gradient(ellipse 60% 50% at 80% 85%, rgba(139, 92, 246, 0.10) 0%, transparent 60%),
    radial-gradient(ellipse 50% 40% at 50% 50%, rgba(34, 211, 238, 0.04) 0%, transparent 70%);
}

.bg-grid {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: .35;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 48px 48px;
}

/* ── NAVBAR ── */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 0 24px;
  height: 62px;
  background: rgba(8, 11, 20, 0.8);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--glass-border);
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 17px;
  letter-spacing: -.3px;
}

.navbar-brand img {
  height: 30px;
  width: 30px;
  border-radius: 8px;
  object-fit: cover;
}

.navbar-links {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}

.navbar-links a {
  padding: 7px 14px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  transition: var(--transition);
}

.navbar-links a:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
}

.navbar-cta {
  margin-left: 8px;
  display: flex;
  align-items: center;
  gap: 7px;
}

.mobile-menu-btn {
  display: none;
  padding: 8px;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
}

/* Mobile Menu */
.mobile-menu {
  display: none;
  flex-direction: column;
  position: fixed;
  top: 62px;
  left: 0;
  right: 0;
  z-index: 99;
  background: rgba(8, 11, 20, 0.97);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--glass-border);
  padding: 12px 0;
}

.mobile-menu.open {
  display: flex;
}

.mobile-menu a {
  padding: 14px 24px;
  font-size: 15px;
  font-weight: 500;
  color: var(--text-secondary);
  transition: var(--transition);
}

.mobile-menu a:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
}

/* ── HERO ── */
.hero {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 140px 24px 60px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 16px;
  border-radius: 9999px;
  background: rgba(79, 142, 247, 0.1);
  border: 1px solid rgba(79, 142, 247, 0.25);
  font-size: 13px;
  font-weight: 600;
  color: var(--accent-blue);
  margin-bottom: 28px;
}

.hero-badge .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-blue);
  box-shadow: 0 0 6px var(--accent-blue);
  animation: pulse 2s infinite;
}

.hero-app-icon {
  width: 88px;
  height: 88px;
  border-radius: 22px;
  overflow: hidden;
  margin-bottom: 28px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08), 0 8px 32px rgba(0, 0, 0, 0.5);
}

.hero-app-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-title {
  font-size: clamp(2.2rem, 6vw, 4rem);
  font-weight: 900;
  letter-spacing: -.04em;
  line-height: 1.12;
  margin-bottom: 20px;
}

.hero-title .grad {
  background: var(--grad-main);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-sub {
  max-width: 540px;
  font-size: clamp(15px, 2vw, 17px);
  color: var(--text-secondary);
  margin-bottom: 20px;
  line-height: 1.7;
}

.hero-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 32px;
}

.hero-meta span {
  display: flex;
  align-items: center;
  gap: 5px;
}

.hero-meta .sep {
  opacity: .4;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-bottom: 36px;
}

.hero-platforms {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
}

.platform-pill {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--glass-border);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
}

/* ── STATS ── */
.stats-wrap {
  position: relative;
  z-index: 1;
  padding: 0 24px 80px;
  max-width: 760px;
  margin: 0 auto;
}

.stats-bar {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  background: rgba(15, 20, 38, 0.7);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  backdrop-filter: blur(12px);
  overflow: hidden;
}

.stat-item {
  padding: 28px 20px;
  text-align: center;
  border-right: 1px solid var(--glass-border);
}

.stat-item:last-child {
  border-right: none;
}

.stat-value {
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  font-weight: 900;
  letter-spacing: -.04em;
  line-height: 1;
  margin-bottom: 6px;
}

.stat-value.blue {
  background: var(--grad-ios);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.stat-value.green {
  background: var(--grad-and);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.stat-value.purple {
  background: var(--grad-main);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.stat-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* ── SECTIONS ── */
.section {
  position: relative;
  z-index: 1;
  padding: 40px 24px 80px;
  max-width: 1100px;
  margin: 0 auto;
}

.section-header {
  text-align: center;
  margin-bottom: 48px;
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 14px;
  border-radius: 9999px;
  background: rgba(79, 142, 247, 0.08);
  border: 1px solid rgba(79, 142, 247, 0.2);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--accent-blue);
  margin-bottom: 16px;
}

.section-title {
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-weight: 900;
  letter-spacing: -.03em;
  margin-bottom: 12px;
}

.section-sub {
  font-size: 15px;
  color: var(--text-secondary);
  max-width: 480px;
  margin: 0 auto;
}

/* ── PLATFORMS GRID ── */
.platforms-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.platform-card {
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: var(--transition);
  backdrop-filter: blur(8px);
}

.platform-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}

.platform-card.ios:hover {
  border-color: rgba(79, 142, 247, 0.35);
}

.platform-card.android:hover {
  border-color: rgba(16, 185, 129, 0.35);
}

.platform-card.windows:hover {
  border-color: rgba(79, 142, 247, 0.25);
}

.platform-card-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.platform-card-icon.ios {
  background: rgb(79, 142, 247, 0.12);
  color: var(--accent-blue);
}

.platform-card-icon.android {
  background: rgb(16, 185, 129, 0.12);
  color: var(--accent-green);
}

.platform-card-icon.windows {
  background: rgb(79, 142, 247, 0.10);
  color: var(--accent-blue);
}

.platform-card-name {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -.02em;
}

.platform-card-desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
  flex: 1;
}

.platform-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.ptag {
  padding: 3px 10px;
  border-radius: 9999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .05em;
}

.ptag-blue {
  background: rgba(79, 142, 247, 0.12);
  color: var(--accent-blue);
  border: 1px solid rgba(79, 142, 247, 0.2);
}

.ptag-green {
  background: rgba(16, 185, 129, 0.12);
  color: var(--accent-green);
  border: 1px solid rgba(16, 185, 129, 0.2);
}

.ptag-cyan {
  background: rgba(34, 211, 238, 0.10);
  color: var(--accent-cyan);
  border: 1px solid rgba(34, 211, 238, 0.2);
}

.ptag-purple {
  background: rgba(139, 92, 246, 0.12);
  color: var(--accent-purple);
  border: 1px solid rgba(139, 92, 246, 0.2);
}

/* ── FEATURES GRID ── */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 24px;
  transition: var(--transition);
  backdrop-filter: blur(8px);
}

.feature-card:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 255, 255, 0.12);
}

.feature-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}

.feature-title {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 6px;
}

.feature-desc {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.65;
}

/* ── FAQ ── */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: 720px;
  margin: 0 auto;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: var(--transition);
}

.faq-item.open {
  border-color: rgba(79, 142, 247, 0.25);
}

.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  gap: 16px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  text-align: left;
  transition: var(--transition);
}

.faq-q:hover {
  background: rgba(255, 255, 255, 0.03);
}

.faq-icon {
  font-size: 20px;
  font-weight: 300;
  color: var(--text-muted);
  transition: transform .25s;
  flex-shrink: 0;
}

.faq-item.open .faq-icon {
  transform: rotate(45deg);
  color: var(--accent-blue);
}

.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height .3s ease, padding .3s;
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
  padding: 0 20px;
}

.faq-item.open .faq-a {
  max-height: 200px;
  padding: 0 20px 18px;
}

/* ── FOOTER ── */
footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--glass-border);
  padding: 40px 24px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 16px;
}

footer p {
  font-size: 13px;
  color: var(--text-muted);
}

.footer-links {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  justify-content: center;
}

.footer-links a {
  font-size: 13px;
  color: var(--text-muted);
  transition: var(--transition);
}

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

/* ── BUTTONS ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 22px;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -.01em;
  transition: var(--transition);
  cursor: pointer;
  border: none;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}

.btn:active {
  transform: scale(0.97);
}

.btn-sm {
  padding: 8px 16px;
  font-size: 13px;
  border-radius: var(--radius-sm);
}

.btn-lg {
  padding: 14px 28px;
  font-size: 15px;
  border-radius: var(--radius-lg);
}

.btn-full {
  width: 100%;
}

.btn-primary {
  background: var(--grad-main);
  color: #fff;
  box-shadow: 0 0 24px rgba(79, 142, 247, 0.25);
}

.btn-primary:hover {
  box-shadow: 0 0 32px rgba(79, 142, 247, 0.45);
  filter: brightness(1.08);
}

.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--glass-border);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.15);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-secondary);
  border: 1px solid var(--glass-border);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.09);
  color: var(--text);
}

.btn-ios {
  background: linear-gradient(135deg, #1a73e8, #0ea5e9);
  color: #fff;
  box-shadow: 0 4px 20px rgba(26, 115, 232, 0.3);
}

.btn-ios:hover {
  box-shadow: 0 6px 28px rgba(26, 115, 232, 0.5);
  filter: brightness(1.08);
}

.btn-android {
  background: linear-gradient(135deg, #10b981, #22d3ee);
  color: #fff;
  box-shadow: 0 4px 20px rgba(16, 185, 129, 0.3);
}

.btn-android:hover {
  box-shadow: 0 6px 28px rgba(16, 185, 129, 0.5);
  filter: brightness(1.08);
}

.btn-windows {
  background: linear-gradient(135deg, #2563eb, #3b82f6);
  color: #fff;
  box-shadow: 0 4px 20px rgba(37, 99, 235, 0.3);
}

.btn-windows:hover {
  box-shadow: 0 6px 28px rgba(37, 99, 235, 0.5);
  filter: brightness(1.08);
}

/* ── MODALS ── */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(4, 6, 14, 0.75);
  backdrop-filter: blur(8px);
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-overlay.active {
  display: flex;
}

.modal {
  background: #0d1120;
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  padding: 32px 28px;
  width: 100%;
  max-width: 460px;
  max-height: 90svh;
  overflow-y: auto;
  position: relative;
  animation: modalIn .22s cubic-bezier(.34, 1.56, .64, 1);
}

.modal-sm {
  max-width: 380px;
}

@keyframes modalIn {
  from {
    opacity: 0;
    transform: scale(0.93) translateY(16px);
  }

  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.07);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.modal-close:hover {
  background: rgba(255, 255, 255, 0.14);
  color: var(--text);
}

.modal-icon-wrap {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: var(--grad-main);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}

.modal-title {
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 6px;
}

.modal-sub {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 20px;
}

/* Platform select buttons */
.platform-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.platform-select-btn {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border-radius: var(--radius-md);
  border: 1px solid var(--glass-border);
  background: rgba(255, 255, 255, 0.03);
  text-align: left;
  transition: var(--transition);
  color: var(--text);
}

.platform-select-btn:hover {
  background: rgba(255, 255, 255, 0.07);
}

.psb-icon {
  width: 42px;
  height: 42px;
  border-radius: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.psb-ios .psb-icon {
  background: rgba(79, 142, 247, 0.12);
  color: var(--accent-blue);
}

.psb-android .psb-icon {
  background: rgba(16, 185, 129, 0.12);
  color: var(--accent-green);
}

.psb-windows .psb-icon {
  background: rgba(79, 142, 247, 0.08);
  color: var(--accent-blue);
}

.psb-info {
  flex: 1;
}

.psb-name {
  font-size: 14px;
  font-weight: 700;
}

.psb-sub {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 1px;
}

.platform-select-btn>svg:last-child {
  color: var(--text-muted);
}

/* Download modal */
.dl-modal-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--glass-border);
}

.dl-modal-platform-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.dl-modal-platform-icon.ios {
  background: rgba(79, 142, 247, 0.15);
  color: var(--accent-blue);
}

.dl-modal-platform-icon.android {
  background: rgba(16, 185, 129, 0.15);
  color: var(--accent-green);
}

.dl-modal-title {
  font-size: 18px;
  font-weight: 800;
}

.dl-modal-version {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 2px;
}

.dl-steps {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 20px;
}

.dl-step {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 14px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--glass-border);
}

.dl-step-num {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  flex-shrink: 0;
  background: var(--grad-main);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 800;
  margin-top: 1px;
}

.dl-step-title {
  font-size: 13px;
  font-weight: 700;
}

.dl-step-desc {
  font-size: 12px;
  color: var(--text-secondary);
  margin-top: 2px;
}

.dl-info-box {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  border-radius: var(--radius-md);
  margin-bottom: 20px;
  background: rgba(245, 158, 11, 0.07);
  border: 1px solid rgba(245, 158, 11, 0.2);
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.6;
}

.dl-info-box svg {
  color: var(--accent-orange);
  margin-top: 2px;
  flex-shrink: 0;
}

.dl-info-box.green {
  background: rgba(16, 185, 129, 0.07);
  border-color: rgba(16, 185, 129, 0.2);
}

.dl-info-box.green svg {
  color: var(--accent-green);
}

.dl-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.dl-divider {
  text-align: center;
  font-size: 12px;
  color: var(--text-muted);
  position: relative;
}

.dl-divider::before,
.dl-divider::after {
  content: '';
  position: absolute;
  top: 50%;
  width: calc(50% - 24px);
  height: 1px;
  background: var(--glass-border);
}

.dl-divider::before {
  left: 0;
}

.dl-divider::after {
  right: 0;
}

/* ── TOAST ── */
.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 500;
  background: #101828;
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  padding: 14px 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--text);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.5);
  transform: translateY(100px);
  opacity: 0;
  transition: transform .35s cubic-bezier(.4, 0, .2, 1), opacity .35s;
  pointer-events: none;
  min-width: 240px;
}

.toast.show {
  transform: translateY(0);
  opacity: 1;
}

/* ── ANIMATIONS ── */
@keyframes pulse {

  0%,
  100% {
    box-shadow: 0 0 6px var(--accent-blue);
  }

  50% {
    box-shadow: 0 0 12px var(--accent-blue);
  }
}

/* ============================================================
   RESPONSIVE — TABLET (≤768px)
   ============================================================ */
@media (max-width: 900px) {
  .navbar-links {
    display: none;
  }

  .mobile-menu-btn {
    display: flex;
    margin-left: auto;
  }

  .navbar-cta {
    display: none;
  }

  .platforms-grid {
    grid-template-columns: 1fr;
    max-width: 460px;
    margin: 0 auto;
  }

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

/* ============================================================
   RESPONSIVE — MOBILE (≤540px)
   ============================================================ */
@media (max-width: 540px) {
  .navbar {
    padding: 0 16px;
  }

  .hero {
    padding: 120px 16px 48px;
    min-height: unset;
  }

  .hero-app-icon {
    width: 72px;
    height: 72px;
    border-radius: 18px;
  }

  .hero-title {
    font-size: 2rem;
  }

  .hero-actions .btn-lg {
    padding: 13px 22px;
    font-size: 14px;
  }

  .stats-wrap {
    padding: 0 16px 60px;
  }

  .stats-bar {
    border-radius: var(--radius-lg);
  }

  .stat-item {
    padding: 20px 12px;
  }

  .stat-value {
    font-size: 1.5rem;
  }

  .stat-label {
    font-size: 10px;
  }

  .section {
    padding: 32px 16px 60px;
  }

  .section-title {
    font-size: 1.6rem;
  }

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

  .modal {
    padding: 24px 18px;
  }

  .dl-modal-title {
    font-size: 16px;
  }

  .hero-platforms {
    gap: 6px;
  }

  .platform-pill {
    font-size: 12px;
    padding: 5px 11px;
  }

  footer {
    padding: 32px 16px;
  }

  .footer-links {
    gap: 16px;
  }
}

/* ============================================================
   RESPONSIVE — PLATFORMS MID (≤680px)
   ============================================================ */
@media (max-width: 680px) {
  .platforms-grid {
    grid-template-columns: 1fr;
    max-width: 100%;
  }

  .platform-card {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 10px;
  }

  .platform-card-icon {
    width: 44px;
    height: 44px;
  }

  .platform-card-name {
    font-size: 16px;
  }

  .platform-card>.btn-full {
    order: 99;
  }
}

/* ============================================================
   SCROLL REVEAL ANIMATIONS
   ============================================================ */

/* Initial hidden state */
.reveal-item {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity .55s cubic-bezier(.4, 0, .2, 1),
    transform .55s cubic-bezier(.4, 0, .2, 1);
}

/* Revealed state (JS adds this) */
.reveal-item.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Hero elements — slide up on load */
.hero-badge {
  animation: heroFadeUp .6s .1s both ease;
}

.hero-app-icon {
  animation: heroFadeUp .6s .2s both ease;
}

.hero-title {
  animation: heroFadeUp .7s .25s both ease;
}

.hero-sub {
  animation: heroFadeUp .6s .35s both ease;
}

.hero-meta {
  animation: heroFadeUp .6s .4s both ease;
}

.hero-actions {
  animation: heroFadeUp .6s .45s both ease;
}

.hero-platforms {
  animation: heroFadeUp .6s .5s both ease;
}

@keyframes heroFadeUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Navbar scrolled state */
.navbar.scrolled {
  background: rgba(6, 8, 20, 0.96);
  backdrop-filter: blur(24px);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06), 0 8px 32px rgba(0, 0, 0, 0.3);
}

/* Platform card hover — slightly more expressive */
.platform-card {
  transform: translateY(0);
  transition: transform .3s cubic-bezier(.34, 1.56, .64, 1), box-shadow .3s ease, border-color .3s ease;
}

.platform-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.4);
}

/* Feature card pop on hover */
.feature-card {
  transition: transform .3s cubic-bezier(.34, 1.56, .64, 1), border-color .3s ease;
}

.feature-card:hover {
  transform: translateY(-4px) scale(1.01);
}

/* Stats number pop */
.stat-value {
  transition: color .3s;
}