/* ==========================================================================
   ORIA — Landing page
   Mobile-first. Breakpoints: 768px (tablet), 1024px (desktop), 1440px (design)
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
  --bg: #000;
  --surface: #0e0e0e;
  --surface-2: #161616;
  --line: rgba(255, 255, 255, 0.16);
  --line-strong: rgba(255, 255, 255, 0.55);
  --text: #f2f2f2;
  --text-soft: #cfcfcf;
  --muted: #828282;
  --accent: #1ad99d;
  --mint: #9ff5d6;
  --mint-deep: #3ee2a8;

  --font-display: "Brygada 1918", Georgia, "Times New Roman", serif;
  --font-body: "Cabin", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --fs-body: 1rem;               /* 16 */
  --fs-h1: clamp(2.75rem, 1.9rem + 3.2vw, 4rem);       /* 44 → 64 */
  --fs-h2: clamp(2.25rem, 1.6rem + 2.6vw, 3.5rem);     /* 36 → 56 */
  --fs-xl: clamp(2.25rem, 1.4rem + 3.2vw, 4rem);       /* 36 → 64 */
  --fs-lg: clamp(1.75rem, 1.35rem + 1.5vw, 2.625rem);  /* 28 → 42 */
  --fs-md: clamp(1.75rem, 1.45rem + 1vw, 2.5rem);      /* 28 → 40 */

  --gutter: max(20px, 4.45vw);
  --max: none;
  --radius: 20px;
  --radius-sm: 16px;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);

  --header-h: 60px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  overflow-x: hidden;
  overflow-x: clip;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
html:focus-within { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  overflow-x: clip;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, p, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
strong { font-weight: 600; }

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

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

.skip-link {
  position: fixed;
  top: 12px; left: 12px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 999px;
  background: #fff;
  color: #000;
  transform: translateY(-200%);
  transition: transform 0.3s var(--ease-out);
}
.skip-link:focus { transform: none; }

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

/* ---------- Type ---------- */
.h-display {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1;
  color: var(--text);
  /* Silver sheen used across the design */
  background: linear-gradient(180deg, #ffffff 0%, #d9d9d9 55%, #b9b9b9 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  /* room for descenders, otherwise background-clip crops them */
  padding-bottom: 0.12em;
  margin-bottom: -0.12em;
}
.h-display--xl { font-size: var(--fs-xl); }

/* ---------- Buttons & links ---------- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 56px;
  padding: 0 32px;
  border-radius: 999px;
  font-size: 1rem;
  font-weight: 500;
  white-space: nowrap;
  isolation: isolate;
  transition: transform 0.5s var(--ease-out), box-shadow 0.5s var(--ease-out);
}
.btn--primary {
  color: #000;
  background: linear-gradient(90deg, #ffffff 0%, #ffffff 22%, var(--mint) 62%, #5ee9b8 100%);
  background-size: 160% 100%;
  background-position: 0% 0;
  transition: transform 0.5s var(--ease-out), box-shadow 0.5s var(--ease-out), background-position 0.8s var(--ease-out);
}
.btn--primary:hover {
  transform: translateY(-2px);
  background-position: 100% 0;
  box-shadow: 0 10px 40px -10px rgba(26, 217, 157, 0.55), 0 0 0 1px rgba(159, 245, 214, 0.4);
}
.btn--primary:active { transform: translateY(0) scale(0.98); }
.btn svg { width: 22px; height: 22px; flex: none; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  font-size: 1rem;
  color: var(--accent);
}
.link-arrow span {
  background: linear-gradient(90deg, #086b4c 0%, #0f966c 35%, var(--accent) 60%, var(--mint) 100%);
  background-size: 200% 100%;
  background-position: 0 0;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  transition: background-position 0.8s var(--ease-out);
}
.link-arrow svg {
  width: 24px; height: 24px;
  transition: transform 0.5s var(--ease-out);
}
.link-arrow:hover span { background-position: 100% 0; }
.link-arrow:hover svg { transform: translateX(6px); }

.pill {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 0 24px;
  border-radius: 999px;
  background: #131313;
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 1rem;
  color: var(--text);
}
.pill::before {
  content: "";
  position: absolute;
  top: -1px; left: 50%;
  width: 56%;
  height: 2px;
  transform: translateX(-50%);
  border-radius: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  box-shadow: 0 0 12px var(--accent);
}

/* ==========================================================================
   Header / Nav
   ========================================================================== */
.site-header {
  position: fixed;
  inset: 16px 0 auto 0;
  z-index: 50;
  padding-inline: 16px;
  padding-top: env(safe-area-inset-top, 0px);
  pointer-events: none;
}
.nav, .mobile-menu { max-width: 600px; margin-inline: auto; pointer-events: auto; }

.nav {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  height: 64px;
  padding: 7px;
  border-radius: 999px;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0) 45%),
    rgba(28, 28, 28, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.06);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  backdrop-filter: blur(18px) saturate(140%);
  transition: transform 0.6s var(--ease-out);
}
.site-header.is-hidden .nav { transform: translateY(calc(-100% - 32px)); }
.site-header.is-hidden.menu-open .nav { transform: none; }

