/* =========================================
   CLASS COPILOT — Landing Page Styles
   Premium WhatsApp-themed design
   ========================================= */

/* ===== CSS Custom Properties ===== */
:root {
  /* WhatsApp Brand Palette */
  --wa-green: #25D366;
  --wa-green-dark: #128C7E;
  --wa-green-teal: #075E54;
  --wa-light-green: #DCF8C6;
  --wa-chat-bg: #0B141A;
  --wa-msg-out: #005C4B;
  --wa-msg-in: #202C33;

  /* Extended palette */
  --accent-orange: #F97316;
  --accent-purple: #8B5CF6;
  --accent-blue: #3B82F6;
  --accent-cyan: #06B6D4;
  --accent-pink: #EC4899;

  /* Dark Mode Base */
  --bg-primary: #050A0E;
  --bg-secondary: #0A1118;
  --bg-tertiary: #101820;
  --bg-card: rgba(16, 24, 32, 0.6);
  --bg-card-hover: rgba(20, 32, 44, 0.8);
  --bg-glass: rgba(16, 24, 32, 0.4);

  /* Text */
  --text-primary: #F0F6FC;
  --text-secondary: #8B9EB0;
  --text-muted: #56687A;

  /* Borders */
  --border-subtle: rgba(255, 255, 255, 0.06);
  --border-hover: rgba(37, 211, 102, 0.3);

  /* Gradients */
  --gradient-green: linear-gradient(135deg, #25D366 0%, #128C7E 50%, #075E54 100%);
  --gradient-hero: linear-gradient(135deg, #25D366 0%, #06B6D4 50%, #8B5CF6 100%);
  --gradient-dark: linear-gradient(180deg, #050A0E 0%, #0A1118 100%);

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 8px 32px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 16px 64px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 40px rgba(37, 211, 102, 0.15);
  --shadow-glow-strong: 0 0 80px rgba(37, 211, 102, 0.25);

  /* Spacing */
  --section-padding: 120px 0;
  --container-width: 1200px;

  /* Typography */
  --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-display: 'Space Grotesk', 'Inter', sans-serif;

  /* Borders */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-full: 9999px;

  /* Transitions */
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  max-width: 100%;
  scroll-padding-top: 80px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

button {
  cursor: pointer;
}

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

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

/* ===== 3D Canvas Background ===== */
#bg-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  /* GPU layer promotion — prevents compositor from re-painting on every frame */
  will-change: transform;
  transform: translateZ(0);
}

/* ===== Cursor Glow ===== */
.cursor-glow {
  position: fixed;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(37, 211, 102, 0.06) 0%, transparent 70%);
  pointer-events: none;
  z-index: 1;
  transform: translate(-50%, -50%);
  transition: opacity 0.3s;
  will-change: transform;
}

/* ===== Floating Bubbles ===== */
.floating-bubbles {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
}

.bubble {
  position: absolute;
  font-size: 24px;
  opacity: 0.08;
  animation: floatBubble 20s ease-in-out infinite;
  will-change: transform;
}

.bubble-1 { top: 15%; left: 8%; animation-delay: 0s; animation-duration: 22s; }
.bubble-2 { top: 60%; left: 92%; animation-delay: -4s; animation-duration: 18s; }
.bubble-3 { top: 80%; left: 15%; animation-delay: -8s; animation-duration: 25s; }
.bubble-4 { top: 30%; left: 85%; animation-delay: -2s; animation-duration: 20s; }
.bubble-5 { top: 50%; left: 50%; animation-delay: -6s; animation-duration: 23s; }
.bubble-6 { top: 10%; left: 60%; animation-delay: -10s; animation-duration: 19s; }

@keyframes floatBubble {
  0%, 100% { transform: translate(0, 0) rotate(0deg) scale(1); }
  25% { transform: translate(30px, -40px) rotate(90deg) scale(1.1); }
  50% { transform: translate(-20px, -80px) rotate(180deg) scale(0.9); }
  75% { transform: translate(40px, -30px) rotate(270deg) scale(1.05); }
}

/* ===== Scroll Animations ===== */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s var(--ease-out-expo), transform 0.8s var(--ease-out-expo);
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== NAVBAR ===== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 16px 0;
  transition: all 0.4s var(--ease-out-expo);
}

.navbar.scrolled {
  padding: 8px 0;
  background: rgba(5, 10, 14, 0.85);
  backdrop-filter: blur(20px) saturate(1.5);
  -webkit-backdrop-filter: blur(20px) saturate(1.5);
  border-bottom: 1px solid var(--border-subtle);
}

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

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

.logo-icon {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-icon svg {
  width: 100%;
  height: 100%;
}

.logo-text {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.5px;
}

.logo-accent {
  background: var(--gradient-green);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

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

.nav-link {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color 0.3s;
  position: relative;
  padding: 12px;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 8px;
  left: 12px;
  width: 0;
  height: 2px;
  background: var(--wa-green);
  border-radius: 2px;
  transition: width 0.3s var(--ease-out-expo);
}

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

.nav-link:hover::after {
  width: calc(100% - 24px);
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: var(--gradient-green);
  border-radius: var(--radius-full);
  font-size: 14px;
  font-weight: 600;
  color: white;
  transition: transform 0.3s var(--ease-spring), box-shadow 0.3s;
}

.nav-cta:hover {
  transform: scale(1.05);
  box-shadow: 0 0 30px rgba(37, 211, 102, 0.4);
}

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

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

/* ===== HERO ===== */
.hero {
  position: relative;
  z-index: 2;
  width: 100%;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 120px 40px 80px;
  gap: 60px;
}

.hero-content {
  flex: 1;
  max-width: 580px;
  width: 100%;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: rgba(37, 211, 102, 0.08);
  border: 1px solid rgba(37, 211, 102, 0.2);
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 500;
  color: var(--wa-green);
  margin-bottom: 24px;
}

.badge-dot {
  width: 8px;
  height: 8px;
  background: var(--wa-green);
  border-radius: 50%;
  animation: pulseDot 2s ease-in-out infinite;
}

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

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(32px, 6vw, 64px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -2px;
  margin-bottom: 20px;
}

.gradient-text {
  background: var(--gradient-hero);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 17px;
  line-height: 1.7;
  color: var(--text-secondary);
  margin-bottom: 32px;
  max-width: 520px;
}

.hero-cta-group {
  display: flex;
  gap: 16px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: var(--radius-full);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s var(--ease-spring);
  border: none;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: var(--gradient-green);
  color: white;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 8px 40px rgba(37, 211, 102, 0.4);
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
  transition: left 0.5s;
}

.btn-primary:hover::before {
  left: 100%;
}

.btn-ghost {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-subtle);
  backdrop-filter: blur(10px);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--border-hover);
  transform: translateY(-2px);
}

/* Stats */
.hero-stats {
  display: flex;
  align-items: center;
  gap: 28px;
}

.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.stat-number {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 700;
  color: var(--wa-green);
  display: inline;
}

.stat-unit {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  color: var(--wa-green);
}

.stat-label {
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 500;
}

.stat-divider {
  width: 1px;
  height: 40px;
  background: var(--border-subtle);
}

/* ===== HERO VISUAL — Phone Mockup ===== */
.hero-visual {
  flex: 1;
  max-width: 400px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.phone-mockup {
  width: 300px;
  background: #0B141A;
  border-radius: 36px;
  border: 3px solid rgba(255, 255, 255, 0.1);
  overflow: hidden;
  position: relative;
  z-index: 3;
  box-shadow: var(--shadow-lg), 0 0 80px rgba(37, 211, 102, 0.1);
  animation: phoneFloat 6s ease-in-out infinite;
}

@keyframes phoneFloat {
  0%, 100% { transform: translateY(0) rotateX(0deg); }
  50% { transform: translateY(-12px) rotateX(1deg); }
}

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

.phone-screen {
  background: var(--wa-chat-bg);
  min-height: 480px;
  display: flex;
  flex-direction: column;
}

/* WhatsApp Header */
.wa-header {
  background: #1F2C34;
  padding: 10px 16px;
  display: flex;
  align-items: center;
}

.wa-header-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.wa-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--gradient-green);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  color: white;
}

