/* ============================================================
   HKTSE s.r.o. — Corporate Website Design System
   Fusion: Linear (deep dark) + HashiCorp (multi-product) 
         + VoltAgent (emerald accent) + Together.ai (gradient hero)
   ============================================================ */

/* --- Google Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=JetBrains+Mono:wght@400;500;600&display=swap');

/* --- Design Tokens (CSS Custom Properties) --- */
:root {
  /* Colors — Canvas & Surface Ladder (Linear-inspired) */
  --canvas: #060611;
  --surface-1: #0c0c1d;
  --surface-2: #111128;
  --surface-3: #181838;
  --surface-4: #1e1e42;

  /* Colors — Ink */
  --ink: #f0f0f8;
  --ink-muted: #b8b8d0;
  --ink-subtle: #7878a0;
  --ink-tertiary: #505068;

  /* Colors — Brand Accent (Cyber Cyan) */
  --accent: #00d4ff;
  --accent-soft: #00d4ff33;
  --accent-deep: #0099cc;
  --accent-glow: #00d4ff18;

  /* Colors — Secondary Accent (Electric Purple) */
  --accent-2: #7B61FF;
  --accent-2-soft: #7B61FF33;

  /* Colors — Product Accents (HashiCorp multi-product pattern) */
  --product-idc: #00d4ff;
  --product-automation: #ff6b35;
  --product-fse: #00e68a;
  --product-ai: #a855f7;
  --product-cdn: #f59e0b;
  --product-platform: #ec4899;

  /* Colors — Gradient */
  --gradient-brand: linear-gradient(135deg, #00d4ff, #7B61FF);
  --gradient-hero: linear-gradient(135deg, #00d4ff 0%, #7B61FF 50%, #ec4899 100%);
  --gradient-subtle: linear-gradient(180deg, var(--surface-1) 0%, var(--canvas) 100%);
  --gradient-card-border: linear-gradient(135deg, #00d4ff44, #7B61FF44);

  /* Colors — Semantic */
  --success: #00e68a;
  --warning: #f5a623;
  --error: #ef4444;

  /* Colors — Hairline */
  --hairline: #1e1e3a;
  --hairline-strong: #2a2a50;
  --hairline-soft: #14142a;

  /* Typography */
  --font-sans: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Monaco, monospace;

  /* Spacing */
  --space-xxs: 4px;
  --space-xs: 8px;
  --space-sm: 12px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-2xl: 48px;
  --space-3xl: 64px;
  --space-4xl: 96px;
  --space-section: 120px;

  /* Rounded */
  --radius-xs: 4px;
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-xxl: 24px;
  --radius-pill: 9999px;

  /* Shadows */
  --shadow-card: 0 0 0 1px var(--hairline);
  --shadow-glow: 0 0 40px var(--accent-soft);
  --shadow-elevated: 0 8px 32px rgba(0, 0, 0, 0.4);

  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-base: 250ms ease;
  --transition-slow: 400ms cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* --- Accessibility: 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;
  }
  .reveal {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  .ticker-track {
    animation: none !important;
  }
  .hero-orb {
    animation: none !important;
  }
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
  color: var(--ink);
  background-color: var(--canvas);
  overflow-x: hidden;
}

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

/* --- Accessibility: Focus States --- */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
.btn:focus-visible,
.product-card:focus-visible,
.card:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* Remove default outline for mouse users */
:focus:not(:focus-visible) {
  outline: none;
}

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

/* --- Typography Scale --- */
.display-xl {
  font-family: var(--font-sans);
  font-size: clamp(40px, 6vw, 72px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -2.5px;
  color: var(--ink);
}

.display-lg {
  font-family: var(--font-sans);
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -1.5px;
  color: var(--ink);
}

.display-md {
  font-family: var(--font-sans);
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.8px;
  color: var(--ink);
}

.display-sm {
  font-family: var(--font-sans);
  font-size: 20px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.4px;
}

.body-lg {
  font-size: 18px;
  font-weight: 400;
  line-height: 1.6;
  color: var(--ink-muted);
}

.body-md {
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
  color: var(--ink-muted);
}

.body-sm {
  font-size: 14px;
  font-weight: 400;
  line-height: 1.5;
  color: var(--ink-subtle);
}

/* Eyebrow — Together.ai mono uppercase pattern */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--accent);
}

.caption-mono {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 400;
  line-height: 1.5;
  color: var(--ink-subtle);
}

/* --- Gradient Text --- */
.gradient-text {
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* --- Layout --- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

.container-wide {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

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

.section-divider {
  height: 1px;
  background: var(--hairline);
  border: none;
}

/* --- Navigation --- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: 64px;
  display: flex;
  align-items: center;
  background: rgba(6, 6, 17, 0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--hairline);
  transition: background var(--transition-base);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

.nav-logo {
  font-family: var(--font-sans);
  font-size: 20px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.5px;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-logo .logo-mark {
  width: 32px;
  height: 32px;
  background: var(--gradient-brand);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 800;
  color: var(--canvas);
  letter-spacing: 0;
}

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

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

.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-subtle);
  transition: color var(--transition-fast);
  letter-spacing: -0.05px;
}

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

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  background: var(--accent);
  color: var(--canvas) !important;
  font-size: 14px;
  font-weight: 600;
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
  border: none;
  cursor: pointer;
}

.nav-cta:hover {
  background: var(--accent-deep);
  color: var(--canvas) !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px var(--accent-soft);
}

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

.nav-toggle span {
  width: 22px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: all var(--transition-fast);
}

/* --- Hero Section --- */
.hero {
  padding-top: 160px;
  padding-bottom: var(--space-section);
  position: relative;
  overflow: hidden;
  min-height: 100vh;
  display: flex;
  align-items: center;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 0;
}

.hero-bg canvas {
  width: 100%;
  height: 100%;
}

/* Grid overlay on hero */
.hero-grid {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image:
    linear-gradient(var(--hairline-soft) 1px, transparent 1px),
    linear-gradient(90deg, var(--hairline-soft) 1px, transparent 1px);
  background-size: 60px 60px;
  opacity: 0.3;
  z-index: 1;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, black 20%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, black 20%, transparent 70%);
}

/* Gradient orb */
.hero-orb {
  position: absolute;
  width: 800px;
  height: 800px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--accent-soft) 0%, transparent 70%);
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  pointer-events: none;
  animation: orbPulse 6s ease-in-out infinite;
}

@keyframes orbPulse {
  0%, 100% { opacity: 0.4; transform: translateX(-50%) scale(1); }
  50% { opacity: 0.6; transform: translateX(-50%) scale(1.1); }
}

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

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: var(--surface-2);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-pill);
  margin-bottom: var(--space-xl);
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-muted);
}

