/* ==========================================================================
   Bitkey — Design System
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
  /* Surfaces */
  --bg: #07070c;
  --bg-2: #0b0b13;
  --surface: #101019;
  --surface-2: #16161f;
  --line: rgba(255, 255, 255, 0.09);
  --line-strong: rgba(255, 255, 255, 0.16);

  /* Text */
  --text: #f4f4f7;
  --text-2: #a9a9bb;
  --text-3: #6f6f83;

  /* Brand */
  --violet: #7c5cff;
  --violet-deep: #4a2ee0;
  --cyan: #21e5c0;
  --amber: #ffb648;
  --rose: #ff5d7a;

  --grad-brand: linear-gradient(120deg, #7c5cff 0%, #5b8cff 45%, #21e5c0 100%);
  --grad-text: linear-gradient(100deg, #ffffff 10%, #c6b8ff 55%, #21e5c0 100%);

  /* Type */
  --font-display: "Space Grotesk", "Inter", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* Metrics */
  --maxw: 1240px;
  --gutter: clamp(20px, 5vw, 56px);
  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 24px;
  --r-xl: 32px;
  --nav-h: 76px;

  --shadow-lg: 0 30px 80px -20px rgba(0, 0, 0, 0.75);
  --shadow-glow: 0 0 0 1px rgba(124, 92, 255, 0.35), 0 24px 60px -18px rgba(124, 92, 255, 0.45);

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- Reset ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

* { margin: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 20px);
  -webkit-text-size-adjust: 100%;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body.is-locked { overflow: hidden; }

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

a { color: inherit; text-decoration: none; }

button,
input,
textarea,
select {
  font: inherit;
  color: inherit;
}

ul { list-style: none; padding: 0; }

::selection {
  background: rgba(124, 92, 255, 0.4);
  color: #fff;
}

:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- Layout ---------- */
.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section {
  position: relative;
  padding-block: clamp(72px, 10vw, 132px);
}

.section--tight { padding-block: clamp(56px, 7vw, 88px); }

.section--alt {
  background:
    radial-gradient(1000px 500px at 15% 0%, rgba(124, 92, 255, 0.1), transparent 60%),
    var(--bg-2);
  border-block: 1px solid var(--line);
}

.divider { border-top: 1px solid var(--line); }

/* ---------- Typography ---------- */
h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.06;
  letter-spacing: -0.03em;
}

.display {
  font-size: clamp(2.9rem, 7.4vw, 5.4rem);
  letter-spacing: -0.045em;
}

.h1 { font-size: clamp(2.4rem, 5.4vw, 3.9rem); }
.h2 { font-size: clamp(2rem, 4.2vw, 3.1rem); }
.h3 { font-size: clamp(1.3rem, 2.2vw, 1.65rem); line-height: 1.2; }
.h4 { font-size: 1.1rem; line-height: 1.3; }

.lead {
  font-size: clamp(1.02rem, 1.5vw, 1.2rem);
  color: var(--text-2);
  max-width: 62ch;
}

.muted { color: var(--text-2); }
.small { font-size: 0.9rem; }

.grad-text {
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 18px;
}

.eyebrow::before {
  content: "";
  width: 26px;
  height: 1px;
  background: linear-gradient(90deg, var(--cyan), transparent);
}

.section-head {
  max-width: 720px;
  margin-bottom: clamp(38px, 5vw, 64px);
}

.section-head--split {
  max-width: none;
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  align-items: flex-end;
  justify-content: space-between;
}

.section-head--split .section-head__copy { max-width: 620px; }

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: transparent;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 26px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: var(--btn-bg);
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease),
    background-color 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}

.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn--primary {
  background: var(--grad-brand);
  color: #07070c;
  box-shadow: 0 10px 30px -12px rgba(124, 92, 255, 0.9);
}

.btn--primary:hover { box-shadow: 0 18px 44px -14px rgba(33, 229, 192, 0.75); }

.btn--ghost {
  border-color: var(--line-strong);
  color: var(--text);
  backdrop-filter: blur(8px);
}

.btn--ghost:hover {
  border-color: rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.06);
}

.btn--light {
  background: #fff;
  color: #07070c;
}

.btn--sm { padding: 10px 20px; font-size: 0.875rem; }
.btn--lg { padding: 17px 34px; font-size: 1rem; }
.btn--block { width: 100%; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 0.94rem;
  color: var(--cyan);
}

.link-arrow svg { transition: transform 0.3s var(--ease); }
.link-arrow:hover svg { transform: translateX(5px); }

/* ---------- Nav ---------- */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  transition: height 0.35s var(--ease), background-color 0.35s ease,
    border-color 0.35s ease, backdrop-filter 0.35s ease;
  border-bottom: 1px solid transparent;
}

.nav::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(7, 7, 12, 0.85), transparent);
  pointer-events: none;
  transition: opacity 0.35s ease;
}

.nav.is-stuck {
  height: 64px;
  background: rgba(8, 8, 14, 0.78);
  backdrop-filter: blur(18px) saturate(160%);
  border-bottom-color: var(--line);
}

.nav.is-stuck::before { opacity: 0; }

