/* ============================================
   HIBERN — Website Design System
   Arctic / Polar Premium Theme
   ============================================ */

/* --- Google Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

/* --- CSS Custom Properties --- */
:root {
  /* Brand Colors */
  --deep-navy: #061A33;
  --midnight-navy: #031020;
  --ice-blue: #DCECF7;
  --frost-blue: #AFC7D9;
  --snow-white: #F8FAFC;
  --warm-cream: #FFF4DD;
  --amber: #F6A623;
  --amber-light: #FFB547;
  --amber-glow: rgba(246, 166, 35, 0.25);
  --success-green: #34C759;
  --soft-grey: #8A94A6;
  --dark-text: #0B1220;

  /* Surfaces */
  --bg-primary: var(--midnight-navy);
  --bg-secondary: var(--deep-navy);
  --bg-card: rgba(6, 26, 51, 0.6);
  --bg-card-hover: rgba(6, 26, 51, 0.8);
  --bg-glass: rgba(220, 236, 247, 0.06);
  --bg-glass-hover: rgba(220, 236, 247, 0.1);
  --border-glass: rgba(220, 236, 247, 0.12);
  --border-glass-hover: rgba(220, 236, 247, 0.2);

  /* Text */
  --text-primary: #FFFFFF;
  --text-secondary: var(--frost-blue);
  --text-muted: var(--soft-grey);

  /* Typography */
  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  --font-size-xs: 0.75rem;
  --font-size-sm: 0.875rem;
  --font-size-base: 1rem;
  --font-size-lg: 1.125rem;
  --font-size-xl: 1.25rem;
  --font-size-2xl: 1.5rem;
  --font-size-3xl: 2rem;
  --font-size-4xl: 2.5rem;
  --font-size-5xl: 3.5rem;
  --font-size-6xl: 4.5rem;

  /* Spacing */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
  --space-4xl: 6rem;
  --space-5xl: 8rem;

  /* Border Radius */
  --radius-sm: 0.5rem;
  --radius-md: 0.75rem;
  --radius-lg: 1rem;
  --radius-xl: 1.5rem;
  --radius-2xl: 2rem;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.4);
  --shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 40px var(--amber-glow);

  /* Transitions */
  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 250ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: 400ms cubic-bezier(0.16, 1, 0.3, 1);
  --transition-spring: 500ms cubic-bezier(0.34, 1.56, 0.64, 1);

  /* Layout */
  --max-width: 1200px;
  --max-width-narrow: 800px;
  --header-height: 72px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

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

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

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

a:hover {
  color: var(--amber-light);
}

ul, ol {
  list-style: none;
}

/* --- Utility --- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-xl);
}

.container--narrow {
  max-width: var(--max-width-narrow);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* --- Background Aurora Effect --- */
.aurora-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.aurora-bg::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(ellipse at 20% 20%, rgba(175, 199, 217, 0.08) 0%, transparent 50%),
              radial-gradient(ellipse at 80% 30%, rgba(246, 166, 35, 0.04) 0%, transparent 40%),
              radial-gradient(ellipse at 50% 80%, rgba(52, 199, 89, 0.03) 0%, transparent 40%);
  animation: aurora-drift 20s ease-in-out infinite alternate;
}

@keyframes aurora-drift {
  0% { transform: translate(0, 0) rotate(0deg); }
  50% { transform: translate(-3%, 2%) rotate(1deg); }
  100% { transform: translate(2%, -1%) rotate(-0.5deg); }
}

/* --- Stars Background --- */
.stars {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
}

.star {
  position: absolute;
  width: 2px;
  height: 2px;
  background: var(--ice-blue);
  border-radius: 50%;
  opacity: 0;
  animation: twinkle var(--duration, 4s) var(--delay, 0s) infinite ease-in-out;
}

@keyframes twinkle {
  0%, 100% { opacity: 0; }
  50% { opacity: var(--max-opacity, 0.6); }
}

