/* ============================================
   Gamma Resonance — Landing Page
   Unified palette: #5B8DF4 accent
   ============================================ */

:root {
  /* Dark theme (default) */
  --color-bg-primary: #0B0D12;
  --color-bg-secondary: #12151C;
  --color-bg-surface: rgba(18, 21, 28, 0.85);
  --color-accent: #5B8DF4;
  --color-accent-hover: #4A7DE0;
  --color-accent-soft: rgba(91, 141, 244, 0.10);
  --color-accent-medium: rgba(91, 141, 244, 0.18);
  --color-accent-glow: rgba(91, 141, 244, 0.25);
  --color-text-primary: #E8ECF2;
  --color-text-secondary: #8896AB;
  --color-text-muted: #5A6578;
  --color-border: rgba(91, 141, 244, 0.12);
  --glass-bg: rgba(12, 14, 20, 0.75);
  --glass-border: rgba(91, 141, 244, 0.12);
  --gradient-start: #5B8DF4;
  --gradient-end: #8B5CF6;
}

@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --color-bg-primary: #F4F6F9;
    --color-bg-secondary: #FFFFFF;
    --color-bg-surface: rgba(255, 255, 255, 0.9);
    --color-accent: #4A7DE0;
    --color-accent-hover: #3A6DD0;
    --color-accent-soft: rgba(74, 125, 224, 0.08);
    --color-accent-medium: rgba(74, 125, 224, 0.15);
    --color-accent-glow: rgba(74, 125, 224, 0.20);
    --color-text-primary: #1A202C;
    --color-text-secondary: #606980;
    --color-text-muted: #9CA3AF;
    --color-border: rgba(74, 125, 224, 0.12);
    --glass-bg: rgba(255, 255, 255, 0.8);
    --glass-border: rgba(74, 125, 224, 0.12);
    --gradient-start: #4A7DE0;
    --gradient-end: #7C3AED;
  }
}

:root[data-theme="light"] {
  --color-bg-primary: #F4F6F9;
  --color-bg-secondary: #FFFFFF;
  --color-bg-surface: rgba(255, 255, 255, 0.9);
  --color-accent: #4A7DE0;
  --color-accent-hover: #3A6DD0;
  --color-accent-soft: rgba(74, 125, 224, 0.08);
  --color-accent-medium: rgba(74, 125, 224, 0.15);
  --color-accent-glow: rgba(74, 125, 224, 0.20);
  --color-text-primary: #1A202C;
  --color-text-secondary: #606980;
  --color-text-muted: #9CA3AF;
  --color-border: rgba(74, 125, 224, 0.12);
  --glass-bg: rgba(255, 255, 255, 0.8);
  --glass-border: rgba(74, 125, 224, 0.12);
  --gradient-start: #4A7DE0;
  --gradient-end: #7C3AED;
}

:root[data-theme="dark"] {
  --color-bg-primary: #0B0D12;
  --color-bg-secondary: #12151C;
  --color-bg-surface: rgba(18, 21, 28, 0.85);
  --color-accent: #5B8DF4;
  --color-accent-hover: #4A7DE0;
  --color-accent-soft: rgba(91, 141, 244, 0.10);
  --color-accent-medium: rgba(91, 141, 244, 0.18);
  --color-accent-glow: rgba(91, 141, 244, 0.25);
  --color-text-primary: #E8ECF2;
  --color-text-secondary: #8896AB;
  --color-text-muted: #5A6578;
  --color-border: rgba(91, 141, 244, 0.12);
  --glass-bg: rgba(12, 14, 20, 0.75);
  --glass-border: rgba(91, 141, 244, 0.12);
  --gradient-start: #5B8DF4;
  --gradient-end: #8B5CF6;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--color-bg-primary);
  color: var(--color-text-primary);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

/* ============================================
   Background
   ============================================ */

.gradient-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse 120% 60% at 10% 20%, rgba(91, 141, 244, 0.08) 0%, transparent 50%),
    radial-gradient(ellipse 80% 50% at 90% 80%, rgba(139, 92, 246, 0.06) 0%, transparent 50%),
    radial-gradient(ellipse 60% 40% at 50% 50%, rgba(91, 141, 244, 0.03) 0%, transparent 60%);
  pointer-events: none;
}

