/* =========================================================
   WPA Systems
   Main Stylesheet
   ========================================================= */

/* --- Design Tokens --- */
:root {
  /* Colors */
  --bg-primary: #0A0E1A;
  --bg-secondary: #131826;
  --bg-tertiary: #1C2333;

  --accent: #5C9FFF;
  --accent-hover: #7EB4FF;
  --accent-subtle: rgba(92, 159, 255, 0.13);
  --accent-glow: rgba(92, 159, 255, 0.28);

  --text-primary: #F5F7FA;
  --text-secondary: #A8B0C0;
  --text-tertiary: #6B7280;

  --border-subtle: #1F2940;
  --border-strong: #2A3550;

  --success: #4ADE80;
  --warning: #F59E0B;
  --danger: #EF4444;

  /* Typography */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', 'Courier New', monospace;

  /* Spacing */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 64px;
  --space-9: 80px;
  --space-10: 120px;

  /* Layout */
  --container-max: 1200px;
  --content-max: 720px;

  /* Effects */
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 20px;

  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.2);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.3);
  --shadow-glow: 0 0 32px rgba(92, 159, 255, 0.15);

  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 250ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 400ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- 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-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-secondary);
  background-color: var(--bg-primary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* Subtle background grid pattern */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(92, 159, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(92, 159, 255, 0.03) 1px, transparent 1px);
  background-size: 64px 64px;
  pointer-events: none;
  z-index: 0;
}