/* --- Header / Navigation --- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  z-index: 100;
  transition: background var(--transition-base), backdrop-filter var(--transition-base);
}

.site-header.scrolled {
  background: rgba(3, 16, 32, 0.85);
  backdrop-filter: blur(20px) saturate(1.4);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  border-bottom: 1px solid var(--border-glass);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-xl);
}

.logo {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

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

.logo-text {
  font-size: var(--font-size-xl);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

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

.nav-links a {
  color: var(--text-secondary);
  font-size: var(--font-size-sm);
  font-weight: 500;
  letter-spacing: 0.01em;
  transition: color var(--transition-fast);
}

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

.nav-links a.active {
  color: var(--amber);
}

.nav-cta {
  padding: 0.6rem 1.4rem;
  background: var(--amber);
  color: var(--deep-navy) !important;
  font-weight: 600;
  font-size: var(--font-size-sm);
  border-radius: var(--radius-full);
  transition: transform var(--transition-smooth), box-shadow var(--transition-smooth), background var(--transition-fast);
}

.nav-cta:hover {
  background: var(--amber-light);
  color: var(--deep-navy) !important;
  transform: translateY(-1px);
  box-shadow: var(--shadow-glow);
}

/* Mobile Menu Toggle */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--space-sm);
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  margin: 6px 0;
  transition: transform var(--transition-base), opacity var(--transition-base);
  border-radius: 2px;
}

.menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 6px);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -6px);
}

/* --- Hero Section --- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: calc(var(--header-height) + var(--space-4xl)) 0 var(--space-4xl);
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4xl);
  align-items: center;
}

.hero-content {
  z-index: 2;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 0.4rem 1rem;
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-full);
  font-size: var(--font-size-xs);
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: var(--space-xl);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.hero-badge .dot {
  width: 6px;
  height: 6px;
  background: var(--success-green);
  border-radius: 50%;
  animation: pulse-dot 2s infinite;
}

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

.hero h1 {
  font-size: clamp(var(--font-size-4xl), 5vw, var(--font-size-6xl));
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: var(--space-lg);
}

.hero h1 .highlight {
  background: linear-gradient(135deg, var(--amber), var(--amber-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: clamp(var(--font-size-lg), 2vw, var(--font-size-xl));
  color: var(--text-secondary);
  line-height: 1.6;
  max-width: 480px;
  margin-bottom: var(--space-2xl);
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
  flex-wrap: wrap;
}

.hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}

/* Phone Mockup */
.phone-mockup {
  position: relative;
  width: 280px;
  height: 580px;
  background: linear-gradient(145deg, #0a1e3d, #061A33);
  border-radius: 40px;
  padding: 12px;
  box-shadow:
    0 0 0 1px rgba(220, 236, 247, 0.1),
    0 20px 60px rgba(0, 0, 0, 0.5),
    0 0 80px rgba(246, 166, 35, 0.08);
  animation: float 6s ease-in-out infinite;
}

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

.phone-screen {
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, #0a1e3d 0%, var(--deep-navy) 100%);
  border-radius: 30px;
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
}

.phone-notch {
  width: 120px;
  height: 28px;
  background: #000;
  border-radius: 0 0 16px 16px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.phone-status-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 20px;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-primary);
}

.phone-alarm-card {
  margin: 8px 14px;
  padding: 20px;
  background: linear-gradient(135deg, rgba(246, 166, 35, 0.12), rgba(6, 26, 51, 0.8));
  border: 1px solid rgba(246, 166, 35, 0.2);
  border-radius: 20px;
  position: relative;
  overflow: hidden;
}

.phone-alarm-card::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -30%;
  width: 150px;
  height: 150px;
  background: radial-gradient(circle, rgba(246, 166, 35, 0.1) 0%, transparent 70%);
  pointer-events: none;
}

.phone-alarm-label {
  font-size: 10px;
  font-weight: 500;
  color: var(--frost-blue);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 4px;
}

.phone-alarm-time {
  font-size: 42px;
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: 4px;
}

.phone-alarm-countdown {
  font-size: 11px;
  color: var(--soft-grey);
  margin-bottom: 12px;
}

.phone-alarm-meta {
  display: flex;
  gap: 8px;
}

.phone-alarm-chip {
  padding: 4px 10px;
  background: rgba(220, 236, 247, 0.08);
  border-radius: 20px;
  font-size: 10px;
  font-weight: 500;
  color: var(--frost-blue);
  display: flex;
  align-items: center;
  gap: 4px;
}

.phone-today {
  margin: 16px 14px 8px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
}