.nav__inner {
  display: flex;
  align-items: center;
  gap: 32px;
  width: 100%;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.16rem;
  letter-spacing: -0.03em;
  flex-shrink: 0;
}

.brand__mark {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: #000;
  display: grid;
  place-items: center;
  overflow: hidden;
  box-shadow: 0 6px 18px -6px rgba(124, 92, 255, 0.9);
}

.brand__mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}

.nav__link {
  position: relative;
  padding: 9px 15px;
  border-radius: 999px;
  font-size: 0.925rem;
  font-weight: 500;
  color: var(--text-2);
  transition: color 0.2s ease, background-color 0.2s ease;
}

.nav__link:hover,
.nav__link.is-active {
  color: var(--text);
  background: rgba(255, 255, 255, 0.07);
}

.nav__actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

/* Dropdown */
.nav__item { position: relative; }

.nav__link--drop { display: inline-flex; align-items: center; gap: 6px; }
.nav__link--drop svg { transition: transform 0.25s var(--ease); }
.nav__item:hover .nav__link--drop svg { transform: rotate(180deg); }

.dropdown {
  position: absolute;
  top: calc(100% + 12px);
  left: 50%;
  translate: -50% 0;
  min-width: 232px;
  padding: 8px;
  background: rgba(16, 16, 25, 0.96);
  backdrop-filter: blur(20px);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity 0.24s ease, transform 0.24s var(--ease), visibility 0.24s;
}

.nav__item:hover .dropdown,
.nav__item:focus-within .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown a {
  display: block;
  padding: 10px 13px;
  border-radius: 10px;
  font-size: 0.9rem;
  color: var(--text-2);
  transition: background-color 0.2s ease, color 0.2s ease;
}

.dropdown a strong {
  display: block;
  color: var(--text);
  font-weight: 600;
  font-size: 0.93rem;
}

.dropdown a span { font-size: 0.79rem; color: var(--text-3); }
.dropdown a:hover { background: rgba(124, 92, 255, 0.14); }
.dropdown a:hover span { color: var(--text-2); }

/* Mobile nav */
.nav__burger {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  cursor: pointer;
  padding: 0;
  place-items: center;
}

.nav__burger span {
  display: block;
  width: 17px;
  height: 1.5px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.3s var(--ease), opacity 0.2s ease;
}

.nav__burger span + span { margin-top: 4px; }
.nav__burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(5.5px) rotate(45deg); }
.nav__burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-5.5px) rotate(-45deg); }

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 99;
  padding: calc(var(--nav-h) + 28px) var(--gutter) 40px;
  background: rgba(7, 7, 12, 0.97);
  backdrop-filter: blur(22px);
  display: flex;
  flex-direction: column;
  gap: 6px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-12px);
  transition: opacity 0.3s ease, transform 0.35s var(--ease), visibility 0.3s;
  overflow-y: auto;
}

.mobile-menu.is-open { opacity: 1; visibility: visible; transform: translateY(0); }

.mobile-menu a {
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 600;
  letter-spacing: -0.03em;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  color: var(--text);
}

.mobile-menu a.sub {
  font-size: 1rem;
  font-family: var(--font-body);
  font-weight: 500;
  color: var(--text-2);
  padding-left: 18px;
}

.mobile-menu .btn { margin-top: 22px; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: min(104vh, 940px);
  display: flex;
  align-items: center;
  padding-block: calc(var(--nav-h) + 72px) 90px;
  overflow: hidden;
  isolation: isolate;
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(900px 620px at 78% 18%, rgba(33, 229, 192, 0.16), transparent 62%),
    radial-gradient(1100px 720px at 12% 8%, rgba(124, 92, 255, 0.28), transparent 64%),
    radial-gradient(800px 700px at 50% 108%, rgba(91, 140, 255, 0.2), transparent 60%),
    var(--bg);
}

.hero__grid {
  position: absolute;
  inset: -10% -10% 0;
  z-index: -2;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 78% 62% at 50% 34%, #000 20%, transparent 78%);
  animation: gridDrift 28s linear infinite;
}

@keyframes gridDrift {
  to { background-position: 64px 64px; }
}

.hero__glow {
  position: absolute;
  z-index: -2;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.55;
  animation: floaty 14s ease-in-out infinite;
}

.hero__glow--a {
  width: 420px; height: 420px; top: 6%; right: 4%;
  background: radial-gradient(circle, rgba(33, 229, 192, 0.5), transparent 70%);
}

.hero__glow--b {
  width: 380px; height: 380px; bottom: -6%; left: 2%;
  background: radial-gradient(circle, rgba(124, 92, 255, 0.55), transparent 70%);
  animation-delay: -6s;
}

@keyframes floaty {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(0, -30px, 0) scale(1.08); }
}

.hero::after {
  /* cinematic bottom fade, Netflix-style */
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 220px;
  z-index: -1;
  background: linear-gradient(180deg, transparent, var(--bg));
  pointer-events: none;
}

.hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  gap: clamp(36px, 5vw, 72px);
  align-items: center;
  width: 100%;
}

.hero__title { margin-bottom: 24px; }
.hero__title em { font-style: normal; display: block; }