/* Constellation pattern — site-wide, subtle, animated */
.constellation-bg {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 0;
  opacity: 0.55;
  mask-image: radial-gradient(ellipse at center, #000 40%, transparent 95%);
  -webkit-mask-image: radial-gradient(ellipse at center, #000 40%, transparent 95%);
}

.constellation-bg svg {
  width: 100%;
  height: 100%;
  display: block;
}

.constellation-line {
  stroke: rgba(92, 159, 255, 0.22);
  stroke-width: 1;
  stroke-dasharray: 4 5;
  fill: none;
}

.constellation-node-halo {
  fill: rgba(92, 159, 255, 0.18);
  animation: constellation-pulse 4s ease-in-out infinite;
}

.constellation-node-core {
  fill: rgba(92, 159, 255, 0.85);
}

@keyframes constellation-pulse {
  0%, 100% { opacity: 0.5; }
  50%      { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .constellation-node-halo { animation: none; }
}

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

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

a:hover {
  color: var(--accent-hover);
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
  color: var(--text-primary);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.display {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.05;
}

h1 {
  font-size: clamp(2rem, 4.5vw, 3.5rem);
}

h2 {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
}

h3 {
  font-size: 1.5rem;
  letter-spacing: -0.01em;
}

h4 {
  font-size: 1.125rem;
  font-weight: 500;
}

p {
  font-size: 1rem;
}

.lead {
  font-size: 1.125rem;
  color: var(--text-secondary);
  max-width: 56ch;
}

.caption {
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  font-family: var(--font-mono);
}

.text-mono {
  font-family: var(--font-mono);
}

/* --- Layout --- */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-5);
  position: relative;
  z-index: 1;
}

.section {
  padding: var(--space-10) 0;
  position: relative;
}

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

.section-header {
  margin-bottom: var(--space-8);
  max-width: 720px;
}

.section-header .caption {
  margin-bottom: var(--space-4);
  display: inline-block;
}

.section-header h2 {
  margin-bottom: var(--space-4);
}

/* --- Header / Navigation --- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 14, 26, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-subtle);
}

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

.nav-logo {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  color: var(--text-primary);
  font-weight: 600;
  font-size: 1.125rem;
  letter-spacing: -0.01em;
}

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

.nav-logo svg {
  width: 28px;
  height: 28px;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: var(--space-7);
  list-style: none;
}

.nav-link {
  color: var(--text-secondary);
  font-size: 0.9375rem;
  font-weight: 500;
  transition: color var(--transition-fast);
  position: relative;
}

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

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -24px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--accent);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.lang-switcher {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-tertiary);
  font-family: var(--font-mono);
}

.lang-switcher a {
  color: var(--text-tertiary);
  padding: var(--space-1) var(--space-2);
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
}

.lang-switcher a.active {
  color: var(--accent);
}

.lang-switcher a:hover {
  color: var(--text-primary);
}

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  color: var(--text-primary);
}

.nav-toggle svg {
  width: 24px;
  height: 24px;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: 14px 24px;
  font-size: 0.9375rem;
  font-weight: 500;
  border-radius: var(--radius-md);
  transition: all var(--transition-base);
  cursor: pointer;
  white-space: nowrap;
  border: 1px solid transparent;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.1) inset, 0 4px 12px rgba(92, 159, 255, 0.3);
}

.btn-primary:hover {
  background: var(--accent-hover);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.15) inset, 0 8px 20px rgba(92, 159, 255, 0.4);
}

.btn-secondary {
  background: transparent;
  color: var(--accent);
  border-color: var(--accent);
}

.btn-secondary:hover {
  background: var(--accent-subtle);
  color: var(--accent-hover);
  border-color: var(--accent-hover);
}

.btn-ghost {
  background: transparent;
  color: var(--text-primary);
  border-color: var(--border-strong);
}

.btn-ghost:hover {
  background: var(--bg-secondary);
  border-color: var(--accent);
  color: var(--accent);
}

.btn-arrow svg {
  width: 16px;
  height: 16px;
  transition: transform var(--transition-fast);
}

.btn-arrow:hover svg {
  transform: translateX(2px);
}

/* --- Hero --- */
.hero {
  position: relative;
  padding: var(--space-10) 0 var(--space-9);
  overflow: hidden;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 760px;
}

.hero-caption {
  margin-bottom: var(--space-5);
  display: inline-block;
}

.hero-title {
  margin-bottom: var(--space-5);
}

.hero-title .accent {
  color: var(--accent);
}

.hero-lead {
  font-size: 1.25rem;
  color: var(--text-secondary);
  max-width: 56ch;
  margin-bottom: var(--space-7);
  line-height: 1.55;
}

.hero-actions {
  display: flex;
  gap: var(--space-4);
  flex-wrap: wrap;
}

/* Workflow background visualization */
.hero-viz {
  position: absolute;
  top: 0;
  right: -10%;
  bottom: 0;
  width: 60%;
  z-index: 1;
  pointer-events: none;
  opacity: 0.6;
  mask-image: linear-gradient(to left, #000 30%, transparent 80%);
  -webkit-mask-image: linear-gradient(to left, #000 30%, transparent 80%);
}

.hero-viz svg {
  width: 100%;
  height: 100%;
}

/* Counter Section */
.counter-section {
  padding: var(--space-9) 0;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  background: linear-gradient(180deg, var(--bg-primary) 0%, var(--bg-secondary) 50%, var(--bg-primary) 100%);
}

.counter-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-8);
  align-items: center;
}

.counter-display {
  text-align: left;
}

.counter-value {
  font-size: clamp(3.5rem, 8vw, 6rem);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
  margin-bottom: var(--space-3);
  text-shadow: 0 0 40px rgba(92, 159, 255, 0.3);
}

.counter-label {
  font-size: 1.125rem;
  color: var(--text-primary);
  font-weight: 500;
  margin-bottom: var(--space-2);
}

.counter-meta {
  font-size: 0.8125rem;
  color: var(--text-tertiary);
  font-family: var(--font-mono);
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.counter-meta::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 8px var(--success);
  animation: pulse 2s ease-in-out infinite;
}

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

.counter-description {
  color: var(--text-secondary);
  font-size: 1.0625rem;
  line-height: 1.65;
}

/* --- Comparison Table (Today vs Tomorrow) --- */
.comparison {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-5);
}

.comparison-col {
  padding: var(--space-6);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  background: var(--bg-secondary);
}

.comparison-col-today {
  opacity: 0.85;
}

.comparison-col-tomorrow {
  border-color: var(--accent-subtle);
  background: linear-gradient(180deg, var(--bg-secondary) 0%, rgba(92, 159, 255, 0.04) 100%);
  position: relative;
}

.comparison-header {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-5);
  padding-bottom: var(--space-4);
  border-bottom: 1px solid var(--border-subtle);
}

.comparison-label {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-family: var(--font-mono);
  padding: var(--space-1) var(--space-3);
  border-radius: 100px;
}

.comparison-col-today .comparison-label {
  color: var(--text-tertiary);
  background: var(--bg-tertiary);
}

.comparison-col-tomorrow .comparison-label {
  color: var(--accent);
  background: var(--accent-subtle);
}

.comparison-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-primary);
}

