/* ═══════════════════════════════════════
   ECHOVEIL — Landing Page Stylesheet
   Apple-quality · Space Opera Lore
═══════════════════════════════════════ */

/* ── Tokens ── */
:root {
  --void:       #040408;
  --void-2:     #090912;
  --void-3:     #0f0f1a;
  --void-4:     #16162a;
  --gold:       #C8962E;
  --gold-light: #E8B84B;
  --gold-glow:  rgba(200, 150, 46, 0.25);
  --purple:     #7C3AED;
  --purple-dim: #4C1D95;
  --glow:       #A78BFA;
  --glow-dim:   rgba(167, 139, 250, 0.15);
  --void-red:   #DC2626;
  --white:      #FFFFFF;
  --white-90:   rgba(255,255,255,.90);
  --white-70:   rgba(255,255,255,.70);
  --white-50:   rgba(255,255,255,.50);
  --white-20:   rgba(255,255,255,.20);
  --white-10:   rgba(255,255,255,.10);
  --white-05:   rgba(255,255,255,.05);

  --radius-sm:  8px;
  --radius-md:  16px;
  --radius-lg:  24px;
  --radius-xl:  32px;

  --font-sans:  'Inter', -apple-system, BlinkMacSystemFont, 'SF Pro Display', system-ui, sans-serif;
  --font-lore:  'Cinzel', 'Palatino Linotype', serif;

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

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--void);
  color: var(--white-90);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; }

/* ── Utilities ── */
.text-gold { color: var(--gold-light); }
.section-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  background: rgba(200, 150, 46, 0.12);
  border: 1px solid rgba(200, 150, 46, 0.3);
  border-radius: 100px;
  padding: 5px 14px;
  margin-bottom: 20px;
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 600;
  border-radius: 100px;
  padding: 13px 28px;
  cursor: pointer;
  border: none;
  transition: all var(--transition);
  white-space: nowrap;
  text-decoration: none;
}
.btn-primary {
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 100%);
  color: #0a0806;
  box-shadow: 0 0 32px var(--gold-glow), 0 4px 12px rgba(0,0,0,.4);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 48px var(--gold-glow), 0 8px 24px rgba(0,0,0,.5);
}
.btn-ghost {
  background: var(--white-05);
  color: var(--white-70);
  border: 1px solid var(--white-10);
  backdrop-filter: blur(12px);
}
.btn-ghost:hover {
  background: var(--white-10);
  color: var(--white);
  border-color: var(--white-20);
}
.btn-nav {
  background: var(--white-10);
  color: var(--white);
  border: 1px solid var(--white-20);
  padding: 10px 22px;
  font-size: 14px;
  backdrop-filter: blur(12px);
}
.btn-nav:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: #0a0806;
}
.btn-large {
  padding: 18px 40px;
  font-size: 17px;
}

/* ═══════════════════════════════════════
   MOBILE MENU
═══════════════════════════════════════ */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  background: var(--white-05);
  border: 1px solid var(--white-10);
  border-radius: 8px;
  padding: 8px 7px;
  cursor: pointer;
  flex-shrink: 0;
}
.nav-hamburger span {
  display: block;
  height: 1.5px;
  background: var(--white-70);
  border-radius: 2px;
  transition: all 0.25s ease;
  transform-origin: center;
}
.nav-hamburger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

.mobile-menu {
  position: fixed;
  top: 64px;
  left: 0; right: 0;
  z-index: 99;
  background: rgba(9, 9, 18, 0.97);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--white-10);
  display: flex;
  flex-direction: column;
  padding: 8px 0 16px;
  transform: translateY(-110%);
  opacity: 0;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease;
  pointer-events: none;
}
.mobile-menu.open {
  transform: translateY(0);
  opacity: 1;
  pointer-events: all;
}
.mobile-link {
  display: block;
  padding: 14px 24px;
  font-size: 16px;
  font-weight: 500;
  color: var(--white-70);
  text-decoration: none;
  border-bottom: 1px solid var(--white-05);
  transition: color 0.2s ease, background 0.2s ease;
}
.mobile-link:last-child { border-bottom: none; }
.mobile-link:hover { color: var(--white); background: var(--white-05); }
.mobile-link--cta {
  margin: 8px 24px 0;
  padding: 14px 20px;
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 100%);
  color: #0a0806 !important;
  border-radius: 100px;
  font-weight: 700;
  text-align: center;
  border: none;
}
.mobile-link--cta:hover { opacity: 0.9; background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 100%); }