.hero__copy { max-width: 54ch; margin-bottom: 34px; }

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 42px;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 16px 7px 8px;
  margin-bottom: 26px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.045);
  backdrop-filter: blur(10px);
  font-size: 0.82rem;
  color: var(--text-2);
}

.pill__tag {
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--grad-brand);
  color: #07070c;
  font-weight: 700;
  font-size: 0.7rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.hero__stats {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(24px, 4vw, 52px);
  padding-top: 30px;
  border-top: 1px solid var(--line);
}

.stat__num {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.stat__label {
  margin-top: 7px;
  font-size: 0.82rem;
  color: var(--text-3);
  letter-spacing: 0.02em;
}

/* Hero visual — animated campaign console card */
.hero__visual { position: relative; }

.console {
  position: relative;
  z-index: 1;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.015));
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow-lg);
  animation: cardFloat 9s ease-in-out infinite;
}

@keyframes cardFloat {
  0%, 100% { transform: translateY(0) rotate(0.001deg); }
  50% { transform: translateY(-14px); }
}

.console__head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 16px;
}

.console__dot {
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 0 4px rgba(33, 229, 192, 0.16);
  animation: pulse 2.2s ease-in-out infinite;
}

@keyframes pulse {
  50% { box-shadow: 0 0 0 9px rgba(33, 229, 192, 0); }
}

.console__title {
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-weight: 600;
}

.console__badge {
  margin-left: auto;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-3);
}

.metric-row {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: rgba(255, 255, 255, 0.03);
  transition: border-color 0.3s ease, transform 0.3s var(--ease);
}

.metric-row + .metric-row { margin-top: 9px; }
.metric-row:hover { border-color: rgba(124, 92, 255, 0.5); transform: translateX(4px); }

.metric-row__mark {
  width: 34px; height: 34px;
  display: grid; place-items: center;
  border-radius: 9px;
  background: rgba(124, 92, 255, 0.16);
  color: #b9a6ff;
  flex-shrink: 0;
}

.metric-row__label {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.metric-row__meta { font-size: 0.7rem; color: var(--text-3); }

.metric-row__value {
  margin-left: auto;
  text-align: right;
  flex-shrink: 0;
}

.metric-row__value strong {
  display: block;
  font-family: ui-monospace, "SFMono-Regular", Menlo, monospace;
  font-size: 0.84rem;
  font-weight: 600;
}

.metric-row__delta { font-size: 0.7rem; color: var(--cyan); }
.metric-row__delta--down { color: var(--rose); }

.console__foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 16px;
  padding-top: 15px;
  border-top: 1px solid var(--line);
  font-size: 0.78rem;
  color: var(--text-3);
}

.progress {
  width: 100%;
  height: 4px;
  margin-top: 10px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.progress__bar {
  height: 100%;
  border-radius: 4px;
  background: var(--grad-brand);
  animation: fill 4.5s ease-in-out infinite;
}

@keyframes fill {
  0% { width: 12%; }
  60% { width: 88%; }
  100% { width: 12%; }
}

.float-card {
  position: absolute;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  background: rgba(16, 16, 25, 0.9);
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow-lg);
  font-size: 0.82rem;
  animation: cardFloat 7s ease-in-out infinite;
}

/* offsets keep the cards clear of the console header and footer rows */
.float-card--tl { top: -46px; left: -38px; animation-delay: -2s; }
.float-card--br { bottom: -44px; right: -30px; animation-delay: -4.5s; }
.float-card strong { font-family: var(--font-display); font-size: 0.95rem; }
.float-card span { color: var(--text-3); font-size: 0.74rem; display: block; }

.float-card__icon {
  width: 32px; height: 32px;
  display: grid; place-items: center;
  border-radius: 10px;
  background: rgba(33, 229, 192, 0.14);
  color: var(--cyan);
}

.float-card--tl .float-card__icon { background: rgba(255, 182, 72, 0.14); color: var(--amber); }

/* ---------- Marquee / trust bar ---------- */
.marquee {
  position: relative;
  padding-block: 26px;
  border-block: 1px solid var(--line);
  overflow: hidden;
  background: var(--bg-2);
}

.marquee::before,
.marquee::after {
  content: "";
  position: absolute;
  top: 0; bottom: 0;
  width: 140px;
  z-index: 2;
  pointer-events: none;
}

.marquee::before { left: 0; background: linear-gradient(90deg, var(--bg-2), transparent); }
.marquee::after { right: 0; background: linear-gradient(270deg, var(--bg-2), transparent); }

.marquee__track {
  display: flex;
  width: max-content;
  gap: 60px;
  animation: scrollX 36s linear infinite;
}

.marquee:hover .marquee__track { animation-play-state: paused; }

@keyframes scrollX {
  to { transform: translateX(-50%); }
}

.marquee__item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 1.02rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text-3);
  white-space: nowrap;
  transition: color 0.3s ease;
}

.marquee__item:hover { color: var(--text); }
.marquee__item svg { opacity: 0.6; }

/* ---------- Cards ---------- */
.grid {
  display: grid;
  gap: clamp(16px, 2vw, 22px);
}

.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.card {
  position: relative;
  padding: clamp(24px, 3vw, 34px);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.012));
  overflow: hidden;
  transition: transform 0.4s var(--ease), border-color 0.35s ease, background-color 0.35s ease;
}