.grid-overlay {
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(91, 141, 244, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(91, 141, 244, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
  mask-image: radial-gradient(ellipse 70% 50% at 50% 30%, black 30%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 70% 50% at 50% 30%, black 30%, transparent 70%);
}

/* ============================================
   Navigation
   ============================================ */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 40px;
  background: rgba(11, 13, 18, 0.7);
  backdrop-filter: blur(20px) saturate(1.2);
  border-bottom: 1px solid var(--glass-border);
  transition: background 0.3s ease;
}

:root[data-theme="light"] .nav {
  background: rgba(255, 255, 255, 0.85);
}

@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) .nav {
    background: rgba(255, 255, 255, 0.85);
  }
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
  font-size: 18px;
  text-decoration: none;
  color: var(--color-text-primary);
}

.nav-logo-img {
  height: 32px;
  width: auto;
  object-fit: contain;
}

.nav-title {
  background: linear-gradient(135deg, var(--color-text-primary) 0%, var(--color-accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-link {
  padding: 8px 16px;
  border-radius: 8px;
  color: var(--color-text-secondary);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.2s ease;
}

.nav-link:hover {
  color: var(--color-text-primary);
  background: var(--color-accent-soft);
}

.nav-hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  color: var(--color-text-primary);
  -webkit-tap-highlight-color: transparent;
}

.nav-hamburger svg {
  width: 24px;
  height: 24px;
  display: block;
}

.nav-mobile-menu {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(11, 13, 18, 0.95);
  backdrop-filter: blur(20px);
  z-index: 99;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
  animation: fadeIn 0.2s ease;
}

.nav-mobile-menu.open {
  display: flex;
}

.nav-mobile-menu a {
  font-size: 20px;
  font-weight: 600;
  color: var(--color-text-primary);
  text-decoration: none;
  padding: 12px 32px;
  border-radius: 12px;
  transition: all 0.2s ease;
}

.nav-mobile-menu a:hover {
  background: var(--color-accent-soft);
  color: var(--color-accent);
}

.nav-mobile-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: none;
  border: none;
  color: var(--color-text-primary);
  font-size: 28px;
  cursor: pointer;
  padding: 8px;
  line-height: 1;
}

@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) .nav-mobile-menu,
  :root[data-theme="light"] .nav-mobile-menu {
    background: rgba(244, 246, 249, 0.95);
  }
}

.nav-btn {
  padding: 8px 20px;
  border-radius: 8px;
  background: var(--color-accent);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  transition: all 0.2s ease;
  box-shadow: 0 2px 12px rgba(91, 141, 244, 0.3);
}

.nav-btn:hover {
  background: var(--color-accent-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(91, 141, 244, 0.4);
}

/* ============================================
   Hero
   ============================================ */

.hero {
  max-width: 900px;
  margin: 0 auto;
  padding: 160px 24px 100px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(600px, 100vw);
  height: min(400px, 60vw);
  background: radial-gradient(circle, var(--color-accent-glow) 0%, transparent 70%);
  pointer-events: none;
  z-index: -1;
  animation: glowPulse 6s ease-in-out infinite;
}

@keyframes glowPulse {
  0%, 100% { opacity: 0.5; transform: translate(-50%, -50%) scale(1); }
  50% { opacity: 0.8; transform: translate(-50%, -50%) scale(1.1); }
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: 20px;
  background: var(--color-accent-soft);
  color: var(--color-accent);
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 24px;
  border: 1px solid var(--color-border);
  animation: fadeInUp 0.6s ease both;
}

.hero-badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #22C55E;
  animation: dotPulse 2s ease-in-out infinite;
}

