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

:root {
  --bg-primary: #001028;
  --bg-secondary: #0A1628;
  --bg-card: #0F1D32;
  --bg-card-hover: #152540;
  --accent: #3B82F6;
  --accent-hover: #2563EB;
  --accent-glow: rgba(59, 130, 246, 0.15);
  --text-primary: #F1F5F9;
  --text-secondary: #94A3B8;
  --text-muted: #64748B;
  --border: #1E293B;
  --border-accent: rgba(59, 130, 246, 0.3);
  --success: #22C55E;
  --radius: 12px;
  --radius-lg: 16px;
  --max-width: 1120px;
  --transition: 0.2s ease;
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen,
    Ubuntu, Cantarell, 'Helvetica Neue', Arial, sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--accent-hover);
}

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

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

section {
  padding: 100px 0;
}

/* ─── Scroll Animations ────────────────────────────────────── */
[data-animate] {
  opacity: 0;
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

[data-animate="fade-up"] {
  transform: translateY(60px);
}

[data-animate="slide-right"] {
  transform: translateX(-80px);
}

[data-animate="slide-left"] {
  transform: translateX(80px);
}

[data-animate="scale-up"] {
  transform: scale(0.9);
}

[data-animate].visible {
  opacity: 1;
  transform: translateY(0) translateX(0) scale(1);
}

/* ─── Navigation ────────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(0, 16, 40, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: background 0.3s, box-shadow 0.3s;
}

.nav.scrolled {
  background: rgba(0, 16, 40, 0.95);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

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

.nav-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  object-fit: cover;
}

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

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

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

/* ─── Hero ──────────────────────────────────────────────────── */
.hero {
  padding: 140px 0 80px;
  position: relative;
  overflow: hidden;
  min-height: 100vh;
  display: flex;
  align-items: center;
}

.hero .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero-gradient {
  position: absolute;
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 900px;
  background: radial-gradient(circle, var(--accent-glow) 0%, rgba(139, 92, 246, 0.05) 40%, transparent 70%);
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: var(--accent-glow);
  border: 1px solid var(--border-accent);
  border-radius: 100px;
  font-size: 13px;
  font-weight: 500;
  color: var(--accent);
  margin-bottom: 24px;
}

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

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.hero h1 {
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}

.hero h1 .gradient {
  background: linear-gradient(135deg, var(--accent) 0%, #818CF8 50%, #C084FC 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero p {
  font-size: 18px;
  color: var(--text-secondary);
  max-width: 480px;
  line-height: 1.7;
  margin-bottom: 40px;
}

.hero-visual {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
}

.hero-phone {
  position: relative;
  max-width: 300px;
  border-radius: 32px;
  overflow: hidden;
  box-shadow:
    0 30px 80px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(255, 255, 255, 0.08),
    0 0 120px rgba(59, 130, 246, 0.15);
}

.hero-phone-screen {
  width: 100%;
  height: auto;
  display: block;
}

/* ─── Store Badges ─────────────────────────────────────────── */
.store-badges {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 12px 24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-primary);
  font-weight: 600;
  font-size: 15px;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.store-badge:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-accent);
  color: var(--text-primary);
  transform: translateY(-3px);
  box-shadow: 0 10px 40px rgba(59, 130, 246, 0.15);
}

.store-badge .badge-icon {
  font-size: 24px;
}

.store-badge small {
  font-size: 11px;
  font-weight: 400;
  color: var(--text-secondary);
  display: block;
}

/* ─── Section Headers ───────────────────────────────────────── */
.section-header {
  text-align: center;
  margin-bottom: 72px;
}

.section-label {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--accent);
  margin-bottom: 16px;
  padding: 4px 12px;
  background: var(--accent-glow);
  border: 1px solid var(--border-accent);
  border-radius: 100px;
}

