/* DocenTour Landing Page Styles */

/* ===== CSS Variables ===== */
:root {
  /* Colors */
  --color-primary: #1E90FF;
  --color-primary-dark: #0066CC;
  --color-bg-dark: #0A1628;
  --color-bg-darker: #050D1A;
  --color-bg-card: rgba(255, 255, 255, 0.05);
  --color-bg-card-hover: rgba(255, 255, 255, 0.1);
  --color-text-primary: #FFFFFF;
  --color-text-secondary: rgba(255, 255, 255, 0.7);
  --color-text-muted: rgba(255, 255, 255, 0.5);
  --color-gradient-start: #7B68EE;
  --color-gradient-mid: #1E90FF;
  --color-gradient-end: #00D4FF;
  --color-border: rgba(255, 255, 255, 0.1);

  /* Typography */
  --font-main: 'Outfit', 'Noto Sans KR', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Spacing */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 1.5rem;
  --spacing-lg: 2rem;
  --spacing-xl: 3rem;
  --spacing-2xl: 4rem;
  --spacing-3xl: 6rem;

  /* Border Radius */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-full: 9999px;

  /* Transitions */
  --transition-fast: 0.15s ease;
  --transition-normal: 0.3s ease;
  --transition-slow: 0.5s ease;

  /* Shadows */
  --shadow-glow: 0 0 40px rgba(30, 144, 255, 0.3);
  --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.2);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-main);
  background-color: var(--color-bg-dark);
  color: var(--color-text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  word-break: keep-all;
}

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

img {
  max-width: 100%;
  height: auto;
}

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

/* ===== Language Toggle ===== */
.lang-toggle {
  display: flex;
  gap: 4px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: var(--radius-full);
  padding: 4px;
  border: 1px solid var(--color-border);
  margin-left: auto;
  margin-right: var(--spacing-sm);
}

/* Hidden on desktop - shown in mobile drawer */
.drawer-lang-toggle {
  display: none;
}

/* Mobile download button - hidden on desktop */
.mobile-download-btn {
  display: none;
}

.lang-btn {
  background: transparent;
  border: none;
  color: var(--color-text-secondary);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: var(--transition-fast);
}

.lang-btn.active {
  background: var(--color-primary);
  color: white;
}

.lang-btn:hover:not(.active) {
  color: var(--color-text-primary);
}

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

.navbar.scrolled {
  background: rgba(10, 22, 40, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--color-border);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--spacing-md);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-left {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: var(--spacing-xs);
}

.logo-img {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
}

.logo-text {
  font-size: 1.25rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--color-gradient-start), var(--color-gradient-end));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--spacing-xl);
  margin-left: var(--spacing-2xl);
}

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

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

.nav-event-link {
  color: #F59E0B !important;
  font-weight: 600 !important;
}

.nav-cta {
  background: var(--color-primary);
  padding: 10px 20px !important;
  border-radius: var(--radius-full);
  color: white !important;
}

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

.mobile-menu-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px;
}

.mobile-menu-btn span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-text-primary);
  border-radius: 2px;
  transition: var(--transition-fast);
}

