/* ============================================
   METALSHARK — Style System
   Dark. Powerful. Frictionless.
   ============================================ */

/* --- Custom Properties --- */
:root {
  --color-bg: #050505;
  --color-bg-elevated: #0a0a0a;
  --color-bg-card: #0f0f0f;
  --color-bg-card-hover: #141414;
  --color-surface: #1a1a1a;
  --color-border: #1f1f1f;
  --color-border-subtle: #161616;

  --color-red: #dc2626;
  --color-red-glow: rgba(220, 38, 38, 0.15);
  --color-red-bright: #ef4444;
  --color-red-dark: #991b1b;

  --color-text: #f5f5f5;
  --color-text-secondary: #a3a3a3;
  --color-text-muted: #525252;

  --font-display: 'Orbitron', sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  --nav-height: 72px;
  --section-padding: 120px;
  --container-width: 1200px;

  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-padding-top: var(--nav-height);
}

body {
  font-family: var(--font-body);
  background-color: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 6px;
}
::-webkit-scrollbar-track {
  background: var(--color-bg);
}
::-webkit-scrollbar-thumb {
  background: var(--color-border);
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
  background: #333;
}

::selection {
  background: var(--color-red);
  color: white;
}

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

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

/* --- Utility Classes --- */
.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 24px;
}

.text-red {
  color: var(--color-red);
}

.text-gradient {
  background: linear-gradient(135deg, var(--color-red-bright) 0%, var(--color-red) 50%, #b91c1c 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Shimmer effect on hero gradient */
.hero-title .text-gradient {
  background: linear-gradient(
    90deg,
    var(--color-red-bright) 0%,
    #ff6b6b 25%,
    var(--color-red) 50%,
    var(--color-red-bright) 75%,
    #ff6b6b 100%
  );
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: shimmer 4s linear infinite;
}

@keyframes shimmer {
  0% { background-position: 0% center; }
  100% { background-position: 200% center; }
}

/* --- Loader --- */
.loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--color-bg);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.6s var(--ease-out-expo), visibility 0.6s;
}

.loader.loaded {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loader-inner {
  text-align: center;
}

.loader-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 24px;
  animation: pulse 1.5s ease-in-out infinite;
}

.loader-bar {
  width: 200px;
  height: 2px;
  background: var(--color-border);
  border-radius: 1px;
  overflow: hidden;
}

.loader-bar-fill {
  height: 100%;
  width: 0%;
  background: var(--color-red);
  border-radius: 1px;
  animation: loaderFill 1.2s var(--ease-out-expo) forwards;
}

@keyframes loaderFill {
  to { width: 100%; }
}

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

/* --- Navigation --- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--nav-height);
  z-index: 1000;
  transition: background 0.4s ease, box-shadow 0.4s ease, backdrop-filter 0.4s ease;
}

.nav.scrolled {
  background: rgba(5, 5, 5, 0.85);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.04);
}

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

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 1001;
}

.nav-logo {
  width: 36px;
  height: 36px;
  border-radius: 6px;
}

.nav-wordmark {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--color-text);
}

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

.nav-link {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.5px;
  color: var(--color-text-secondary);
  transition: color 0.3s ease;
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--color-red);
  transition: width 0.3s var(--ease-out-expo);
}

.nav-link:hover {
  color: var(--color-text);
}

.nav-link:hover::after {
  width: 100%;
}

.nav-cta-btn {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.5px;
  color: white;
  background: var(--color-red);
  padding: 10px 20px;
  border-radius: 6px;
  transition: all 0.3s ease;
  border: 1px solid transparent;
}

.nav-cta-btn:hover {
  background: var(--color-red-bright);
  box-shadow: 0 0 20px var(--color-red-glow);
}

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  z-index: 1001;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--color-text);
  border-radius: 1px;
  transition: all 0.3s ease;
}

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

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

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

/* --- Hero --- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: calc(var(--nav-height) + 40px) 24px 80px;
}

.hero-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.hero-grid-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image:
    linear-gradient(rgba(255,255,255,0.015) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.015) 1px, transparent 1px);
  background-size: 60px 60px;
  z-index: 1;
  pointer-events: none;
}

.hero-radial {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(ellipse 60% 50% at 50% 40%, var(--color-red-glow) 0%, transparent 70%);
  z-index: 1;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 800px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 2px;
  color: var(--color-red-bright);
  background: rgba(220, 38, 38, 0.08);
  border: 1px solid rgba(220, 38, 38, 0.2);
  padding: 8px 20px;
  border-radius: 100px;
  margin-bottom: 32px;
}

.badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-red);
  animation: badgePulse 2s ease-in-out infinite;
}

@keyframes badgePulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(220, 38, 38, 0.4); }
  50% { opacity: 0.6; box-shadow: 0 0 0 6px rgba(220, 38, 38, 0); }
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(48px, 8vw, 96px);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -1px;
  margin-bottom: 24px;
}

.hero-subtitle {
  font-size: clamp(16px, 2vw, 20px);
  color: var(--color-text-secondary);
  max-width: 600px;
  margin: 0 auto 40px;
  line-height: 1.7;
}

/* --- Form Inputs --- */
.input-group {
  display: flex;
  gap: 0;
  max-width: 480px;
  margin: 0 auto;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--color-border);
  background: var(--color-bg-elevated);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.input-group:focus-within {
  border-color: var(--color-red);
  box-shadow: 0 0 0 3px var(--color-red-glow), 0 0 30px var(--color-red-glow);
}