.card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: var(--grad-brand);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
}

.card:hover { transform: translateY(-6px); }
.card:hover::after { opacity: 0.85; }

.card__icon {
  width: 48px; height: 48px;
  display: grid; place-items: center;
  margin-bottom: 20px;
  border-radius: 14px;
  background: rgba(124, 92, 255, 0.14);
  color: #b9a6ff;
  border: 1px solid rgba(124, 92, 255, 0.24);
  transition: transform 0.4s var(--ease);
}

.card:hover .card__icon { transform: scale(1.08) rotate(-4deg); }
.card__icon--cyan { background: rgba(33, 229, 192, 0.13); color: var(--cyan); border-color: rgba(33, 229, 192, 0.24); }
.card__icon--amber { background: rgba(255, 182, 72, 0.13); color: var(--amber); border-color: rgba(255, 182, 72, 0.24); }
.card__icon--rose { background: rgba(255, 93, 122, 0.13); color: var(--rose); border-color: rgba(255, 93, 122, 0.24); }

.card h3 { margin-bottom: 10px; }
.card p { color: var(--text-2); font-size: 0.95rem; }

.card__num {
  position: absolute;
  top: 14px; right: 20px;
  font-family: var(--font-display);
  font-size: 3.6rem;
  font-weight: 700;
  line-height: 1;
  color: rgba(255, 255, 255, 0.045);
  letter-spacing: -0.05em;
}

/* Bento */
.bento {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: clamp(16px, 2vw, 22px);
}

.bento > *:nth-child(1) { grid-column: span 4; }
.bento > *:nth-child(2) { grid-column: span 2; }
.bento > *:nth-child(3) { grid-column: span 2; }
.bento > *:nth-child(4) { grid-column: span 4; }

.bento__feature {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 260px;
}

/* ---------- Rail (Netflix-style horizontal scroller) ---------- */
.rail { position: relative; }

.rail__viewport {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding: 8px 0 26px;
  margin-inline: calc(var(--gutter) * -1);
  padding-inline: var(--gutter);
  /* keeps the first card aligned with the page gutter instead of snapping past it */
  scroll-padding-inline-start: var(--gutter);
  scrollbar-width: none;
}

.rail__viewport::-webkit-scrollbar { display: none; }

.rail__nav {
  display: flex;
  gap: 8px;
}

.rail__btn {
  width: 42px; height: 42px;
  display: grid; place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.045);
  color: var(--text);
  cursor: pointer;
  transition: background-color 0.25s ease, border-color 0.25s ease, opacity 0.25s ease, transform 0.25s var(--ease);
}

.rail__btn:hover { background: rgba(255, 255, 255, 0.13); transform: scale(1.06); }
.rail__btn[disabled] { opacity: 0.3; cursor: not-allowed; transform: none; }

.case {
  position: relative;
  flex: 0 0 clamp(280px, 33vw, 372px);
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--surface);
  overflow: hidden;
  transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease), border-color 0.35s ease;
}

.case:hover {
  transform: translateY(-8px) scale(1.015);
  border-color: rgba(124, 92, 255, 0.45);
  box-shadow: var(--shadow-glow);
  z-index: 2;
}