.phone-history-card {
  margin: 4px 14px;
  padding: 12px 14px;
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.phone-history-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.phone-history-icon {
  width: 32px;
  height: 32px;
  background: rgba(246, 166, 35, 0.15);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
}

.phone-history-info {
  font-size: 11px;
}

.phone-history-info strong {
  display: block;
  font-weight: 600;
  margin-bottom: 1px;
}

.phone-history-info span {
  color: var(--soft-grey);
  font-size: 10px;
}

.phone-history-check {
  color: var(--success-green);
  font-weight: 700;
  font-size: 14px;
}

/* Glow ring behind phone */
.phone-glow {
  position: absolute;
  width: 350px;
  height: 350px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(246, 166, 35, 0.12) 0%, rgba(175, 199, 217, 0.05) 40%, transparent 70%);
  filter: blur(40px);
  z-index: 0;
  animation: glow-pulse 4s ease-in-out infinite alternate;
}

@keyframes glow-pulse {
  0% { opacity: 0.6; transform: scale(1); }
  100% { opacity: 1; transform: scale(1.08); }
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: 0.85rem 2rem;
  font-family: var(--font-family);
  font-size: var(--font-size-base);
  font-weight: 600;
  border-radius: var(--radius-full);
  border: none;
  cursor: pointer;
  transition: transform var(--transition-smooth), box-shadow var(--transition-smooth), background var(--transition-fast);
  text-decoration: none;
  line-height: 1;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn:active {
  transform: translateY(0);
}

.btn-primary {
  background: linear-gradient(135deg, var(--amber), var(--amber-light));
  color: var(--deep-navy);
  box-shadow: 0 4px 20px rgba(246, 166, 35, 0.3);
}

.btn-primary:hover {
  color: var(--deep-navy);
  box-shadow: 0 8px 32px rgba(246, 166, 35, 0.4);
}

.btn-secondary {
  background: var(--bg-glass);
  color: var(--text-primary);
  border: 1px solid var(--border-glass);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.btn-secondary:hover {
  background: var(--bg-glass-hover);
  border-color: var(--border-glass-hover);
  color: var(--text-primary);
}

.btn-icon {
  font-size: 1.2em;
}

/* --- Section Styles --- */
.section {
  padding: var(--space-5xl) 0;
  position: relative;
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: var(--font-size-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--amber);
  margin-bottom: var(--space-lg);
}

.section-label::before {
  content: '';
  width: 20px;
  height: 2px;
  background: var(--amber);
  border-radius: 1px;
}

.section-title {
  font-size: clamp(var(--font-size-3xl), 4vw, var(--font-size-4xl));
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: var(--space-lg);
}

.section-subtitle {
  font-size: var(--font-size-lg);
  color: var(--text-secondary);
  max-width: 560px;
  line-height: 1.7;
}

.section-header {
  text-align: center;
  margin-bottom: var(--space-4xl);
}

.section-header .section-subtitle {
  margin: 0 auto;
}

/* --- Features Grid --- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-xl);
}

.feature-card {
  padding: var(--space-2xl);
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-xl);
  transition: transform var(--transition-smooth), border-color var(--transition-smooth), box-shadow var(--transition-smooth);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

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

.feature-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(246, 166, 35, 0.1);
  border: 1px solid rgba(246, 166, 35, 0.15);
  border-radius: var(--radius-md);
  font-size: 1.3rem;
  margin-bottom: var(--space-lg);
}

.feature-card h3 {
  font-size: var(--font-size-lg);
  font-weight: 700;
  margin-bottom: var(--space-sm);
}

.feature-card p {
  color: var(--text-secondary);
  font-size: var(--font-size-sm);
  line-height: 1.7;
}

/* --- How It Works --- */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-xl);
  position: relative;
}

.steps-grid::before {
  content: '';
  position: absolute;
  top: 40px;
  left: 12.5%;
  width: 75%;
  height: 2px;
  background: linear-gradient(90deg, var(--amber), var(--frost-blue), var(--success-green), var(--amber));
  opacity: 0.3;
}

.step-card {
  text-align: center;
  position: relative;
}

.step-number {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-lg);
  background: var(--bg-glass);
  border: 2px solid var(--amber);
  border-radius: 50%;
  font-size: var(--font-size-xl);
  font-weight: 800;
  color: var(--amber);
  position: relative;
  z-index: 2;
}