.input-email {
  flex: 1;
  padding: 16px 20px;
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--color-text);
  background: transparent;
  border: none;
  outline: none;
  min-width: 0;
}

.input-email::placeholder {
  color: var(--color-text-muted);
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 16px 28px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  color: white;
  background: var(--color-red);
  border: none;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.3s ease;
  letter-spacing: 0.3px;
}

.btn-primary:hover {
  background: var(--color-red-bright);
}

.btn-primary:active {
  transform: scale(0.98);
}

.form-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 16px;
  font-size: 12px;
  color: var(--color-text-muted);
}

.separator {
  color: var(--color-border);
}

/* Platform badges */
.hero-platforms {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 48px;
}

.platform-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 500;
  color: var(--color-text-muted);
  padding: 8px 14px;
  border: 1px solid var(--color-border-subtle);
  border-radius: 6px;
  background: rgba(255,255,255,0.02);
  transition: all 0.3s ease;
}

.platform-badge:hover {
  border-color: var(--color-border);
  color: var(--color-text-secondary);
  background: rgba(255,255,255,0.04);
}

/* Scroll indicator */
.scroll-indicator {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.scroll-indicator span {
  font-size: 11px;
  letter-spacing: 1px;
  color: var(--color-text-muted);
  text-transform: uppercase;
}

.scroll-mouse {
  width: 24px;
  height: 38px;
  border: 2px solid var(--color-text-muted);
  border-radius: 12px;
  display: flex;
  justify-content: center;
  padding-top: 8px;
}

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

@keyframes scrollWheel {
  0%, 100% { opacity: 1; transform: translateY(0); }
  50% { opacity: 0.3; transform: translateY(8px); }
}

/* --- Sections --- */
.section {
  padding: var(--section-padding) 0;
  position: relative;
}

.section-label {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 3px;
  color: var(--color-red);
  margin-bottom: 20px;
  text-transform: uppercase;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.5px;
  margin-bottom: 24px;
}

.section-description {
  font-size: clamp(16px, 1.8vw, 18px);
  color: var(--color-text-secondary);
  max-width: 640px;
  line-height: 1.8;
  margin-bottom: 48px;
}

.section-kicker {
  font-family: var(--font-display);
  font-size: clamp(20px, 3vw, 32px);
  font-weight: 700;
  margin-top: 64px;
}

/* --- Problem Section --- */
.section-problem {
  background: var(--color-bg);
  border-top: 1px solid var(--color-border-subtle);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 48px;
}

.stat-card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: 32px 24px;
  text-align: center;
  transition: all 0.4s var(--ease-out-expo);
}

.stat-card:hover {
  border-color: rgba(220, 38, 38, 0.3);
  background: var(--color-bg-card-hover);
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.3), 0 0 40px var(--color-red-glow);
}

