* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --primary: #007AFF;
  --primary-light: #E8F2FF;
  --text: #1A1A1A;
  --text-secondary: #6B7280;
  --text-tertiary: #9CA3AF;
  --bg: #FFFFFF;
  --surface: #F8F9FA;
  --border: #E5E7EB;
  --danger: #EF4444;
  --success: #10B981;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ===== SCROLL ANIMATIONS ===== */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== NAV ===== */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  z-index: 100;
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

nav .logo {
  font-size: 24px;
  font-weight: 800;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 10px;
}

nav .logo .logo-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
}

nav .nav-links {
  display: flex;
  gap: 24px;
  align-items: center;
}

nav .nav-links a {
  color: var(--text-secondary);
  font-size: 15px;
  font-weight: 500;
}

nav .nav-links a:hover { color: var(--text); text-decoration: none; }

nav .cta-btn {
  background: var(--primary);
  color: #FFF !important;
  padding: 8px 20px;
  border-radius: 20px;
  font-weight: 600;
  font-size: 14px;
}

nav .cta-btn:hover { opacity: 0.9; text-decoration: none; }

/* ===== HERO ===== */
.hero {
  padding: 140px 24px 80px;
  background: linear-gradient(135deg, #F0F7FF 0%, #FFFFFF 50%, #F5F0FF 100%);
}

.hero-content {
  display: flex;
  align-items: center;
  gap: 60px;
  max-width: 1100px;
  margin: 0 auto;
}

.hero-text {
  flex: 1;
}

.hero h1 {
  font-size: 52px;
  font-weight: 800;
  margin-bottom: 16px;
  letter-spacing: -1px;
  line-height: 1.15;
}

.hero .subtitle {
  font-size: 18px;
  color: var(--text-secondary);
  margin-bottom: 32px;
  line-height: 1.6;
}

.hero .hero-cta {
  display: inline-block;
  background: var(--primary);
  color: #FFF;
  padding: 16px 40px;
  border-radius: 12px;
  font-size: 18px;
  font-weight: 600;
}

.hero .hero-cta:hover { opacity: 0.9; text-decoration: none; }

.hero .store-badges {
  margin-top: 24px;
  display: flex;
  gap: 12px;
}

.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #000;
  color: #FFF;
  padding: 10px 20px;
  border-radius: 10px;
  text-decoration: none;
  transition: opacity 0.2s;
}

.store-badge:hover { opacity: 0.85; text-decoration: none; }

.store-badge-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.store-badge-small {
  font-size: 10px;
  font-weight: 400;
  color: #CCC;
}

.store-badge-big {
  font-size: 16px;
  font-weight: 600;
  color: #FFF;
}

.hero .store-badges img {
  height: 48px;
}

.hero-phone {
  flex-shrink: 0;
}

.hero-phone .phone-frame {
  width: 280px;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(0,0,0,0.15);
}

.hero-phone .phone-frame img {
  width: 100%;
  display: block;
}

@media (max-width: 768px) {
  .hero-content {
    flex-direction: column;
    text-align: center;
  }
  .hero h1 { font-size: 36px; }
  .hero .subtitle { font-size: 17px; }
  .hero .store-badges { justify-content: center; }
  .hero-phone .phone-frame { width: 220px; }
}

/* ===== FEATURES ===== */
.features {
  padding: 80px 24px;
  max-width: 900px;
  margin: 0 auto;
}

.features h2 {
  text-align: center;
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 48px;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 32px;
}

.feature-card {
  text-align: center;
  padding: 32px 24px;
  border-radius: 16px;
  background: var(--surface);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}

.feature-card .emoji {
  font-size: 48px;
  margin-bottom: 16px;
}

.feature-card h3 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 8px;
}

.feature-card p {
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.5;
}

/* ===== EXAMPLES ===== */
.examples {
  padding: 80px 24px;
  background: var(--surface);
}

.examples h2 {
  text-align: center;
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 40px;
}

.examples-grid {
  max-width: 900px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}

.example-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px 20px;
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
  line-height: 1.4;
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.example-card-enter {
  opacity: 0;
  transform: translateY(12px);
}

.example-card-exit {
  opacity: 0;
  transform: translateY(-12px);
}

.example-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.example-cat {
  font-size: 20px;
}

.example-dist {
  font-size: 12px;
  color: var(--text-tertiary);
  font-weight: 500;
}

.example-text {
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 6px;
}

.example-time {
  font-size: 12px;
  color: var(--primary);
  font-weight: 500;
}

/* ===== HOW IT WORKS ===== */
.how-it-works {
  padding: 80px 24px;
  background: var(--surface);
}

.how-it-works h2 {
  text-align: center;
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 48px;
}

.steps {
  max-width: 600px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.step {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  position: relative;
}

.step:not(:last-child)::after {
  content: '';
  position: absolute;
  left: 19px;
  top: 44px;
  width: 2px;
  height: calc(100% + 12px);
  background: linear-gradient(to bottom, var(--primary), rgba(0,122,255,0.15));
}

.step-num {
  width: 40px;
  height: 40px;
  border-radius: 20px;
  background: var(--primary);
  color: #FFF;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 18px;
  flex-shrink: 0;
}

.step-content h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 4px;
}

.step-content p {
  color: var(--text-secondary);
  font-size: 15px;
}

/* ===== CTA SECTION ===== */
.cta-section {
  padding: 80px 24px;
  text-align: center;
  background: linear-gradient(135deg, #EBF4FF 0%, #F0EAFF 100%);
  border-radius: 0;
}

.cta-section h2 {
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--text);
}

.cta-section p {
  color: var(--text-secondary);
  font-size: 18px;
  margin-bottom: 32px;
}

.cta-section .hero-cta {
  display: inline-block;
  background: var(--primary);
  color: #FFF;
  padding: 16px 40px;
  border-radius: 12px;
  font-size: 18px;
  font-weight: 600;
}

/* ===== FOOTER ===== */
footer {
  padding: 48px 24px;
  border-top: 1px solid var(--border);
  max-width: 900px;
  margin: 0 auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand .logo {
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 8px;
}

.footer-brand p {
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.5;
}

.footer-links h4 {
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-tertiary);
  margin-bottom: 12px;
}

.footer-links a {
  display: block;
  color: var(--text-secondary);
  font-size: 14px;
  margin-bottom: 8px;
}

.footer-links a:hover { color: var(--text); }

.footer-bottom {
  text-align: center;
  color: var(--text-tertiary);
  font-size: 13px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

/* ===== LEGAL PAGES ===== */
.legal-page {
  padding: 100px 24px 80px;
  max-width: 720px;
  margin: 0 auto;
}

.legal-page h1 {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 8px;
}

.legal-page .last-updated {
  color: var(--text-tertiary);
  font-size: 14px;
  margin-bottom: 32px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.legal-page .legal-content {
  white-space: pre-wrap;
  font-size: 15px;
  line-height: 1.8;
  color: var(--text-secondary);
}

.back-to-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 44px;
  height: 44px;
  border-radius: 22px;
  background: var(--primary);
  color: #FFF;
  border: none;
  font-size: 20px;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  transition: opacity 0.3s ease;
  z-index: 50;
}

.back-to-top.show {
  display: flex;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .features h2, .how-it-works h2, .cta-section h2 { font-size: 28px; }
  .examples h2 { font-size: 28px; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  nav .nav-links a:not(.cta-btn) { display: none; }
  nav .nav-links { gap: 12px; }
}