/* ===== Hero Section ===== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  padding: calc(80px + var(--spacing-xl)) var(--spacing-md) var(--spacing-xl);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 30% 20%, rgba(123, 104, 238, 0.15) 0%, transparent 50%),
    radial-gradient(ellipse at 70% 80%, rgba(0, 212, 255, 0.1) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 50%, rgba(30, 144, 255, 0.1) 0%, transparent 70%);
  z-index: 0;
}

.hero-content {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-2xl);
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-text {
  max-width: 560px;
}

.hero-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--spacing-sm);
  margin-bottom: var(--spacing-lg);
}

.hero-logo {
  width: 120px;
  height: 120px;
  border-radius: var(--radius-xl);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
}

.hero-brand-name {
  font-size: 2.5rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--color-gradient-start), var(--color-gradient-mid), var(--color-gradient-end));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-title {
  display: block;
  font-size: 2rem;
  font-weight: 400;
  line-height: 1.4;
  color: var(--color-text-secondary);
}

.hero-title-accent {
  display: block;
  font-size: 3.5rem;
  font-weight: 700;
  line-height: 1.2;
  margin-top: var(--spacing-xs);
  background: linear-gradient(135deg, var(--color-gradient-start), var(--color-gradient-mid), var(--color-gradient-end));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--color-text-secondary);
  margin-top: var(--spacing-lg);
  line-height: 1.7;
  white-space: pre-line;
}

.hero-buttons {
  display: flex;
  gap: var(--spacing-sm);
  margin-top: var(--spacing-xl);
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-xs);
  padding: 14px 28px;
  border-radius: var(--radius-lg);
  font-size: 1rem;
  font-weight: 600;
  transition: var(--transition-normal);
  cursor: pointer;
  border: none;
}

.btn-icon {
  width: 20px;
  height: 20px;
}

.btn-primary {
  background: var(--color-primary);
  color: white;
  box-shadow: var(--shadow-glow);
}

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

.btn-secondary {
  background: rgba(255, 255, 255, 0.1);
  color: white;
  border: 1px solid var(--color-border);
}

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

/* Hero Visual */
.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.phone-mockup {
  position: relative;
}

.phone-frame {
  width: 320px;
  height: 660px;
  background: linear-gradient(145deg, #1a1a2e, #0f0f1a);
  border-radius: 15% / 7.3%;
  padding: 12px;
  box-shadow:
    0 50px 100px rgba(0, 0, 0, 0.5),
    inset 0 0 0 1px rgba(255, 255, 255, 0.1);
  position: relative;
  overflow: hidden;
  border: none !important;
  outline: none !important;
}

.phone-frame::before {
  content: '';
  position: absolute;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 25px;
  background: #000;
  border-radius: 20px;
  z-index: 10;
}

.phone-screen {
  width: 100%;
  height: 100%;
  background: var(--color-bg-darker);
  border-radius: 12.2% / 5.7%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none !important;
  outline: none !important;
  box-shadow: none;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
}

.screen-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--spacing-sm);
  color: var(--color-text-muted);
  font-size: 0.875rem;
}

.placeholder-icon {
  font-size: 3rem;
}

.screen-placeholder.small {
  font-size: 0.75rem;
}

.screen-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}

.screen-slideshow {
  width: 100%;
  height: 100%;
  position: relative;
  border: none !important;
  outline: none !important;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
  overflow: hidden;
}

.screen-slide {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
  transition: opacity 0.8s ease-in-out;
  border: none !important;
  outline: none !important;
  -webkit-tap-highlight-color: transparent;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
  will-change: opacity;
  image-rendering: auto;
}

.screen-slide.active {
  opacity: 1;
}

.phone-glow {
  position: absolute;
  inset: -50px;
  background: radial-gradient(ellipse at center, rgba(30, 144, 255, 0.2) 0%, transparent 70%);
  z-index: -1;
}

/* Scroll Indicator */
.hero-scroll-indicator {
  position: absolute;
  bottom: var(--spacing-lg);
  left: 50%;
  transform: translateX(-50%);
}

.scroll-arrow {
  width: 24px;
  height: 40px;
  border: 2px solid var(--color-text-muted);
  border-radius: 12px;
  position: relative;
}

.scroll-arrow::before {
  content: '';
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 8px;
  background: var(--color-text-muted);
  border-radius: 2px;
  animation: scrollDown 2s ease-in-out infinite;
}

@keyframes scrollDown {

  0%,
  100% {
    opacity: 1;
    top: 8px;
  }

  50% {
    opacity: 0.3;
    top: 20px;
  }
}

/* ===== Section Headers ===== */
.section-header {
  text-align: center;
  margin-bottom: var(--spacing-2xl);
}

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: var(--spacing-sm);
}

.section-subtitle {
  font-size: 1.25rem;
  color: var(--color-text-secondary);
  word-break: keep-all;
}

/* ===== Features Section ===== */
.features {
  padding: 120px 0;
  background: var(--color-bg-darker);
  position: relative;
  overflow: hidden;
}

