/* =========================================================================
   Webstackers: shared design system
   Glassmorphism × Frutiger Aero × fresh digital growth
   Light-to-dark hybrid · Aqua / Green / Cyan
   ========================================================================= */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700&family=Plus+Jakarta+Sans:wght@400;500;600&display=swap');

:root {
  /* Neutrals: ice white to deep navy */
  --bg:           oklch(98% 0.008 220);
  --bg-tint:      oklch(96% 0.018 220);
  --bg-deep:      oklch(22% 0.06 240);
  --bg-deeper:    oklch(15% 0.05 250);

  --surface:      rgba(255, 255, 255, 0.55);
  --surface-soft: rgba(255, 255, 255, 0.38);
  --surface-dark: rgba(18, 32, 58, 0.45);
  --surface-darker: rgba(10, 22, 44, 0.62);

  --fg:           oklch(22% 0.04 245);
  --fg-soft:      oklch(35% 0.04 245);
  --fg-light:     oklch(98% 0.01 220);
  --fg-light-soft: oklch(82% 0.03 220);

  --muted:        oklch(50% 0.03 235);
  --muted-light:  oklch(75% 0.025 230);

  --border:       rgba(20, 50, 100, 0.10);
  --border-strong: rgba(20, 50, 100, 0.18);
  --border-glass: rgba(255, 255, 255, 0.55);
  --border-glass-dark: rgba(255, 255, 255, 0.12);

  /* Accent: single primary, used sparingly */
  --accent:       oklch(68% 0.13 218);   /* aqua blue: primary */
  --accent-deep:  oklch(54% 0.16 220);
  --accent-soft:  oklch(88% 0.08 215);

  /* Secondary signal: fresh green (used for status / success / metric) */
  --signal:       oklch(72% 0.18 158);
  --signal-soft:  oklch(90% 0.10 155);

  /* Tertiary highlight: glossy cyan (decorative, very sparing) */
  --highlight:    oklch(85% 0.12 195);

  /* Effect tokens */
  --glow-aqua:    0 0 80px oklch(75% 0.18 215 / 0.45);
  --glow-green:   0 0 60px oklch(75% 0.2 158 / 0.35);
  --gloss-top:    inset 0 1px 0 rgba(255, 255, 255, 0.8);
  --gloss-edge:   inset 0 0 0 1px rgba(255, 255, 255, 0.35);
  --shadow-glass: 0 8px 14px -10px rgba(20, 50, 100, 0.28), 0 1px 3px rgba(20, 50, 100, 0.08);
  --shadow-card:  0 12px 15px -10px rgba(20, 50, 100, 0.38);

  /* Type */
  --font-display: 'Outfit', 'Söhne', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --font-body:    'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'SF Pro Text', system-ui, sans-serif;
  --font-mono:    'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

  /* Radius */
  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 22px;
  --r-xl: 28px;
  --r-2xl: 30px;
  --r-pill: 999px;

  /* Spacing rhythm */
  --space-section: clamp(72px, 10vw, 140px);

  /* Motion */
  --ease-glass: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-lift: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-expo: cubic-bezier(0.19, 1, 0.22, 1);
}

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

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  color: var(--fg);
  background: var(--bg);
  background-image:
    radial-gradient(ellipse 1200px 600px at 10% -10%, oklch(88% 0.08 200 / 0.5), transparent 60%),
    radial-gradient(ellipse 1000px 500px at 90% -5%, oklch(85% 0.10 165 / 0.35), transparent 65%),
    radial-gradient(ellipse 1400px 700px at 50% 110%, oklch(75% 0.10 218 / 0.25), transparent 60%);
  background-attachment: fixed;
  min-height: 100vh;
  overflow-x: hidden;
  text-wrap: pretty;
}

img, svg, video { display: block; max-width: 100%; }
picture { display: block; max-width: 100%; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
a { color: inherit; text-decoration: none; }
input, textarea, select { font: inherit; color: inherit; }
input, textarea, select, button { max-width: 100%; }

::selection { background: var(--accent); color: white; }

:where(a, button, input, textarea, select, [tabindex]):focus-visible {
  outline: 3px solid oklch(76% 0.14 215 / 0.78);
  outline-offset: 3px;
}

:where(.btn, .nav-links a, .nav-burger, .language-toggle, .mobile-menu-close, .mobile-menu a, .card-link):focus-visible {
  border-radius: var(--r-pill);
}

/* -------------------------------------------------------------------------
   Typography
   ------------------------------------------------------------------------- */
.display, h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--fg);
  text-wrap: balance;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-deep);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.eyebrow::before {
  content: "";
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--signal);
  box-shadow: 0 0 12px var(--signal);
}

