/* ============================================
   VESSL - Landing Page Styles
   ============================================ */

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

:root {
  --primary: #636BF1;
  --primary-light: #818BF8;
  --primary-dark: #4A50D4;
  --secondary: #F69E0E;
  --secondary-light: #FBBC04;
  --bg: #FAFAFA;
  --bg-dark: #0C0C14;
  --surface: #FFFFFF;
  --surface-dark: #1A1A2E;
  --text-primary: #1A1A2E;
  --text-secondary: #6B7280;
  --text-tertiary: #9CA3AF;
  --gradient-primary: linear-gradient(135deg, #636BF1 0%, #818BF8 50%, #A78BFA 100%);
  --gradient-hero: linear-gradient(180deg, #636BF1 0%, #4A50D4 100%);
  --gradient-dark: linear-gradient(180deg, #0C0C14 0%, #1A1A2E 100%);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 999px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 20px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 40px rgba(0,0,0,0.12);
  --shadow-xl: 0 16px 60px rgba(0,0,0,0.16);
  --shadow-glow: 0 0 60px rgba(99,107,241,0.3);
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'SF Pro Rounded', 'Segoe UI', Roboto, sans-serif;
  color: var(--text-primary);
  background: var(--bg);
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
}

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

/* --- Utility --- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.container--narrow {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 24px;
}

/* --- Animations (scroll-triggered) --- */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.reveal-left {
  opacity: 0;
  transform: translateX(-60px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.reveal-right {
  opacity: 0;
  transform: translateX(60px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-right.visible {
  opacity: 1;
  transform: translateX(0);
}

.reveal-scale {
  opacity: 0;
  transform: scale(0.9);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-scale.visible {
  opacity: 1;
  transform: scale(1);
}

.stagger-1 { transition-delay: 0.1s; }
.stagger-2 { transition-delay: 0.2s; }
.stagger-3 { transition-delay: 0.3s; }
.stagger-4 { transition-delay: 0.4s; }
.stagger-5 { transition-delay: 0.5s; }

/* --- Navigation --- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 16px 0;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav.scrolled {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  padding: 12px 0;
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #fff;
  transition: color 0.4s;
}

.nav.scrolled .nav__logo {
  color: var(--text-primary);
}

.nav__logo-icon {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  overflow: hidden;
  flex-shrink: 0;
}

.nav__logo-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

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

.nav__links a {
  font-size: 0.875rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.8);
  transition: color 0.3s;
  letter-spacing: 0.02em;
}

.nav.scrolled .nav__links a {
  color: var(--text-secondary);
}

.nav__links a:hover {
  color: #fff;
}

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

.nav__cta {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  padding: 8px 20px;
  border-radius: var(--radius-full);
  font-size: 0.875rem;
  font-weight: 600;
  color: #fff !important;
  transition: all 0.3s;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.nav.scrolled .nav__cta {
  background: var(--primary);
  color: #fff !important;
  border-color: var(--primary);
}

.nav__cta:hover {
  background: rgba(255, 255, 255, 0.25) !important;
  transform: translateY(-1px);
}

.nav.scrolled .nav__cta:hover {
  background: var(--primary-dark) !important;
}

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

.nav__toggle span {
  width: 22px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: all 0.3s;
}

.nav.scrolled .nav__toggle span {
  background: var(--text-primary);
}

/* --- Hero Section --- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient-hero);
  overflow: hidden;
  padding: 120px 24px 80px;
}

.hero__bg-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.3;
  animation: float 8s ease-in-out infinite;
}

.hero__bg-orb--1 {
  width: 400px;
  height: 400px;
  background: #A78BFA;
  top: -100px;
  right: -100px;
  animation-delay: 0s;
}

.hero__bg-orb--2 {
  width: 300px;
  height: 300px;
  background: var(--secondary);
  bottom: -50px;
  left: -50px;
  animation-delay: -3s;
  opacity: 0.15;
}

.hero__bg-orb--3 {
  width: 200px;
  height: 200px;
  background: #818BF8;
  top: 40%;
  left: 20%;
  animation-delay: -5s;
  opacity: 0.2;
}

@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, -30px) scale(1.05); }
  66% { transform: translate(-20px, 20px) scale(0.95); }
}

.hero__content {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero__text {
  color: #fff;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 6px 16px;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  margin-bottom: 24px;
  color: rgba(255, 255, 255, 0.9);
}

.hero__badge-dot {
  width: 6px;
  height: 6px;
  background: var(--secondary-light);
  border-radius: 50%;
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.5); }
}

.hero__title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
}

.hero__title span {
  display: block;
  background: linear-gradient(135deg, #fff 0%, rgba(255,255,255,0.7) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero__title .hero__title-accent {
  background: linear-gradient(135deg, var(--secondary-light) 0%, var(--secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero__subtitle {
  font-size: 1.125rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 36px;
  max-width: 460px;
}

.hero__actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: var(--radius-full);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  letter-spacing: 0.01em;
}

.btn--primary {
  background: #fff;
  color: var(--primary);
}

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

.btn--ghost {
  background: transparent;
  color: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.25);
}

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

.btn--dark {
  background: var(--primary);
  color: #fff;
}

.btn--dark:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow);
}

.btn svg {
  width: 20px;
  height: 20px;
}

/* Hero phone mockup */
.hero__phone-wrapper {
  display: flex;
  justify-content: center;
  perspective: 1000px;
}

/* --- iPhone Glass Mockup --- */
.phone-mockup {
  position: relative;
  width: 280px;
  background: #1A1A2E;
  border-radius: 44px;
  padding: 4px;
  box-shadow:
    0 0 0 1.5px rgba(255,255,255,0.1),
    0 20px 60px rgba(0, 0, 0, 0.4),
    inset 0 0 0 1px rgba(255,255,255,0.05);
  animation: phone-float 6s ease-in-out infinite;
}

.phone-mockup--large {
  width: 300px;
}

@keyframes phone-float {
  0%, 100% { transform: translateY(0) rotateY(-2deg); }
  50% { transform: translateY(-12px) rotateY(2deg); }
}

.phone-mockup__notch {
  display: none;
}

.phone-mockup__screen {
  width: 100%;
  border-radius: 40px;
  overflow: hidden;
  background: #000;
}

.phone-mockup__screen img {
  width: 100%;
  height: auto;
  object-fit: contain;
  object-position: top;
}

/* Glass reflection */
.phone-mockup::after {
  content: '';
  position: absolute;
  top: 4px;
  left: 4px;
  right: 50%;
  bottom: 50%;
  background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, transparent 60%);
  border-radius: 40px 0 0 0;
  pointer-events: none;
  z-index: 5;
}

/* --- Stats Bar --- */
.stats {
  background: #fff;
  border-bottom: 1px solid rgba(0,0,0,0.04);
  padding: 48px 0;
}

.stats__inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  text-align: center;
}

.stats__item {
  padding: 0 16px;
}

.stats__number {
  font-size: 2.5rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--primary);
  line-height: 1;
  margin-bottom: 4px;
}

.stats__label {
  font-size: 0.85rem;
  color: var(--text-secondary);
  font-weight: 500;
}

/* --- Section Shared --- */
.section {
  padding: 100px 0;
}

.section--dark {
  background: var(--bg-dark);
  color: #fff;
}

.section--gray {
  background: #F3F4F6;
}

.section__label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--primary);
  margin-bottom: 12px;
}

.section--dark .section__label {
  color: var(--primary-light);
}

.section__label::before {
  content: '';
  width: 24px;
  height: 2px;
  background: var(--primary);
  border-radius: 2px;
}

.section--dark .section__label::before {
  background: var(--primary-light);
}

.section__title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 16px;
}

.section__subtitle {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 560px;
  line-height: 1.7;
}

.section--dark .section__subtitle {
  color: rgba(255, 255, 255, 0.6);
}

/* --- Features Grid --- */
.features {
  padding: 100px 0;
}

.features__header {
  text-align: center;
  margin-bottom: 64px;
}

.features__header .section__subtitle {
  margin: 0 auto;
}

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

.feature-card {
  background: var(--surface);
  border: 1px solid rgba(0, 0, 0, 0.05);
  border-radius: var(--radius-xl);
  padding: 36px 28px;
  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: 3px;
  background: var(--gradient-primary);
  opacity: 0;
  transition: opacity 0.4s;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(99, 107, 241, 0.1);
}

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

.feature-card__icon {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, rgba(99, 107, 241, 0.1), rgba(99, 107, 241, 0.05));
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: var(--primary);
}

.feature-card__icon svg {
  width: 24px;
  height: 24px;
}

.feature-card__title {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}

.feature-card__desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

/* --- How It Works --- */
.how-it-works__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  margin-top: 64px;
}