@keyframes dotPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.hero-title {
  font-size: clamp(40px, 7vw, 72px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
  animation: fadeInUp 0.6s ease 0.1s both;
}

.hero-accent {
  background: linear-gradient(135deg, var(--gradient-start) 0%, var(--gradient-end) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 19px;
  color: var(--color-text-secondary);
  max-width: 600px;
  margin: 0 auto 48px;
  line-height: 1.7;
  animation: fadeInUp 0.6s ease 0.2s both;
}

.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  animation: fadeInUp 0.6s ease 0.3s both;
}

.hero-stats {
  display: flex;
  gap: 48px;
  justify-content: center;
  margin-top: 64px;
  animation: fadeInUp 0.6s ease 0.4s both;
}

.hero-stat {
  text-align: center;
}

.hero-stat-value {
  font-size: 28px;
  font-weight: 700;
  color: var(--color-accent);
}

.hero-stat-label {
  font-size: 13px;
  color: var(--color-text-muted);
  margin-top: 4px;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ============================================
   Buttons
   ============================================ */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.25s ease;
  border: none;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: linear-gradient(135deg, var(--gradient-start) 0%, var(--gradient-end) 100%);
  color: #fff;
  box-shadow: 0 4px 24px rgba(91, 141, 244, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(91, 141, 244, 0.45);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-ghost {
  background: transparent;
  color: var(--color-text-secondary);
  border: 1px solid var(--color-border);
}

.btn-ghost:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
  background: var(--color-accent-soft);
}

.btn-large {
  padding: 18px 36px;
  font-size: 18px;
  border-radius: 14px;
}

.btn-icon {
  font-size: 18px;
}

/* ============================================
   Features
   ============================================ */

.features {
  max-width: 1100px;
  margin: 0 auto;
  padding: 40px 24px 80px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.feature-card {
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  padding: 36px 32px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--color-accent), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.feature-card:hover {
  border-color: rgba(91, 141, 244, 0.25);
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.2);
}

.feature-card:hover::before {
  opacity: 1;
}

.feature-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--color-accent-soft);
  border: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: var(--color-accent);
  transition: all 0.3s ease;
}

.feature-card:hover .feature-icon {
  background: var(--color-accent-medium);
  border-color: var(--color-accent);
}

.feature-card h3 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 10px;
}

.feature-card p {
  color: var(--color-text-secondary);
  font-size: 15px;
  line-height: 1.65;
}

/* ============================================
   How it works
   ============================================ */

.how {
  max-width: 1000px;
  margin: 0 auto;
  padding: 80px 24px 100px;
}

.section-header {
  text-align: center;
  margin-bottom: 56px;
}

.section-badge {
  display: inline-block;
  padding: 5px 14px;
  border-radius: 16px;
  background: var(--color-accent-soft);
  color: var(--color-accent);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 16px;
}

.section-title {
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}

.section-subtitle {
  font-size: 17px;
  color: var(--color-text-secondary);
  max-width: 500px;
  margin: 0 auto;
}

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.step {
  text-align: center;
  padding: 28px 20px;
  border-radius: 16px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  transition: all 0.3s ease;
  position: relative;
}

.step:hover {
  border-color: rgba(91, 141, 244, 0.2);
  transform: translateY(-2px);
}

.step-connector {
  display: none;
}

.step-num {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 700;
  margin: 0 auto 16px;
  box-shadow: 0 4px 16px rgba(91, 141, 244, 0.3);
}

.step h4 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 8px;
}

.step p {
  color: var(--color-text-secondary);
  font-size: 14px;
  line-height: 1.5;
}

/* ============================================
   Screenshot / Preview
   ============================================ */

.preview {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 24px 100px;
}

.preview-card {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.4);
  border: 1px solid var(--glass-border);
  max-width: 100%;
}

.preview-body {
  background: var(--color-bg-secondary);
  line-height: 0;
  overflow: hidden;
  max-height: 600px;
}

.preview-body img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
  max-height: 600px;
}

/* ============================================
   Download
   ============================================ */

.download {
  max-width: 700px;
  margin: 0 auto;
  padding: 0 24px 120px;
}

.download-card {
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  border-radius: 24px;
  padding: 56px 48px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.download-card::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at 50% 50%, var(--color-accent-glow) 0%, transparent 50%);
  opacity: 0.3;
  pointer-events: none;
}

.download-title {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 12px;
  position: relative;
}

.download-subtitle {
  color: var(--color-text-secondary);
  font-size: 16px;
  margin-bottom: 28px;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
  position: relative;
}

.download-rows {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 8px;
  position: relative;
}

.download-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 20px;
  border: 1px solid var(--color-border);
  border-radius: 12px;
  background: var(--color-card-bg, rgba(255,255,255,0.03));
  transition: border-color var(--transition-fast, 0.15s ease);
}

.download-row:hover {
  border-color: var(--color-accent);
}

.download-row-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.download-row-icon {
  width: 28px;
  height: 28px;
  color: var(--color-accent);
  flex-shrink: 0;
}

.download-row-name {
  font-size: 15px;
  font-weight: 600;
  color: var(--color-text-primary);
}

