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

:root {
  --primary: #007AFF;
  --primary-dark: #0062CC;
  --primary-light: #4DA3FF;
  --bg: #ffffff;
  --bg-alt: #f5f5f7;
  --bg-dark: #0a0a0a;
  --bg-dark-alt: #1a1a1a;
  --text: #1d1d1f;
  --text-secondary: #6e6e73;
  --text-on-dark: #f5f5f7;
  --text-on-dark-secondary: #a1a1a6;
  --border: #d2d2d7;
  --radius: 16px;
  --radius-sm: 10px;
  --max-width: 1200px;
  --transition: 0.3s ease;
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'SF Pro Text', 'Helvetica Neue', 'Segoe UI', Roboto, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

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

.section-label {
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--primary);
  margin-bottom: 12px;
}

.section-title {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.section-subtitle {
  font-size: 1.125rem;
  color: var(--text-secondary);
  max-width: 600px;
  line-height: 1.6;
}

/* ===== Animations ===== */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== Navigation ===== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 16px 0;
  transition: background var(--transition), box-shadow var(--transition);
}

.navbar.scrolled {
  background: rgba(255, 255, 255, 0.85);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.08);
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.nav-brand img {
  width: 36px;
  height: 36px;
  border-radius: 8px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color var(--transition);
}

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

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 20px;
  background: var(--text);
  color: var(--bg) !important;
  border-radius: 980px;
  font-size: 0.875rem;
  font-weight: 600;
  transition: opacity var(--transition);
}

.nav-cta:hover {
  opacity: 0.85;
}

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.mobile-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  margin: 5px 0;
  border-radius: 2px;
  transition: var(--transition);
}

