/* ============================================
   ATONOX — Premium Design System
   Inspired by OpenClaw.ai visual DNA
   ============================================ */

/* --- Custom Properties --- */
:root {
  --bg-deep: #050810;
  --bg-surface: #0a0f1a;
  --bg-elevated: #111827;

  --accent-red: #ff4d4d;
  --accent-red-light: #ff6666;
  --accent-gold: #d4a843;
  --accent-gold-light: #e4be5e;
  --accent-cyan: #00e5cc;

  --text-primary: #f0f4ff;
  --text-secondary: #8892b0;
  --text-muted: #5a6480;

  --border-subtle: rgba(136, 146, 176, 0.15);
  --border-card: rgba(136, 146, 176, 0.12);

  --surface-card: rgba(10, 15, 26, 0.65);
  --surface-card-strong: rgba(10, 15, 26, 0.8);

  --glow-red: rgba(255, 77, 77, 0.3);
  --glow-red-soft: rgba(255, 77, 77, 0.12);
  --glow-gold: rgba(212, 168, 67, 0.2);
  --glow-gold-soft: rgba(212, 168, 67, 0.08);
  --glow-cyan: rgba(0, 229, 204, 0.15);

  --shadow-red-soft: rgba(255, 77, 77, 0.15);
  --shadow-red-mid: rgba(255, 77, 77, 0.25);

  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --radius: 12px;
  --radius-lg: 20px;
  --radius-sm: 8px;

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

  --noise-opacity: 0.03;
}

/* --- 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;
}

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

/* --- Stars Layer (Fixed, OpenClaw-style) --- */
.stars {
  position: fixed;
  inset: 0;
  background-image:
    radial-gradient(2px 2px at 20px 30px, rgba(255,255,255,.8), transparent),
    radial-gradient(2px 2px at 40px 70px, rgba(255,255,255,.5), transparent),
    radial-gradient(1px 1px at 90px 40px, rgba(255,255,255,.6), transparent),
    radial-gradient(2px 2px at 130px 80px, rgba(255,255,255,.4), transparent),
    radial-gradient(1px 1px at 160px 120px, rgba(255,255,255,.7), transparent),
    radial-gradient(2px 2px at 200px 60px, rgba(0,229,204,.6), transparent),
    radial-gradient(1px 1px at 250px 150px, rgba(255,255,255,.5), transparent),
    radial-gradient(2px 2px at 300px 40px, rgba(255,77,77,.4), transparent),
    radial-gradient(1px 1px at 50px 160px, rgba(255,255,255,.6), transparent),
    radial-gradient(2px 2px at 180px 10px, rgba(255,255,255,.3), transparent),
    radial-gradient(1px 1px at 320px 130px, rgba(0,229,204,.5), transparent),
    radial-gradient(2px 2px at 280px 180px, rgba(255,255,255,.4), transparent),
    radial-gradient(1px 1px at 110px 170px, rgba(255,77,77,.35), transparent),
    radial-gradient(2px 2px at 350px 90px, rgba(255,255,255,.55), transparent);
  background-size: 380px 220px;
  animation: twinkle 8s ease-in-out infinite alternate;
  pointer-events: none;
  z-index: 0;
}

@keyframes twinkle {
  0% { opacity: .4; }
  100% { opacity: .7; }
}

/* --- Nebula Layer (Fixed, OpenClaw-style) --- */
.nebula {
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 20% 20%, rgba(255,77,77,.12), transparent 50%),
    radial-gradient(ellipse 60% 60% at 80% 30%, rgba(0,229,204,.08), transparent 50%),
    radial-gradient(ellipse 90% 70% at 50% 90%, rgba(255,77,77,.06), transparent 50%);
  pointer-events: none;
  z-index: 0;
}

/* --- Noise / Grain Overlay --- */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: var(--noise-opacity);
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 256px 256px;
}

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

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

/* --- Container --- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* --- Section --- */
.section {
  padding: 120px 0;
  position: relative;
  z-index: 1;
}

