/* ==========================================================================
   SnackMe – Main Stylesheet
   Design system extracted 1:1 from Next.js source.
   Primary color: oklch(0.75 0.18 145) ≈ #4ade80-adjacent bright green
   Font: Inter (Google Fonts)
   ========================================================================== */

/* ─── Design Tokens ───────────────────────────────────────────────────────── */
:root {
  /* Colors – exact OKLCH values from globals.css */
  --color-bg:          oklch(0.08 0 0);
  --color-surface:     oklch(0.12 0 0);
  --color-surface-2:   oklch(0.15 0 0);
  --color-surface-3:   oklch(0.18 0 0);
  --color-border:      oklch(0.22 0 0);
  --color-text:        oklch(0.98 0 0);
  --color-text-muted:  oklch(0.6  0 0);
  --color-primary:     oklch(0.75 0.18 145);
  --color-primary-dim: oklch(0.65 0.18 145);
  --color-primary-bg:  oklch(0.75 0.18 145 / 0.1);
  --color-glow:        oklch(0.75 0.18 145 / 0.3);
  --color-glass:       oklch(0.15 0 0 / 0.6);
  --color-glass-border:oklch(0.3  0 0 / 0.3);

  /* Hex fallbacks for older environments */
  --color-bg-hex:      #0d0d0d;
  --color-surface-hex: #141414;
  --color-primary-hex: #4fd980;

  /* Typography — system font first so Apple devices render SF Pro */
  --font-body:    -apple-system, BlinkMacSystemFont, 'Inter', system-ui, sans-serif;
  --font-heading: -apple-system, BlinkMacSystemFont, 'Inter', system-ui, sans-serif;
  --font-mono:    ui-monospace, 'JetBrains Mono', 'Fira Code', monospace;

  /* Type scale */
  --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;

  /* Spacing */
  --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;

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

  /* Shadows / Glows */
  --shadow-sm:    0 1px 2px oklch(0 0 0 / 0.5);
  --shadow:       0 4px 16px oklch(0 0 0 / 0.4);
  --shadow-lg:    0 8px 32px oklch(0 0 0 / 0.5);
  --glow-primary: 0 0 40px var(--color-glow);
  --glow-sm:      0 0 16px var(--color-glow);

  /* Transitions — Apple-grade easing & timing */
  --ease-out:    cubic-bezier(0.25, 0.46, 0.45, 0.94);   /* smooth decelerate */
  --ease-spring: cubic-bezier(0.16, 1, 0.3, 1);           /* snappy spring */
  --duration:    0.35s;
  --duration-lg: 0.6s;
  --duration-xl: 1.0s;

  /* Layout */
  --container-max: 1280px;
  --container-pad: clamp(1rem, 4vw, 2rem);
  --header-h: 72px;
}

/* ─── Reset & Base ────────────────────────────────────────────────────────── */
*, *::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);
  line-height: 1.6;
  color: var(--color-text);
  background-color: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Custom scrollbar */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: oklch(0.1 0 0); }
::-webkit-scrollbar-thumb { background: oklch(0.25 0 0); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: oklch(0.35 0 0); }

img, svg { display: block; max-width: 100%; }
a { color: var(--color-primary); text-decoration: none; transition: color var(--duration) var(--ease-out); }
a:hover { color: var(--color-primary-dim); }
ul, ol { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, textarea, select { font-family: inherit; }

/* Focus ring */
:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

/* Screen-reader only */
.screen-reader-text {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}
.screen-reader-text:focus {
  position: fixed; top: var(--sp-4); left: var(--sp-4);
  width: auto; height: auto;
  padding: var(--sp-3) var(--sp-6);
  background: var(--color-primary);
  color: var(--color-bg);
  font-weight: 600;
  border-radius: var(--radius);
  z-index: 9999;
  clip: auto;
}

/* ─── Layout Utilities ────────────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-pad);
}

.section {
  padding-block: var(--sp-24);
}

.section-sm { padding-block: var(--sp-16); }
.section-lg { padding-block: clamp(var(--sp-24), 10vw, var(--sp-32)); }

.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--sp-6); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-6); }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--sp-6); }

.flex      { display: flex; }
.flex-col  { display: flex; flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-4 { gap: var(--sp-4); }
.gap-6 { gap: var(--sp-6); }
.gap-8 { gap: var(--sp-8); }

.text-center { text-align: center; }
.w-full { width: 100%; }

/* ─── Typography ─────────────────────────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--color-text);
}

h1 { font-size: clamp(var(--text-4xl), 7vw, var(--text-7xl)); letter-spacing: -0.04em; }
h2 { font-size: clamp(var(--text-3xl), 5vw, var(--text-6xl)); letter-spacing: -0.035em; }
h3 { font-size: clamp(var(--text-xl), 2.5vw, var(--text-3xl)); }
h4 { font-size: var(--text-xl); }
h5 { font-size: var(--text-lg); }
h6 { font-size: var(--text-base); }

.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--color-primary);
  background: var(--color-primary-bg);
  padding: var(--sp-1) var(--sp-3);
  border-radius: var(--radius-full);
  border: 1px solid oklch(0.75 0.18 145 / 0.2);
  margin-bottom: var(--sp-4);
}

.section-title {
  font-size: clamp(var(--text-3xl), 4vw, var(--text-5xl));
  font-weight: 800;
  margin-bottom: var(--sp-4);
}

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

.gradient-text {
  background: linear-gradient(135deg, var(--color-primary) 0%, oklch(0.85 0.12 160) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ─── Buttons ─────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  padding: 0.75em 1.75em;
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1;
  border-radius: var(--radius);
  border: 1px solid transparent;
  will-change: transform;
  transition:
    background-color var(--duration) var(--ease-out),
    border-color     var(--duration) var(--ease-out),
    box-shadow       var(--duration) var(--ease-out),
    transform        var(--duration) var(--ease-spring);
  cursor: pointer;
  white-space: nowrap;
  text-decoration: none;
}
.btn:hover  { transform: translateY(-2px) scale(1.02); }
.btn:active { transform: translateY(0)    scale(0.98); }

.btn-primary {
  background: var(--color-primary);
  color: var(--color-bg);
  border-color: var(--color-primary);
}
.btn-primary:hover {
  background: var(--color-primary-dim);
  border-color: var(--color-primary-dim);
  box-shadow: var(--glow-sm);
  color: var(--color-bg);
}

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

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

.btn-sm  { padding: 0.5em 1.25em; font-size: var(--text-xs); }
.btn-lg  { padding: 1em 2.5em; font-size: var(--text-base); }
.btn-xl  { padding: 1.1em 3em; font-size: var(--text-lg); }
.btn-full { width: 100%; }

/* ─── Cards ──────────────────────────────────────────────────────────────── */
.card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  transition:
    border-color var(--duration) var(--ease-out),
    box-shadow var(--duration) var(--ease-out),
    transform var(--duration-lg) var(--ease-out);
}
.card:hover {
  border-color: oklch(0.75 0.18 145 / 0.3);
  box-shadow: var(--glow-primary), var(--shadow-lg);
  transform: translateY(-4px);
}

