/* ═══════════════════════════════════════════
   AI MEDICAL REPORT SUMMARIZER - DESIGN SYSTEM
   ═══════════════════════════════════════════ */

:root {
  --bg: #070b14;
  --bg-surface: #0d1425;
  --surface: rgba(255, 255, 255, 0.04);
  --surface-hover: rgba(255, 255, 255, 0.08);
  --surface-glass: rgba(255, 255, 255, 0.06);
  --primary: #3b82f6;
  --primary-dark: #2563eb;
  --primary-glow: rgba(59, 130, 246, 0.35);
  --primary-soft: rgba(59, 130, 246, 0.12);
  --accent: #06d6a0;
  --accent-glow: rgba(6, 214, 160, 0.3);
  --accent-soft: rgba(6, 214, 160, 0.12);
  --purple: #8b5cf6;
  --purple-soft: rgba(139, 92, 246, 0.12);
  --text: #f1f5f9;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --border: rgba(255, 255, 255, 0.08);
  --border-light: rgba(255, 255, 255, 0.12);
  --shadow-sm: 0 4px 16px rgba(0, 0, 0, 0.2);
  --shadow-md: 0 12px 40px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 24px 64px rgba(0, 0, 0, 0.4);
  --shadow-glow: 0 0 60px rgba(59, 130, 246, 0.15);
  --radius-sm: 12px;
  --radius-md: 18px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-spring: 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

/* ═══════ RESET & BASE ═══════ */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; color: inherit; }
button { font: inherit; cursor: pointer; border: none; background: none; }
img { max-width: 100%; display: block; }

.container {
  width: min(1200px, calc(100% - 40px));
  margin: 0 auto;
}

/* ═══════ TYPOGRAPHY ═══════ */
h1, h2, h3 {
  line-height: 1.1;
  letter-spacing: -0.03em;
  font-weight: 800;
}

h1 {
  font-size: clamp(2.8rem, 5.5vw, 4.8rem);
  font-weight: 900;
}

h2 {
  font-size: clamp(2rem, 4vw, 3.2rem);
}

h3 {
  font-size: 1.25rem;
  font-weight: 700;
}

p { color: var(--text-secondary); }

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

.section-head { margin-bottom: 56px; }
.section-head.centered { text-align: center; }
.section-head h2 { margin-top: 16px; }
.section-subtitle {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-top: 12px;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  border-radius: 999px;
  background: var(--primary-soft);
  color: var(--primary);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: 1px solid rgba(59, 130, 246, 0.15);
}

.eyebrow-light {
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.9);
  border-color: rgba(255, 255, 255, 0.15);
}

.eyebrow-animated .eyebrow-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  animation: dotPulse 2s ease-in-out infinite;
  flex-shrink: 0;
}

@keyframes dotPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.7); }
}

/* ═══════ BUTTONS ═══════ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border-radius: var(--radius-md);
  padding: 14px 28px;
  font-weight: 700;
  font-size: 0.95rem;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.15), transparent);
  opacity: 0;
  transition: opacity var(--transition);
}

.btn:hover::before { opacity: 1; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: linear-gradient(135deg, var(--primary), #6366f1);
  color: white;
  box-shadow: 0 8px 32px var(--primary-glow);
}

.btn-primary:hover {
  box-shadow: 0 12px 40px rgba(59, 130, 246, 0.5);
}

.btn-glow {
  animation: btnGlow 3s ease-in-out infinite;
}

@keyframes btnGlow {
  0%, 100% { box-shadow: 0 8px 32px var(--primary-glow); }
  50% { box-shadow: 0 8px 48px rgba(59, 130, 246, 0.5), 0 0 80px rgba(59, 130, 246, 0.2); }
}

.btn-glass {
  background: var(--surface-glass);
  color: var(--text);
  border: 1px solid var(--border-light);
  backdrop-filter: blur(12px);
}

.btn-glass:hover {
  background: var(--surface-hover);
  border-color: rgba(255, 255, 255, 0.2);
}

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid var(--border);
}

.btn-ghost:hover {
  color: var(--text);
  border-color: var(--border-light);
  background: var(--surface);
}

.btn-white {
  background: white;
  color: var(--bg);
  box-shadow: 0 8px 32px rgba(255, 255, 255, 0.2);
}

.btn-white:hover {
  box-shadow: 0 12px 40px rgba(255, 255, 255, 0.3);
}

.btn-outline-white {
  background: transparent;
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.btn-outline-white:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.5);
}

/* ═══════ HEADER ═══════ */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(7, 11, 20, 0.75);
  backdrop-filter: blur(20px) saturate(1.5);
  border-bottom: 1px solid var(--border);
  transition: all var(--transition);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 80px;
  gap: 24px;
}

.brand-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: white;
  font-weight: 800;
  box-shadow: 0 8px 24px var(--primary-glow);
}