/* ═══════════════════════════════════════
   NAVIGATION
═══════════════════════════════════════ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 0 24px;
  transition: background var(--transition), backdrop-filter var(--transition);
}
.nav.scrolled {
  background: rgba(4, 4, 8, 0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--white-05);
}
.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  gap: 32px;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.nav-logo-mark {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  filter: drop-shadow(0 0 6px rgba(200,150,46,0.4));
}
.nav-wordmark {
  font-family: var(--font-lore);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.22em;
  color: var(--gold-light);
  line-height: 1;
}
.nav-links { display: flex; gap: 32px; }
.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--white-70);
  transition: color var(--transition);
}
.nav-links a:hover { color: var(--white); }

/* ═══════════════════════════════════════
   HERO
═══════════════════════════════════════ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 120px 24px 80px;
  background-image: url('/assets/hero.png');
  background-size: cover;
  background-position: center 40%;
  background-attachment: fixed;
}
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to right, rgba(4,4,8,0.92) 0%, rgba(4,4,8,0.6) 55%, rgba(4,4,8,0.2) 100%),
    linear-gradient(to bottom, rgba(4,4,8,0.4) 0%, rgba(4,4,8,0) 40%, rgba(4,4,8,0.7) 100%);
  z-index: 1;
  pointer-events: none;
}

#starfield {
  position: absolute;
  inset: 0;
  z-index: 2;
  opacity: 0.5;
  pointer-events: none;
}

.veil-energy {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(ellipse 60% 50% at 70% 50%, rgba(124, 58, 237, 0.18) 0%, transparent 70%),
    radial-gradient(ellipse 40% 60% at 30% 40%, rgba(200, 150, 46, 0.08) 0%, transparent 60%),
    radial-gradient(ellipse 80% 40% at 50% 80%, rgba(124, 58, 237, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 580px;
  flex: 1;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--white-70);
  background: var(--white-05);
  border: 1px solid var(--white-10);
  border-radius: 100px;
  padding: 7px 18px;
  margin-bottom: 32px;
  backdrop-filter: blur(12px);
}
.badge-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 8px var(--gold);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(0.85); }
}

.hero-title {
  font-family: var(--font-lore);
  font-size: clamp(40px, 6vw, 72px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: var(--white);
  margin-bottom: 24px;
}
.hero-sub {
  font-size: clamp(16px, 2vw, 19px);
  line-height: 1.65;
  color: var(--white-70);
  margin-bottom: 40px;
  max-width: 480px;
}
.hero-cta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-visual {
  position: relative;
  z-index: 2;
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  max-width: 380px;
  margin-left: auto;
}
.phone-frame {
  position: relative;
  width: 280px;
  aspect-ratio: 9/19.5;
  border-radius: 44px;
  background: linear-gradient(160deg, #1a0a2e 0%, #0d1b2a 50%, #0a0a1a 100%);
  border: 1.5px solid rgba(167, 139, 250, 0.3);
  box-shadow:
    0 0 60px rgba(124, 58, 237, 0.2),
    0 0 120px rgba(200, 150, 46, 0.08),
    0 40px 80px rgba(0,0,0,0.6),
    inset 0 1px 0 rgba(255,255,255,0.1);
  overflow: hidden;
  animation: float 6s ease-in-out infinite;
}
@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-12px); }
}
/* Slideshow */
.phone-slideshow {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 43px;
  overflow: hidden;
}
.phone-slideshow .slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 43px;
}
.phone-slideshow .slide.active {
  opacity: 1;
}
.phone-dots {
  position: absolute;
  bottom: -28px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  z-index: 3;
}
.phone-dots .dot {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--white-20);
  transition: background var(--transition), transform var(--transition);
}
.phone-dots .dot.active {
  background: var(--gold);
  transform: scale(1.3);
}
.phone-glow {
  position: absolute;
  bottom: -40px; left: 50%;
  transform: translateX(-50%);
  width: 60%;
  height: 60px;
  background: radial-gradient(ellipse, rgba(124, 58, 237, 0.4) 0%, transparent 70%);
  filter: blur(20px);
}

