/* ==========================================================================
   AXIOM CLOUD SECURITY PLATFORM - Main Stylesheet
   Premium dark theme with purple/blue accents
   Built for Series A fundraising quality presentation
   ========================================================================== */

/* --------------------------------------------------------------------------
   CSS CUSTOM PROPERTIES (Design Tokens)
   All colors, spacing, and typography defined here for easy theming
   -------------------------------------------------------------------------- */
:root {
  /* Primary background colors - ultra-dark theme */
  --bg-primary: #0a0a0f;
  --bg-secondary: #0f0f18;
  --bg-tertiary: #141422;
  --bg-card: #12121e;
  --bg-card-hover: #1a1a2e;
  --bg-elevated: #16162a;

  /* Accent colors - purple/blue gradient spectrum */
  --accent-primary: #7c3aed;      /* Vibrant purple */
  --accent-secondary: #3b82f6;    /* Electric blue */
  --accent-tertiary: #06b6d4;     /* Cyan */
  --accent-success: #10b981;      /* Emerald green */
  --accent-warning: #f59e0b;      /* Amber */
  --accent-danger: #ef4444;       /* Red */

  /* Gradient definitions */
  --gradient-primary: linear-gradient(135deg, #7c3aed 0%, #3b82f6 50%, #06b6d4 100%);
  --gradient-accent: linear-gradient(135deg, #7c3aed 0%, #3b82f6 100%);
  --gradient-hero: radial-gradient(ellipse at 50% 0%, rgba(124, 58, 237, 0.15) 0%, transparent 60%);
  --gradient-card: linear-gradient(145deg, rgba(124, 58, 237, 0.05) 0%, rgba(59, 130, 246, 0.05) 100%);

  /* Text colors */
  --text-primary: #f1f5f9;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --text-accent: #a78bfa;

  /* Border colors */
  --border-primary: rgba(124, 58, 237, 0.2);
  --border-secondary: rgba(255, 255, 255, 0.06);
  --border-hover: rgba(124, 58, 237, 0.4);

  /* Spacing scale */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
  --space-4xl: 6rem;
  --space-5xl: 8rem;

  /* Typography */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', 'Consolas', monospace;
  --font-display: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Font sizes */
  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.25rem;
  --text-2xl: 1.5rem;
  --text-3xl: 1.875rem;
  --text-4xl: 2.25rem;
  --text-5xl: 3rem;
  --text-6xl: 3.75rem;
  --text-7xl: 4.5rem;

  /* Border radius */
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-2xl: 1.5rem;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.5);
  --shadow-xl: 0 20px 50px rgba(0, 0, 0, 0.6);
  --shadow-glow: 0 0 30px rgba(124, 58, 237, 0.3);
  --shadow-glow-blue: 0 0 30px rgba(59, 130, 246, 0.3);

  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-base: 250ms ease;
  --transition-slow: 400ms ease;

  /* Layout */
  --container-max: 1280px;
  --nav-height: 72px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  font-size: 16px;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* Scrollbar styling for dark theme */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-secondary);
}
::-webkit-scrollbar-thumb {
  background: var(--accent-primary);
  border-radius: var(--radius-full);
}
::-webkit-scrollbar-thumb:hover {
  background: #9333ea;
}

a {
  color: var(--accent-primary);
  text-decoration: none;
  transition: color var(--transition-fast);
}
a:hover {
  color: var(--text-accent);
}

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

ul, ol {
  list-style: none;
}

/* --------------------------------------------------------------------------
   UTILITY CLASSES
   -------------------------------------------------------------------------- */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-xl);
}

.section {
  padding: var(--space-5xl) 0;
}

.section--sm {
  padding: var(--space-3xl) 0;
}