.brand-text {
  font-weight: 700;
  font-size: 1rem;
  background: linear-gradient(135deg, var(--text), var(--text-secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav a {
  font-weight: 500;
  color: var(--text-secondary);
  font-size: 0.92rem;
  transition: color var(--transition);
  position: relative;
}

.nav a::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  border-radius: 1px;
  transition: width var(--transition);
}

.nav a:hover { color: var(--text); }
.nav a:hover::after { width: 100%; }

.nav-mobile-auth {
  display: none;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  transition: all var(--transition);
}

.nav-toggle:hover { background: var(--surface-hover); }

.nav-toggle span {
  width: 18px;
  height: 2px;
  border-radius: 10px;
  background: var(--text);
  transition: all var(--transition);
}

/* ═══════════════════════════
   SECTION 1: HERO (IMAGE 1)
   ═══════════════════════════ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 100px 0 60px;
  overflow: hidden;
}

/* ── Full Background Medical Image ── */
.hero-bg-image {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  animation: heroBgReveal 2s 0.3s ease forwards, heroBgKenBurns 25s 2s ease-in-out infinite alternate;
}

@keyframes heroBgReveal {
  0% { opacity: 0; transform: scale(1.15); }
  100% { opacity: 0.45; transform: scale(1); }
}

@keyframes heroBgKenBurns {
  0% { transform: scale(1) translate(0, 0); }
  50% { transform: scale(1.08) translate(-1%, 0.5%); }
  100% { transform: scale(1.05) translate(0.5%, -0.5%); }
}

.hero-bg-overlay {
  position: absolute;
  inset: 0;
  background: 
    linear-gradient(135deg, rgba(7, 11, 20, 0.92) 0%, rgba(7, 11, 20, 0.7) 40%, rgba(7, 11, 20, 0.5) 70%, rgba(7, 11, 20, 0.75) 100%),
    linear-gradient(180deg, rgba(7, 11, 20, 0.6) 0%, transparent 30%, transparent 70%, rgba(7, 11, 20, 0.9) 100%);
  z-index: 1;
}

/* Animated edge glow on the background */
.hero-bg-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: 
    radial-gradient(circle at 70% 50%, rgba(59, 130, 246, 0.15) 0%, transparent 50%),
    radial-gradient(circle at 30% 80%, rgba(6, 214, 160, 0.1) 0%, transparent 40%);
  z-index: 2;
  animation: bgGlowShift 8s ease-in-out infinite alternate;
}

@keyframes bgGlowShift {
  0% { opacity: 0.5; }
  100% { opacity: 1; }
}

/* Background effects (orbs, grid, particles) */
.hero-bg-effects {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 3;
}

.floating-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.35;
}

.orb-1 {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, var(--primary-glow), transparent 70%);
  top: -15%;
  right: -10%;
  animation: orbFloat1 12s ease-in-out infinite;
}

.orb-2 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, var(--accent-glow), transparent 70%);
  bottom: -10%;
  left: -5%;
  animation: orbFloat2 15s ease-in-out infinite;
}

.orb-3 {
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.2), transparent 70%);
  top: 40%;
  left: 30%;
  animation: orbFloat3 10s ease-in-out infinite;
}

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

@keyframes orbFloat2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(40px, -30px) scale(1.15); }
}

@keyframes orbFloat3 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-20px, 20px) scale(1.2); }
}

