/* ============================================================
   SecureVPN — 2026 Industrial Tactile Maximalism
   Embossed Surfaces · Grain Texture · Copper Metallics
   ============================================================ */

/* ---- THEME TOKENS (DARK) ---- */
:root, [data-theme="dark"] {
  /* Primary — Warm Copper/Bronze */
  --color-primary: oklch(65% 0.14 55);
  --color-primary-hover: oklch(72% 0.16 55);
  --color-primary-muted: oklch(35% 0.06 55);
  --color-primary-subtle: oklch(22% 0.04 55);

  /* Accent — Signal Teal */
  --color-accent: oklch(62% 0.14 175);
  --color-accent-hover: oklch(68% 0.16 175);
  --color-accent-muted: oklch(30% 0.06 175);

  /* Semantic */
  --color-success: oklch(62% 0.17 155);
  --color-success-muted: oklch(28% 0.06 155);
  --color-warning: oklch(72% 0.15 70);
  --color-warning-muted: oklch(30% 0.06 70);
  --color-error: oklch(58% 0.22 25);
  --color-error-muted: oklch(25% 0.08 25);

  /* Backgrounds — Deep Ink Navy */
  --color-bg: oklch(13% 0.02 250);
  --color-bg-alt: oklch(16% 0.02 250);
  --color-surface-1: oklch(19% 0.02 250);
  --color-surface-2: oklch(23% 0.015 250);
  --color-surface-3: oklch(28% 0.01 250);

  /* Text — Warm Off-White */
  --color-text: oklch(92% 0.01 60);
  --color-text-secondary: oklch(75% 0.015 60);
  --color-text-muted: oklch(55% 0.02 250);

  /* Shadows — Hard directional, not glow */
  --shadow-raised: 3px 3px 0 oklch(8% 0.01 250), 0 1px 2px oklch(8% 0.01 250 / 0.5);
  --shadow-raised-hover: 5px 5px 0 oklch(8% 0.01 250), 0 2px 4px oklch(8% 0.01 250 / 0.6);
  --shadow-inset: inset 2px 2px 6px oklch(8% 0.01 250 / 0.6), inset -1px -1px 3px oklch(30% 0.01 250 / 0.2);
  --shadow-pressed: inset 3px 3px 8px oklch(5% 0.01 250 / 0.7), inset -1px -1px 2px oklch(25% 0.01 250 / 0.15);
  --shadow-subtle: 0 1px 3px oklch(5% 0 0 / 0.4);

  /* Borders */
  --border-color: oklch(25% 0.015 250);
  --border-strong: oklch(30% 0.02 250);
  --divider: oklch(22% 0.015 250);

  /* Copper accent gradient — warm metallic, NOT purple-blue */
  --gradient-copper: linear-gradient(135deg, oklch(65% 0.14 55), oklch(60% 0.12 35));
  --gradient-surface: linear-gradient(180deg, oklch(20% 0.02 250), oklch(17% 0.02 250));

  --input-bg: oklch(11% 0.015 250);
  --nav-bg: oklch(14% 0.02 250 / 0.95);
}

