/* ===== Variables & Reset ===== */
:root {
  --color-primary: #2878B5;
  --color-primary-light: #3490CA;
  --color-accent: #50A0D0;
  --color-accent-light: #6BB5DD;
  --color-bg: #FFFFFF;
  --color-bg-alt: #F5F9FD;
  --color-bg-dark: #1A5276;
  --color-text: #1A1A2E;
  --color-text-muted: #5A6478;
  --color-border: #E2E8F0;
  --font-stack: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --max-width: 1080px;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.08), 0 2px 4px rgba(0,0,0,0.04);
  --shadow-lg: 0 12px 40px rgba(0,0,0,0.12), 0 4px 8px rgba(0,0,0,0.04);
  --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: var(--font-stack);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* ===== Scroll Reveal ===== */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1), transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* stagger children */
.features-grid .reveal:nth-child(2) { transition-delay: 0.1s; }
.features-grid .reveal:nth-child(3) { transition-delay: 0.2s; }
.features-grid .reveal:nth-child(4) { transition-delay: 0.3s; }
.policy-grid .reveal:nth-child(2) { transition-delay: 0.1s; }
.policy-grid .reveal:nth-child(3) { transition-delay: 0.2s; }
.policy-grid .reveal:nth-child(4) { transition-delay: 0.3s; }

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

/* ===== Navigation ===== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border-bottom: 1px solid rgba(226, 232, 240, 0.6);
}

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

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--color-primary);
  text-decoration: none;
  letter-spacing: -0.02em;
}

.nav-logo-img {
  width: 60px;
  height: 60px;
  border-radius: 14px;
  object-fit: cover;
}

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

.nav-links a {
  color: var(--color-text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color var(--transition);
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-primary);
  border-radius: 1px;
  transition: width var(--transition);
}

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

.nav-links a:hover::after {
  width: 100%;
}

/* ===== Hero ===== */
.hero {
  position: relative;
  padding: 140px 0 100px;
  background: linear-gradient(170deg, #E8F2FA 0%, #F5F9FD 40%, var(--color-bg) 100%);
  overflow: hidden;
}

.hero-bg-pattern {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 50%, rgba(40, 120, 181, 0.05) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(52, 144, 202, 0.04) 0%, transparent 50%);
  pointer-events: none;
}

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

.hero-content {
  text-align: left;
}

.hero-badge {
  display: inline-block;
  padding: 6px 16px;
  background: linear-gradient(135deg, var(--color-primary), #3490CA);
  color: white;
  font-size: 0.78rem;
  font-weight: 600;
  border-radius: 100px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 24px;
}

.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  font-weight: 800;
  color: var(--color-primary);
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 20px;
}

.hero-description {
  font-size: 1.1rem;
  color: var(--color-text-muted);
  max-width: 480px;
  line-height: 1.7;
  margin-bottom: 36px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

/* ===== Store Buttons ===== */
.store-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: all var(--transition);
  border: 2px solid transparent;
}

.store-btn-apple {
  background: var(--color-text);
  color: white;
}

.store-btn-apple:hover {
  background: #333;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.store-btn-google {
  background: white;
  color: var(--color-text);
  border-color: var(--color-border);
}

.store-btn-google:hover {
  border-color: var(--color-text-muted);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.store-icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

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

.store-label {
  font-size: 0.65rem;
  font-weight: 500;
  opacity: 0.8;
  letter-spacing: 0.02em;
}

.store-name {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

/* ===== App Screenshot ===== */
.hero-phone {
  display: flex;
  justify-content: center;
}

.hero-screenshot {
  width: 280px;
  max-width: 50%;
  height: auto;
  border-radius: 36px;
  box-shadow:
    0 24px 60px rgba(0,0,0,0.18),
    0 8px 20px rgba(0,0,0,0.12);
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-screenshot:hover {
  transform: scale(1.02);
}

/* ===== Sections Common ===== */
section {
  padding: 100px 0;
}

section h2 {
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  font-weight: 800;
  color: var(--color-primary);
  text-align: center;
  letter-spacing: -0.03em;
  margin-bottom: 8px;
}

.section-subtitle {
  text-align: center;
  color: var(--color-text-muted);
  font-size: 1.05rem;
  margin-bottom: 56px;
}

/* ===== Features ===== */
.features {
  background: var(--color-bg);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.feature-card {
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 36px 32px;
  transition: all var(--transition);
}

.feature-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
  border-color: transparent;
}

.feature-icon {
  width: 52px;
  height: 52px;
  background: var(--color-primary);
  color: white;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.feature-icon-accent {
  background: var(--color-accent);
}

.feature-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}

.feature-card p {
  color: var(--color-text-muted);
  font-size: 0.95rem;
  line-height: 1.65;
}

/* ===== How It Works ===== */
.how-it-works {
  background: var(--color-bg-alt);
}

.steps {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  max-width: 900px;
  margin: 0 auto;
}

.step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  flex: 1;
  max-width: 240px;
}

.step-number {
  width: 56px;
  height: 56px;
  background: var(--color-primary);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  font-weight: 800;
  margin-bottom: 20px;
  box-shadow: 0 4px 12px rgba(40, 120, 181, 0.3);
}

.step-connector {
  width: 60px;
  height: 2px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
  border-radius: 1px;
  flex-shrink: 0;
  margin-bottom: 60px;
}

.step-content h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 6px;
  letter-spacing: -0.01em;
}

.step-content p {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  line-height: 1.6;
}

/* ===== Agencies ===== */
.agencies {
  background: var(--color-bg);
  padding: 80px 0;
}

.agency-strip {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.agency-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-radius: 100px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--color-text);
  transition: all var(--transition);
}

.agency-chip:hover {
  box-shadow: var(--shadow-sm);
  transform: translateY(-1px);
}

