/* ===========================
   CSS Variables / Design Tokens
   =========================== */
:root {
  /* Brand Colors */
  --color-primary: #6c5ce7;
  --color-primary-dark: #5a4bd1;
  --color-primary-light: #a29bfe;
  --color-accent: #00cec9;
  --color-accent-dark: #00b5b0;

  /* Neutrals */
  --color-bg: #fafbff;
  --color-surface: #ffffff;
  --color-text: #1a1a2e;
  --color-text-secondary: #6b7280;
  --color-text-light: #9ca3af;
  --color-border: #e5e7eb;

  /* Gradients */
  --gradient-primary: linear-gradient(135deg, #6c5ce7 0%, #a29bfe 50%, #00cec9 100%);
  --gradient-hero-bg: linear-gradient(160deg, #f0edff 0%, #fafbff 40%, #e8fffe 100%);
  --gradient-card: linear-gradient(135deg, #6c5ce7 0%, #5a4bd1 100%);

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.12);
  --shadow-xl: 0 20px 60px rgba(108, 92, 231, 0.2);

  /* Typography */
  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Spacing */
  --section-padding: 100px 0;
  --container-max: 1140px;
  --border-radius: 12px;
  --border-radius-lg: 20px;

  /* Transitions */
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-family);
  color: var(--color-text);
  background-color: var(--color-bg);
  line-height: 1.6;
  overflow-x: hidden;
}

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

ul {
  list-style: none;
}

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

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

/* ===========================
   Buttons
   =========================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-family);
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}

.btn-primary {
  background: var(--gradient-primary);
  color: #fff;
  padding: 14px 28px;
  box-shadow: 0 4px 20px rgba(108, 92, 231, 0.35);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(108, 92, 231, 0.45);
}

.btn-ghost {
  background: transparent;
  color: var(--color-text);
  padding: 14px 28px;
  border: 2px solid var(--color-border);
}

.btn-ghost:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.btn-nav {
  background: var(--color-primary);
  color: #fff;
  padding: 10px 22px;
  border-radius: 8px;
}

.btn-nav:hover {
  background: var(--color-primary-dark);
}

.btn-lg {
  font-size: 1.05rem;
  padding: 16px 32px;
}

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

.navbar.scrolled {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: var(--shadow-sm);
  padding: 10px 0;
}

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

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.3rem;
}

.logo-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: var(--gradient-primary);
  color: #fff;
  border-radius: 10px;
  font-weight: 800;
  font-size: 1.1rem;
}

.logo-text {
  color: var(--color-text);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
}

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

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

.nav-links .btn-nav {
  color: #fff;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-text);
  border-radius: 2px;
  transition: var(--transition);
}

/* ===========================
   Section Common
   =========================== */
.section-header {
  text-align: center;
  margin-bottom: 64px;
}

.section-tag {
  display: inline-block;
  background: rgba(108, 92, 231, 0.1);
  color: var(--color-primary);
  font-weight: 600;
  font-size: 0.85rem;
  padding: 6px 16px;
  border-radius: 50px;
  margin-bottom: 16px;
  letter-spacing: 0.03em;
}

.section-title {
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 16px;
  color: var(--color-text);
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--color-text-secondary);
  max-width: 520px;
  margin: 0 auto;
}

/* ===========================
   Hero Section
   =========================== */
.hero {
  position: relative;
  padding: 140px 0 100px;
  background: var(--gradient-hero-bg);
  overflow: hidden;
}

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

.shape {
  position: absolute;
  border-radius: 50%;
  opacity: 0.4;
}

.shape-1 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(108, 92, 231, 0.15) 0%, transparent 70%);
  top: -100px;
  right: -100px;
}

.shape-2 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(0, 206, 201, 0.12) 0%, transparent 70%);
  bottom: -50px;
  left: -80px;
}

.shape-3 {
  width: 250px;
  height: 250px;
  background: radial-gradient(circle, rgba(162, 155, 254, 0.2) 0%, transparent 70%);
  top: 30%;
  left: 40%;
}

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

.hero-badge {
  display: inline-block;
  background: rgba(108, 92, 231, 0.1);
  color: var(--color-primary);
  font-weight: 600;
  font-size: 0.85rem;
  padding: 8px 18px;
  border-radius: 50px;
  margin-bottom: 24px;
  letter-spacing: 0.02em;
}

.hero-title {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 24px;
}

.gradient-text {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

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

.hero-cta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 28px;
}

.stat-number {
  display: block;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--color-text);
}

.stat-label {
  font-size: 0.85rem;
  color: var(--color-text-light);
}

.stat-divider {
  width: 1px;
  height: 40px;
  background: var(--color-border);
}

/* Phone Mockup */
.hero-visual {
  display: flex;
  justify-content: center;
}

.phone-mockup {
  perspective: 1000px;
}

