/* ==========================================================
   JACK / DESIGN — black + blue, modern sans
   ========================================================== */

:root {
  --bg: #0a0a0b;
  --bg-2: #0f1012;
  --bg-3: #16171a;
  --surface: #1a1c20;
  --surface-2: #232529;

  --text: #ffffff;
  --text-2: #b4b7bd;
  --text-3: #71757c;
  --text-4: #4a4d54;

  --border: rgba(255, 255, 255, 0.08);
  --border-2: rgba(255, 255, 255, 0.14);
  --border-strong: rgba(255, 255, 255, 0.22);

  --blue: #4d7cfe;
  --blue-bright: #5b8def;
  --blue-glow: #3b82f6;
  --blue-soft: rgba(77, 124, 254, 0.12);
  --blue-soft-2: rgba(77, 124, 254, 0.22);

  --green: #4ade80;

  --font: "Geist", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --font-mono: "Geist Mono", ui-monospace, monospace;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);

  --container: 1280px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: initial;
}

html,
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

html.lenis,
html.lenis body {
  height: auto;
}

.lenis.lenis-smooth {
  scroll-behavior: auto !important;
}

.lenis.lenis-smooth [data-lenis-prevent] {
  overscroll-behavior: contain;
}

.lenis.lenis-stopped {
  overflow: hidden;
}

.lenis.lenis-smooth iframe {
  pointer-events: none;
}

@media (hover: hover) and (pointer: fine) {

  *,
  *::before,
  *::after {
    cursor: none !important;
  }

}

a {
  color: inherit;
  text-decoration: none;
}

img,
svg {
  display: block;
  max-width: 100%;
}

button {
  font: inherit;
  border: none;
  background: none;
  color: inherit;
}

::selection {
  background: var(--blue);
  color: white;
}

/* ============ CURSOR ============ */
.cursor {
  position: fixed;
  top: 0;
  left: 0;
  width: 14px;
  height: 14px;
  background: rgba(77, 124, 254, 0.9);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate3d(-50%, -50%, 0);
  box-shadow: 0 0 12px rgba(77, 124, 254, 0.5);
  transition:
    width    0.35s cubic-bezier(0.34, 1.2, 0.64, 1),
    height   0.35s cubic-bezier(0.34, 1.2, 0.64, 1),
    opacity  0.3s,
    background 0.3s,
    box-shadow 0.3s;
  will-change: transform;
}

.cursor.is-hover {
  width: 44px;
  height: 44px;
  background: rgba(77, 124, 254, 0.15);
  box-shadow: 0 0 0 1.5px rgba(77, 124, 254, 0.6), 0 0 20px rgba(77, 124, 254, 0.2);
}

.cursor.is-hidden {
  opacity: 0;
}

@media (hover: none),
(pointer: coarse) {
  .cursor {
    display: none;
  }
}

/* ============ NAVIGATION ============ */
.nav {
  position: fixed;
  top: max(16px, env(safe-area-inset-top, 16px));
  left: 50%;
  transform: translateX(-50%);
  z-index: 80;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0;
  pointer-events: none;
  transition: top 0.5s var(--ease), transform 0.5s var(--ease);
  width: max-content;
  max-width: calc(100vw - 32px);
}

.nav>* {
  pointer-events: auto;
}

.nav.is-scrolled {
  top: max(10px, env(safe-area-inset-top, 10px));
}

/* ── Iridescent border ring ── */
.nav__pill {
  position: relative;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  /* Very transparent so the page content shows through */
  background: rgba(255, 255, 255, 0.045);
  backdrop-filter: blur(20px) saturate(180%) brightness(1.12) contrast(0.96);
  -webkit-backdrop-filter: blur(20px) saturate(180%) brightness(1.12) contrast(0.96);
  /* Border built from a pseudo so we can animate it */
  border: none;
  outline: 1px solid rgba(255, 255, 255, 0.11);
  outline-offset: 0;
  overflow: visible;
  isolation: isolate;
  box-shadow:
    /* crisp top specular edge */
    0 1.5px 0 0 rgba(255, 255, 255, 0.22) inset,
    /* subtle left edge light */
    1px 0 0 0 rgba(255, 255, 255, 0.07) inset,
    /* bottom edge deepening */
    0 -1px 0 0 rgba(0, 0, 0, 0.35) inset,
    /* diffuse outer shadow */
    0 20px 48px -8px rgba(0, 0, 0, 0.55),
    0 6px 18px -3px rgba(0, 0, 0, 0.38),
    /* outer ring glow */
    0 0 0 0.5px rgba(255, 255, 255, 0.07);
  transition:
    transform 0.45s var(--ease),
    box-shadow 0.45s var(--ease),
    background 0.45s,
    outline-color 0.45s;
  --gx: 50%;
  --gy: 0%;
}

/* Logo + menu pills: static border, no continuous repaint */
.nav__pill--logo::before,
.nav__pill--menu::before {
  animation: none;
}

/* Iridescent prismatic border — conic gradient ring */
.nav__pill::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: conic-gradient(
    from var(--border-angle, 0deg) at 50% 0%,
    rgba(255, 255, 255, 0.0) 0deg,
    rgba(120, 170, 255, 0.30) 60deg,
    rgba(255, 255, 255, 0.45) 120deg,
    rgba(180, 140, 255, 0.20) 180deg,
    rgba(255, 255, 255, 0.12) 240deg,
    rgba(100, 200, 255, 0.25) 300deg,
    rgba(255, 255, 255, 0.0) 360deg
  );
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  z-index: -1;
  opacity: 0.65;
  transition: opacity 0.4s;
  animation: border-spin 6s steps(24, end) infinite;
}

@keyframes border-spin {
  to { --border-angle: 360deg; }
}

@property --border-angle {
  syntax: "<angle>";
  inherits: false;
  initial-value: 0deg;
}

/* Inner refraction layer — moves with cursor */
.nav__pill::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  /* static top dome + moving specular spot */
  background:
    radial-gradient(
      ellipse 80% 55% at var(--gx, 50%) var(--gy, -10%),
      rgba(255, 255, 255, 0.13) 0%,
      transparent 65%
    ),
    radial-gradient(
      ellipse at top,
      rgba(255, 255, 255, 0.09) 0%,
      transparent 50%
    ),
    /* subtle blue-purple caustic at bottom */
    radial-gradient(
      ellipse 60% 40% at 50% 110%,
      rgba(100, 140, 255, 0.07) 0%,
      transparent 60%
    );
  pointer-events: none;
  z-index: 0;
  transition: opacity 0.3s;
}

/* Slightly denser glass on scroll */
.nav.is-scrolled .nav__pill {
  background: rgba(15, 17, 22, 0.38);
  backdrop-filter: blur(24px) saturate(200%) brightness(1.08) contrast(0.98);
  -webkit-backdrop-filter: blur(24px) saturate(200%) brightness(1.08) contrast(0.98);
  box-shadow:
    0 1.5px 0 0 rgba(255, 255, 255, 0.20) inset,
    0 -1px 0 0 rgba(0, 0, 0, 0.4) inset,
    0 24px 56px -10px rgba(0, 0, 0, 0.65),
    0 8px 22px -4px rgba(0, 0, 0, 0.45),
    0 0 0 0.5px rgba(255, 255, 255, 0.09);
}

/* Hover brightens the glass surface */
.nav__pill:hover::after {
  opacity: 1.2;
}

.nav__pill--logo {
  padding: 8px 16px 8px 10px;
  gap: 10px;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.015em;
  color: var(--text);
}

.nav__pill--logo:hover {
  transform: translateY(-1px);
}

.nav__logo-img {
  height: 22px;
  width: auto;
  display: block;
  filter: brightness(1);
}

.nav__logo-text strong {
  color: var(--blue-bright);
  font-weight: 600;
}

.nav__logo-mark {
  width: 26px;
  height: 26px;
  background: linear-gradient(135deg, var(--blue-bright), var(--blue));
  border-radius: 8px;
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.15) inset, 0 2px 8px rgba(77, 124, 254, 0.5);
}

.nav__logo-mark::before {
  content: "";
  position: absolute;
  inset: 6px 4px 4px 6px;
  background: rgba(15, 17, 22, 0.95);
  border-radius: 50% 50% 50% 2px;
}

.nav__logo-mark::after {
  content: "";
  position: absolute;
  top: 1px;
  left: 4px;
  right: 4px;
  height: 1px;
  background: rgba(255, 255, 255, 0.6);
  border-radius: 1px;
}

.nav__pill--menu {
  position: relative;
  padding: 6px;
  gap: 0;
  display: flex;
}

.nav__link {
  position: relative;
  padding: 9px 18px;
  font-size: 14px;
  font-weight: 450;
  color: var(--text-2);
  border-radius: 999px;
  transition: color 0.3s;
  z-index: 1;
  white-space: nowrap;
}