.stat-number {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.5vw, 40px);
  font-weight: 800;
  color: var(--color-text);
  margin-bottom: 8px;
}

.stat-label {
  font-size: 13px;
  color: var(--color-text-muted);
  line-height: 1.5;
}

/* --- Features Section --- */
.section-features {
  background: var(--color-bg-elevated);
  border-top: 1px solid var(--color-border-subtle);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 16px;
}

.feature-card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: 36px 28px;
  transition: all 0.4s var(--ease-out-expo);
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--color-red), transparent);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.feature-card:hover {
  border-color: rgba(220, 38, 38, 0.25);
  background: var(--color-bg-card-hover);
  transform: translateY(-6px);
  box-shadow: 0 24px 48px rgba(0,0,0,0.3), 0 0 60px var(--color-red-glow);
}

.feature-card:hover::before {
  opacity: 1;
}

.feature-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(220, 38, 38, 0.08);
  border: 1px solid rgba(220, 38, 38, 0.15);
  border-radius: 10px;
  margin-bottom: 20px;
  transition: all 0.3s ease;
}

.feature-card:hover .feature-icon {
  background: rgba(220, 38, 38, 0.12);
  border-color: rgba(220, 38, 38, 0.3);
  box-shadow: 0 0 20px var(--color-red-glow);
}

.feature-icon svg {
  width: 24px;
  height: 24px;
  color: var(--color-red);
}

.feature-title {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.5px;
  margin-bottom: 12px;
}

.feature-text {
  font-size: 14px;
  color: var(--color-text-secondary);
  line-height: 1.7;
}

/* --- How It Works --- */
.section-how {
  background: var(--color-bg);
  border-top: 1px solid var(--color-border-subtle);
}

.steps {
  display: flex;
  gap: 40px;
  margin-top: 64px;
}

.step {
  flex: 1;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.step-number {
  font-family: var(--font-display);
  font-size: 48px;
  font-weight: 900;
  color: var(--color-red);
  line-height: 1;
  margin-bottom: 20px;
  opacity: 0.3;
  transition: opacity 0.4s ease;
}

.step:hover .step-number {
  opacity: 1;
}

.step-connector {
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--color-red), var(--color-border));
  margin-bottom: 24px;
  position: relative;
}

.step-connector::after {
  content: '';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-red);
  box-shadow: 0 0 12px var(--color-red-glow);
}

.step-title {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 2px;
  margin-bottom: 12px;
}

.step-text {
  font-size: 14px;
  color: var(--color-text-secondary);
  line-height: 1.8;
}

/* --- Edge / Comparison --- */
.section-edge {
  background: var(--color-bg-elevated);
  border-top: 1px solid var(--color-border-subtle);
}

.section-edge .section-description em {
  color: var(--color-text-secondary);
  font-style: italic;
}

.section-edge .section-description strong {
  color: var(--color-red-bright);
  font-weight: 600;
}

.comparison-table {
  max-width: 800px;
  border: 1px solid var(--color-border);
  border-radius: 12px;
  overflow: hidden;
  background: var(--color-bg-card);
}

.comparison-header {
  display: grid;
  grid-template-columns: 1fr 140px 140px;
  padding: 16px 24px;
  background: rgba(255,255,255,0.02);
  border-bottom: 1px solid var(--color-border);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

.comparison-row {
  display: grid;
  grid-template-columns: 1fr 140px 140px;
  padding: 14px 24px;
  border-bottom: 1px solid var(--color-border-subtle);
  font-size: 14px;
  transition: background 0.2s ease;
}

.comparison-row:last-child {
  border-bottom: none;
}

.comparison-row:hover {
  background: rgba(255,255,255,0.015);
}

.comparison-feature {
  color: var(--color-text-secondary);
}

.comparison-them,
.comparison-us {
  text-align: center;
}

.check-them {
  font-size: 11px;
  color: var(--color-text-muted);
  font-family: var(--font-mono);
}

.check-us {
  color: var(--color-red-bright);
  font-size: 18px;
  font-weight: 700;
}

.check-no {
  color: #3f3f3f;
  font-size: 18px;
}

/* --- CTA Section --- */
.section-cta {
  background: var(--color-bg);
  border-top: 1px solid var(--color-border-subtle);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-bg-effect {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, var(--color-red-glow) 0%, transparent 60%);
  pointer-events: none;
  opacity: 0.5;
}

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

.cta-content .section-description {
  margin-left: auto;
  margin-right: auto;
}

.cta-form {
  max-width: 480px;
  margin: 0 auto;
}

.cta-trust {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  margin-top: 40px;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--color-text-muted);
}