/* Text utilities */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-gradient {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-accent { color: var(--text-accent); }
.text-muted { color: var(--text-muted); }
.text-secondary { color: var(--text-secondary); }

/* Display utilities */
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.gap-sm { gap: var(--space-sm); }
.gap-md { gap: var(--space-md); }
.gap-lg { gap: var(--space-lg); }
.gap-xl { gap: var(--space-xl); }

/* Visibility */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* --------------------------------------------------------------------------
   TYPOGRAPHY
   -------------------------------------------------------------------------- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.heading-xl {
  font-size: clamp(var(--text-4xl), 5vw, var(--text-7xl));
  font-weight: 800;
  letter-spacing: -0.03em;
}

.heading-lg {
  font-size: clamp(var(--text-3xl), 4vw, var(--text-5xl));
  font-weight: 700;
}

.heading-md {
  font-size: clamp(var(--text-2xl), 3vw, var(--text-4xl));
  font-weight: 700;
}

.heading-sm {
  font-size: clamp(var(--text-xl), 2vw, var(--text-2xl));
  font-weight: 600;
}

.subheading {
  font-size: var(--text-lg);
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 640px;
}

.subheading--wide {
  max-width: 800px;
}

/* --------------------------------------------------------------------------
   BUTTONS
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: 0.75rem 1.75rem;
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  font-weight: 600;
  border: none;
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: all var(--transition-base);
  text-decoration: none;
  white-space: nowrap;
  line-height: 1.5;
}

/* Primary button with gradient */
.btn-primary {
  background: var(--gradient-accent);
  color: #fff;
  box-shadow: 0 4px 15px rgba(124, 58, 237, 0.4);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(124, 58, 237, 0.5);
  color: #fff;
}

/* Secondary / outline button */
.btn-secondary {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-primary);
}
.btn-secondary:hover {
  background: rgba(124, 58, 237, 0.1);
  border-color: var(--accent-primary);
  color: var(--text-primary);
}

/* Ghost button */
.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  padding: 0.5rem 1rem;
}
.btn-ghost:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.05);
}

/* Large button variant */
.btn-lg {
  padding: 1rem 2.5rem;
  font-size: var(--text-base);
  border-radius: var(--radius-xl);
}

/* Small button variant */
.btn-sm {
  padding: 0.5rem 1rem;
  font-size: var(--text-xs);
}

/* --------------------------------------------------------------------------
   NAVIGATION - Sticky top bar
   -------------------------------------------------------------------------- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  z-index: 1000;
  transition: background var(--transition-base), box-shadow var(--transition-base);
  background: rgba(10, 10, 15, 0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid transparent;
}

/* Scrolled state - add border and stronger background */
.nav--scrolled {
  background: rgba(10, 10, 15, 0.95);
  border-bottom: 1px solid var(--border-secondary);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.nav__inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-xl);
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Logo */
.nav__logo {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: var(--text-xl);
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.02em;
  text-decoration: none;
}
.nav__logo:hover {
  color: var(--text-primary);
}
.nav__logo-icon {
  width: 32px;
  height: 32px;
  background: var(--gradient-accent);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-sm);
  font-weight: 900;
  color: #fff;
}

/* Navigation links */
.nav__links {
  display: flex;
  align-items: center;
  gap: var(--space-xl);
}

.nav__link {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--text-secondary);
  transition: color var(--transition-fast);
  text-decoration: none;
  position: relative;
}
.nav__link:hover,
.nav__link--active {
  color: var(--text-primary);
}
.nav__link--active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gradient-accent);
  border-radius: var(--radius-full);
}

/* CTA button in nav */
.nav__cta {
  margin-left: var(--space-lg);
}

/* Mobile menu toggle (hamburger) */
.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: var(--space-sm);
  background: none;
  border: none;
}
.nav__toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  border-radius: var(--radius-full);
  transition: all var(--transition-base);
}

/* Mobile menu open state */
.nav__toggle--open span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.nav__toggle--open span:nth-child(2) {
  opacity: 0;
}
.nav__toggle--open span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* --------------------------------------------------------------------------
   HERO SECTION
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: var(--nav-height);
  overflow: hidden;
}