.nav__link:hover {
  color: var(--text);
}

.nav__link.is-active {
  color: var(--text);
}

/* Active indicator — also a mini liquid glass pill */
.nav__menu-indicator {
  position: absolute;
  top: 6px;
  bottom: 6px;
  left: 0;
  width: 0;
  background: rgba(255, 255, 255, 0.09);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  transition: transform 0.5s var(--ease-spring), width 0.5s var(--ease-spring), opacity 0.3s;
  opacity: 0;
  pointer-events: none;
  z-index: 0;
  box-shadow:
    0 1px 0 0 rgba(255, 255, 255, 0.18) inset,
    0 -1px 0 0 rgba(0, 0, 0, 0.2) inset,
    0 4px 14px -2px rgba(0, 0, 0, 0.3);
}

.nav__menu-indicator.is-visible {
  opacity: 1;
}

/* CTA pill — blue glass, still refraction-aware */
.nav__pill--cta {
  padding: 9px 14px 9px 18px;
  gap: 8px;
  font-size: 14px;
  font-weight: 500;
  color: white;
  background: linear-gradient(
    145deg,
    rgba(100, 155, 255, 0.55) 0%,
    rgba(77, 124, 254, 0.75) 50%,
    rgba(60, 100, 220, 0.65) 100%
  );
  outline-color: rgba(255, 255, 255, 0.22);
  box-shadow:
    0 1.5px 0 0 rgba(255, 255, 255, 0.38) inset,
    0 -1px 0 0 rgba(0, 0, 0, 0.18) inset,
    0 12px 30px -6px rgba(77, 124, 254, 0.60),
    0 4px 12px -2px rgba(77, 124, 254, 0.35),
    0 0 0 0.5px rgba(100, 160, 255, 0.25);
}

.nav__pill--cta::before {
  background: conic-gradient(
    from var(--border-angle, 0deg) at var(--gx, 50%) var(--gy, 0%),
    rgba(255, 255, 255, 0.0) 0deg,
    rgba(200, 220, 255, 0.55) 80deg,
    rgba(255, 255, 255, 0.7) 130deg,
    rgba(160, 200, 255, 0.40) 200deg,
    rgba(255, 255, 255, 0.2) 260deg,
    rgba(200, 220, 255, 0.45) 320deg,
    rgba(255, 255, 255, 0.0) 360deg
  );
  opacity: 0.8;
}

.nav__pill--cta:hover {
  transform: translateY(-2px) scale(1.015);
  box-shadow:
    0 1.5px 0 0 rgba(255, 255, 255, 0.42) inset,
    0 -1px 0 0 rgba(0, 0, 0, 0.18) inset,
    0 18px 36px -6px rgba(77, 124, 254, 0.72),
    0 6px 16px -2px rgba(77, 124, 254, 0.45),
    0 0 0 0.5px rgba(120, 170, 255, 0.35);
}

.nav__pill--cta svg {
  transition: transform 0.4s var(--ease);
}

.nav__pill--cta:hover svg {
  transform: translate(2px, -2px);
}

.nav__pill--burger {
  display: none;
  width: 44px;
  height: 44px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
}

.nav__pill--burger span {
  width: 18px;
  height: 1.5px;
  background: var(--text);
  border-radius: 1px;
  transition: transform 0.3s, opacity 0.3s;
}

/* ============ BUTTONS ============ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 18px;
  font-size: 14px;
  font-weight: 500;
  border-radius: 999px;
  transition: transform 0.3s var(--ease), background 0.3s, color 0.3s, border-color 0.3s, box-shadow 0.3s;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.btn>* {
  position: relative;
  z-index: 1;
}

.btn::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at var(--mx, 50%) var(--my, 50%), rgba(255, 255, 255, 0.15), transparent 50%);
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
  z-index: -1;
}

.btn:hover::after {
  opacity: 1;
}

.btn svg {
  transition: transform 0.4s var(--ease);
}

.btn:hover svg {
  transform: translate(2px, -2px);
}

.btn--lg {
  padding: 16px 28px;
  font-size: 15px;
}

.btn--primary {
  background: var(--blue);
  color: white;
  box-shadow: 0 0 0 0 rgba(77, 124, 254, 0);
}

.btn--primary:hover {
  background: var(--blue-bright);
  box-shadow: 0 12px 32px -8px rgba(77, 124, 254, 0.5);
  transform: translateY(-2px);
}

.btn--primary::after {
  background: radial-gradient(circle at var(--mx, 50%) var(--my, 50%), rgba(255, 255, 255, 0.25), transparent 50%);
}

.btn--ghost {
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  border: 1px solid var(--border-2);
}

.btn--ghost:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: var(--border-strong);
  transform: translateY(-2px);
}

/* ============ HERO ============ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 140px 32px 80px;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.hero__glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 900px;
  height: 900px;
  background: radial-gradient(circle, rgba(77, 124, 254, 0.26) 0%, rgba(77, 124, 254, 0.10) 30%, rgba(77, 124, 254, 0.03) 55%, transparent 70%);
  animation: floatGlow 12s ease-in-out infinite;
}

@keyframes floatGlow {

  0%,
  100% {
    transform: translate(-50%, -50%) scale(1);
  }

  50% {
    transform: translate(-50%, -50%) scale(1.15);
  }
}

.hero__grid {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at center, black 0%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 0%, transparent 75%);
}

.hero__inner {
  position: relative;
  z-index: 1;
  max-width: var(--container);
  width: 100%;
  margin: 0 auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

/* ── Floating glass panels ── */
.hero__glass {
  position: absolute;
  pointer-events: none;
  border-radius: 22px;
  background: linear-gradient(
    135deg,
    rgba(255,255,255,0.075) 0%,
    rgba(255,255,255,0.025) 55%,
    rgba(255,255,255,0.010) 100%
  );
  backdrop-filter: blur(10px) saturate(150%) brightness(1.06);
  -webkit-backdrop-filter: blur(10px) saturate(150%) brightness(1.06);
  box-shadow:
    0 1.5px 0 rgba(255,255,255,0.24) inset,
    1px 0 0 rgba(255,255,255,0.11) inset,
    0 -1px 0 rgba(0,0,0,0.22) inset,
    -1px 0 0 rgba(0,0,0,0.08) inset,
    2px 3px 0 rgba(0,0,0,0.30),
    0 24px 48px -8px rgba(0,0,0,0.45),
    0 0 0 1px rgba(255,255,255,0.08);
  overflow: hidden;
  /* Individual CSS transform property handles JS parallax,
     leaving `transform` free for float animation */
  translate: 0px var(--sy, 0px);
}

/* Prismatic top sheen */
.hero__glass::before {
  content: "";
  position: absolute;
  top: 0; left: 8%; right: 8%;
  height: 1px;
  background: linear-gradient(90deg,
    transparent,
    rgba(255,255,255,0.55) 35%,
    rgba(140,200,255,0.65) 60%,
    transparent);
  pointer-events: none;
}

/* Inner ambient dome light */
.hero__glass::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 55% at 30% -5%, rgba(255,255,255,0.10) 0%, transparent 60%),
    radial-gradient(ellipse 60% 40% at 50% 110%, rgba(77,124,254,0.06) 0%, transparent 55%);
  pointer-events: none;
}

/* Panel 1 — large, top-left, partially off-screen */
.hero__glass--1 {
  width: 420px; height: 240px;
  top: 10%; left: -90px;
  animation: hgFloat1 22s ease-in-out infinite;
}

/* Panel 2 — medium, right side */
.hero__glass--2 {
  width: 280px; height: 165px;
  top: 42%; right: -40px;
  animation: hgFloat2 17s ease-in-out infinite;
}

/* Panel 3 — small, bottom-left */
.hero__glass--3 {
  width: 200px; height: 118px;
  bottom: 16%; left: 5%;
  animation: hgFloat3 14s ease-in-out infinite;
}

@keyframes hgFloat1 {
  0%,100% { transform: rotate(-15deg) translateY(0px); }
  38%     { transform: rotate(-15.6deg) translateY(-24px); }
  68%     { transform: rotate(-14.4deg) translateY(-11px); }
}

@keyframes hgFloat2 {
  0%,100% { transform: rotate(22deg) translateY(0px); }
  30%     { transform: rotate(22.8deg) translateY(-20px); }
  65%     { transform: rotate(21.5deg) translateY(-9px); }
}