/* Background Grid Pattern */
.features::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}

/* Glow Orbs */
.features::after {
  content: '';
  position: absolute;
  top: 20%;
  left: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(123, 104, 238, 0.15) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

@keyframes float {

  0%,
  100% {
    transform: translate(0, 0);
  }

  50% {
    transform: translate(30px, -30px);
  }
}

/* Background Glow Orbs */
.bg-glow {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(60px);
}

.bg-glow-1 {
  top: 40%;
  right: -5%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(0, 212, 255, 0.12) 0%, transparent 70%);
}

.bg-glow-2 {
  bottom: 20%;
  left: 50%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(30, 144, 255, 0.08) 0%, transparent 70%);
}

.features .container {
  position: relative;
  z-index: 1;
}

.feature-row {
  display: flex;
  align-items: center;
  gap: var(--spacing-3xl);
  padding: 80px 0;
  position: relative;
  z-index: 1;
}

.feature-row.reverse {
  flex-direction: row-reverse;
}

.feature-text {
  flex: 1;
  max-width: 500px;
}

.feature-phone {
  flex: 1;
  display: flex;
  justify-content: center;
}

.feature-phones-dual {
  flex: 1;
  display: flex;
  justify-content: center;
  gap: 0;
  position: relative;
}

.feature-phones-dual .phone-frame-feature {
  width: 260px;
  height: 560px;
}

.feature-phones-dual .phone-frame-feature:first-child {
  transform: translateY(30px);
  z-index: 1;
}

.feature-phones-dual .phone-frame-feature:last-child {
  margin-left: -80px;
  z-index: 2;
}

.phone-frame-feature {
  width: 320px;
  height: 660px;
  background: linear-gradient(145deg, #1a1a2e, #0f0f1a);
  border-radius: 15% / 7.3%;
  padding: 6px;
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.5);
  overflow: hidden;
}

.feature-screenshot {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  border-radius: 13.6% / 6.5%;
}

.feature-icon {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, var(--color-gradient-start), var(--color-gradient-end));
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--spacing-md);
}

.feature-icon svg {
  width: 28px;
  height: 28px;
  color: white;
}

.feature-icon:has(.feature-icon-img) {
  width: 120px;
  height: 120px;
  background: none;
  border-radius: 0;
}

.feature-icon-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Route Optimization Before/After Layout */
.feature-route-compare {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-md);
}

.feature-route-compare .phone-frame-feature {
  width: 240px;
  height: 520px;
}