/* Animated background glow */
.hero__bg {
  position: absolute;
  inset: 0;
  background: var(--gradient-hero);
  pointer-events: none;
}
.hero__bg::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at 30% 50%, rgba(124, 58, 237, 0.08) 0%, transparent 50%),
              radial-gradient(circle at 70% 30%, rgba(59, 130, 246, 0.06) 0%, transparent 40%),
              radial-gradient(circle at 50% 80%, rgba(6, 182, 212, 0.04) 0%, transparent 30%);
  animation: heroGlow 20s ease-in-out infinite alternate;
}

@keyframes heroGlow {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-2%, 3%) scale(1.05); }
  100% { transform: translate(2%, -2%) scale(1); }
}

.hero__content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
}

/* Pill badge above hero headline */
.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 0.375rem 1rem;
  background: rgba(124, 58, 237, 0.15);
  border: 1px solid rgba(124, 58, 237, 0.3);
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--text-accent);
  margin-bottom: var(--space-xl);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.hero__title {
  margin-bottom: var(--space-xl);
}

.hero__subtitle {
  font-size: clamp(var(--text-lg), 2vw, var(--text-xl));
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: var(--space-2xl);
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.hero__actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-lg);
  flex-wrap: wrap;
}

/* Stats row below hero */
.hero__stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-xl);
  margin-top: var(--space-4xl);
  padding-top: var(--space-2xl);
  border-top: 1px solid var(--border-secondary);
}

.hero__stat {
  text-align: center;
}
.hero__stat-value {
  font-size: var(--text-3xl);
  font-weight: 800;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero__stat-label {
  font-size: var(--text-sm);
  color: var(--text-muted);
  margin-top: var(--space-xs);
}

/* --------------------------------------------------------------------------
   CARDS
   -------------------------------------------------------------------------- */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border-secondary);
  border-radius: var(--radius-xl);
  padding: var(--space-2xl);
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
}

.card:hover {
  border-color: var(--border-primary);
  background: var(--bg-card-hover);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg), 0 0 40px rgba(124, 58, 237, 0.1);
}

/* Subtle gradient overlay on hover */
.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--gradient-primary);
  opacity: 0;
  transition: opacity var(--transition-base);
}
.card:hover::before {
  opacity: 1;
}

.card__icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-xl);
  margin-bottom: var(--space-lg);
  background: rgba(124, 58, 237, 0.1);
  color: var(--accent-primary);
}

.card__title {
  font-size: var(--text-xl);
  font-weight: 700;
  margin-bottom: var(--space-md);
  color: var(--text-primary);
}

.card__text {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: 1.7;
}

/* Grid layouts for cards */
.card-grid {
  display: grid;
  gap: var(--space-xl);
}
.card-grid--2 { grid-template-columns: repeat(2, 1fr); }
.card-grid--3 { grid-template-columns: repeat(3, 1fr); }
.card-grid--4 { grid-template-columns: repeat(4, 1fr); }

/* --------------------------------------------------------------------------
   SECTION HEADERS (reusable pattern)
   -------------------------------------------------------------------------- */
.section-header {
  text-align: center;
  margin-bottom: var(--space-3xl);
}

.section-header__label {
  display: inline-block;
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent-primary);
  margin-bottom: var(--space-md);
}

.section-header__title {
  margin-bottom: var(--space-lg);
}

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

/* --------------------------------------------------------------------------
   DEMO / TERMINAL COMPONENTS
   -------------------------------------------------------------------------- */

/* Terminal window styling */
.terminal {
  background: #0d1117;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-xl);
  overflow: hidden;
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  box-shadow: var(--shadow-xl);
}