.section-alt {
  background: rgba(10, 15, 26, 0.4);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.section-header {
  text-align: center;
  margin-bottom: 72px;
}

.section-eyebrow {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-gold);
  margin-bottom: 16px;
}

.section-heading {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin-bottom: 16px;
}

.section-sub {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.7;
}

/* --- Scroll Reveal --- */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 32px;
  font-family: var(--font);
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: var(--accent-red);
  color: #fff;
  box-shadow: 0 0 24px var(--glow-red), 0 4px 16px rgba(0, 0, 0, 0.3);
}

.btn-primary:hover {
  background: var(--accent-red-light);
  box-shadow: 0 0 40px var(--glow-red), 0 8px 32px rgba(0, 0, 0, 0.4);
  transform: translateY(-2px);
}

.btn-ghost {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-card);
  box-shadow: none;
}

.btn-ghost:hover {
  border-color: rgba(136, 146, 176, 0.3);
  background: rgba(255, 255, 255, 0.04);
  transform: translateY(-2px);
  box-shadow: 0 0 20px var(--glow-red-soft);
}

.btn-lg {
  padding: 18px 40px;
  font-size: 1.05rem;
}

/* Glow pulse animation for primary CTA */
@keyframes glowPulse {
  0%, 100% { box-shadow: 0 0 24px var(--glow-red), 0 4px 16px rgba(0, 0, 0, 0.3); }
  50% { box-shadow: 0 0 48px var(--glow-red), 0 4px 24px var(--shadow-red-mid); }
}

.hero .btn-primary {
  animation: glowPulse 3s ease-in-out infinite;
}

.hero .btn-primary:hover {
  animation: none;
}

/* ============================================
   NAV
   ============================================ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 0 0;
  background: rgba(5, 8, 16, 0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-subtle);
  transition: background var(--transition);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.nav-logo {
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--text-primary);
  transition: color var(--transition);
}

.nav-logo:hover {
  color: var(--accent-red);
}

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

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

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

.nav-links .nav-cta {
  padding: 8px 20px;
  background: var(--accent-red);
  color: #fff;
  border-radius: var(--radius-sm);
  font-weight: 600;
}

.nav-links .nav-cta:hover {
  background: var(--accent-red-light);
}

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

.nav-mobile-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all var(--transition);
}

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

.nav-mobile {
  display: none;
  flex-direction: column;
  padding: 16px 24px 24px;
  background: rgba(5, 8, 16, 0.95);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-subtle);
}

.nav-mobile.open {
  display: flex;
}

.nav-mobile a {
  padding: 12px 0;
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border-subtle);
}

.nav-mobile a:last-child {
  border-bottom: none;
}

.nav-mobile .nav-cta {
  margin-top: 8px;
  text-align: center;
  padding: 12px;
  background: var(--accent-red);
  color: #fff;
  border-radius: var(--radius-sm);
  border-bottom: none;
}

/* Premium Search Bar */
.search-bar-wrapper {
  position: fixed;
  top: 64px;
  left: 0;
  right: 0;
  z-index: 999;
  padding: 12px 0;
  background: rgba(5, 8, 16, 0.6);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-subtle);
}

.search-bar {
  position: relative;
  max-width: 600px;
  margin: 0 auto;
}

.search-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
  z-index: 2;
}

.search-input {
  width: 100%;
  padding: 14px 20px 14px 46px;
  font-family: var(--font);
  font-size: 0.95rem;
  color: var(--text-primary);
  background: rgba(10, 15, 26, 0.7);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  outline: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(8px);
}

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

.search-input:focus {
  border-color: var(--accent-red);
  background: rgba(10, 15, 26, 0.85);
  box-shadow: 0 0 0 3px rgba(255, 77, 77, 0.1), 0 8px 32px rgba(0, 0, 0, 0.3);
}

.search-results {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background: rgba(10, 15, 26, 0.95);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  padding: 8px;
  z-index: 100;
  max-height: 320px;
  overflow-y: auto;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.4);
}