.comparison-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.comparison-list li {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.comparison-list li::before {
  flex-shrink: 0;
  margin-top: 2px;
  font-family: var(--font-mono);
  font-size: 1rem;
}

.comparison-col-today .comparison-list li::before {
  content: '−';
  color: var(--text-tertiary);
}

.comparison-col-tomorrow .comparison-list li::before {
  content: '→';
  color: var(--accent);
}

/* --- Service Cards Grid --- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: var(--space-5);
}

.service-card {
  padding: var(--space-6);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  background: var(--bg-secondary);
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0;
  transition: opacity var(--transition-base);
}

.service-card:hover {
  border-color: var(--border-strong);
  background: var(--bg-tertiary);
  transform: translateY(-2px);
}

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

.service-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: var(--accent-subtle);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-4);
}

.service-icon svg {
  width: 22px;
  height: 22px;
}

.service-card h3 {
  font-size: 1.125rem;
  margin-bottom: var(--space-3);
}

.service-card p {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  margin-bottom: var(--space-4);
  line-height: 1.55;
}

.service-example {
  padding-top: var(--space-4);
  border-top: 1px solid var(--border-subtle);
  font-size: 0.875rem;
  color: var(--accent);
  line-height: 1.5;
}

.service-example::before {
  content: 'Beispiel: ';
  color: var(--text-tertiary);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  display: block;
  margin-bottom: var(--space-1);
}

[lang="en"] .service-example::before {
  content: 'Example: ';
}

/* --- Process Steps --- */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-5);
}

.step {
  padding: var(--space-6);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  background: var(--bg-secondary);
  transition: all var(--transition-base);
  position: relative;
}

.step:hover {
  border-color: var(--accent-subtle);
}

.step-number {
  font-family: var(--font-mono);
  font-size: 2.5rem;
  font-weight: 300;
  color: var(--accent);
  letter-spacing: -0.04em;
  line-height: 1;
  margin-bottom: var(--space-4);
  opacity: 0.7;
}

.step h3 {
  font-size: 1.0625rem;
  margin-bottom: var(--space-3);
}

.step p {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.55;
}

/* --- Team / About --- */
.team-section {
  padding: var(--space-9) 0;
  border-top: 1px solid var(--border-subtle);
}

.team-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: var(--space-8);
  align-items: start;
}

.team-quote {
  font-size: 1.5rem;
  line-height: 1.4;
  color: var(--text-primary);
  font-weight: 500;
  letter-spacing: -0.01em;
}

.team-roles {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  margin-top: var(--space-5);
}

.team-roles li {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-size: 0.9375rem;
  color: var(--text-secondary);
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-md);
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
}

.team-roles li::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}

/* --- CTA Section --- */
.cta-section {
  padding: var(--space-9) 0;
  text-align: center;
  background: radial-gradient(circle at 50% 0%, rgba(92, 159, 255, 0.08), transparent 60%);
  border-top: 1px solid var(--border-subtle);
}

.cta-section h2 {
  margin-bottom: var(--space-4);
}

.cta-section p {
  font-size: 1.125rem;
  color: var(--text-secondary);
  margin-bottom: var(--space-6);
  max-width: 56ch;
  margin-left: auto;
  margin-right: auto;
}

.cta-actions {
  display: flex;
  gap: var(--space-4);
  justify-content: center;
  flex-wrap: wrap;
}

/* --- FAQ --- */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  max-width: 760px;
}

.faq-item {
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  background: var(--bg-secondary);
  overflow: hidden;
  transition: border-color var(--transition-base);
}

.faq-item[open] {
  border-color: var(--border-strong);
}

.faq-item summary {
  padding: var(--space-5) var(--space-6);
  cursor: pointer;
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  list-style: none;
  transition: background var(--transition-fast);
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary:hover {
  background: var(--bg-tertiary);
}

.faq-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: var(--accent);
  transition: transform var(--transition-base);
}

.faq-item[open] .faq-icon {
  transform: rotate(45deg);
}

.faq-content {
  padding: 0 var(--space-6) var(--space-5);
  color: var(--text-secondary);
  font-size: 0.9375rem;
  line-height: 1.65;
}

/* --- Reference Cards --- */
.case-study {
  padding: var(--space-7);
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-subtle);
  background: linear-gradient(135deg, var(--bg-secondary) 0%, rgba(92, 159, 255, 0.03) 100%);
  margin-bottom: var(--space-7);
}

.case-study-header {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  margin-bottom: var(--space-5);
  padding-bottom: var(--space-5);
  border-bottom: 1px solid var(--border-subtle);
}

.case-study-badge {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-family: var(--font-mono);
  color: var(--accent);
  padding: var(--space-1) var(--space-3);
  background: var(--accent-subtle);
  border-radius: 100px;
}

.case-study-meta {
  font-size: 0.8125rem;
  color: var(--text-tertiary);
  font-family: var(--font-mono);
}

.case-study h3 {
  font-size: 1.5rem;
  margin-bottom: var(--space-4);
}

.case-study-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-7);
  margin-bottom: var(--space-5);
}