.hero-scroll-hint {
  position: absolute;
  bottom: 40px; left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: var(--white-50);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.scroll-dot {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--gold), transparent);
  animation: scrollLine 2s ease-in-out infinite;
}
@keyframes scrollLine {
  0% { opacity: 0; transform: scaleY(0); transform-origin: top; }
  50% { opacity: 1; transform: scaleY(1); transform-origin: top; }
  100% { opacity: 0; transform: scaleY(1); transform-origin: bottom; }
}

/* ═══════════════════════════════════════
   SECTION LAYOUT
═══════════════════════════════════════ */
.section {
  padding: 100px 24px;
  position: relative;
}
.section-inner {
  max-width: 1100px;
  margin: 0 auto;
}
.section-title {
  font-family: var(--font-lore);
  font-size: clamp(32px, 4.5vw, 56px);
  font-weight: 700;
  line-height: 1.15;
  color: var(--white);
  margin-bottom: 20px;
  letter-spacing: -0.01em;
}
.section-lead {
  font-size: clamp(16px, 1.8vw, 19px);
  line-height: 1.7;
  color: var(--white-70);
  max-width: 680px;
  margin-bottom: 56px;
}

/* ═══════════════════════════════════════
   LORE SECTION
═══════════════════════════════════════ */
.lore-section {
  background: linear-gradient(180deg, var(--void) 0%, var(--void-2) 50%, var(--void) 100%);
}
.lore-section::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--purple), transparent);
}

.lore-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-bottom: 60px;
}
.lore-card {
  background: var(--white-05);
  border: 1px solid var(--white-10);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}
.lore-card::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity var(--transition);
}
.lore-card:hover { transform: translateY(-4px); border-color: var(--white-20); }
.lore-card:hover::before { opacity: 1; }

.lore-card--veil::before    { background: radial-gradient(circle at top left, rgba(167,139,250,0.08), transparent 60%); }
.lore-card--tidecaller::before { background: radial-gradient(circle at top left, rgba(200,150,46,0.08), transparent 60%); }
.lore-card--voidshaper::before { background: radial-gradient(circle at top left, rgba(220,38,38,0.06), transparent 60%); }
.lore-card--driftway::before   { background: radial-gradient(circle at top left, rgba(124,58,237,0.08), transparent 60%); }

.lore-icon {
  font-size: 28px;
  margin-bottom: 18px;
  color: var(--gold-light);
  display: block;
}
.lore-card h3 {
  font-family: var(--font-lore);
  font-size: 18px;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 12px;
}
.lore-card p {
  font-size: 14px;
  line-height: 1.7;
  color: var(--white-70);
}
.lore-card em { color: var(--glow); font-style: normal; }

.lore-quote {
  text-align: center;
  padding: 48px 40px;
  border: 1px solid var(--white-10);
  border-radius: var(--radius-xl);
  background: linear-gradient(135deg, rgba(124,58,237,0.05), rgba(200,150,46,0.03));
  font-family: var(--font-lore);
  font-size: clamp(18px, 2.5vw, 26px);
  font-weight: 400;
  line-height: 1.5;
  color: var(--white-90);
  font-style: italic;
}
.lore-quote cite {
  display: block;
  font-family: var(--font-sans);
  font-size: 13px;
  font-style: normal;
  color: var(--white-50);
  letter-spacing: 0.05em;
  margin-top: 20px;
}