.search-results.active {
  display: block;
}

.search-result-item {
  display: block;
  padding: 12px 16px;
  color: var(--text-primary);
  text-decoration: none;
  border-radius: 10px;
  font-size: 0.9rem;
  transition: all 0.2s;
}

.search-result-item:hover {
  background: rgba(255, 77, 77, 0.08);
}

.search-result-item .result-name {
  font-weight: 600;
  margin-bottom: 3px;
  display: block;
}

.search-result-item .result-desc {
  font-size: 0.8rem;
  color: var(--text-muted);
  display: block;
}

.search-no-results {
  padding: 16px;
  color: var(--text-muted);
  font-size: 0.88rem;
  text-align: center;
}

/* --- Clickable cards --- */
a.step-card,
a.capability-card {
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  display: block;
}

/* Nav glow line */
.nav::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent-red), var(--accent-cyan), transparent);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.nav.scrolled::after {
  opacity: 0.4;
}

/* ============================================
   HERO
   ============================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 130px;
  overflow: hidden;
  z-index: 1;
}

.hero-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 0;
}

.hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.5;
  animation: heroGlowDrift 12s ease-in-out infinite alternate;
}

.hero-glow--red {
  width: 800px;
  height: 800px;
  background: radial-gradient(ellipse, rgba(255, 77, 77, 0.2) 0%, rgba(255, 77, 77, 0.08) 30%, transparent 70%);
  top: -10%;
  right: -10%;
  opacity: 0.4;
}

.hero-glow--gold {
  width: 600px;
  height: 600px;
  background: radial-gradient(ellipse, rgba(0, 229, 204, 0.12) 0%, rgba(0, 229, 204, 0.05) 40%, transparent 70%);
  bottom: -15%;
  left: -10%;
  opacity: 0.25;
  animation-delay: -6s;
}

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

.hero-grid-pattern {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(136, 146, 176, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(136, 146, 176, 0.02) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 50%, black 30%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 50%, black 30%, transparent 100%);
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 1;
  padding-top: 40px;
  padding-bottom: 40px;
}

.hero-content {
  max-width: 560px;
}

.hero-badge {
  display: inline-block;
  padding: 6px 16px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-gold);
  border: 1px solid rgba(212, 168, 67, 0.25);
  border-radius: 100px;
  background: rgba(212, 168, 67, 0.06);
  margin-bottom: 24px;
}

.hero-headline {
  font-size: clamp(2.5rem, 5.5vw, 4rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
  background: linear-gradient(135deg, #f0f4ff 0%, #ff4d4d 52%, #d4a843 100%);
  background-size: 200% 200%;
  animation: gradientShift 6s ease infinite;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

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

.hero-sub {
  font-size: 1.15rem;
  line-height: 1.7;
  color: var(--text-secondary);
  margin-bottom: 40px;
  max-width: 480px;
}

.hero-ctas {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* Mascot */
.hero-mascot {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  animation: float 4s ease-in-out infinite;
}

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

.mascot-glow {
  position: absolute;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--glow-red) 0%, transparent 70%);
  filter: blur(60px);
  animation: mascotGlow 4s ease-in-out infinite alternate;
  z-index: 0;
}

@keyframes mascotGlow {
  0% { opacity: 0.4; transform: scale(1); }
  100% { opacity: 0.7; transform: scale(1.08); }
}

.mascot-canvas {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 420px;
  height: auto;
  aspect-ratio: 1;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.6s ease;
}

.mascot-fallback {
  position: relative;
  z-index: 1;
  max-width: 420px;
  width: 100%;
}

.mascot-img {
  position: relative;
  z-index: 1;
  max-width: 420px;
  width: 100%;
  filter: drop-shadow(0 20px 60px rgba(255, 77, 77, 0.2));
  transition: transform 0.4s ease, filter 0.4s ease;
}

.mascot-img:hover {
  transform: scale(1.04);
  filter: drop-shadow(0 24px 80px rgba(255, 77, 77, 0.35));
}