.case__art {
  position: relative;
  aspect-ratio: 16 / 9;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.case__art--a { background: linear-gradient(135deg, #2a1d6b, #10123a 55%, #0a2f4d); }
.case__art--b { background: linear-gradient(135deg, #06403c, #0a2140 60%, #221a4d); }
.case__art--c { background: linear-gradient(135deg, #4a2a12, #2a1338 55%, #101036); }
.case__art--d { background: linear-gradient(135deg, #3a1230, #16123c 55%, #062f3f); }

.case__art::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.07) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: radial-gradient(circle at 30% 30%, #000, transparent 72%);
}

.case__art svg { position: relative; opacity: 0.92; }

.case__tag {
  position: absolute;
  top: 14px; left: 14px;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(7, 7, 12, 0.72);
  backdrop-filter: blur(8px);
  border: 1px solid var(--line-strong);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text);
}

.case__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 24px;
}

.case__meta {
  display: flex;
  gap: 14px;
  margin-bottom: 12px;
  font-size: 0.78rem;
  color: var(--text-3);
}

.case__meta span { display: inline-flex; align-items: center; gap: 6px; }

.case h3 { margin-bottom: 10px; }
.case p { color: var(--text-2); font-size: 0.93rem; margin-bottom: 18px; }

.case__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 20px;
}

.tag {
  padding: 4px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.73rem;
  color: var(--text-2);
  background: rgba(255, 255, 255, 0.035);
}

.case__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.price,
.result {
  font-family: var(--font-display);
  font-size: 1.22rem;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.price span { font-size: 0.78rem; font-weight: 500; color: var(--text-3); }

.result {
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.result span {
  display: block;
  font-family: var(--font-body);
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0;
  color: var(--text-3);
  -webkit-text-fill-color: var(--text-3);
}

/* ---------- Split / feature blocks ---------- */
.split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(36px, 5.5vw, 84px);
  align-items: center;
}

.split--reverse .split__media { order: -1; }

.split__list { margin-top: 30px; display: grid; gap: 16px; }

.split__list li {
  display: flex;
  gap: 13px;
  align-items: flex-start;
  color: var(--text-2);
  font-size: 0.96rem;
}

.check {
  flex-shrink: 0;
  width: 22px; height: 22px;
  margin-top: 2px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: rgba(33, 229, 192, 0.15);
  color: var(--cyan);
}

.panel {
  position: relative;
  padding: clamp(22px, 3vw, 32px);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  background:
    radial-gradient(600px 300px at 80% 0%, rgba(124, 92, 255, 0.16), transparent 62%),
    linear-gradient(165deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.012));
  box-shadow: var(--shadow-lg);
}

.chain {
  display: grid;
  gap: 12px;
}

.chain__node {
  position: relative;
  display: flex;
  gap: 15px;
  align-items: flex-start;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: rgba(9, 9, 15, 0.6);
  transition: border-color 0.3s ease, background-color 0.3s ease;
}

.chain__node:hover { border-color: rgba(33, 229, 192, 0.4); background: rgba(33, 229, 192, 0.05); }

.chain__node::after {
  content: "";
  position: absolute;
  left: 34px;
  top: 100%;
  width: 1px;
  height: 12px;
  background: linear-gradient(180deg, rgba(124, 92, 255, 0.7), transparent);
}

.chain__node:last-child::after { display: none; }

.chain__idx {
  width: 34px; height: 34px;
  flex-shrink: 0;
  display: grid; place-items: center;
  border-radius: 10px;
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 700;
  background: var(--grad-brand);
  color: #07070c;
}

.chain__node h4 { margin-bottom: 3px; }
.chain__node p { font-size: 0.87rem; color: var(--text-2); }

/* ---------- Stats band ---------- */
.stats-band {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
}

.stats-band > div {
  padding: clamp(24px, 3.4vw, 40px);
  background: var(--bg-2);
  transition: background-color 0.35s ease;
}

.stats-band > div:hover { background: var(--surface-2); }

/* ---------- Testimonials ---------- */
.quote {
  display: flex;
  flex-direction: column;
  padding: clamp(24px, 3vw, 32px);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.012));
  transition: transform 0.4s var(--ease), border-color 0.35s ease;
}

.quote:hover { transform: translateY(-6px); border-color: rgba(255, 255, 255, 0.22); }

.stars { display: flex; gap: 3px; color: var(--amber); margin-bottom: 16px; }

.quote p {
  font-size: 1rem;
  color: var(--text);
  margin-bottom: 22px;
  flex: 1;
}

.person { display: flex; align-items: center; gap: 12px; }

.avatar {
  width: 42px; height: 42px;
  flex-shrink: 0;
  display: grid; place-items: center;
  border-radius: 50%;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.86rem;
  color: #07070c;
  background: var(--grad-brand);
}

.avatar--2 { background: linear-gradient(135deg, #ffb648, #ff5d7a); }
.avatar--3 { background: linear-gradient(135deg, #21e5c0, #5b8cff); }
.avatar--4 { background: linear-gradient(135deg, #ff5d7a, #7c5cff); }

.person strong { display: block; font-size: 0.93rem; font-family: var(--font-display); }
.person span { font-size: 0.8rem; color: var(--text-3); }

/* ---------- Accordion (FAQ) ---------- */
.accordion { border-top: 1px solid var(--line); }

.acc {
  border-bottom: 1px solid var(--line);
}

.acc__btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 26px 4px;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  font-family: var(--font-display);
  font-size: clamp(1.02rem, 1.7vw, 1.28rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text);
  transition: color 0.25s ease;
}

.acc__btn:hover { color: var(--cyan); }

.acc__sign {
  position: relative;
  flex-shrink: 0;
  width: 34px; height: 34px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  transition: background-color 0.3s ease, border-color 0.3s ease, transform 0.4s var(--ease);
}

.acc__sign::before,
.acc__sign::after {
  content: "";
  position: absolute;
  inset: 50% 9px auto;
  height: 1.5px;
  background: currentColor;
  border-radius: 2px;
  transition: transform 0.35s var(--ease), opacity 0.25s ease;
}

.acc__sign::after { transform: rotate(90deg); }

.acc.is-open .acc__sign { background: var(--grad-brand); border-color: transparent; color: #07070c; transform: rotate(180deg); }
.acc.is-open .acc__sign::after { opacity: 0; }

.acc__panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.42s var(--ease);
}

.acc.is-open .acc__panel { grid-template-rows: 1fr; }

.acc__inner { overflow: hidden; }

.acc__inner p {
  padding: 0 60px 26px 4px;
  color: var(--text-2);
  max-width: 78ch;
}

/* ---------- CTA band ---------- */
.cta {
  position: relative;
  padding: clamp(44px, 6vw, 78px);
  border-radius: var(--r-xl);
  border: 1px solid var(--line-strong);
  overflow: hidden;
  text-align: center;
  background:
    radial-gradient(700px 340px at 20% 0%, rgba(124, 92, 255, 0.4), transparent 60%),
    radial-gradient(680px 340px at 82% 100%, rgba(33, 229, 192, 0.32), transparent 60%),
    var(--surface);
}

.cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: radial-gradient(ellipse 70% 70% at 50% 50%, #000, transparent 75%);
  pointer-events: none;
}

.cta > * { position: relative; }

.cta__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
  margin-top: 32px;
}

/* ---------- Forms ---------- */
.form { display: grid; gap: 18px; }

.field { display: grid; gap: 8px; }

.field label {
  font-size: 0.83rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--text-2);
}

.field input,
.field textarea,
.field select {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: rgba(255, 255, 255, 0.035);
  color: var(--text);
  font-size: 0.95rem;
  transition: border-color 0.25s ease, background-color 0.25s ease, box-shadow 0.25s ease;
}

.field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' fill='none' stroke='%23a9a9bb' stroke-width='2'%3E%3Cpath d='M3 5l4 4 4-4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 42px;
}

.field textarea { resize: vertical; min-height: 132px; }

.field input::placeholder,
.field textarea::placeholder { color: var(--text-3); }

.field input:focus,
.field textarea:focus,
.field select:focus {
  outline: none;
  border-color: rgba(124, 92, 255, 0.7);
  background: rgba(124, 92, 255, 0.06);
  box-shadow: 0 0 0 4px rgba(124, 92, 255, 0.14);
}

.field.has-error input,
.field.has-error textarea { border-color: var(--rose); }

.field__error {
  font-size: 0.78rem;
  color: var(--rose);
  display: none;
}

.field.has-error .field__error { display: block; }

.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }

.form-note { font-size: 0.8rem; color: var(--text-3); }

.form-status {
  display: none;
  align-items: center;
  gap: 11px;
  padding: 14px 18px;
  border-radius: var(--r-sm);
  font-size: 0.9rem;
}

.form-status.is-visible { display: flex; }

.form-status--ok {
  background: rgba(33, 229, 192, 0.1);
  border: 1px solid rgba(33, 229, 192, 0.35);
  color: var(--cyan);
}

.form-status--err {
  background: rgba(255, 93, 122, 0.1);
  border: 1px solid rgba(255, 93, 122, 0.35);
  color: var(--rose);
}

/* Contact info cards */
.info-card {
  display: flex;
  gap: 15px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: rgba(255, 255, 255, 0.028);
  transition: border-color 0.3s ease, transform 0.35s var(--ease);
}

.info-card:hover { border-color: rgba(33, 229, 192, 0.4); transform: translateY(-4px); }

.info-card__icon {
  width: 42px; height: 42px;
  flex-shrink: 0;
  display: grid; place-items: center;
  border-radius: 12px;
  background: rgba(124, 92, 255, 0.14);
  color: #b9a6ff;
}

.info-card h4 { font-size: 0.86rem; color: var(--text-3); font-weight: 500; margin-bottom: 4px; letter-spacing: 0.04em; text-transform: uppercase; }
.info-card p, .info-card a { font-size: 0.97rem; color: var(--text); }
.info-card a:hover { color: var(--cyan); }

/* Self-contained location panel — no third-party map embed */
.locator {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: 380px;
  padding: clamp(22px, 3vw, 34px);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  background:
    radial-gradient(700px 380px at 72% 32%, rgba(124, 92, 255, 0.22), transparent 64%),
    radial-gradient(560px 320px at 20% 90%, rgba(33, 229, 192, 0.14), transparent 62%),
    var(--surface);
}

.locator__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.055) 1px, transparent 1px),
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 180px 180px, 180px 180px, 36px 36px, 36px 36px;
  mask-image: radial-gradient(ellipse 80% 80% at 60% 40%, #000 30%, transparent 82%);
}

.locator__road {
  position: absolute;
  background: rgba(255, 255, 255, 0.07);
  border-radius: 999px;
}

.locator__road--a { top: 0; bottom: 0; left: 58%; width: 18px; transform: rotate(9deg); }
.locator__road--b { left: 0; right: 0; top: 44%; height: 14px; transform: rotate(-3deg); }
.locator__road--c { left: 10%; right: 30%; top: 74%; height: 9px; transform: rotate(4deg); }

.locator__pin {
  position: absolute;
  top: 34%;
  left: 60%;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 0 6px rgba(33, 229, 192, 0.18), 0 0 26px rgba(33, 229, 192, 0.8);
  animation: pulse 2.4s ease-in-out infinite;
}

.locator__card {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
  padding: 20px 22px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-md);
  background: rgba(10, 10, 16, 0.82);
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow-lg);
}