.card-body { padding: var(--sp-6); }
.card-image { position: relative; overflow: hidden; }
.card-image img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: contain;
  background: var(--color-surface-2);
  transition: transform var(--duration-lg) var(--ease-out);
}
.card:hover .card-image img { transform: scale(1.03); }

/* ─── Badges ─────────────────────────────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.2em 0.7em;
  font-size: var(--text-xs);
  font-weight: 600;
  border-radius: var(--radius-full);
  background: var(--color-primary-bg);
  color: var(--color-primary);
  border: 1px solid oklch(0.75 0.18 145 / 0.2);
}

.badge-outline {
  background: transparent;
  color: var(--color-text-muted);
  border: 1px solid var(--color-border);
}

.badge-green { background: oklch(0.75 0.18 145 / 0.15); color: var(--color-primary); }
.badge-beliebt { background: oklch(0.75 0.18 145); color: var(--color-bg); }

/* ─── Glass Morphism ─────────────────────────────────────────────────────── */
.glass {
  background: var(--color-glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--color-glass-border);
}

/* ─── Dividers ───────────────────────────────────────────────────────────── */
.divider {
  width: 100%;
  height: 1px;
  background: var(--color-border);
  margin-block: var(--sp-8);
}

/* ─── Header ─────────────────────────────────────────────────────────────── */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--header-h);
  background: transparent;
  transition:
    background-color var(--duration) var(--ease-out),
    border-bottom-color var(--duration) var(--ease-out),
    backdrop-filter var(--duration) var(--ease-out);
  border-bottom: 1px solid transparent;
}

.site-header.is-scrolled {
  background: var(--color-glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom-color: var(--color-glass-border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: var(--sp-6);
}

.header-logo a,
.header-logo .site-name-logo {
  display: flex;
  align-items: center;
}

.header-logo img {
  height: 40px;
  width: auto;
}

.site-name-logo {
  font-size: var(--text-xl);
  font-weight: 800;
  color: var(--color-text);
  text-decoration: none;
  letter-spacing: -0.03em;
}

/* Primary nav */
.primary-nav { flex: 1; display: flex; justify-content: center; }

.nav-list {
  display: flex;
  align-items: center;
  gap: var(--sp-1);
}

.nav-list a {
  display: block;
  padding: var(--sp-2) var(--sp-3);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text-muted);
  border-radius: var(--radius);
  transition: color var(--duration) var(--ease-out), background-color var(--duration) var(--ease-out);
}

.nav-list a:hover,
.nav-list .current-menu-item a {
  color: var(--color-text);
  background: var(--color-surface-2);
}

.nav-list .current-menu-item a { color: var(--color-primary); }

/* Mobile hamburger */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: var(--sp-2);
  border-radius: var(--radius);
  background: var(--color-surface-2);
  transition: background var(--duration) var(--ease-out);
}
.mobile-menu-toggle:hover { background: var(--color-surface-3); }
.hamburger-bar {
  display: block;
  width: 20px; height: 2px;
  background: var(--color-text);
  border-radius: 2px;
  transition: transform var(--duration) var(--ease-out), opacity var(--duration) var(--ease-out);
}

.mobile-menu-toggle[aria-expanded="true"] .hamburger-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.mobile-menu-toggle[aria-expanded="true"] .hamburger-bar:nth-child(2) { opacity: 0; transform: scaleX(0); }
.mobile-menu-toggle[aria-expanded="true"] .hamburger-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile menu panel */
.mobile-menu {
  position: fixed;
  top: var(--header-h);
  left: 0; right: 0;
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  padding: var(--sp-4) var(--container-pad) var(--sp-6);
  transform: translateY(-8px);
  opacity: 0;
  transition:
    transform var(--duration) var(--ease-out),
    opacity var(--duration) var(--ease-out);
  z-index: 99;
}