@keyframes hgFloat3 {
  0%,100% { transform: rotate(-8deg) translateY(0px); }
  45%     { transform: rotate(-8.7deg) translateY(-16px); }
  72%     { transform: rotate(-7.4deg) translateY(-6px); }
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 16px;
  background: rgba(255,255,255,0.05);
  backdrop-filter: blur(14px) saturate(180%) brightness(1.10);
  -webkit-backdrop-filter: blur(14px) saturate(180%) brightness(1.10);
  border-radius: 999px;
  outline: 1px solid rgba(255,255,255,0.12);
  font-size: 13px;
  color: var(--text-2);
  font-family: var(--font-mono);
  position: relative;
  isolation: isolate;
  box-shadow:
    0 1.5px 0 rgba(255,255,255,0.22) inset,
    0 -1px 0 rgba(0,0,0,0.20) inset,
    0 8px 24px -4px rgba(0,0,0,0.38),
    0 0 0 0.5px rgba(255,255,255,0.06);
}

/* Spinning iridescent border ring — same language as navbar */
.hero__badge::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: conic-gradient(
    from var(--border-angle, 0deg),
    rgba(255,255,255,0.00) 0deg,
    rgba(120,180,255,0.32) 70deg,
    rgba(255,255,255,0.48) 130deg,
    rgba(180,140,255,0.20) 200deg,
    rgba(100,200,255,0.28) 290deg,
    rgba(255,255,255,0.00) 360deg
  );
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  z-index: -1;
  opacity: 0.65;
  animation: border-spin 6s steps(24, end) infinite;
}

.hero__badge-dot {
  width: 6px;
  height: 6px;
  background: var(--blue);
  border-radius: 50%;
  box-shadow: 0 0 12px var(--blue-glow);
  animation: pulseBlue 2s ease-in-out infinite;
}

.hero__title {
  font-size: clamp(40px, 7vw, 96px);
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: -0.04em;
  max-width: 1100px;
}

.hero__title span {
  display: block;
}

.hero__title em {
  font-style: normal;
  background: linear-gradient(135deg, var(--blue-bright) 0%, #8ab4ff 50%, var(--blue) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-weight: 600;
  position: relative;
}

.hero__sub {
  max-width: 640px;
  font-size: clamp(16px, 1.4vw, 19px);
  color: var(--text-2);
  line-height: 1.55;
  margin-top: 8px;
}

.hero__actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 12px;
}

.hero__proof {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-top: 16px;
  padding: 10px 18px 10px 12px;
  background: rgba(255,255,255,0.045);
  backdrop-filter: blur(14px) saturate(180%) brightness(1.06);
  -webkit-backdrop-filter: blur(14px) saturate(180%) brightness(1.06);
  border-radius: 999px;
  outline: 1px solid rgba(255,255,255,0.10);
  position: relative;
  isolation: isolate;
  box-shadow:
    0 1.5px 0 rgba(255,255,255,0.20) inset,
    0 -1px 0 rgba(0,0,0,0.18) inset,
    0 12px 28px -6px rgba(0,0,0,0.40),
    0 0 0 0.5px rgba(255,255,255,0.05);
}

/* Subtle top sheen line */
.hero__proof::before {
  content: "";
  position: absolute;
  top: 0; left: 20%; right: 20%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.40), transparent);
  pointer-events: none;
  border-radius: 1px;
}

.hero__avatars {
  display: flex;
}

.hero__avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--c1), var(--c2));
  border: 2px solid var(--bg);
  margin-right: -10px;
}

.hero__avatar:last-child {
  margin-right: 0;
}

.hero__proof-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  font-size: 12px;
  color: var(--text-3);
}

.hero__proof-text strong {
  color: var(--text);
  font-weight: 500;
}

.hero__scroll-hint {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: 0.15em;
}

.hero__scroll-line {
  width: 1px;
  height: 40px;
  background: var(--border-2);
  position: relative;
  overflow: hidden;
}

.hero__scroll-line::after {
  content: "";
  position: absolute;
  top: -50%;
  left: 0;
  width: 100%;
  height: 50%;
  background: var(--text);
  animation: scrollDown 2.2s ease-in-out infinite;
}

@keyframes scrollDown {
  0% {
    transform: translateY(0);
  }

  100% {
    transform: translateY(300%);
  }
}

/* ============ DATA-REVEAL ============ */
[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}

[data-reveal].is-in {
  opacity: 1;
  transform: translateY(0);
}

/* ============ SCROLL PROGRESS BAR ============ */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--blue) 0%, #8ab4ff 100%);
  transform: scaleX(0);
  transform-origin: left;
  z-index: 9998;
  pointer-events: none;
  box-shadow: 0 0 12px var(--blue-glow);
  transition: transform 0.1s linear;
}

/* ============ LOGOS ============ */
.logos {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 40px 0;
  background: var(--bg-2);
  position: relative;
  overflow: hidden;
}

.logos__label {
  text-align: center;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  margin-bottom: 24px;
}

.logos__track {
  overflow: hidden;
  position: relative;
  mask-image: linear-gradient(90deg, transparent 0, black 10%, black 90%, transparent 100%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0, black 10%, black 90%, transparent 100%);
}

.logos__row {
  display: flex;
  gap: 80px;
  align-items: center;
  white-space: nowrap;
  animation: marquee 35s linear infinite;
  width: max-content;
}

.logo-item {
  font-size: 28px;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--text-3);
  transition: color 0.3s;
  display: inline-flex;
  align-items: baseline;
  gap: 2px;
}

.logo-item:hover {
  color: var(--text);
}

.logo-item small {
  font-size: 0.5em;
  opacity: 0.6;
  margin-left: 2px;
}

.logo-item--mono {
  font-family: var(--font-mono);
  font-weight: 400;
}

.logo-item--script {
  font-style: italic;
  font-weight: 300;
}

@keyframes marquee {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

/* ============ SECTION HEAD ============ */
.section-head {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px;
  margin-bottom: 64px;
}

.section-head--center {
  text-align: center;
}

.section-head--center .section-head__label {
  display: inline-flex;
}

.section-head__label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: var(--blue-soft);
  border: 1px solid var(--blue-soft-2);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--blue-bright);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 24px;
}

.section-head__dot {
  width: 6px;
  height: 6px;
  background: var(--blue);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--blue-glow);
}

.section-head__title {
  font-size: clamp(32px, 5vw, 64px);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.035em;
  max-width: 880px;
}

.section-head--center .section-head__title {
  margin-inline: auto;
}

.section-head__title em {
  font-style: normal;
  background: linear-gradient(135deg, var(--blue-bright), #8ab4ff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.section-head__sub {
  max-width: 600px;
  margin-top: 20px;
  font-size: 17px;
  color: var(--text-2);
  line-height: 1.55;
}

.section-head--center .section-head__sub {
  margin-inline: auto;
}

/* ============ BENTO — Services ============ */
.bento-section {
  padding: 140px 32px 120px;
  background: var(--bg-2);
  position: relative;
}

.bento-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-2), transparent);
}

.bento {
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 16px;
}

/* 3D TILT EFEKT PRE BENTO KARTY */
[data-bento] {
  opacity: 0;
  transform: translateY(40px) scale(0.97);
  transition: opacity 1s var(--ease), transform 1s var(--ease);
  will-change: transform, opacity;
}

[data-bento].is-in {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.bento__card {
  position: relative;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.03) 0%, rgba(255, 255, 255, 0.01) 100%);
  border: 1px solid var(--border);
  border-radius: 28px;
  padding: 32px;
  display: grid;
  grid-template-rows: 1fr auto;
  gap: 24px;
  overflow: hidden;
  min-height: 460px;
  transition: border-color 0.4s, background 0.5s, transform 0.6s var(--ease), box-shadow 0.6s var(--ease);
  contain: paint;
}

.bento__card.is-tilting {
  transition: border-color 0.4s, background 0.5s, transform 0.1s linear, box-shadow 0.1s linear;
  border-color: var(--border-strong);
  box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.6);
  z-index: 10;
  will-change: transform;
}

.bento__card--hero {
  grid-column: span 5;
}

.bento__card--code {
  grid-column: span 3;
}

.bento__card--ecom {
  grid-column: span 3;
}

.bento__card--brand {
  grid-column: span 5;
}

.bento__card::after {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background: radial-gradient(600px circle at var(--mx, 50%) var(--my, 50%), rgba(255, 255, 255, 0.06), transparent 40%);
  opacity: 0;
  transition: opacity 0.5s;
  pointer-events: none;
  z-index: 0;
}

.bento__card:hover::after {
  opacity: 1;
}

.bento__card>* {
  position: relative;
  z-index: 1;
}

.bento__corner {
  position: absolute;
  top: 24px;
  right: 28px;
  display: flex;
  align-items: center;
  gap: 8px;
  z-index: 2;
}

.bento__num {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-3);
  letter-spacing: 0.1em;
}

.bento__dot {
  width: 6px;
  height: 6px;
  background: var(--blue);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--blue-glow);
}