.grid-lines {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(59, 130, 246, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(59, 130, 246, 0.04) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(ellipse 60% 60% at 50% 50%, black, transparent);
}

/* Particles */
.particle {
  position: absolute;
  width: 6px; height: 6px;
  border-radius: 50%;
  opacity: 0;
}

.p1 { top: 10%; left: 15%; animation: particleFloat 6s 0s ease-in-out infinite; background: var(--primary); }
.p2 { top: 75%; left: 85%; animation: particleFloat 7s 1s ease-in-out infinite; background: var(--accent); }
.p3 { top: 35%; left: 5%;  animation: particleFloat 5s 2s ease-in-out infinite; background: var(--primary); width: 4px; height: 4px; }
.p4 { top: 85%; left: 25%; animation: particleFloat 8s 0.5s ease-in-out infinite; background: var(--accent); width: 5px; height: 5px; }
.p5 { top: 20%; left: 90%; animation: particleFloat 6.5s 1.5s ease-in-out infinite; background: var(--purple); width: 3px; height: 3px; }
.p6 { top: 60%; left: 50%; animation: particleFloat 7.5s 3s ease-in-out infinite; background: var(--accent); width: 4px; height: 4px; }
.p7 { top: 45%; left: 72%; animation: particleFloat 5.5s 0.8s ease-in-out infinite; background: var(--primary); width: 5px; height: 5px; }
.p8 { top: 15%; left: 65%; animation: particleFloat 8s 2.5s ease-in-out infinite; background: var(--accent); width: 3px; height: 3px; }

@keyframes particleFloat {
  0%, 100% { transform: translate(0, 0) scale(0); opacity: 0; }
  20% { opacity: 0.7; transform: translate(-10px, -20px) scale(1); }
  50% { opacity: 0.5; transform: translate(15px, -40px) scale(0.8); }
  80% { opacity: 0.3; transform: translate(-5px, -60px) scale(0.5); }
}

/* Hero content layout */
.hero-content-wrap {
  position: relative;
  z-index: 5;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 40px;
}

/* Hero copy entrance */
.hero-copy {
  opacity: 0;
  animation: heroCopyIn 1s 0.6s var(--transition-spring) forwards;
}

@keyframes heroCopyIn {
  from { opacity: 0; transform: translateY(40px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero-copy h1 { margin: 20px 0; }
.hero-copy > p { font-size: 1.15rem; max-width: 540px; line-height: 1.7; color: rgba(255,255,255,0.7); }

/* Hero actions */
.hero-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 32px 0;
  flex-wrap: wrap;
}

/* Hero trust stats */
.hero-trust {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.trust-item { text-align: center; }

.trust-item strong {
  display: block;
  font-size: 1.8rem;
  background: linear-gradient(135deg, var(--text), var(--primary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.trust-item span {
  font-size: 0.82rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
}

.trust-divider {
  width: 1px;
  height: 40px;
  background: linear-gradient(180deg, transparent, var(--border-light), transparent);
}

/* Hero floating elements (right side) */
.hero-floating-elements {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 450px;
  perspective: 1200px;
}

/* Glow rings */
.hero-glow-ring {
  position: absolute;
  border-radius: 50%;
  border: 1.5px solid;
  opacity: 0;
  animation: glowPulse 5s ease-in-out infinite;
}

.ring-1 {
  width: 300px; height: 300px;
  border-color: rgba(59, 130, 246, 0.25);
  animation-delay: 0s;
}
.ring-2 {
  width: 400px; height: 400px;
  border-color: rgba(6, 214, 160, 0.18);
  animation-delay: 1.5s;
}
.ring-3 {
  width: 480px; height: 480px;
  border-color: rgba(139, 92, 246, 0.12);
  animation-delay: 3s;
}

@keyframes glowPulse {
  0%, 100% { transform: scale(0.85) rotate(0deg); opacity: 0; }
  50% { transform: scale(1.05) rotate(5deg); opacity: 1; }
}


/* ═══════ FLOATING CARDS ═══════ */
.hero-float-card {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  border-radius: var(--radius-md);
  background: rgba(13, 20, 37, 0.85);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-md);
  z-index: 5;
  opacity: 0;
  animation: floatCardIn 0.8s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.float-icon {
  font-size: 1.4rem;
  width: 42px; height: 42px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--primary-soft), var(--accent-soft));
  flex-shrink: 0;
}

.float-info { display: flex; flex-direction: column; }

.float-label {
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
}

.float-info strong {
  font-size: 0.9rem;
  color: var(--text);
}

.float-dna {
  top: 8%;
  right: -8%;
  animation-delay: 0.8s;
}

.float-heartbeat {
  bottom: 28%;
  left: -6%;
  animation-delay: 1.1s;
}

.float-stats {
  top: 3%;
  left: -3%;
  animation-delay: 1.4s;
}

.float-scan {
  bottom: 6%;
  right: -3%;
  animation-delay: 1.7s;
  flex-direction: column;
  padding: 16px 22px;
}

@keyframes floatCardIn {
  from { opacity: 0; transform: translateY(20px) scale(0.9); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

/* Card floating animation */
.float-dna {
  animation: floatCardIn 0.8s 0.8s cubic-bezier(0.22, 1, 0.36, 1) forwards,
             floatBob1 5s 1.6s ease-in-out infinite;
}
.float-heartbeat {
  animation: floatCardIn 0.8s 1.1s cubic-bezier(0.22, 1, 0.36, 1) forwards,
             floatBob2 6s 1.9s ease-in-out infinite;
}
.float-stats {
  animation: floatCardIn 0.8s 1.4s cubic-bezier(0.22, 1, 0.36, 1) forwards,
             floatBob3 5.5s 2.2s ease-in-out infinite;
}
.float-scan {
  animation: floatCardIn 0.8s 1.7s cubic-bezier(0.22, 1, 0.36, 1) forwards,
             floatBob1 7s 2.5s ease-in-out infinite;
}

@keyframes floatBob1 {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-12px); }
}
@keyframes floatBob2 {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
}
@keyframes floatBob3 {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-14px) rotate(1deg); }
}

/* Pulse indicator */
.float-pulse {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: #22c55e;
  position: relative;
  flex-shrink: 0;
}
.float-pulse::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid #22c55e;
  animation: pulseRing 1.5s ease-out infinite;
}
@keyframes pulseRing {
  0% { transform: scale(1); opacity: 0.6; }
  100% { transform: scale(2.2); opacity: 0; }
}

/* Heartbeat SVG */
.heartbeat-svg { width: 80px; height: 28px; flex-shrink: 0; }
.heartbeat-line {
  fill: none;
  stroke: #ef4444;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 300;
  stroke-dashoffset: 300;
  animation: heartbeatDraw 2.5s ease-in-out infinite;
}
@keyframes heartbeatDraw {
  0% { stroke-dashoffset: 300; }
  50% { stroke-dashoffset: 0; }
  100% { stroke-dashoffset: -300; }
}

/* Mini bar chart */
.mini-bar-chart {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 30px;
  flex-shrink: 0;
}
.mini-bar-chart span {
  width: 6px;
  border-radius: 3px;
  background: linear-gradient(180deg, var(--primary), var(--accent));
  animation: barGrow 1.5s ease-out forwards;
  transform-origin: bottom;
  transform: scaleY(0);
}
.mini-bar-chart span:nth-child(1) { animation-delay: 1.5s; }
.mini-bar-chart span:nth-child(2) { animation-delay: 1.65s; }
.mini-bar-chart span:nth-child(3) { animation-delay: 1.8s; }
.mini-bar-chart span:nth-child(4) { animation-delay: 1.95s; }
.mini-bar-chart span:nth-child(5) { animation-delay: 2.1s; }

@keyframes barGrow { to { transform: scaleY(1); } }

/* Scan ring */
.scan-ring {
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 3px solid rgba(59, 130, 246, 0.15);
  border-top-color: var(--primary);
  position: relative;
  animation: scanSpin 2s linear infinite;
}
.scan-dot {
  position: absolute;
  top: -3px; left: 50%;
  transform: translateX(-50%);
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 12px var(--primary-glow);
}
.scan-text {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: 0.04em;
  animation: scanBlink 1.5s ease-in-out infinite;
}
@keyframes scanSpin { to { transform: rotate(360deg); } }
@keyframes scanBlink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

/* Scroll indicator */
.scroll-indicator {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  opacity: 0;
  animation: fadeIn 1s 2s forwards;
}

.scroll-mouse {
  width: 24px; height: 38px;
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  display: flex;
  justify-content: center;
  padding-top: 8px;
}

.scroll-wheel {
  width: 3px; height: 8px;
  border-radius: 2px;
  background: var(--primary);
  animation: scrollWheel 2s ease-in-out infinite;
}

@keyframes scrollWheel {
  0% { transform: translateY(0); opacity: 1; }
  100% { transform: translateY(12px); opacity: 0; }
}

.scroll-indicator span {
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* ═══════ LOGO STRIP ═══════ */
.logo-strip {
  padding: 32px 0 0;
  position: relative;
  z-index: 2;
}

.trust-row {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 20px;
  justify-items: center;
  padding: 24px 20px;
  color: var(--text-muted);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  font-weight: 700;
  letter-spacing: 0.04em;
  font-size: 0.95rem;
}

/* ═══════════════════════════════
   SECTION 2: FEATURES (IMAGE 2)
   ═══════════════════════════════ */
.features-showcase {
  padding: 120px 0;
  position: relative;
  overflow: hidden;
}

.features-showcase::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-light), transparent);
}