/* ===== Hero ===== */
.hero {
  padding: 160px 0 80px;
  text-align: center;
  background: linear-gradient(180deg, #f0f5ff 0%, var(--bg) 100%);
  overflow: hidden;
}

.hero-content {
  margin-bottom: 60px;
}

.hero h1 {
  font-size: clamp(2.5rem, 7vw, 4.5rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
  background: linear-gradient(135deg, var(--text) 0%, #333 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero h1 span {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero p {
  font-size: clamp(1.0625rem, 2vw, 1.25rem);
  color: var(--text-secondary);
  max-width: 540px;
  margin: 0 auto 36px;
  line-height: 1.6;
}

.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 12px 28px 12px 22px;
  background: #000;
  color: #fff;
  border-radius: 14px;
  transition: opacity var(--transition), transform var(--transition);
  border: 1.5px solid rgba(255, 255, 255, 0.15);
}

.store-badge:hover {
  opacity: 0.88;
  transform: scale(1.03);
}

.store-badge .apple-logo {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
}

.store-badge-text {
  display: flex;
  flex-direction: column;
  text-align: left;
  line-height: 1.2;
}

.store-badge-text small {
  font-size: 0.6875rem;
  font-weight: 400;
  letter-spacing: 0.02em;
}

.store-badge-text strong {
  font-size: 1.375rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.store-badge-light {
  background: #fff;
  color: #000;
  border: 1.5px solid rgba(0, 0, 0, 0.15);
}

.coming-soon-badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 12px 28px 12px 22px;
  background: #000;
  color: #fff;
  border-radius: 14px;
  border: 1.5px solid rgba(255, 255, 255, 0.15);
  cursor: default;
}

.coming-soon-badge .apple-logo {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
}

.coming-soon-badge .store-badge-text {
  display: flex;
  flex-direction: column;
  text-align: left;
  line-height: 1.2;
}

.coming-soon-badge .store-badge-text small {
  font-size: 0.6875rem;
  font-weight: 400;
  letter-spacing: 0.02em;
}

.coming-soon-badge .store-badge-text strong {
  font-size: 1.375rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.coming-soon-badge-light {
  background: #fff;
  color: #000;
  border: 1.5px solid rgba(0, 0, 0, 0.15);
}

.hero-image {
  max-width: 320px;
  margin: 0 auto;
  filter: drop-shadow(0 40px 80px rgba(0, 0, 0, 0.15));
}

/* ===== Features ===== */
.features {
  padding: 120px 0;
}

.features-header {
  text-align: center;
  margin-bottom: 80px;
}

.features-header .section-subtitle {
  margin: 0 auto;
}

.feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  margin-bottom: 120px;
}

.feature-row:last-child {
  margin-bottom: 0;
}

.feature-row.reverse .feature-text {
  order: 2;
}

.feature-row.reverse .feature-image {
  order: 1;
}

.feature-text h3 {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.feature-text p {
  font-size: 1.0625rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

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

.feature-image img {
  max-width: 300px;
  border-radius: 32px;
  filter: drop-shadow(0 24px 60px rgba(0, 0, 0, 0.12));
}

/* ===== Benefits ===== */
.benefits {
  padding: 120px 0;
  background: var(--bg-alt);
}

.benefits-header {
  text-align: center;
  margin-bottom: 64px;
}

.benefits-header .section-subtitle {
  margin: 0 auto;
}

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

.benefit-card {
  background: var(--bg);
  border-radius: var(--radius);
  padding: 36px 28px;
  transition: transform var(--transition), box-shadow var(--transition);
}

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

.benefit-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: linear-gradient(135deg, #e8f1ff 0%, #d4e6ff 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.benefit-icon svg {
  width: 24px;
  height: 24px;
  color: var(--primary);
}

.benefit-card h4 {
  font-size: 1.125rem;
  font-weight: 650;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}

.benefit-card p {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ===== CTA ===== */
.cta {
  padding: 120px 0;
  text-align: center;
  background: var(--bg-dark);
  color: var(--text-on-dark);
}

.cta .section-title {
  color: var(--text-on-dark);
}

.cta p {
  font-size: 1.125rem;
  color: var(--text-on-dark-secondary);
  max-width: 480px;
  margin: 0 auto 40px;
  line-height: 1.6;
}

/* ===== Contact ===== */
.contact {
  padding: 100px 0;
  text-align: center;
  background: var(--bg-alt);
}

.contact .section-title {
  color: var(--text);
}

.contact p {
  font-size: 1.125rem;
  color: var(--text-secondary);
  max-width: 480px;
  margin: 0 auto 24px;
  line-height: 1.6;
}

.contact-email {
  display: inline-block;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--primary);
  transition: color var(--transition);
}

.contact-email:hover {
  color: var(--primary-dark);
}

/* ===== Footer ===== */
.footer {
  padding: 48px 0;
  background: var(--bg-dark);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  color: var(--text-on-dark);
}

.footer-brand img {
  width: 28px;
  height: 28px;
  border-radius: 6px;
}

.footer-links {
  display: flex;
  gap: 32px;
  list-style: none;
}

.footer-links a {
  font-size: 0.875rem;
  color: var(--text-on-dark-secondary);
  transition: color var(--transition);
}

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

.footer-copy {
  font-size: 0.8125rem;
  color: var(--text-on-dark-secondary);
}

/* ===== Legal Pages (Privacy & Terms) ===== */
.legal-page {
  padding: 140px 0 80px;
}

.legal-page .container {
  max-width: 760px;
}

.legal-page h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.legal-page .last-updated {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  margin-bottom: 48px;
}

.legal-page h2 {
  font-size: 1.5rem;
  font-weight: 650;
  margin-top: 48px;
  margin-bottom: 16px;
  letter-spacing: -0.01em;
}

.legal-page h3 {
  font-size: 1.125rem;
  font-weight: 600;
  margin-top: 32px;
  margin-bottom: 12px;
}

.legal-page p {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 16px;
}

.legal-page ul, .legal-page ol {
  margin: 16px 0;
  padding-left: 24px;
}

.legal-page li {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 8px;
}

.legal-page a {
  color: var(--primary);
}

.legal-page a:hover {
  text-decoration: underline;
}

.legal-footer {
  background: var(--bg-alt);
}

.legal-footer .footer {
  background: var(--bg-alt);
}

.legal-footer .footer-brand,
.legal-footer .footer-links a,
.legal-footer .footer-copy {
  color: var(--text-secondary);
}

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

.legal-footer .footer {
  border-top: 1px solid var(--border);
}

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

  .feature-row.reverse .feature-text {
    order: 1;
  }

  .feature-row.reverse .feature-image {
    order: 2;
  }

  .feature-image img {
    max-width: 260px;
  }

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

@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.97);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    flex-direction: column;
    justify-content: center;
    gap: 24px;
    padding: 24px;
    z-index: 999;
  }

  .nav-links.active {
    display: flex;
  }

  .nav-links a {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text);
  }

  .mobile-toggle {
    display: block;
    z-index: 1001;
  }

  .mobile-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }

  .mobile-toggle.active span:nth-child(2) {
    opacity: 0;
  }

  .mobile-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }

  .hero {
    padding: 130px 0 60px;
  }

  .hero-image {
    max-width: 260px;
  }

  .features,
  .benefits,
  .cta,
  .contact {
    padding: 80px 0;
  }

  .features-header,
  .benefits-header {
    margin-bottom: 48px;
  }

  .feature-row {
    margin-bottom: 80px;
  }

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

  .footer .container {
    flex-direction: column;
    gap: 20px;
    text-align: center;
  }

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

@media (max-width: 480px) {
  .hero h1 {
    font-size: 2.25rem;
  }

  .feature-image img {
    max-width: 220px;
  }
}