.locator__card h3 { margin-bottom: 4px; }
.locator__card p { color: var(--text-2); font-size: 0.92rem; }
.locator__card .btn { margin-left: auto; }

/* ---------- Page header (inner pages) ---------- */
.page-head {
  position: relative;
  padding-block: calc(var(--nav-h) + 74px) 64px;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(900px 460px at 20% 0%, rgba(124, 92, 255, 0.24), transparent 62%),
    radial-gradient(760px 420px at 88% 20%, rgba(33, 229, 192, 0.14), transparent 62%),
    var(--bg);
}

.page-head::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 58px 58px;
  mask-image: radial-gradient(ellipse 70% 90% at 40% 20%, #000, transparent 76%);
  pointer-events: none;
}

.page-head > * { position: relative; }

.crumbs {
  display: flex;
  gap: 9px;
  align-items: center;
  font-size: 0.83rem;
  color: var(--text-3);
  margin-bottom: 18px;
}

.crumbs a:hover { color: var(--cyan); }

/* ---------- Team ---------- */
.member {
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--surface);
  transition: transform 0.42s var(--ease), border-color 0.35s ease, box-shadow 0.4s var(--ease);
}

.member:hover {
  transform: translateY(-8px);
  border-color: rgba(124, 92, 255, 0.45);
  box-shadow: var(--shadow-glow);
}