.hero-badge .badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--success);
  animation: pulse 2s ease-in-out infinite;
}

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

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

.hero-subtitle {
  font-size: clamp(16px, 2vw, 20px);
  font-weight: 400;
  line-height: 1.6;
  color: var(--ink-subtle);
  max-width: 640px;
  margin: 0 auto var(--space-2xl);
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-md);
  flex-wrap: wrap;
}

/* Glow line below hero */
.hero-glow-line {
  width: 100%;
  height: 1px;
  background: var(--gradient-brand);
  opacity: 0.5;
  margin-top: var(--space-3xl);
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.2;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  transition: background-color var(--transition-fast),
              color var(--transition-fast),
              border-color var(--transition-fast),
              box-shadow var(--transition-fast);
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background: var(--accent);
  color: var(--canvas);
}
.btn-primary:hover {
  background: var(--accent-deep);
  color: var(--canvas);
  box-shadow: 0 4px 16px var(--accent-soft);
}

.btn-secondary {
  background: var(--surface-2);
  color: var(--ink);
  border: 1px solid var(--hairline);
}
.btn-secondary:hover {
  background: var(--surface-3);
  color: var(--ink);
  border-color: var(--hairline-strong);
}

.btn-ghost {
  background: transparent;
  color: var(--accent);
  padding: 12px 16px;
}
.btn-ghost:hover {
  background: var(--accent-glow);
  color: var(--accent);
}