.terminal__header {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 0.75rem var(--space-lg);
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

/* macOS-style traffic light buttons */
.terminal__dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}
.terminal__dot--red { background: #ff5f57; }
.terminal__dot--yellow { background: #febc2e; }
.terminal__dot--green { background: #28c840; }

.terminal__title {
  flex: 1;
  text-align: center;
  font-size: var(--text-xs);
  color: var(--text-muted);
}

.terminal__body {
  padding: var(--space-lg);
  min-height: 300px;
  max-height: 500px;
  overflow-y: auto;
  line-height: 1.8;
}

.terminal__line {
  opacity: 0;
  animation: terminalFadeIn 0.3s ease forwards;
  white-space: pre-wrap;
  word-break: break-all;
}

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

/* Terminal text colors */
.t-green { color: #10b981; }
.t-red { color: #ef4444; }
.t-yellow { color: #f59e0b; }
.t-blue { color: #3b82f6; }
.t-purple { color: #a78bfa; }
.t-cyan { color: #06b6d4; }
.t-dim { color: #64748b; }
.t-white { color: #f1f5f9; }
.t-bold { font-weight: 700; }

/* Progress bar inside terminal */
.terminal__progress {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-full);
  margin: var(--space-sm) 0;
  overflow: hidden;
}
.terminal__progress-bar {
  height: 100%;
  background: var(--gradient-accent);
  border-radius: var(--radius-full);
  transition: width 0.3s ease;
  width: 0%;
}

/* Severity badges */
.severity-badge {
  display: inline-block;
  padding: 0.125rem 0.5rem;
  border-radius: var(--radius-sm);
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.severity-badge--critical {
  background: rgba(239, 68, 68, 0.2);
  color: #ef4444;
}
.severity-badge--high {
  background: rgba(245, 158, 11, 0.2);
  color: #f59e0b;
}
.severity-badge--medium {
  background: rgba(59, 130, 246, 0.2);
  color: #3b82f6;
}
.severity-badge--low {
  background: rgba(16, 185, 129, 0.2);
  color: #10b981;
}

/* --------------------------------------------------------------------------
   DEMO CONTROLS
   -------------------------------------------------------------------------- */
.demo-controls {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
  flex-wrap: wrap;
}

.demo-select {
  padding: 0.5rem 1rem;
  background: var(--bg-tertiary);
  color: var(--text-primary);
  border: 1px solid var(--border-secondary);
  border-radius: var(--radius-md);
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2394a3b8' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  padding-right: 2rem;
}
.demo-select:focus {
  outline: none;
  border-color: var(--accent-primary);
}

.demo-btn {
  padding: 0.5rem 1.25rem;
  background: var(--gradient-accent);
  color: #fff;
  border: none;
  border-radius: var(--radius-md);
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-base);
}
.demo-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(124, 58, 237, 0.4);
}
.demo-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

/* --------------------------------------------------------------------------
   ATTACK PATH VISUALIZATION
   -------------------------------------------------------------------------- */
.attack-path-canvas {
  width: 100%;
  min-height: 400px;
  background: var(--bg-card);
  border: 1px solid var(--border-secondary);
  border-radius: var(--radius-xl);
  position: relative;
  overflow: hidden;
}

/* SVG-based node styling */
.attack-node {
  cursor: pointer;
  transition: all var(--transition-base);
}
.attack-node:hover {
  filter: brightness(1.2);
}
.attack-node__circle {
  transition: all var(--transition-base);
}
.attack-node:hover .attack-node__circle {
  stroke-width: 3;
}

/* --------------------------------------------------------------------------
   COMPLIANCE SECTION
   -------------------------------------------------------------------------- */
.compliance-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: var(--space-md);
}

.compliance-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: var(--space-lg);
  background: var(--bg-card);
  border: 1px solid var(--border-secondary);
  border-radius: var(--radius-lg);
  text-align: center;
  transition: all var(--transition-base);
  cursor: default;
}
.compliance-item:hover {
  border-color: var(--border-primary);
  transform: translateY(-2px);
}
.compliance-item__name {
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--text-secondary);
}
.compliance-item__icon {
  font-size: var(--text-2xl);
}

/* --------------------------------------------------------------------------
   FORMS
   -------------------------------------------------------------------------- */
.form-group {
  margin-bottom: var(--space-lg);
}

.form-label {
  display: block;
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--space-sm);
}
.form-label .required {
  color: var(--accent-danger);
  margin-left: 2px;
}

.form-input,
.form-textarea,
.form-select {
  width: 100%;
  padding: 0.75rem 1rem;
  background: var(--bg-tertiary);
  color: var(--text-primary);
  border: 1px solid var(--border-secondary);
  border-radius: var(--radius-md);
  font-family: var(--font-sans);
  font-size: var(--text-base);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}
.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  outline: none;
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.15);
}
.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--text-muted);
}

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

.form-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2394a3b8' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  padding-right: 2.5rem;
  cursor: pointer;
}