.route-arrow {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.route-arrow svg {
  width: 48px;
  height: 48px;
  color: var(--color-primary);
  filter: drop-shadow(0 0 12px rgba(59, 130, 246, 0.4));
}

.route-label {
  font-size: 0.75rem;
  color: var(--color-text-secondary);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Triple Phone Layout */
.feature-phones-triple {
  flex: 1;
  display: flex;
  justify-content: center;
  gap: 0;
  position: relative;
}

.feature-phones-triple .phone-frame-feature {
  width: 220px;
  height: 475px;
}

.feature-phones-triple .phone-frame-feature:nth-child(1) {
  transform: translateY(17%);
  z-index: 1;
}

.feature-phones-triple .phone-frame-feature:nth-child(2) {
  margin-left: -8%;
  transform: translateY(8.5%);
  z-index: 2;
}

.feature-phones-triple .phone-frame-feature:nth-child(3) {
  margin-left: -8%;
  z-index: 3;
}

.feature-title {
  font-size: 2.25rem;
  font-weight: 700;
  margin-bottom: var(--spacing-md);
}

.feature-desc {
  color: var(--color-text-secondary);
  font-size: 1.2rem;
  line-height: 1.8;
  max-width: 420px;
  line-height: 1.8;
  max-width: 420px;
  white-space: pre-line;
  word-break: keep-all;
}

@media (max-width: 768px) {

  .feature-row,
  .feature-row.reverse {
    flex-direction: column;
    text-align: center;
    gap: var(--spacing-xl);
  }

  .feature-text {
    max-width: 100%;
  }

  .feature-icon {
    margin-left: auto;
    margin-right: auto;
  }

  /* Fix for all phone frames on mobile */
  .phone-frame-feature {
    width: 260px;
    height: 560px;
  }

  /* Specific fix for dual phones on mobile */
  .feature-phones-dual .phone-frame-feature {
    width: 200px;
    height: 430px;
  }

  .feature-phones-dual .phone-frame-feature:first-child {
    transform: translateX(-20px) translateY(20px);
  }

  .feature-phones-dual .phone-frame-feature:last-child {
    margin-left: -90px;
    transform: translateX(20px);
  }

  /* Route compare on mobile */
  .feature-route-compare {
    flex-direction: row;
    gap: var(--spacing-sm);
  }

  .feature-route-compare .phone-frame-feature {
    width: 160px;
    height: 345px;
  }

  .route-arrow svg {
    width: 32px;
    height: 32px;
  }

  /* Triple phones on mobile */
  .feature-phones-triple .phone-frame-feature {
    width: 160px;
    height: 345px;
  }

  .feature-phones-triple .phone-frame-feature:nth-child(2) {
    margin-left: -40px;
  }

  .feature-phones-triple .phone-frame-feature:nth-child(3) {
    margin-left: -40px;
  }

  /* Specific fix for hero phone on mobile */
  .hero .phone-frame {
    width: 260px;
    height: 560px;
  }

  .feature-title {
    font-size: 1.5rem;
  }

  .feature-desc {
    font-size: 1.1rem;
  }
}

/* ===== How It Works Section ===== */
.how-it-works {
  padding: 120px 0;
  position: relative;
  overflow: hidden;
}

/* Glow Orb - Right Side */
.how-it-works::before {
  content: '';
  position: absolute;
  top: 30%;
  right: -15%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(0, 212, 255, 0.12) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

/* Glow Orb - Left Bottom */
.how-it-works::after {
  content: '';
  position: absolute;
  bottom: 10%;
  left: -10%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(123, 104, 238, 0.1) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

@keyframes floatReverse {

  0%,
  100% {
    transform: translate(0, 0);
  }

  50% {
    transform: translate(-20px, 20px);
  }
}

.scenarios {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--spacing-3xl);
  margin-top: var(--spacing-2xl);
  position: relative;
  z-index: 1;
}

.scenario {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: var(--spacing-2xl);
}

.scenario-header {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
  margin-bottom: var(--spacing-lg);
  padding-bottom: var(--spacing-md);
  border-bottom: 1px solid var(--color-border);
}

.scenario-icon {
  font-size: 2rem;
}

.scenario-title {
  font-size: 1.5rem;
  font-weight: 700;
}

.scenario-steps {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-lg);
}

.scenario-step {
  display: flex;
  flex-direction: row;
  /* Explicitly set direction */
  gap: 16px;
  align-items: flex-start;
  justify-content: flex-start;
  /* Ensure start alignment */
  padding: 0;
  /* Reset all padding */
  margin: 0;
  /* Reset all margin */
  width: 100%;
  /* Ensure full width */
}

.step-number {
  width: 36px;
  height: 36px;
  min-width: 36px;
  background: linear-gradient(135deg, var(--color-gradient-start), var(--color-gradient-end));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  font-weight: 700;
  flex-shrink: 0;
  margin: 0;
  /* Strict zero margin */
  padding: 0;
  /* Strict zero padding */
}

.step-content {
  padding-top: 2px;
  flex: 1;
  /* Allow content to take remaining space */
}

.step-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: var(--spacing-xs);
}

.step-desc {
  color: var(--color-text-secondary);
  font-size: 1.05rem;
  line-height: 1.6;
  line-height: 1.6;
  white-space: pre-line;
  word-break: keep-all;
}

@media (max-width: 768px) {
  .scenarios {
    grid-template-columns: 1fr;
  }

  .scenario {
    padding: var(--spacing-md);
  }
}

.step-connector {
  width: 2px;
  height: 40px;
  background: linear-gradient(to bottom, var(--color-gradient-start), var(--color-gradient-end));
  margin-left: 23px;
  opacity: 0.5;
}

/* ===== App Preview Section ===== */
.app-preview {
  padding: var(--spacing-3xl) 0;
  background: var(--color-bg-darker);
  overflow: hidden;
}

.preview-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-2xl);
  align-items: center;
}