.bento__art {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  background: var(--bg);
  border: 1px solid var(--border);
  min-height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

/* === ART 01: Design === */
.bento__art--design {
  flex-direction: column;
  gap: 16px;
  background: radial-gradient(ellipse at top left, rgba(77, 124, 254, 0.12), transparent 50%), var(--bg);
}

.bento__palette {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  width: 100%;
  max-width: 360px;
}

.bento__swatch {
  aspect-ratio: 1;
  background: var(--c);
  border-radius: 10px;
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: transform 0.4s var(--ease);
}

.bento__card--hero:hover .bento__swatch:nth-child(1) {
  transform: translateY(-6px);
}

.bento__card--hero:hover .bento__swatch:nth-child(2) {
  transform: translateY(-4px);
  transition-delay: 0.05s;
}

.bento__card--hero:hover .bento__swatch:nth-child(3) {
  transform: translateY(-6px);
  transition-delay: 0.1s;
}

.bento__card--hero:hover .bento__swatch:nth-child(4) {
  transform: translateY(-4px);
  transition-delay: 0.15s;
}

.bento__swatch span {
  position: absolute;
  bottom: -22px;
  left: 0;
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--text-3);
  letter-spacing: 0.05em;
  opacity: 0;
  transition: opacity 0.3s;
}

.bento__card--hero:hover .bento__swatch span {
  opacity: 1;
}

.bento__type {
  display: flex;
  align-items: baseline;
  gap: 16px;
  width: 100%;
  max-width: 360px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.bento__type-display {
  font-size: 64px;
  font-weight: 500;
  letter-spacing: -0.05em;
  line-height: 0.9;
  color: var(--text);
  background: linear-gradient(135deg, var(--text) 0%, var(--blue-bright) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.bento__type-meta {
  display: flex;
  flex-direction: column;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-3);
  gap: 2px;
}

/* === ART 02: Code === */
.bento__art--code {
  padding: 0;
  background: #07080a;
}

.bento__terminal {
  width: 100%;
  height: 100%;
  min-height: 220px;
  display: flex;
  flex-direction: column;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}

.bento__card--code:hover .bento__terminal {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.8);
}

.bento__terminal-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.04);
  border-bottom: 1px solid var(--border);
}

.bento__terminal-bar span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
}

.bento__terminal-bar span:nth-child(1) {
  background: #ff5f57;
}

.bento__terminal-bar span:nth-child(2) {
  background: #febc2e;
}

.bento__terminal-bar span:nth-child(3) {
  background: #28c840;
}

.bento__terminal-bar em {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-3);
  margin-left: 8px;
  font-style: normal;
}

.bento__terminal-body {
  flex: 1;
  padding: 16px;
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.7;
  color: var(--text);
}

.bento__terminal-body>div {
  opacity: 0;
  animation: typeIn 0.4s var(--ease) forwards;
}

.bento__card--code.is-in .bento__terminal-body>div:nth-child(1) {
  animation-delay: 0.4s;
}

.bento__card--code.is-in .bento__terminal-body>div:nth-child(2) {
  animation-delay: 0.7s;
}

.bento__card--code.is-in .bento__terminal-body>div:nth-child(3) {
  animation-delay: 0.95s;
}

.bento__card--code.is-in .bento__terminal-body>div:nth-child(4) {
  animation-delay: 1.2s;
}

.bento__card--code.is-in .bento__terminal-body>div:nth-child(5) {
  animation-delay: 1.45s;
}

.bento__card--code.is-in .bento__terminal-body>div:nth-child(6) {
  animation-delay: 1.7s;
}

@keyframes typeIn {
  from {
    opacity: 0;
    transform: translateY(4px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.t-mute {
  color: var(--text-3);
}

.t-blue {
  color: var(--blue-bright);
}

.t-green {
  color: var(--green);
}

.t-cursor em {
  display: inline-block;
  width: 7px;
  height: 14px;
  background: var(--blue-bright);
  vertical-align: middle;
  margin-left: 2px;
  animation: blink 1s steps(2) infinite;
  font-style: normal;
  color: transparent;
}

@keyframes blink {

  0%,
  50% {
    opacity: 1;
  }

  50.01%,
  100% {
    opacity: 0;
  }
}

/* === ART 03: E-commerce === */
.bento__art--ecom {
  background: radial-gradient(ellipse at bottom, rgba(77, 124, 254, 0.18), transparent 60%), var(--bg);
  padding: 16px 16px 0;
  overflow: hidden;
  align-items: flex-end;
}

.bento__phone {
  width: 100%;
  max-width: 200px;
  background: #0d0f14;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 22px 22px 0 0;
  padding: 6px 6px 0;
  position: relative;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.04) inset, 0 20px 40px -10px rgba(0, 0, 0, 0.5);
  transform: translateY(24px);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}

.bento__card--ecom:hover .bento__phone {
  transform: translateY(0) scale(1.02);
  box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.8);
}

.bento__phone-top {
  height: 18px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.bento__phone-notch {
  width: 50px;
  height: 14px;
  background: black;
  border-radius: 999px;
}

.bento__phone-screen {
  background: #16181d;
  border-radius: 14px 14px 0 0;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 11px;
}

.bento__phone-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--border);
}

.bento__phone-row strong {
  font-weight: 500;
  font-size: 13px;
}

.bento__phone-row em {
  font-style: normal;
  color: var(--text-3);
  font-size: 10px;
}

.bento__phone-item {
  display: flex;
  align-items: center;
  gap: 8px;
}

.bento__phone-thumb {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  flex-shrink: 0;
}

.bento__phone-item div {
  flex: 1;
  display: flex;
  flex-direction: column;
  font-size: 10px;
}

.bento__phone-item span {
  font-weight: 500;
}

.bento__phone-item em {
  font-style: normal;
  color: var(--text-3);
  font-size: 9px;
}

.bento__phone-btn {
  margin-top: 4px;
  padding: 8px;
  background: var(--blue);
  border-radius: 8px;
  font-size: 10px;
  font-weight: 500;
  color: white;
  text-align: center;
}

/* === ART 04: Brand === */
.bento__art--brand {
  background: radial-gradient(ellipse at center, rgba(77, 124, 254, 0.1), transparent 60%), var(--bg);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  padding: 20px;
}

.bento__logo {
  aspect-ratio: 1;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  font-size: 28px;
  font-weight: 500;
  letter-spacing: -0.04em;
  transition: transform 0.4s var(--ease);
}

.bento__card--brand:hover .bento__logo:nth-child(1) {
  transform: translateY(-6px);
}

.bento__card--brand:hover .bento__logo:nth-child(2) {
  transform: translateY(-4px);
  transition-delay: 0.05s;
}

.bento__card--brand:hover .bento__logo:nth-child(3) {
  transform: translateY(-6px);
  transition-delay: 0.1s;
}

.bento__card--brand:hover .bento__logo:nth-child(4) {
  transform: translateY(-4px);
  transition-delay: 0.15s;
}

.bento__logo--1 {
  background: linear-gradient(135deg, var(--blue-bright), var(--blue));
  color: white;
}

.bento__logo--1 em {
  font-style: italic;
  font-weight: 300;
  opacity: 0.7;
}

.bento__logo--2 {
  background: #f5f3ee;
  color: #0a0a0a;
}

.bento__logo--2 svg {
  width: 50%;
  height: 50%;
}

.bento__logo--3 {
  background: linear-gradient(135deg, #1a1a1a, #2a2a2a);
  color: var(--blue-bright);
  font-size: 36px;
}

.bento__logo--4 {
  background: #0d0f14;
  border: 1px solid var(--border);
  color: rgba(255,255,255,0.7);
  display: flex;
  align-items: center;
  justify-content: center;
}

.bento__logo--4 svg {
  width: 48px;
  height: 48px;
}

/* ── Security card ── */
.bento__art--security {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  padding: 28px 24px;
  flex: 1;
}

.bento__sec-center {
  position: relative;
  width: 72px;
  height: 72px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.bento__sec-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(77,124,254,0.2);
  animation: secPulse 3s ease-in-out infinite;
}

.bento__sec-ring--outer {
  width: 72px;
  height: 72px;
  animation-delay: 0s;
}

.bento__sec-ring--inner {
  width: 52px;
  height: 52px;
  border-color: rgba(77,124,254,0.35);
  animation-delay: 0.6s;
}

@keyframes secPulse {
  0%, 100% { opacity: 0.4; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.05); }
}

.bento__sec-icon {
  width: 52px;
  height: 52px;
  background: rgba(77,124,254,0.1);
  border: 1px solid rgba(77,124,254,0.25);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
  transition: background 0.3s, border-color 0.3s, box-shadow 0.3s;
}

.bento__card--security:hover .bento__sec-icon {
  background: rgba(77,124,254,0.2);
  border-color: rgba(77,124,254,0.5);
  box-shadow: 0 0 24px rgba(77,124,254,0.3);
}