/* ═══════════════════════════════════════
   FEATURES
═══════════════════════════════════════ */
.features-section {
  background: var(--void-2);
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}
.feature-card {
  background: var(--void-3);
  border: 1px solid var(--white-10);
  border-radius: var(--radius-xl);
  padding: 40px 36px;
  position: relative;
  overflow: hidden;
  transition: all var(--transition);
}
.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 60px rgba(0,0,0,0.4);
}
.feature-card--memory:hover { border-color: rgba(167,139,250,0.4); }
.feature-card--5e:hover     { border-color: rgba(200,150,46,0.4); }
.feature-card--ip:hover     { border-color: rgba(124,58,237,0.4); }

.feature-number {
  font-family: var(--font-lore);
  font-size: 64px;
  font-weight: 700;
  color: var(--white-05);
  position: absolute;
  top: 24px; right: 28px;
  line-height: 1;
  user-select: none;
}
.feature-icon-wrap {
  width: 52px; height: 52px;
  margin-bottom: 24px;
  color: var(--gold-light);
}
.feature-card--memory .feature-icon-wrap { color: var(--glow); }
.feature-card--ip .feature-icon-wrap     { color: var(--purple); filter: brightness(1.5); }

.feature-card h3 {
  font-family: var(--font-lore);
  font-size: 20px;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 14px;
  line-height: 1.3;
}
.feature-card p {
  font-size: 15px;
  line-height: 1.7;
  color: var(--white-70);
  margin-bottom: 24px;
}
.feature-card p em { color: var(--glow); font-style: normal; }
.feature-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  background: rgba(200,150,46,0.1);
  border: 1px solid rgba(200,150,46,0.2);
  border-radius: 100px;
  padding: 4px 12px;
}

/* ═══════════════════════════════════════
   FACTIONS
═══════════════════════════════════════ */
.factions-section {
  background: var(--void);
  position: relative;
}
.factions-section::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-glow), transparent);
}

.factions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-bottom: 48px;
}
.faction-card {
  background: var(--void-3);
  border: 1px solid var(--white-10);
  border-radius: var(--radius-xl);
  padding: 36px 32px;
  transition: all var(--transition);
}
.faction-card:hover { transform: translateY(-4px); }
.faction--sovereignty:hover { border-color: rgba(200,150,46,0.4); box-shadow: 0 0 40px rgba(200,150,46,0.06); }
.faction--coalition:hover   { border-color: rgba(124,58,237,0.4); box-shadow: 0 0 40px rgba(124,58,237,0.06); }
.faction--driftway:hover    { border-color: rgba(167,139,250,0.4); box-shadow: 0 0 40px rgba(167,139,250,0.06); }

.faction-sigil {
  font-size: 32px;
  margin-bottom: 20px;
}
.faction--sovereignty .faction-sigil { color: var(--gold-light); }
.faction--coalition .faction-sigil   { color: var(--glow); }
.faction--driftway .faction-sigil    { color: var(--white-70); }

.faction-card h3 {
  font-family: var(--font-lore);
  font-size: 20px;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 12px;
}
.faction-card p {
  font-size: 14px;
  line-height: 1.7;
  color: var(--white-70);
  margin-bottom: 24px;
}
.faction-bar {
  display: flex;
  align-items: center;
  gap: 10px;
}
.faction-label { font-size: 11px; color: var(--white-50); white-space: nowrap; }
.faction-meter {
  flex: 1;
  height: 4px;
  background: var(--white-10);
  border-radius: 2px;
  overflow: hidden;
}
.faction-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--purple), var(--gold));
  border-radius: 2px;
  transition: width 1s ease;
}

.factions-footer {
  text-align: center;
  padding: 32px;
  border: 1px solid var(--white-05);
  border-radius: var(--radius-lg);
  background: var(--white-05);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--white-70);
}

