* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary: #2952E3;
  --primary-light: #818CF8;
  --primary-bg: #EEF2FF;
  --gradient-start: #C7D2FE;
  --gradient-end: #F5F7FF;
  --text-dark: #111;
  --text-mid: #374151;
  --text-muted: #6B7280;
  --white: #ffffff;
  --surface: #F8FAFF;
  --card-shadow: 0 4px 24px rgba(41, 82, 227, 0.08);
  --border-radius-card: 20px;
  --border-radius-btn: 22px;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--text-dark);
  background: var(--white);
  line-height: 1.6;
}

/* ── NAVBAR ── */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 48px;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(41, 82, 227, 0.08);
}

.nav-logo {
  font-size: 22px;
  font-weight: 800;
  color: var(--primary);
  text-decoration: none;
  letter-spacing: -0.5px;
}

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

.nav-links a {
  text-decoration: none;
  color: var(--text-mid);
  font-size: 15px;
  font-weight: 500;
  transition: color 0.2s;
}

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

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--primary);
  color: var(--white);
  padding: 12px 28px;
  border-radius: var(--border-radius-btn);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
  box-shadow: 0 4px 16px rgba(41, 82, 227, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(41, 82, 227, 0.4);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: var(--primary);
  padding: 12px 28px;
  border-radius: var(--border-radius-btn);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  border: 2px solid var(--primary);
  cursor: pointer;
  transition: all 0.15s;
}

.btn-secondary:hover {
  background: var(--primary-bg);
}

.app-store-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--text-dark);
  color: var(--white);
  padding: 14px 28px;
  border-radius: var(--border-radius-btn);
  text-decoration: none;
  font-size: 15px;
  font-weight: 600;
  transition: transform 0.15s, box-shadow 0.15s;
  box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}

.app-store-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(0,0,0,0.3);
}

.app-store-btn svg {
  width: 20px;
  height: 20px;
  fill: white;
  flex-shrink: 0;
}

/* Official App Store badge style */
.app-store-badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: #000;
  color: #fff;
  padding: 10px 20px;
  border-radius: 12px;
  text-decoration: none;
  border: 1px solid rgba(255,255,255,0.15);
  transition: transform 0.15s, box-shadow 0.15s;
  box-shadow: 0 4px 20px rgba(0,0,0,0.25);
}

.app-store-badge:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(0,0,0,0.35);
}

.apple-logo {
  font-family: -apple-system, 'Helvetica Neue', sans-serif;
  font-size: 30px;
  line-height: 1;
  color: white;
  flex-shrink: 0;
  margin-bottom: 2px;
}

.apple-logo::before {
  content: '\F8FF';
}

.badge-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.15;
}

.badge-top {
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.2px;
  color: rgba(255,255,255,0.9);
}

.badge-bottom {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.3px;
  color: #fff;
}

/* ── HERO ── */
.hero {
  min-height: 100vh;
  background: linear-gradient(160deg, #C7D2FE 0%, #DDE5FF 25%, #EEF2FF 60%, #F5F7FF 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 120px 24px 80px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(41, 82, 227, 0.12) 0%, transparent 70%);
  top: -100px;
  right: -100px;
  border-radius: 50%;
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(124, 58, 237, 0.08) 0%, transparent 70%);
  bottom: -80px;
  left: -80px;
  border-radius: 50%;
  pointer-events: none;
}

.hero-inner {
  max-width: 1100px;
  width: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  z-index: 1;
}

.hero-content {
  max-width: 680px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(41, 82, 227, 0.1);
  color: var(--primary);
  padding: 6px 16px;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 24px;
  border: 1px solid rgba(41, 82, 227, 0.2);
}

.hero-badge svg {
  width: 14px;
  height: 14px;
}