.download-row-size {
  font-size: 12px;
  color: var(--color-text-muted);
  margin-top: 2px;
}

.download-row-btn {
  flex-shrink: 0;
  padding: 8px 20px;
  font-size: 14px;
}

.download-meta {
  margin-top: 28px;
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  color: var(--color-text-muted);
  font-size: 13px;
  position: relative;
}

.download-meta span {
  display: flex;
  align-items: center;
  gap: 6px;
}

/* ============================================
   Footer
   ============================================ */

.footer {
  text-align: center;
  padding: 60px 24px 40px;
  border-top: 1px solid var(--color-border);
  color: var(--color-text-secondary);
  font-size: 14px;
  background: rgba(11, 13, 18, 0.5);
}

:root[data-theme="light"] .footer {
  background: rgba(255, 255, 255, 0.7);
}
:root[data-theme="light"] .footer-legal {
  opacity: 0.9;
}
:root[data-theme="light"] .footer-small {
  opacity: 0.7;
}

@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) .footer {
    background: rgba(255, 255, 255, 0.7);
  }
  :root:not([data-theme="dark"]) .footer-legal {
    opacity: 0.9;
  }
  :root:not([data-theme="dark"]) .footer-small {
    opacity: 0.7;
  }
}

.footer-main {
  margin-bottom: 24px;
}

.footer-brand {
  font-size: 18px;
  font-weight: 600;
  color: var(--color-text-primary);
  margin-bottom: 8px;
}

.footer-legal {
  margin-top: 8px;
  font-size: 13px;
  opacity: 0.7;
}

.footer-email {
  margin-top: 8px;
  font-size: 13px;
}

.footer-email a {
  color: var(--color-accent);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-email a:hover {
  color: var(--color-text-primary);
  text-decoration: underline;
}

.footer-links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--color-text-muted);
  text-decoration: none;
  font-size: 13px;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: var(--color-accent);
}

.footer-divider {
  opacity: 0.3;
  font-size: 12px;
}

.footer-small {
  margin-top: 12px;
  font-size: 12px;
  opacity: 0.4;
}

/* ============================================
   Modal
   ============================================ */

.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100000;
  animation: fadeIn 0.2s ease;
}

.modal-content {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  padding: 36px;
  max-width: 480px;
  width: 90%;
  max-height: 80vh;
  overflow-y: auto;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.5);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--glass-border);
}

.modal-header h3 {
  margin: 0;
  font-size: 20px;
  font-weight: 600;
  color: var(--color-text-primary);
}

.modal-close {
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: var(--color-text-muted);
  padding: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  transition: all 0.2s ease;
}

.modal-close:hover {
  background: var(--color-accent-soft);
  color: var(--color-text-primary);
}

.modal-body {
  color: var(--color-text-secondary);
}

.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 16px;
  cursor: pointer;
  font-size: 14px;
  line-height: 1.5;
}

.checkbox-label input[type="checkbox"] {
  margin: 2px 0 0 0;
  cursor: pointer;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  accent-color: var(--color-accent);
}