.btn-icon {
  width: 18px;
  height: 18px;
}

/* --- Cards --- */
.card {
  background: var(--surface-1);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  transition: border-color var(--transition-base),
              box-shadow var(--transition-base);
  position: relative;
  overflow: hidden;
  cursor: default;
}

.card:hover {
  border-color: var(--hairline-strong);
  box-shadow: var(--shadow-elevated);
}

/* Card with gradient border on hover */
.card-glow {
  position: relative;
}
.card-glow::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background: var(--gradient-card-border);
  z-index: -1;
  opacity: 0;
  transition: opacity var(--transition-base);
}
.card-glow:hover::before {
  opacity: 1;
}

.card-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin-bottom: var(--space-md);
  background: var(--surface-3);
  border: 1px solid var(--hairline);
}

.card-title {
  font-size: 20px;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.4px;
  color: var(--ink);
  margin-bottom: var(--space-xs);
}

.card-desc {
  font-size: 14px;
  line-height: 1.6;
  color: var(--ink-subtle);
}

/* --- Services Grid --- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
}

/* Product-specific accent colors on card icons */
.card-icon--idc { background: var(--product-idc)18; border-color: var(--product-idc)33; color: var(--product-idc); }
.card-icon--automation { background: var(--product-automation)18; border-color: var(--product-automation)33; color: var(--product-automation); }
.card-icon--fse { background: var(--product-fse)18; border-color: var(--product-fse)33; color: var(--product-fse); }
.card-icon--ai { background: var(--product-ai)18; border-color: var(--product-ai)33; color: var(--product-ai); }
.card-icon--cdn { background: var(--product-cdn)18; border-color: var(--product-cdn)33; color: var(--product-cdn); }
.card-icon--platform { background: var(--product-platform)18; border-color: var(--product-platform)33; color: var(--product-platform); }

/* --- Product Grid --- */
.products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-md);
}

.product-card {
  background: var(--surface-1);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  text-align: center;
  transition: border-color var(--transition-base),
              box-shadow var(--transition-base),
              background-color var(--transition-base);
  text-decoration: none;
  display: block;
  cursor: pointer;
}

.product-card:hover {
  border-color: var(--accent);
  background: var(--surface-2);
  box-shadow: 0 0 24px var(--accent-soft);
}

.product-card .product-icon {
  font-size: 32px;
  margin-bottom: var(--space-sm);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-card .product-name {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: var(--space-xxs);
  letter-spacing: 0.5px;
}

.product-card .product-domain {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--accent);
  letter-spacing: 0.3px;
}

.product-card .product-desc {
  font-size: 13px;
  color: var(--ink-subtle);
  margin-top: var(--space-xs);
  line-height: 1.5;
}

/* --- Stats / Metrics --- */
.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-md);
}

.stat-card {
  background: var(--surface-1);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  padding: var(--space-xl) var(--space-lg);
  text-align: center;
}

.stat-value {
  font-family: var(--font-sans);
  font-size: 36px;
  font-weight: 700;
  letter-spacing: -1px;
  margin-bottom: var(--space-xxs);
}

.stat-label {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--ink-subtle);
}

/* --- Tech Ticker / Logo Strip --- */
.tech-ticker {
  overflow: hidden;
  position: relative;
  padding: var(--space-2xl) 0;
}

.tech-ticker::before,
.tech-ticker::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 120px;
  z-index: 2;
  pointer-events: none;
}

.tech-ticker::before {
  left: 0;
  background: linear-gradient(90deg, var(--canvas), transparent);
}

.tech-ticker::after {
  right: 0;
  background: linear-gradient(270deg, var(--canvas), transparent);
}

.ticker-track {
  display: flex;
  gap: var(--space-2xl);
  animation: ticker 30s linear infinite;
  width: max-content;
}

@keyframes ticker {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.ticker-item {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-tertiary);
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  padding: 8px 20px;
  background: var(--surface-1);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-pill);
  transition: color var(--transition-fast);
}