.features-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

/* Features image */
.features-image-wrap {
  position: relative;
}

.features-image-bg-glow {
  position: absolute;
  inset: -30%;
  background: radial-gradient(circle at 50% 50%, var(--primary-glow), transparent 60%);
  opacity: 0.3;
  filter: blur(60px);
  animation: imgGlow 8s ease-in-out infinite;
}

.features-img-container {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow:
    var(--shadow-lg),
    0 0 0 1px rgba(255, 255, 255, 0.06),
    0 0 60px rgba(59, 130, 246, 0.1);
  transition: transform var(--transition-spring);
}

.features-img-container:hover {
  transform: scale(1.02) translateY(-4px);
}

.features-img {
  width: 100%;
  aspect-ratio: 16 / 11;
  object-fit: cover;
  display: block;
  transition: transform 8s ease;
}

.features-img-container:hover .features-img {
  transform: scale(1.06);
}

.features-img-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(59, 130, 246, 0.12) 0%,
    rgba(6, 214, 160, 0.08) 50%,
    transparent 100%
  );
  pointer-events: none;
}

/* Feature badges */
.feature-badge {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 14px;
  background: rgba(13, 20, 37, 0.85);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  z-index: 3;
  opacity: 0;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text);
}

.badge-icon {
  font-size: 1rem;
}

.badge-1 {
  top: 12%;
  right: -5%;
  animation: badgeIn 0.6s 0.3s ease forwards;
}

.badge-2 {
  bottom: 20%;
  left: -5%;
  animation: badgeIn 0.6s 0.6s ease forwards;
}

.badge-3 {
  bottom: 8%;
  right: 5%;
  animation: badgeIn 0.6s 0.9s ease forwards;
}