.hero h1 {
  font-size: clamp(42px, 7vw, 72px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -2px;
  color: var(--text-dark);
  margin-bottom: 20px;
}

.hero h1 span {
  color: var(--primary);
}

.hero p {
  font-size: 18px;
  color: var(--text-mid);
  margin-bottom: 40px;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}

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

/* ── PHONE MOCKUP ── */
.hero-visual {
  margin-top: 72px;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 20px;
}

.phone-mockup {
  width: 220px;
  height: 476px;
  background: var(--white);
  border-radius: 40px;
  box-shadow: 0 32px 80px rgba(41, 82, 227, 0.2), 0 8px 32px rgba(0,0,0,0.1);
  overflow: hidden;
  border: 7px solid rgba(255,255,255,0.95);
  outline: 1px solid rgba(0,0,0,0.06);
}

.phone-mockup.center {
  width: 240px;
  height: 520px;
  transform: translateY(-28px);
  z-index: 2;
  box-shadow: 0 40px 100px rgba(41, 82, 227, 0.28), 0 12px 40px rgba(0,0,0,0.14);
}

.phone-screenshot {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  display: block;
}

/* ── SHARED ── */
section {
  padding: 96px 24px;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
}

.section-label {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 12px;
}

.section-title {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 800;
  letter-spacing: -1px;
  color: var(--text-dark);
  margin-bottom: 16px;
}

.section-sub {
  font-size: 17px;
  color: var(--text-muted);
  max-width: 540px;
}

/* ── STATS BAR ── */
.stats-bar {
  padding: 48px 24px;
  background: var(--white);
  border-bottom: 1px solid rgba(41, 82, 227, 0.08);
}

.stats-grid {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  flex-wrap: wrap;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 16px 48px;
}

.stat-num {
  font-size: 36px;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: -1px;
  line-height: 1;
}

.stat-label {
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 500;
}

.stat-divider {
  width: 1px;
  height: 48px;
  background: rgba(41, 82, 227, 0.12);
}

/* ── SHOWCASE SECTIONS ── */
.showcase {
  background: var(--white);
  padding: 112px 24px;
}

.showcase-alt {
  background: var(--surface);
}

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

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

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

.showcase-text {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.showcase-text h2 {
  font-size: clamp(28px, 3.5vw, 42px);
  font-weight: 800;
  letter-spacing: -1px;
  color: var(--text-dark);
  margin-bottom: 16px;
  line-height: 1.15;
}

.showcase-text p {
  font-size: 17px;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 28px;
}

.showcase-points {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 36px;
}

.showcase-points li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 500;
  color: var(--text-mid);
}

.showcase-points li svg {
  width: 18px;
  height: 18px;
  color: var(--primary);
  flex-shrink: 0;
}

.showcase-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

/* ── BENTO GRID ── */
.bento-section {
  background: linear-gradient(160deg, #C7D2FE 0%, #DDE5FF 25%, #EEF2FF 60%, #F5F7FF 100%);
  padding: 96px 24px;
}

.bento-header {
  margin-bottom: 48px;
}

.bento-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: auto auto;
  gap: 16px;
}

.bento-card {
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: var(--border-radius-card);
  padding: 32px;
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow: var(--card-shadow);
  transition: transform 0.2s, box-shadow 0.2s;
}

.bento-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(41, 82, 227, 0.14);
}

.bento-wide {
  grid-column: span 2;
}

.bento-icon {
  width: 48px;
  height: 48px;
  background: var(--primary-bg);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

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

.bento-card h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--text-dark);
}

.bento-card p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.65;
}

/* ── TESTIMONIAL ── */
.testimonial-section {
  background: var(--white);
  padding: 96px 24px;
}

.testimonial-card {
  max-width: 720px;
  margin: 0 auto;
  background: var(--primary-bg);
  border-radius: 28px;
  padding: 56px 64px;
  border: 1px solid rgba(41, 82, 227, 0.12);
  text-align: center;
}

.testimonial-stars {
  font-size: 22px;
  color: var(--primary);
  margin-bottom: 24px;
  letter-spacing: 2px;
}

.testimonial-card blockquote {
  font-size: 20px;
  font-weight: 500;
  color: var(--text-dark);
  line-height: 1.65;
  margin-bottom: 32px;
  font-style: italic;
}

.testimonial-author {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
}

.testimonial-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--primary);
  color: white;
  font-size: 14px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.testimonial-info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
}

.testimonial-info strong {
  font-size: 15px;
  color: var(--text-dark);
}

.testimonial-info span {
  font-size: 13px;
  color: var(--text-muted);
}

/* ── CATEGORIES ── */
.categories {
  background: var(--surface);
  padding: 96px 24px;
}

.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
  margin-top: 48px;
}

.category-card {
  border-radius: 18px;
  padding: 28px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 10px;
  transition: transform 0.2s;
}

.category-card:hover {
  transform: translateY(-4px);
}

.category-card .cat-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.category-card .cat-icon svg {
  width: 26px;
  height: 26px;
}

.category-card h4 {
  font-size: 15px;
  font-weight: 700;
}

.category-card p {
  font-size: 12px;
  color: var(--text-muted);
}