.member__art {
  position: relative;
  aspect-ratio: 4 / 3.4;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-size: 2.6rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.9);
  letter-spacing: -0.04em;
}

.member__art--1 { background: linear-gradient(150deg, #3a2a86, #131442); }
.member__art--2 { background: linear-gradient(150deg, #0c4a48, #10203f); }
.member__art--3 { background: linear-gradient(150deg, #5a3418, #2a1338); }
.member__art--4 { background: linear-gradient(150deg, #4a1740, #171340); }

.member__art::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 70% 20%, rgba(255, 255, 255, 0.14), transparent 55%);
}

.member__body { padding: 22px; }
.member__body span { font-size: 0.83rem; color: var(--cyan); display: block; margin-bottom: 9px; }
.member__body p { font-size: 0.9rem; color: var(--text-2); margin-top: 9px; }

/* ---------- Timeline ---------- */
.timeline {
  position: relative;
  display: grid;
  gap: 4px;
  padding-left: 30px;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 5px;
  top: 10px;
  bottom: 10px;
  width: 1px;
  background: linear-gradient(180deg, var(--violet), var(--cyan), transparent);
}

.timeline__item { position: relative; padding: 18px 0; }

.timeline__item::before {
  content: "";
  position: absolute;
  left: -30px;
  top: 26px;
  width: 11px; height: 11px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--violet);
  box-shadow: 0 0 0 4px rgba(124, 92, 255, 0.14);
}

.timeline__year {
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--cyan);
  margin-bottom: 6px;
}

.timeline__item p { color: var(--text-2); margin-top: 7px; font-size: 0.95rem; }

/* ---------- Pricing / compare table ---------- */
.tiers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }

.tier {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.012));
  transition: transform 0.4s var(--ease), border-color 0.3s ease;
}

.tier:hover { transform: translateY(-6px); }

.tier--featured {
  border-color: rgba(124, 92, 255, 0.55);
  box-shadow: var(--shadow-glow);
  background:
    radial-gradient(500px 260px at 50% 0%, rgba(124, 92, 255, 0.22), transparent 65%),
    linear-gradient(165deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.012));
}

.tier__badge {
  position: absolute;
  top: -12px; left: 50%;
  translate: -50% 0;
  padding: 5px 15px;
  border-radius: 999px;
  background: var(--grad-brand);
  color: #07070c;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.tier__price {
  font-family: var(--font-display);
  font-size: 2.7rem;
  font-weight: 700;
  letter-spacing: -0.045em;
  margin: 14px 0 4px;
}

.tier__price span { font-size: 0.9rem; font-weight: 500; color: var(--text-3); letter-spacing: 0; }

.tier ul { display: grid; gap: 12px; margin: 26px 0; flex: 1; }

.tier li {
  display: flex;
  gap: 11px;
  font-size: 0.92rem;
  color: var(--text-2);
  align-items: flex-start;
}

/* ---------- Footer ---------- */
.footer {
  position: relative;
  padding-block: clamp(56px, 7vw, 84px) 30px;
  border-top: 1px solid var(--line);
  background:
    radial-gradient(900px 420px at 50% 100%, rgba(124, 92, 255, 0.13), transparent 65%),
    var(--bg-2);
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: clamp(28px, 4vw, 56px);
  padding-bottom: 46px;
  border-bottom: 1px solid var(--line);
}

.footer__brand p {
  margin: 18px 0 22px;
  color: var(--text-2);
  font-size: 0.93rem;
  max-width: 34ch;
}

.footer h5 {
  font-size: 0.78rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 18px;
  font-weight: 600;
}

.footer__links { display: grid; gap: 11px; }

.footer__links a {
  font-size: 0.93rem;
  color: var(--text-2);
  transition: color 0.22s ease, transform 0.25s var(--ease);
  width: fit-content;
}

.footer__links a:hover { color: var(--text); transform: translateX(3px); }

.appbadges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.appbadge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 9px 15px 9px 13px;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--text);
  transition: background-color 0.25s ease, border-color 0.25s ease, transform 0.3s var(--ease);
}

.appbadge:hover {
  background: rgba(124, 92, 255, 0.16);
  border-color: rgba(124, 92, 255, 0.5);
  transform: translateY(-3px);
}

.appbadge svg { width: 20px; height: 20px; flex-shrink: 0; }

.appbadge span { display: grid; line-height: 1.2; }

.appbadge small {
  font-size: 0.62rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--text-3);
}

.appbadge strong {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.socials { display: flex; gap: 9px; }

.socials a {
  width: 38px; height: 38px;
  display: grid; place-items: center;
  border: 1px solid var(--line);
  border-radius: 11px;
  color: var(--text-2);
  transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease, transform 0.3s var(--ease);
}

.socials a:hover {
  background: rgba(124, 92, 255, 0.16);
  border-color: rgba(124, 92, 255, 0.5);
  color: #fff;
  transform: translateY(-3px);
}

.footer__compliance {
  padding-top: 30px;
  padding-bottom: 26px;
  border-bottom: 1px solid var(--line);
}

.footer__entity {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 20px 32px;
  margin: 0 0 22px;
}

.footer__entity dt {
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 6px;
}

.footer__entity dd {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-2);
}

.footer__entity a { color: var(--cyan); }

.footer__entity a:hover { text-decoration: underline; }

.footer__disclaimer {
  margin: 0;
  max-width: 92ch;
  font-size: 0.79rem;
  line-height: 1.65;
  color: var(--text-3);
}

.footer__disclaimer + .footer__disclaimer { margin-top: 10px; }

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  padding-top: 26px;
  font-size: 0.85rem;
  color: var(--text-3);
}

.footer__legal { display: flex; flex-wrap: wrap; gap: 20px; }

.footer__legal button {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  color: var(--text-3);
  font-size: 0.85rem;
  transition: color 0.22s ease;
}

.footer__legal button:hover { color: var(--cyan); }

/* ---------- Newsletter ---------- */
.subscribe {
  display: flex;
  gap: 10px;
  max-width: 440px;
}

.subscribe input {
  flex: 1;
  padding: 13px 17px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  font-size: 0.92rem;
}

.subscribe input:focus {
  outline: none;
  border-color: rgba(33, 229, 192, 0.6);
  box-shadow: 0 0 0 4px rgba(33, 229, 192, 0.12);
}

/* ---------- Modal ---------- */
.modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(4, 4, 8, 0.78);
  backdrop-filter: blur(8px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s;
}

.modal.is-open { opacity: 1; visibility: visible; }

.modal__box {
  width: min(760px, 100%);
  max-height: 82vh;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-lg);
  background: var(--surface);
  box-shadow: var(--shadow-lg);
  transform: translateY(16px) scale(0.98);
  transition: transform 0.36s var(--ease);
}

.modal.is-open .modal__box { transform: translateY(0) scale(1); }

.modal__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 26px;
  border-bottom: 1px solid var(--line);
}

.modal__close {
  width: 36px; height: 36px;
  display: grid; place-items: center;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: none;
  cursor: pointer;
  color: var(--text-2);
  transition: background-color 0.22s ease, color 0.22s ease;
}

.modal__close:hover { background: rgba(255, 255, 255, 0.08); color: var(--text); }

.modal__body {
  padding: 26px;
  overflow-y: auto;
  color: var(--text-2);
  font-size: 0.93rem;
}

.modal__body h4 { color: var(--text); margin: 22px 0 8px; }
.modal__body h4:first-child { margin-top: 0; }
.modal__body p { margin-bottom: 12px; }
.modal__body ul { display: grid; gap: 8px; padding-left: 18px; list-style: disc; }

/* ---------- Scroll progress + to-top ---------- */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 2px;
  width: 0;
  z-index: 120;
  background: var(--grad-brand);
  transition: width 0.1s linear;
}

.to-top {
  position: fixed;
  right: 22px; bottom: 22px;
  z-index: 90;
  width: 46px; height: 46px;
  display: grid; place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: rgba(16, 16, 25, 0.9);
  backdrop-filter: blur(12px);
  color: var(--text);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 0.3s ease, transform 0.35s var(--ease), visibility 0.3s, background-color 0.25s ease;
}

.to-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.to-top:hover { background: rgba(124, 92, 255, 0.3); }

/* ---------- Scroll reveal ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.75s var(--ease), transform 0.75s var(--ease);
  transition-delay: var(--delay, 0ms);
  will-change: opacity, transform;
}

[data-reveal].is-in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .hero__inner { grid-template-columns: 1fr; }
  .hero__visual { max-width: 560px; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .stats-band { grid-template-columns: repeat(2, 1fr); }
  .bento > *:nth-child(n) { grid-column: span 3; }
}

@media (max-width: 900px) {
  .nav__links { display: none; }
  .nav__actions .btn--primary { display: none; }
  .nav__burger { display: grid; margin-left: auto; }
  .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .split { grid-template-columns: 1fr; }
  .split--reverse .split__media { order: 0; }
  .tiers { grid-template-columns: 1fr; }
  .float-card--tl { left: -8px; top: -40px; }
  .float-card--br { right: -6px; bottom: -40px; }
}

@media (max-width: 640px) {
  :root { --nav-h: 66px; }
  .grid--3,
  .grid--4,
  .grid--2 { grid-template-columns: 1fr; }
  .bento > *:nth-child(n) { grid-column: span 6; }
  .form__row { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; }
  .stats-band { grid-template-columns: 1fr; }
  .hero { min-height: auto; }
  .hero__cta .btn { width: 100%; }
  .float-card { display: none; }
  .acc__inner p { padding-right: 10px; }
  .subscribe { flex-direction: column; }
  .subscribe input { border-radius: var(--r-sm); }
  .subscribe .btn { border-radius: var(--r-sm); }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  [data-reveal] { opacity: 1; transform: none; }
}