.features-image-wrap.visible .badge-1 { animation: badgeIn 0.6s 0.3s ease forwards; }
.features-image-wrap.visible .badge-2 { animation: badgeIn 0.6s 0.6s ease forwards; }
.features-image-wrap.visible .badge-3 { animation: badgeIn 0.6s 0.9s ease forwards; }

@keyframes badgeIn {
  from { opacity: 0; transform: translateY(12px) scale(0.9); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

/* Feature cards */
.features-cards {
  display: grid;
  gap: 16px;
}

.feature-card {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  padding: 24px;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--border);
  transition: all var(--transition);
  cursor: default;
}

.feature-card:hover {
  background: var(--surface-hover);
  border-color: var(--border-light);
  transform: translateX(8px);
  box-shadow: var(--shadow-md), var(--shadow-glow);
}

.icon-box {
  width: 52px; height: 52px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  font-size: 1.5rem;
  flex-shrink: 0;
  transition: transform var(--transition);
}

.feature-card:hover .icon-box {
  transform: scale(1.1) rotate(5deg);
}

.icon-blue { background: linear-gradient(135deg, var(--primary-soft), rgba(59, 130, 246, 0.2)); }
.icon-teal { background: linear-gradient(135deg, var(--accent-soft), rgba(6, 214, 160, 0.2)); }
.icon-purple { background: linear-gradient(135deg, var(--purple-soft), rgba(139, 92, 246, 0.2)); }
.icon-green { background: linear-gradient(135deg, rgba(34, 197, 94, 0.1), rgba(34, 197, 94, 0.2)); }

.feature-card h3 {
  margin-bottom: 6px;
  font-size: 1.1rem;
}

.feature-card p {
  font-size: 0.9rem;
  line-height: 1.5;
}

/* ═══════ STATS ═══════ */
.stats-section {
  padding: 0 0 80px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.stat-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 20px;
  text-align: center;
  transition: all var(--transition);
}

.stat-box:hover {
  background: var(--surface-hover);
  border-color: var(--border-light);
  transform: translateY(-4px);
  box-shadow: var(--shadow-glow);
}

.stat-box strong {
  display: block;
  font-size: clamp(2rem, 3vw, 2.8rem);
  background: linear-gradient(135deg, var(--text), var(--primary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-box span {
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* ═══════ WORKFLOW ═══════ */
.workflow {
  padding: 100px 0;
  position: relative;
}

.workflow::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-light), transparent);
}

.workflow-grid {
  display: flex;
  align-items: flex-start;
  gap: 0;
  justify-content: center;
}

.workflow-step {
  flex: 1;
  max-width: 320px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 36px 28px;
  text-align: center;
  transition: all var(--transition);
}

.workflow-step:hover {
  background: var(--surface-hover);
  border-color: var(--border-light);
  transform: translateY(-6px);
  box-shadow: var(--shadow-md), var(--shadow-glow);
}

.step-number {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 72px; height: 72px;
  margin-bottom: 20px;
}

.step-num-text {
  position: relative;
  z-index: 2;
  font-weight: 900;
  font-size: 1.3rem;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.step-ring {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.step-ring circle {
  fill: none;
  stroke: var(--primary);
  stroke-width: 2;
  opacity: 0.2;
  stroke-dasharray: 283;
  stroke-dashoffset: 283;
  transition: stroke-dashoffset 1.5s ease;
}

.workflow-step:hover .step-ring circle {
  stroke-dashoffset: 0;
  opacity: 0.5;
}

.workflow-step h3 {
  font-size: 1.3rem;
  margin-bottom: 12px;
}

.workflow-connector {
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 60px;
  min-width: 60px;
}

.connector-line {
  width: 40px;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  opacity: 0.3;
  position: relative;
}

.connector-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 12px var(--primary-glow);
  position: absolute;
  right: -4px;
  top: 50%;
  margin-top: -4px;
}

/* ═══════════════════════════════
   SECTION 3: SECURITY (IMAGE 3)
   ═══════════════════════════════ */
.security {
  position: relative;
  padding: 120px 0;
  overflow: hidden;
}

.security-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.security-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.25;
  transition: transform 20s linear;
  animation: secBgZoom 30s ease-in-out infinite alternate;
}

@keyframes secBgZoom {
  0% { transform: scale(1); }
  100% { transform: scale(1.1); }
}

.security-bg-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    var(--bg) 0%,
    rgba(7, 11, 20, 0.85) 30%,
    rgba(7, 11, 20, 0.8) 70%,
    var(--bg) 100%
  );
}

.security-particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.sec-particle {
  position: absolute;
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--primary);
  opacity: 0;
}