/* ---- LIGHT THEME ---- */
[data-theme="light"] {
  --color-primary: oklch(50% 0.14 55);
  --color-primary-hover: oklch(45% 0.16 55);
  --color-primary-muted: oklch(85% 0.04 55);
  --color-primary-subtle: oklch(94% 0.02 55);

  --color-accent: oklch(48% 0.14 175);
  --color-accent-hover: oklch(42% 0.16 175);
  --color-accent-muted: oklch(90% 0.04 175);

  --color-success: oklch(48% 0.17 155);
  --color-success-muted: oklch(92% 0.04 155);
  --color-warning: oklch(60% 0.15 70);
  --color-warning-muted: oklch(92% 0.04 70);
  --color-error: oklch(50% 0.22 25);
  --color-error-muted: oklch(93% 0.05 25);

  /* Backgrounds — Warm Bone */
  --color-bg: oklch(96% 0.008 60);
  --color-bg-alt: oklch(93% 0.01 60);
  --color-surface-1: oklch(99% 0.005 60);
  --color-surface-2: oklch(91% 0.01 60);
  --color-surface-3: oklch(86% 0.01 60);

  --color-text: oklch(18% 0.03 250);
  --color-text-secondary: oklch(35% 0.025 250);
  --color-text-muted: oklch(50% 0.02 250);

  --shadow-raised: 3px 3px 0 oklch(82% 0.01 60), 0 1px 3px oklch(50% 0 0 / 0.1);
  --shadow-raised-hover: 5px 5px 0 oklch(78% 0.01 60), 0 2px 6px oklch(50% 0 0 / 0.15);
  --shadow-inset: inset 2px 2px 6px oklch(80% 0.01 60 / 0.8), inset -1px -1px 3px oklch(100% 0 0 / 0.5);
  --shadow-pressed: inset 3px 3px 8px oklch(75% 0.01 60 / 0.6), inset -1px -1px 2px oklch(100% 0 0 / 0.3);
  --shadow-subtle: 0 1px 3px oklch(50% 0 0 / 0.08);

  --border-color: oklch(88% 0.01 60);
  --border-strong: oklch(82% 0.01 60);
  --divider: oklch(90% 0.008 60);

  --gradient-copper: linear-gradient(135deg, oklch(50% 0.14 55), oklch(48% 0.12 35));
  --gradient-surface: linear-gradient(180deg, oklch(96% 0.008 60), oklch(93% 0.01 60));

  --input-bg: oklch(93% 0.008 60);
  --nav-bg: oklch(97% 0.006 60 / 0.95);
}

/* ---- STATIC TOKENS ---- */
:root {
  /* Typography — Industrial Stack */
  --font-display: 'Space Grotesk', system-ui, sans-serif;
  --font-body: 'DM Sans', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', 'SF Mono', monospace;

  /* Modular Scale — 1.333 (Perfect Fourth) */
  --text-xs: 0.75rem;     /* 12px */
  --text-sm: 0.875rem;    /* 14px */
  --text-base: 1rem;      /* 16px */
  --text-lg: 1.125rem;    /* 18px */
  --text-xl: 1.333rem;    /* ~21px */
  --text-2xl: 1.777rem;   /* ~28px */
  --text-3xl: 2.369rem;   /* ~38px */
  --text-4xl: 3.157rem;   /* ~50px */
  --text-5xl: 4.209rem;   /* ~67px */

  /* Spacing — Rhythmic */
  --sp-1: 0.25rem;  --sp-2: 0.5rem;   --sp-3: 0.75rem;  --sp-4: 1rem;
  --sp-5: 1.25rem;  --sp-6: 1.5rem;   --sp-8: 2rem;     --sp-10: 2.5rem;
  --sp-12: 3rem;    --sp-16: 4rem;     --sp-20: 5rem;    --sp-24: 6rem;
  --sp-32: 8rem;    --sp-40: 10rem;

  /* Radii — Deliberate: either sharp or intentionally rounded */
  --radius-sm: 4px;
  --radius-md: 6px;
  --radius-lg: 10px;
  --radius-xl: 16px;
  --radius-full: 9999px;

  /* Easing — Firm, no bounce. Real objects decelerate. */
  --ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1);
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.45, 0, 0.55, 1);

  /* Transitions */
  --t-fast: 0.15s var(--ease-out-quart);
  --t-normal: 0.3s var(--ease-out-quart);
  --t-slow: 0.5s var(--ease-out-expo);

  --nav-height: 64px;
}