/* ═══════════════════════════════════════
   TONE STRIP
═══════════════════════════════════════ */
.tone-strip {
  padding: 80px 24px;
  background: linear-gradient(135deg, rgba(124,58,237,0.08) 0%, rgba(200,150,46,0.05) 50%, rgba(124,58,237,0.08) 100%);
  border-top: 1px solid rgba(124,58,237,0.2);
  border-bottom: 1px solid rgba(200,150,46,0.1);
}
.tone-inner {
  max-width: 780px;
  margin: 0 auto;
  text-align: center;
}
.tone-text {
  font-family: var(--font-lore);
  font-size: clamp(18px, 2.5vw, 26px);
  line-height: 1.6;
  color: var(--white-90);
  font-style: italic;
  margin-bottom: 16px;
}
.tone-text::before { content: '"'; }
.tone-text::after  { content: '"'; }
.tone-attr {
  font-size: 13px;
  color: var(--gold);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 28px;
}
.tone-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--gold-light);
  text-decoration: none;
  border: 1px solid rgba(200,150,46,0.3);
  border-radius: 100px;
  padding: 10px 22px;
  background: rgba(200,150,46,0.07);
  transition: all var(--transition);
}
.tone-cta:hover {
  background: rgba(200,150,46,0.14);
  border-color: var(--gold);
  transform: translateY(-1px);
}

/* ═══════════════════════════════════════
   DOWNLOAD
═══════════════════════════════════════ */
.download-section { padding-bottom: 140px; }
.download-card {
  position: relative;
  background: linear-gradient(135deg, var(--void-3) 0%, var(--void-4) 100%);
  border: 1px solid rgba(200,150,46,0.2);
  border-radius: var(--radius-xl);
  padding: 80px 60px;
  text-align: center;
  overflow: hidden;
}
.download-glow {
  position: absolute;
  top: -60px; left: 50%; transform: translateX(-50%);
  width: 400px; height: 200px;
  background: radial-gradient(ellipse, rgba(200,150,46,0.12) 0%, transparent 70%);
  pointer-events: none;
}
.download-card .section-tag { margin-bottom: 24px; }
.download-card .section-title { margin: 0 auto 20px; }
.download-card .section-lead { margin: 0 auto 48px; text-align: center; }
.download-buttons {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  margin-bottom: 56px;
}
.download-sub { font-size: 14px; color: var(--white-50); }
.download-specs {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
}
.spec { text-align: center; }
.spec-value {
  font-family: var(--font-lore);
  font-size: 28px;
  font-weight: 700;
  color: var(--gold-light);
  line-height: 1;
  margin-bottom: 6px;
}
.spec-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--white-50);
  font-weight: 600;
}
.spec-divider {
  width: 1px; height: 40px;
  background: var(--white-10);
}

/* ═══════════════════════════════════════
   BETA SIGNUP FORM
═══════════════════════════════════════ */
.signup-form {
  width: 100%;
  max-width: 500px;
  margin: 0 auto 48px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.form-group {
  display: flex;
  flex-direction: column;
  gap: 7px;
  text-align: left;
}
.form-group label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
  padding-left: 2px;
}

/* Force dark inputs — override every browser default */
.form-group input[type="text"],
.form-group input[type="email"] {
  display: block;
  width: 100%;
  box-sizing: border-box;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-color: rgba(255, 255, 255, 0.07) !important;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 12px;
  padding: 15px 18px;
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 400;
  line-height: 1;
  color: #ffffff !important;
  outline: none;
  transition: border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
  caret-color: var(--gold-light);
}

/* Placeholder */
.form-group input[type="text"]::placeholder,
.form-group input[type="email"]::placeholder {
  color: rgba(255, 255, 255, 0.25);
  font-weight: 400;
}

/* Kill webkit autofill white flash */
.form-group input:-webkit-autofill,
.form-group input:-webkit-autofill:hover,
.form-group input:-webkit-autofill:focus,
.form-group input:-webkit-autofill:active {
  -webkit-box-shadow: 0 0 0 60px #111120 inset !important;
  -webkit-text-fill-color: #ffffff !important;
  caret-color: var(--gold-light);
  border-color: rgba(255,255,255,0.13) !important;
  transition: background-color 9999s ease-in-out 0s;
}