/* Checkbox group styling */
.checkbox-group {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 0.5rem 1rem;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-secondary);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-fast);
  font-size: var(--text-sm);
  color: var(--text-secondary);
}
.checkbox-label:hover {
  border-color: var(--border-primary);
  color: var(--text-primary);
}
.checkbox-label input[type="checkbox"] {
  accent-color: var(--accent-primary);
  width: 16px;
  height: 16px;
}
.checkbox-label input[type="checkbox"]:checked + span {
  color: var(--text-primary);
}

/* Form grid for two-column layout */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
}

/* --------------------------------------------------------------------------
   FOOTER
   -------------------------------------------------------------------------- */
.footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-secondary);
  padding: var(--space-3xl) 0 var(--space-xl);
}

.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-3xl);
  margin-bottom: var(--space-2xl);
}

.footer__brand {
  max-width: 320px;
}
.footer__brand-name {
  font-size: var(--text-xl);
  font-weight: 800;
  margin-bottom: var(--space-md);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}
.footer__brand-desc {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: 1.7;
}

.footer__heading {
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--text-primary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: var(--space-lg);
}

.footer__link {
  display: block;
  font-size: var(--text-sm);
  color: var(--text-secondary);
  padding: var(--space-xs) 0;
  transition: color var(--transition-fast);
}
.footer__link:hover {
  color: var(--text-primary);
}

.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: var(--space-xl);
  border-top: 1px solid var(--border-secondary);
  font-size: var(--text-xs);
  color: var(--text-muted);
  flex-wrap: wrap;
  gap: var(--space-md);
}

.footer__legal-links {
  display: flex;
  gap: var(--space-lg);
}
.footer__legal-links a {
  color: var(--text-muted);
  font-size: var(--text-xs);
}
.footer__legal-links a:hover {
  color: var(--text-secondary);
}

/* --------------------------------------------------------------------------
   PAGE HEADER (for inner pages)
   -------------------------------------------------------------------------- */
.page-header {
  padding: calc(var(--nav-height) + var(--space-4xl)) 0 var(--space-3xl);
  background: var(--gradient-hero);
  text-align: center;
  position: relative;
}

.page-header__title {
  margin-bottom: var(--space-lg);
}

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

/* --------------------------------------------------------------------------
   FEATURE BLOCKS
   -------------------------------------------------------------------------- */
.feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3xl);
  align-items: center;
  margin-bottom: var(--space-4xl);
}
.feature-row:nth-child(even) {
  direction: rtl;
}
.feature-row:nth-child(even) > * {
  direction: ltr;
}

.feature-row__content {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.feature-row__label {
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent-primary);
}

.feature-row__title {
  font-size: clamp(var(--text-2xl), 3vw, var(--text-3xl));
  font-weight: 700;
}

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

.feature-row__visual {
  border-radius: var(--radius-xl);
  overflow: hidden;
}

/* Feature list with check marks */
.feature-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}
.feature-list__item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-md);
  font-size: var(--text-sm);
  color: var(--text-secondary);
}
.feature-list__check {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(16, 185, 129, 0.15);
  color: var(--accent-success);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-xs);
  margin-top: 2px;
}

/* --------------------------------------------------------------------------
   PRICING / QUOTE CTA SECTION
   -------------------------------------------------------------------------- */
.cta-section {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-secondary);
  border-bottom: 1px solid var(--border-secondary);
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(124, 58, 237, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

/* --------------------------------------------------------------------------
   TABS for demo page
   -------------------------------------------------------------------------- */
.tabs {
  display: flex;
  gap: var(--space-sm);
  margin-bottom: var(--space-xl);
  border-bottom: 1px solid var(--border-secondary);
  padding-bottom: var(--space-sm);
  overflow-x: auto;
}

.tab {
  padding: 0.75rem 1.25rem;
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--text-muted);
  background: none;
  border: none;
  border-radius: var(--radius-md) var(--radius-md) 0 0;
  cursor: pointer;
  transition: all var(--transition-fast);
  white-space: nowrap;
  position: relative;
}
.tab:hover {
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.03);
}
.tab--active {
  color: var(--text-primary);
  background: rgba(124, 58, 237, 0.1);
}
.tab--active::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gradient-accent);
}