/* ---- REDUCED MOTION ---- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ---- RESET ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  transition: background 0.4s ease, color 0.4s ease;
  position: relative;
}
a { color: inherit; text-decoration: none; transition: color var(--t-fast); }
ul { list-style: none; }
img, svg { max-width: 100%; height: auto; display: block; }
button { font: inherit; cursor: pointer; border: none; background: none; }

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

/* ---- LAYOUT ---- */
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 var(--sp-6); }
.text-center { text-align: center; }
.relative { position: relative; }
.z-10 { z-index: 10; }

/* ---- TYPOGRAPHY ---- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  line-height: 1.1;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: var(--sp-4);
  color: var(--color-text);
}

.heading-xl {
  font-size: clamp(var(--text-4xl), 8vw, var(--text-5xl));
  line-height: 0.95;
  font-weight: 700;
  letter-spacing: -0.04em;
  text-transform: uppercase;
}

.heading-lg {
  font-size: clamp(var(--text-3xl), 5vw, var(--text-4xl));
  line-height: 1.05;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.heading-md {
  font-size: clamp(var(--text-2xl), 3.5vw, var(--text-3xl));
  font-weight: 700;
  letter-spacing: -0.02em;
}

.heading-sm {
  font-size: var(--text-xl);
  font-weight: 700;
  letter-spacing: -0.01em;
}

p { margin-bottom: var(--sp-4); }
.text-muted { color: var(--color-text-muted); }
.text-secondary { color: var(--color-text-secondary); }

/* Copper accent text — replaces gradient text */
.text-copper {
  color: var(--color-primary);
}

/* Mono accent — for data, encryption specs, IPs */
.mono { font-family: var(--font-mono); letter-spacing: -0.02em; }

/* Label/Tag — Industrial badge */
.label-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 14px;
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: 1px solid;
}
.label-tag--primary {
  background: var(--color-primary-subtle);
  color: var(--color-primary);
  border-color: var(--color-primary-muted);
}
.label-tag--success {
  background: var(--color-success-muted);
  color: var(--color-success);
  border-color: oklch(35% 0.06 155);
}
.label-tag--error {
  background: var(--color-error-muted);
  color: var(--color-error);
  border-color: oklch(32% 0.08 25);
}
.label-tag--accent {
  background: var(--color-accent-muted);
  color: var(--color-accent);
  border-color: oklch(35% 0.06 175);
}

/* ---- BUTTONS — Physical Press Effect ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: var(--sp-3) var(--sp-6);
  border-radius: var(--radius-sm);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--text-sm);
  cursor: pointer;
  border: 1.5px solid transparent;
  white-space: nowrap;
  transition: all var(--t-normal);
  position: relative;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.btn:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 3px;
}

/* Primary — Copper, embossed, physical */
.btn-primary {
  background: var(--color-primary);
  color: oklch(15% 0.02 55);
  border-color: oklch(70% 0.1 55);
  box-shadow: var(--shadow-raised), inset 0 1px 0 oklch(80% 0.08 55 / 0.3);
}
.btn-primary:hover {
  background: var(--color-primary-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-raised-hover), inset 0 1px 0 oklch(85% 0.08 55 / 0.3);
}
.btn-primary:active {
  transform: translateY(1px);
  box-shadow: var(--shadow-pressed);
}

/* Outline — Industrial border */
.btn-outline {
  background: transparent;
  border-color: var(--border-strong);
  color: var(--color-text);
}
.btn-outline:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-raised);
}
.btn-outline:active {
  transform: translateY(1px);
  box-shadow: var(--shadow-pressed);
}

/* Ghost */
.btn-ghost {
  background: transparent;
  color: var(--color-text-muted);
  border-color: transparent;
}
.btn-ghost:hover {
  color: var(--color-text);
  background: var(--color-surface-2);
}