.step-card h3 {
  font-size: var(--font-size-base);
  font-weight: 700;
  margin-bottom: var(--space-sm);
}

.step-card p {
  color: var(--text-secondary);
  font-size: var(--font-size-sm);
  line-height: 1.6;
}

/* --- Missions Section --- */
.missions-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
}

.mission-card {
  padding: var(--space-xl);
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: flex-start;
  gap: var(--space-md);
  transition: transform var(--transition-smooth), border-color var(--transition-smooth);
}

.mission-card:hover {
  transform: translateY(-3px);
  border-color: rgba(246, 166, 35, 0.25);
}

.mission-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(246, 166, 35, 0.08);
  border-radius: var(--radius-sm);
  font-size: 1.1rem;
  flex-shrink: 0;
}

.mission-card h4 {
  font-size: var(--font-size-base);
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.mission-card p {
  color: var(--text-muted);
  font-size: var(--font-size-sm);
  line-height: 1.5;
}

/* --- CTA Section --- */
.cta-section {
  text-align: center;
  position: relative;
}

.cta-card {
  padding: var(--space-4xl) var(--space-3xl);
  background: linear-gradient(135deg, rgba(246, 166, 35, 0.08), rgba(6, 26, 51, 0.6));
  border: 1px solid rgba(246, 166, 35, 0.15);
  border-radius: var(--radius-2xl);
  position: relative;
  overflow: hidden;
}

.cta-card::before {
  content: '';
  position: absolute;
  top: -100px;
  right: -100px;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(246, 166, 35, 0.1) 0%, transparent 70%);
  pointer-events: none;
}

.cta-card::after {
  content: '';
  position: absolute;
  bottom: -100px;
  left: -100px;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(175, 199, 217, 0.05) 0%, transparent 70%);
  pointer-events: none;
}

.cta-card .section-title {
  position: relative;
  z-index: 1;
}

.cta-card .section-subtitle {
  position: relative;
  z-index: 1;
  margin: 0 auto var(--space-2xl);
}

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

/* --- Footer --- */
.site-footer {
  padding: var(--space-4xl) 0 var(--space-2xl);
  border-top: 1px solid var(--border-glass);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-3xl);
  margin-bottom: var(--space-3xl);
}

.footer-brand p {
  color: var(--text-muted);
  font-size: var(--font-size-sm);
  line-height: 1.7;
  max-width: 280px;
  margin-top: var(--space-md);
}

.footer-col h4 {
  font-size: var(--font-size-sm);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-secondary);
  margin-bottom: var(--space-lg);
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.footer-col a {
  color: var(--text-muted);
  font-size: var(--font-size-sm);
  transition: color var(--transition-fast);
}

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

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: var(--space-xl);
  border-top: 1px solid var(--border-glass);
  font-size: var(--font-size-xs);
  color: var(--text-muted);
}

.footer-bottom-links {
  display: flex;
  gap: var(--space-xl);
}

.footer-bottom-links a {
  color: var(--text-muted);
  font-size: var(--font-size-xs);
}

/* --- Legal Pages (Privacy, Terms) --- */
.legal-page {
  padding-top: calc(var(--header-height) + var(--space-4xl));
  padding-bottom: var(--space-5xl);
  min-height: 100vh;
}

.legal-page h1 {
  font-size: clamp(var(--font-size-3xl), 4vw, var(--font-size-4xl));
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: var(--space-md);
}

.legal-page .last-updated {
  font-size: var(--font-size-sm);
  color: var(--text-muted);
  margin-bottom: var(--space-3xl);
}

.legal-content {
  max-width: var(--max-width-narrow);
}

.legal-content h2 {
  font-size: var(--font-size-2xl);
  font-weight: 700;
  margin-top: var(--space-3xl);
  margin-bottom: var(--space-md);
  color: var(--text-primary);
}

.legal-content h3 {
  font-size: var(--font-size-lg);
  font-weight: 600;
  margin-top: var(--space-xl);
  margin-bottom: var(--space-sm);
  color: var(--text-secondary);
}

.legal-content p {
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: var(--space-md);
}

.legal-content ul {
  margin-bottom: var(--space-md);
  padding-left: var(--space-xl);
}

.legal-content li {
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: var(--space-sm);
  position: relative;
  list-style: none;
}