.lead {
  font-size: clamp(17px, 1.4vw, 20px);
  line-height: 1.55;
  color: var(--fg-soft);
  max-width: 58ch;
}

.subtle { color: var(--muted); }
.muted-num { font-variant-numeric: tabular-nums; }

/* -------------------------------------------------------------------------
   Layout
   ------------------------------------------------------------------------- */
.wrap {
  width: min(1240px, 100% - 48px);
  margin-inline: auto;
}
.wrap-narrow {
  width: min(880px, 100% - 48px);
  margin-inline: auto;
}

section {
  padding-block: var(--space-section);
}

.section-dark {
  background: linear-gradient(180deg,
    var(--bg-deep) 0%,
    var(--bg-deeper) 100%);
  color: var(--fg-light);
  position: relative;
  overflow: hidden;
}
.section-dark::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 800px 400px at 20% 30%, oklch(60% 0.18 215 / 0.25), transparent 60%),
    radial-gradient(ellipse 700px 400px at 80% 70%, oklch(65% 0.16 165 / 0.18), transparent 65%);
  pointer-events: none;
}
.section-dark > * { position: relative; }
.section-dark h1, .section-dark h2, .section-dark h3 { color: var(--fg-light); }
.section-dark .lead, .section-dark .subtle { color: var(--fg-light-soft); }
.section-dark .eyebrow { color: var(--highlight); }

/* -------------------------------------------------------------------------
   Navigation
   ------------------------------------------------------------------------- */
.nav {
  position: fixed;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  width: min(1240px, calc(100% - 36px));
  z-index: 100;
  padding: 12px 14px 12px 22px;
  display: flex;
  align-items: center;
  gap: 16px;
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(28px) saturate(160%);
  -webkit-backdrop-filter: blur(28px) saturate(160%);
  border: 1px solid var(--border-glass);
  border-radius: var(--r-pill);
  box-shadow: var(--shadow-glass), var(--gloss-top);
  transition: transform 0.4s var(--ease-glass), background 0.3s var(--ease-glass), box-shadow 0.3s var(--ease-glass);
}
.nav.is-scrolled {
  transform: translateX(-50%) translateY(-6px);
  background: rgba(255, 255, 255, 0.75);
}
.nav-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 17px;
  letter-spacing: -0.01em;
  color: var(--fg);
}
.nav-logo svg { width: 28px; height: 28px; }

.nav-links {
  display: flex;
  gap: 4px;
  margin-left: auto;
  list-style: none;
}
.nav-links a {
  display: inline-block;
  padding: 9px 14px;
  border-radius: var(--r-pill);
  font-size: 14.5px;
  font-weight: 500;
  letter-spacing: -0.005em;
  color: var(--fg-soft);
  transition: background 0.2s, color 0.2s;
}
.nav-links a:hover { background: rgba(20, 50, 100, 0.06); color: var(--fg); }
.nav-links a.is-active {
  color: var(--fg);
  background: rgba(20, 50, 100, 0.07);
}

.nav-cta {
  padding: 10px 18px;
  border-radius: var(--r-pill);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.005em;
}

.language-toggle {
  min-width: 46px;
  min-height: 40px;
  padding: 0 13px;
  border-radius: var(--r-pill);
  border: 1px solid rgba(20, 50, 100, 0.12);
  background: rgba(255, 255, 255, 0.48);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.08em;
  transition: background 0.22s var(--ease-glass), border-color 0.22s var(--ease-glass), transform 0.22s var(--ease-glass);
}
.language-toggle:hover {
  background: rgba(255, 255, 255, 0.76);
  border-color: rgba(20, 50, 100, 0.22);
  transform: translateY(-1px);
}
.language-toggle:active { transform: translateY(1px) scale(0.98); }
.language-toggle[aria-pressed="true"] {
  background: color-mix(in oklch, var(--accent-soft) 50%, white);
  border-color: color-mix(in oklch, var(--accent-deep) 22%, transparent);
  color: var(--accent-deep);
}
.nav-language-toggle {
  flex: 0 0 auto;
}

.nav-burger {
  display: none;
  width: 40px; height: 40px;
  border-radius: var(--r-pill);
  background: rgba(20, 50, 100, 0.05);
  align-items: center;
  justify-content: center;
  transition: background 0.2s var(--ease-glass), transform 0.2s var(--ease-glass);
}
.nav-burger:hover,
.nav-burger[aria-expanded="true"] { background: rgba(20, 50, 100, 0.10); }
.nav-burger:active { transform: scale(0.96); }