/* Menu button */
.nav__toggle {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  height: 100%;
  padding: 0 16px 0 20px;
  border-radius: 999px;
  font-size: 0.9375rem;
  color: #fff;
  transition: color 0.3s ease;
}
.nav__toggle:hover { color: var(--mint); }
.nav__icon { position: relative; width: 26px; height: 12px; }
.nav__icon i {
  position: absolute;
  left: 0;
  height: 1.5px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 0.45s var(--ease-out), opacity 0.3s ease, width 0.45s var(--ease-out), top 0.45s var(--ease-out);
}
.nav__icon i:nth-child(1) { top: 0; width: 100%; }
.nav__icon i:nth-child(2) { top: 5px; width: 70%; }
.nav__icon i:nth-child(3) { top: 10px; width: 100%; }
.nav__toggle:hover .nav__icon i:nth-child(2) { width: 100%; }

.nav__toggle[aria-expanded="true"] .nav__icon i:nth-child(1) { top: 5px; transform: rotate(45deg); }
.nav__toggle[aria-expanded="true"] .nav__icon i:nth-child(2) { opacity: 0; }
.nav__toggle[aria-expanded="true"] .nav__icon i:nth-child(3) { top: 5px; transform: rotate(-45deg); }

.nav__logo { display: block; width: 104px; }
.nav__logo img { width: 100%; }

.nav__cta { justify-self: end; min-height: 48px; padding: 0 22px; font-size: 0.9375rem; }