.preview-screens {
  display: flex;
  justify-content: center;
  gap: var(--spacing-md);
  position: relative;
}

.preview-illustration {
  width: 100%;
  max-width: 280px;
  height: auto;
  border-radius: var(--radius-lg);
  filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.3));
  transition: var(--transition-normal);
}

.preview-illustration:hover {
  transform: translateY(-10px);
  filter: drop-shadow(0 30px 60px rgba(0, 0, 0, 0.4));
}

.preview-phone {
  transition: var(--transition-slow);
}

.preview-phone-1 {
  transform: translateY(20px) rotate(-5deg);
}

.preview-phone-2 {
  transform: scale(1.1);
  z-index: 1;
}

.preview-phone-3 {
  transform: translateY(20px) rotate(5deg);
}

.phone-frame-small {
  width: 160px;
  height: 340px;
  background: linear-gradient(145deg, #1a1a2e, #0f0f1a);
  border-radius: 17.5% / 8.2%;
  padding: 8px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.phone-frame-small .phone-screen {
  border-radius: 13.9% / 6.2%;
}

.preview-text {
  max-width: 480px;
}

.preview-title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: var(--spacing-md);
}

.preview-desc {
  font-size: 1.25rem;
  color: var(--color-text-secondary);
  line-height: 1.7;
  white-space: pre-line;
}

/* ===== Download CTA Section ===== */
.download-cta {
  padding: var(--spacing-3xl) 0;
  text-align: center;
  position: relative;
}

.download-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 50% 100%, rgba(30, 144, 255, 0.15) 0%, transparent 60%);
  z-index: 0;
}

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

.cta-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: var(--spacing-sm);
}

.cta-subtitle {
  font-size: 1.25rem;
  color: var(--color-text-secondary);
  margin-bottom: var(--spacing-xl);
  white-space: pre-line;
}

.download-buttons {
  display: flex;
  justify-content: center;
  gap: var(--spacing-md);
}

.store-btn {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid var(--color-border);
  padding: 12px 24px;
  border-radius: var(--radius-lg);
  transition: var(--transition-normal);
}

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

.store-icon svg {
  width: 28px;
  height: 28px;
}

.store-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.store-label {
  font-size: 0.7rem;
  color: var(--color-text-secondary);
}

.store-name {
  font-size: 1.125rem;
  font-weight: 600;
}

/* ===== Footer ===== */
.footer {
  padding: var(--spacing-xl) 0;
  border-top: 1px solid var(--color-border);
  background: var(--color-bg-darker);
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--spacing-md);
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: var(--spacing-xs);
}

.footer-logo {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
}

.footer-brand-name {
  font-size: 1rem;
  font-weight: 600;
}

.footer-links {
  display: flex;
  gap: var(--spacing-lg);
}

.footer-links a {
  font-size: 0.875rem;
  color: var(--color-text-secondary);
  transition: var(--transition-fast);
}

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

.footer-copyright {
  font-size: 0.8rem;
  color: var(--color-text-muted);
}

/* ===== Animations ===== */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

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

  .hero-text {
    max-width: 100%;
  }

  .hero-brand {
    align-items: center;
  }

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

  .hero-visual {
    margin-top: var(--spacing-xl);
  }

  .phone-frame {
    width: 240px;
    height: 500px;
  }

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

  .preview-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .preview-screens {
    order: 1;
    margin-top: var(--spacing-xl);
  }

  .preview-text {
    max-width: 100%;
  }
}