.agency-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

/* ===== Privacy Policy ===== */
.privacy {
  background: var(--color-bg-alt);
}

.policy-content > p {
  text-align: center;
  color: var(--color-text-muted);
  max-width: 640px;
  margin: 0 auto 48px;
  font-size: 1.05rem;
  line-height: 1.7;
}

.policy-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-bottom: 32px;
}

.policy-card {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 32px;
  transition: all var(--transition);
}

.policy-card:hover {
  box-shadow: var(--shadow-sm);
}

.policy-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 12px;
}

.policy-card p {
  color: var(--color-text-muted);
  font-size: 0.93rem;
  line-height: 1.7;
}

.policy-card ul {
  list-style: none;
  padding: 0;
}

.policy-card ul li {
  color: var(--color-text-muted);
  font-size: 0.93rem;
  line-height: 1.7;
  padding-left: 22px;
  position: relative;
}

.policy-card ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 8px;
  height: 8px;
  background: var(--color-accent);
  border-radius: 50%;
}

.policy-summary {
  background: var(--color-bg);
  border: 2px solid var(--color-accent);
  border-radius: var(--radius);
  padding: 28px 32px;
  text-align: center;
}

.policy-summary p {
  color: var(--color-text);
  font-size: 0.98rem;
  line-height: 1.7;
}

/* ===== Support ===== */
.support {
  background: var(--color-bg);
}

.support-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  max-width: 720px;
  margin: 0 auto;
}

.support-card {
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 40px 32px;
  text-align: center;
  transition: all var(--transition);
}

.support-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
  border-color: transparent;
}

.support-icon {
  width: 64px;
  height: 64px;
  background: var(--color-primary);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}

.support-icon-alt {
  background: var(--color-primary-light);
}

.support-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 8px;
}

.support-card p {
  color: var(--color-text-muted);
  font-size: 0.93rem;
  margin-bottom: 20px;
  line-height: 1.6;
}

.support-link {
  display: inline-block;
  color: var(--color-primary);
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  padding: 10px 24px;
  border: 2px solid var(--color-primary);
  border-radius: var(--radius-sm);
  transition: all var(--transition);
}

.support-link:hover {
  background: var(--color-primary);
  color: white;
}

/* ===== Legal Pages (Privacy Policy, Terms) ===== */
.legal-page {
  padding: 140px 0 80px;
  min-height: 100vh;
}

.legal-page h1 {
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 800;
  color: var(--color-primary);
  letter-spacing: -0.03em;
  margin-bottom: 8px;
}

.legal-effective {
  color: var(--color-text-muted);
  font-size: 0.95rem;
  margin-bottom: 48px;
}

.legal-content {
  max-width: 760px;
  line-height: 1.8;
  color: var(--color-text);
}

.legal-content h2 {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-top: 40px;
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}

.legal-content h3 {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--color-text);
  margin-top: 24px;
  margin-bottom: 8px;
}

.legal-content p {
  margin-bottom: 16px;
  font-size: 0.95rem;
  color: var(--color-text-muted);
}

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

.legal-content ul li {
  color: var(--color-text-muted);
  font-size: 0.95rem;
  line-height: 1.8;
  padding-left: 22px;
  position: relative;
}

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

.legal-content a {
  color: var(--color-primary);
  text-decoration: none;
  font-weight: 500;
  border-bottom: 1px solid transparent;
  transition: border-color var(--transition);
}

.legal-content a:hover {
  border-bottom-color: var(--color-primary);
}

.legal-content code {
  background: var(--color-bg-alt);
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.88rem;
  border: 1px solid var(--color-border);
}

.nav-links a.active {
  color: var(--color-primary);
  font-weight: 600;
}

/* ===== Footer ===== */
.footer {
  background: var(--color-bg-dark);
  padding: 48px 0;
}

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

.footer-brand {
  font-size: 1.1rem;
  font-weight: 700;
  color: white;
  letter-spacing: -0.02em;
}

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

.footer-links a {
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color var(--transition);
}

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

.footer-copy {
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.85rem;
}

/* ===== Floating Action Button ===== */
.fab {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 90;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  background: var(--color-primary);
  color: white;
  text-decoration: none;
  border-radius: 100px;
  box-shadow: 0 6px 20px rgba(40, 120, 181, 0.35);
  transition: all var(--transition);
  font-weight: 600;
  font-size: 0.88rem;
}

.fab:hover {
  background: var(--color-primary-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(40, 120, 181, 0.45);
}

.fab svg {
  flex-shrink: 0;
}

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

  .hero-content {
    text-align: center;
    order: 1;
  }

  .hero-phone {
    order: 2;
  }

  .hero-description {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-actions {
    justify-content: center;
  }
}

@media (max-width: 768px) {
  .hero {
    padding: 120px 0 72px;
  }

  section {
    padding: 72px 0;
  }

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

  .support-grid {
    grid-template-columns: 1fr;
    max-width: 400px;
  }

  .steps {
    flex-direction: column;
    gap: 0;
  }

  .step {
    max-width: 100%;
  }

  .step-connector {
    width: 2px;
    height: 32px;
    margin-bottom: 0;
  }

  .nav-links {
    display: none;
  }

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

  .hero-screenshot {
    width: 220px;
  }

  .fab-label {
    display: none;
  }

  .fab {
    padding: 16px;
    border-radius: 50%;
  }
}

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

  .hero {
    padding: 110px 0 56px;
  }

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

  .store-btn {
    width: 100%;
    max-width: 260px;
    justify-content: center;
  }

  .feature-card,
  .policy-card,
  .support-card {
    padding: 28px 24px;
  }

  .nav-links {
    gap: 12px;
  }

  .agency-chip {
    font-size: 0.82rem;
    padding: 8px 14px;
  }
}