/* ============================================
   ABOUT SECTION
   ============================================ */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.about-content .section-heading {
  text-align: left;
}

.about-content .section-eyebrow {
  text-align: left;
}

.about-lead {
  font-size: 1.15rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 16px;
}

.about-body {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.7;
}

.about-features {
  display: flex;
  flex-direction: column;
  gap: 32px;
  padding-top: 12px;
}

.about-feature {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.about-feature-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  background: rgba(255, 77, 77, 0.08);
  border: 1px solid rgba(255, 77, 77, 0.15);
  color: var(--accent-red);
}

.about-feature h4 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 4px;
  color: var(--text-primary);
}

.about-feature p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* ============================================
   PRODUCTS
   ============================================ */
#products {
  position: relative;
  z-index: 1;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

.product-card {
  background: var(--surface-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 40px;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  transition: all var(--transition);
}

.product-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius-lg);
  padding: 1px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.06) 0%, transparent 50%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.product-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 77, 77, 0.3);
  box-shadow: 0 12px 40px var(--shadow-red-soft);
}

.product-card--featured {
  border-color: rgba(255, 77, 77, 0.2);
  box-shadow: 0 0 40px var(--glow-red-soft);
}

.product-card--featured:hover {
  border-color: rgba(255, 77, 77, 0.4);
  box-shadow: 0 12px 40px var(--shadow-red-mid), 0 0 60px var(--glow-red-soft);
}

.product-badge {
  display: inline-block;
  padding: 4px 12px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-red);
  background: rgba(255, 77, 77, 0.1);
  border: 1px solid rgba(255, 77, 77, 0.2);
  border-radius: 100px;
  margin-bottom: 24px;
  width: fit-content;
}

.product-badge--subtle {
  color: var(--accent-gold);
  background: rgba(212, 168, 67, 0.08);
  border-color: rgba(212, 168, 67, 0.2);
}

.product-card-body {
  flex: 1;
}

.product-name {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 4px;
  color: var(--text-primary);
}

.product-tagline {
  font-size: 0.9rem;
  color: var(--accent-gold);
  font-weight: 500;
  margin-bottom: 20px;
}

.product-desc {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 20px;
}

.product-features {
  list-style: none;
  margin-bottom: 32px;
}

.product-features li {
  position: relative;
  padding-left: 20px;
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.8;
}

.product-features li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-red);
  box-shadow: 0 0 8px var(--glow-red);
}

.product-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 24px;
  border-top: 1px solid var(--border-subtle);
  margin-top: auto;
}

.product-price {
  font-size: 2rem;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

.product-card-footer .btn {
  min-width: 180px;
  text-align: center;
}

/* ============================================
   HOW IT WORKS — STEPS
   ============================================ */
.steps-grid {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 0;
  flex-wrap: wrap;
}

.step-card {
  flex: 1;
  max-width: 240px;
  text-align: center;
  padding: 32px 20px;
  position: relative;
  background: var(--surface-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  transition: all var(--transition);
}

.step-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 77, 77, 0.3);
  box-shadow: 0 12px 40px var(--shadow-red-soft);
}

.step-number {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--accent-red);
  margin-bottom: 16px;
}

.step-icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  border-radius: 50%;
  background: rgba(255, 77, 77, 0.08);
  border: 1px solid rgba(255, 77, 77, 0.15);
  color: var(--accent-red);
}

.step-card h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text-primary);
}

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

.step-connector {
  width: 60px;
  height: 1px;
  background: linear-gradient(90deg, var(--accent-red), rgba(255, 77, 77, 0.1));
  align-self: center;
  margin-top: -20px;
  flex-shrink: 0;
}

/* ============================================
   CAPABILITIES
   ============================================ */
.capabilities-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.capability-card {
  background: var(--surface-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  padding: 36px 28px;
  text-align: center;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

.capability-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent-red), transparent);
  opacity: 0;
  transition: opacity var(--transition);
}