@media (max-width: 768px) {
  html {
    font-size: 14px;
  }

  .nav-links {
    display: none;
  }

  .mobile-menu-btn {
    display: flex;
  }

  /* Hide language toggle, show download button on mobile */
  .lang-toggle {
    display: none;
  }

  .mobile-download-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--color-primary);
    color: white !important;
    padding: 10px 20px;
    border-radius: var(--radius-full);
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    margin-left: auto;
    margin-right: var(--spacing-sm);
  }

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

  /* Show language selector inside drawer */
  .drawer-lang-toggle {
    display: block;
    margin-top: var(--spacing-md);
    padding-top: var(--spacing-md);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    width: 100%;
  }

  .drawer-lang-toggle .lang-select {
    width: 100%;
    background: rgba(255, 255, 255, 0.1);
  }

  .hero-brand {
    align-items: center;
    margin-bottom: var(--spacing-md);
  }

  .hero-logo {
    width: 80px;
    height: 80px;
  }

  .hero-brand-name {
    font-size: 1.75rem;
  }

  .hero-title {
    font-size: 1.5rem;
  }

  .hero-title-accent {
    font-size: 2.5rem;
  }

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

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

  .phone-frame {
    width: 200px;
    height: 420px;
  }

  .phone-frame::before {
    width: 60px;
    height: 20px;
    top: 16px;
  }

  .section-title {
    font-size: 2rem;
  }

  .preview-screens {
    flex-wrap: wrap;
    gap: var(--spacing-sm);
  }

  .phone-frame-small {
    width: 120px;
    height: 260px;
  }

  .preview-phone-1,
  .preview-phone-3 {
    display: none;
  }

  .preview-phone-2 {
    transform: none;
  }

  .download-buttons {
    flex-direction: column;
    align-items: center;
  }

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

  .footer-links {
    flex-direction: column;
    text-align: center;
    gap: var(--spacing-sm);
  }
}

@media (max-width: 480px) {
  .lang-toggle {
    top: var(--spacing-xs);
    right: var(--spacing-xs);
  }

  .lang-select {
    padding: 6px 12px;
    font-size: 0.85rem;
    min-width: 80px;
  }

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

  .step-number {
    margin: 0 auto;
  }

  .step-connector {
    margin: 0 auto;
  }
}

/* ===== Modal Styles ===== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  padding: var(--spacing-md);
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-container {
  width: 100%;
  max-width: 480px;
  background: linear-gradient(145deg, #1A2634, #15202B);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  position: relative;
  transform: translateY(20px);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
  max-height: 90vh;
  overflow-y: auto;
}

.modal-overlay.active .modal-container {
  transform: translateY(0);
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: transparent;
  border: none;
  color: var(--color-text-muted);
  cursor: pointer;
  padding: 8px;
  border-radius: 50%;
  transition: var(--transition-fast);
  z-index: 10;
}

.modal-close:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--color-text-primary);
}

.modal-close svg {
  width: 24px;
  height: 24px;
}

.modal-content {
  padding: var(--spacing-xl) var(--spacing-lg);
}

.modal-header {
  text-align: center;
  margin-bottom: var(--spacing-lg);
}

.modal-icon {
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, var(--color-gradient-start), var(--color-gradient-end));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--spacing-md);
  box-shadow: var(--shadow-glow);
}

.modal-icon svg {
  width: 32px;
  height: 32px;
  color: white;
}

.modal-badge {
  display: inline-block;
  background: rgba(30, 144, 255, 0.15);
  color: var(--color-primary);
  border: 1px solid rgba(30, 144, 255, 0.3);
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: var(--spacing-sm);
}

.modal-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: var(--spacing-xs);
  color: var(--color-text-primary);
}

.modal-subtitle {
  color: var(--color-text-secondary);
  font-size: 1rem;
}

.modal-desc {
  color: var(--color-text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-top: var(--spacing-sm);
  word-break: keep-all;
}

.modal-desc strong {
  color: var(--color-primary);
  font-weight: 600;
}

/* Form Styles */
.modal-form {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-text-secondary);
}