.trust-item svg {
  color: var(--color-red);
  opacity: 0.7;
}

/* --- Footer: The Throne Room --- */
.footer {
  padding: 0 0 48px;
  text-align: center;
  border-top: none;
  background: var(--color-bg);
  position: relative;
  overflow: hidden;
}

/* Top glow bar — the red saber line */
.footer-glow-top {
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent 5%, var(--color-red-dark) 20%, var(--color-red-bright) 50%, var(--color-red-dark) 80%, transparent 95%);
  position: relative;
  box-shadow: 0 0 20px var(--color-red-glow), 0 0 60px var(--color-red-glow), 0 0 120px rgba(220, 38, 38, 0.08);
}

.footer-glow-top::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 80px;
  background: linear-gradient(180deg, rgba(220, 38, 38, 0.08) 0%, transparent 100%);
  pointer-events: none;
}

/* The logo showcase — massive, commanding */
.footer-logo-showcase {
  padding: 80px 24px 60px;
  position: relative;
}

/* Ambient glow behind the logo */
.footer-logo-showcase::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 90%;
  max-width: 900px;
  height: 500px;
  background: radial-gradient(ellipse 70% 60% at 50% 50%, rgba(220, 38, 38, 0.1) 0%, rgba(220, 38, 38, 0.04) 40%, transparent 70%);
  pointer-events: none;
}

/* The frame — red rounded border with glowing corners */
.footer-logo-frame {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  padding: 48px 40px;
  border-radius: 20px;
  border: 1px solid rgba(220, 38, 38, 0.2);
  background: linear-gradient(
    180deg,
    rgba(220, 38, 38, 0.03) 0%,
    rgba(5, 5, 5, 0.8) 30%,
    rgba(5, 5, 5, 0.9) 70%,
    rgba(220, 38, 38, 0.03) 100%
  );
  box-shadow:
    0 0 40px rgba(220, 38, 38, 0.06),
    0 0 80px rgba(220, 38, 38, 0.03),
    inset 0 0 60px rgba(0, 0, 0, 0.5);
  transition: border-color 0.6s ease, box-shadow 0.6s ease;
}

.footer-logo-frame:hover {
  border-color: rgba(220, 38, 38, 0.35);
  box-shadow:
    0 0 60px rgba(220, 38, 38, 0.1),
    0 0 120px rgba(220, 38, 38, 0.05),
    inset 0 0 80px rgba(0, 0, 0, 0.4);
}

/* Glowing corner accents */
.footer-frame-corner {
  position: absolute;
  width: 24px;
  height: 24px;
  z-index: 2;
}

.footer-frame-corner::before,
.footer-frame-corner::after {
  content: '';
  position: absolute;
  background: var(--color-red);
  border-radius: 1px;
  box-shadow: 0 0 8px var(--color-red-glow), 0 0 20px var(--color-red-glow);
}

.footer-frame-corner.tl { top: -1px; left: -1px; }
.footer-frame-corner.tr { top: -1px; right: -1px; }
.footer-frame-corner.bl { bottom: -1px; left: -1px; }
.footer-frame-corner.br { bottom: -1px; right: -1px; }

/* Horizontal bars of corners */
.footer-frame-corner.tl::before,
.footer-frame-corner.tr::before,
.footer-frame-corner.bl::before,
.footer-frame-corner.br::before {
  width: 24px;
  height: 2px;
}

/* Vertical bars of corners */
.footer-frame-corner.tl::after,
.footer-frame-corner.tr::after,
.footer-frame-corner.bl::after,
.footer-frame-corner.br::after {
  width: 2px;
  height: 24px;
}