.mobile-menu:not([hidden]) {
  display: block;
  transform: translateY(0);
  opacity: 1;
}
.mobile-menu[hidden] { display: none; }

.mobile-nav-list { display: flex; flex-direction: column; gap: var(--sp-1); margin-bottom: var(--sp-4); }
.mobile-nav-list a {
  display: block;
  padding: var(--sp-3) var(--sp-4);
  font-size: var(--text-base);
  font-weight: 500;
  color: var(--color-text-muted);
  border-radius: var(--radius);
  transition: color var(--duration) var(--ease-out), background-color var(--duration) var(--ease-out);
}
.mobile-nav-list a:hover,
.mobile-nav-list .current-menu-item a { color: var(--color-text); background: var(--color-surface-2); }

/* Page offset for fixed header */
.site-content-wrap, main { padding-top: var(--header-h); }

/* ─── Hero Section ───────────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-block: var(--sp-24);
  margin-top: calc(-1 * var(--header-h));
  padding-top: calc(var(--header-h) + var(--sp-16));
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg-image {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-bg-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    oklch(0.08 0 0 / 0.92) 0%,
    oklch(0.08 0 0 / 0.75) 50%,
    oklch(0.08 0 0 / 0.88) 100%
  );
}

.hero-bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(oklch(0.75 0.18 145 / 0.03) 1px, transparent 1px),
    linear-gradient(90deg, oklch(0.75 0.18 145 / 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
}

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

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  padding: var(--sp-2) var(--sp-4);
  background: var(--color-primary-bg);
  border: 1px solid oklch(0.75 0.18 145 / 0.25);
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: var(--sp-6);
}

.hero-title {
  font-size: clamp(2.8rem, 9vw, 7rem);
  font-weight: 900;
  line-height: 1.02;
  letter-spacing: -0.045em;
  margin-bottom: var(--sp-6);
}

.hero-subtitle {
  font-size: clamp(var(--text-lg), 2vw, var(--text-xl));
  color: var(--color-text-muted);
  line-height: 1.7;
  max-width: 600px;
  margin-bottom: var(--sp-8);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-4);
  margin-bottom: var(--sp-12);
}

.hero-trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--sp-4);
  max-width: 640px;
}

.hero-trust-item {
  display: flex;
  flex-direction: column;
  gap: var(--sp-1);
  padding: var(--sp-4);
  background: var(--color-glass);
  border: 1px solid var(--color-glass-border);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.hero-trust-item .trust-icon {
  color: var(--color-primary);
  margin-bottom: var(--sp-1);
}

.hero-trust-item .trust-value {
  font-size: var(--text-lg);
  font-weight: 800;
  color: var(--color-text);
  line-height: 1;
}

.hero-trust-item .trust-label {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  line-height: 1.3;
}

/* ─── Trust / Logo Bar ───────────────────────────────────────────────────── */
.trust-section {
  padding-block: var(--sp-12);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  overflow: hidden;
}

.trust-label {
  text-align: center;
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: var(--sp-6);
}

.trust-logos {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: var(--sp-8);
}

.trust-logo-item {
  font-size: var(--text-lg);
  font-weight: 800;
  color: oklch(0.4 0 0);
  letter-spacing: -0.02em;
  transition: color var(--duration) var(--ease-out);
  user-select: none;
}
.trust-logo-item:hover { color: oklch(0.55 0 0); }

/* ─── Problem / Solution Section ─────────────────────────────────────────── */
.problem-solution {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-8);
  align-items: start;
}

.problem-col, .solution-col {
  padding: var(--sp-8);
  border-radius: var(--radius-2xl);
}

.problem-col {
  background: oklch(0.12 0.01 20 / 0.5);
  border: 1px solid oklch(0.22 0.03 20);
}

.solution-col {
  background: oklch(0.12 0.02 145 / 0.3);
  border: 1px solid oklch(0.75 0.18 145 / 0.15);
}

.problem-col h3 { color: oklch(0.85 0.08 25); margin-bottom: var(--sp-4); font-size: var(--text-xl); }
.solution-col h3 { color: var(--color-primary); margin-bottom: var(--sp-4); font-size: var(--text-xl); }

.check-list { display: flex; flex-direction: column; gap: var(--sp-3); }

.check-list li {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-3);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.5;
}

.check-list .icon-x  { color: oklch(0.65 0.18 25); flex-shrink: 0; margin-top: 2px; }
.check-list .icon-ok { color: var(--color-primary); flex-shrink: 0; margin-top: 2px; }

/* ─── Use Cases Grid ─────────────────────────────────────────────────────── */
.use-cases-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-5);
}

.use-case-card {
  padding: var(--sp-6);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  transition:
    border-color var(--duration) var(--ease-out),
    background-color var(--duration) var(--ease-out),
    transform var(--duration-lg) var(--ease-out);
  cursor: default;
}

.use-case-card:hover {
  border-color: oklch(0.75 0.18 145 / 0.3);
  background: var(--color-surface-2);
  transform: translateY(-2px);
}

.use-case-icon {
  font-size: 2rem;
  margin-bottom: var(--sp-4);
}

.use-case-card h3 {
  font-size: var(--text-lg);
  font-weight: 700;
  margin-bottom: var(--sp-2);
}

.use-case-card p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

/* ─── Machines Grid / Product Cards ──────────────────────────────────────── */
.machines-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-6);
}