.capability-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 77, 77, 0.3);
  box-shadow: 0 12px 40px var(--shadow-red-soft);
}

.capability-card:hover::after {
  opacity: 1;
}

.capability-icon {
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  border-radius: var(--radius);
  background: rgba(212, 168, 67, 0.06);
  border: 1px solid rgba(212, 168, 67, 0.12);
  color: var(--accent-gold);
}

.capability-card h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--text-primary);
}

.capability-card p {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ============================================
   CTA SECTION
   ============================================ */
.cta-section {
  position: relative;
  overflow: hidden;
  text-align: center;
  padding: 140px 0;
  z-index: 1;
}

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

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

.cta-glow--red {
  width: 700px;
  height: 700px;
  background: radial-gradient(ellipse, rgba(255, 77, 77, 0.15) 0%, rgba(255, 77, 77, 0.05) 30%, transparent 70%);
  top: -20%;
  left: 20%;
  opacity: 0.3;
}

.cta-glow--gold {
  width: 500px;
  height: 500px;
  background: radial-gradient(ellipse, rgba(0, 229, 204, 0.1) 0%, transparent 70%);
  bottom: -20%;
  right: 15%;
  opacity: 0.2;
}

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

.cta-content .section-heading {
  margin-bottom: 16px;
}

.cta-content .section-sub {
  margin-bottom: 40px;
}

.cta-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ============================================
   CONTACT FORM
   ============================================ */
.contact-form {
  max-width: 640px;
  margin: 0 auto;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 24px;
}

.form-group.full-width {
  grid-column: 1 / -1;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.form-group label .req {
  color: var(--accent-red);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  font-family: var(--font);
  font-size: 0.95rem;
  color: var(--text-primary);
  background: rgba(10, 15, 26, 0.6);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-sm);
  transition: all var(--transition);
  outline: none;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-muted);
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--accent-red);
  box-shadow: 0 0 0 3px var(--glow-red-soft);
  background: rgba(10, 15, 26, 0.8);
}

.form-group textarea {
  resize: vertical;
  min-height: 100px;
}

.form-footer {
  text-align: center;
}

.form-success {
  text-align: center;
  padding: 32px;
}

.form-success .success-icon {
  width: 48px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  border-radius: 50%;
  background: rgba(0, 229, 204, 0.1);
  color: var(--accent-cyan);
  margin-bottom: 16px;
}

.form-success h3 {
  font-size: 1.2rem;
  color: var(--text-primary);
}

.form-error {
  text-align: center;
  padding: 16px;
  color: var(--accent-red);
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  padding: 80px 0 40px;
  border-top: 1px solid var(--border-subtle);
  background: linear-gradient(180deg, transparent 0%, rgba(5, 8, 16, 0.8) 30%, var(--bg-deep) 100%);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.footer::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(136, 146, 176, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(136, 146, 176, 0.02) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, black 20%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, black 20%, transparent 100%);
  pointer-events: none;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-brand {
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--text-primary);
  margin-bottom: 12px;
}

.footer-tagline {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.footer-heading {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.footer-col a {
  display: inline-block;
  font-size: 0.88rem;
  color: var(--text-secondary);
  padding: 4px 0;
  transition: color var(--transition);
  width: fit-content;
  position: relative;
}

.footer-col a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--accent-red);
  transition: width 0.3s ease;
}

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

.footer-col a:hover::after {
  width: 100%;
}

.footer-bottom {
  padding-top: 32px;
  border-top: 1px solid var(--border-subtle);
  text-align: center;
}

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

/* ============================================
   BUTTON SHIMMER
   ============================================ */
.btn-primary::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
  transition: none;
  transform: skewX(-20deg);
}

.btn-primary:hover::after {
  animation: shimmer 0.6s ease forwards;
}

@keyframes shimmer {
  0% { left: -100%; }
  100% { left: 150%; }
}

/* ============================================
   SECTION DIVIDERS
   ============================================ */