.footer-frame-corner.tl::before { top: 0; left: 0; }
.footer-frame-corner.tl::after { top: 0; left: 0; }

.footer-frame-corner.tr::before { top: 0; right: 0; }
.footer-frame-corner.tr::after { top: 0; right: 0; }

.footer-frame-corner.bl::before { bottom: 0; left: 0; }
.footer-frame-corner.bl::after { bottom: 0; left: 0; }

.footer-frame-corner.br::before { bottom: 0; right: 0; }
.footer-frame-corner.br::after { bottom: 0; right: 0; }

/* Animated edge glow lines */
.footer-frame-edge {
  position: absolute;
  background: var(--color-red);
  opacity: 0;
  animation: edgePulse 4s ease-in-out infinite;
}

.footer-frame-edge.top {
  top: -1px;
  left: 50%;
  transform: translateX(-50%);
  width: 30%;
  height: 1px;
  box-shadow: 0 0 15px rgba(220, 38, 38, 0.4), 0 0 40px rgba(220, 38, 38, 0.15);
  animation-delay: 0s;
}

.footer-frame-edge.bottom {
  bottom: -1px;
  left: 50%;
  transform: translateX(-50%);
  width: 30%;
  height: 1px;
  box-shadow: 0 0 15px rgba(220, 38, 38, 0.4), 0 0 40px rgba(220, 38, 38, 0.15);
  animation-delay: 2s;
}

.footer-frame-edge.left {
  left: -1px;
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
  height: 25%;
  box-shadow: 0 0 15px rgba(220, 38, 38, 0.4), 0 0 40px rgba(220, 38, 38, 0.15);
  animation-delay: 1s;
}

.footer-frame-edge.right {
  right: -1px;
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
  height: 25%;
  box-shadow: 0 0 15px rgba(220, 38, 38, 0.4), 0 0 40px rgba(220, 38, 38, 0.15);
  animation-delay: 3s;
}

@keyframes edgePulse {
  0%, 100% { opacity: 0; }
  30%, 70% { opacity: 1; }
}

/* The logo itself — massive */
.footer-logo-inner {
  position: relative;
  z-index: 1;
}

.footer-logo {
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  filter:
    drop-shadow(0 0 30px rgba(220, 38, 38, 0.25))
    drop-shadow(0 0 80px rgba(220, 38, 38, 0.1))
    drop-shadow(0 0 150px rgba(220, 38, 38, 0.05));
  transition: filter 0.8s var(--ease-out-expo), transform 0.8s var(--ease-out-expo);
}

.footer-logo-frame:hover .footer-logo {
  filter:
    drop-shadow(0 0 40px rgba(220, 38, 38, 0.35))
    drop-shadow(0 0 100px rgba(220, 38, 38, 0.15))
    drop-shadow(0 0 180px rgba(220, 38, 38, 0.08));
  transform: scale(1.015);
}

/* Tagline — colder, harder */
.footer-tagline {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 5px;
  color: var(--color-text-muted);
  text-transform: uppercase;
  margin-bottom: 40px;
  position: relative;
  padding: 0 24px;
}

/* Decorative lines flanking the tagline */
.footer-tagline::before,
.footer-tagline::after {
  content: '';
  display: inline-block;
  width: 40px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--color-red), transparent);
  vertical-align: middle;
  margin: 0 16px;
  opacity: 0.5;
}

/* Footer CTA — Hit us up */
.footer-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-bottom: 40px;
  padding: 0 24px;
  font-family: var(--font-display);
}

.footer-cta-label {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--color-red);
}

.footer-cta-arrow {
  font-size: 24px;
  color: var(--color-red);
  line-height: 1;
  animation: fingerPulse 2s ease-in-out infinite;
}

@keyframes fingerPulse {
  0%, 100% { transform: translateX(0); opacity: 1; }
  50% { transform: translateX(5px); opacity: 0.6; }
}

.footer-cta-email {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: var(--color-red-bright);
  text-decoration: none;
  transition: all 0.3s ease;
  position: relative;
}

.footer-cta-email::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--color-red-bright);
  box-shadow: 0 0 8px var(--color-red-glow);
  transition: width 0.3s var(--ease-out-expo);
}