.machine-card {
  position: relative;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  will-change: transform;
  transition:
    border-color var(--duration-lg) var(--ease-out),
    box-shadow   var(--duration-lg) var(--ease-out),
    transform    var(--duration-lg) var(--ease-spring);
}

.machine-card:hover {
  border-color: oklch(0.75 0.18 145 / 0.4);
  box-shadow:
    0 0 0 1px oklch(0.75 0.18 145 / 0.1),
    var(--glow-primary),
    0 24px 48px oklch(0 0 0 / 0.5);
  transform: translateY(-8px) scale(1.01);
}

.machine-card-badge {
  position: absolute;
  top: var(--sp-4);
  left: var(--sp-4);
  z-index: 2;
}

.machine-card-image {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 280px;
  background: radial-gradient(ellipse 80% 70% at 50% 60%, oklch(0.18 0 0) 0%, oklch(0.12 0 0) 100%);
  overflow: hidden;
}

.machine-card-image img {
  height: 260px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  transition: transform var(--duration-lg) var(--ease-out);
}

.machine-card:hover .machine-card-image img { transform: scale(1.05); }

.machine-card-body {
  padding: var(--sp-5);
}

.machine-card-brand {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: var(--sp-1);
}

.machine-card-name {
  font-size: var(--text-xl);
  font-weight: 700;
  margin-bottom: var(--sp-2);
}

.machine-card-desc {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.6;
  margin-bottom: var(--sp-4);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.machine-card-meta {
  display: flex;
  gap: var(--sp-3);
  flex-wrap: wrap;
  margin-bottom: var(--sp-5);
}

.machine-meta-item {
  display: flex;
  align-items: center;
  gap: var(--sp-1);
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}

.machine-card-price {
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: var(--sp-4);
}

.machine-card-actions {
  display: flex;
  gap: var(--sp-3);
}

/* ─── Stats Row ──────────────────────────────────────────────────────────── */
.stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-6);
}

.stat-card {
  text-align: center;
  padding: var(--sp-8) var(--sp-6);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
}

.stat-value {
  font-size: clamp(var(--text-3xl), 4vw, var(--text-5xl));
  font-weight: 900;
  color: var(--color-primary);
  line-height: 1;
  margin-bottom: var(--sp-2);
}

.stat-label {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: var(--sp-1);
}

.stat-desc {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}

/* ─── CTA Banner ─────────────────────────────────────────────────────────── */
.cta-banner {
  position: relative;
  overflow: hidden;
  padding: var(--sp-16) var(--sp-8);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-2xl);
  text-align: center;
}

.cta-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 60% at 50% 50%, oklch(0.75 0.18 145 / 0.07) 0%, transparent 70%);
  pointer-events: none;
}

.cta-banner-title {
  font-size: clamp(var(--text-2xl), 4vw, var(--text-4xl));
  font-weight: 800;
  margin-bottom: var(--sp-4);
}

.cta-banner-text {
  font-size: var(--text-lg);
  color: var(--color-text-muted);
  max-width: 560px;
  margin-inline: auto;
  margin-bottom: var(--sp-8);
  line-height: 1.7;
}

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

/* ─── Feature Cards / Icon List ──────────────────────────────────────────── */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-5);
}

.feature-card {
  padding: var(--sp-6);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  transition:
    border-color var(--duration) var(--ease-out),
    transform var(--duration-lg) var(--ease-out);
}
.feature-card:hover {
  border-color: oklch(0.75 0.18 145 / 0.25);
  transform: translateY(-2px);
}

.feature-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px; height: 48px;
  background: var(--color-primary-bg);
  border-radius: var(--radius-lg);
  color: var(--color-primary);
  margin-bottom: var(--sp-4);
}

.feature-card h3 {
  font-size: var(--text-base);
  font-weight: 700;
  margin-bottom: var(--sp-2);
}

.feature-card p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.6;
}

/* ─── Section Header ─────────────────────────────────────────────────────── */
.section-header {
  margin-bottom: var(--sp-12);
}

.section-header.centered { text-align: center; }
.section-header.centered .section-eyebrow { margin-inline: auto; }
.section-header.centered .section-subtitle { margin-inline: auto; }

/* ─── Page Hero (inner pages) ────────────────────────────────────────────── */
.page-hero {
  padding-top: calc(var(--header-h) + var(--sp-16));
  padding-bottom: var(--sp-16);
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  position: relative;
  overflow: hidden;
}

.page-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 0%, oklch(0.75 0.18 145 / 0.06) 0%, transparent 70%);
  pointer-events: none;
}

.page-hero-inner { position: relative; z-index: 1; }
.page-hero-eyebrow { margin-bottom: var(--sp-3); }
.page-hero-title { margin-bottom: var(--sp-4); }
.page-hero-subtitle { font-size: var(--text-lg); color: var(--color-text-muted); max-width: 640px; line-height: 1.7; }

/* ─── Accordion ──────────────────────────────────────────────────────────── */
.accordion-item {
  border-bottom: 1px solid var(--color-border);
}

.accordion-trigger {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  padding: var(--sp-5) 0;
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--color-text);
  background: transparent;
  text-align: left;
  gap: var(--sp-4);
}

.accordion-icon {
  flex-shrink: 0;
  color: var(--color-text-muted);
  transition: transform var(--duration) var(--ease-out), color var(--duration) var(--ease-out);
}

.accordion-trigger[aria-expanded="true"] .accordion-icon {
  transform: rotate(45deg);
  color: var(--color-primary);
}