/* Sizes */
.btn-large { padding: var(--sp-4) var(--sp-8); font-size: var(--text-base); }
.btn-sm { padding: 5px 14px; font-size: var(--text-xs); }
.w-full { width: 100%; }
.text-white { color: #fff !important; }

/* ---- SURFACES — Embossed panels replacing glass-cards ---- */
.surface {
  background: var(--color-surface-1);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: var(--sp-8);
  transition: all var(--t-normal);
  position: relative;
}

/* Raised — Lifted off surface with hard shadow */
.surface-raised {
  background: var(--color-surface-1);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: var(--sp-8);
  box-shadow: var(--shadow-raised);
  transition: all var(--t-normal);
  position: relative;
}
.surface-raised:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-raised-hover);
}

/* Inset — Pressed into the surface */
.surface-inset {
  background: var(--color-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: var(--sp-8);
  box-shadow: var(--shadow-inset);
  position: relative;
}

/* Embossed — Subtle lift with top highlight */
.surface-embossed {
  background: var(--gradient-surface);
  border: 1px solid var(--border-color);
  border-top-color: var(--border-strong);
  border-radius: var(--radius-lg);
  padding: var(--sp-8);
  box-shadow: var(--shadow-subtle);
  transition: all var(--t-normal);
  position: relative;
}
.surface-embossed:hover {
  border-color: var(--color-primary-muted);
}

/* Backward compatibility: .glass-card maps to .surface-raised */
.glass-card {
  background: var(--color-surface-1);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: var(--sp-8);
  box-shadow: var(--shadow-raised);
  transition: all var(--t-normal);
  position: relative;
}
.glass-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-raised-hover);
  border-color: var(--color-primary-muted);
}

/* Remove old glass-card pseudo-element shenanigans */
.glass-card::before { display: none; }
.glass-card > * { position: relative; z-index: auto; }

/* ---- COPPER ACCENTS ---- */
.copper-line {
  height: 2px;
  background: var(--gradient-copper);
  border: none;
  border-radius: 1px;
}
.copper-border-left {
  border-left: 3px solid var(--color-primary);
  padding-left: var(--sp-6);
}
.copper-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-primary);
  display: inline-block;
  box-shadow: 0 0 6px var(--color-primary-muted);
}

/* ---- NAVBAR — Solid surface, no blur ---- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--nav-height);
  background: var(--nav-bg);
  border-bottom: 1px solid var(--divider);
  transition: all var(--t-slow);
}
.glass-effect {
  background: var(--nav-bg);
  border-bottom: 1px solid var(--divider);
}
.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-height);
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-lg);
  letter-spacing: -0.03em;
  color: var(--color-text);
  z-index: 10;
}
.logo-icon {
  width: 30px;
  height: 30px;
  border-radius: var(--radius-sm);
  background: var(--gradient-copper);
  box-shadow: var(--shadow-raised);
  transition: transform var(--t-normal);
}
.logo:hover .logo-icon { transform: rotate(-5deg); }
.logo-text { color: var(--color-primary); }

/* Nav Links */
.nav-links { display: flex; gap: var(--sp-8); }
.nav-link {
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text-muted);
  position: relative;
  padding: 4px 0;
  letter-spacing: 0.02em;
}
.nav-link:hover, .nav-link.active { color: var(--color-text); }
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-primary);
  transition: width var(--t-normal);
}
.nav-link:hover::after, .nav-link.active::after { width: 100%; }
.nav-actions { display: flex; align-items: center; gap: var(--sp-3); }

/* Theme Toggle */
.theme-toggle {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-muted);
  transition: all var(--t-normal);
  background: transparent;
  border: 1px solid transparent;
}
.theme-toggle:hover {
  color: var(--color-text);
  background: var(--color-surface-2);
  border-color: var(--border-color);
}
.theme-toggle svg { width: 18px; height: 18px; transition: transform 0.3s var(--ease-out-quart); }
.theme-toggle:hover svg { transform: rotate(15deg); }