.section-header h2 {
  font-size: clamp(28px, 3.5vw, 44px);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.section-header p {
  font-size: 17px;
  color: var(--text-secondary);
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ─── Showcase Section ─────────────────────────────────────── */
.showcase {
  padding-top: 120px;
  padding-bottom: 40px;
}

.showcase-item {
  padding: 60px 0;
}

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

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

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

.showcase-image {
  position: relative;
}


/* Showcase Phone Frame (for app screenshots) */
.showcase-phone-frame {
  position: relative;
  max-width: 340px;
  margin: 0 auto;
  border-radius: 32px;
  overflow: hidden;
  box-shadow:
    0 30px 80px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(255, 255, 255, 0.08),
    0 0 80px rgba(59, 130, 246, 0.1);
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.showcase-phone-frame:hover {
  transform: scale(1.03) translateY(-4px);
}

.showcase-phone-frame img {
  width: 100%;
  height: auto;
  display: block;
}

/* Showcase Text */
.showcase-text {
  position: relative;
}

.showcase-number {
  font-size: 80px;
  font-weight: 800;
  color: rgba(59, 130, 246, 0.08);
  line-height: 1;
  margin-bottom: -20px;
  letter-spacing: -0.05em;
}

.showcase-text h3 {
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 700;
  margin-bottom: 16px;
  letter-spacing: -0.01em;
}

.showcase-text p {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 32px;
  max-width: 440px;
}

.showcase-stats {
  display: flex;
  gap: 32px;
}

.stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.stat-value {
  font-size: 24px;
  font-weight: 700;
  color: var(--accent);
}

.stat-label {
  font-size: 13px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ─── Feature Grid ──────────────────────────────────────────── */
.features {
  background: var(--bg-secondary);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.feature-card {
  padding: 32px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}

.feature-card:hover {
  border-color: var(--border-accent);
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.feature-card:hover::before {
  opacity: 1;
}

.feature-icon {
  width: 48px;
  height: 48px;
  background: var(--accent-glow);
  border: 1px solid var(--border-accent);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  margin-bottom: 20px;
}

.feature-card h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 8px;
}

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

/* ─── Tools Section ─────────────────────────────────────────── */
.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}

.tool-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.tool-item:hover {
  border-color: var(--border-accent);
  transform: translateX(4px);
}

.tool-icon {
  width: 40px;
  height: 40px;
  background: var(--accent-glow);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  flex-shrink: 0;
}

.tool-item h4 {
  font-size: 15px;
  font-weight: 600;
}

.tool-item p {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 2px;
}

/* ─── Premium Section ───────────────────────────────────────── */
.premium {
  position: relative;
  overflow: hidden;
}

.premium::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.premium-box {
  max-width: 720px;
  margin: 0 auto;
  padding: 56px;
  background: var(--bg-card);
  border: 1px solid var(--border-accent);
  border-radius: 24px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.premium-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), #818CF8, #C084FC);
}

.premium-box h2 {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 12px;
}

.premium-box > p {
  color: var(--text-secondary);
  margin-bottom: 32px;
}

.premium-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  text-align: left;
  margin-bottom: 32px;
}

.premium-feature {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 15px;
}

.premium-feature .check {
  color: var(--success);
  font-size: 18px;
  flex-shrink: 0;
}

.premium-plans {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.plan-badge {
  padding: 8px 24px;
  background: var(--accent-glow);
  border: 1px solid var(--border-accent);
  border-radius: 100px;
  font-size: 14px;
  font-weight: 500;
  color: var(--accent);
  transition: all 0.3s;
}

.plan-badge.highlight {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
}

.plan-badge:hover {
  transform: translateY(-2px);
}

/* ─── Languages Section ─────────────────────────────────────── */
.languages {
  background: var(--bg-secondary);
}

.lang-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

.lang-tag {
  padding: 10px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: 14px;
  color: var(--text-secondary);
  transition: all 0.3s;
}

.lang-tag:hover {
  border-color: var(--border-accent);
  color: var(--text-primary);
}

/* ─── CTA Section ───────────────────────────────────────────── */
.cta {
  text-align: center;
  padding: 120px 0;
  position: relative;
}

.cta::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 400px;
  background: radial-gradient(ellipse, var(--accent-glow) 0%, transparent 70%);
  pointer-events: none;
}

.cta h2 {
  font-size: clamp(28px, 3.5vw, 44px);
  font-weight: 700;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.cta p {
  font-size: 17px;
  color: var(--text-secondary);
  margin-bottom: 40px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.cta .store-badges {
  justify-content: center;
}

/* ─── Footer ────────────────────────────────────────────────── */
.footer {
  padding: 40px 0;
  border-top: 1px solid var(--border);
}

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

.footer-left {
  font-size: 14px;
  color: var(--text-muted);
}

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

.footer-links a {
  font-size: 14px;
  color: var(--text-secondary);
}

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

/* ─── Legal Pages ───────────────────────────────────────────── */
.legal {
  padding: 120px 0 80px;
}

.legal-content {
  max-width: 760px;
  margin: 0 auto;
}

.legal-content h1 {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 8px;
}

.legal-content .last-updated {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 40px;
}

.legal-content h2 {
  font-size: 22px;
  font-weight: 600;
  margin-top: 40px;
  margin-bottom: 16px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.legal-content h2:first-of-type {
  border-top: none;
  padding-top: 0;
}

.legal-content h3 {
  font-size: 17px;
  font-weight: 600;
  margin-top: 24px;
  margin-bottom: 10px;
}

.legal-content p {
  font-size: 15px;
  color: var(--text-secondary);
  margin-bottom: 16px;
  line-height: 1.7;
}

.legal-content ul {
  list-style: none;
  margin-bottom: 16px;
  padding-left: 0;
}

.legal-content ul li {
  position: relative;
  padding-left: 20px;
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 8px;
}

.legal-content ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10px;
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
}

.legal-content a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.legal-content strong {
  color: var(--text-primary);
  font-weight: 600;
}

.legal-content table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 24px;
  font-size: 14px;
}

.legal-content th,
.legal-content td {
  text-align: left;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  color: var(--text-secondary);
}

.legal-content th {
  color: var(--text-primary);
  font-weight: 600;
  background: var(--bg-card);
}

/* ─── Responsive ────────────────────────────────────────────── */
@media (max-width: 968px) {
  .hero .container {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 40px;
  }

  .hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .hero p {
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
  }

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

  .showcase-row,
  .showcase-row.reverse {
    grid-template-columns: 1fr;
    gap: 40px;
    direction: ltr;
  }

  .showcase-text {
    text-align: center;
  }

  .showcase-text p {
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
  }

  .showcase-stats {
    justify-content: center;
  }

  .showcase-number {
    font-size: 60px;
    margin-bottom: -15px;
  }
}

@media (max-width: 768px) {
  section {
    padding: 60px 0;
  }

  .nav-links {
    display: none;
  }

  .hero {
    padding: 100px 0 60px;
    min-height: auto;
  }

  .hero p {
    font-size: 16px;
  }

  .hero-phone {
    max-width: 240px;
    border-radius: 24px;
  }

  .showcase-phone-frame {
    max-width: 280px;
    border-radius: 24px;
  }

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

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

  .premium-box {
    padding: 32px 24px;
  }

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

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

  .showcase-item {
    padding: 40px 0;
  }

  .showcase-row {
    gap: 32px;
  }

  .legal-content h1 {
    font-size: 26px;
  }

  .legal-content h2 {
    font-size: 19px;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }

  .store-badges {
    flex-direction: column;
    align-items: center;
  }

  .store-badge {
    width: 100%;
    max-width: 280px;
    justify-content: center;
  }

  .showcase-frame {
    border-radius: 14px;
  }

  .showcase-number {
    font-size: 48px;
    margin-bottom: -10px;
  }

  .showcase-stats {
    gap: 24px;
  }
}