.accordion-content {
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.35s var(--ease-out);
}

.accordion-content.is-open { max-height: 1000px; }

.accordion-body {
  padding-bottom: var(--sp-5);
  color: var(--color-text-muted);
  font-size: var(--text-sm);
  line-height: 1.7;
}

/* ─── Form Styles ─────────────────────────────────────────────────────────── */
.form-group { display: flex; flex-direction: column; gap: var(--sp-2); }
.form-label { font-size: var(--text-sm); font-weight: 600; color: var(--color-text); }
.form-label .required { color: var(--color-primary); margin-left: 2px; }

.form-input,
.form-textarea,
.form-select {
  width: 100%;
  padding: var(--sp-3) var(--sp-4);
  background: var(--color-surface-2);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  color: var(--color-text);
  font-size: var(--text-sm);
  transition:
    border-color var(--duration) var(--ease-out),
    box-shadow var(--duration) var(--ease-out);
}

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

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px oklch(0.75 0.18 145 / 0.12);
}

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

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

/* Multi-step contact form */
.contact-form-wrap {
  max-width: 640px;
  margin-inline: auto;
}

.form-progress {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  margin-bottom: var(--sp-8);
}

.form-step-dot {
  width: 32px; height: 32px;
  border-radius: 50%;
  border: 2px solid var(--color-border);
  background: transparent;
  color: var(--color-text-muted);
  font-size: var(--text-sm);
  font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  transition: all var(--duration) var(--ease-out);
  flex-shrink: 0;
}

.form-step-dot.active {
  border-color: var(--color-primary);
  background: var(--color-primary);
  color: var(--color-bg);
}

.form-step-dot.done {
  border-color: var(--color-primary);
  background: oklch(0.75 0.18 145 / 0.15);
  color: var(--color-primary);
}

.form-step-line {
  flex: 1;
  height: 2px;
  background: var(--color-border);
  border-radius: 2px;
  transition: background var(--duration) var(--ease-out);
}

.form-step-line.active { background: var(--color-primary); }

.form-step { display: none; }
.form-step.active { display: block; }

.form-option-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-3);
}

.form-option-btn {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  padding: var(--sp-4) var(--sp-5);
  background: var(--color-surface);
  border: 2px solid var(--color-border);
  border-radius: var(--radius-xl);
  color: var(--color-text);
  font-size: var(--text-sm);
  font-weight: 500;
  text-align: left;
  cursor: pointer;
  transition: all var(--duration) var(--ease-out);
}

.form-option-btn:hover { border-color: oklch(0.75 0.18 145 / 0.4); background: var(--color-surface-2); }
.form-option-btn.selected {
  border-color: var(--color-primary);
  background: var(--color-primary-bg);
  color: var(--color-text);
}
.form-option-btn .form-option-icon { color: var(--color-primary); flex-shrink: 0; }

.form-nav { display: flex; gap: var(--sp-3); justify-content: space-between; margin-top: var(--sp-6); }
.form-success { text-align: center; padding: var(--sp-12); }
.form-success-icon { font-size: 3rem; color: var(--color-primary); margin-bottom: var(--sp-4); }

/* ─── ROI Calculator ─────────────────────────────────────────────────────── */
.roi-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-8);
  align-items: start;
}

.roi-inputs {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-2xl);
  padding: var(--sp-8);
}

.roi-output {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-2xl);
  padding: var(--sp-8);
}

.roi-slider-group { margin-bottom: var(--sp-6); }

.roi-slider-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--sp-3);
  font-size: var(--text-sm);
  font-weight: 600;
}

.roi-slider-value {
  color: var(--color-primary);
  font-weight: 700;
}

/* Range slider */
input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 4px;
  background: var(--color-surface-3);
  border-radius: 2px;
  outline: none;
  cursor: pointer;
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--color-primary);
  border: 2px solid var(--color-bg);
  box-shadow: 0 0 8px var(--color-glow);
  cursor: pointer;
}

input[type="range"]::-moz-range-thumb {
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--color-primary);
  border: 2px solid var(--color-bg);
  cursor: pointer;
}

.roi-result-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--sp-4) 0;
  border-bottom: 1px solid var(--color-border);
  font-size: var(--text-sm);
}

.roi-result-row:last-child { border-bottom: none; }
.roi-result-label { color: var(--color-text-muted); }
.roi-result-val { font-weight: 700; color: var(--color-text); }
.roi-result-row.highlight .roi-result-val { color: var(--color-primary); font-size: var(--text-xl); }

/* ─── Tabs ───────────────────────────────────────────────────────────────── */
.tabs-list {
  display: flex;
  gap: var(--sp-1);
  border-bottom: 1px solid var(--color-border);
  margin-bottom: var(--sp-6);
  overflow-x: auto;
  scrollbar-width: none;
}
.tabs-list::-webkit-scrollbar { display: none; }

.tab-btn {
  padding: var(--sp-3) var(--sp-5);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text-muted);
  background: transparent;
  border-bottom: 2px solid transparent;
  transition: color var(--duration) var(--ease-out), border-color var(--duration) var(--ease-out);
  white-space: nowrap;
  cursor: pointer;
  border-radius: var(--radius) var(--radius) 0 0;
}

.tab-btn:hover { color: var(--color-text); }
.tab-btn.active { color: var(--color-primary); border-bottom-color: var(--color-primary); }