.section-divider {
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 77, 77, 0.15), rgba(0, 229, 204, 0.1), transparent);
  position: relative;
  z-index: 1;
}

.section-divider::before {
  content: '';
  position: absolute;
  top: -8px;
  left: 0;
  right: 0;
  height: 16px;
  background: linear-gradient(90deg, transparent, rgba(255, 77, 77, 0.03), transparent);
  filter: blur(8px);
}

/* ============================================
   STAGGER REVEAL CHILDREN
   ============================================ */
.reveal.stagger-child {
  transition-delay: var(--stagger-delay, 0s);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
  .capabilities-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }

  .nav-mobile-toggle {
    display: flex;
  }

  .section {
    padding: 80px 0;
  }

  .hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 40px;
    padding-top: 60px;
  }

  .hero-content {
    max-width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .hero-sub {
    max-width: 100%;
  }

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

  .hero-mascot {
    order: -1;
  }

  .mascot-img {
    max-width: 280px;
  }

  .mascot-canvas {
    max-width: 280px;
  }

  .mascot-glow {
    width: 240px;
    height: 240px;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .about-content .section-heading,
  .about-content .section-eyebrow {
    text-align: center;
  }

  .about-lead, .about-body {
    text-align: center;
  }

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

  .product-card {
    padding: 28px;
  }

  .steps-grid {
    flex-direction: column;
    align-items: center;
  }

  .step-connector {
    width: 1px;
    height: 40px;
    margin-top: 0;
    background: linear-gradient(180deg, var(--accent-red), rgba(255, 77, 77, 0.1));
  }

  .step-card {
    max-width: 320px;
  }

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

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

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .cta-section {
    padding: 100px 0;
  }
}

@media (max-width: 480px) {
  .hero-headline {
    font-size: 2.2rem;
  }

  .section-heading {
    font-size: 1.8rem;
  }

  .product-card-footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .product-card-footer .btn {
    width: 100%;
  }

  .btn {
    padding: 12px 24px;
    font-size: 0.9rem;
  }

  .btn-lg {
    padding: 14px 32px;
  }
}

/* ============================================
   GUMROAD OVERLAY — Style Overrides
   ============================================ */
/* Prevent Gumroad from overriding our button styles */
.gumroad-button.btn {
  all: unset;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  padding: 14px 32px !important;
  font-family: var(--font) !important;
  font-size: 0.95rem !important;
  font-weight: 600 !important;
  border-radius: 8px !important;
  border: none !important;
  cursor: pointer !important;
  text-decoration: none !important;
  position: relative !important;
  overflow: hidden !important;
  background: var(--accent-red) !important;
  color: #fff !important;
  box-shadow: 0 0 24px var(--glow-red), 0 4px 16px rgba(0, 0, 0, 0.3) !important;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
  min-width: 180px !important;
  text-align: center !important;
}

.gumroad-button.btn:hover {
  background: var(--accent-red-light, #ff6666) !important;
  box-shadow: 0 0 40px var(--glow-red), 0 8px 32px rgba(0, 0, 0, 0.4) !important;
  transform: translateY(-2px) !important;
}

/* Hide ALL Gumroad injected elements inside buttons */
.gumroad-button .gumroad-button-logo,
.gumroad-button .gumroad-loading-indicator,
.gumroad-button svg,
.gumroad-button img,
.gumroad-button span:not(.btn-text) {
  display: none !important;
}

/* Override any Gumroad-injected inline styles on buttons */
a.gumroad-button[style] {
  background: var(--accent-red) !important;
  color: #fff !important;
  border: none !important;
  font-family: var(--font) !important;
}

/* Gumroad loading spinner — make it match our brand */
.gumroad-loading-indicator {
  display: none !important;
}

/* Style the Gumroad overlay backdrop */
.gumroad-overlay-iframe {
  z-index: 10000 !important;
}

/* Hide any Gumroad-added elements globally */
.gumroad-mobile-close,
.gumroad-overlay-close {
  z-index: 10001 !important;
}