@media (max-width: 880px) {
  body { background-attachment: scroll; }
  .nav { padding: 10px 12px 10px 18px; }
  .nav-links { display: none; }
  .nav-burger { display: inline-flex; }
  .nav-cta.nav-cta-desktop { display: none; }
}

/* Mobile menu drawer */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(10, 22, 44, 0.55);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s var(--ease-glass), visibility 0s linear 0.3s;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.mobile-menu.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition-delay: 0s;
}
.mobile-menu a {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--fg-light);
  padding: 12px 24px;
  border-radius: var(--r-pill);
  transition: background 0.2s var(--ease-glass), transform 0.2s var(--ease-glass);
}
.mobile-menu a:hover { background: rgba(255, 255, 255, 0.10); transform: translateY(-1px); }
.mobile-menu .btn { margin-top: 24px; }
.mobile-language-toggle {
  margin-top: 14px;
  min-width: 76px;
  min-height: 46px;
  border-color: rgba(255, 255, 255, 0.20);
  background: rgba(255, 255, 255, 0.12);
  color: var(--fg-light);
}
.mobile-language-toggle:hover {
  background: rgba(255, 255, 255, 0.20);
  border-color: rgba(255, 255, 255, 0.34);
}
.mobile-language-toggle[aria-pressed="true"] {
  background: rgba(255, 255, 255, 0.22);
  color: white;
}
.mobile-menu-close {
  position: absolute;
  top: 28px; right: 28px;
  width: 48px; height: 48px;
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.12);
  color: white;
  display: grid; place-items: center;
  transition: background 0.2s var(--ease-glass), transform 0.2s var(--ease-glass);
}
.mobile-menu-close:hover { background: rgba(255, 255, 255, 0.18); }
.mobile-menu-close:active { transform: scale(0.96); }
body.menu-open { overflow: hidden; }

/* -------------------------------------------------------------------------
   Buttons
   ------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 24px;
  min-height: 44px;
  border-radius: var(--r-pill);
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.005em;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
  transition: transform 0.22s var(--ease-lift), box-shadow 0.3s var(--ease-glass), background 0.25s var(--ease-glass), opacity 0.2s var(--ease-glass);
  will-change: transform;
}
.btn:active { transform: translateY(1px) scale(0.98); }
.btn:disabled,
.btn[aria-disabled="true"] {
  cursor: not-allowed;
  opacity: 0.58;
  transform: none !important;
  box-shadow: var(--gloss-top) !important;
}
.btn[aria-busy="true"] { cursor: progress; }

.btn-primary {
  background: linear-gradient(180deg,
    oklch(74% 0.15 215) 0%,
    oklch(60% 0.16 222) 100%);
  color: white;
  box-shadow:
    var(--gloss-top),
    0 1px 0 oklch(40% 0.16 225) inset,
    0 10px 30px -8px oklch(60% 0.18 215 / 0.5),
    0 2px 6px -1px oklch(50% 0.16 220 / 0.4);
}
.btn-primary::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; height: 50%;
  background: linear-gradient(180deg, rgba(255,255,255,0.35), rgba(255,255,255,0));
  border-radius: var(--r-pill) var(--r-pill) 0 0;
  pointer-events: none;
}
.btn-primary::after {
  content: "";
  position: absolute;
  top: 0; left: -100%;
  width: 80%; height: 100%;
  background: linear-gradient(110deg, transparent 40%, rgba(255,255,255,0.45) 50%, transparent 60%);
  transition: left 0.7s var(--ease-glass);
}
.btn-primary:hover::after { left: 130%; }
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow:
    var(--gloss-top),
    0 1px 0 oklch(40% 0.16 225) inset,
    0 18px 40px -10px oklch(60% 0.18 215 / 0.6),
    0 4px 10px -2px oklch(50% 0.16 220 / 0.5);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  color: var(--fg);
  border: 1px solid var(--border-strong);
  box-shadow: var(--gloss-top);
}
.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.85);
  transform: translateY(-2px);
}

.btn-dark {
  background: oklch(22% 0.06 245);
  color: white;
  box-shadow: var(--gloss-top), 0 8px 20px -8px rgba(0,0,0,0.3);
}
.btn-dark:hover { transform: translateY(-2px); background: oklch(28% 0.06 245); }

.btn-arrow svg { transition: transform 0.3s var(--ease-lift); }
.btn-arrow:hover svg { transform: translateX(4px); }

/* -------------------------------------------------------------------------
   Glass panels
   ------------------------------------------------------------------------- */