.wa-group-name {
  font-size: 14px;
  font-weight: 600;
  color: #E9EDEF;
}

.wa-status {
  font-size: 11px;
  color: var(--wa-green);
  animation: typing 1.5s ease-in-out infinite;
}

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

/* WhatsApp Chat */
.wa-chat {
  flex: 1;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  overflow-y: auto;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M30 5l5 10-5 10-5-10z' fill='%23ffffff' fill-opacity='0.02'/%3E%3C/svg%3E") repeat;
}

.wa-msg {
  max-width: 85%;
  padding: 6px 10px;
  border-radius: 8px;
  font-size: 12px;
  line-height: 1.5;
  position: relative;
}

.wa-msg-anim {
  opacity: 0;
  transform: translateY(10px) scale(0.95);
  animation: msgAppear 0.5s var(--ease-spring) forwards;
  animation-delay: var(--delay);
}

@keyframes msgAppear {
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.wa-msg-other {
  background: var(--wa-msg-in);
  align-self: flex-start;
  border-top-left-radius: 2px;
}

.wa-msg-bot {
  background: var(--wa-msg-out);
  align-self: flex-end;
  border-top-right-radius: 2px;
}

.wa-msg-name {
  font-size: 11px;
  font-weight: 600;
  margin-bottom: 2px;
}

.wa-msg-other .wa-msg-name {
  color: #53BDEB;
}

.wa-msg-bot .wa-msg-name {
  color: var(--wa-green);
}

.wa-msg-text {
  color: #E9EDEF;
  font-size: 12.5px;
}

.wa-msg-time {
  text-align: right;
  font-size: 10px;
  color: rgba(255, 255, 255, 0.45);
  margin-top: 2px;
}

/* WA Input */
.wa-input-bar {
  padding: 8px 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  background: #1F2C34;
}

.wa-input-placeholder {
  flex: 1;
  background: #2A3942;
  border-radius: 20px;
  padding: 8px 16px;
  font-size: 13px;
  color: var(--text-muted);
}

.wa-send-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--wa-green);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Phone Glows */
.phone-glow {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  z-index: 1;
}