.how-it-works__steps {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.step {
  display: flex;
  gap: 20px;
  padding: 20px;
  border-radius: var(--radius-lg);
  transition: all 0.3s;
  cursor: default;
}

.step:hover {
  background: rgba(99, 107, 241, 0.04);
}

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

.step__content h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 4px;
  letter-spacing: -0.01em;
}

.step__content p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.how-it-works__phones {
  display: flex;
  gap: 20px;
  justify-content: center;
  align-items: flex-start;
}

.how-it-works__phones .phone-mockup:nth-child(2) {
  margin-top: 40px;
  animation-delay: -2s;
}

/* --- Showcase (Dark Section) --- */
.showcase__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  margin-top: 64px;
}

.showcase__grid--reverse {
  direction: rtl;
}

.showcase__grid--reverse > * {
  direction: ltr;
}

.showcase__features {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-top: 32px;
}

.showcase__feature {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.showcase__feature-icon {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  background: rgba(99, 107, 241, 0.15);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-light);
}

.showcase__feature-icon svg {
  width: 20px;
  height: 20px;
}

.showcase__feature h4 {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 2px;
}

.showcase__feature p {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.5);
  line-height: 1.5;
}

.showcase__phone {
  display: flex;
  justify-content: center;
}

/* --- Gamification Section --- */
.gamification__items {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}