.sp1 { top: 15%; left: 10%; animation: secFloat 7s 0s ease-in-out infinite; }
.sp2 { top: 25%; left: 80%; animation: secFloat 8s 1s ease-in-out infinite; background: var(--accent); }
.sp3 { top: 50%; left: 20%; animation: secFloat 6s 2s ease-in-out infinite; }
.sp4 { top: 70%; left: 70%; animation: secFloat 9s 0.5s ease-in-out infinite; background: var(--accent); }
.sp5 { top: 85%; left: 40%; animation: secFloat 7.5s 1.5s ease-in-out infinite; }
.sp6 { top: 35%; left: 55%; animation: secFloat 6.5s 3s ease-in-out infinite; background: var(--purple); width: 3px; height: 3px; }
.sp7 { top: 60%; left: 90%; animation: secFloat 8.5s 2.5s ease-in-out infinite; }
.sp8 { top: 10%; left: 45%; animation: secFloat 7s 4s ease-in-out infinite; background: var(--accent); width: 5px; height: 5px; }

@keyframes secFloat {
  0%, 100% { opacity: 0; transform: translate(0, 0) scale(0); }
  20% { opacity: 0.6; transform: translate(-8px, -15px) scale(1); }
  50% { opacity: 0.4; transform: translate(12px, -30px) scale(0.8); }
  80% { opacity: 0.2; transform: translate(-4px, -50px) scale(0.4); }
}

.security-content {
  position: relative;
  z-index: 2;
}

.security-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.security-copy h2 {
  margin-top: 16px;
  margin-bottom: 8px;
}

.security-copy ul {
  list-style: none;
  margin-top: 32px;
  display: grid;
  gap: 20px;
}

.security-copy li {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.check-circle {
  width: 32px; height: 32px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--accent-soft), rgba(6, 214, 160, 0.2));
  color: var(--accent);
  display: grid;
  place-items: center;
  font-weight: 900;
  font-size: 0.8rem;
  flex-shrink: 0;
  margin-top: 2px;
}

.security-copy li strong {
  display: block;
  font-size: 1rem;
  margin-bottom: 4px;
}

.security-copy li p {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin: 0;
}

/* Security panel */
.security-panel {
  position: relative;
  background: linear-gradient(135deg, rgba(13, 20, 37, 0.9), rgba(18, 30, 55, 0.9));
  backdrop-filter: blur(20px);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  padding: 32px 28px;
  overflow: hidden;
}

.panel-glow {
  position: absolute;
  top: -50%; right: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at 70% 30%, var(--primary-glow), transparent 50%);
  opacity: 0.15;
  pointer-events: none;
}

.panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 28px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}

.panel-header span {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.panel-header strong {
  display: block;
  font-size: 1.1rem;
  color: var(--text);
  margin-top: 4px;
}

.status-dot {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--accent);
}

.status-pulse {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent);
  animation: dotPulse 2s ease-in-out infinite;
}

.panel-list {
  display: grid;
  gap: 12px;
}

.panel-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 18px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.04);
  transition: all var(--transition);
}

.panel-item:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.08);
  transform: translateX(4px);
}

.panel-item-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.panel-item-icon {
  font-size: 1.1rem;
}

.panel-item span {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.panel-value {
  font-size: 0.95rem;
  color: var(--text);
}

.panel-value.accent {
  color: var(--accent);
}

.panel-footer {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

.panel-bar {
  width: 100%;
  height: 6px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.06);
  margin-bottom: 12px;
  overflow: hidden;
}

.panel-bar-fill {
  width: 0;
  height: 100%;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  transition: width 2s ease;
}

.security-panel.visible .panel-bar-fill {
  width: 96%;
}

.panel-footer span {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.panel-footer strong {
  color: var(--accent);
}

/* ═══════ CTA ═══════ */
.cta {
  padding: 20px 0 120px;
  position: relative;
}

.cta-box {
  position: relative;
  background: linear-gradient(135deg, var(--primary), #6366f1, var(--accent));
  background-size: 200% 200%;
  animation: gradientShift 8s ease infinite;
  border-radius: var(--radius-xl);
  padding: 64px 56px;
  overflow: hidden;
  text-align: center;
}

@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.cta-bg-effects {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.cta-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
}

.cta-orb-1 {
  width: 300px; height: 300px;
  background: rgba(255, 255, 255, 0.15);
  top: -30%; right: -10%;
  animation: orbFloat1 10s ease-in-out infinite;
}

.cta-orb-2 {
  width: 200px; height: 200px;
  background: rgba(255, 255, 255, 0.1);
  bottom: -20%; left: -5%;
  animation: orbFloat2 12s ease-in-out infinite;
}

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

.cta-box .eyebrow-light {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.2);
}

.cta-box h2 {
  color: white;
  margin: 16px auto 0;
  max-width: 600px;
}

.cta-box p {
  color: rgba(255, 255, 255, 0.75);
  margin-top: 12px;
  font-size: 1.05rem;
}

.cta-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 32px;
  flex-wrap: wrap;
  position: relative;
  z-index: 2;
}

/* ═══════ FOOTER ═══════ */
.footer {
  padding: 0 0 40px;
  position: relative;
}

.footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 5%;
  right: 5%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-light), transparent);
}