/* Dropdown */
.mobile-menu {
  margin-top: 8px;
  padding: 12px;
  border-radius: 28px;
  background: rgba(20, 22, 21, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.08);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  animation: menu-in 0.5s var(--ease-out);
}
.mobile-menu[hidden] { display: none; }
.mobile-menu li a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border-radius: 16px;
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: #e6e6e6;
  transition: background 0.3s ease, color 0.3s ease, padding 0.4s var(--ease-out);
}
.mobile-menu li a::after {
  content: "→";
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--accent);
  opacity: 0;
  transform: translateX(-8px);
  transition: opacity 0.3s ease, transform 0.4s var(--ease-out);
}
.mobile-menu li a:hover { background: rgba(255, 255, 255, 0.05); color: #fff; padding-left: 22px; }
.mobile-menu li a:hover::after { opacity: 1; transform: none; }

/* links cascade in */
.mobile-menu li { animation: menu-item 0.5s var(--ease-out) both; }
.mobile-menu li:nth-child(2) { animation-delay: 0.04s; }
.mobile-menu li:nth-child(3) { animation-delay: 0.08s; }
.mobile-menu li:nth-child(4) { animation-delay: 0.12s; }
.mobile-menu li:nth-child(5) { animation-delay: 0.16s; }
.mobile-menu li:nth-child(6) { animation-delay: 0.2s; }

@keyframes menu-in { from { opacity: 0; transform: translateY(-8px) scale(0.98); } }
@keyframes menu-item { from { opacity: 0; transform: translateY(8px); } }

@media (max-width: 479px) {
  .nav { height: 58px; padding: 5px; }
  .nav__toggle { padding: 0 8px 0 14px; gap: 10px; }
  .nav__toggle-label { display: none; }
  .nav__logo { width: 88px; }
  .nav__cta { min-height: 46px; padding: 0 16px; font-size: 0.875rem; }
}
@media (min-width: 768px) {
  .site-header { inset-block-start: 20px; }
  .nav { height: 74px; padding: 12px; }
  .nav__logo { width: 121px; }
  .nav__cta { min-height: 50px; padding: 0 30px; }
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative;
  padding-top: calc(var(--header-h) + 32px);
}
.hero__media {
  position: relative;
  margin-inline: -30% -45%;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 22%, #000 70%, transparent 100%);
  mask-image: linear-gradient(180deg, transparent 0%, #000 22%, #000 70%, transparent 100%);
}
.hero__parallax { will-change: transform; }
.hero__cards { width: 100%; }

.hero__inner {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 40px;
  margin-top: -18vw;
}
.hero__main { order: 1; }
.hero__intro { order: 2; max-width: 30rem; }

.hero__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: var(--fs-h1);
  line-height: 1;
  letter-spacing: -0.01em;
}
.hero__title .line { display: block; overflow: hidden; padding-bottom: 0.08em; margin-bottom: -0.08em; }
.hero__title .line__inner {
  display: block;
  background: linear-gradient(180deg, #ffffff 0%, #d4d4d4 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero__title .line:nth-child(2) .line__inner { background-image: linear-gradient(180deg, #e8e8e8 0%, #bdbdbd 100%); }
.hero__cta { margin-top: 40px; }

.hero__intro p {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.5;
}
.hero__intro strong { color: #fff; }
.hero__intro .link-arrow { margin-top: 24px; }

.partners {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  margin-top: 80px;
  padding-bottom: 36px;
  border-bottom: 1px solid var(--line);
}
.partners__label { font-size: 1.125rem; color: #bdbdbd; }
.partners__list {
  display: grid;
  grid-template-columns: repeat(2, auto);
  gap: 20px 40px;
}
.partners__list li {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--muted);
  transition: color 0.4s ease;
}
.partners__list img {
  width: auto;
  height: 32px;
  opacity: 0.45;
  transition: opacity 0.4s ease, transform 0.6s var(--ease-out);
}
.partners__list li:hover { color: #fff; }
.partners__list li:hover img { opacity: 1; transform: translateY(-2px); }

@media (min-width: 768px) {
  .partners { flex-direction: row; justify-content: center; gap: 44px; margin-top: 120px; }
  .partners__label { font-size: 1.25rem; }
  .partners__list { display: flex; gap: 40px; }
  .partners__list img { height: 41px; }
  .partners__list li:nth-child(3) img, .partners__list li:nth-child(4) img { height: 32px; }
}

@media (min-width: 1024px) {
  .hero { padding-top: 0; }
  .hero__media {
    position: absolute;
    inset: 0 0 auto 0;
    margin: 0;
    -webkit-mask-image: linear-gradient(180deg, rgba(0,0,0,.15) 0%, #000 30%, #000 62%, transparent 100%);
    mask-image: linear-gradient(180deg, rgba(0,0,0,.15) 0%, #000 30%, #000 62%, transparent 100%);
  }
  .hero__inner {
    display: block;
    margin-top: 0;
    min-height: 55.8vw;
    padding-top: clamp(96px, 9.2vw, 132px);
  }
  .hero__intro {
    position: absolute;
    top: clamp(96px, 9.2vw, 132px);
    right: var(--gutter);
    width: clamp(260px, 21vw, 302px);
  }
  .hero__main {
    padding-top: clamp(260px, 22vw, 322px);
  }
  .partners { margin-top: clamp(80px, 11vw, 158px); }
}

/* ==========================================================================
   Trust
   ========================================================================== */
.trust { padding-top: clamp(96px, 13vw, 190px); }
.trust__stage { position: relative; }
.trust__title { font-size: var(--fs-h2); max-width: 8.6em; }
.trust__visual { position: relative; margin: 32px -10% 0; }
.trust__visual img {
  position: relative;
  width: 100%;
  will-change: transform;
  -webkit-mask-image: linear-gradient(180deg, #000 70%, transparent 98%);
  mask-image: linear-gradient(180deg, #000 70%, transparent 98%);
}
.trust__glow {
  position: absolute;
  inset: 5% 15% 25%;
  background: radial-gradient(closest-side, rgba(26, 217, 157, 0.7), rgba(26, 217, 157, 0.18) 55%, transparent);
  filter: blur(30px);
  opacity: 1;
}

.trust__stats { display: grid; gap: 16px; margin-top: -8%; position: relative; }
.stat {
  padding: 20px 16px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.18);
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.12) 0%, rgba(255, 255, 255, 0.03) 45%, rgba(255, 255, 255, 0.06) 100%),
    rgba(18, 18, 18, 0.55);
  -webkit-backdrop-filter: blur(16px) saturate(130%);
  backdrop-filter: blur(16px) saturate(130%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transition: transform 0.6s var(--ease-out), border-color 0.4s ease, box-shadow 0.6s var(--ease-out);
}
.stat:hover {
  transform: translateY(-4px);
  border-color: rgba(159, 245, 214, 0.45);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 20px 50px -20px rgba(26, 217, 157, 0.45);
}
.stat__icon { width: 24px; height: 24px; margin-bottom: 12px; }
.stat__value {
  font-family: var(--font-display);
  font-size: var(--fs-md);
  line-height: 1.1;
  color: #e6e6e6;
}
.stat__label { margin-top: 12px; font-size: 0.9375rem; color: var(--muted); }

@media (min-width: 640px) {
  .trust__stats { grid-template-columns: repeat(3, 1fr); }
}

/* Desktop: absolute composition matching the 1440 design */
@media (min-width: 1024px) {
  .trust__stage { aspect-ratio: 1312 / 674; }
  .trust__title { position: absolute; top: 0; left: 0; width: 35%; z-index: 2; }
  .trust__visual {
    position: absolute;
    left: 17.9%; top: 5.8%;
    width: 63.9%;
    margin: 0;
  }
  .trust__stats { display: contents; }
  .stat { position: absolute; width: 26.6%; z-index: 3; }
  .stat--licensed { left: 61.8%; top: 27.4%; }
  .stat--users    { left: 10.3%; top: 52.7%; }
  .stat--rated    { left: 44.3%; top: 75.8%; }
  .stat__label { font-size: 1rem; }
}

/* ==========================================================================
   Pinned sections (shared)
   ========================================================================== */
.pin-section { position: relative; height: var(--pin-h, 250vh); }
.pin {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

/* ---------- Statement ---------- */
.statement { --pin-h: 220vh; }
.statement__text {
  max-width: 21em;
  margin-inline: auto;
  text-align: center;
  font-size: var(--fs-lg);
  line-height: 1.19;
  /* words handle their own colour */
  background: none;
  -webkit-text-fill-color: currentColor;
  color: #f7f7f7;
}
.statement__text .w {
  opacity: calc(0.3 + var(--w, 0) * 0.7);
  transition: opacity 0.25s linear;
}

/* ---------- Steps ---------- */
.steps { --pin-h: 300vh; }
.steps__grid {
  display: grid;
  grid-template-columns: 1fr;
  grid-template-areas: "title" "nav" "panels";
  gap: 40px;
  align-items: center;
}
.steps__title { grid-area: title; font-size: var(--fs-lg); line-height: 1; max-width: 9em; }

.steps__panels { grid-area: panels; display: grid; min-height: 15rem; }
.step {
  grid-area: 1 / 1;
  opacity: 0;
  visibility: hidden;
  transform: translate3d(0, 32px, 0);
  filter: blur(6px);
  transition: opacity 0.7s var(--ease-out), transform 0.9s var(--ease-out), filter 0.7s var(--ease-out), visibility 0s linear 0.7s;
}
.step.is-active {
  opacity: 1;
  visibility: visible;
  transform: none;
  filter: none;
  transition: opacity 0.8s var(--ease-out) 0.1s, transform 1s var(--ease-out) 0.1s, filter 0.8s var(--ease-out) 0.1s, visibility 0s;
}
.step.is-leaving { transform: translate3d(0, -32px, 0); }
.step__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: var(--fs-xl);
  line-height: 1.05;
  background: linear-gradient(180deg, #fff, #cfcfcf);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.step__body { margin-top: 24px; color: var(--muted); max-width: 31rem; }

.steps__nav {
  grid-area: nav;
  position: relative;
  display: flex;
  gap: 32px;
  padding-bottom: 20px;
}
.steps__num {
  font-family: var(--font-display);
  font-size: 1.75rem;
  line-height: 1;
  color: #3f3f3f;
  transition: color 0.5s ease;
}
.steps__num:hover { color: #8a8a8a; }
.steps__num.is-active { color: #e6e6e6; }
.steps__track {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.35) 15%, rgba(255, 255, 255, 0.35) 85%, transparent);
}
.steps__dot {
  position: absolute;
  top: 50%; left: 0;
  width: 26px; height: 26px;
  margin: -13px 0 0 -13px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--accent) 0 5px, #0b3a2b 6px, #151515 7px 100%);
  border: 1px solid rgba(255, 255, 255, 0.35);
  box-shadow: 0 0 16px rgba(26, 217, 157, 0.45);
  transform: translateX(var(--dot-x, 0px));
  transition: transform 0.8s var(--ease-out);
}

@media (min-width: 1024px) {
  .steps__grid {
    grid-template-columns: 1fr minmax(0, 540px) 1fr;
    grid-template-areas: "title panels nav";
    gap: 32px;
  }
  .steps__panels { text-align: center; min-height: 0; }
  .step__body { margin-inline: auto; }
  .steps__nav {
    justify-self: end;
    flex-direction: column;
    gap: 87px;
    padding: 0 0 0 57px;
    margin-right: 30px;
  }
  .steps__num { font-size: var(--fs-lg); }
  .steps__track {
    left: 0; right: auto;
    top: -20px; bottom: -20px;
    width: 1px; height: auto;
    background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.35) 12%, rgba(255, 255, 255, 0.35) 88%, transparent);
  }
  .steps__dot { top: 0; left: 50%; transform: translateY(var(--dot-y, 0px)); }
}
@media (min-width: 1024px) and (max-width: 1279px) {
  .steps__grid { grid-template-columns: 1fr minmax(0, 420px) 1fr; }
  .steps__title { font-size: 2rem; }
  .steps__nav { margin-right: 0; }
}
@media (max-width: 1023px) {
  .steps__nav { justify-content: space-between; }
}

/* ---------- Tap scene (two hands) ---------- */
.tap { --pin-h: 320vh; }
.tap__stage {
  position: relative;
  width: 100%;
  height: 100%;
  opacity: var(--tap-o, 1);
  transform: scale(var(--tap-s, 1));
  will-change: opacity, transform;
}
.tap__hand {
  position: absolute;
  top: 0; left: 0;
  width: var(--w);
  max-width: none;
  transform: translate3d(var(--x), var(--y), 0) rotate(var(--r, 0deg));
  will-change: transform;
}
.tap__glow {
  position: absolute;
  left: var(--gx, 50%); top: var(--gy, 40%);
  width: var(--gs, 40vw); aspect-ratio: 1.4;
  transform: translate(-50%, -50%);
  background: radial-gradient(closest-side, rgba(26, 217, 157, 0.2), rgba(26, 217, 157, 0.05) 60%, transparent);
  filter: blur(20px);
  opacity: var(--glow, 0);
  pointer-events: none;
}
.tap__hand--terminal { z-index: 1; }
.tap__hand--card { z-index: 2; }

/* ==========================================================================
   Features
   ========================================================================== */
.features { padding-top: clamp(64px, 8vw, 120px); }
.section-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
}
.section-head .h-display { max-width: 13em; }

.features__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-top: clamp(40px, 6vw, 82px);
}
.feature {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: var(--surface);
  isolation: isolate;
  transition: border-color 0.5s ease, transform 0.7s var(--ease-out);
}
.feature::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(120% 80% at 90% 0%, rgba(255, 255, 255, 0.1), transparent 55%);
  opacity: 0;
  transition: opacity 0.6s ease;
}
.feature:hover { border-color: rgba(255, 255, 255, 0.7); }
.feature:hover::before { opacity: 1; }

.feature__media {
  flex: 1;
  min-height: 240px;
  display: grid;
  place-items: center;
  padding: 16px;
}
.feature__media img {
  width: 100%;
  height: 100%;
  max-height: 380px;
  object-fit: contain;
  transition: transform 1s var(--ease-out);
}
.feature:hover .feature__media img { transform: scale(1.04); }

.feature__body { padding: 0 20px 20px; }
.feature__tag { color: var(--accent); font-size: 1rem; }
.feature__title {
  margin-top: 8px;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: var(--fs-md);
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: #e0e0e0;
}
.feature__text { margin-top: 16px; color: var(--muted); max-width: 36rem; }

@media (min-width: 768px) {
  .features__grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .feature--wide { grid-column: 1 / -1; }
  .feature--span-4:last-child { grid-column: 1 / -1; }
}
@media (min-width: 1024px) {
  .features__grid { grid-template-columns: repeat(12, 1fr); gap: 21px; }
  .feature--wide {
    grid-column: 1 / -1;
    flex-direction: row;
    align-items: center;
    min-height: 389px;
  }
  .feature--wide .feature__media { flex: 0 0 50%; align-self: stretch; }
  .feature--wide .feature__body { flex: 1; padding: 0 40px 0 0; }
  .feature--span-7 { grid-column: span 7; min-height: 586px; }
  .feature--span-5 { grid-column: span 5; min-height: 586px; }
  .feature--span-4, .feature--span-4:last-child { grid-column: span 4; min-height: 607px; }
}

/* ==========================================================================
   Cards
   ========================================================================== */
.cards { padding-block: clamp(96px, 12vw, 190px) clamp(96px, 14vw, 200px); }
.cards__grid {
  display: grid;
  gap: 48px;
}
.cards__left { display: flex; flex-direction: column; align-items: center; gap: 32px; }
.cards__right {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
}

.tabs {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  width: min(100%, 400px);
  padding: 4px;
  border-radius: 999px;
  background: linear-gradient(180deg, #1c1c1c, #070707);
  border: 1px solid rgba(255, 255, 255, 0.12);
}
.tabs__indicator {
  position: absolute;
  top: 4px; bottom: 4px; left: 4px;
  width: calc(50% - 4px);
  border-radius: 999px;
  background: linear-gradient(180deg, #ffffff 0%, #c9c9c9 55%, #efefef 100%);
  box-shadow: 0 4px 18px rgba(255, 255, 255, 0.12);
  transition: transform 0.6s var(--ease-out);
}
.tabs[data-active="elite"] .tabs__indicator { transform: translateX(100%); }
.tabs__btn {
  position: relative;
  z-index: 1;
  height: 48px;
  border-radius: 999px;
  font-size: 1rem;
  color: var(--text-soft);
  transition: color 0.4s ease;
}
.tabs__btn:hover { color: #fff; }
.tabs__btn[aria-selected="true"] { color: #000; }

.cards__visual {
  position: relative;
  width: 100%;
  max-width: 636px;
  aspect-ratio: 636 / 543;
}
.card-img {
  position: absolute;
  max-width: none;
  transition: opacity 0.7s var(--ease-out), transform 0.9s var(--ease-out), filter 0.7s ease;
  will-change: transform, opacity;
}
.card-img--standard { left: 3.6%; top: 0; width: 66.7%; z-index: 2; }
.card-img--elite { left: 28.8%; top: 37.4%; width: 62.9%; z-index: 1; opacity: 0.2; }

.cards__visual[data-active="elite"] .card-img--standard { opacity: 0.2; z-index: 1; transform: translate3d(-2%, 2%, 0) scale(0.97); }
.cards__visual[data-active="elite"] .card-img--elite { opacity: 1; z-index: 2; transform: translate3d(-4%, -6%, 0) rotate(-2deg) scale(1.03); }
.cards__visual[data-active="standard"] .card-img--standard:hover,
.cards__visual[data-active="elite"] .card-img--elite:hover { filter: brightness(1.08); }

.price-panel {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  width: 100%;
  max-width: 600px;
  margin-top: 24px;
  padding: 20px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.16);
  background:
    radial-gradient(90% 120% at 55% 0%, rgba(255, 255, 255, 0.1), transparent 60%),
    linear-gradient(135deg, #1b1b1b 0%, #0b0b0b 100%);
  text-align: left;
}
.price-panel__info { display: grid; gap: 8px; justify-items: start; }
.price-panel__name { color: var(--accent); }
.price-panel__price {
  font-family: var(--font-display);
  font-size: var(--fs-md);
  line-height: 1.1;
  background: linear-gradient(90deg, #fff 0%, #fff 45%, var(--mint) 70%, var(--mint-deep) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.price-panel__chip {
  display: inline-flex;
  padding: 4px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  font-size: 0.9375rem;
  color: var(--text-soft);
}
.price-panel [data-field] { transition: opacity 0.35s ease, transform 0.5s var(--ease-out); }
.price-panel.is-swapping [data-field] { opacity: 0; transform: translateY(6px); }

.btn--buy {
  width: 100%;
  min-height: 62px;
  background: linear-gradient(90deg, #ffffff 0%, #ffffff 18%, #9ff5d6 55%, var(--mint-deep) 100%);
  background-size: 150% 100%;
}

@media (min-width: 640px) {
  .price-panel { flex-direction: row; align-items: center; justify-content: space-between; }
  .btn--buy { width: auto; min-width: 194px; }
}
@media (min-width: 1024px) {
  .cards__grid {
    grid-template-columns: minmax(0, 40rem) minmax(0, 37.5rem);
    justify-content: center;
    column-gap: clamp(40px, 6vw, 120px);
    align-items: center;
  }
  .cards__left { gap: 42px; }
  .cards__right { padding-top: 0; }
}
@media (max-width: 1023px) {
  .cards__left .tabs { order: 1; }
}

/* ==========================================================================
   Security
   ========================================================================== */
.security { padding-top: clamp(96px, 12vw, 180px); }
.security__grid { display: grid; gap: 48px; align-items: center; }
.security__content .h-display { max-width: 9.5em; }
.security__text { margin-top: 24px; max-width: 30rem; color: var(--muted); }

.security__list { display: grid; gap: 14px; margin-top: 48px; max-width: 30rem; }
.security__list li {
  display: grid;
  grid-template-columns: 24px 1fr auto;
  align-items: center;
  gap: 16px;
  color: var(--accent);
  font-size: 1rem;
}
.security__list li::before {
  content: "";
  width: 24px;
  height: 24px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cdefs%3E%3ClinearGradient id='g' x1='0' y1='0' x2='0' y2='1'%3E%3Cstop offset='0' stop-color='%23ffffff'/%3E%3Cstop offset='1' stop-color='%239ff5d6'/%3E%3C/linearGradient%3E%3C/defs%3E%3Ccircle cx='12' cy='12' r='10.5' fill='none' stroke='url(%23g)' stroke-width='2'/%3E%3Cpath d='M7.5 12.3l3 3 6-6.3' fill='none' stroke='url(%23g)' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 100% no-repeat;
}
.security__list li::after {
  content: "";
  grid-column: 2;
  grid-row: 1;
  height: 1px;
  margin-right: 12px;
  background: rgba(255, 255, 255, 0.25);
}
.security__list li span {
  grid-column: 3;
  text-align: right;
  white-space: nowrap;
}

.security { position: relative; isolation: isolate; overflow: hidden; overflow: clip; }
.security__visual { position: relative; z-index: 0; }
.security__content { position: relative; z-index: 2; }
.security__visual img { width: 100%; will-change: transform; }
.security__glow {
  position: absolute;
  inset: 15%;
  background: radial-gradient(closest-side, rgba(26, 217, 157, 0.35), transparent);
  filter: blur(40px);
}

@media (min-width: 1441px) {
  .security__content {
    justify-self: end;
    width: min(100%, 46rem);
    padding-right: 4vw;
  }
  .security__content .h-display { max-width: 12em; }
  .security__text { max-width: 38rem; }
  .security__list { max-width: 42rem; }
}

/* Reveal: rise + scale + unblur, on top of the parallax */
.js .security__visual[data-reveal] {
  transform: translate3d(0, 80px, 0) scale(0.9);
  filter: blur(14px);
  transition: opacity 1.4s var(--ease-out), transform 1.8s var(--ease-out), filter 1.4s var(--ease-out);
}
.js .security__visual.is-in { transform: none; filter: none; }

.security__float {
  height: 100%;
  transform: translate3d(var(--mx, 0px), var(--my, 0px), 0) rotate(var(--mr, 0deg));
  transition: transform 1.2s var(--ease-out);
  will-change: transform;
}

.security::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 35%;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(180deg, transparent 0%, #000 100%);
}

.security__visual { order: -1; }

@media (max-width: 1023px) {
  .security__grid { gap: 0; }

  .security__content {
    margin-top: -35%;
    padding-block: 40px 24px;
  }

  /* same blurred black panel as desktop, behind the text */
  .security__content::before {
    content: "";
    position: absolute;
    z-index: -1;
    top: 0;
    bottom: 0;
    left: calc(var(--gutter) * -1);
    right: calc(var(--gutter) * -1);
    background: rgba(0, 0, 0, 0.55);
    -webkit-backdrop-filter: blur(24px);
    backdrop-filter: blur(24px);
  }

  .security__visual {
    width: 120%;
    margin-left: -10%;
    margin-top: -48px;
  }
}

@media (min-width: 1024px) {
  .security {
    display: flex;
    align-items: center;
    min-height: min(115vh, 1150px);
    padding-block: 120px;
    margin-block: 160px;   /* space above and below the section */
  }
  .security__grid { grid-template-columns: 1fr 1fr; gap: 0; }

  /* full image, bigger, nudged toward the center */
  .security__visual {
    position: absolute;
    top: 2%;
    bottom: 2%;
    left: 50%;
    translate: -22% 0;
  }
  .security__visual > div { height: 100%; }
  .security__visual img {
    height: 100%;
    width: auto;
    max-width: none;
  }

  /* black blurred panel on the left half */
  .security::before {
    content: "";
    position: absolute;
    inset: 0 50% 0 0;
    z-index: 1;
    background: rgba(0, 0, 0, 0.55);
    -webkit-backdrop-filter: blur(24px);
    backdrop-filter: blur(24px);
  }
}

/* ==========================================================================
   FAQ
   ========================================================================== */
.faq { padding-block: clamp(96px, 12vw, 180px); }
.faq__grid { display: grid; gap: 56px; }
.faq__intro .h-display { max-width: 9em; }

.faq__help {
  display: grid;
  gap: 24px;
  margin-top: 48px;
}
.faq__help-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.625rem, 1.4rem + 0.8vw, 2.25rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: #e6e6e6;
}
.faq__help p { margin-top: 12px; max-width: 28rem; color: var(--muted); }

.faq__list { display: grid; gap: 8px; }
.faq__item {
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  border-bottom-color: rgba(255, 255, 255, 0.1);
  transition: background 0.5s ease, border-color 0.5s ease, box-shadow 0.5s ease;
}
.faq__item.is-open {
  border-color: rgba(255, 255, 255, 0.55);
  background:
    radial-gradient(90% 120% at 50% 0%, rgba(255, 255, 255, 0.08), transparent 60%),
    linear-gradient(180deg, #1a1a1a 0%, #0c0c0c 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.faq__q {
  font-weight: 400;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: 100%;
  padding: 28px 24px;
  text-align: left;
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 1.1rem + 0.6vw, 1.625rem);
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: #e6e6e6;
  transition: color 0.3s ease;
}
.faq__q:hover { color: #fff; }
.faq__q svg {
  width: 22px;
  height: 22px;
  flex: none;
  transition: transform 0.5s var(--ease-out);
}
.faq__item.is-open .faq__q svg { transform: rotate(180deg); }

/* smooth height animation */
.faq__a {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.6s var(--ease-out);
}
.faq__a > div { overflow: hidden; }
.faq__a p {
  margin: 0 24px 28px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--muted);
  opacity: 0;
  transition: opacity 0.4s ease;
}
.faq__item.is-open .faq__a { grid-template-rows: 1fr; }
.faq__item.is-open .faq__a p { opacity: 1; transition-delay: 0.15s; }

@media (min-width: 1024px) {
  .faq__grid { grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); column-gap: clamp(48px, 6vw, 120px); align-items: start; }
  .faq__help { grid-template-columns: 1fr auto; align-items: center; margin-top: 88px; }
  .faq__q { padding: 32px 42px; }
  .faq__a p { margin-inline: 42px; }
}

.faq__item.is-open .faq__q svg path {
  stroke: url(#g-mint);
}

/* ==========================================================================
   CTA
   ========================================================================== */
.cta {
  position: relative;
  overflow: hidden;
  padding-block: clamp(96px, 12vw, 160px) clamp(140px, 16vw, 220px);
  text-align: center;
}
.cta__inner { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; }
.cta__mark { width: clamp(56px, 6vw, 80px); height: auto; margin-bottom: 32px; }
.cta__text { margin-top: 20px; color: var(--muted); }
.cta__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 56px; }
.cta__actions .btn { min-width: 160px; }

.btn--ghost {
  color: #fff;
  background: #000;
  border: 1px solid rgba(255, 255, 255, 0.18);
  transition: transform 0.5s var(--ease-out), border-color 0.4s ease, background 0.4s ease;
}
.btn--ghost:hover { transform: translateY(-2px); border-color: rgba(159, 245, 214, 0.6); background: #0b0b0b; }

.cta__aurora {
  position: absolute;
  left: 50%;
  top: 55%;          /* starts just below the subtext / buttons */
  width: 120vw;
  height: 160%;
  transform: translateX(-50%);
  pointer-events: none;
  filter: blur(60px);
  z-index: 0;
}
.cta__aurora span {
  position: absolute;
  top: 0;
  width: 26%;
  height: 100%;
  margin-left: -13%;   /* centers each glow on its left position */
  border-radius: 50%;
  mix-blend-mode: screen;
  opacity: 0.6;
  will-change: transform, opacity;
  transition-property: transform, opacity;
  transition-timing-function: cubic-bezier(0.45, 0, 0.55, 1);
}
.a-mint   { background: radial-gradient(closest-side, rgba(159, 245, 214, 0.8), transparent); }
.a-green  { background: radial-gradient(closest-side, rgba(26, 217, 157, 0.75), transparent); }
.a-silver { background: radial-gradient(closest-side, rgba(200, 210, 208, 0.55), transparent); }
.a-teal   { background: radial-gradient(closest-side, rgba(20, 150, 130, 0.8), transparent); }
.a-white  { background: radial-gradient(closest-side, rgba(235, 255, 248, 0.45), transparent); width: 30%; margin-left: -15%; }

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
  position: relative;
  z-index: 1;
  padding-block: 56px 40px;
  border-top: 1px solid rgba(159, 245, 214, 0.1);
  background: rgba(0, 0, 0, 0.01);
  -webkit-backdrop-filter: blur(24px);
  backdrop-filter: blur(24px);
  /*background: transparent; */
}
.footer__top { display: grid; gap: 40px; }
.footer__logo img { width: 139px; }
.footer__brand p { margin-top: 16px; font-size: 0.875rem; color: var(--muted); }

.footer__cols { display: grid; grid-template-columns: repeat(2, minmax(0, 160px)); gap: 24px; }
.footer__heading {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1rem;
  color: #9a9a9a;
  margin-bottom: 12px;
}
.footer__cols ul { display: grid; gap: 8px; }
.footer__cols a { font-size: 0.875rem; color: #d6d6d6; transition: color 0.3s ease; }
.footer__cols a:hover { color: var(--mint); }

.footer__social { display: flex; gap: 8px; }
.footer__social a {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #1a1a1a;
  border: 1px solid rgba(255, 255, 255, 0.12);
  transition: border-color 0.3s ease, transform 0.4s var(--ease-out);
}
.footer__social a:hover { border-color: rgba(159, 245, 214, 0.6); transform: translateY(-2px); }
.footer__social a { color: #fff; }
.footer__social a:hover { color: var(--mint); }
.footer__social svg { width: 16px; height: 16px; }
.footer__social svg:not([fill="none"]),
.footer__social svg [fill]:not([fill="none"]) { fill: currentColor !important; transition: fill 0.3s ease; }
.footer__social svg [stroke]:not([stroke="none"]) { stroke: currentColor !important; transition: stroke 0.3s ease; }

.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 56px;
  padding-top: 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 0.875rem;
  color: var(--muted);
}
.footer__totop { display: inline-flex; align-items: center; gap: 12px; color: #cfcfcf; }
.footer__totop-btn {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #111;
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #fff;
  transition: transform 0.5s var(--ease-out), border-color 0.3s ease;
}
.footer__totop-btn svg { width: 22px; height: 22px; }
.footer__totop:hover .footer__totop-btn { transform: translateY(-4px); border-color: rgba(159, 245, 214, 0.6); }

@media (min-width: 1024px) {
  .footer { padding-block: 64px 40px; }
  .footer__top { grid-template-columns: 1fr auto auto; column-gap: clamp(48px, 5vw, 64px); align-items: start; }
  .footer__cols { gap: 48px; }
}

/* ==========================================================================
   Motion: reveals & load sequence (only when JS is running)
   ========================================================================== */
.js [data-reveal] {
  opacity: 0;
  transform: translate3d(0, 48px, 0);
  transition: opacity 1.1s var(--ease-out), transform 1.3s var(--ease-out);
  transition-delay: var(--delay, 0ms);
}
.js [data-reveal].is-in { opacity: 1; transform: none; }
/* feature/stat hovers must not be delayed after reveal */
.js .feature.is-in, .js .stat.is-in { transition-delay: 0ms; }

.js .hero__title .line__inner { transform: translate3d(0, 110%, 0); }
.js .hero__cta, .js .hero__intro { opacity: 0; transform: translate3d(0, 24px, 0); }
.js .hero__media { opacity: 0; }
.js .hero__cards { transform: translate3d(6%, 4%, 0) scale(1.04); }

.is-loaded .hero__title .line__inner {
  transform: none;
  transition: transform 1.4s var(--ease-out);
}
.is-loaded .hero__title .line:nth-child(2) .line__inner { transition-delay: 0.1s; }
.is-loaded .hero__title .line:nth-child(3) .line__inner { transition-delay: 0.2s; }
.is-loaded .hero__cta { opacity: 1; transform: none; transition: opacity 1s ease 0.5s, transform 1.2s var(--ease-out) 0.5s; }
.is-loaded .hero__intro { opacity: 1; transform: none; transition: opacity 1s ease 0.7s, transform 1.2s var(--ease-out) 0.7s; }
.is-loaded .hero__media { opacity: 1; transition: opacity 1.6s ease; }
.is-loaded .hero__cards { transform: none; transition: transform 2.2s var(--ease-out); }

/* ---------- Reduced motion: no pinning, no parallax, content fully visible ---------- */
@media (prefers-reduced-motion: reduce) {
  html:focus-within { scroll-behavior: auto; }
  .pin-section { height: auto; }
  .pin { position: relative; height: auto; min-height: 0; padding-block: 96px; }
  .statement__text .w { opacity: 1; }
  .steps__panels { gap: 48px; }
  .step, .step.is-active { grid-area: auto; opacity: 1; visibility: visible; transform: none; filter: none; }
  .steps__nav { display: none; }
  .tap__stage { height: 70vw; max-height: 720px; }
  .js [data-reveal], .js .hero__title .line__inner, .js .hero__cta, .js .hero__intro, .js .hero__media, .js .hero__cards {
    opacity: 1; transform: none; transition: none;
  }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}