.footer-cta-email:hover {
  color: #ff6b6b;
  text-shadow: 0 0 20px var(--color-red-glow);
}

.footer-cta-email:hover::after {
  width: 100%;
}

.footer-bottom {
  font-size: 12px;
  color: var(--color-text-muted);
  padding: 0 24px;
}

.footer-legal {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 12px;
  font-size: 11px;
}

.footer-legal span {
  color: var(--color-border);
}

.footer-legal a {
  color: var(--color-text-muted);
  text-decoration: none;
  transition: color 0.2s ease;
  opacity: 0.6;
}

.footer-legal a:hover {
  color: var(--color-text-secondary);
  opacity: 1;
}

/* --- Toast --- */
.toast {
  position: fixed;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  color: var(--color-text);
  padding: 16px 24px;
  border-radius: 10px;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 9999;
  opacity: 0;
  transition: all 0.5s var(--ease-out-expo);
  box-shadow: 0 16px 48px rgba(0,0,0,0.4);
}

.toast svg {
  color: var(--color-red);
  flex-shrink: 0;
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* --- Scroll Reveal Animations --- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s var(--ease-out-expo), transform 0.8s var(--ease-out-expo);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.35s; }
.reveal-delay-4 { transition-delay: 0.5s; }

/* Stagger feature cards */
.features-grid .feature-card:nth-child(1) { transition-delay: 0s; }
.features-grid .feature-card:nth-child(2) { transition-delay: 0.08s; }
.features-grid .feature-card:nth-child(3) { transition-delay: 0.16s; }
.features-grid .feature-card:nth-child(4) { transition-delay: 0.24s; }
.features-grid .feature-card:nth-child(5) { transition-delay: 0.32s; }
.features-grid .feature-card:nth-child(6) { transition-delay: 0.4s; }

/* Stagger steps */
.steps .step:nth-child(1) { transition-delay: 0s; }
.steps .step:nth-child(2) { transition-delay: 0.15s; }
.steps .step:nth-child(3) { transition-delay: 0.3s; }

/* Stagger stats */
.stats-grid .stat-card:nth-child(1) { transition-delay: 0s; }
.stats-grid .stat-card:nth-child(2) { transition-delay: 0.08s; }
.stats-grid .stat-card:nth-child(3) { transition-delay: 0.16s; }
.stats-grid .stat-card:nth-child(4) { transition-delay: 0.24s; }

/* Stagger comparison rows */
.comparison-row:nth-child(2) { transition-delay: 0.05s; }
.comparison-row:nth-child(3) { transition-delay: 0.1s; }
.comparison-row:nth-child(4) { transition-delay: 0.15s; }
.comparison-row:nth-child(5) { transition-delay: 0.2s; }
.comparison-row:nth-child(6) { transition-delay: 0.25s; }
.comparison-row:nth-child(7) { transition-delay: 0.3s; }
.comparison-row:nth-child(8) { transition-delay: 0.35s; }
.comparison-row:nth-child(9) { transition-delay: 0.4s; }

/* --- Responsive --- */
@media (max-width: 1024px) {
  :root {
    --section-padding: 80px;
  }

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

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

  .steps {
    flex-direction: column;
    gap: 32px;
  }

  .step-connector {
    width: 60%;
  }
}