.bento__sec-tags {
  display: flex;
  flex-direction: column;
  gap: 7px;
  flex: 1;
}

.bento__sec-tag {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--text-2);
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 8px;
  padding: 7px 12px;
  transition: background 0.35s, color 0.35s, border-color 0.35s;
}

.bento__sec-tag-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(77,124,254,0.5);
  flex-shrink: 0;
  transition: background 0.35s, box-shadow 0.35s;
}

.bento__card--security:hover .bento__sec-tag {
  background: rgba(77,124,254,0.08);
  border-color: rgba(77,124,254,0.2);
  color: #a8c0ff;
}

.bento__card--security:hover .bento__sec-tag-dot {
  background: #4d7cfe;
  box-shadow: 0 0 6px rgba(77,124,254,0.7);
}

.bento__sec-tag--1 { transition-delay: 0s; }
.bento__sec-tag--2 { transition-delay: 0.04s; }
.bento__sec-tag--3 { transition-delay: 0.08s; }
.bento__sec-tag--4 { transition-delay: 0.12s; }



.bento__content {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.bento__title {
  font-size: clamp(22px, 2.4vw, 28px);
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 1.15;
}

.bento__desc {
  font-size: 14.5px;
  color: var(--text-2);
  line-height: 1.55;
  max-width: 520px;
}

.bento__tags {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 4px;
}

.bento__tags li {
  font-family: var(--font-mono);
  font-size: 11px;
  padding: 4px 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text-2);
  letter-spacing: 0.02em;
}

/* ============ MANIFEST ============ */
/* ============ MANIFEST — EDITORIAL ROWS ============ */

.manifest {
  position: relative;
  padding: 140px 32px 120px;
  background: var(--bg);
  overflow: hidden;
}

.manifest::after {
  content: "";
  position: absolute;
  top: -100px; right: -200px;
  width: 700px; height: 700px;
  background: radial-gradient(circle, rgba(77,124,254,0.14) 0%, rgba(77,124,254,0.05) 40%, transparent 75%);
  pointer-events: none;
}

.manifest__inner {
  max-width: var(--container);
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

/* ── Badge ── */
.manifest__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: rgba(255,255,255,0.04);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.09);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: 0.10em;
  margin-bottom: 32px;
}

.manifest__badge-dot {
  width: 6px; height: 6px;
  background: var(--blue);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--blue-glow);
  animation: pulseBlue 2s ease-in-out infinite;
}

/* ── Header grid ── */
.manifest__header {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px 80px;
  margin-bottom: 64px;
  align-items: end;
}

.manifest__title {
  font-size: clamp(38px, 5.5vw, 68px);
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 1.02;
}

.manifest__title em {
  font-style: normal;
  background: linear-gradient(135deg, var(--blue-bright), #8ab4ff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-weight: 600;
}

/* Title line-by-line split (JS adds these) */
.manifest__title-line        { display: block; overflow: hidden; }
.manifest__title-line-inner  {
  display: block;
  opacity: 0;
  transform: translateY(100%) skewY(3deg);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.manifest__title-line-inner.is-in { opacity: 1; transform: none; }

.manifest__header-right {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 20px;
}

.manifest__sub {
  font-size: 16px;
  color: var(--text-2);
  line-height: 1.65;
}

.manifest__meta-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.manifest__meta-pill {
  padding: 5px 12px;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 999px;
  font-size: 11px;
  font-family: var(--font-mono);
  color: var(--text-3);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: border-color 0.3s, color 0.3s;
}

.manifest__meta-pill:hover {
  border-color: rgba(255,255,255,0.16);
  color: var(--text-2);
}

/* ── Section divider ── */
.manifest__divider {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 0;
}

.manifest__divider-label {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  white-space: nowrap;
  opacity: 0.6;
}

.manifest__divider-line {
  flex: 1;
  height: 1px;
  background: var(--border);
  transform-origin: left;
  transform: scaleX(0);
  transition: transform 1.1s var(--ease) 0.2s;
}

.manifest__divider.is-in .manifest__divider-line {
  transform: scaleX(1);
}

/* ── Rows container ── */
.manifest__rows {
  margin-top: 0;
}

.manifest__rows-end {
  height: 0.5px;
  background: var(--border);
  transform-origin: left;
  transform: scaleX(0);
  transition: transform 0.9s var(--ease);
}

.manifest__rows-end.is-in {
  transform: scaleX(1);
}

/* ── Single row ── */
.manifest__row {
  --row-delay: 0s;
  position: relative;
  opacity: 0;
  transform: translateY(16px);
  /* content reveal — line draws separately */
}

.manifest__row.is-in {
  opacity: 1;
  transform: translateY(0);
  transition:
    opacity 0.6s var(--ease) calc(var(--row-delay) + 0.15s),
    transform 0.6s var(--ease) calc(var(--row-delay) + 0.15s);
}

/* Dimming — parent class handles all rows at once, one DOM change */
.manifest__rows.is-hovering .manifest__row {
  opacity: 0.42;
}
.manifest__rows.is-hovering .manifest__row:hover {
  opacity: 1;
}
.manifest__rows .manifest__row {
  transition:
    opacity   0.5s cubic-bezier(0.4,0,0.2,1),
    transform 0.6s var(--ease) calc(var(--row-delay) + 0.15s);
}
/* override transition when already revealed (don't re-apply reveal easing) */
.manifest__row.is-in {
  opacity: 1;
  transform: translateY(0);
}

/* Top border line — draws on reveal, fades blue on hover */
.manifest__row-line {
  height: 0.5px;
  background: var(--border);
  transform-origin: left;
  transform: scaleX(0);
  transition:
    transform  0.85s var(--ease) var(--row-delay),
    background 0.5s  cubic-bezier(0.4,0,0.2,1),
    box-shadow 0.5s  cubic-bezier(0.4,0,0.2,1);
  position: relative;
  overflow: hidden;
}
.manifest__row.is-in .manifest__row-line { transform: scaleX(1); }

.manifest__row-line::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(77,124,254,0.75), transparent);
  transform: translateX(-100%);
}
.manifest__row.is-in .manifest__row-line::after {
  animation: lineScan 0.9s var(--ease) var(--row-delay) forwards;
}
@keyframes lineScan {
  0%   { transform: translateX(-100%); opacity:1; }
  65%  { transform: translateX(100%);  opacity:1; }
  100% { transform: translateX(100%);  opacity:0; }
}

.manifest__row:hover .manifest__row-line {
  background: rgba(77,124,254,0.55);
  box-shadow: 0 0 8px rgba(77,124,254,0.3);
}

/* Row inner — the whole block slides right on hover */
.manifest__row-inner {
  display: grid;
  grid-template-columns: 56px 1fr 28px;
  gap: 0 28px;
  align-items: center;
  padding: 30px 0;
  position: relative;
  transform: translateX(0px);
  transition: transform 0.5s cubic-bezier(0.4,0,0.2,1);
}

.manifest__row:hover .manifest__row-inner {
  transform: translateX(14px);
}

/* Row number */
.manifest__row-num {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--blue-bright);
  opacity: 0.5;
  letter-spacing: 0.06em;
  position: relative;
  z-index: 1;
  align-self: start;
  padding-top: 4px;
  transition: opacity 0.5s cubic-bezier(0.4,0,0.2,1);
}
.manifest__row:hover .manifest__row-num { opacity: 1; }

/* Row body */
.manifest__row-body { position: relative; z-index: 1; }

.manifest__row-title {
  font-size: clamp(20px, 2.4vw, 32px);
  font-weight: 500;
  letter-spacing: -0.028em;
  line-height: 1.2;
  color: var(--text-2);
  margin-bottom: 10px;
  transition: color 0.5s cubic-bezier(0.4,0,0.2,1);
}
.manifest__row:hover .manifest__row-title { color: var(--text); }

.manifest__row-desc {
  font-size: 14px;
  color: var(--text-3);
  line-height: 1.65;
  transition: color 0.5s cubic-bezier(0.4,0,0.2,1);
}
.manifest__row:hover .manifest__row-desc { color: var(--text-2); }

/* Arrow */
.manifest__row-arrow {
  color: var(--blue-bright);
  opacity: 0;
  transform: translateX(-10px);
  transition:
    opacity   0.5s cubic-bezier(0.4,0,0.2,1),
    transform 0.5s cubic-bezier(0.4,0,0.2,1);
  position: relative;
  z-index: 1;
  flex-shrink: 0;
  align-self: center;
}
.manifest__row:hover .manifest__row-arrow {
  opacity: 1;
  transform: translateX(0);
}

/* [data-meta-row] used on the divider element if needed */
[data-meta-row] {
  opacity: 0;
  transform: translateX(-22px);
  transition: opacity 0.6s var(--ease) var(--row-delay,0s), transform 0.6s var(--ease) var(--row-delay,0s);
}
[data-meta-row].is-in { opacity: 1; transform: none; }