.footer-inner {
  padding-top: 40px;
}

.footer-brand {
  margin-bottom: 24px;
}

.footer-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-top: 12px;
  max-width: 300px;
}

.footer-links {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

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

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

.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.footer-bottom p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ═══════ SCROLL REVEAL ANIMATIONS ═══════ */
.reveal-up,
.reveal-right {
  opacity: 0;
  transition: opacity 0.8s ease, transform 0.8s ease;
  transition-delay: var(--delay, 0s);
}

.reveal-up {
  transform: translateY(40px);
}

.reveal-right {
  transform: translateX(-30px);
}

.reveal-up.visible,
.reveal-right.visible {
  opacity: 1;
  transform: translate(0, 0);
}

/* ═══════ RESPONSIVE ═══════ */
@media (max-width: 1024px) {
  .hero-content-wrap {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 40px;
  }

  .hero-copy { display: flex; flex-direction: column; align-items: center; }
  .hero-copy > p { max-width: 580px; }
  .hero-actions { justify-content: center; }
  .hero-trust { justify-content: center; }

  .hero-floating-elements { min-height: 300px; }
  .hero-float-card { display: none; }
  .hero-glow-ring { display: none; }

  .features-split {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .security-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

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

@media (max-width: 768px) {
  .nav-toggle { display: inline-flex; }

  .nav {
    position: absolute;
    top: 80px;
    left: 16px;
    right: 16px;
    padding: 20px;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: rgba(7, 11, 20, 0.95);
    backdrop-filter: blur(20px);
    box-shadow: var(--shadow-lg);
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    transform: scaleY(0);
    transform-origin: top;
    opacity: 0;
    pointer-events: none;
    transition: transform 0.3s ease, opacity 0.3s ease;
  }

  .nav.open {
    transform: scaleY(1);
    opacity: 1;
    pointer-events: auto;
  }

  .nav-mobile-auth {
    display: flex;
    flex-direction: column;
    width: 100%;
    gap: 10px;
    margin-top: 10px;
    padding-top: 14px;
    border-top: 1px solid var(--border);
  }

  .nav-btn-full {
    width: 100%;
    text-align: center;
    justify-content: center;
  }

  .header-signup-btn {
    display: none;
  }

  .header-login-btn {
    display: inline-flex !important;
    padding: 8px 16px !important;
    font-size: 0.88rem !important;
    border-radius: 10px !important;
    background: var(--surface) !important;
    border: 1px solid var(--border-light) !important;
    color: var(--text) !important;
  }

  .hero {
    padding: 80px 0 40px;
    min-height: auto;
  }

  .hero-floating-elements {
    min-height: auto;
    display: none;
  }

  .hero-content-wrap {
    grid-template-columns: 1fr;
  }


  .workflow-grid {
    flex-direction: column;
    align-items: center;
    gap: 20px;
  }

  .workflow-connector {
    transform: rotate(90deg);
    padding-top: 0;
    min-width: auto;
    min-height: 40px;
  }

  .workflow-step {
    max-width: 100%;
    width: 100%;
  }

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

  .trust-row {
    grid-template-columns: repeat(3, 1fr);
  }

  .cta-box {
    padding: 40px 28px;
  }

  .scroll-indicator { display: none; }

  .feature-badge { display: none; }
}

@media (max-width: 480px) {
  .trust-row {
    grid-template-columns: 1fr 1fr;
    font-size: 0.85rem;
  }

  .hero-trust {
    gap: 16px;
  }

  .trust-divider { display: none; }

  .cta-actions {
    flex-direction: column;
    width: 100%;
  }

  .cta-actions .btn {
    width: 100%;
    justify-content: center;
  }
}

/* ═══════ AUTH PAGES (preserved) ═══════ */
.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 50px 20px;
  background: var(--bg);
}

.auth-shell {
  width: min(1100px, 100%);
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 30px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.auth-visual {
  background: linear-gradient(180deg, rgba(59, 130, 246, 0.1) 0%, rgba(6, 214, 160, 0.05) 100%);
  border-right: 1px solid var(--border);
  color: var(--text);
  padding: 40px 32px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.auth-visual .brand-wrap { margin-bottom: 24px; }
.auth-visual h1 { font-size: clamp(2.2rem, 4vw, 3rem); margin-bottom: 16px; }
.auth-visual p { color: var(--text-secondary); font-size: 1.04rem; }

.auth-points {
  margin-top: 28px;
  display: grid;
  gap: 16px;
}

.auth-points li {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-secondary);
  font-weight: 500;
}

.auth-points li::before {
  content: "✓";
  width: 24px; height: 24px;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 800;
}

.auth-form-wrap {
  padding: 42px 34px;
  display: flex;
  align-items: center;
}

.auth-form { width: 100%; }

.auth-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 26px;
}

.auth-top h2 {
  font-size: clamp(2rem, 3vw, 2.5rem);
  margin: 0;
}

.auth-link {
  color: var(--primary);
  font-weight: 700;
  font-size: 0.9rem;
}

.form-grid { display: grid; gap: 18px; }

.form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.input-group { display: grid; gap: 8px; }

.input-group label {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 600;
}

.input-group input,
.input-group select {
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px 16px;
  font: inherit;
  background: var(--surface);
  color: var(--text);
  transition: all var(--transition);
}

.input-group input:focus,
.input-group select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-soft);
}