.phone-glow-1 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(37, 211, 102, 0.12) 0%, transparent 70%);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation: glowPulse 4s ease-in-out infinite;
}

.phone-glow-2 {
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(6, 182, 212, 0.08) 0%, transparent 70%);
  top: 20%;
  left: 70%;
  transform: translate(-50%, -50%);
  animation: glowPulse 5s ease-in-out infinite reverse;
}

.phone-glow-3 {
  width: 250px;
  height: 250px;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.06) 0%, transparent 70%);
  top: 80%;
  left: 30%;
  transform: translate(-50%, -50%);
  animation: glowPulse 6s ease-in-out infinite;
}

@keyframes glowPulse {
  0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 1; }
  50% { transform: translate(-50%, -50%) scale(1.2); opacity: 0.6; }
}

/* ===== TECH STRIP ===== */
.tech-strip {
  position: relative;
  z-index: 2;
  padding: 40px 0;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  background: rgba(10, 17, 24, 0.5);
  backdrop-filter: blur(10px);
}

.tech-strip-label {
  text-align: center;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.tech-logos {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 48px;
  flex-wrap: wrap;
}

@media (max-width: 600px) {
  .tech-logos {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px 32px;
    justify-items: center;
  }

  /* Make the last item (Node.js) span both columns so it's centered */
  .tech-logo:last-child {
    grid-column: 1 / -1;
  }
}

.tech-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  opacity: 0.6;
  transition: opacity 0.3s;
}