.ticker-item:hover {
  color: var(--ink-muted);
  border-color: var(--hairline-strong);
}

/* --- About / Company Info --- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3xl);
  align-items: start;
}

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

.info-row {
  display: flex;
  gap: var(--space-md);
  padding: var(--space-md) 0;
  border-bottom: 1px solid var(--hairline);
}

.info-label {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--ink-subtle);
  min-width: 140px;
  flex-shrink: 0;
}

.info-value {
  font-size: 15px;
  color: var(--ink-muted);
}

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

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

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

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

.form-input,
.form-textarea {
  background: var(--surface-1);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  font-family: var(--font-sans);
  font-size: 15px;
  color: var(--ink);
  transition: border-color var(--transition-fast);
  outline: none;
}

.form-input:focus,
.form-textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

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

.contact-info-cards {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.contact-card {
  background: var(--surface-1);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  display: flex;
  align-items: flex-start;
  gap: var(--space-md);
  transition: border-color var(--transition-fast);
}

.contact-card:hover {
  border-color: var(--hairline-strong);
}

.contact-card-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  background: var(--surface-3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
  color: var(--accent);
}

.contact-card-content h4 {
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 4px;
}

.contact-card-content p {
  font-size: 14px;
  color: var(--ink-subtle);
  line-height: 1.5;
}

/* --- Footer --- */
.footer {
  padding: var(--space-3xl) 0;
  border-top: 1px solid var(--hairline);
}

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

.footer-brand p {
  font-size: 14px;
  color: var(--ink-subtle);
  line-height: 1.6;
  margin-top: var(--space-sm);
  max-width: 300px;
}

.footer-col h5 {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--ink-subtle);
  margin-bottom: var(--space-md);
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.footer-col a {
  font-size: 14px;
  color: var(--ink-tertiary);
  transition: color var(--transition-fast);
  cursor: pointer;
}

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

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: var(--space-lg);
  border-top: 1px solid var(--hairline);
}

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

.footer-legal {
  display: flex;
  gap: var(--space-lg);
}

.footer-legal a {
  font-size: 13px;
  color: var(--ink-tertiary);
}

/* --- Section Headers --- */
.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto var(--space-3xl);
}

.section-header .eyebrow {
  margin-bottom: var(--space-md);
}

.section-header .display-lg {
  margin-bottom: var(--space-md);
}

.section-header .body-lg {
  max-width: 560px;
  margin: 0 auto;
}

/* --- Scroll Animations --- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }
.reveal-delay-6 { transition-delay: 0.6s; }

/* --- CTA Banner --- */
.cta-banner {
  background: var(--surface-1);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-xxl);
  padding: var(--space-3xl);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-banner::before {
  content: '';
  position: absolute;
  top: -2px;
  left: 30%;
  right: 30%;
  height: 2px;
  background: var(--gradient-brand);
  border-radius: 2px;
}

/* --- Responsive --- */
@media (max-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .stats-row {
    grid-template-columns: repeat(2, 1fr);
  }
  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xl);
  }
}

@media (max-width: 768px) {
  :root {
    --space-section: 80px;
  }

  .nav-links {
    display: none;
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--canvas);
    flex-direction: column;
    padding: var(--space-xl);
    gap: var(--space-lg);
    border-top: 1px solid var(--hairline);
  }

  .nav-links.active {
    display: flex;
  }

  .nav-toggle {
    display: flex;
  }

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

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

  .hero {
    padding-top: 120px;
    min-height: auto;
  }

  .hero-actions {
    flex-direction: column;
    width: 100%;
  }

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

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

  .footer-bottom {
    flex-direction: column;
    gap: var(--space-md);
    text-align: center;
  }

  .footer-legal {
    justify-content: center;
  }

  .cta-banner {
    padding: var(--space-2xl) var(--space-lg);
  }
}

@media (max-width: 480px) {
  .stats-row {
    grid-template-columns: 1fr;
  }
}

/* --- 1440px+ Wide Desktop --- */
@media (min-width: 1440px) {
  .container {
    max-width: 1280px;
  }
  .container-wide {
    max-width: 1440px;
  }
}