.checkbox-label span {
  flex: 1;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* ============================================
   Scroll animations
   ============================================ */

.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================
   Responsive
   ============================================ */

@media (max-width: 1024px) {
  .features {
    grid-template-columns: repeat(2, 1fr);
  }

  .steps {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .features {
    grid-template-columns: 1fr;
    max-width: 480px;
    margin: 0 auto;
    padding: 40px 16px 60px;
  }

  .feature-card {
    padding: 28px 24px;
  }

  .steps {
    grid-template-columns: 1fr;
    max-width: 400px;
    margin: 0 auto;
    padding: 0 16px;
  }

  .step {
    padding: 24px 16px;
  }

  .hero-stats {
    gap: 32px;
  }

  .section-title {
    font-size: 28px;
  }

  .preview {
    padding: 0 16px 80px;
  }

  .download {
    padding: 0 16px 80px;
  }

  .download-card {
    padding: 40px 28px;
  }
}

@media (max-width: 640px) {
  .nav {
    padding: 12px 16px;
  }

  .nav-links .nav-link {
    display: none;
  }

  .nav-hamburger {
    display: flex;
  }

  .hero {
    padding-top: 120px;
    padding-bottom: 48px;
    padding-left: 16px;
    padding-right: 16px;
  }

  .hero-title {
    font-size: 32px;
  }

  .hero-subtitle {
    font-size: 15px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-stats {
    flex-direction: column;
    gap: 16px;
  }

  .hero-stat-value {
    font-size: 22px;
  }

  .btn {
    justify-content: center;
    min-height: 48px;
  }

  .btn-large {
    padding: 16px 28px;
    font-size: 16px;
  }

  .section-header {
    margin-bottom: 36px;
  }

  .section-subtitle {
    font-size: 15px;
  }

  .preview-card {
    border-radius: 12px;
  }

  .preview-body img {
    max-height: 300px;
    object-fit: cover;
    object-position: top;
  }

  .download-card {
    padding: 32px 20px;
    border-radius: 16px;
  }

  .download-rows {
    grid-template-columns: 1fr;
  }

  .download-title {
    font-size: 26px;
  }

  .footer {
    padding: 40px 16px 32px;
  }

  .footer-links {
    flex-direction: column;
    gap: 8px;
  }

  .footer-divider {
    display: none;
  }

  .modal-content {
    padding: 24px;
    border-radius: 16px;
    margin: 16px;
    width: calc(100% - 32px);
  }

  .modal-header h3 {
    font-size: 18px;
  }

  .checkbox-label {
    font-size: 13px;
  }

  .page-container {
    padding: 100px 16px 60px;
  }

  .page-title {
    font-size: 28px;
  }

  .content-section h2 {
    font-size: 20px;
  }

  .content-section h3 {
    font-size: 16px;
  }

  .content-section p,
  .content-section li {
    font-size: 14px;
  }
}

/* ============================================
   Language toggle
   ============================================ */

.lang-toggle {
  background: var(--color-accent-soft);
  border: 1px solid var(--color-border);
  border-radius: 10px;
  padding: 0;
  cursor: pointer;
  color: var(--color-text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  transition: all 0.25s ease;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
  -webkit-tap-highlight-color: transparent;
}

.lang-toggle:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
  background: var(--color-accent-medium);
}

@media (max-width: 640px) {
  .lang-toggle {
    width: 34px;
    height: 34px;
    font-size: 12px;
  }
}

/* ============================================
   Theme toggle
   ============================================ */

.theme-toggle {
  background: var(--color-accent-soft);
  border: 1px solid var(--color-border);
  border-radius: 10px;
  padding: 8px;
  cursor: pointer;
  color: var(--color-text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  transition: all 0.25s ease;
}

.theme-toggle:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
  background: var(--color-accent-medium);
}

.theme-toggle svg {
  width: 18px;
  height: 18px;
}

.theme-toggle .icon-sun,
.theme-toggle .icon-moon {
  display: none;
}

:root[data-theme="dark"] .theme-toggle .icon-sun,
:root:not([data-theme]) .theme-toggle .icon-sun {
  display: block;
}

:root[data-theme="light"] .theme-toggle .icon-sun {
  display: none;
}

:root[data-theme="light"] .theme-toggle .icon-moon {
  display: block;
}

@media (prefers-color-scheme: light) {
  :root:not([data-theme]) .theme-toggle .icon-sun {
    display: none;
  }
  :root:not([data-theme]) .theme-toggle .icon-moon {
    display: block;
  }
}

@media (max-width: 640px) {
  .theme-toggle {
    width: 34px;
    height: 34px;
    padding: 6px;
  }
}

/* ============================================
   Guide section
   ============================================ */

.guide {
  max-width: 1100px;
  margin: 0 auto;
  padding: 80px 24px 100px;
}

.guide-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}

.guide-text {
  padding: 8px 0;
}

.guide-text h3 {
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--color-text-primary);
}

.guide-text p {
  color: var(--color-text-secondary);
  font-size: 15px;
  line-height: 1.7;
  margin-bottom: 16px;
}

.guide-text p strong {
  color: var(--color-text-primary);
}

.guide-visual {
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: 28px;
}

.guide-indicators {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.guide-indicator {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: 10px;
  background: var(--color-bg-primary);
  border: 1px solid var(--color-border);
}

.guide-indicator-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  flex-shrink: 0;
}

.guide-indicator-text {
  font-size: 14px;
  color: var(--color-text-secondary);
  line-height: 1.4;
}

.guide-indicator-text strong {
  color: var(--color-text-primary);
}

@media (max-width: 768px) {
  .guide {
    padding: 60px 16px 80px;
  }

  .guide-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}