.tech-logo:hover {
  opacity: 1;
}

/* ===== SECTION HEADERS ===== */
.section-header {
  text-align: center;
  margin-bottom: 64px;
}

.section-tag {
  display: inline-block;
  padding: 4px 14px;
  background: rgba(37, 211, 102, 0.08);
  border: 1px solid rgba(37, 211, 102, 0.2);
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--wa-green);
  margin-bottom: 16px;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 800;
  letter-spacing: -1.5px;
  margin-bottom: 16px;
}

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

/* ===== FEATURES ===== */
.features {
  position: relative;
  z-index: 2;
  padding: var(--section-padding);
}

.features-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

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

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

.feature-card-large {
  grid-column: 1 / -1;
}

.feature-card-glow {
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(37, 211, 102, 0.06) 0%, transparent 50%);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s;
}

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

.feature-icon-wrap {
  margin-bottom: 20px;
}

.feature-icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  background: rgba(37, 211, 102, 0.1);
  color: var(--wa-green);
  transition: transform 0.3s var(--ease-spring);
}

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

.feature-icon-deadline { background: rgba(249, 115, 22, 0.1); color: var(--accent-orange); }
.feature-icon-qa { background: rgba(139, 92, 246, 0.1); color: var(--accent-purple); }
.feature-icon-shield { background: rgba(6, 182, 212, 0.1); color: var(--accent-cyan); }

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

.feature-desc {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 16px;
}

.feature-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.tag {
  padding: 4px 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted);
}

/* ===== HOW IT WORKS ===== */
.how-it-works {
  position: relative;
  z-index: 2;
  padding: var(--section-padding);
  background: var(--bg-secondary);
}

.pipeline {
  position: relative;
  max-width: 700px;
  margin: 0 auto;
}

.pipeline-line {
  position: absolute;
  left: 36px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--wa-green), var(--accent-purple));
  opacity: 0.2;
}

.pipeline-step {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  margin-bottom: 40px;
  position: relative;
}

.step-number {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  color: var(--wa-green);
  width: 72px;
  height: 72px;
  min-width: 72px;
  border-radius: 50%;
  border: 2px solid rgba(37, 211, 102, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-secondary);
  position: relative;
  z-index: 2;
  transition: all 0.3s var(--ease-spring);
}

.pipeline-step:hover .step-number {
  background: linear-gradient(rgba(37, 211, 102, 0.1), rgba(37, 211, 102, 0.1)), var(--bg-secondary);
  border-color: var(--wa-green);
  transform: scale(1.1);
  box-shadow: 0 0 30px rgba(37, 211, 102, 0.2);
}

.step-card {
  flex: 1;
  padding: 24px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  transition: all 0.3s var(--ease-out-expo);
}

.pipeline-step:hover .step-card {
  border-color: var(--border-hover);
  background: var(--bg-card-hover);
}

.step-icon {
  font-size: 28px;
  margin-bottom: 8px;
}

.step-card h3 {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 6px;
  letter-spacing: -0.3px;
}

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

/* ===== ARCHITECTURE ===== */
.architecture {
  position: relative;
  z-index: 2;
  padding: var(--section-padding);
}