.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* ─── Animate on Scroll ──────────────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  filter: blur(6px);
  will-change: opacity, transform, filter;
  transition:
    opacity     var(--duration-xl) var(--ease-out),
    transform   var(--duration-xl) var(--ease-out),
    filter      var(--duration-xl) var(--ease-out);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

/* Staggered delays — longer spacing for cinematic feel */
.reveal-delay-1 { transition-delay: 0.12s; }
.reveal-delay-2 { transition-delay: 0.24s; }
.reveal-delay-3 { transition-delay: 0.36s; }
.reveal-delay-4 { transition-delay: 0.48s; }
.reveal-delay-5 { transition-delay: 0.60s; }

/* ─── Timeline ───────────────────────────────────────────────────────────── */
.timeline {
  position: relative;
  padding-left: var(--sp-10);
}

.timeline::before {
  content: '';
  position: absolute;
  left: 16px; top: 0; bottom: 0;
  width: 2px;
  background: var(--color-border);
}

.timeline-item {
  position: relative;
  margin-bottom: var(--sp-8);
}

.timeline-dot {
  position: absolute;
  left: calc(-1 * var(--sp-10) + 8px);
  top: 4px;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--color-primary);
  border: 3px solid var(--color-bg);
  box-shadow: 0 0 8px var(--color-glow);
}

.timeline-year {
  font-size: var(--text-xs);
  font-weight: 700;
  color: var(--color-primary);
  letter-spacing: 0.05em;
  margin-bottom: var(--sp-1);
}

.timeline-title {
  font-size: var(--text-base);
  font-weight: 700;
  margin-bottom: var(--sp-1);
}

.timeline-text {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.6;
}

/* ─── Team / Values Cards ────────────────────────────────────────────────── */
.values-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--sp-5);
}

.value-card {
  padding: var(--sp-6);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
}

.value-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px; height: 48px;
  background: var(--color-primary-bg);
  border-radius: var(--radius-lg);
  color: var(--color-primary);
  margin-bottom: var(--sp-4);
}

.value-card h3 { font-size: var(--text-lg); font-weight: 700; margin-bottom: var(--sp-2); }
.value-card p  { font-size: var(--text-sm); color: var(--color-text-muted); line-height: 1.6; }

/* ─── Certifications ─────────────────────────────────────────────────────── */
.certs-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--sp-4);
}

.cert-card {
  text-align: center;
  padding: var(--sp-6) var(--sp-4);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
}

.cert-icon {
  font-size: 2rem;
  color: var(--color-primary);
  margin-bottom: var(--sp-3);
}

.cert-name {
  font-size: var(--text-sm);
  font-weight: 700;
  line-height: 1.3;
}

/* ─── Process Steps ──────────────────────────────────────────────────────── */
.process-steps {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: var(--sp-4);
  position: relative;
}

.process-steps::before {
  content: '';
  position: absolute;
  top: 28px; left: 10%; right: 10%;
  height: 2px;
  background: linear-gradient(90deg, var(--color-border) 0%, var(--color-primary) 50%, var(--color-border) 100%);
}

.process-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding-top: var(--sp-4);
}

.process-step-num {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--color-surface);
  border: 2px solid var(--color-primary);
  color: var(--color-primary);
  font-size: var(--text-xl);
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--sp-4);
  position: relative;
  z-index: 1;
}

.process-step-title { font-size: var(--text-sm); font-weight: 700; margin-bottom: var(--sp-1); }
.process-step-text  { font-size: var(--text-xs); color: var(--color-text-muted); line-height: 1.5; }

/* ─── Machine Filter Bar ─────────────────────────────────────────────────── */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
  margin-bottom: var(--sp-8);
}

.filter-btn {
  padding: var(--sp-2) var(--sp-4);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text-muted);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--duration) var(--ease-out);
}

.filter-btn:hover { color: var(--color-text); border-color: oklch(0.75 0.18 145 / 0.3); }
.filter-btn.active {
  color: var(--color-bg);
  background: var(--color-primary);
  border-color: var(--color-primary);
}

/* ─── Machine Detail Page ─────────────────────────────────────────────────── */
.machine-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-12);
  align-items: start;
  padding-top: var(--sp-8);
}

.machine-detail-gallery {
  position: sticky;
  top: calc(var(--header-h) + var(--sp-8));
}

.machine-detail-image {
  background: var(--color-surface-2);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-2xl);
  padding: var(--sp-8);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 420px;
}

.machine-detail-image img {
  max-height: 380px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
}

.machine-detail-info {}
.machine-detail-brand {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: var(--sp-2);
}

.machine-detail-name { font-size: clamp(var(--text-2xl), 3vw, var(--text-4xl)); font-weight: 800; margin-bottom: var(--sp-4); }
.machine-detail-desc { font-size: var(--text-base); color: var(--color-text-muted); line-height: 1.7; margin-bottom: var(--sp-6); }

.machine-specs-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-3);
  margin-bottom: var(--sp-6);
}

.spec-item {
  padding: var(--sp-3) var(--sp-4);
  background: var(--color-surface-2);
  border-radius: var(--radius);
}

.spec-label { font-size: var(--text-xs); color: var(--color-text-muted); margin-bottom: var(--sp-1); }
.spec-value { font-size: var(--text-sm); font-weight: 600; }

.machine-features-list { margin-bottom: var(--sp-6); }
.machine-features-list li {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-3);
  padding: var(--sp-2) 0;
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  border-bottom: 1px solid var(--color-border);
}
.machine-features-list li:last-child { border-bottom: none; }
.machine-features-list .feat-icon { color: var(--color-primary); flex-shrink: 0; margin-top: 2px; }