/* Focus */
.form-group input[type="text"]:focus,
.form-group input[type="email"]:focus {
  border-color: var(--gold) !important;
  background-color: rgba(200, 150, 46, 0.07) !important;
  box-shadow: 0 0 0 3px rgba(200, 150, 46, 0.15), 0 0 16px rgba(200, 150, 46, 0.08);
}

.btn-submit {
  width: 100%;
  justify-content: center;
  margin-top: 6px;
  padding: 17px 28px;
  font-size: 16px;
}
.btn-submit:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none !important;
}
.spinner { animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.form-error {
  text-align: center;
  font-size: 14px;
  color: #fca5a5;
  padding: 12px 16px;
  border-radius: 10px;
  background: rgba(220, 38, 38, 0.12);
  border: 1px solid rgba(220, 38, 38, 0.25);
  margin-top: 4px;
}

/* Success state */
.signup-success {
  text-align: center;
  padding: 40px 24px 48px;
  animation: fadeUp 0.5s ease;
  margin-bottom: 48px;
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}
.success-icon {
  font-size: 52px;
  color: var(--gold-light);
  margin-bottom: 20px;
  display: block;
  animation: goldPulse 2.5s ease-in-out infinite;
}
@keyframes goldPulse {
  0%, 100% { text-shadow: none; }
  50% { text-shadow: 0 0 32px rgba(200,150,46,0.5); }
}
.signup-success h3 {
  font-family: var(--font-lore);
  font-size: 30px;
  color: var(--white);
  margin-bottom: 14px;
}
.signup-success p {
  font-size: 16px;
  color: var(--white-70);
  line-height: 1.65;
  max-width: 380px;
  margin: 0 auto;
}
.signup-success strong { color: var(--gold-light); }

/* ═══════════════════════════════════════
   FOOTER
═══════════════════════════════════════ */
.footer {
  padding: 60px 24px;
  border-top: 1px solid var(--white-05);
  text-align: center;
}
.footer-inner { max-width: 600px; margin: 0 auto; }
.footer-logo {
  font-family: var(--font-lore);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--gold-light);
  margin-bottom: 12px;
}
.footer-tagline {
  font-size: 14px;
  color: var(--white-50);
  font-style: italic;
  margin-bottom: 28px;
}
.footer-links {
  display: flex;
  justify-content: center;
  gap: 28px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}
.footer-links a {
  font-size: 13px;
  color: var(--white-50);
  transition: color var(--transition);
}
.footer-links a:hover { color: var(--white-70); }
.footer-copy {
  font-size: 12px;
  color: var(--white-30, rgba(255,255,255,.3));
  line-height: 1.6;
}

/* ═══════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════ */
@media (max-width: 900px) {
  .hero {
    flex-direction: column;
    text-align: center;
    padding: 100px 24px 80px;
  }
  .hero-content { max-width: 100%; margin-bottom: 60px; }
  .hero-sub { margin: 0 auto 40px; }
  .hero-cta { justify-content: center; }
  .hero-visual { max-width: 260px; margin: 0 auto; }
  .phone-frame { width: 220px; }
  .nav-links { display: none; }
  .btn-nav  { display: none; }
  .nav-hamburger { display: flex; }
  .download-card { padding: 60px 32px; }
}
@media (max-width: 600px) {
  .section { padding: 72px 20px; }
  .lore-grid { grid-template-columns: 1fr; }
  .factions-grid { grid-template-columns: 1fr; }
  .features-grid { grid-template-columns: 1fr; }
  .download-specs { gap: 20px; }
  .spec-divider { display: none; }
  .form-row { grid-template-columns: 1fr; }
  .download-card { padding: 48px 24px; }
}

/* ═══════════════════════════════════════
   ANIMATIONS
═══════════════════════════════════════ */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}
.fade-in:nth-child(1) { transition-delay: 0s; }
.fade-in:nth-child(2) { transition-delay: 0.1s; }
.fade-in:nth-child(3) { transition-delay: 0.2s; }
.fade-in:nth-child(4) { transition-delay: 0.3s; }