.cat-clarity    { background: #EEF2FF; } .cat-clarity h4    { color: #2952E3; } .cat-clarity    .cat-icon { background: rgba(41,82,227,0.12); }   .cat-clarity    .cat-icon svg { color: #2952E3; }
.cat-structure  { background: #F5F3FF; } .cat-structure h4  { color: #7C3AED; } .cat-structure  .cat-icon { background: rgba(124,58,237,0.12); }  .cat-structure  .cat-icon svg { color: #7C3AED; }
.cat-fluency    { background: #FFF7ED; } .cat-fluency h4    { color: #EA580C; } .cat-fluency    .cat-icon { background: rgba(234,88,12,0.12); }   .cat-fluency    .cat-icon svg { color: #EA580C; }
.cat-confidence { background: #FEF2F2; } .cat-confidence h4 { color: #DC2626; } .cat-confidence .cat-icon { background: rgba(220,38,38,0.12); }   .cat-confidence .cat-icon svg { color: #DC2626; }
.cat-expression { background: #ECFDF5; } .cat-expression h4 { color: #059669; } .cat-expression .cat-icon { background: rgba(5,150,105,0.12); }   .cat-expression .cat-icon svg { color: #059669; }

/* ── CTA SECTION ── */
.cta-section {
  background: var(--primary);
  padding: 112px 24px;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(255,255,255,0.08) 0%, transparent 70%);
  top: -200px;
  right: -100px;
  border-radius: 50%;
  pointer-events: none;
}

.cta-section::after {
  content: '';
  position: absolute;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(255,255,255,0.05) 0%, transparent 70%);
  bottom: -100px;
  left: -80px;
  border-radius: 50%;
  pointer-events: none;
}

.cta-inner {
  position: relative;
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}

.cta-label {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.65);
  margin-bottom: 16px;
}

.cta-section h2 {
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 800;
  color: var(--white);
  letter-spacing: -1.5px;
  margin-bottom: 16px;
  line-height: 1.1;
}

.cta-section p {
  font-size: 18px;
  color: rgba(255,255,255,0.75);
  margin-bottom: 40px;
}

.cta-btn {
  background: var(--white);
  border-color: rgba(255,255,255,0.2);
}

.cta-btn .apple-logo,
.cta-btn .badge-top,
.cta-btn .badge-bottom {
  color: var(--primary);
}

.cta-btn:hover {
  box-shadow: 0 12px 40px rgba(0,0,0,0.25);
}

/* ── FOOTER ── */
footer {
  background: #0F172A;
  color: rgba(255,255,255,0.6);
  padding: 56px 24px 32px;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.footer-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}

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

.footer-brand p {
  font-size: 14px;
  color: rgba(255,255,255,0.4);
  max-width: 200px;
}

.footer-logo {
  font-size: 22px;
  font-weight: 800;
  color: var(--white);
  text-decoration: none;
}

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

.footer-links a {
  text-decoration: none;
  color: rgba(255,255,255,0.45);
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s;
}

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

.footer-copy {
  font-size: 13px;
  color: rgba(255,255,255,0.25);
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 24px;
  width: 100%;
  text-align: center;
}

/* ── LEGAL PAGES ── */
.legal-page {
  padding-top: 100px;
  padding-bottom: 80px;
  max-width: 780px;
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
}

.legal-page h1 {
  font-size: 36px;
  font-weight: 800;
  letter-spacing: -1px;
  margin-bottom: 8px;
  color: var(--text-dark);
}

.legal-meta {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 48px;
  padding-bottom: 24px;
  border-bottom: 1px solid #E5E7EB;
}

.legal-page h2 {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-dark);
  margin-top: 40px;
  margin-bottom: 12px;
}

.legal-page h3 {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-dark);
  margin-top: 24px;
  margin-bottom: 8px;
}

.legal-page p {
  font-size: 15px;
  color: var(--text-mid);
  margin-bottom: 16px;
  line-height: 1.75;
}

.legal-page ul {
  margin: 0 0 16px 24px;
}

.legal-page ul li {
  font-size: 15px;
  color: var(--text-mid);
  line-height: 1.75;
  margin-bottom: 6px;
}

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

.legal-highlight {
  background: var(--primary-bg);
  border-left: 4px solid var(--primary);
  border-radius: 0 12px 12px 0;
  padding: 16px 20px;
  margin: 24px 0;
}

.legal-highlight p {
  margin: 0;
  color: var(--text-dark);
  font-weight: 500;
}

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .showcase-inner {
    grid-template-columns: 1fr;
    gap: 48px;
    text-align: center;
  }

  .showcase-inner-reverse {
    direction: ltr;
  }

  .showcase-visual {
    order: -1;
  }

  .showcase-inner-reverse .showcase-visual {
    order: -1;
  }

  .showcase-points li {
    justify-content: center;
  }

  .showcase-text .app-store-btn {
    align-self: center;
  }

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

  .bento-wide {
    grid-column: span 2;
  }

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

  .testimonial-card {
    padding: 40px 32px;
  }
}

@media (max-width: 768px) {
  nav {
    padding: 16px 20px;
  }

  .nav-links {
    display: none;
  }

  .hero-visual {
    display: none;
  }

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

  .bento-wide {
    grid-column: span 1;
  }

  .stats-grid {
    gap: 0;
  }

  .stat-divider {
    display: none;
  }

  .stat-item {
    padding: 16px 20px;
    width: 50%;
  }

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

  .hero-ctas {
    flex-direction: column;
    align-items: stretch;
  }

  .app-store-btn,
  .btn-secondary {
    justify-content: center;
  }

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

  .footer-links {
    justify-content: center;
    gap: 20px;
  }

  .footer-brand p {
    max-width: 100%;
  }
}