.phone-frame {
  width: 280px;
  background: var(--color-text);
  border-radius: 36px;
  padding: 12px;
  box-shadow: var(--shadow-xl), 0 0 0 1px rgba(255, 255, 255, 0.1) inset;
  transform: rotateY(-5deg) rotateX(2deg);
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.phone-frame:hover {
  transform: rotateY(0deg) rotateX(0deg);
}

.phone-screen {
  background: #fff;
  border-radius: 26px;
  padding: 28px 20px;
  min-height: 420px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.screen-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.screen-tag {
  background: rgba(108, 92, 231, 0.1);
  color: var(--color-primary);
  font-weight: 600;
  font-size: 0.8rem;
  padding: 4px 12px;
  border-radius: 50px;
}

.screen-level {
  color: var(--color-text-light);
  font-size: 0.8rem;
}

.screen-content {
  font-size: 0.95rem;
  line-height: 1.8;
  color: var(--color-text);
  flex: 1;
}

.word-highlight {
  background: rgba(108, 92, 231, 0.12);
  color: var(--color-primary);
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: 600;
  cursor: pointer;
}

.screen-tooltip {
  background: var(--color-text);
  color: #fff;
  padding: 14px 18px;
  border-radius: 12px;
  animation: tooltipFloat 3s ease-in-out infinite;
}

.tooltip-word {
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 4px;
  color: var(--color-primary-light);
}

.tooltip-def {
  font-size: 0.85rem;
  opacity: 0.85;
}

@keyframes tooltipFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

/* ===========================
   Features Section
   =========================== */
.features {
  padding: var(--section-padding);
  background: var(--color-surface);
}

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

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

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

.feature-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  background: rgba(108, 92, 231, 0.1);
  color: var(--color-primary);
  border-radius: 14px;
  margin-bottom: 20px;
}

.feature-title {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.feature-desc {
  font-size: 0.95rem;
  color: var(--color-text-secondary);
  line-height: 1.6;
}

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

.steps {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  max-width: 600px;
  margin: 0 auto;
}

.step {
  display: flex;
  align-items: flex-start;
  gap: 24px;
  padding: 32px 0;
}

.step-number {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  background: var(--gradient-primary);
  color: #fff;
  font-weight: 800;
  font-size: 1.3rem;
  border-radius: 16px;
  box-shadow: 0 4px 16px rgba(108, 92, 231, 0.3);
}

.step-content h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 8px;
}

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

.step-connector {
  width: 2px;
  height: 32px;
  background: linear-gradient(to bottom, var(--color-primary-light), var(--color-accent));
  opacity: 0.3;
  border-radius: 2px;
}

/* ===========================
   Testimonials Section
   =========================== */
.testimonials {
  padding: var(--section-padding);
  background: var(--color-surface);
}

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

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

.testimonial-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.testimonial-stars {
  color: #fbbf24;
  font-size: 1.1rem;
  margin-bottom: 16px;
  letter-spacing: 2px;
}

.testimonial-text {
  font-size: 0.95rem;
  color: var(--color-text);
  line-height: 1.7;
  margin-bottom: 24px;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.author-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--gradient-primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
}

.author-name {
  font-weight: 600;
  font-size: 0.9rem;
}

.author-role {
  font-size: 0.8rem;
  color: var(--color-text-light);
}

/* ===========================
   Download / CTA Section
   =========================== */
.download {
  padding: var(--section-padding);
  background: var(--color-bg);
}

.download-card {
  position: relative;
  background: var(--gradient-card);
  border-radius: var(--border-radius-lg);
  padding: 72px 48px;
  text-align: center;
  overflow: hidden;
}

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

.dl-shape {
  position: absolute;
  border-radius: 50%;
}

.dl-shape-1 {
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
  top: -80px;
  right: -60px;
}

.dl-shape-2 {
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(0, 206, 201, 0.2) 0%, transparent 70%);
  bottom: -40px;
  left: -30px;
}

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

.download-content h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  font-weight: 800;
  color: #fff;
  margin-bottom: 16px;
}

.download-content p {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 36px;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

.download-buttons {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.store-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #fff;
  padding: 14px 24px;
  border-radius: 12px;
  transition: var(--transition);
}

.store-btn:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: translateY(-2px);
}

.store-label {
  display: block;
  font-size: 0.7rem;
  opacity: 0.8;
  text-align: left;
}

.store-name {
  display: block;
  font-weight: 700;
  font-size: 1.05rem;
  text-align: left;
}

/* ===========================
   Footer
   =========================== */
.footer {
  background: var(--color-text);
  color: rgba(255, 255, 255, 0.7);
  padding: 64px 0 32px;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-brand {
  max-width: 280px;
}

.footer .logo-text {
  color: #fff;
}

.footer-tagline {
  margin-top: 12px;
  font-size: 0.9rem;
  line-height: 1.6;
}

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

.footer-col h4 {
  color: #fff;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 16px;
}

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

.footer-col a {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.6);
}

.footer-col a:hover {
  color: #fff;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 24px;
  text-align: center;
  font-size: 0.85rem;
}

/* ===========================
   Animations (scroll reveal)
   =========================== */
[data-animate] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

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

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

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

  .hero-visual {
    order: -1;
  }

  .phone-frame {
    width: 240px;
    transform: none;
  }

  .phone-frame:hover {
    transform: none;
  }

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

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

  .footer-top {
    flex-direction: column;
  }
}

@media (max-width: 640px) {
  :root {
    --section-padding: 72px 0;
  }

  .hero {
    padding: 120px 0 72px;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--color-surface);
    flex-direction: column;
    padding: 24px;
    gap: 16px;
    box-shadow: var(--shadow-lg);
    border-radius: 0 0 16px 16px;
  }

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

  .nav-toggle {
    display: flex;
  }

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

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

  .download-card {
    padding: 48px 24px;
  }

  .footer-links-group {
    flex-direction: column;
    gap: 32px;
  }

  .hero-stats {
    flex-direction: column;
    gap: 16px;
  }

  .stat-divider {
    width: 40px;
    height: 1px;
  }

  .phone-screen {
    min-height: 360px;
  }
}