.arch-diagram {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.arch-layer {
  width: 100%;
  padding: 28px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  background: var(--bg-card);
  text-align: center;
  transition: all 0.4s var(--ease-out-expo);
}

.arch-layer:hover {
  border-color: var(--border-hover);
  box-shadow: var(--shadow-glow);
}

.arch-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.arch-nodes {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.arch-nodes-3 {
  gap: 20px;
}

.arch-node {
  padding: 14px 20px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  font-size: 14px;
  font-weight: 600;
  min-width: 120px;
  transition: all 0.3s var(--ease-spring);
}

.arch-node:hover {
  transform: translateY(-4px);
  border-color: var(--border-hover);
  box-shadow: 0 0 20px rgba(37, 211, 102, 0.1);
}

.arch-node-icon {
  font-size: 24px;
}

.arch-node small {
  font-size: 11px;
  font-weight: 400;
  color: var(--text-muted);
}

.arch-node-wa { border-color: rgba(37, 211, 102, 0.3); }
.arch-node-bridge { border-color: rgba(6, 182, 212, 0.3); }
.arch-node-classifier { border-color: rgba(139, 92, 246, 0.3); }
.arch-node-groq { border-color: rgba(249, 115, 22, 0.3); }
.arch-node-gemini { border-color: rgba(59, 130, 246, 0.3); }
.arch-node-supa { border-color: rgba(62, 207, 142, 0.3); }

.arch-connector-horizontal {
  font-size: 20px;
  color: var(--text-muted);
  animation: arrowPulse 2s ease-in-out infinite;
}

.arch-connector-vertical {
  display: flex;
  justify-content: center;
  padding: 4px 0;
}

.arch-arrow-down {
  width: 2px;
  height: 24px;
  background: linear-gradient(to bottom, var(--wa-green), transparent);
  position: relative;
}

.arch-arrow-down::after {
  content: '▼';
  position: absolute;
  bottom: -14px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 10px;
  color: var(--wa-green);
}

@keyframes arrowPulse {
  0%, 100% { opacity: 0.5; transform: translateX(0); }
  50% { opacity: 1; transform: translateX(4px); }
}

.arch-branch {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-top: 12px;
  flex-wrap: wrap;
}

.arch-node-sm {
  padding: 10px 16px;
  min-width: 100px;
}

/* ===== COMPARISON TABLE ===== */
.compare {
  position: relative;
  z-index: 2;
  padding: var(--section-padding);
  background: var(--bg-secondary);
}

.compare-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
}

.compare-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.compare-table th,
.compare-table td {
  padding: 16px 20px;
  text-align: left;
  border-bottom: 1px solid var(--border-subtle);
}

.compare-table thead th {
  background: var(--bg-tertiary);
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  white-space: nowrap;
}

.compare-highlight {
  background: rgba(37, 211, 102, 0.04) !important;
  border-left: 2px solid var(--wa-green) !important;
}

.compare-badge {
  display: inline-block;
  padding: 2px 10px;
  background: var(--gradient-green);
  border-radius: var(--radius-full);
  font-size: 10px;
  font-weight: 700;
  color: white;
  margin-bottom: 4px;
}

.compare-feature {
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
}

.compare-table td {
  color: var(--text-secondary);
}

.compare-check { font-size: 16px; margin-right: 6px; }
.compare-x { font-size: 16px; margin-right: 6px; }
.compare-mid { font-size: 16px; margin-right: 6px; }

/* ===== ROADMAP ===== */
.roadmap {
  position: relative;
  z-index: 2;
  padding: var(--section-padding);
}

.roadmap-timeline {
  max-width: 650px;
  margin: 0 auto;
  position: relative;
  padding-left: 40px;
}

.roadmap-timeline::before {
  content: '';
  position: absolute;
  left: 12px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--wa-green), var(--accent-purple), var(--accent-blue));
  opacity: 0.3;
}

.roadmap-item {
  position: relative;
  margin-bottom: 40px;
}

.roadmap-marker {
  position: absolute;
  left: -34px;
  top: 6px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 3px solid;
  z-index: 2;
}

.roadmap-now {
  border-color: var(--wa-green);
  background: var(--wa-green);
  box-shadow: 0 0 15px rgba(37, 211, 102, 0.5);
}

.roadmap-next {
  border-color: var(--accent-purple);
  background: transparent;
}