/* ============ REVIEWS ============ */
.reviews {
  padding: 120px 32px 100px;
  background: var(--bg-2);
  border-top: 1px solid var(--border);
}

.reviews__grid {
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

/* 3D TILT EFEKT PRE REFERENCIE */
.review {
  position: relative;
  overflow: hidden;
  padding: 28px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: border-color 0.4s, background 0.5s, transform 0.6s var(--ease), box-shadow 0.6s var(--ease);
  contain: paint;
}

.review.is-tilting {
  transition: border-color 0.4s, background 0.5s, transform 0.1s linear, box-shadow 0.1s linear;
  border-color: var(--border-strong);
  box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.6);
  z-index: 10;
  will-change: transform;
}

.review::after {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background: radial-gradient(400px circle at var(--mx, 50%) var(--my, 50%), rgba(255, 255, 255, 0.06), transparent 40%);
  opacity: 0;
  transition: opacity 0.5s;
  pointer-events: none;
  z-index: 0;
}

.review:hover::after {
  opacity: 1;
}

/* Kaskádové dvihnutie vnútorných prvkov počas hover/tilt */
.review__stars,
.review__text,
.review__author {
  position: relative;
  z-index: 1;
  transition: transform 0.4s var(--ease);
}

.review:hover .review__stars {
  transform: translateY(-4px);
  transition-delay: 0s;
}

.review:hover .review__text {
  transform: translateY(-4px);
  transition-delay: 0.05s;
}

.review:hover .review__author {
  transform: translateY(-4px);
  transition-delay: 0.1s;
}

.review__stars {
  display: flex;
  gap: 2px;
}

.review__text {
  font-size: 15px;
  line-height: 1.55;
  color: var(--text-2);
  flex: 1;
}

.review__author {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.review__avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--c1), var(--c2));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 600;
  color: white;
  flex-shrink: 0;
}

.review__author strong {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
}

.review__author span {
  font-size: 12px;
  color: var(--text-3);
}

/* CTA Karta referencií s totožnou logikou */
.review--cta {
  background: linear-gradient(135deg, var(--blue) 0%, #2d5cd9 100%);
  color: white;
  justify-content: space-between;
  align-items: flex-start;
  border-color: transparent;
}

.review--cta::after {
  background: radial-gradient(400px circle at var(--mx, 50%) var(--my, 50%), rgba(255, 255, 255, 0.2), transparent 40%);
}

.review--cta.is-tilting {
  box-shadow: 0 20px 40px -10px rgba(77, 124, 254, 0.6);
}

.review--cta h3,
.review--cta .btn {
  position: relative;
  z-index: 1;
  transition: transform 0.4s var(--ease);
}

.review--cta h3 {
  font-size: 28px;
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.review--cta .btn {
  background: white;
  color: var(--blue);
}

.review--cta:hover h3 {
  transform: translateY(-4px);
  transition-delay: 0s;
}

.review--cta:hover .btn {
  transform: translateY(-4px);
  transition-delay: 0.05s;
}

/* ============ FAQ ============ */

.faq {
  padding: 120px 32px;
  background: var(--bg);
  position: relative;
}

.faq__inner {
  max-width: var(--container);
  margin: 0 auto;
}

.faq__head {
  margin-bottom: 64px;
  max-width: 640px;
}

.faq__title {
  font-size: clamp(32px, 4.5vw, 56px);
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 1.05;
  margin-top: 16px;
}

.faq__title em {
  font-style: normal;
  background: linear-gradient(135deg, var(--blue-bright), #8ab4ff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ── List ── */
.faq__list {
  position: relative;
}

/* ── Per-item ── */
.faq__item {
  position: relative;
}

/* Top divider line */
.faq__item-line {
  height: 0.5px;
  background: var(--border);
  transform-origin: left;
  /* animated in by data-reveal observer */
}

.faq__item-line--last {
  /* bottom line after the last item */
}

/* Question button */
.faq__q {
  width: 100%;
  background: none;
  border: none;
  padding: 28px 0;
  display: grid;
  grid-template-columns: 52px 1fr 36px;
  gap: 0 24px;
  align-items: center;
  text-align: left;
  position: relative;
  transform: translateX(0);
  transition: transform 0.45s cubic-bezier(0.4,0,0.2,1);
}

.faq__q:hover {
  transform: translateX(12px);
}

.faq__item.is-open .faq__q {
  transform: translateX(12px);
}

.faq__num {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--blue-bright);
  opacity: 0.55;
  letter-spacing: 0.06em;
  transition: opacity 0.4s cubic-bezier(0.4,0,0.2,1);
}

.faq__q:hover .faq__num,
.faq__item.is-open .faq__num {
  opacity: 1;
}

.faq__q-text {
  font-size: clamp(18px, 2vw, 26px);
  font-weight: 500;
  letter-spacing: -0.022em;
  line-height: 1.25;
  color: var(--text-2);
  transition: color 0.4s cubic-bezier(0.4,0,0.2,1);
}

.faq__q:hover .faq__q-text,
.faq__item.is-open .faq__q-text {
  color: var(--text);
}

/* ── Icon: + morphs to × on open ── */
.faq__icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.10);
  position: relative;
  flex-shrink: 0;
  justify-self: end;
  background: rgba(255,255,255,0.03);
  transition:
    transform  0.45s cubic-bezier(0.34,1.1,0.64,1),
    border-color 0.4s cubic-bezier(0.4,0,0.2,1),
    background   0.4s cubic-bezier(0.4,0,0.2,1);
}

.faq__item.is-open .faq__icon {
  transform: rotate(45deg);
  border-color: rgba(77,124,254,0.35);
  background: rgba(77,124,254,0.08);
}

.faq__icon-bar {
  position: absolute;
  background: var(--text-2);
  border-radius: 1px;
  transition: background 0.4s cubic-bezier(0.4,0,0.2,1);
}

.faq__icon-bar--h {
  top: 50%; left: 6px; right: 6px; height: 1px;
  transform: translateY(-50%);
}

.faq__icon-bar--v {
  left: 50%; top: 6px; bottom: 6px; width: 1px;
  transform: translateX(-50%);
}

.faq__item.is-open .faq__icon-bar { background: var(--blue-bright); }

/* ── Expand body — CSS grid trick for smooth height animation ── */
.faq__body {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.5s cubic-bezier(0.4,0,0.2,1);
}

.faq__item.is-open .faq__body {
  grid-template-rows: 1fr;
}

.faq__body-inner {
  overflow: hidden;
}

.faq__answer {
  padding: 0 0 32px 76px;
  opacity: 0;
  transform: translateY(10px);
  transition:
    opacity   0.4s cubic-bezier(0.4,0,0.2,1) 0.08s,
    transform 0.4s cubic-bezier(0.4,0,0.2,1) 0.08s;
}

.faq__item.is-open .faq__answer {
  opacity: 1;
  transform: translateY(0);
}

.faq__answer p {
  font-size: 15px;
  color: var(--text-2);
  line-height: 1.7;
  max-width: 600px;
}

/* ── Footer cta ── */
.faq__footer {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 48px;
  font-size: 14px;
  color: var(--text-3);
}

.faq__footer-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--blue-bright);
  font-size: 14px;
  font-weight: 500;
  transition: gap 0.3s cubic-bezier(0.4,0,0.2,1);
}

.faq__footer-link:hover {
  gap: 10px;
}

.faq__footer-link svg {
  transition: transform 0.3s cubic-bezier(0.4,0,0.2,1);
}

.faq__footer-link:hover svg {
  transform: translate(2px, -2px);
}


/* ============ CONTACT FORM ============ */
.contact {
  position: relative;
  padding: 120px 32px;
  overflow: hidden;
  border-top: 1px solid var(--border);
}

.contact__bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 60% at 20% 50%, rgba(77, 124, 254, 0.12) 0%, transparent 60%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%);
  z-index: 0;
}

.contact__bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 80% at 20% 50%, black 0%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 80% 80% at 20% 50%, black 0%, transparent 70%);
}

.contact__inner {
  position: relative;
  z-index: 1;
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 80px;
  align-items: start;
}

/* ── LEFT COL ── */
.contact__info {
  padding-top: 8px;
}

.contact__title {
  font-size: clamp(34px, 4.5vw, 58px);
  font-weight: 500;
  line-height: 1.06;
  letter-spacing: -0.035em;
  margin-top: 20px;
  margin-bottom: 24px;
}