/* Mobile Nav */
.mobile-menu-toggle {
  display: none;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  color: var(--color-text);
  background: transparent;
  border: none;
  border-radius: var(--radius-sm);
}
.mobile-dropdown {
  display: none;
  flex-direction: column;
  background: var(--color-surface-1);
  padding: var(--sp-4) var(--sp-6) var(--sp-6);
  border-top: 1px solid var(--divider);
  position: absolute;
  left: 0;
  right: 0;
  top: var(--nav-height);
  box-shadow: 0 8px 24px oklch(5% 0 0 / 0.4);
  z-index: 999;
}
.mobile-dropdown.active { display: flex; animation: slideDown 0.25s var(--ease-out-expo) forwards; }
.mobile-nav-link {
  padding: 14px 0;
  color: var(--color-text);
  display: block;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: var(--text-lg);
  border-bottom: 1px solid var(--divider);
}
.mobile-nav-link:last-child { border-bottom: none; }

/* ---- HERO ---- */
.hero {
  padding: calc(var(--nav-height) + var(--sp-24)) 0 var(--sp-24);
  position: relative;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
/* Crosshatch pattern background replacing gradient orbs */
.hero-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0.03;
  background-image:
    repeating-linear-gradient(
      45deg,
      var(--color-text) 0,
      var(--color-text) 1px,
      transparent 0,
      transparent 50%
    );
  background-size: 16px 16px;
}
/* Copper accent glow — subtle warm radial */
.hero-bg::after {
  content: '';
  position: absolute;
  top: -20%;
  left: 30%;
  width: 60vw;
  height: 60vh;
  background: radial-gradient(ellipse, oklch(65% 0.14 55 / 0.06), transparent 70%);
}
.hero-content { max-width: 800px; }
.hero-text {
  font-size: var(--text-xl);
  color: var(--color-text-muted);
  margin-bottom: var(--sp-8);
  line-height: 1.7;
  max-width: 65ch;
}
.hero-actions { display: flex; gap: var(--sp-4); flex-wrap: wrap; }

.hero-vanta {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  margin-top: calc(var(--nav-height) * -1);
  padding-top: var(--nav-height);
}

/* ---- SECTIONS ---- */
.section-padding { padding: var(--sp-24) 0; }
.section-padding-bottom { padding-bottom: var(--sp-24); }
.section-padding-hero {
  padding-top: calc(var(--nav-height) + var(--sp-16));
  padding-bottom: var(--sp-24);
}
.section-header {
  text-align: center;
  max-width: 650px;
  margin: 0 auto var(--sp-16);
}
.features-section { padding: var(--sp-24) 0; }
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--sp-6);
}
.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--sp-4);
  font-size: 22px;
  background: var(--color-surface-2);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-inset);
  transition: transform var(--t-normal);
}
.glass-card:hover .feature-icon,
.surface-raised:hover .feature-icon { transform: scale(1.08); }

/* Feature Card animated variants */
.feature-card-animated { position: relative; overflow: hidden; }
.feature-card-animated:hover .feature-icon-animated {
  transform: scale(1.1);
  box-shadow: 0 0 12px var(--accent, var(--color-primary-muted));
}
.feature-icon-animated {
  transition: transform var(--t-normal), box-shadow var(--t-normal);
}

/* ---- FOOTER ---- */
.footer {
  background: var(--color-surface-1);
  padding: var(--sp-20) 0 var(--sp-8);
  border-top: 2px solid var(--color-primary-muted);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--sp-8);
  margin-bottom: var(--sp-12);
}
.brand-col .footer-desc {
  margin-top: var(--sp-4);
  color: var(--color-text-muted);
  max-width: 300px;
  font-size: var(--text-sm);
  line-height: 1.7;
}
.footer-heading {
  font-family: var(--font-display);
  font-size: var(--text-xs);
  font-weight: 700;
  margin-bottom: var(--sp-6);
  color: var(--color-primary);
  text-transform: uppercase;
  letter-spacing: 0.12em;
}
.footer-links li { margin-bottom: var(--sp-3); }
.footer-links a {
  color: var(--color-text-muted);
  font-size: var(--text-sm);
  transition: color var(--t-fast);
}
.footer-links a:hover { color: var(--color-primary); }
.footer-bottom {
  text-align: center;
  padding-top: var(--sp-8);
  border-top: 1px solid var(--divider);
  color: var(--color-text-muted);
  font-size: var(--text-sm);
}
.footer-social { display: flex; gap: var(--sp-3); margin-top: var(--sp-6); }
.footer-social a {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: var(--color-surface-2);
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-muted);
  transition: all var(--t-normal);
}
.footer-social a:hover {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: oklch(15% 0.02 55);
  transform: translateY(-2px);
  box-shadow: var(--shadow-raised);
}