.gamification-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius-xl);
  padding: 32px 24px;
  text-align: center;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.gamification-card:hover {
  background: rgba(255,255,255,0.06);
  transform: translateY(-4px);
  border-color: rgba(99, 107, 241, 0.2);
}

.gamification-card__icon {
  margin-bottom: 16px;
  color: var(--primary-light);
}

.gamification-card__icon svg {
  width: 40px;
  height: 40px;
}

.gamification-card__title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.gamification-card__desc {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.5);
  line-height: 1.6;
}

/* --- Dark Mode Showcase (Single Card Transition) --- */
.darkmode-section {
  transition: background 0.8s cubic-bezier(0.16, 1, 0.3, 1), color 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.darkmode-section.is-dark {
  background: var(--bg-dark);
}

.darkmode-title,
.darkmode-subtitle,
.darkmode-label,
.darkmode-mode-label {
  transition: color 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.darkmode-section.is-dark .darkmode-title {
  color: #fff;
}

.darkmode-section.is-dark .darkmode-subtitle {
  color: rgba(255, 255, 255, 0.6);
}

.darkmode-section.is-dark .darkmode-label {
  color: var(--primary-light);
}

.darkmode-section.is-dark .darkmode-label::before {
  background: var(--primary-light);
}

.darkmode-section.is-dark .darkmode-mode-label {
  color: rgba(255, 255, 255, 0.5);
}

.darkmode-card-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.darkmode-mode-label {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-secondary);
  transition: color 0.6s;
}

.darkmode-card-wrap .phone-mockup {
  transition: background 0.8s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.darkmode-section.is-dark .darkmode-card-wrap .phone-mockup {
  background: #000 !important;
  box-shadow:
    0 0 0 2px rgba(255,255,255,0.08),
    0 20px 60px rgba(0, 0, 0, 0.6),
    0 0 80px rgba(99, 107, 241, 0.15);
}

.darkmode-img {
  width: 100%;
  height: auto;
  object-fit: contain;
  object-position: top;
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.darkmode-img--light {
  display: block;
}

.darkmode-img--dark {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  opacity: 0;
}

.darkmode-section.is-dark .darkmode-img--light {
  opacity: 0;
}

.darkmode-section.is-dark .darkmode-img--dark {
  opacity: 1;
}

.darkmode-card-wrap .phone-mockup__screen {
  position: relative;
}

/* --- CTA Section --- */
.cta {
  padding: 120px 0;
  text-align: center;
  background: var(--gradient-hero);
  position: relative;
  overflow: hidden;
}

.cta__bg-orb {
  position: absolute;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.2;
}

.cta__bg-orb--1 {
  background: var(--secondary);
  top: -100px;
  left: -100px;
}

.cta__bg-orb--2 {
  background: #A78BFA;
  bottom: -100px;
  right: -100px;
}

.cta__content {
  position: relative;
  z-index: 2;
}

.cta__title {
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.03em;
  margin-bottom: 16px;
}

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

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

/* App Store badge */
.app-store-badge {
  height: 52px;
  transition: transform 0.3s;
}

.app-store-badge:hover {
  transform: scale(1.05);
}

/* --- Footer --- */
.footer {
  background: var(--bg-dark);
  color: rgba(255,255,255,0.6);
  padding: 60px 0 32px;
}

.footer__inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer__brand p {
  font-size: 0.85rem;
  line-height: 1.7;
  margin-top: 12px;
  max-width: 300px;
}

.footer__logo {
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #fff;
}

.footer__col h4 {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(255,255,255,0.4);
  margin-bottom: 16px;
}

.footer__col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer__col ul a {
  font-size: 0.9rem;
  transition: color 0.3s;
}

.footer__col ul a:hover {
  color: #fff;
}

.footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.06);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
}

/* --- Legal Pages --- */
.legal-page {
  padding: 140px 0 80px;
  min-height: 100vh;
}

.legal-page h1 {
  font-size: 2.5rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 8px;
}

.legal-page .legal-date {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 48px;
}

.legal-page h2 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-top: 36px;
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}