.tab-panel {
  display: none;
}
.tab-panel--active {
  display: block;
  animation: fadeIn 0.3s ease;
}

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

/* --------------------------------------------------------------------------
   COUNTER / ANIMATE-ON-SCROLL
   -------------------------------------------------------------------------- */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.animate-on-scroll--visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger children animations */
.stagger-children > * {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}
.stagger-children--visible > *:nth-child(1) { transition-delay: 0.1s; }
.stagger-children--visible > *:nth-child(2) { transition-delay: 0.2s; }
.stagger-children--visible > *:nth-child(3) { transition-delay: 0.3s; }
.stagger-children--visible > *:nth-child(4) { transition-delay: 0.4s; }
.stagger-children--visible > *:nth-child(5) { transition-delay: 0.5s; }
.stagger-children--visible > *:nth-child(6) { transition-delay: 0.6s; }
.stagger-children--visible > * {
  opacity: 1;
  transform: translateY(0);
}

/* --------------------------------------------------------------------------
   THANK YOU PAGE
   -------------------------------------------------------------------------- */
.thank-you {
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-top: var(--nav-height);
}

.thank-you__icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: rgba(16, 185, 129, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  margin: 0 auto var(--space-xl);
}

/* --------------------------------------------------------------------------
   RESPONSIVE DESIGN
   -------------------------------------------------------------------------- */

/* Tablet */
@media (max-width: 1024px) {
  .card-grid--3 { grid-template-columns: repeat(2, 1fr); }
  .card-grid--4 { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; gap: var(--space-xl); }
  .feature-row {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }
  .feature-row:nth-child(even) { direction: ltr; }
  .hero__stats { grid-template-columns: repeat(2, 1fr); }
  .form-grid { grid-template-columns: 1fr; }
}

/* Mobile */
@media (max-width: 768px) {
  :root {
    --nav-height: 64px;
  }

  .container {
    padding: 0 var(--space-lg);
  }

  .section {
    padding: var(--space-3xl) 0;
  }

  /* Mobile nav */
  .nav__links {
    display: none;
    position: fixed;
    top: var(--nav-height);
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--bg-primary);
    flex-direction: column;
    padding: var(--space-xl);
    gap: var(--space-lg);
    z-index: 999;
    border-top: 1px solid var(--border-secondary);
  }
  .nav__links--open {
    display: flex;
  }
  .nav__toggle {
    display: flex;
  }
  .nav__cta {
    margin-left: 0;
    width: 100%;
  }
  .nav__cta .btn {
    width: 100%;
  }

  .card-grid--2,
  .card-grid--3,
  .card-grid--4 {
    grid-template-columns: 1fr;
  }

  .hero__stats {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-md);
  }

  .footer__grid {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }

  .footer__bottom {
    flex-direction: column;
    text-align: center;
  }

  .hero__actions {
    flex-direction: column;
    width: 100%;
  }
  .hero__actions .btn {
    width: 100%;
  }

  .tabs {
    gap: 0;
  }
  .tab {
    padding: 0.5rem 0.75rem;
    font-size: var(--text-xs);
  }

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

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

  .demo-controls {
    flex-direction: column;
    align-items: stretch;
  }
}

/* Small mobile */
@media (max-width: 480px) {
  .hero__stats {
    grid-template-columns: 1fr 1fr;
  }
  .hero__stat-value {
    font-size: var(--text-2xl);
  }
}

/* --------------------------------------------------------------------------
   PRINT STYLES
   -------------------------------------------------------------------------- */
@media print {
  .nav, .footer, .demo-controls, .btn {
    display: none !important;
  }
  body {
    background: #fff;
    color: #000;
  }
}