.roadmap-future {
  border-color: var(--accent-blue);
  background: transparent;
}

.roadmap-card {
  padding: 24px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  transition: all 0.3s var(--ease-out-expo);
}

.roadmap-item:hover .roadmap-card {
  border-color: var(--border-hover);
  transform: translateX(4px);
}

.roadmap-phase {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  color: var(--wa-green);
  margin-bottom: 12px;
}

.roadmap-card ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.roadmap-card li {
  margin-bottom: 8px;
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.6;
}

.roadmap-list-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.roadmap-icon {
  margin-top: 2px;
  color: var(--wa-green);
  flex-shrink: 0;
}

/* ===== CTA SECTION ===== */
.cta-section {
  position: relative;
  z-index: 2;
  padding: var(--section-padding);
  background: var(--bg-secondary);
}

.cta-card {
  position: relative;
  padding: 64px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  text-align: center;
  overflow: hidden;
}

.cta-glow {
  position: absolute;
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(37, 211, 102, 0.08) 0%, transparent 60%);
  pointer-events: none;
}

.cta-title {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.5vw, 42px);
  font-weight: 800;
  letter-spacing: -1.5px;
  margin-bottom: 16px;
  position: relative;
}

.cta-desc {
  font-size: 17px;
  color: var(--text-secondary);
  margin-bottom: 40px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
  position: relative;
  line-height: 1.7;
}

.cta-steps {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 36px;
  flex-wrap: wrap;
  position: relative;
}

.cta-step {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
}

.cta-step-num {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--gradient-green);
  color: white;
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cta-step-arrow {
  color: var(--text-muted);
  font-size: 18px;
}

.cta-code {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 14px 24px;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  position: relative;
}

.cta-code code {
  font-family: 'SF Mono', 'Fira Code', monospace;
  font-size: 13px;
  color: var(--wa-green);
}

.cta-copy {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px;
  transition: color 0.3s;
}

.cta-copy:hover {
  color: var(--wa-green);
}

/* ===== DASHBOARD CTA BUTTON ===== */
.btn-dashboard {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 32px;
  background: var(--gradient-green);
  color: white;
  border: none;
  border-radius: var(--radius-full);
  font-size: 16px;
  font-weight: 700;
  font-family: var(--font-display);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: all 0.3s var(--ease-spring);
  box-shadow: 0 0 30px rgba(37, 211, 102, 0.3), 0 0 60px rgba(37, 211, 102, 0.1);
  animation: dashboardGlow 3s ease-in-out infinite;
  margin-bottom: 24px;
  letter-spacing: -0.3px;
}

.btn-dashboard:hover {
  transform: translateY(-3px) scale(1.04);
  box-shadow: 0 0 50px rgba(37, 211, 102, 0.5), 0 0 100px rgba(37, 211, 102, 0.2);
}

.btn-dashboard::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left 0.6s;
}

.btn-dashboard:hover::before {
  left: 100%;
}

@keyframes dashboardGlow {
  0%, 100% { box-shadow: 0 0 30px rgba(37, 211, 102, 0.3), 0 0 60px rgba(37, 211, 102, 0.1); }
  50% { box-shadow: 0 0 45px rgba(37, 211, 102, 0.45), 0 0 90px rgba(37, 211, 102, 0.15); }
}

.cta-or-divider {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
  width: 100%;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.cta-or-divider::before,
.cta-or-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border-subtle);
}

.cta-or-divider span {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1.5px;
}

