/* ── Index-specific variable overrides ── */
:root {
  --accent: #5856D6;
  --accent-2: #5AC8FA;
  --danger: #FF3B30;
  --radius-card: 20px;
  --radius-btn: 980px;
  --max-w: 1100px;
}

body { overflow-x: hidden; }

/* ── Nav (fixed for index) ── */
nav {
  position: fixed;
  left: 0;
  right: 0;
  background: rgba(0,0,0,0.7);
}

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

/* ── Language selector ── */
.lang-select {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.22);
  color: var(--text-primary);
  font-family: var(--font);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 5px 26px 5px 9px;
  border-radius: 6px;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%238E8E93' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 7px center;
  transition: border-color 0.18s;
}
.lang-select:hover { border-color: rgba(255,255,255,0.45); }
.lang-select:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.lang-select option { background: #1A1A1A; color: #fff; }

[data-theme="light"] .lang-select {
  border-color: rgba(0,0,0,0.2);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%236E6E73' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
[data-theme="light"] .lang-select:hover { border-color: rgba(0,0,0,0.4); }
[data-theme="light"] .lang-select option { background: #fff; color: #1D1D1F; }

/* ── Light mode nav overrides ── */
[data-theme="light"] .btn-ghost {
  color: var(--text-primary);
  border-color: rgba(0,0,0,0.2);
}
[data-theme="light"] .btn-ghost:hover { border-color: rgba(0,0,0,0.4); }
[data-theme="light"] .btn-outline-white {
  color: var(--accent);
  border-color: rgba(88,86,214,0.4);
}
[data-theme="light"] .btn-outline-white:hover { border-color: rgba(88,86,214,0.7); }

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius-btn);
  font-family: var(--font);
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: opacity 0.18s ease, transform 0.18s ease;
  border: none;
}
.btn:hover { opacity: 0.88; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);
  color: #fff;
}
.btn-ghost {
  background: transparent;
  color: var(--text-primary);
  border: 1.5px solid rgba(255,255,255,0.25);
}
.btn-ghost:hover { border-color: rgba(255,255,255,0.5); }
.btn-outline-white {
  background: transparent;
  color: #fff;
  border: 1.5px solid rgba(255,255,255,0.5);
  font-size: 14px;
  padding: 10px 20px;
}
.btn-warm {
  background: linear-gradient(135deg, #FF9500 0%, #FF6B00 100%);
  color: #fff;
}
.btn-full { width: 100%; justify-content: center; }
.btn-cta-lg { font-size: 17px; padding: 16px 36px; }

@media (max-width: 768px) { .nav-cta { display: none; } }

/* ── Official App Store badge ── */
.appstore-badge-link { display: inline-block; transition: opacity 0.18s ease; }
.appstore-badge-link:hover { opacity: 0.82; }
.appstore-badge-img { height: 44px; display: block; }

/* ── Scroll reveal ── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.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; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ── Layout ── */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }
.label {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-secondary);
  opacity: 0.8;
}

/* ── Divider ── */
.divider-glow {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(88,86,214,0.3), transparent);
}

/* ── Section commons ── */
section { padding: 120px 0; }
@media (max-width: 768px) { section { padding: 80px 0; } }
.section-title {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 700;
  letter-spacing: -0.03em;
  text-align: center;
  margin-bottom: 16px;
}
.section-sub {
  text-align: center;
  color: var(--text-secondary);
  font-size: 18px;
  margin-bottom: 56px;
}

/* ── Hero ── */
#hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 140px 24px 80px;
  position: relative;
  overflow: hidden;
}
.hero-glow {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -60%);
  width: 800px; height: 800px;
  background: radial-gradient(circle, rgba(88,86,214,0.06) 0%, transparent 70%);
  pointer-events: none;
}
.hero-content { position: relative; z-index: 1; max-width: 800px; }
.hero-eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  opacity: 0.9;
  margin-bottom: 24px;
  padding: 6px 14px;
  border: 1px solid rgba(88,86,214,0.3);
  border-radius: 980px;
}
.hero-h1 {
  font-size: clamp(40px, 7vw, 72px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.08;
  margin-bottom: 24px;
}
.hero-sub {
  font-size: clamp(17px, 2vw, 20px);
  color: var(--text-secondary);
  max-width: 520px;
  margin: 0 auto 40px;
  line-height: 1.55;
}
.hero-ctas {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

/* ── Modes strip ── */
#modes { overflow: hidden; }
.modes-scroll-wrapper {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: 8px 24px 24px;
}
.modes-scroll-wrapper::-webkit-scrollbar { display: none; }
.modes-track {
  display: flex;
  gap: 14px;
  width: max-content;
  margin: 0 auto;
}
.mode-card {
  width: 180px;
  flex-shrink: 0;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px 16px;
  text-align: center;
  position: relative;
  transition: transform 0.2s ease;
}
.mode-card:hover { transform: translateY(-3px); }
.mode-card.pro { box-shadow: 0 0 0 1px rgba(88,86,214,0.4); border-color: rgba(88,86,214,0.3); }
.mode-icon { font-size: 28px; margin-bottom: 12px; }
.mode-name { font-size: 15px; font-weight: 700; margin-bottom: 6px; letter-spacing: -0.01em; }
.mode-desc { font-size: 12px; color: var(--text-secondary); line-height: 1.4; }
.pro-badge {
  position: absolute;
  top: 10px; right: 10px;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
  padding: 3px 7px;
  border-radius: 980px;
}

/* ── Feature highlights ── */
.feature-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  margin-bottom: 100px;
}
.feature-block:last-child { margin-bottom: 0; }
.feature-block.reverse .feature-text { order: 2; }
.feature-block.reverse .feature-visual { order: 1; }
@media (max-width: 768px) {
  .feature-block { grid-template-columns: 1fr; gap: 40px; margin-bottom: 72px; }
  .feature-block.reverse .feature-text { order: 1; }
  .feature-block.reverse .feature-visual { order: 2; }
}
.feature-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  opacity: 0.85;
  margin-bottom: 14px;
}
.feature-h3 {
  font-size: clamp(26px, 3.5vw, 36px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.12;
  margin-bottom: 18px;
}
.feature-body {
  color: var(--text-secondary);
  font-size: 17px;
  line-height: 1.65;
  margin-bottom: 24px;
}
.feature-link {
  font-size: 15px;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: gap 0.18s ease;
}
.feature-link:hover { gap: 8px; }
.feature-visual {
  height: 340px;
  border-radius: var(--radius-card);
  background: var(--surface-2);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}
.feature-visual.no-bg { background: none; border: none; }

/* Visual 1 – MacBook */
.macbook-img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }

/* Visual 2 – iPhone */
.iphone-img { height: 100%; width: auto; object-fit: contain; }

/* Visual 3 – Watch */
.watch-img { height: 280px; width: auto; object-fit: contain; }

/* ── Platform strip ── */
#platforms { background: var(--surface-1); }
.platform-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
@media (max-width: 768px) { .platform-grid { grid-template-columns: repeat(1, 1fr); } }
.platform-card {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 32px 24px;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.platform-card:hover { border-color: rgba(255,255,255,0.18); transform: translateY(-2px); }
.platform-icon { font-size: 32px; margin-bottom: 16px; }
.platform-name { font-size: 17px; font-weight: 700; margin-bottom: 8px; letter-spacing: -0.01em; }
.platform-desc { font-size: 14px; color: var(--text-secondary); line-height: 1.5; }

/* ── Pricing ── */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  align-items: start;
}
@media (max-width: 768px) { .pricing-grid { grid-template-columns: 1fr; max-width: 380px; margin: 0 auto; } }
.pricing-card {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 36px 28px;
  position: relative;
}
.pricing-card.highlighted {
  border-color: rgba(88,86,214,0.35);
  box-shadow: 0 0 0 1px rgba(88,86,214,0.15);
}
.pricing-card.lifetime {
  border-color: transparent;
  background: linear-gradient(var(--surface-2), var(--surface-2)) padding-box,
              linear-gradient(135deg, rgba(255,149,0,0.6), rgba(255,214,10,0.4)) border-box;
  border: 1.5px solid transparent;
}
.pricing-badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 980px;
  margin-bottom: 20px;
}
.pricing-badge.blue { background: rgba(88,86,214,0.15); color: var(--accent); }
.pricing-badge.gold { background: rgba(255,149,0,0.15); color: #FF9500; }
.pricing-tier { font-size: 13px; font-weight: 600; color: var(--text-secondary); letter-spacing: 0.04em; margin-bottom: 10px; }
.pricing-price {
  font-size: 44px; font-weight: 700;
  letter-spacing: -0.04em; line-height: 1;
  margin-bottom: 6px;
}
.pricing-period { font-size: 13px; color: var(--text-secondary); margin-bottom: 28px; }
.pricing-features { list-style: none; margin-bottom: 28px; display: flex; flex-direction: column; gap: 12px; }
.pricing-features li {
  font-size: 14px; color: var(--text-secondary);
  display: flex; align-items: center; gap: 10px;
}
.pricing-features li::before { content: '✓'; color: #30D158; font-weight: 700; font-size: 13px; flex-shrink: 0; }
.pricing-note {
  text-align: center;
  font-size: 13px;
  color: var(--text-secondary);
  margin-top: 32px;
  line-height: 1.55;
}

/* ── Final CTA ── */
#cta { text-align: center; position: relative; overflow: hidden; }
.cta-glow {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 700px; height: 400px;
  background: radial-gradient(ellipse, rgba(88,86,214,0.08) 0%, transparent 70%);
  pointer-events: none;
}
.cta-content { position: relative; z-index: 1; }
.cta-h2 {
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 16px;
}
.cta-sub { font-size: 18px; color: var(--text-secondary); margin-bottom: 40px; }
.cta-download-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

/* ── Footer ── */
footer { border-top: 1px solid var(--border); padding: 28px 0 0; }
.footer-top {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 12px; padding-bottom: 28px;
}
.footer-legal-links { display: flex; gap: 20px; }
.footer-legal-links button {
  font-size: 13px; font-family: var(--font);
  color: var(--text-secondary);
  background: none; border: none; cursor: pointer; padding: 0;
  transition: color 0.18s ease;
}
.footer-legal-links button:hover { color: var(--text-primary); }
.footer-legal-links button:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }
