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

/* ===== VARIABLES ===== */
:root {
  --black: #000000;
  --bg-primary: #000000;
  --bg-elevated: #0a0a0f;
  --bg-card: #111118;
  --bg-card-hover: #18181f;
  --border: rgba(255, 255, 255, 0.08);
  --purple: #7C5CFF;
  --purple-light: #9B7FFF;
  --purple-soft: #c4b5fd;
  --purple-glow: rgba(124, 92, 255, 0.12);
  --text-primary: #f5f5f7;
  --text-secondary: #86868b;
  --text-tertiary: #6e6e73;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'SF Pro Display', sans-serif;
  --max-width: 980px;
  --max-width-wide: 1200px;
  --nav-height: 48px;
  --ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.5;
  overflow-x: hidden;
}

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

/* ===== LAYOUT ===== */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== TYPOGRAPHY — Apple-scale ===== */
.overline {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--text-secondary);
  text-transform: uppercase;
  margin-bottom: 16px;
  text-align: center;
}

.headline-hero {
  font-size: clamp(48px, 8vw, 96px);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.04;
  text-align: center;
}

.headline-large {
  font-size: clamp(40px, 6vw, 72px);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.06;
  text-align: center;
  margin-bottom: 20px;
}

.headline-medium {
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 20px;
}

.headline-medium em {
  font-style: italic;
  color: var(--purple-light);
}

.body-large {
  font-size: clamp(17px, 2vw, 21px);
  color: var(--text-secondary);
  line-height: 1.5;
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}

.body-medium {
  font-size: 17px;
  color: var(--text-secondary);
  line-height: 1.6;
  max-width: 440px;
}

.gradient-text {
  background: linear-gradient(135deg, var(--purple), var(--purple-light), var(--purple-soft));
  background-size: 200% 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradientMove 6s ease-in-out infinite;
}

@keyframes gradientMove {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

/* ===== REVEAL ANIMATIONS ===== */
[data-reveal] {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 1s var(--ease), transform 1.2s var(--ease-out);
}

[data-reveal].revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ===== NAVBAR ===== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--nav-height);
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--border);
}

.nav-container {
  max-width: var(--max-width-wide);
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
}

.logo-icon {
  flex-shrink: 0;
  border-radius: 6px;
}

.nav-links {
  display: flex;
  gap: 28px;
}

.nav-links a {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-secondary);
  letter-spacing: 0.01em;
  transition: color 0.3s;
}

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

.nav-cta {
  font-size: 12px;
  font-weight: 600;
  padding: 6px 16px;
  border-radius: 980px;
  background: var(--purple);
  color: #fff;
  transition: all 0.3s var(--ease);
}

.nav-cta:hover {
  background: var(--purple-light);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  width: 18px;
  height: 1.5px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all 0.3s var(--ease-out);
}

.nav-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(4px, 4px); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(4px, -4px); }

.mobile-menu {
  display: none;
  position: fixed;
  top: var(--nav-height);
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.98);
  backdrop-filter: blur(20px);
  z-index: 999;
  padding: 40px 24px;
}

.mobile-menu.open {
  display: block;
  animation: fadeIn 0.3s var(--ease);
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.mobile-menu ul {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mobile-menu a {
  font-size: 28px;
  font-weight: 600;
  color: var(--text-secondary);
  display: block;
  padding: 8px 0;
  transition: color 0.2s;
}

.mobile-menu a:hover {
  color: var(--text-primary);
}

.mobile-menu .mobile-cta {
  display: inline-block;
  margin-top: 16px;
  padding: 14px 28px;
  background: var(--purple);
  color: #fff;
  border-radius: 980px;
  font-size: 17px;
  font-weight: 600;
  text-align: center;
}

/* ===== HERO ===== */
.hero {
  padding-top: calc(var(--nav-height) + 80px);
  padding-bottom: 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero-content {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.hero-title {
  font-size: clamp(52px, 9vw, 96px);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.04;
  margin-bottom: 20px;
}

.hero-subtitle {
  font-size: clamp(17px, 2.2vw, 24px);
  color: var(--text-secondary);
  margin-bottom: 32px;
  font-weight: 400;
}

.hero-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  margin-bottom: 60px;
}

.hero-store-buttons {
  display: flex;
  gap: 14px;
}

.store-badge {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 24px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  transition: all 0.4s var(--ease);
}

.store-badge:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(124, 92, 255, 0.4);
  transform: translateY(-2px);
}

.store-badge-disabled {
  opacity: 0.4;
  cursor: default;
  pointer-events: none;
}

.store-badge-label {
  display: block;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-secondary);
  line-height: 1.2;
}

.store-badge-name {
  display: block;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.2;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 17px;
  font-weight: 600;
  padding: 14px 28px;
  border-radius: 980px;
  background: var(--purple);
  color: #fff;
  transition: all 0.4s var(--ease);
  border: none;
  cursor: pointer;
}

.btn-primary:hover {
  background: var(--purple-light);
  transform: scale(1.04);
}

.btn-large {
  font-size: 19px;
  padding: 18px 36px;
}

.btn-full {
  width: 100%;
  justify-content: center;
}

.btn-link {
  font-size: 17px;
  font-weight: 500;
  color: var(--purple-light);
  transition: color 0.3s;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.btn-link:hover {
  color: var(--purple-soft);
}

.btn-link .arrow {
  display: inline-block;
  transition: transform 0.3s var(--ease-out);
}

.btn-link:hover .arrow {
  transform: translateX(4px);
}

/* Hero phone */
.hero-phone-container {
  position: relative;
  display: flex;
  justify-content: center;
  max-width: 460px;
  margin: 0 auto;
  z-index: 1;
}

.hero-phone-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 300px;
  height: 500px;
  background: radial-gradient(ellipse, rgba(124, 92, 255, 0.15) 0%, transparent 70%);
  filter: blur(60px);
  pointer-events: none;
}

.hero-phone-img {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 420px;
  height: auto;
}

/* ===== TICKER ===== */
.ticker {
  padding: 80px 24px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.ticker-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
}

.ticker-item {
  text-align: center;
}

.ticker-value {
  display: block;
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 800;
  letter-spacing: -0.03em;
  background: linear-gradient(135deg, #fff 40%, var(--purple-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.ticker-label {
  display: block;
  font-size: 13px;
  color: var(--text-tertiary);
  margin-top: 4px;
  letter-spacing: 0.02em;
}

.ticker-divider {
  width: 1px;
  height: 48px;
  background: var(--border);
}

/* ===== SECTION INTRO ===== */
.section-intro {
  padding: 140px 0 60px;
  text-align: center;
}

/* ===== FEATURE SECTIONS (Apple-style alternating) ===== */
.feature-section {
  padding: 100px 0;
  overflow: hidden;
}

.feature-section-dark {
  background: var(--bg-elevated);
}

.feature-row {
  max-width: var(--max-width-wide);
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.feature-row-reverse {
  direction: rtl;
}

.feature-row-reverse > * {
  direction: ltr;
}

.feature-text .overline {
  text-align: left;
  color: var(--purple-light);
}

.feature-visual {
  display: flex;
  justify-content: center;
}

.feature-phone {
  width: 360px;
  height: auto;
  border-radius: 28px;
  filter: drop-shadow(0 20px 60px rgba(0, 0, 0, 0.6));
}

/* ===== FEATURE GRID (secondary) ===== */
.features-grid-section {
  padding: 100px 0 140px;
  background: var(--bg-primary);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
}

.feature-tile {
  background: var(--bg-primary);
  padding: 48px 40px;
  transition: background 0.5s var(--ease);
}

.feature-tile:hover {
  background: var(--bg-elevated);
}

.tile-icon {
  color: var(--purple-light);
  margin-bottom: 20px;
}

.feature-tile h4 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}

.feature-tile p {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ===== STEPS ===== */
.steps-section {
  padding: 40px 0 140px;
}

.step-row {
  max-width: 700px;
  margin: 0 auto;
  display: flex;
  gap: 40px;
  align-items: baseline;
  padding: 40px 0;
  border-bottom: 1px solid var(--border);
}

.step-row:last-child {
  border-bottom: none;
}

.step-number-large {
  font-size: clamp(48px, 6vw, 72px);
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--purple);
  opacity: 0.3;
  flex-shrink: 0;
  min-width: 80px;
  line-height: 1;
}

.step-title {
  font-size: clamp(22px, 3vw, 28px);
  font-weight: 700;
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}

.step-desc {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ===== SCREENS ===== */
.screens-section {
  padding: 140px 0 120px;
  overflow: hidden;
  background: var(--bg-elevated);
}

.screens-section .container {
  text-align: center;
  margin-bottom: 64px;
}

.screens-track {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  padding: 0 max(24px, calc((100vw - 1200px) / 2));
  padding-bottom: 20px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  cursor: grab;
}

.screens-track:active { cursor: grabbing; }
.screens-track::-webkit-scrollbar { display: none; }

.screen-slide {
  flex-shrink: 0;
  text-align: center;
  scroll-snap-align: center;
  transition: transform 0.5s var(--ease-out), opacity 0.5s;
}

.screen-slide:hover {
  transform: translateY(-8px);
}

.screen-img {
  width: 300px;
  height: auto;
  border-radius: 24px;
  filter: drop-shadow(0 12px 40px rgba(0, 0, 0, 0.5));
  transition: filter 0.5s;
}

.screen-slide:hover .screen-img {
  filter: drop-shadow(0 20px 60px rgba(0, 0, 0, 0.6)) drop-shadow(0 0 40px rgba(124, 92, 255, 0.08));
}

.screen-label {
  display: block;
  margin-top: 16px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-tertiary);
}

/* ===== PRICING ===== */
.pricing-section {
  padding: 0 0 140px;
}

.pricing-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  max-width: 800px;
  margin: 0 auto;
}

.pricing-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 40px 32px;
  position: relative;
  transition: all 0.5s var(--ease-out);
}

.pricing-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  border-color: rgba(255, 255, 255, 0.12);
}

.pricing-card-featured {
  border-color: rgba(124, 92, 255, 0.25);
  background: linear-gradient(180deg, rgba(124, 92, 255, 0.04) 0%, var(--bg-card) 100%);
}

.pricing-badge {
  position: absolute;
  top: -1px;
  right: 28px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #fff;
  background: var(--purple);
  padding: 6px 14px;
  border-radius: 0 0 10px 10px;
}

.pricing-label {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-tertiary);
  display: block;
  margin-bottom: 16px;
}

.pricing-price {
  margin-bottom: 8px;
}

.pricing-amount {
  font-size: clamp(40px, 5vw, 52px);
  font-weight: 800;
  letter-spacing: -0.03em;
}

.pricing-period {
  font-size: 17px;
  color: var(--text-secondary);
}

.pricing-savings {
  font-size: 14px;
  font-weight: 600;
  color: #34c759;
  margin-bottom: 24px;
}

.pricing-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 32px;
}

.pricing-list li {
  font-size: 14px;
  color: var(--text-secondary);
  padding-left: 24px;
  position: relative;
}

.pricing-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 6px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--purple);
  opacity: 0.2;
}

.pricing-list li::after {
  content: '';
  position: absolute;
  left: 4px;
  top: 10px;
  width: 6px;
  height: 3px;
  border-left: 1.5px solid var(--purple-light);
  border-bottom: 1.5px solid var(--purple-light);
  transform: rotate(-45deg);
}

.pricing-note {
  text-align: center;
  font-size: 13px;
  color: var(--text-tertiary);
  margin-top: 32px;
}

/* ===== FAQ ===== */
.faq-section {
  padding: 140px 0;
  background: var(--bg-elevated);
}

.faq-section .container {
  max-width: 700px;
}

.faq-list {
  margin-top: 64px;
}

.faq-item {
  border-bottom: 1px solid var(--border);
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 0;
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font);
  font-size: 17px;
  font-weight: 600;
  color: var(--text-primary);
  text-align: left;
  transition: color 0.3s;
  gap: 24px;
}

.faq-question:hover {
  color: var(--purple-light);
}

.faq-icon {
  position: relative;
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.faq-icon::before,
.faq-icon::after {
  content: '';
  position: absolute;
  background: var(--text-secondary);
  border-radius: 1px;
  transition: all 0.4s var(--ease-out);
}

.faq-icon::before {
  width: 14px;
  height: 1.5px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.faq-icon::after {
  width: 1.5px;
  height: 14px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.faq-item.open .faq-icon::after {
  transform: translate(-50%, -50%) rotate(90deg);
  opacity: 0;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s var(--ease-out);
}

.faq-answer p {
  padding-bottom: 24px;
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ===== CTA ===== */
.cta-section {
  padding: 160px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 400px;
  background: radial-gradient(ellipse, rgba(124, 92, 255, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.cta-section .headline-hero {
  margin-bottom: 20px;
}

.cta-section .body-large {
  margin-bottom: 40px;
}

.cta-actions {
  display: flex;
  justify-content: center;
}

/* ===== FOOTER ===== */
.footer {
  background: var(--bg-primary);
  padding: 40px 0;
  border-top: 1px solid var(--border);
}

.footer .container {
  max-width: var(--max-width-wide);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 64px;
  padding-bottom: 40px;
}

.footer-tagline {
  font-size: 14px;
  color: var(--text-tertiary);
  margin-top: 12px;
}

.footer-col h4 {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-tertiary);
  margin-bottom: 16px;
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col a {
  font-size: 14px;
  color: var(--text-secondary);
  transition: color 0.3s;
}

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

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 20px;
}

.footer-bottom p {
  font-size: 12px;
  color: var(--text-tertiary);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .feature-row {
    grid-template-columns: 1fr;
    gap: 48px;
    text-align: center;
  }

  .feature-row-reverse {
    direction: ltr;
  }

  .feature-text .overline {
    text-align: center;
  }

  .body-medium {
    margin: 0 auto;
  }

  .headline-medium {
    text-align: center;
  }

  .feature-phone {
    width: 300px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

@media (max-width: 768px) {
  :root {
    --nav-height: 44px;
  }

  .nav-links, .nav-cta {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  .hero {
    padding-top: calc(var(--nav-height) + 60px);
  }

  .section-intro {
    padding: 100px 0 40px;
  }

  .feature-section {
    padding: 60px 0;
  }

  .ticker-inner {
    flex-direction: column;
    gap: 28px;
  }

  .ticker-divider {
    width: 48px;
    height: 1px;
  }

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

  .feature-tile {
    padding: 36px 28px;
  }

  .step-row {
    flex-direction: column;
    gap: 8px;
    text-align: center;
    align-items: center;
  }

  .step-number-large {
    min-width: auto;
  }

  .screens-section {
    padding: 100px 0 80px;
  }

  .screen-img {
    width: 260px;
  }

  .pricing-cards {
    grid-template-columns: 1fr;
    max-width: 420px;
  }

  .pricing-card {
    padding: 32px 24px;
  }

  .faq-section {
    padding: 100px 0;
  }

  .cta-section {
    padding: 100px 0;
  }

  .features-grid-section {
    padding: 60px 0 100px;
  }

  .steps-section {
    padding: 20px 0 100px;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: clamp(40px, 12vw, 52px);
  }

  .hero-store-buttons {
    flex-direction: column;
    width: 100%;
    max-width: 260px;
  }

  .store-badge {
    justify-content: center;
  }

  .hero-actions {
    margin-bottom: 40px;
  }

  .btn-primary {
    font-size: 15px;
    padding: 12px 24px;
  }

  .btn-large {
    font-size: 16px;
    padding: 14px 28px;
  }
}