.single-inquiry-wrap { margin-top: var(--sp-6); }
.inquiry-note { font-size: var(--text-xs); color: var(--color-text-muted); margin-top: var(--sp-2); text-align: center; }

/* ─── Comparison Table ───────────────────────────────────────────────────── */
.comparison-table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--text-sm);
}

.comparison-table th {
  text-align: left;
  padding: var(--sp-3) var(--sp-4);
  background: var(--color-surface-2);
  color: var(--color-text-muted);
  font-weight: 600;
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border-bottom: 2px solid var(--color-border);
}

.comparison-table td {
  padding: var(--sp-4);
  border-bottom: 1px solid var(--color-border);
  color: var(--color-text-muted);
  vertical-align: middle;
}

.comparison-table tbody tr:hover td { background: var(--color-surface-2); }
.comparison-table .check-yes { color: var(--color-primary); }
.comparison-table .check-no  { color: oklch(0.5 0 0); }

/* ─── Einsatzbereiche ────────────────────────────────────────────────────── */
.usecase-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-12);
  align-items: center;
  padding-block: var(--sp-16);
  border-bottom: 1px solid var(--color-border);
}

.usecase-section:last-of-type { border-bottom: none; }
.usecase-section.reverse { direction: rtl; }
.usecase-section.reverse > * { direction: ltr; }

.usecase-icon-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 80px; height: 80px;
  background: var(--color-primary-bg);
  border: 1px solid oklch(0.75 0.18 145 / 0.2);
  border-radius: var(--radius-2xl);
  font-size: 2.5rem;
  margin-bottom: var(--sp-5);
}

.usecase-benefits { margin-bottom: var(--sp-5); }
.usecase-benefits li {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-2);
  padding: var(--sp-2) 0;
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}
.usecase-benefits .ok { color: var(--color-primary); flex-shrink: 0; }

.usecase-stats {
  display: flex;
  gap: var(--sp-4);
}

.usecase-stat {
  padding: var(--sp-4) var(--sp-5);
  background: var(--color-surface-2);
  border-radius: var(--radius-xl);
  text-align: center;
}
.usecase-stat .stat-n { font-size: var(--text-xl); font-weight: 800; color: var(--color-primary); }
.usecase-stat .stat-t { font-size: var(--text-xs); color: var(--color-text-muted); margin-top: var(--sp-1); }

.usecase-image-placeholder {
  aspect-ratio: 4/3;
  background: var(--color-surface-2);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-2xl);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 5rem;
  color: var(--color-text-muted);
}

/* ─── Footer ─────────────────────────────────────────────────────────────── */
.site-footer {
  background: var(--color-surface);
  border-top: 1px solid var(--color-border);
  margin-top: 0;
}

.footer-inner { padding-block: var(--sp-16) var(--sp-8); }

.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
  gap: var(--sp-8);
  padding-bottom: var(--sp-12);
  border-bottom: 1px solid var(--color-border);
}

.footer-brand {}

.footer-brand .custom-logo-link img,
.footer-brand .site-name-logo {
  height: 36px;
  width: auto;
  margin-bottom: var(--sp-4);
  display: block;
}

.footer-tagline {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.7;
  max-width: 280px;
  margin-bottom: var(--sp-5);
}

.footer-contact {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.9;
  font-style: normal;
  margin-bottom: var(--sp-5);
}

.footer-contact a { color: var(--color-text-muted); }
.footer-contact a:hover { color: var(--color-primary); }

.footer-social { display: flex; gap: var(--sp-3); }
.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px; height: 36px;
  background: var(--color-surface-2);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  color: var(--color-text-muted);
  transition: all var(--duration) var(--ease-out);
}
.social-link:hover { color: var(--color-primary); border-color: oklch(0.75 0.18 145 / 0.3); background: var(--color-primary-bg); }

.footer-nav-title {
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--color-text-muted);
  margin-bottom: var(--sp-4);
}

.footer-nav-list { display: flex; flex-direction: column; gap: var(--sp-2); }
.footer-nav-list a {
  font-size: var(--text-sm);
  color: oklch(0.55 0 0);
  transition: color var(--duration) var(--ease-out);
}
.footer-nav-list a:hover { color: var(--color-text); }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: var(--sp-6);
}

.footer-copyright { font-size: var(--text-xs); color: var(--color-text-muted); }

/* ─── 404 Page ───────────────────────────────────────────────────────────── */
.error-page {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 80vh;
  text-align: center;
  padding: var(--sp-8);
}