.contact__title em {
  font-style: normal;
  background: linear-gradient(135deg, var(--blue-bright), #8ab4ff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.contact__desc {
  font-size: 16px;
  color: var(--text-2);
  line-height: 1.6;
  max-width: 400px;
  margin-bottom: 40px;
}

.contact__meta {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 36px;
}

.contact__meta-item {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  color: var(--text-2);
  transition: color 0.2s;
}

a.contact__meta-item:hover {
  color: var(--text);
}

.contact__meta-item--muted {
  color: var(--text-3);
  cursor: default;
}

.contact__meta-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-3);
  flex-shrink: 0;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

a.contact__meta-item:hover .contact__meta-icon {
  background: var(--blue-soft);
  border-color: rgba(77,124,254,0.25);
  color: var(--blue-bright);
}

.contact__promise {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-3);
  padding: 8px 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255,255,255,0.02);
}

.contact__promise-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 10px rgba(74, 222, 128, 0.6);
  animation: pulseBlue 2.5s ease-in-out infinite;
  flex-shrink: 0;
}

/* ── RIGHT COL — FORM CARD ── */
.contact__form-wrap {
  background: linear-gradient(160deg, rgba(255,255,255,0.035) 0%, rgba(255,255,255,0.01) 100%);
  border: 1px solid var(--border);
  border-radius: 28px;
  padding: 40px;
  position: relative;
  overflow: hidden;
}

.contact__form-wrap::before {
  content: "";
  position: absolute;
  top: 0; left: 10%; right: 10%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.18), transparent);
  pointer-events: none;
}

/* ── FORM FIELDS ── */
.contact__form {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.cform__row--2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.cform__field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.cform__label {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-3);
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.cform__label-opt {
  font-size: 10px;
  color: var(--text-4);
  text-transform: none;
  letter-spacing: 0;
  font-family: var(--font);
  font-weight: 400;
}

.cform__input {
  width: 100%;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 16px;
  font-size: 14px;
  font-family: var(--font);
  color: var(--text);
  outline: none;
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
  -webkit-appearance: none;
}

.cform__input::placeholder {
  color: var(--text-4);
}

.cform__input:hover {
  border-color: var(--border-2);
  background: rgba(255,255,255,0.05);
}

.cform__input:focus {
  border-color: rgba(77,124,254,0.5);
  background: rgba(77,124,254,0.04);
  box-shadow: 0 0 0 3px rgba(77,124,254,0.10);
}

.cform__input.is-invalid {
  border-color: rgba(248, 113, 113, 0.5);
  box-shadow: 0 0 0 3px rgba(248, 113, 113, 0.08);
}

.cform__textarea {
  resize: vertical;
  min-height: 110px;
  line-height: 1.55;
}

/* ── CHIPS ── */
.cform__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.cform__chip {
  cursor: pointer;
}

.cform__chip input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.cform__chip span {
  display: inline-flex;
  align-items: center;
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-2);
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  transition: background 0.2s, border-color 0.2s, color 0.2s, box-shadow 0.2s;
  white-space: nowrap;
  user-select: none;
}

.cform__chip:hover span {
  background: rgba(255,255,255,0.07);
  border-color: var(--border-2);
  color: var(--text);
}

.cform__chip input:checked + span {
  background: var(--blue-soft-2);
  border-color: rgba(77,124,254,0.40);
  color: var(--blue-bright);
  box-shadow: 0 0 0 0 transparent;
}

/* ── SUBMIT BUTTON ── */
.cform__submit {
  border: none;
  cursor: pointer;
  align-self: flex-start;
  position: relative;
}

.cform__submit-spinner {
  display: none;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: white;
  border-radius: 50%;
  animation: cfSpin 0.7s linear infinite;
  flex-shrink: 0;
}

@keyframes cfSpin {
  to { transform: rotate(360deg); }
}

.cform__submit.is-loading .cform__submit-label { opacity: 0.5; }
.cform__submit.is-loading .cform__submit-arrow { display: none; }
.cform__submit.is-loading .cform__submit-spinner { display: inline-block; }

/* ── SUCCESS STATE ── */
.contact__success {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 48px 24px;
  gap: 16px;
  min-height: 280px;
}

.contact__success.is-visible {
  display: flex;
}

.contact__success-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(74, 222, 128, 0.10);
  border: 1px solid rgba(74, 222, 128, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--green);
  box-shadow: 0 0 32px rgba(74, 222, 128, 0.15);
  animation: successPop 0.5s var(--ease-spring) both;
}

@keyframes successPop {
  from { transform: scale(0.5); opacity: 0; }
  to   { transform: scale(1);   opacity: 1; }
}

.contact__success h3 {
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.02em;
}

.contact__success p {
  font-size: 14px;
  color: var(--text-2);
  max-width: 320px;
  line-height: 1.6;
}