.glass {
  background: var(--surface);
  backdrop-filter: blur(24px) saturate(150%);
  -webkit-backdrop-filter: blur(24px) saturate(150%);
  border: 1px solid var(--border-glass);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-glass), var(--gloss-edge);
  position: relative;
}
.glass::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 50%;
  border-radius: var(--r-xl) var(--r-xl) 0 0;
  background: linear-gradient(180deg, rgba(255,255,255,0.4), transparent);
  pointer-events: none;
}

.glass-soft {
  background: var(--surface-soft);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid var(--border-glass);
  border-radius: var(--r-lg);
}

.glass-dark {
  background: var(--surface-dark);
  backdrop-filter: blur(22px) saturate(140%);
  -webkit-backdrop-filter: blur(22px) saturate(140%);
  border: 1px solid var(--border-glass-dark);
  border-radius: var(--r-xl);
}

/* -------------------------------------------------------------------------
   Hero
   ------------------------------------------------------------------------- */
.hero {
  position: relative;
  padding-top: clamp(140px, 16vw, 200px);
  padding-bottom: clamp(80px, 10vw, 140px);
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: clamp(40px, 5vw, 72px);
  align-items: center;
}
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; gap: 56px; }
}

.hero-title {
  font-size: clamp(40px, 5.6vw, 72px);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.02;
  color: var(--fg);
}
.hero-title em {
  font-style: normal;
  color: var(--accent-deep);
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.7);
  display: inline-block;
}

.hero-sub {
  margin-top: 24px;
  font-size: clamp(17px, 1.4vw, 19px);
  line-height: 1.6;
  color: var(--fg-soft);
  max-width: 56ch;
}

.hero-cta-row {
  margin-top: 36px;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  align-items: center;
}

.hero-trust {
  margin-top: 32px;
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 13.5px;
  color: var(--muted);
}
.hero-trust-avatars {
  display: flex;
}
.hero-trust-avatars span {
  width: 32px; height: 32px;
  border-radius: 50%;
  border: 2px solid white;
  margin-left: -8px;
  background: linear-gradient(135deg, var(--accent-soft), var(--accent));
  display: inline-block;
}
.hero-trust-avatars span:first-child { margin-left: 0; }
.hero-trust-avatars span:nth-child(2) { background: linear-gradient(135deg, var(--signal-soft), var(--signal)); }
.hero-trust-avatars span:nth-child(3) { background: linear-gradient(135deg, oklch(88% 0.08 250), oklch(60% 0.16 250)); }
.hero-trust-avatars span:nth-child(4) { background: linear-gradient(135deg, oklch(90% 0.08 195), var(--highlight)); }

/* Hero visual: floating cards composition */
.hero-visual {
  position: relative;
  aspect-ratio: 1 / 1.05;
  max-height: 620px;
}

.hero-bubbles {
  position: absolute;
  inset: -10%;
  pointer-events: none;
  z-index: 0;
}
.bubble {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%,
    rgba(255,255,255,0.9),
    oklch(75% 0.13 215 / 0.5) 40%,
    oklch(55% 0.16 220 / 0.2) 70%,
    transparent);
  filter: blur(0.5px);
  animation: float 12s ease-in-out infinite;
}

.hero-card {
  --motion-x: 0px;
  --motion-y: 0px;
  --enter-delay: 0ms;
  position: absolute;
  padding: 18px 20px;
  border-radius: var(--r-lg);
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  border: 1px solid var(--border-glass);
  box-shadow: var(--shadow-glass), var(--gloss-top);
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  font-weight: 500;
  color: var(--fg);
  white-space: nowrap;
  transform: translate3d(var(--motion-x), var(--motion-y), 0);
  transition: transform 0.6s var(--ease-glass), box-shadow 0.45s var(--ease-lift);
  will-change: transform;
  z-index: 2;
}
.hero-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; height: 50%;
  border-radius: var(--r-lg) var(--r-lg) 0 0;
  background: linear-gradient(180deg, rgba(255,255,255,0.5), transparent);
  pointer-events: none;
}

.hero-card-icon {
  width: 36px; height: 36px;
  border-radius: 10px;
  display: grid; place-items: center;
  flex-shrink: 0;
  color: white;
}
.hero-card-meta {
  font-size: 11.5px;
  font-family: var(--font-mono);
  color: var(--muted);
  letter-spacing: 0.05em;
  margin-top: 2px;
}