.legal-page p, .legal-page li {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 12px;
}

.legal-page ul {
  padding-left: 24px;
  margin-bottom: 12px;
}

.legal-page a {
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Support page */
.support-hero {
  text-align: center;
  padding: 140px 0 60px;
  background: var(--gradient-hero);
  color: #fff;
}

.support-hero h1 {
  font-size: 2.5rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 12px;
}

.support-hero p {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.7);
}

.support-content {
  padding: 60px 0 80px;
}

.support-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-bottom: 48px;
}

.support-card {
  background: var(--surface);
  border: 1px solid rgba(0,0,0,0.05);
  border-radius: var(--radius-xl);
  padding: 32px;
  transition: all 0.3s;
}

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

.support-card__icon {
  margin-bottom: 16px;
  color: var(--primary);
}

.support-card__icon svg {
  width: 32px;
  height: 32px;
}

.support-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.support-card p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.support-card a {
  color: var(--primary);
  font-weight: 600;
}

.faq-section h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 24px;
  letter-spacing: -0.02em;
}

.faq-item {
  border-bottom: 1px solid rgba(0,0,0,0.06);
}

.faq-item summary {
  padding: 20px 0;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-item summary::after {
  content: '+';
  font-size: 1.3rem;
  color: var(--text-tertiary);
  transition: transform 0.3s;
}

.faq-item[open] summary::after {
  transform: rotate(45deg);
}

.faq-item p {
  padding: 0 0 20px;
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

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

  .hero__subtitle {
    margin: 0 auto 36px;
  }

  .hero__actions {
    justify-content: center;
  }

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

  .how-it-works__grid,
  .showcase__grid,
  .showcase__grid--reverse {
    grid-template-columns: 1fr;
    gap: 48px;
    text-align: center;
  }

  .showcase__grid--reverse {
    direction: ltr;
  }

  .showcase__phone {
    order: -1;
  }

  .showcase__features {
    align-items: center;
  }

  .footer__inner {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
}

@media (max-width: 768px) {
  .nav__links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    flex-direction: column;
    padding: 24px;
    gap: 16px;
    box-shadow: var(--shadow-lg);
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  }

  .nav__links.active {
    display: flex;
  }

  .nav__links a {
    color: var(--text-primary) !important;
    font-size: 1rem;
  }

  .nav__toggle {
    display: flex;
  }

  .hero {
    min-height: auto;
    padding: 120px 24px 60px;
  }

  .stats__inner {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }

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

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

  .how-it-works__phones {
    flex-direction: column;
    align-items: center;
  }

  .how-it-works__phones .phone-mockup:nth-child(2) {
    margin-top: 0;
  }

  /* Stack showcase feature items vertically (icon on top, text below) */
  .showcase__feature {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 10px;
  }

  /* Stack step items vertically (number on top, text below) */
  .step {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 12px;
  }

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

  .footer__inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer__bottom {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }

  .phone-mockup {
    width: 270px;
    border-radius: 38px;
    padding: 3px;
  }

  .phone-mockup__screen {
    border-radius: 36px;
  }

  .phone-mockup--large {
    width: 290px;
  }

  /* Glass reflection thinner padding */
  .phone-mockup::after {
    top: 3px;
    left: 3px;
    border-radius: 36px 0 0 0;
  }
}

@media (max-width: 480px) {
  .hero__title {
    font-size: 2.2rem;
  }

  .section__title {
    font-size: 1.8rem;
  }

  .phone-mockup {
    width: 260px;
    border-radius: 34px;
    padding: 3px;
  }

  .phone-mockup__screen {
    border-radius: 32px;
  }

  .phone-mockup--large {
    width: 275px;
  }

  .phone-mockup::after {
    top: 3px;
    left: 3px;
    border-radius: 32px 0 0 0;
  }
}