@media (max-width: 768px) {
  :root {
    --section-padding: 64px;
    --nav-height: 64px;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: 0;
    width: 280px;
    height: 100vh;
    background: rgba(10, 10, 10, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    flex-direction: column;
    align-items: flex-start;
    padding: 100px 32px 32px;
    gap: 24px;
    transform: translateX(100%);
    transition: transform 0.4s var(--ease-out-expo);
    border-left: 1px solid var(--color-border);
  }

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

  .nav-toggle {
    display: flex;
  }

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

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

  .stat-card {
    padding: 24px 16px;
  }

  .hero-title {
    letter-spacing: 0;
  }

  .input-group {
    flex-direction: column;
  }

  .btn-primary {
    justify-content: center;
  }

  .hero-platforms {
    flex-wrap: wrap;
  }

  .comparison-header,
  .comparison-row {
    grid-template-columns: 1fr 100px 100px;
    padding: 12px 16px;
    font-size: 12px;
  }

  .comparison-feature {
    font-size: 12px;
  }

  .check-them {
    font-size: 10px;
  }

  .cta-trust {
    flex-direction: column;
    gap: 16px;
  }

  .footer-logo {
    max-width: 100%;
  }

  .footer-logo-frame {
    padding: 32px 20px;
    border-radius: 14px;
  }

  .footer-logo-showcase {
    padding: 60px 16px 48px;
  }

  .footer-tagline {
    font-size: 11px;
    letter-spacing: 3px;
  }

  .footer-tagline::before,
  .footer-tagline::after {
    width: 20px;
    margin: 0 10px;
  }

  .scroll-indicator {
    display: none;
  }
}

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

  .comparison-header,
  .comparison-row {
    grid-template-columns: 1fr 80px 80px;
    padding: 10px 12px;
  }

  .hero-platforms {
    gap: 8px;
  }

  .platform-badge {
    font-size: 11px;
    padding: 6px 10px;
  }
}

/* --- Scanline effect (subtle CRT) --- */
.hero::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0,0,0,0.03) 2px,
    rgba(0,0,0,0.03) 4px
  );
  z-index: 1;
  pointer-events: none;
}

/* --- Animated gradient border for feature cards on hover --- */
@keyframes borderGlow {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 1; }
}

/* --- Glow accents --- */
.hero-badge {
  position: relative;
}

.hero-badge::after {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(220, 38, 38, 0.3), transparent, rgba(220, 38, 38, 0.1));
  z-index: -1;
  opacity: 0;
  animation: badgeGlow 3s ease-in-out infinite;
}

@keyframes badgeGlow {
  0%, 100% { opacity: 0; }
  50% { opacity: 1; }
}

/* --- Section decorative accent line --- */
.section-problem::before,
.section-features::before,
.section-how::before,
.section-edge::before,
.section-cta::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--color-red), transparent);
}

/* --- Smooth page transition on load --- */
body {
  animation: bodyFadeIn 0.3s ease;
}

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

/* --- Focus visible states for accessibility --- */
.nav-link:focus-visible,
.nav-cta-btn:focus-visible,
.btn-primary:focus-visible,
.input-email:focus-visible {
  outline: 2px solid var(--color-red);
  outline-offset: 2px;
}

/* --- Disabled button state --- */
.btn-primary:disabled {
  cursor: not-allowed;
  opacity: 0.9;
}

/* ============================================
   CASHFORCARSNOW — Promo Breakout Section
   Below footer. Different universe.
   ============================================ */

.cfcn-promo {
  background: #0b1120;
  padding: 80px 24px;
  text-align: center;
  position: relative;
  overflow: hidden;
  border-top: 1px solid rgba(0, 230, 118, 0.1);
}

/* Subtle ambient glow */
.cfcn-promo::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 400px;
  background: radial-gradient(ellipse, rgba(0, 200, 83, 0.06) 0%, transparent 70%);
  pointer-events: none;
}