/* Hero preview frame */
.hero-frame {
  --motion-x: 0px;
  --motion-y: 0px;
  --tilt-y: -6deg;
  --tilt-x: 4deg;
  position: absolute;
  top: 14%;
  left: 50%;
  transform: translateX(-50%) translate3d(var(--motion-x), var(--motion-y), 0) perspective(1200px) rotateY(var(--tilt-y)) rotateX(var(--tilt-x));
  width: 78%;
  aspect-ratio: 4 / 3;
  border-radius: var(--r-xl);
  background: linear-gradient(180deg, rgba(255,255,255,0.85), rgba(255,255,255,0.55));
  backdrop-filter: blur(28px) saturate(160%);
  -webkit-backdrop-filter: blur(28px) saturate(160%);
  border: 1px solid var(--border-glass);
  box-shadow: var(--shadow-card), var(--gloss-top), 0 0 0 1px rgba(255,255,255,0.4) inset;
  overflow: hidden;
  z-index: 1;
}
.hero-frame-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(255,255,255,0.9), rgba(255,255,255,0.4));
}
.hero-frame-bar i {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: oklch(85% 0.02 220);
}
.hero-frame-bar i:nth-child(1) { background: oklch(75% 0.15 30); }
.hero-frame-bar i:nth-child(2) { background: oklch(80% 0.14 80); }
.hero-frame-bar i:nth-child(3) { background: oklch(75% 0.16 145); }
.hero-frame-bar .url {
  margin-left: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.02em;
}
.hero-frame-body {
  padding: 18px;
  display: grid;
  gap: 10px;
}
.hero-frame-head {
  height: 18px;
  border-radius: 6px;
  background: linear-gradient(90deg, var(--accent-soft), transparent 70%);
  width: 70%;
}
.hero-frame-row {
  height: 8px;
  border-radius: 4px;
  background: oklch(90% 0.015 220);
}
.hero-frame-row.short { width: 55%; }
.hero-frame-row.mid { width: 80%; }
.hero-frame-grid {
  margin-top: 8px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.hero-frame-tile {
  aspect-ratio: 4 / 3;
  border-radius: 8px;
  background: linear-gradient(135deg, oklch(92% 0.04 215), oklch(85% 0.08 200));
}
.hero-frame-tile:nth-child(2) { background: linear-gradient(135deg, oklch(92% 0.06 165), oklch(82% 0.12 158)); }
.hero-frame-tile:nth-child(3) { background: linear-gradient(135deg, oklch(92% 0.06 195), oklch(82% 0.10 195)); }

.hero-card-1 { --enter-delay: 120ms; }
.hero-card-2 { --enter-delay: 200ms; }
.hero-card-3 { --enter-delay: 280ms; }
.hero-card-4 { --enter-delay: 360ms; }
.hero-card-5 { --enter-delay: 440ms; }

.hero-visual.is-motion-ready .hero-frame {
  animation: heroFrameAssemble 950ms var(--ease-expo) both;
}

.hero-visual.is-motion-ready .hero-card {
  animation: heroCardAssemble 820ms var(--ease-expo) both;
  animation-delay: var(--enter-delay);
}

/* -------------------------------------------------------------------------
   Floating bubbles + ambient background motion
   ------------------------------------------------------------------------- */
@keyframes heroFrameAssemble {
  0% {
    opacity: 0;
    transform: translateX(-50%) translate3d(calc(var(--motion-x) - 10px), calc(var(--motion-y) + 26px), 0) perspective(1200px) rotateY(calc(var(--tilt-y) - 8deg)) rotateX(calc(var(--tilt-x) + 5deg)) scale(0.975);
  }
  100% {
    opacity: 1;
    transform: translateX(-50%) translate3d(var(--motion-x), var(--motion-y), 0) perspective(1200px) rotateY(var(--tilt-y)) rotateX(var(--tilt-x)) scale(1);
  }
}

@keyframes heroCardAssemble {
  0% {
    opacity: 0;
    transform: translate3d(var(--motion-x), calc(var(--motion-y) + 22px), 0) scale(0.94);
  }
  100% {
    opacity: 1;
    transform: translate3d(var(--motion-x), var(--motion-y), 0) scale(1);
  }
}

@keyframes float {
  0%, 100% { transform: translateY(0) translateX(0) scale(1); }
  33% { transform: translateY(-20px) translateX(8px) scale(1.05); }
  66% { transform: translateY(10px) translateX(-8px) scale(0.98); }
}

@keyframes shimmer {
  0% { background-position: 200% 50%; }
  100% { background-position: -200% 50%; }
}

@keyframes drift {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

.bg-orbs {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}
.bg-orbs .orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.5;
  animation: float 16s ease-in-out infinite;
}
.bg-orbs .orb.o1 { width: 420px; height: 420px; top: -80px; left: -120px;
  background: oklch(75% 0.16 200);
}
.bg-orbs .orb.o2 { width: 380px; height: 380px; top: 30%; right: -100px;
  background: oklch(78% 0.18 158); animation-delay: -4s;
}
.bg-orbs .orb.o3 { width: 460px; height: 460px; bottom: -120px; left: 30%;
  background: oklch(70% 0.14 220); animation-delay: -8s;
}

/* -------------------------------------------------------------------------
   Card grid (services, value props, etc.)
   ------------------------------------------------------------------------- */
.card {
  --tilt-x: 0deg;
  --tilt-y: 0deg;
  --lift-y: 0px;
  --press-scale: 1;
  --glow-x: 50%;
  --glow-y: 0%;
  position: relative;
  padding: 28px;
  border-radius: var(--r-xl);
  background: rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(20px) saturate(150%);
  -webkit-backdrop-filter: blur(20px) saturate(150%);
  border: 1px solid var(--border-glass);
  box-shadow: var(--shadow-glass), var(--gloss-top);
  transform: perspective(900px) rotateY(var(--tilt-x)) rotateX(var(--tilt-y)) translateY(var(--lift-y)) scale(var(--press-scale));
  transition: transform 0.45s var(--ease-expo), box-shadow 0.45s var(--ease-lift), background 0.45s var(--ease-lift);
  overflow: hidden;
  will-change: transform;
}
.card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.9), transparent);
}
.card::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at var(--glow-x) var(--glow-y), rgba(255,255,255,0.58), transparent 36%);
  opacity: 0;
  transition: opacity 0.45s var(--ease-lift);
}
.card > * {
  position: relative;
  z-index: 1;
}
.card:hover {
  --lift-y: -4px;
  box-shadow: var(--shadow-card), var(--gloss-top);
}
.card:hover::after { opacity: 0.55; }