/* Newsletter */
.newsletter-form { display: flex; gap: var(--sp-2); margin-top: var(--sp-4); }
.newsletter-form input {
  flex: 1;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  background: var(--input-bg);
  border: 1px solid var(--border-color);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  outline: none;
  box-shadow: var(--shadow-inset);
  transition: border-color var(--t-fast);
}
.newsletter-form input:focus { border-color: var(--color-primary); }
.newsletter-form input::placeholder { color: var(--color-text-muted); }
.newsletter-form button {
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  background: var(--color-primary);
  color: oklch(15% 0.02 55);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--text-sm);
  border: none;
  white-space: nowrap;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: all var(--t-normal);
  box-shadow: var(--shadow-raised);
}
.newsletter-form button:hover {
  background: var(--color-primary-hover);
  transform: translateY(-1px);
}
.newsletter-form button:active {
  transform: translateY(1px);
  box-shadow: var(--shadow-pressed);
}

/* ---- PRICING TOGGLE — Mechanical switch ---- */
.pricing-toggle {
  display: inline-flex;
  background: var(--color-surface-2);
  border-radius: var(--radius-sm);
  padding: 3px;
  gap: 0;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-inset);
}
.pricing-toggle button {
  padding: 8px 22px;
  border-radius: var(--radius-sm);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  transition: all var(--t-normal);
  border: none;
  background: transparent;
  letter-spacing: 0.02em;
}
.pricing-toggle button.active {
  background: var(--color-primary);
  color: oklch(15% 0.02 55);
  box-shadow: var(--shadow-raised);
}

/* ---- FORM STYLES — Inset well inputs ---- */
.form-group { margin-bottom: var(--sp-5); }
.form-label {
  display: block;
  margin-bottom: 6px;
  color: var(--color-text-secondary);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--text-sm);
  letter-spacing: 0.02em;
}
.form-input, .form-textarea {
  width: 100%;
  padding: 12px 14px;
  background: var(--input-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: var(--text-base);
  outline: none;
  box-shadow: var(--shadow-inset);
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
}
.form-input:focus, .form-textarea:focus {
  border-color: var(--color-primary);
  box-shadow: var(--shadow-inset), 0 0 0 2px var(--color-primary-muted);
}
.form-input::placeholder, .form-textarea::placeholder { color: var(--color-text-muted); }

/* ---- FAQ ACCORDION — Flat panels ---- */
.faq-item {
  cursor: pointer;
  transition: all var(--t-normal);
  border-bottom: 1px solid var(--divider);
}
.faq-item .faq-answer {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.35s var(--ease-out-quart), opacity 0.3s ease;
  opacity: 0;
}
.faq-item .faq-answer > * {
  overflow: hidden;
}
.faq-item.active .faq-answer {
  grid-template-rows: 1fr;
  opacity: 1;
  margin-top: var(--sp-4);
}
.faq-icon {
  transition: transform 0.3s var(--ease-out-quart);
  font-size: 1.2rem;
  color: var(--color-text-muted);
  display: inline-block;
  font-family: var(--font-mono);
}
.faq-item.active .faq-icon {
  transform: rotate(45deg);
  color: var(--color-primary);
}

/* ---- BOLDER PLAN CARDS ---- */
.plan-card-mega {
  border-color: var(--color-primary-muted) !important;
  box-shadow: var(--shadow-raised-hover);
  z-index: 10;
}
@media (min-width: 1024px) {
  .plan-card-mega {
    transform: scale(1.04);
  }
  .plan-card-mega:hover {
    transform: scale(1.06) translateY(-4px);
  }
}

/* ---- ANIMATIONS ---- */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes slideDown {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.animate-fade-up { animation: fadeUp 0.6s var(--ease-out-expo) both; }
.delay-100 { animation-delay: 0.08s; }
.delay-200 { animation-delay: 0.16s; }
.delay-300 { animation-delay: 0.24s; }
.delay-400 { animation-delay: 0.32s; }

/* Scroll reveal — firm, no float */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.5s var(--ease-out-expo), transform 0.5s var(--ease-out-expo);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stat counter — Copper accent */
.stat-number {
  font-family: var(--font-display);
  font-size: var(--text-4xl);
  font-weight: 700;
  color: var(--color-primary);
  letter-spacing: -0.03em;
}

/* Trust badges */
.trust-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--sp-8);
  padding: var(--sp-6) 0;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--color-text-muted);
  font-size: var(--text-sm);
}
.trust-item svg {
  width: 18px;
  height: 18px;
  color: var(--color-accent);
}