/* ===== FOOTER ===== */
.footer {
  position: relative;
  z-index: 2;
  padding: 64px 0 32px;
  border-top: 1px solid var(--border-subtle);
}

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

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-tagline {
  font-size: 14px;
  color: var(--text-muted);
  max-width: 280px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links h4 {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.footer-links a {
  font-size: 14px;
  color: var(--text-muted);
  transition: color 0.3s;
}

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

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

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

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  /* Override the 120px section padding for tablet/mobile */
  :root {
    --section-padding: 64px 0;
  }

  .hero {
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    text-align: center;
    min-height: auto;
    padding: 100px 24px 48px;
    gap: 40px;
    width: 100%;
  }

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

  .hero-subtitle {
    max-width: 100%;
    text-align: center;
  }

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

  .hero-visual {
    max-width: 280px;
    width: 100%;
  }

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

  .section-header {
    margin-bottom: 40px;
  }

  .phone-screen {
    min-height: 360px;
  }

  .feature-card-large {
    grid-column: 1;
  }

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

  .nav-links.active {
    right: 0;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-cta {
    display: none;
  }

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

  .cta-card {
    padding: 40px 24px;
  }

  .cta-steps {
    flex-direction: column;
  }

  .cta-step-arrow {
    transform: rotate(90deg);
  }

  .compare-table {
    font-size: 12px;
  }

  .compare-table th,
  .compare-table td {
    padding: 10px 12px;
  }

  .arch-nodes {
    flex-direction: column;
  }

  .arch-connector-horizontal {
    transform: rotate(90deg);
  }
}

@media (max-width: 600px) {
  /* Tighter section padding on small phones */
  :root {
    --section-padding: 48px 0;
  }

  .hero {
    padding: 88px 20px 40px;
    gap: 32px;
  }

  .hero-title {
    font-size: clamp(30px, 8vw, 40px);
    letter-spacing: -1px;
  }

  .hero-cta-group {
    flex-direction: column;
    width: 100%;
    gap: 16px;
  }

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

  .hero-stats {
    flex-direction: column;
    width: 100%;
    gap: 20px;
    align-items: center;
  }

  .stat {
    align-items: center;
    text-align: center;
  }

  .stat-divider {
    width: 40px;
    height: 1px;
  }

  .feature-card {
    padding: 24px;
  }

  .phone-mockup {
    width: 240px;
  }

  .phone-screen {
    min-height: 300px;
  }

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

  .pipeline-step {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .pipeline-line {
    display: none;
  }

  .cta-code {
    flex-direction: column;
    gap: 8px;
  }

  .cta-code code {
    font-size: 11px;
    word-break: break-all;
  }
}

/* ===== 375px and below — very small phones ===== */
@media (max-width: 375px) {
  .hero-title {
    font-size: 28px;
    letter-spacing: -0.5px;
  }

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

  .btn {
    font-size: 14px;
    padding: 12px 20px;
  }

  .stat-number {
    font-size: 26px;
  }
}

/* ===== Custom Scrollbar ===== */
::-webkit-scrollbar {
  width: 6px;
}

/* ===== Prefers Reduced Motion ===== */
@media (prefers-reduced-motion: reduce) {
  .animate-on-scroll {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .bubble {
    animation: none;
  }
  .badge-dot {
    animation: none;
  }
  .btn-primary::before {
    transition: none;
  }
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}



::-webkit-scrollbar-track {
  background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
  background: var(--wa-green-dark);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--wa-green);
}

/* ===== Selection ===== */
::selection {
  background: rgba(37, 211, 102, 0.3);
  color: white;
}

/* ===== Utility: visually hidden (for table caption accessibility) ===== */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ===== Free stat label (skip counter animation) ===== */
.stat-free {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--wa-green);
  letter-spacing: -0.02em;
}

/* ===== Mobile nav drawer CTA ===== */
.nav-cta-drawer {
  display: none;
}

@media (max-width: 768px) {
  .nav-cta-drawer {
    display: flex;
    margin-top: 8px;
  }
}

/* ===== Keyboard focus rings ===== */
:focus-visible {
  outline: 2px solid var(--wa-green);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ===== Active nav section indicator ===== */
.nav-link.section-active {
  color: var(--wa-green);
  position: relative;
}

.nav-link.section-active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--wa-green);
  border-radius: 2px;
}