.card-icon {
  width: 48px; height: 48px;
  border-radius: 14px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, oklch(85% 0.12 215), oklch(65% 0.16 220));
  color: white;
  margin-bottom: 18px;
  box-shadow: var(--gloss-top), 0 6px 18px -4px oklch(60% 0.16 215 / 0.4);
}
.card-icon.green {
  background: linear-gradient(135deg, oklch(88% 0.14 158), oklch(65% 0.18 158));
  box-shadow: var(--gloss-top), 0 6px 18px -4px oklch(60% 0.18 158 / 0.4);
}
.card-icon.cyan {
  background: linear-gradient(135deg, oklch(88% 0.10 195), oklch(68% 0.13 195));
  box-shadow: var(--gloss-top), 0 6px 18px -4px oklch(60% 0.13 195 / 0.4);
}
.card-icon.navy {
  background: linear-gradient(135deg, oklch(40% 0.10 245), oklch(22% 0.06 250));
}

.card-title {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--fg);
}
.card-desc {
  margin-top: 8px;
  font-size: 15px;
  color: var(--fg-soft);
  line-height: 1.55;
}
.card-link {
  margin-top: 18px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  color: var(--accent-deep);
}
.card-link svg { transition: transform 0.3s var(--ease-lift); }
.card:hover .card-link svg { transform: translateX(4px); }

/* -------------------------------------------------------------------------
   Reveal on scroll
   ------------------------------------------------------------------------- */
.reveal {
  opacity: 1;
  transform: none;
}
html.reveal-ready .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s var(--ease-glass), transform 0.7s var(--ease-glass);
}
html.reveal-ready .reveal.is-visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.08s; }
.reveal-delay-2 { transition-delay: 0.16s; }
.reveal-delay-3 { transition-delay: 0.24s; }
.reveal-delay-4 { transition-delay: 0.32s; }
.reveal-delay-5 { transition-delay: 0.40s; }

/* -------------------------------------------------------------------------
   Magnetic cursor follower
   ------------------------------------------------------------------------- */
.cursor-glow {
  position: fixed;
  width: 380px; height: 380px;
  border-radius: 50%;
  pointer-events: none;
  z-index: -1;
  background: radial-gradient(circle, oklch(75% 0.16 215 / 0.22), transparent 60%);
  transform: translate(-50%, -50%);
  transition: transform 0.18s ease-out, opacity 0.4s;
  opacity: 0;
  mix-blend-mode: multiply;
}
@media (hover: hover) {
  .cursor-glow { opacity: 1; }
}

/* -------------------------------------------------------------------------
   Section headers
   ------------------------------------------------------------------------- */
.section-head {
  display: grid;
  gap: 14px;
  margin-bottom: 56px;
  max-width: 720px;
}
.section-head h2 {
  font-size: clamp(30px, 3.6vw, 46px);
  letter-spacing: -0.025em;
}
.section-head.center {
  text-align: center;
  margin-inline: auto;
}

/* -------------------------------------------------------------------------
   Footer
   ------------------------------------------------------------------------- */