.legal-content li::before {
  content: '›';
  position: absolute;
  left: -1.2rem;
  color: var(--amber);
  font-weight: 700;
}

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

/* --- Support Page --- */
.support-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-xl);
  margin-top: var(--space-3xl);
}

.support-card {
  padding: var(--space-2xl);
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-xl);
  text-align: center;
  transition: transform var(--transition-smooth), border-color var(--transition-smooth);
}

.support-card:hover {
  transform: translateY(-3px);
  border-color: var(--border-glass-hover);
}

.support-card-icon {
  font-size: 2rem;
  margin-bottom: var(--space-lg);
}

.support-card h3 {
  font-size: var(--font-size-lg);
  font-weight: 700;
  margin-bottom: var(--space-sm);
}

.support-card p {
  color: var(--text-secondary);
  font-size: var(--font-size-sm);
  line-height: 1.6;
  margin-bottom: var(--space-lg);
}

/* --- FAQ --- */
.faq-list {
  max-width: var(--max-width-narrow);
  margin: var(--space-3xl) auto 0;
}

.faq-item {
  border-bottom: 1px solid var(--border-glass);
}

.faq-question {
  width: 100%;
  background: none;
  border: none;
  padding: var(--space-xl) 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  text-align: left;
  font-family: var(--font-family);
  font-size: var(--font-size-base);
  font-weight: 600;
  color: var(--text-primary);
  gap: var(--space-md);
}

.faq-question:hover {
  color: var(--amber);
}

.faq-chevron {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  transition: transform var(--transition-base);
  color: var(--text-muted);
}

.faq-item.active .faq-chevron {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-smooth);
}

.faq-answer-inner {
  padding: 0 0 var(--space-xl);
  color: var(--text-secondary);
  font-size: var(--font-size-sm);
  line-height: 1.7;
}

/* --- Animations on Scroll --- */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.fade-up-delay-1 { transition-delay: 100ms; }
.fade-up-delay-2 { transition-delay: 200ms; }
.fade-up-delay-3 { transition-delay: 300ms; }
.fade-up-delay-4 { transition-delay: 400ms; }
.fade-up-delay-5 { transition-delay: 500ms; }
.fade-up-delay-6 { transition-delay: 600ms; }

/* --- App Store Badge --- */
.app-store-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 0.75rem 1.5rem;
  background: var(--text-primary);
  color: var(--dark-text);
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: var(--font-size-sm);
  transition: transform var(--transition-smooth), box-shadow var(--transition-smooth);
}

.app-store-badge:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  color: var(--dark-text);
}

.app-store-badge svg {
  width: 20px;
  height: 20px;
}

/* --- Responsive --- */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: var(--space-3xl);
  }

  .hero-subtitle {
    margin: 0 auto var(--space-2xl);
  }

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

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

  .steps-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-2xl);
  }

  .steps-grid::before {
    display: none;
  }

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

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

@media (max-width: 768px) {
  :root {
    --space-4xl: 4rem;
    --space-5xl: 5rem;
  }

  .menu-toggle {
    display: block;
  }

  .nav-links {
    position: fixed;
    top: var(--header-height);
    left: 0;
    width: 100%;
    flex-direction: column;
    background: rgba(3, 16, 32, 0.96);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: var(--space-xl);
    gap: var(--space-lg);
    transform: translateY(-120%);
    transition: transform var(--transition-smooth);
    border-bottom: 1px solid var(--border-glass);
  }

  .nav-links.open {
    transform: translateY(0);
  }

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

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

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

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

  .footer-grid {
    grid-template-columns: 1fr;
    gap: var(--space-2xl);
  }

  .footer-bottom {
    flex-direction: column;
    gap: var(--space-md);
    text-align: center;
  }

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

@media (max-width: 480px) {
  .hero-actions {
    flex-direction: column;
    width: 100%;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .phone-mockup {
    width: 220px;
    height: 460px;
  }
}

/* --- Reduced Motion --- */
@media (prefers-reduced-motion: reduce) {
  .fade-up {
    transition: opacity 0.3s ease;
    transform: none;
  }

  .phone-mockup {
    animation: none;
  }

  .aurora-bg::before {
    animation: none;
  }

  .star {
    animation: none;
    opacity: var(--max-opacity, 0.4);
  }
}