.case-study-block h4 {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  font-family: var(--font-mono);
  margin-bottom: var(--space-3);
}

.case-study-block p {
  color: var(--text-secondary);
  font-size: 0.9375rem;
  line-height: 1.65;
}

.case-study-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-5);
  padding-top: var(--space-5);
  border-top: 1px solid var(--border-subtle);
}

.stat-value {
  font-size: 2rem;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  margin-bottom: var(--space-2);
}

.stat-label {
  font-size: 0.8125rem;
  color: var(--text-tertiary);
  font-family: var(--font-mono);
}

/* Industry reference cards */
.industries-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: var(--space-5);
}

.industry-card {
  padding: var(--space-5) var(--space-6);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  background: var(--bg-secondary);
  transition: all var(--transition-base);
}

.industry-card:hover {
  border-color: var(--accent-subtle);
  transform: translateY(-2px);
}

.industry-tag {
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  font-family: var(--font-mono);
  margin-bottom: var(--space-3);
}

.industry-card h3 {
  font-size: 1.0625rem;
  margin-bottom: var(--space-3);
}

.industry-card p {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.55;
  margin-bottom: var(--space-4);
}

.industry-savings {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-1) var(--space-3);
  background: var(--accent-subtle);
  border-radius: 100px;
  font-size: 0.8125rem;
  color: var(--accent);
  font-weight: 500;
  font-family: var(--font-mono);
}

.industry-savings-group {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.placeholder-card {
  padding: var(--space-7);
  border-radius: var(--radius-lg);
  border: 1px dashed var(--border-strong);
  background: transparent;
  text-align: center;
  color: var(--text-tertiary);
  font-size: 0.9375rem;
  line-height: 1.6;
}

/* --- Contact Form --- */
.contact-grid {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: var(--space-8);
  align-items: start;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
}

.form-label {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  font-weight: 500;
  font-family: var(--font-mono);
  letter-spacing: 0.05em;
}

.form-label .required {
  color: var(--accent);
  margin-left: 2px;
}

.form-input,
.form-textarea {
  padding: 12px 16px;
  font-size: 0.9375rem;
  font-family: var(--font-sans);
  color: var(--text-primary);
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
  width: 100%;
}

.form-input:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-subtle);
  background: var(--bg-tertiary);
}

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

.form-textarea {
  min-height: 140px;
  resize: vertical;
  font-family: var(--font-sans);
}

/* Honeypot - hidden from users */
.honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.form-submit {
  margin-top: var(--space-3);
  align-self: flex-start;
}

.form-status {
  padding: var(--space-4);
  border-radius: var(--radius-md);
  font-size: 0.9375rem;
  display: none;
}

.form-status.show {
  display: block;
}

.form-status.success {
  background: rgba(74, 222, 128, 0.1);
  border: 1px solid rgba(74, 222, 128, 0.3);
  color: var(--success);
}

.form-status.error {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: var(--danger);
}

.contact-info {
  padding: var(--space-6);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  background: var(--bg-secondary);
}

.contact-info h3 {
  font-size: 1.125rem;
  margin-bottom: var(--space-5);
}

.contact-info-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.contact-info-list li {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
}

.contact-info-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-md);
  background: var(--accent-subtle);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-info-icon svg {
  width: 18px;
  height: 18px;
}

.contact-info-content .label {
  font-size: 0.75rem;
  color: var(--text-tertiary);
  font-family: var(--font-mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 2px;
}

.contact-info-content .value {
  font-size: 0.9375rem;
  color: var(--text-primary);
  line-height: 1.4;
}

.contact-info-content a.value {
  color: var(--text-primary);
}

.contact-info-content a.value:hover {
  color: var(--accent);
}

.contact-note {
  margin-top: var(--space-5);
  padding-top: var(--space-5);
  border-top: 1px solid var(--border-subtle);
  font-size: 0.8125rem;
  color: var(--text-tertiary);
  line-height: 1.5;
}

/* --- Page Header --- */
.page-header {
  padding: var(--space-9) 0 var(--space-7);
  text-align: left;
  border-bottom: 1px solid var(--border-subtle);
}

.page-header .caption {
  margin-bottom: var(--space-4);
  display: inline-block;
}

.page-header h1 {
  margin-bottom: var(--space-4);
  max-width: 720px;
}

.page-header p {
  font-size: 1.125rem;
  color: var(--text-secondary);
  max-width: 640px;
  line-height: 1.55;
}

/* --- Brand mark above footer --- */
.brand-mark {
  padding: var(--space-8) 0;
  text-align: center;
  border-top: 1px solid var(--border-subtle);
  position: relative;
}

.brand-mark svg,
.brand-mark img {
  display: inline-block;
  width: clamp(260px, 42vw, 440px);
  height: auto;
  opacity: 0.92;
}

@media (max-width: 600px) {
  .brand-mark {
    padding: var(--space-7) 0;
  }
}

/* --- Footer --- */
.site-footer {
  padding: var(--space-8) 0 var(--space-6);
  border-top: 1px solid var(--border-subtle);
  background: var(--bg-secondary);
  margin-top: var(--space-9);
}

/* If brand-mark sits directly before the footer, drop the doubled border + margin */
.brand-mark + .site-footer {
  border-top: none;
  margin-top: 0;
}

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

.footer-brand h4 {
  font-size: 1rem;
  margin-bottom: var(--space-3);
  color: var(--text-primary);
}

.footer-brand p {
  font-size: 0.875rem;
  color: var(--text-tertiary);
  line-height: 1.55;
  max-width: 320px;
}

.footer-col h5 {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-tertiary);
  font-family: var(--font-mono);
  margin-bottom: var(--space-4);
}