.footer {
  padding: 80px 0 40px;
  position: relative;
  overflow: hidden;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 40px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--border-glass-dark);
}
@media (max-width: 760px) {
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer-brand { grid-column: 1 / -1; }
}

.footer-brand p {
  margin-top: 16px;
  font-size: 14.5px;
  color: var(--fg-light-soft);
  max-width: 36ch;
  line-height: 1.6;
}
.footer h4 {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--highlight);
  margin-bottom: 18px;
}
.footer ul { list-style: none; display: grid; gap: 10px; }
.footer ul a {
  font-size: 14.5px;
  color: var(--fg-light-soft);
  transition: color 0.2s;
}
.footer ul a:hover { color: var(--fg-light); }

.footer-bottom {
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 13px;
  color: var(--muted-light);
  font-family: var(--font-mono);
  letter-spacing: 0.02em;
}

/* -------------------------------------------------------------------------
   Utilities
   ------------------------------------------------------------------------- */
.divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-strong), transparent);
  margin-block: 24px;
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: var(--r-pill);
  font-size: 12px;
  font-weight: 500;
  font-family: var(--font-mono);
  letter-spacing: 0.04em;
  background: rgba(255,255,255,0.7);
  border: 1px solid var(--border-glass);
  color: var(--accent-deep);
}
.pill.signal { color: oklch(40% 0.18 158); }
.pill.signal::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--signal);
  box-shadow: 0 0 10px var(--signal);
}

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
@media (max-width: 860px) {
  .grid-3, .grid-4 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .grid-3, .grid-2, .grid-4 { grid-template-columns: 1fr; }
  .wrap,
  .wrap-narrow { width: min(100% - 32px, 1240px); }
  .hero { padding-top: 118px; }
  .hero-cta-row .btn,
  .cta-banner .btn { width: 100%; }
}

/* -------------------------------------------------------------------------
   Phone layout hardening
   ------------------------------------------------------------------------- */