.contact__success p a {
  color: var(--blue-bright);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ============ FOOTER ============ */
.footer {
  padding: 80px 32px 32px;
  background: var(--bg-2);
  border-top: 1px solid var(--border);
}

.footer__top {
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr 2fr;
  gap: 60px;
  padding-bottom: 64px;
  border-bottom: 1px solid var(--border);
}

.footer__brand p {
  margin-top: 16px;
  font-size: 14px;
  color: var(--text-3);
  line-height: 1.5;
}

.footer__cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

.footer__col {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer__col h4 {
  font-size: 12px;
  color: var(--text-3);
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-weight: 500;
  margin-bottom: 8px;
}

.footer__col a,
.footer__col span {
  font-size: 14px;
  color: var(--text-2);
  transition: color 0.3s;
}

.footer__col a:hover {
  color: var(--text);
}

.footer__big {
  max-width: var(--container);
  margin: 64px auto 32px;
  font-size: clamp(70px, 16vw, 240px);
  font-weight: 500;
  letter-spacing: -0.05em;
  line-height: 0.9;
  text-align: center;
  background: linear-gradient(180deg, var(--text) 0%, transparent 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.footer__big em {
  font-style: normal;
  background: linear-gradient(180deg, var(--blue-bright) 0%, rgba(77, 124, 254, 0.2) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.footer__bottom {
  max-width: var(--container);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: var(--text-3);
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.footer__bottom a:hover {
  color: var(--text);
}

/* ============ RESPONSIVE ============ */
/* ============ MOBILE NAV MENU ============ */

.nav__mobile {
  display: none; /* shown only via media query below */
  position: fixed;
  top: calc(max(12px, env(safe-area-inset-top, 12px)) + 58px);
  left: 16px;
  right: 16px;
  z-index: 79;
  background: rgba(12, 14, 20, 0.92);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 20px;
  padding: 8px;
  flex-direction: column;
  gap: 2px;
  box-shadow:
    0 1.5px 0 rgba(255,255,255,0.12) inset,
    0 24px 56px -8px rgba(0,0,0,0.70),
    0 0 0 0.5px rgba(255,255,255,0.06);
  /* Hidden state */
  opacity: 0;
  transform: translateY(-10px) scale(0.97);
  pointer-events: none;
  transition:
    opacity   0.3s cubic-bezier(0.4,0,0.2,1),
    transform 0.35s cubic-bezier(0.34,1.1,0.64,1);
  transform-origin: top center;
}

.nav__mobile.is-open {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}

/* Stagger link reveal */
.nav__mobile-link,
.nav__mobile-cta {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 16px;
  border-radius: 12px;
  font-size: 17px;
  font-weight: 500;
  color: var(--text-2);
  transition: background 0.2s, color 0.2s;
  opacity: 0;
  transform: translateY(6px);
  transition:
    background 0.2s,
    color      0.2s,
    opacity    0.3s cubic-bezier(0.4,0,0.2,1),
    transform  0.35s cubic-bezier(0.34,1.1,0.64,1);
}

.nav__mobile.is-open .nav__mobile-link,
.nav__mobile.is-open .nav__mobile-cta {
  opacity: 1;
  transform: none;
}

/* Stagger delays */
.nav__mobile.is-open .nav__mobile-link:nth-child(1) { transition-delay: 0.04s; }
.nav__mobile.is-open .nav__mobile-link:nth-child(2) { transition-delay: 0.08s; }
.nav__mobile.is-open .nav__mobile-link:nth-child(3) { transition-delay: 0.12s; }
.nav__mobile.is-open .nav__mobile-link:nth-child(4) { transition-delay: 0.16s; }
.nav__mobile.is-open .nav__mobile-cta              { transition-delay: 0.22s; }

.nav__mobile-link:hover {
  background: rgba(255,255,255,0.05);
  color: var(--text);
}

.nav__mobile-sep {
  height: 0.5px;
  background: rgba(255,255,255,0.08);
  margin: 4px 8px;
}

.nav__mobile-cta {
  background: linear-gradient(135deg, rgba(77,124,254,0.18) 0%, rgba(77,124,254,0.08) 100%);
  border: 1px solid rgba(77,124,254,0.22);
  color: var(--blue-bright);
  font-size: 16px;
  justify-content: space-between;
  margin-top: 2px;
}

.nav__mobile-cta:hover {
  background: rgba(77,124,254,0.20);
  color: #fff;
}

/* Backdrop to close on outside tap */
.nav__mobile-backdrop {
  position: fixed;
  inset: 0;
  z-index: 78;
  display: none;
  background: rgba(0,0,0,0.25);
  backdrop-filter: blur(2px);
  opacity: 0;
  transition: opacity 0.3s;
}

.nav__mobile-backdrop.is-open {
  opacity: 1;
}

/* Burger spans — 3 bars that morph to × */
.nav__pill--burger span {
  width: 18px;
  height: 1.5px;
  background: var(--text);
  border-radius: 1px;
  transition: transform 0.35s cubic-bezier(0.4,0,0.2,1), opacity 0.25s;
  transform-origin: center;
}

.nav__pill--burger.is-open span:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}
.nav__pill--burger.is-open span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.nav__pill--burger.is-open span:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}


/* ============================================================
   RESPONSIVE — 980px | 768px | 480px
   ============================================================ */

/* ── 980px: Tablet landscape ── */
@media (max-width: 980px) {

  /* Navbar — full width with space-between on mobile */
  .nav {
    width: calc(100vw - 32px);
    justify-content: space-between;
    top: max(12px, env(safe-area-inset-top, 12px));
  }
  .nav__pill--menu { display: none; }
  .nav__pill--cta  { display: none; }
  .nav__pill--burger { display: flex; }
  .nav__mobile { display: flex; }
  .cursor { display: none; }
  html, body, *, *::before, *::after { cursor: auto !important; }

  /* Hero */
  .hero { padding: 100px 20px 60px; }
  .hero__glass { display: none; } /* hide decorative panels */

  /* Bento — 4-column grid, cards halve */
  .bento { grid-template-columns: repeat(4, 1fr); gap: 12px; }
  .bento__card--hero  { grid-column: span 2; }
  .bento__card--code  { grid-column: span 2; }
  .bento__card--ecom  { grid-column: span 2; }
  .bento__card--brand { grid-column: span 2; }

  /* Generic paddings */
  .bento-section { padding: 80px 20px; }
  .manifest      { padding: 80px 20px; }
  .reviews       { padding: 80px 20px; }
  .faq           { padding: 80px 20px; }
  .contact       { padding: 100px 20px; }
  .footer        { padding: 60px 20px 24px; }

  .section-head { padding: 0; }

  /* Manifest */
  .manifest__header {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-bottom: 48px;
  }
  .manifest__row-inner {
    grid-template-columns: 44px 1fr;
    gap: 0 16px;
    padding: 24px 0;
  }
  .manifest__row-arrow { display: none; }
  .manifest__row:hover .manifest__row-inner,
  .manifest__row.is-open .manifest__row-inner { transform: none; }
  .manifest__row-inner::before { inset: 0 -12px; }

  /* Reviews */
  .reviews__grid { grid-template-columns: repeat(2, 1fr); }

  /* FAQ */
  .faq__head { margin-bottom: 40px; }
  .faq__q { grid-template-columns: 36px 1fr 30px; gap: 0 16px; padding: 22px 0; }
  .faq__q-text { font-size: 17px; }
  .faq__answer { padding: 0 0 24px 52px; }
  .faq__q:hover { transform: none; }
  .faq__item.is-open .faq__q { transform: none; }

  /* Contact */
  .contact { padding: 100px 20px; }
  .contact__inner { grid-template-columns: 1fr; gap: 48px; }
  .cform__submit { width: 100%; justify-content: center; }

  /* Footer */
  .footer__top { grid-template-columns: 1fr; gap: 36px; padding-bottom: 36px; }
  .footer__cols { grid-template-columns: repeat(2, 1fr); gap: 24px; }
  .footer__bottom { flex-direction: column; gap: 10px; text-align: center; align-items: center; }
}

/* ── 768px: Tablet portrait / large mobile ── */
@media (max-width: 768px) {

  /* Hero */
  .hero { padding: 90px 20px 56px; }
  .hero__title { font-size: clamp(34px, 10vw, 52px); }
  .hero__sub { font-size: 15px; }
  .hero__badge { font-size: 11px; padding: 5px 12px; }
  .hero__proof { flex-wrap: wrap; justify-content: center; }

  /* Bento — full-width cards */
  .bento { grid-template-columns: 1fr; gap: 10px; }
  .bento__card--hero,
  .bento__card--code,
  .bento__card--ecom,
  .bento__card--brand { grid-column: span 1; }
  .bento__card { min-height: 220px; }

  /* Manifest */
  .manifest__title { font-size: clamp(32px, 9vw, 48px); }
  .manifest__sub { font-size: 14px; }
  .manifest__row-title { font-size: clamp(17px, 5vw, 22px); }
  .manifest__row-desc { font-size: 13px; }
  .manifest__row-num { font-size: 10px; }
  .manifest__meta-pills { gap: 5px; }
  .manifest__meta-pill { font-size: 10px; padding: 4px 10px; }

  /* Reviews — 2 recenze + CTA karta, zbytek skryt */
  .reviews__grid { grid-template-columns: 1fr; gap: 12px; }
  .review:nth-child(n+3):not(.review--cta) { display: none; }

  /* FAQ */
  .faq__title { font-size: clamp(26px, 8vw, 38px); }
  .faq__q { padding: 20px 0; grid-template-columns: 32px 1fr 28px; gap: 0 12px; }
  .faq__q-text { font-size: 16px; }
  .faq__answer { padding: 0 0 20px 44px; }
  .faq__answer p { font-size: 14px; }
  .faq__icon { width: 24px; height: 24px; }

  /* CTA */
  .contact__title { font-size: clamp(26px, 8vw, 44px); }

  /* Footer big — fit on one line, no overflow */
  .footer__big {
    font-size: clamp(44px, 14vw, 120px);
    margin: 36px auto 20px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: clip;
    padding: 0 20px;
    box-sizing: border-box;
    width: 100%;
  }
}

/* ── 480px: Mobile ── */
@media (max-width: 480px) {

  /* Navbar */
  .nav { top: 10px; }
  .nav__pill--logo { padding: 7px 12px 7px 8px; font-size: 13px; }

  /* Hero */
  .hero { padding: 80px 16px 48px; }
  .hero__title { font-size: clamp(30px, 11vw, 44px); letter-spacing: -0.035em; }
  .hero__actions { flex-direction: column; width: 100%; }
  .hero__actions .btn { justify-content: center; }
  .hero__proof { gap: 10px; padding: 8px 12px; }

  /* Bento */
  .bento-section { padding: 60px 16px; }
  .bento { gap: 8px; }
  .bento__card { border-radius: 18px; }

  /* Manifest */
  .manifest { padding: 60px 16px; }
  .manifest__header { margin-bottom: 36px; }
  .manifest__row-inner { padding: 20px 0; gap: 0 12px; grid-template-columns: 36px 1fr; }
  .manifest__divider-label { font-size: 10px; }
  .manifest__footer { flex-direction: column; gap: 6px; }

  /* Reviews */
  .reviews { padding: 60px 16px; }
  .review { padding: 20px; }

  /* FAQ */
  .faq { padding: 60px 16px; }
  .faq__head { margin-bottom: 32px; }
  .faq__q { padding: 18px 0; gap: 0 10px; grid-template-columns: 28px 1fr 26px; }
  .faq__q-text { font-size: 15px; }
  .faq__num { font-size: 10px; }
  .faq__answer { padding: 0 0 18px 38px; }
  .faq__icon { width: 22px; height: 22px; }
  .faq__footer { flex-direction: column; gap: 6px; margin-top: 32px; }

  /* CTA */
  .contact { padding: 60px 16px; }
  .cform__row--2 { grid-template-columns: 1fr; }
  .contact__form-wrap { padding: 24px; }

  /* Footer */
  .footer { padding: 48px 16px 20px; }
  .footer__cols { grid-template-columns: 1fr 1fr; gap: 20px; }
  .footer__big { font-size: clamp(36px, 13vw, 80px); white-space: nowrap; padding: 0 16px; box-sizing: border-box; width: 100%; }
}


@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  [data-reveal] {
    opacity: 1;
    transform: none;
  }
}

/* Pause looping animations when tab is hidden */
.page-hidden .nav__pill::before,
.page-hidden .hero__badge::before,
.page-hidden .hero__glow,
.page-hidden .hero__glass {
  animation-play-state: paused !important;
}

/* ── Server error message ── */
.cform__server-error {
  margin-top: .75rem;
  padding: .6rem .9rem;
  border-radius: 8px;
  background: rgba(239, 68, 68, .1);
  border: 1px solid rgba(239, 68, 68, .35);
  color: #f87171;
  font-size: .85rem;
  line-height: 1.45;
}