.form-options {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  font-size: 0.92rem;
  color: var(--text-muted);
  margin-top: 4px;
}

.check-wrap {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.check-wrap input { width: 16px; height: 16px; }

.auth-btn { width: 100%; margin-top: 10px; }

.auth-divider {
  margin: 22px 0 18px;
  position: relative;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.88rem;
}

.auth-divider::before {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 50%;
  height: 1px;
  background: var(--border);
}

.auth-divider span {
  position: relative;
  background: var(--bg-surface);
  padding: 0 12px;
}

.social-btns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.social-btns button {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 12px 14px;
  color: var(--text);
  font-weight: 600;
  transition: all var(--transition);
}

.social-btns button:hover {
  background: var(--surface-hover);
  border-color: var(--border-light);
}

@media (max-width: 820px) {
  .auth-shell { grid-template-columns: 1fr; }
  .auth-visual { padding-bottom: 28px; border-right: none; border-bottom: 1px solid var(--border); }
}

@media (max-width: 540px) {
  .form-row, .social-btns { grid-template-columns: 1fr; }
  .form-options { flex-direction: column; align-items: flex-start; }
  .auth-form-wrap { padding: 28px 20px 36px; }
}

/* ═══════════════════════════════════════════
   PWA APP INSTALL SECTION & MODAL
   ═══════════════════════════════════════════ */
.app-install-section {
  padding: 20px 0 60px;
}

.app-install-card {
  background: linear-gradient(135deg, rgba(13, 20, 37, 0.95), rgba(7, 11, 20, 0.98));
  border: 1px solid rgba(59, 130, 246, 0.25);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.4), 0 0 40px rgba(59, 130, 246, 0.15);
  border-radius: 24px;
  padding: 32px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  position: relative;
  overflow: hidden;
}

.app-install-card::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.18), transparent 70%);
  pointer-events: none;
}

.app-install-left {
  display: flex;
  align-items: center;
  gap: 24px;
  position: relative;
  z-index: 1;
}

.app-install-icon-wrap {
  width: 76px;
  height: 76px;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35), 0 0 20px rgba(6, 182, 212, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.15);
  flex-shrink: 0;
}

.app-install-logo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.app-install-info {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.app-install-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.app-install-info h3 {
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--text);
  margin: 0;
}

.app-install-info p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin: 0;
  max-width: 520px;
}

.app-install-right {
  position: relative;
  z-index: 1;
  flex-shrink: 0;
}

.btn-install-main {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 14px;
  cursor: pointer;
  border: none;
  background: linear-gradient(135deg, #2563eb, #06b6d4);
  color: #fff;
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.35);
  transition: all 0.25s ease;
}

.btn-install-main:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(37, 99, 235, 0.5);
}

.btn-install-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-install-pill:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-1px);
}

/* Install Modal */
.pwa-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(3, 7, 18, 0.85);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

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

.pwa-modal {
  background: #0d1425;
  border: 1px solid rgba(59, 130, 246, 0.3);
  border-radius: 24px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.6);
  max-width: 480px;
  width: 100%;
  padding: 32px 28px;
  position: relative;
  animation: pwaSlideUp 0.3s ease;
}

@keyframes pwaSlideUp {
  from { transform: translateY(20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.pwa-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: rgba(255, 255, 255, 0.08);
  border: none;
  color: var(--text-secondary);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  transition: all 0.2s ease;
}

.pwa-modal-close:hover {
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
}

.pwa-modal-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}

.pwa-modal-icon {
  width: 60px;
  height: 60px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  object-fit: cover;
}

.pwa-modal-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #fff;
  margin: 0 0 4px;
}

.pwa-modal-subtitle {
  font-size: 0.85rem;
  color: var(--accent);
  margin: 0;
}

.pwa-step-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px;
  margin-bottom: 12px;
}

.pwa-step-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.pwa-step-card ol {
  margin: 0;
  padding-left: 20px;
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.pwa-step-card ol li strong {
  color: #fff;
}

@media (max-width: 768px) {
  .app-install-card {
    flex-direction: column;
    align-items: flex-start;
    padding: 24px 20px;
    gap: 20px;
  }
  .app-install-right {
    width: 100%;
  }
  .btn-install-main {
    width: 100%;
    justify-content: center;
  }
}