@media (max-width: 700px) {
  :root {
    --space-section: clamp(56px, 15vw, 82px);
    --r-lg: 18px;
    --r-xl: 22px;
    --r-2xl: 24px;
  }

  html,
  body {
    width: 100%;
    max-width: 100%;
  }

  body {
    background-image:
      radial-gradient(ellipse 520px 340px at 10% -8%, oklch(88% 0.08 200 / 0.42), transparent 68%),
      radial-gradient(ellipse 420px 300px at 100% 4%, oklch(85% 0.10 165 / 0.28), transparent 70%);
  }

  .wrap,
  .wrap-narrow {
    width: min(100% - 28px, 1240px);
  }

  section {
    padding-block: var(--space-section);
  }

  .nav {
    top: max(10px, env(safe-area-inset-top));
    width: min(100% - 24px, 1240px);
    padding: 9px 10px 9px 14px;
    gap: 10px;
  }

  .nav-logo {
    min-width: 0;
    max-width: calc(100vw - 112px);
    gap: 8px;
    font-size: 16px;
  }

  .nav-logo svg {
    width: 26px;
    height: 26px;
    flex: 0 0 auto;
  }

  .nav-burger {
    width: 44px;
    height: 44px;
    margin-left: auto;
  }

  .language-toggle {
    min-width: 44px;
    min-height: 44px;
  }

  .mobile-menu {
    padding:
      max(72px, calc(64px + env(safe-area-inset-top)))
      max(18px, env(safe-area-inset-right))
      max(28px, env(safe-area-inset-bottom))
      max(18px, env(safe-area-inset-left));
    align-items: stretch;
    justify-content: center;
    overflow-y: auto;
  }

  .mobile-menu a {
    width: 100%;
    min-height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: clamp(24px, 8vw, 32px);
    padding: 9px 16px;
    text-align: center;
  }

  .mobile-menu .btn {
    margin-top: 18px;
    font-size: 15px;
  }

  .mobile-menu-close {
    top: max(16px, env(safe-area-inset-top));
    right: max(16px, env(safe-area-inset-right));
    width: 46px;
    height: 46px;
  }

  .display,
  h1,
  h2,
  h3,
  h4 {
    overflow-wrap: anywhere;
  }

  .lead {
    font-size: 16.5px;
    line-height: 1.58;
    max-width: 100%;
  }

  .eyebrow {
    font-size: 10.5px;
    line-height: 1.35;
    letter-spacing: 0.1em;
    max-width: 100%;
    flex-wrap: wrap;
  }

  .hero {
    padding-top: calc(104px + env(safe-area-inset-top));
    padding-bottom: 58px;
  }

  .hero-grid {
    gap: 38px;
  }

  .hero-title {
    font-size: clamp(34px, 11.5vw, 44px);
    line-height: 1.04;
    letter-spacing: -0.025em;
  }

  .hero-sub {
    margin-top: 18px;
    font-size: 16px;
    line-height: 1.58;
  }

  .hero-cta-row {
    margin-top: 26px;
    gap: 10px;
  }

  .hero-cta-row .btn,
  .cta-banner .btn,
  .price-cta,
  .contact-form .btn,
  .request-form .btn,
  .portal-form-actions .btn {
    width: 100%;
  }

  .hero-trust {
    margin-top: 22px;
    align-items: flex-start;
    gap: 12px;
    font-size: 12.5px;
  }

  .hero-trust-avatars {
    flex: 0 0 auto;
  }

  .hero-visual {
    aspect-ratio: 1 / 0.92;
    max-height: none;
    min-height: 330px;
    margin-inline: -4px;
  }

  .hero-bubbles {
    inset: -4%;
    opacity: 0.78;
  }

  .hero-frame {
    top: 6%;
    width: min(88%, 360px);
    transform: translateX(-50%) perspective(900px) rotateY(-3deg) rotateX(2deg);
    border-radius: var(--r-lg);
  }

  .hero-frame-body {
    padding: 14px;
  }

  .hero-frame-grid {
    gap: 6px;
  }

  .hero-card {
    max-width: calc(100vw - 42px);
    padding: 12px 14px;
    gap: 10px;
    font-size: 12.5px;
    white-space: normal;
    border-radius: 16px;
  }

  .hero-card-icon {
    width: 32px;
    height: 32px;
    border-radius: 9px;
  }

  .hero-card-meta {
    font-size: 10px;
    letter-spacing: 0.04em;
  }

  .card,
  .package-card,
  .price-card,
  .monthly-card,
  .contact-form,
  .side-card,
  .request-form,
  .portal-card,
  .portal-login-panel,
  .portal-module,
  .why-item,
  .process-step {
    padding: 20px;
    border-radius: var(--r-lg);
  }

  .card:hover,
  .package-card:hover,
  .price-card:hover,
  .monthly-card:hover,
  .process-step:hover {
    transform: none;
  }

  .card-title {
    font-size: 20px;
  }

  .card-desc,
  .pkg-includes li {
    font-size: 14.5px;
  }

  .section-head {
    gap: 12px;
    margin-bottom: 34px;
  }

  .section-head.center {
    text-align: left;
  }

  .section-head h2 {
    font-size: clamp(28px, 9vw, 36px);
    letter-spacing: -0.02em;
  }

  .btn {
    min-height: 48px;
    padding: 13px 18px;
    white-space: normal;
    text-align: center;
  }

  .pill {
    max-width: 100%;
    white-space: normal;
    line-height: 1.3;
  }

  .grid-3,
  .grid-2,
  .grid-4 {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .cta-banner {
    grid-template-columns: 1fr !important;
    padding: 28px !important;
    gap: 22px !important;
    text-align: left !important;
    border-radius: var(--r-xl) !important;
  }

  .cta-banner .cta-actions,
  .cta-banner > div:last-child {
    width: 100%;
    align-items: stretch !important;
  }

  .footer {
    padding: 58px 0 30px;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 28px;
    padding-bottom: 34px;
  }

  .footer-brand {
    grid-column: auto;
  }

  .footer-bottom {
    display: grid;
    gap: 10px;
    font-size: 12px;
    line-height: 1.45;
  }
}

@media (max-width: 430px) {
  .wrap,
  .wrap-narrow {
    width: min(100% - 24px, 1240px);
  }

  .nav {
    width: min(100% - 18px, 1240px);
  }

  .hero-title {
    font-size: clamp(32px, 10.8vw, 40px);
  }

  .hero-visual {
    min-height: 300px;
  }

  .hero-card {
    padding: 11px 12px;
  }

  .card,
  .package-card,
  .price-card,
  .monthly-card,
  .contact-form,
  .side-card,
  .request-form,
  .portal-card,
  .portal-login-panel,
  .portal-module,
  .why-item,
  .process-step {
    padding: 18px;
  }
}

@media (max-width: 360px) {
  .wrap,
  .wrap-narrow {
    width: min(100% - 20px, 1240px);
  }

  .nav-logo {
    font-size: 15px;
  }

  .hero-title {
    font-size: 31px;
  }

  .hero-card {
    font-size: 12px;
  }
}

/* Print-safe: no animation when prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  body { background-attachment: scroll; }
  .cursor-glow { display: none; }
  .reveal { opacity: 1 !important; transform: none !important; }
}