/* Story card — retained name for compatibility, restyled */
.story-card { position: relative; }
.story-card:hover { border-color: var(--color-primary-muted); }
.story-card:hover img { transform: scale(1.04); }
.story-particle { position: absolute; display: none; } /* Hide old floating particles */

/* ---- RESPONSIVE ---- */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .mobile-menu-toggle { display: flex; }
  .desktop-menu { display: none; }
  .desktop-only { display: none !important; }
  .nav-actions .btn, .nav-actions form { display: none; }
  .nav-actions .theme-toggle { display: flex; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-grid { grid-template-columns: 1fr !important; gap: var(--sp-8) !important; }
  .footer-grid { grid-template-columns: 1fr; }
  .glass-card, .surface-raised, .surface-embossed { padding: var(--sp-6); }
  .section-padding { padding: var(--sp-12) 0; }
  .section-padding-hero {
    padding-top: calc(var(--nav-height) + var(--sp-8));
    padding-bottom: var(--sp-12);
  }
  .container { padding: 0 var(--sp-4); }
  .newsletter-form { flex-direction: column; }
  .feature-grid { grid-template-columns: 1fr; }
  .heading-xl { font-size: var(--text-3xl); }
}
@media (max-width: 480px) {
  .heading-xl { font-size: var(--text-2xl); }
  .heading-lg { font-size: var(--text-2xl); }
  .btn-large { padding: var(--sp-3) var(--sp-6); font-size: var(--text-sm); }
}

/* ---- COMPATIBILITY with 3D Hero (kept but de-glowed) ---- */
#ultimate-3d-hero { perspective: 2000px; transform-style: preserve-3d; }
.saas-3d-wrapper { position: absolute; width: 100%; height: 100%; }
.floating-hero-img { animation: floatSubtle 6s ease-in-out infinite; }
@keyframes floatSubtle {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
@keyframes floatingPerspective {
  0% { transform: rotateX(20deg) rotateY(-30deg) translateY(0); }
  100% { transform: rotateX(22deg) rotateY(-22deg) translateY(-15px); }
}

/* ---- CROSSHATCH PATTERN UTILITY ---- */
.bg-crosshatch {
  position: relative;
}
.bg-crosshatch::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.025;
  background-image:
    repeating-linear-gradient(
      45deg,
      var(--color-text) 0,
      var(--color-text) 1px,
      transparent 0,
      transparent 50%
    ),
    repeating-linear-gradient(
      -45deg,
      var(--color-text) 0,
      var(--color-text) 1px,
      transparent 0,
      transparent 50%
    );
  background-size: 12px 12px;
}