.error-code {
  font-size: clamp(6rem, 20vw, 12rem);
  font-weight: 900;
  line-height: 1;
  background: linear-gradient(135deg, var(--color-primary) 0%, oklch(0.85 0.12 160) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: var(--sp-4);
}

/* ─── Responsive ─────────────────────────────────────────────────────────── */

/* ── 1024px ── */
@media (max-width: 1024px) {
  .footer-top { grid-template-columns: 1fr 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .process-steps { grid-template-columns: repeat(3, 1fr); }
  .process-steps::before { display: none; }
  .certs-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ── 768px ── */
@media (max-width: 768px) {
  :root { --header-h: 60px; }

  .primary-nav, .header-cta { display: none; }
  .mobile-menu-toggle { display: flex; }

  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .machines-grid  { grid-template-columns: 1fr; }
  .use-cases-grid { grid-template-columns: repeat(2, 1fr); }
  .features-grid  { grid-template-columns: repeat(2, 1fr); }
  .stats-row      { grid-template-columns: 1fr; }
  .values-grid    { grid-template-columns: 1fr; }
  .problem-solution { grid-template-columns: 1fr; }
  .usecase-section  { grid-template-columns: 1fr; }
  .usecase-section.reverse { direction: ltr; }
  .machine-detail   { grid-template-columns: 1fr; }
  .machine-detail-gallery { position: static; }
  .roi-wrap         { grid-template-columns: 1fr; }
  .form-option-grid { grid-template-columns: 1fr; }
  .form-grid-2      { grid-template-columns: 1fr; }
  .process-steps    { grid-template-columns: repeat(2, 1fr); }
  .hero-trust-grid  { grid-template-columns: repeat(2, 1fr); }
  .comparison-table { font-size: var(--text-xs); }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-bottom { flex-direction: column; gap: var(--sp-3); text-align: center; }
}

/* ── 480px ── */
@media (max-width: 480px) {
  .use-cases-grid { grid-template-columns: 1fr; }
  .features-grid  { grid-template-columns: 1fr; }
  .certs-grid     { grid-template-columns: 1fr 1fr; }
  .hero-actions   { flex-direction: column; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .cta-banner-actions { flex-direction: column; }
  .footer-top { grid-template-columns: 1fr; }
  .machine-specs-grid { grid-template-columns: 1fr; }
  .usecase-stats { flex-direction: column; }
  .process-steps { grid-template-columns: 1fr; }
}

/* ─── Print ──────────────────────────────────────────────────────────────── */
@media print {
  .site-header, .site-footer, .hero-actions, .cta-banner-actions { display: none; }
  body { background: #fff; color: #000; }
}

/* ─── Premium / Apple-Style Additions ───────────────────────────────────── */

/* Ambient section light — drop one of these classes on any <section> */
.ambient-green {
  position: relative;
  isolation: isolate;
}
.ambient-green::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 50% at 50% 0%,
    oklch(0.75 0.18 145 / 0.07) 0%,
    transparent 70%);
  pointer-events: none;
  z-index: 0;
}
.ambient-green > * { position: relative; z-index: 1; }

.ambient-subtle {
  position: relative;
  isolation: isolate;
}
.ambient-subtle::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 100% 60% at 50% 100%,
    oklch(0.75 0.18 145 / 0.04) 0%,
    transparent 60%);
  pointer-events: none;
  z-index: 0;
}
.ambient-subtle > * { position: relative; z-index: 1; }

/* Large display text — for marketing headlines Apple-style */
.display-text {
  font-size: clamp(3.5rem, 10vw, 8rem);
  font-weight: 900;
  line-height: 1.0;
  letter-spacing: -0.05em;
}

/* Section title refinement */
.section-title {
  font-size: clamp(var(--text-3xl), 5vw, var(--text-6xl));
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.06;
  margin-bottom: var(--sp-4);
}

/* Refined stat card — larger numbers, more breathing room */
.stat-card {
  padding: var(--sp-10) var(--sp-8);
}
.stat-value {
  font-size: clamp(var(--text-4xl), 5vw, var(--text-6xl));
  letter-spacing: -0.04em;
}

/* Image hover — universal scale for any img inside a container */
.img-hover {
  overflow: hidden;
  border-radius: var(--radius-xl);
}
.img-hover img {
  transition: transform var(--duration-lg) var(--ease-out);
  will-change: transform;
}
.img-hover:hover img { transform: scale(1.04); }

/* Gradient separator line — Apple uses these between sections */
.gradient-line {
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg,
    transparent 0%,
    var(--color-border) 20%,
    oklch(0.75 0.18 145 / 0.3) 50%,
    var(--color-border) 80%,
    transparent 100%);
  margin-block: 0;
}

/* Floating label — for eyebrow text above section titles */
.eyebrow-float {
  display: block;
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: var(--sp-3);
}

/* Prose — for long text blocks (about/service pages) */
.prose {
  font-size: var(--text-lg);
  line-height: 1.75;
  color: var(--color-text-muted);
  max-width: 68ch;
}
.prose p + p { margin-top: var(--sp-4); }
.prose strong { color: var(--color-text); font-weight: 600; }

/* Hero subtitle override — slightly larger, lighter */
.hero-subtitle {
  font-size: clamp(var(--text-lg), 2.2vw, var(--text-2xl));
  font-weight: 400;
  color: oklch(0.72 0 0);
  line-height: 1.6;
  max-width: 560px;
  margin-bottom: var(--sp-8);
  letter-spacing: -0.01em;
}

/* Smooth page-level fade on load */
@keyframes page-in {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}
.site-content-wrap {
  animation: page-in 0.5s var(--ease-out) both;
}

/* Nav link micro-interaction — Apple-style underline slide */
.nav-list a {
  position: relative;
}
.nav-list a::after {
  content: '';
  position: absolute;
  bottom: 4px; left: var(--sp-3); right: var(--sp-3);
  height: 1px;
  background: var(--color-primary);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform var(--duration) var(--ease-spring);
}
.nav-list a:hover::after,
.nav-list .current-menu-item a::after { transform: scaleX(1); }

/* Section transitions — reduce motion if user prefers */
@media (prefers-reduced-motion: reduce) {
  .reveal { filter: none; transition-duration: 0.01ms !important; }
  .btn, .machine-card, .card { transition-duration: 0.01ms !important; }
  .site-content-wrap { animation: none; }
}