.field-helper {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  margin-top: 2px;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group textarea {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  color: var(--color-text-primary);
  font-family: var(--font-main);
  font-size: 1rem;
  transition: var(--transition-fast);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 0 4px rgba(30, 144, 255, 0.1);
}

/* Custom Radio Button */
.radio-group {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-sm);
}

.radio-label {
  position: relative;
  cursor: pointer;
}

.radio-label input {
  position: absolute;
  opacity: 0;
  cursor: pointer;
}

.radio-custom {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  transition: var(--transition-fast);
  color: var(--color-text-secondary);
}

.radio-custom svg {
  width: 20px;
  height: 20px;
}

.radio-label input:checked+.radio-custom {
  background: rgba(30, 144, 255, 0.1);
  border-color: var(--color-primary);
  color: var(--color-primary);
  box-shadow: 0 0 0 2px rgba(30, 144, 255, 0.2);
}

/* Checkbox Styles */
.form-check-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 4px;
}

.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  position: relative;
  font-size: 0.9rem;
  color: var(--color-text-secondary);
}

.checkbox-label input {
  position: absolute;
  opacity: 0;
  cursor: pointer;
  height: 0;
  width: 0;
}

.checkmark {
  width: 20px;
  height: 20px;
  min-width: 20px;
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--color-border);
  border-radius: 4px;
  position: relative;
  transition: var(--transition-fast);
  margin-top: 2px;
}

.checkbox-label:hover input~.checkmark {
  background-color: rgba(255, 255, 255, 0.1);
}

.checkbox-label input:checked~.checkmark {
  background-color: var(--color-primary);
  border-color: var(--color-primary);
}

.checkmark:after {
  content: "";
  position: absolute;
  display: none;
  left: 6px;
  top: 2px;
  width: 5px;
  height: 10px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.checkbox-label input:checked~.checkmark:after {
  display: block;
}

.check-text {
  line-height: 1.5;
}

.link-text {
  color: var(--color-primary);
  font-size: 0.85rem;
  margin-left: 4px;
  text-decoration: underline;
}

.btn-block {
  width: 100%;
  justify-content: center;
  margin-top: var(--spacing-sm);
  padding: 16px;
}

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

.form-note {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  text-align: center;
  margin-top: 4px;
}

/* Beta Button specific */
.beta-btn {
  background: rgba(30, 144, 255, 0.1) !important;
  border: 1px solid rgba(30, 144, 255, 0.3) !important;
  cursor: pointer;
  min-width: 200px;
  justify-content: center;
}

.beta-btn:hover {
  background: rgba(30, 144, 255, 0.2) !important;
  box-shadow: 0 0 20px rgba(30, 144, 255, 0.2);
}

.beta-btn .store-icon {
  color: var(--color-primary);
}

/* Scrollbar for modal */
.modal-container::-webkit-scrollbar {
  width: 6px;
}

.modal-container::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.1);
}

.modal-container::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
}

.modal-container::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.2);
}

@media (max-width: 480px) {
  .modal-container {
    height: 100%;
    max-height: 100%;
    border-radius: var(--radius-xl);
  }
}

/* Language Selector Customization */
.lang-select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-color: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 20px;
  padding: 8px 16px;
  color: var(--color-text-primary);
  font-family: var(--font-main);
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s ease;
  min-width: 90px;
  text-align: center;
  text-align-last: center;
  -webkit-text-align-last: center;
  -moz-text-align-last: center;
}

.lang-select:hover {
  background-color: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.5);
}

.lang-select:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 2px rgba(30, 144, 255, 0.2);
}

.lang-select option {
  background-color: #15202B;
  color: var(--color-text-primary);
}

/* Applicant Count Badge */
.applicant-count-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 69, 0, 0.15);
  /* Orange/Red tint */
  border: 1px solid rgba(255, 69, 0, 0.3);
  padding: 6px 16px;
  border-radius: 20px;
  color: #FF5722;
  font-size: 0.95rem;
  font-weight: 500;
  margin-bottom: 16px;
}

.applicant-count-badge strong {
  font-weight: 800;
  font-size: 1.1rem;
}