.footer-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.55;
}

.footer-list a {
  color: var(--text-secondary);
  font-size: 0.875rem;
  transition: color var(--transition-fast);
}

.footer-list a:hover {
  color: var(--accent);
}

.footer-bottom {
  padding-top: var(--space-5);
  border-top: 1px solid var(--border-subtle);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-4);
}

.footer-copy {
  font-size: 0.8125rem;
  color: var(--text-tertiary);
  font-family: var(--font-mono);
}

.footer-legal {
  display: flex;
  gap: var(--space-5);
  list-style: none;
  flex-wrap: wrap;
}

.footer-legal a {
  font-size: 0.8125rem;
  color: var(--text-tertiary);
  font-family: var(--font-mono);
}

.footer-legal a:hover {
  color: var(--accent);
}

/* --- Chatbot Floating Button (Phase 2 - prepared) --- */
.chatbot-button {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(92, 159, 255, 0.4);
  z-index: 50;
  cursor: pointer;
  transition: all var(--transition-base);
  border: none;
}

.chatbot-button:hover {
  background: var(--accent-hover);
  transform: scale(1.05);
}

.chatbot-button svg {
  width: 24px;
  height: 24px;
}

.chatbot-tooltip {
  position: absolute;
  right: 72px;
  top: 50%;
  transform: translateY(-50%);
  background: var(--bg-tertiary);
  color: var(--text-primary);
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-md);
  font-size: 0.8125rem;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-fast);
  border: 1px solid var(--border-subtle);
}

.chatbot-button:hover .chatbot-tooltip {
  opacity: 1;
}

.chatbot-button.coming-soon::after {
  content: '';
  position: absolute;
  top: -2px;
  right: -2px;
  width: 12px;
  height: 12px;
  background: var(--warning);
  border-radius: 50%;
  border: 2px solid var(--bg-primary);
}

/* --- Legal Pages Content --- */
.legal-content {
  max-width: 720px;
  color: var(--text-secondary);
  line-height: 1.7;
}

.legal-content h2 {
  margin-top: var(--space-7);
  margin-bottom: var(--space-4);
  font-size: 1.5rem;
}

.legal-content h3 {
  margin-top: var(--space-5);
  margin-bottom: var(--space-3);
  font-size: 1.125rem;
}

.legal-content p {
  margin-bottom: var(--space-4);
}

.legal-content ul {
  margin: var(--space-3) 0 var(--space-5) var(--space-5);
  padding-left: var(--space-3);
}

.legal-content li {
  margin-bottom: var(--space-2);
}

/* --- Animations --- */
.fade-in {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 600ms ease-out, transform 600ms ease-out;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- Responsive --- */
@media (max-width: 960px) {
  :root {
    --space-10: 80px;
    --space-9: 64px;
  }

  .nav-menu {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    flex-direction: column;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-subtle);
    padding: var(--space-4) var(--space-5);
    gap: var(--space-4);
    align-items: flex-start;
  }

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

  .nav-link.active::after {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  .hero-viz {
    display: none;
  }

  .counter-grid,
  .team-grid,
  .contact-grid,
  .case-study-content {
    grid-template-columns: 1fr;
    gap: var(--space-6);
  }

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

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

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

  .footer-brand {
    grid-column: 1 / -1;
  }

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

  .case-study-stats {
    grid-template-columns: 1fr;
    gap: var(--space-4);
  }
}

@media (max-width: 600px) {
  .hero-actions,
  .cta-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .btn {
    width: 100%;
  }

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

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

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

  html {
    scroll-behavior: auto;
  }
}