.cfcn-promo::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 800px;
  height: 300px;
  background: radial-gradient(ellipse, rgba(30, 64, 175, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.cfcn-inner {
  max-width: 700px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.cfcn-badge {
  display: inline-block;
  font-family: 'Outfit', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 3px;
  color: rgba(0, 230, 118, 0.6);
  border: 1px solid rgba(0, 230, 118, 0.15);
  background: rgba(0, 230, 118, 0.05);
  padding: 6px 18px;
  border-radius: 100px;
  margin-bottom: 40px;
  text-transform: uppercase;
}

/* The logo link */
.cfcn-link {
  display: block;
  text-decoration: none;
  margin-bottom: 32px;
  transition: transform 0.4s var(--ease-out-expo);
}

.cfcn-link:hover {
  transform: scale(1.02);
}

.cfcn-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}

.cfcn-top-line {
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  font-size: 22px;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
  margin-bottom: -6px;
  position: relative;
  z-index: 2;
}

.cfcn-dot {
  color: #00e676;
  font-weight: 800;
  text-shadow: 0 0 16px rgba(0, 230, 118, 0.5);
}

.cfcn-now-wrap {
  position: relative;
  line-height: 0.85;
}

.cfcn-now-text {
  font-family: 'Inter Tight', sans-serif;
  font-weight: 900;
  font-size: clamp(100px, 18vw, 180px);
  letter-spacing: -0.03em;
  font-style: italic;
  background: linear-gradient(180deg, #ffffff 0%, #c7d2fe 40%, #1e3a8a 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 0 40px rgba(30, 58, 138, 0.3));
  position: relative;
  z-index: 2;
}

/* Speed streaks */
.cfcn-speed-lines {
  position: absolute;
  left: -40px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.cfcn-speed-line {
  height: 3px;
  border-radius: 3px;
  background: linear-gradient(90deg, transparent, rgba(0, 230, 118, 0.5));
  animation: cfcnStreakPulse 2s ease-in-out infinite;
}

.cfcn-speed-line:nth-child(1) { width: 60px; animation-delay: 0s; }
.cfcn-speed-line:nth-child(2) { width: 38px; margin-left: 12px; animation-delay: 0.3s; }
.cfcn-speed-line:nth-child(3) { width: 50px; margin-left: 4px; animation-delay: 0.15s; }
.cfcn-speed-line:nth-child(4) { width: 30px; margin-left: 16px; animation-delay: 0.45s; }
.cfcn-speed-line:nth-child(5) { width: 42px; margin-left: 8px; animation-delay: 0.6s; }

@keyframes cfcnStreakPulse {
  0%, 100% { opacity: 0.3; transform: scaleX(0.8); }
  50% { opacity: 1; transform: scaleX(1); }
}

/* Green underline bar */
.cfcn-underline-bar {
  width: 100%;
  max-width: 340px;
  height: 4px;
  background: linear-gradient(90deg, #00c853, #00e676, #69f0ae);
  border-radius: 4px;
  margin-top: 4px;
  box-shadow: 0 0 20px rgba(0, 230, 118, 0.3), 0 0 50px rgba(0, 230, 118, 0.1);
  position: relative;
  overflow: hidden;
}

.cfcn-underline-bar::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.5), transparent);
  animation: cfcnShimmer 2.5s ease-in-out infinite;
}

@keyframes cfcnShimmer {
  0% { left: -100%; }
  100% { left: 200%; }
}

/* Subtitle */
.cfcn-subtitle {
  font-family: 'Outfit', sans-serif;
  font-size: 18px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.5);
  letter-spacing: 0.5px;
  margin-bottom: 28px;
}

.cfcn-subtitle strong {
  color: #00e676;
  font-weight: 800;
  text-shadow: 0 0 12px rgba(0, 230, 118, 0.3);
}

/* CTA Button */
.cfcn-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Outfit', sans-serif;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.5px;
  color: #0b1120;
  background: linear-gradient(135deg, #00e676, #00c853);
  padding: 14px 32px;
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 0 24px rgba(0, 230, 118, 0.2);
}

.cfcn-cta:hover {
  background: linear-gradient(135deg, #69f0ae, #00e676);
  box-shadow: 0 0 40px rgba(0, 230, 118, 0.35);
  transform: translateY(-2px);
}

.cfcn-cta:active {
  transform: translateY(0) scale(0.98);
}

/* Responsive */
@media (max-width: 768px) {
  .cfcn-promo {
    padding: 60px 16px;
  }

  .cfcn-top-line {
    font-size: 16px;
    letter-spacing: 0.3em;
  }

  .cfcn-speed-lines {
    left: -24px;
  }

  .cfcn-speed-line:nth-child(1) { width: 40px; }
  .cfcn-speed-line:nth-child(2) { width: 24px; }
  .cfcn-speed-line:nth-child(3) { width: 32px; }
  .cfcn-speed-line:nth-child(4) { width: 20px; }
  .cfcn-speed-line:nth-child(5) { width: 28px; }

  .cfcn-subtitle {
    font-size: 15px;
  }
}

@media (max-width: 480px) {
  .cfcn-speed-lines {
    display: none;
  }

  .cfcn-top-line {
    font-size: 14px;
  }
}
