/* =========================================================
   Ferro Card — landing page
   Fonts: Geist (body), Geist Mono (labels), Inter Tight (display)
   ========================================================= */

:root {
  --ink: #101010;
  --paper: #f3f4ee;
  --paper-2: #f5f4ef;
  --white: #ffffff;
  --accent: #f93f28;
  --accent-hover: #ff543e;
  --blue: #1c78b0;
  --red: #b01c1c;
  --pink: #ffe8e8;
  --glass: rgba(245, 245, 245, 0.1);
  --line-dark: rgba(255, 255, 255, 0.12);
  --line-light: rgba(16, 16, 16, 0.14);

  --f-display: "Inter Tight", "Geist", system-ui, sans-serif;
  --f-body: "Geist", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-mono: "Geist Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --pad-x: 100px;
  --max: 1225px;
}

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

html { -webkit-text-size-adjust: 100%; }
html, body { margin: 0; }
body {
  font-family: var(--f-body);
  color: var(--ink);
  background: var(--paper-2);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
body.menu-open { overflow: hidden; }

img, svg { display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, h4, h5, h6, p { margin: 0; }

/* ---------- type ---------- */
.mono {
  font-family: var(--f-mono);
  font-size: 13px;
  line-height: 1.2;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}
.h1 {
  font-family: var(--f-display);
  font-weight: 500;
  font-size: 65px;
  line-height: 1.1;
  letter-spacing: -0.05em;
}
.h2 {
  font-family: var(--f-display);
  font-weight: 500;
  font-size: 44px;
  line-height: 1.1;
  letter-spacing: -0.045em;
}
.h3 {
  font-family: var(--f-body);
  font-weight: 400;
  font-size: 36px;
  line-height: 1.1;
  letter-spacing: -0.05em;
}
.lead {
  font-size: 18px;
  line-height: 1.3;
  letter-spacing: -0.036em;
}
.body {
  font-size: 16px;
  line-height: 1.4;
  letter-spacing: -0.03em;
}
.center { text-align: center; margin-left: auto; margin-right: auto; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--f-mono);
  font-size: 13px;
  line-height: 1.2;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}
.eyebrow .sq {
  width: 10px; height: 10px;
  border: 1px solid currentColor;
  border-radius: 1px;
  flex: none;
}
.eyebrow--blue { color: var(--blue); }
.eyebrow--red { color: var(--red); }
.eyebrow--paper { color: var(--paper); }
.eyebrow--pink { color: var(--pink); }

/* ---------- roll (text swap on hover) ---------- */
.roll {
  position: relative;
  display: inline-block;
  overflow: hidden;
  height: 1.2em;
  line-height: 1.2;
  vertical-align: top;
}
.roll__a, .roll__b {
  display: block;
  transition: transform 0.5s var(--ease);
}
.roll__b { position: absolute; left: 0; top: 100%; }
a:hover .roll__a, a:hover .roll__b,
button:hover .roll__a, button:hover .roll__b { transform: translateY(-100%); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 50px;
  padding: 0 28px;
  font-family: var(--f-mono);
  font-size: 14px;
  letter-spacing: -0.02em;
  color: var(--white);
  border-radius: 1px;
  transition: background-color 0.3s var(--ease), transform 0.3s var(--ease);
  white-space: nowrap;
}
.btn:active { transform: scale(0.98); }
.btn--ghost { background: var(--glass); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.btn--ghost:hover { background: rgba(245, 245, 245, 0.16); }
.btn--accent { background: var(--accent); }
.btn--accent:hover { background: var(--accent-hover); }
.btn__icon { font-size: 15px; line-height: 1; }

/* ---------- reveal on scroll ---------- */
[data-reveal] {
  opacity: 0;
  filter: blur(8px);
  transform: translateY(24px);
  transition:
    opacity 0.9s var(--ease) var(--d, 0s),
    filter 0.9s var(--ease) var(--d, 0s),
    transform 0.9s var(--ease) var(--d, 0s);
}
[data-reveal].is-in { opacity: 1; filter: blur(0); transform: none; }

/* =========================================================
   HEADER
   ========================================================= */
.header {
  position: absolute;
  inset: 0 0 auto 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 34px;
  color: var(--white);
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--f-body);
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.05em;
}
.logo__mark { width: 22px; height: 22px; }
.logo--lg { font-size: 28px; }
.logo--lg .logo__mark { width: 26px; height: 26px; }

.menu-btn {
  position: relative;
  z-index: 70;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 34px;
  padding: 0 14px;
  background: var(--glass);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 1px;
  font-family: var(--f-mono);
  font-size: 13px;
  letter-spacing: -0.02em;
  color: var(--white);
  transition: background-color 0.3s var(--ease);
}
.menu-btn:hover { background: rgba(245, 245, 245, 0.16); }
.menu-btn__icon { font-size: 14px; line-height: 1; transition: transform 0.5s var(--ease); }
.menu-btn[aria-expanded="true"] .menu-btn__icon { transform: rotate(45deg); }
body.menu-open .header { position: fixed; }

.header__actions { position: relative; display: flex; align-items: center; gap: 8px; }

/* square icon button (X link) */
.icon-btn {
  position: relative;
  z-index: 70;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  background: var(--glass);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 1px;
  color: var(--white);
  transition: background-color 0.3s var(--ease);
}
.icon-btn:hover { background: rgba(245, 245, 245, 0.16); }
.icon-btn svg { width: 14px; height: 14px; transition: transform 0.4s var(--ease); }
.icon-btn:hover svg { transform: scale(1.14); }

/* Phantom wallet button */
.wallet-btn { padding-left: 8px; }
.wallet-btn__icon { position: relative; width: 20px; height: 20px; flex: none; }
.wallet-btn__icon svg { width: 100%; height: 100%; transition: transform 0.4s var(--ease); }
.wallet-btn:hover .wallet-btn__icon svg { transform: rotate(-8deg) scale(1.08); }
.wallet-btn__icon::after {
  content: "";
  position: absolute;
  right: -3px; top: -3px;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #3ddc84;
  box-shadow: 0 0 0 2px #0a0f24;
  transform: scale(0);
  transition: transform 0.4s var(--ease);
}
.wallet-btn.is-connected .wallet-btn__icon::after { transform: scale(1); }
.wallet-btn.is-busy { opacity: 0.7; pointer-events: none; }

/* "My card" header link */
.mycard-btn { gap: 8px; padding: 0 12px 0 10px; }
.mycard-btn__icon { width: 18px; height: 14px; flex: none; transition: transform 0.4s var(--ease); }
.mycard-btn:hover .mycard-btn__icon { transform: rotate(-8deg); }
.mycard-btn[aria-current="page"] { background: rgba(245, 245, 245, 0.2); }
.mycard-btn__count {
  display: grid;
  place-items: center;
  min-width: 17px;
  height: 17px;
  padding: 0 5px;
  font-size: 10px;
  line-height: 1;
  color: var(--white);
  background: var(--accent);
  border-radius: 9px;
}
.mycard-btn__count[hidden] { display: none; }

/* wallet dropdown (copy / switch / disconnect) */
.wallet-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 75;
  width: 280px;
  padding: 14px;
  color: var(--white);
  background: rgba(8, 12, 32, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 2px;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 20px 40px rgba(0, 0, 20, 0.45);
  animation: menuIn 0.25s var(--ease);
}
.wallet-menu[hidden] { display: none; }
@keyframes menuIn { from { opacity: 0; transform: translateY(-6px); } }
.wallet-menu__label { display: flex; align-items: center; gap: 8px; font-size: 11px; opacity: 0.75; }
.wallet-menu__addr {
  margin: 10px 0 12px;
  font-family: var(--f-mono);
  font-size: 12px;
  line-height: 1.45;
  letter-spacing: 0.01em;
  word-break: break-all;
  opacity: 0.92;
}
.wallet-menu button {
  display: block;
  width: 100%;
  padding: 10px 12px;
  text-align: left;
  font-size: 14px;
  letter-spacing: -0.02em;
  border-radius: 1px;
  transition: background-color 0.2s;
}
.wallet-menu button:hover, .wallet-menu button:focus-visible { background: rgba(255, 255, 255, 0.08); outline: none; }
.wallet-menu .is-danger { color: #ffb4a8; }
.wallet-menu__hint { margin-top: 10px; padding-top: 10px; font-size: 12px; line-height: 1.4; opacity: 0.55; border-top: 1px solid rgba(255, 255, 255, 0.1); }

/* =========================================================
   MENU OVERLAY
   ========================================================= */
.menu {
  position: fixed;
  inset: 0;
  z-index: 55;
  background: rgba(5, 8, 20, 0.86);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  color: var(--white);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s var(--ease), visibility 0.5s;
  overflow-y: auto;
}
.menu.is-open { opacity: 1; visibility: visible; }
.menu__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  padding: 100px 44px 60px;
}
.menu__cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.menu__col { display: flex; flex-direction: column; gap: 14px; }
.menu__col a {
  font-size: 16px;
  letter-spacing: -0.03em;
  display: inline-flex; align-items: center; gap: 8px;
  opacity: 0.92;
  transition: opacity 0.2s;
}
.menu__col a:hover { opacity: 0.6; }
.menu__title { opacity: 0.55; margin-bottom: 18px; }
.menu__posts { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.post { display: flex; flex-direction: column; gap: 14px; }
.post__img {
  aspect-ratio: 1 / 1;
  border-radius: 1px;
  overflow: hidden;
  transition: transform 0.6s var(--ease);
}
.post:hover .post__img { transform: scale(0.98); }
.post__img img { width: 100%; height: 100%; object-fit: cover; }
.post__img--a {
  background:
    radial-gradient(60% 50% at 30% 30%, #f4c9a0 0%, transparent 60%),
    radial-gradient(70% 60% at 80% 80%, #8b5a2b 0%, transparent 70%),
    linear-gradient(135deg, #d7a26d, #6c4a2e);
}
.post__img--b {
  background:
    radial-gradient(50% 40% at 70% 25%, #fff7e6 0%, transparent 70%),
    radial-gradient(60% 60% at 20% 80%, #3e5b4a 0%, transparent 70%),
    linear-gradient(160deg, #cfd6cc, #5d6f63);
}
.post__row { display: flex; justify-content: space-between; gap: 12px; }
.post__row h4 { font-weight: 400; font-size: 18px; letter-spacing: -0.036em; line-height: 1.3; }
.post__arrow { width: 14px; height: 14px; flex: none; margin-top: 4px; }
.post__cat { opacity: 0.55; font-size: 12px; }

.badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 6px;
  background: var(--glass);
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  border-radius: 1px;
  line-height: 1.2;
}

/* =========================================================
   HERO
   ========================================================= */
.hero {
  position: relative;
  background: linear-gradient(180deg,
    #00001e 0%, #010124 12.65%, #020e3a 29.96%,
    #0c2e63 48.7%, #3b78b3 68%, #ffffff 100%);
  color: var(--white);
  overflow: hidden;
}
.hero__content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 100px 24px 0;
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  height: 36px;
  padding: 0 14px;
  background: var(--glass);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 1px;
  margin-bottom: 30px;
  transition: background-color 0.3s var(--ease);
}
.pill:hover { background: rgba(245, 245, 245, 0.16); }
.pill__sq { width: 10px; height: 10px; background: var(--white); border-radius: 1px; }
.pill__chev { font-size: 20px; line-height: 1; transform: translateY(-1px); transition: transform 0.4s var(--ease); }
.pill:hover .pill__chev { transform: translate(3px, -1px); }
.hero .h1 { max-width: 900px; }
.hero__lead { max-width: 500px; margin-top: 20px; opacity: 0.86; }
.hero__ctas { display: flex; gap: 10px; margin-top: 30px; flex-wrap: wrap; justify-content: center; }

/* ----- hero visual ----- */
.hero-visual {
  position: relative;
  width: min(720px, 94vw);
  aspect-ratio: 1198 / 1060;           /* crops the photo just below the card */
  margin: 44px auto 0;
  overflow: hidden;
  -webkit-mask: linear-gradient(180deg, #000 0%, #000 78%, transparent 100%);
          mask: linear-gradient(180deg, #000 0%, #000 78%, transparent 100%);
}
.hero-photo {
  position: relative;
  transform: translate3d(0, var(--py, 0px), 0) scale(var(--ps, 1));
  transform-origin: 50% 40%;
  will-change: transform;
}
.hero-photo__img { width: 100%; height: auto; }

/* ----- card finishes: overlays aligned to the card in the 1198×1313 photo ----- */
.card-skins {
  position: absolute;
  left: calc(258 / 1198 * 100%);
  top: calc(464 / 1313 * 100%);
  width: calc(620 / 1198 * 100%);
  height: calc(396 / 1313 * 100%);
  --wipe: 1300ms;
  --wipe-ease: cubic-bezier(0.65, 0, 0.35, 1);
}
.skin {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  /* soft diagonal edge; sliding the mask reveals the finish from top-left to bottom-right */
  -webkit-mask-image: linear-gradient(135deg, #000 44%, transparent 56%);
          mask-image: linear-gradient(135deg, #000 44%, transparent 56%);
  -webkit-mask-size: 260% 260%;
          mask-size: 260% 260%;
  -webkit-mask-repeat: no-repeat;
          mask-repeat: no-repeat;
  -webkit-mask-position: 100% 100%;
          mask-position: 100% 100%;
}
.skin.is-current {
  opacity: 1;
  z-index: 1;
  -webkit-mask-position: 0 0;
          mask-position: 0 0;
}
.skin.is-entering {
  opacity: 1;
  z-index: 2;
  animation: skinWipe var(--wipe) var(--wipe-ease) forwards;
}
@keyframes skinWipe {
  from { -webkit-mask-position: 100% 100%; mask-position: 100% 100%; }
  to   { -webkit-mask-position: 0 0;       mask-position: 0 0; }
}

/* glint that rides along the wipe edge, clipped to the card shape */
.skin-sheen {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  opacity: 0;
  background: linear-gradient(135deg,
    transparent 41%, rgba(255, 255, 255, 0.12) 46%, rgba(255, 255, 255, 0.7) 50%,
    rgba(255, 255, 255, 0.12) 54%, transparent 59%) no-repeat;
  background-size: 260% 260%;
  background-position: 100% 100%;
  mix-blend-mode: screen;
  -webkit-mask: url("assets/card-black.webp") center / 100% 100% no-repeat;
          mask: url("assets/card-black.webp") center / 100% 100% no-repeat;
}
.skin-sheen.is-sweeping { animation: sheenSweep var(--wipe) var(--wipe-ease) forwards; }
@keyframes sheenSweep {
  0%   { background-position: 100% 100%; opacity: 0; }
  12%  { opacity: 1; }
  88%  { opacity: 1; }
  100% { background-position: 0 0; opacity: 0; }
}

.dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; flex: none; }
.dot--ok { background: #3ddc84; box-shadow: 0 0 0 3px rgba(61, 220, 132, 0.2); }

/* ----- stats ----- */
.stats {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  max-width: var(--max);
  margin: 0 auto;
  padding: 40px 24px 120px;
  color: var(--ink);
  text-align: center;
}
.stat__num {
  font-family: var(--f-display);
  font-weight: 400;
  font-size: 48px;
  letter-spacing: -0.05em;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}
.stat__label { font-size: 18px; line-height: 1.3; letter-spacing: -0.036em; margin-top: 16px; opacity: 0.8; }

/* =========================================================
   SECTIONS
   ========================================================= */
.section { position: relative; padding: 150px var(--pad-x); }
.dark { background: var(--ink); color: var(--white); }
.head { display: flex; flex-direction: column; align-items: center; text-align: center; }
.head .h2 { margin-top: 36px; }
.head__p { max-width: 658px; margin-top: 16px; }
.head--left { align-items: flex-start; text-align: left; }

/* ----- features ----- */
.features { background: var(--white); padding-top: 60px; }
.fgrid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  max-width: 1200px;
  margin: 80px auto 0;
}
.fcard {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 484px;
  padding: 24px;
  background: var(--paper);
  border-radius: 2px;
  overflow: hidden;
}
.fcard__art { flex: 1; display: grid; place-items: center; }
.illo { width: 100%; max-width: 330px; height: auto; transition: transform 0.8s var(--ease); }
.fcard:hover .illo { transform: scale(1.04) rotate(-1deg); }
.illo__float { animation: floaty 5s ease-in-out infinite; animation-delay: var(--f, 0s); transform-box: fill-box; }
@keyframes floaty {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -6px; }
}
.trail { animation: dash 2.4s linear infinite; }
@keyframes dash { to { stroke-dashoffset: -26; } }
.fcard__label { color: var(--ink); }

/* ----- who (tabs) ----- */
.who .head .h2 { color: var(--white); }
.tabs { max-width: 1200px; margin: 80px auto 0; }
.tabs__list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--line-dark);
  border-bottom: 0;
}
.tab {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 58px;
  font-family: var(--f-mono);
  font-size: 14px;
  letter-spacing: -0.02em;
  color: var(--white);
  transition: background-color 0.4s var(--ease), color 0.4s var(--ease);
  overflow: hidden;
}
.tab + .tab { border-left: 1px solid var(--line-dark); }
.tab:hover { background: rgba(255, 255, 255, 0.04); }
.tab.is-active { background: var(--paper); color: var(--ink); }
.tab__bar {
  position: absolute; left: 0; bottom: 0;
  height: 2px; width: 0;
  background: var(--accent);
}
.tab.is-active .tab__bar { animation: progress var(--tab-dur, 7s) linear forwards; }
.tabs.is-paused .tab.is-active .tab__bar { animation-play-state: paused; }
@keyframes progress { from { width: 0; } to { width: 100%; } }
.tab.is-active::before {
  content: "|";
  font-family: var(--f-mono);
  margin-right: 2px;
  animation: blink 1s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }

.tabs__panels {
  position: relative;
  border: 1px solid var(--line-dark);
  height: 620px;
}
.panel {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.6s var(--ease), visibility 0.6s;
}
.panel.is-active { opacity: 1; visibility: visible; }
.panel__text {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-start;
  padding: 44px 40px 40px;
}
.panel__text .body { max-width: 450px; margin-top: 30px; opacity: 0.86; }
.panel .h3, .panel .body, .panel .btn {
  transform: translateY(16px);
  opacity: 0;
  filter: blur(6px);
  transition: all 0.8s var(--ease);
}
.panel.is-active .h3, .panel.is-active .body, .panel.is-active .btn { transform: none; opacity: 1; filter: blur(0); }
.panel.is-active .body { transition-delay: 0.08s; }
.panel.is-active .btn { transition-delay: 0.16s; }

/* ----- panel visuals (UI mockups) ----- */
.vis {
  position: relative;
  overflow: hidden;
  display: grid;
  place-items: center;
}
.vis::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.08) 0%, rgba(0, 0, 0, 0.32) 100%);
  pointer-events: none;
}
.vis__img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transform: scale(1.08);
  transition: transform 1.6s var(--ease);
}
.panel.is-active .vis__img { transform: scale(1); }
.vis--a { background: radial-gradient(80% 70% at 20% 20%, #86a88a 0%, transparent 60%), radial-gradient(70% 70% at 90% 90%, #c67b3b 0%, transparent 60%), linear-gradient(160deg, #50694f, #2b2a22); }
.vis--b { background: radial-gradient(70% 60% at 80% 20%, #e2c9a6 0%, transparent 60%), radial-gradient(80% 80% at 10% 90%, #5e6b87 0%, transparent 60%), linear-gradient(200deg, #9c8b75, #2f3444); }
.vis--c { background: radial-gradient(70% 60% at 25% 25%, #f7b267 0%, transparent 60%), radial-gradient(80% 80% at 90% 80%, #3c6e71 0%, transparent 60%), linear-gradient(140deg, #c37d4e, #1f3a3d); }
.vis--d { background: radial-gradient(70% 60% at 70% 20%, #aac4ff 0%, transparent 60%), radial-gradient(80% 80% at 10% 90%, #1c2c5b 0%, transparent 60%), linear-gradient(170deg, #5874b8, #0d1733); }

.ui {
  position: relative;
  z-index: 1;
  width: min(380px, 80%);
  padding: 20px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--ink);
  border-radius: 4px;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.28), 0 0 0 1px rgba(0, 0, 0, 0.04);
  transform: translateY(20px) scale(0.97);
  opacity: 0;
  transition: transform 0.9s var(--ease) 0.1s, opacity 0.9s var(--ease) 0.1s;
}
.panel.is-active .ui { transform: none; opacity: 1; }
.ui__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.ui__head .mono { font-size: 11px; opacity: 0.6; }
.ui__pill { font-family: var(--f-mono); font-size: 11px; padding: 3px 7px; background: var(--paper); border-radius: 2px; }
.ui__big { font-family: var(--f-display); font-size: 38px; font-weight: 500; letter-spacing: -0.05em; line-height: 1; }
.ui__big span { font-size: 20px; opacity: 0.4; }
.ui__sub { font-size: 13px; letter-spacing: -0.02em; opacity: 0.6; margin-top: 8px; }
.up { color: #1b9e5a; opacity: 1; }
.bars { display: flex; align-items: flex-end; gap: 8px; height: 120px; margin-top: 22px; }
.bars i { flex: 1; height: var(--h); background: #e7e8e1; border-radius: 2px 2px 0 0; transform-origin: bottom; transform: scaleY(0); transition: transform 0.9s var(--ease); }
.bars i.hl { background: var(--accent); }
.panel.is-active .bars i { transform: scaleY(1); }
.panel.is-active .bars i:nth-child(2) { transition-delay: 0.05s; }
.panel.is-active .bars i:nth-child(3) { transition-delay: 0.1s; }
.panel.is-active .bars i:nth-child(4) { transition-delay: 0.15s; }
.panel.is-active .bars i:nth-child(5) { transition-delay: 0.2s; }
.panel.is-active .bars i:nth-child(6) { transition-delay: 0.25s; }
.panel.is-active .bars i:nth-child(7) { transition-delay: 0.3s; }
.ui__legend { display: flex; justify-content: space-between; font-family: var(--f-mono); font-size: 10px; opacity: 0.5; margin-top: 8px; }
.ui__legend span { flex: 1; text-align: center; }

.ui--toast {
  position: absolute;
  z-index: 2;
  width: auto;
  left: 8%;
  bottom: 12%;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  font-size: 14px;
  letter-spacing: -0.02em;
  transition-delay: 0.3s;
}

.ui--list .row {
  display: grid;
  grid-template-columns: 34px 1fr auto;
  grid-template-rows: auto auto;
  column-gap: 12px;
  align-items: center;
  padding: 11px 0;
  border-top: 1px solid var(--line-light);
}
.ui--list .row > div { min-width: 0; }
.ui--list p { font-size: 14px; letter-spacing: -0.02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ui--list small { font-size: 12px; opacity: 0.55; }
.ui--list b { font-weight: 500; font-size: 14px; letter-spacing: -0.02em; }
.ui--list .st { grid-column: 3; justify-self: end; }
.ui--list .av { grid-row: span 2; }
.ui--list .row > div { grid-row: span 2; }
.av {
  width: 34px; height: 34px;
  border-radius: 50%;
  display: grid; place-items: center;
  font-family: var(--f-mono); font-size: 11px;
  color: #fff;
  background: var(--c);
}
.st { font-style: normal; font-family: var(--f-mono); font-size: 10px; padding: 2px 6px; border-radius: 2px; text-transform: uppercase; }
.st--sch { background: #e6f0f7; color: var(--blue); }
.st--ap { background: #fdece9; color: var(--accent); }
.st--ok { background: #e5f5ec; color: #1b9e5a; }

.budget + .budget { margin-top: 16px; }
.budget__top { display: flex; justify-content: space-between; font-size: 14px; letter-spacing: -0.02em; margin-bottom: 8px; }
.budget__top span:last-child { font-family: var(--f-mono); font-size: 12px; opacity: 0.6; }
.meter { height: 6px; background: #ececE6; border-radius: 3px; overflow: hidden; }
.meter i { display: block; height: 100%; width: var(--w); background: var(--ink); border-radius: 3px; transform-origin: left; transform: scaleX(0); transition: transform 1.1s var(--ease) 0.2s; }
.meter--warn i { background: var(--accent); }
.panel.is-active .meter i { transform: scaleX(1); }

.policy { display: flex; align-items: center; gap: 10px; font-size: 13px; padding: 10px 12px; background: var(--paper); margin-top: 16px; border-radius: 2px; }
.ui__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 14px; }
.ui__btn { height: 40px; font-family: var(--f-mono); font-size: 12px; text-transform: uppercase; background: var(--ink); color: #fff; border-radius: 2px; transition: opacity 0.2s; }
.ui__btn:hover { opacity: 0.85; }
.ui__btn--ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px var(--line-light); }
.ui--runway {
  position: absolute; z-index: 2;
  width: auto; right: 8%; top: 12%;
  display: flex; flex-direction: column; gap: 4px;
  padding: 14px 18px;
  transition-delay: 0.3s;
}
.ui--runway .mono { font-size: 10px; opacity: 0.55; }
.ui--runway b { font-family: var(--f-display); font-weight: 500; font-size: 26px; letter-spacing: -0.05em; }

/* ----- results / testimonials ----- */
.results { background: var(--paper-2); padding-left: 0; padding-right: 0; }
.marquee {
  margin-top: 60px;
  overflow: hidden;
  -webkit-mask: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
          mask: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
}
.marquee__track {
  display: flex;
  gap: 10px;
  width: max-content;
  animation: marquee 55s linear infinite;
}
.marquee:hover .marquee__track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(calc(-50% - 5px)); } }

.rcard {
  position: relative;
  flex: none;
  width: 371px;
  height: 464px;
  overflow: hidden;
  border-radius: 1px;
  color: var(--white);
}
.rcard__scene {
  position: absolute; inset: 0;
  transition: transform 1.2s var(--ease);
}
.rcard:hover .rcard__scene { transform: scale(1.06); }
.rcard__scene img { width: 100%; height: 100%; object-fit: cover; }
.rcard__shade {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.42) 0%, rgba(0,0,0,0.12) 28%, rgba(0,0,0,0) 55%, rgba(0,0,0,0.75) 100%);
}
.rcard__top { position: absolute; top: 16px; left: 16px; right: 16px; }
.rcard__top h4 { font-weight: 400; font-size: 34px; line-height: 1.2; letter-spacing: -0.036em; }
.rcard__top p { font-size: 16px; line-height: 1.4; letter-spacing: -0.03em; opacity: 0.8; }
.rcard__tags { position: absolute; left: 12px; bottom: 12px; display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.rcard__tags span {
  font-size: 10px;
  line-height: 1.2;
  padding: 6px 12px;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 1px;
}

/* abstract "photo" scenes — swap for real imagery by setting background-image */
.rcard--1 .rcard__scene {
  background:
    linear-gradient(90deg, transparent 0 18%, rgba(255,255,255,0.12) 18% 19%, transparent 19% 42%, rgba(255,255,255,0.12) 42% 43%, transparent 43% 66%, rgba(255,255,255,0.12) 66% 67%, transparent 67%),
    radial-gradient(60% 50% at 70% 30%, #ffb46b 0%, transparent 70%),
    linear-gradient(180deg, #e0e6ea 0%, #c56a2c 55%, #3a1a0c 100%);
}
.rcard--2 .rcard__scene {
  background:
    radial-gradient(90% 34% at 30% 100%, #4d6b3c 0%, #4d6b3c 55%, transparent 56%),
    radial-gradient(80% 30% at 85% 100%, #6e8a4f 0%, #6e8a4f 60%, transparent 61%),
    radial-gradient(30% 12% at 30% 30%, rgba(255,255,255,0.9) 0%, transparent 70%),
    radial-gradient(40% 14% at 72% 42%, rgba(255,255,255,0.75) 0%, transparent 70%),
    radial-gradient(40% 30% at 80% 18%, #ffffff 0%, transparent 70%),
    linear-gradient(180deg, #2f6fd6 0%, #7fb0f2 60%, #d9e7fb 100%);
}
.rcard--3 .rcard__scene {
  background:
    repeating-linear-gradient(0deg, #2a1a10 0 6px, transparent 6px 64px),
    repeating-linear-gradient(90deg, #5a3a22 0 22px, #3f2616 22px 30px, #6e4a2c 30px 44px, #2b1b10 44px 52px),
    linear-gradient(180deg, #4a3020, #1b120b);
}
.rcard--4 .rcard__scene {
  background:
    repeating-linear-gradient(0deg, rgba(20,30,40,0.55) 0 3px, transparent 3px 34px),
    repeating-linear-gradient(90deg, rgba(20,30,40,0.55) 0 3px, transparent 3px 46px),
    linear-gradient(120deg, transparent 0 48%, rgba(255,255,255,0.18) 48% 52%, transparent 52%),
    linear-gradient(180deg, #6fa5d8 0%, #3e6b93 45%, #22384d 100%);
}
.rcard--5 .rcard__scene {
  background:
    radial-gradient(22% 16% at 30% 70%, #ffd48a 0%, transparent 70%),
    radial-gradient(18% 14% at 70% 62%, #ffc073 0%, transparent 70%),
    radial-gradient(60% 50% at 50% 20%, #9b5e3a 0%, transparent 70%),
    linear-gradient(180deg, #5b2e1f 0%, #2a130c 100%);
}

.quote { max-width: 800px; margin: 64px auto 0; padding: 0 24px; text-align: center; display: flex; flex-direction: column; align-items: center; }
.stars { font-size: 18px; letter-spacing: 4px; color: #8f8f8f; }
.quote__text {
  margin-top: 24px;
  font-family: var(--f-body);
  font-weight: 400;
  font-size: 32px;
  line-height: 1.2;
  letter-spacing: -0.03em;
  max-width: 760px;
}
.quote__text .w { display: inline-block; opacity: 0.15; filter: blur(4px); transition: opacity 0.5s var(--ease), filter 0.5s var(--ease); }
.quote__text .w.on { opacity: 1; filter: blur(0); }
.quote__by { margin-top: 28px; color: var(--ink); }

/* ----- compliance ----- */
.compliance { padding-top: 110px; padding-bottom: 110px; }
.compliance > .eyebrow { display: flex; justify-content: center; }
.cgrid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  max-width: var(--max);
  margin: 50px auto 0;
}
.ccard {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 298px;
  padding: 22px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 1px;
  transition: background-color 0.4s var(--ease);
}
.ccard:hover { background: rgba(255, 255, 255, 0.14); }
.ccard__t { font-size: 14px; line-height: 1.2; }
.ccard__d { font-size: 14px; line-height: 1.4; letter-spacing: -0.02em; margin-top: 10px; opacity: 0.7; max-width: 255px; }
.ccard__icon { width: 50px; height: 50px; color: #fff; opacity: 0.16; transition: opacity 0.4s var(--ease); }
.ccard:hover .ccard__icon { opacity: 0.35; }
.compliance__p { max-width: 658px; margin-top: 50px; }

/* ----- FAQ ----- */
.faq { background: var(--paper-2); padding-top: 120px; padding-bottom: 150px; }
.faq .head { max-width: var(--max); margin: 0 auto; }
.faq__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 25px;
  max-width: var(--max);
  margin: 90px auto 0;
  align-items: start;
}
.qa { border-top: 1px solid var(--line-light); }
.qa__q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: 100%;
  padding: 24px 0;
  text-align: left;
  font-size: 18px;
  line-height: 1.3;
  letter-spacing: -0.036em;
}
.qa__icon {
  flex: none;
  width: 34px; height: 34px;
  display: grid; place-items: center;
  border: 1px solid rgba(16, 16, 16, 0.2);
  background: var(--white);
  border-radius: 1px;
  transition: background-color 0.3s var(--ease), color 0.3s var(--ease), border-color 0.3s var(--ease);
}
.qa__icon svg { width: 14px; height: 14px; transition: transform 0.5s var(--ease); }
.qa__q:hover .qa__icon { border-color: var(--ink); }
.qa.is-open .qa__icon { background: var(--ink); color: var(--white); border-color: var(--ink); }
.qa.is-open .qa__icon svg { transform: rotate(180deg); }
.qa__a {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.5s var(--ease);
}
.qa__a > p {
  overflow: hidden;
  font-size: 16px;
  line-height: 1.4;
  letter-spacing: -0.03em;
  max-width: 601px;
  opacity: 0;
  transition: opacity 0.4s var(--ease), padding 0.5s var(--ease);
}
.qa.is-open .qa__a { grid-template-rows: 1fr; }
.qa.is-open .qa__a > p { opacity: 0.8; padding-bottom: 26px; }

/* ----- CTA ----- */
.cta {
  position: relative;
  min-height: 510px;
  display: grid;
  place-items: center;
  overflow: hidden;
  color: var(--white);
  background: #2a1c12;
  padding: 100px 24px;
}
.cta__bg { position: absolute; inset: -3%; }
.cta__bg img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: blur(3px) saturate(1.1);
  animation: slowzoom 22s ease-in-out infinite alternate;
}
@keyframes slowzoom {
  from { transform: scale(1.02) translateX(-1%); }
  to { transform: scale(1.1) translateX(1%); }
}
.cta::after {
  content: "";
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(0,0,0,0.35), rgba(0,0,0,0.45));
  pointer-events: none;
}
.cta__content { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; text-align: center; }
.cta__p { max-width: 500px; margin-top: 16px; opacity: 0.86; }
.cta__btn {
  height: 54px;
  width: 176px;
  display: grid; place-items: center;
  background: var(--white);
  color: var(--ink);
  font-family: var(--f-mono);
  font-size: 13px;
  letter-spacing: -0.02em;
  border-radius: 0 1px 1px 0;
  transition: background-color 0.3s var(--ease);
}
.cta__btn:hover { background: var(--paper); }
.cta__btn--solo { width: auto; min-width: 220px; padding: 0 32px; margin-top: 36px; }
.cta__msg { margin-top: 14px; min-height: 16px; font-size: 12px; opacity: 0.85; }

/* ----- illustration strip ----- */
.strip { background: var(--paper); height: 140px; overflow: hidden; display: flex; align-items: flex-end; justify-content: center; }
.strip__svg { width: 100%; max-width: 1440px; height: 150px; transform: translateY(18px); }

/* =========================================================
   FOOTER
   ========================================================= */
.footer { position: relative; color: var(--white); overflow: hidden; }
.footer__bg { position: absolute; inset: 0; background: #0b1f0d; }
.footer__bg img { width: 100%; height: 100%; object-fit: cover; }
.footer__bg::after {
  content: "";
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.42) 0%, rgba(0, 0, 0, 0.28) 45%, rgba(0, 0, 0, 0.62) 100%);
}
.footer__inner {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-rows: auto 1fr;
  gap: 0 40px;
  min-height: 560px;
  padding: 70px 34px 34px;
}
.footer__tag { font-family: var(--f-body); font-weight: 400; font-size: 24px; line-height: 1.1; letter-spacing: -0.04em; margin-top: 30px; }
.footer__cols {
  display: grid;
  grid-template-columns: repeat(3, 250px);
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.fcol {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  padding: 30px 30px 40px;
  min-height: 281px;
}
.fcol + .fcol { border-left: 1px solid rgba(255, 255, 255, 0.1); }
.fcol .mono { font-size: 14px; margin-bottom: 4px; }
.fcol a { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; font-size: 16px; letter-spacing: -0.03em; line-height: 1.4; }
.fcol a .roll { flex: none; height: 1.4em; line-height: 1.4; }
.badge { white-space: nowrap; }
.fcol .badge { background: rgba(255, 255, 255, 0.12); }
.footer__credit { grid-column: 1 / -1; align-self: end; font-size: 14px; margin-top: 60px; }

/* =========================================================
   PROGRESSIVE BLUR (bottom of viewport)
   ========================================================= */
.pblur {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  height: 130px;
  z-index: 40;
  pointer-events: none;
  transition: opacity 0.5s var(--ease);
}
.pblur.is-hidden { opacity: 0; }
.pblur i { position: absolute; inset: 0; }
.pblur i:nth-child(1) { backdrop-filter: blur(0.078px); -webkit-backdrop-filter: blur(0.078px); -webkit-mask: linear-gradient(transparent 0%, #000 12.5%, #000 25%, transparent 37.5%); mask: linear-gradient(transparent 0%, #000 12.5%, #000 25%, transparent 37.5%); }
.pblur i:nth-child(2) { backdrop-filter: blur(0.156px); -webkit-backdrop-filter: blur(0.156px); -webkit-mask: linear-gradient(transparent 12.5%, #000 25%, #000 37.5%, transparent 50%); mask: linear-gradient(transparent 12.5%, #000 25%, #000 37.5%, transparent 50%); }
.pblur i:nth-child(3) { backdrop-filter: blur(0.3125px); -webkit-backdrop-filter: blur(0.3125px); -webkit-mask: linear-gradient(transparent 25%, #000 37.5%, #000 50%, transparent 62.5%); mask: linear-gradient(transparent 25%, #000 37.5%, #000 50%, transparent 62.5%); }
.pblur i:nth-child(4) { backdrop-filter: blur(0.625px); -webkit-backdrop-filter: blur(0.625px); -webkit-mask: linear-gradient(transparent 37.5%, #000 50%, #000 62.5%, transparent 75%); mask: linear-gradient(transparent 37.5%, #000 50%, #000 62.5%, transparent 75%); }
.pblur i:nth-child(5) { backdrop-filter: blur(1.25px); -webkit-backdrop-filter: blur(1.25px); -webkit-mask: linear-gradient(transparent 50%, #000 62.5%, #000 75%, transparent 87.5%); mask: linear-gradient(transparent 50%, #000 62.5%, #000 75%, transparent 87.5%); }
.pblur i:nth-child(6) { backdrop-filter: blur(2.5px); -webkit-backdrop-filter: blur(2.5px); -webkit-mask: linear-gradient(transparent 62.5%, #000 75%, #000 87.5%, transparent 100%); mask: linear-gradient(transparent 62.5%, #000 75%, #000 87.5%, transparent 100%); }
.pblur i:nth-child(7) { backdrop-filter: blur(5px); -webkit-backdrop-filter: blur(5px); -webkit-mask: linear-gradient(transparent 75%, #000 87.5%, #000 100%); mask: linear-gradient(transparent 75%, #000 87.5%, #000 100%); }
.pblur i:nth-child(8) { backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); -webkit-mask: linear-gradient(transparent 87.5%, #000 100%); mask: linear-gradient(transparent 87.5%, #000 100%); }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1199px) {
  :root { --pad-x: 40px; }
  .footer__cols { grid-template-columns: repeat(3, 1fr); }
  .footer__inner { grid-template-columns: 1fr; }
  .footer__cols { margin-top: 50px; }
  .cgrid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 991px) {
  .h1 { font-size: 50px; }
  .h2 { font-size: 38px; }
  .h3 { font-size: 30px; }
  .section { padding-top: 110px; padding-bottom: 110px; }
  .features { padding-top: 40px; }
  .stats { gap: 30px; }
  .fgrid { grid-template-columns: 1fr 1fr; }
  .fgrid .fcard:last-child { grid-column: span 2; }
  .tabs__list { grid-template-columns: repeat(4, max-content); overflow-x: auto; scrollbar-width: none; }
  .tabs__list::-webkit-scrollbar { display: none; }
  .tab { padding: 0 22px; }
  .tabs__panels { height: auto; }
  .panel { position: relative; grid-template-columns: 1fr; display: none; }
  .panel.is-active { display: grid; }
  .panel__text { gap: 30px; }
  .panel__vis { min-height: 440px; }
  .menu__inner { grid-template-columns: 1fr; }
}

@media (max-width: 767px) {
  :root { --pad-x: 16px; }
  .header { padding: 16px; }
  .header__actions { gap: 6px; }
  .wallet-btn { width: 34px; padding: 0; justify-content: center; }
  .wallet-btn .roll { display: none; }
  .mycard-btn { gap: 6px; padding: 0 9px; }
  .mycard-btn .roll { display: none; }
  .h1 { font-size: 40px; }
  .h2 { font-size: 32px; }
  .h3 { font-size: 26px; }
  .lead { font-size: 16px; }
  .hero__content { padding: 96px 16px 0; }
  .pill { gap: 10px; }
  .pill .mono { font-size: 11px; }
  .hero-visual { margin-top: 36px; }
  .stats { grid-template-columns: 1fr; gap: 40px; padding: 30px 16px 80px; }
  .fgrid { grid-template-columns: 1fr; margin-top: 50px; }
  .fgrid .fcard:last-child { grid-column: auto; }
  .fcard { height: 420px; }
  .fcard--top { flex-direction: column-reverse; }
  .tabs { margin-top: 50px; }
  .panel__text { padding: 30px 20px; }
  .panel__vis { min-height: 400px; }
  .ui { width: 88%; padding: 16px; }
  .ui__big { font-size: 32px; }
  .rcard { width: 290px; height: 380px; }
  .quote__text { font-size: 24px; }
  .cgrid { grid-template-columns: 1fr; margin-top: 36px; }
  .ccard { min-height: 220px; }
  .faq__grid { grid-template-columns: 1fr; gap: 0; margin-top: 50px; }
  .faq__col + .faq__col .qa:first-child { border-top: 1px solid var(--line-light); }
  .qa__q { font-size: 16px; }
  .cta { min-height: 460px; }
  .cta__btn { width: 100%; max-width: 360px; border-radius: 1px; }
  .strip { height: 90px; }
  .strip__svg { width: 900px; max-width: none; height: 94px; flex: none; transform: translateY(12px); }
  .footer__inner { padding: 56px 16px 24px; }
  .footer__cols { grid-template-columns: 1fr 1fr; }
  .fcol { min-height: 0; padding: 22px; }
  .fcol:nth-child(3) { grid-column: span 2; border-left: 0; border-top: 1px solid rgba(255, 255, 255, 0.1); }
  .footer__credit { font-size: 12px; }
  .menu__inner { padding: 84px 16px 40px; }
  .menu__cols { grid-template-columns: 1fr 1fr; row-gap: 36px; }
  .menu__posts { grid-template-columns: 1fr 1fr; }
  .post__row h4 { font-size: 15px; }
  .pblur { height: 80px; }
}

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

/* =========================================================
   HEADER & BUTTON POLISH (overrides earlier rules)
   ========================================================= */
:root {
  --btn-bg: linear-gradient(180deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.05));
  --btn-bg-hover: linear-gradient(180deg, rgba(255, 255, 255, 0.24), rgba(255, 255, 255, 0.09));
  --btn-border: rgba(255, 255, 255, 0.16);
  --btn-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 6px 18px rgba(0, 0, 24, 0.28);
}

/* --- header bar --- */
.header {
  position: fixed;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 16px;
  padding: 14px 32px;
  border-bottom: 1px solid transparent;
  transition: background-color 0.4s var(--ease), border-color 0.4s var(--ease), padding 0.4s var(--ease);
}
.header.is-scrolled {
  padding-top: 10px;
  padding-bottom: 10px;
  background: rgba(5, 9, 28, 0.72);
  border-bottom-color: rgba(255, 255, 255, 0.09);
  backdrop-filter: blur(20px) saturate(1.4);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
}
.header .logo { justify-self: start; }
.header__actions { justify-self: end; gap: 10px; }

/* --- logo --- */
.logo { gap: 10px; }
.logo__mark { width: 30px; height: 30px; filter: drop-shadow(0 2px 8px rgba(120, 160, 255, 0.35)); transition: transform 0.5s var(--ease); }
.logo:hover .logo__mark { transform: rotate(-6deg) scale(1.06); }
.logo__word { font-size: 21px; font-weight: 600; letter-spacing: -0.04em; line-height: 1; }
.logo__word b { font-weight: 400; opacity: 0.62; margin-left: 0.28em; }
.logo--lg .logo__mark { width: 36px; height: 36px; }
.logo--lg .logo__word { font-size: 28px; }

/* --- centre nav --- */
.header__nav {
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 4px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.04));
  border: 1px solid var(--btn-border);
  border-radius: 999px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.header__nav a {
  padding: 8px 18px;
  font-size: 13.5px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: rgba(255, 255, 255, 0.72);
  border-radius: 999px;
  transition: color 0.25s, background-color 0.25s;
}
.header__nav a:hover { color: #fff; background: rgba(255, 255, 255, 0.08); }
.header__nav a.is-active { color: #fff; background: rgba(255, 255, 255, 0.16); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16); }

/* --- shared glass control look --- */
.menu-btn, .icon-btn {
  height: 40px;
  background: var(--btn-bg);
  border: 1px solid var(--btn-border);
  border-radius: 999px;
  box-shadow: var(--btn-shadow);
  transition: background 0.3s var(--ease), transform 0.3s var(--ease), border-color 0.3s;
}
.menu-btn:hover, .icon-btn:hover { background: var(--btn-bg-hover); border-color: rgba(255, 255, 255, 0.28); }
.menu-btn:active, .icon-btn:active { transform: scale(0.97); }
.menu-btn { padding: 0 18px; gap: 10px; font-size: 12px; font-weight: 500; letter-spacing: 0.04em; }
.icon-btn { width: 40px; }
.icon-btn svg { width: 15px; height: 15px; }
.menu-btn:focus-visible, .icon-btn:focus-visible, .btn:focus-visible, .header__nav a:focus-visible, .pill:focus-visible {
  outline: 2px solid rgba(160, 190, 255, 0.9);
  outline-offset: 3px;
}

/* menu button: hamburger that morphs into a close (X) */
.menu-btn__icon { position: relative; display: block; width: 16px; height: 10px; font-size: 0; transform: none !important; }
.menu-btn__icon i {
  position: absolute; left: 0; right: 0;
  height: 1.6px; border-radius: 2px;
  background: currentColor;
  transition: transform 0.45s var(--ease), top 0.45s var(--ease);
}
.menu-btn__icon i:first-child { top: 0; }
.menu-btn__icon i:last-child { top: calc(100% - 1.6px); }
.menu-btn[aria-expanded="true"] .menu-btn__icon i:first-child { top: calc(50% - 0.8px); transform: rotate(45deg); }
.menu-btn[aria-expanded="true"] .menu-btn__icon i:last-child { top: calc(50% - 0.8px); transform: rotate(-45deg); }

/* my card / wallet */
.mycard-btn { padding: 0 16px 0 14px; gap: 9px; }
.mycard-btn__icon { width: 19px; height: 15px; }
.wallet-btn { padding-left: 9px; }
.wallet-btn__icon { width: 22px; height: 22px; }
.wallet-btn__icon svg { filter: drop-shadow(0 1px 4px rgba(120, 100, 240, 0.5)); }
.wallet-btn.is-connected { border-color: rgba(61, 220, 132, 0.4); }
.mycard-btn__count { box-shadow: 0 0 0 2px rgba(5, 9, 28, 0.6); }
.wallet-menu { top: calc(100% + 12px); border-radius: 16px; padding: 16px; }
.wallet-menu button { border-radius: 8px; }

/* --- primary / secondary buttons --- */
.btn {
  height: 52px;
  padding: 0 26px;
  gap: 12px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.04em;
  border-radius: 999px;
  border: 1px solid var(--btn-border);
  transition: background 0.3s var(--ease), transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: scale(0.98); }
.btn__icon { display: grid; place-items: center; width: 20px; height: 20px; font-size: 0; }
.btn__icon svg { width: 20px; height: 20px; }

.btn--ghost { padding: 0 26px 0 10px; background: var(--btn-bg); box-shadow: var(--btn-shadow); }
.btn--ghost:hover { background: var(--btn-bg-hover); }
.btn--ghost::before {
  content: "";
  width: 32px; height: 32px;
  flex: none;
  border-radius: 50%;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23fff'%3E%3Cpath d='M9.5 7.2v9.6a.6.6 0 0 0 .92.5l7.4-4.8a.6.6 0 0 0 0-1l-7.4-4.8a.6.6 0 0 0-.92.5z'/%3E%3C/svg%3E") center / 15px no-repeat,
    rgba(255, 255, 255, 0.14);
}

.btn--accent {
  padding: 0 8px 0 24px;
  background: linear-gradient(180deg, #ff6248 0%, #f93f28 52%, #e2301a 100%);
  border-color: rgba(255, 255, 255, 0.24);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4), 0 10px 28px rgba(249, 63, 40, 0.38);
}
.btn--accent:hover {
  background: linear-gradient(180deg, #ff7259 0%, #ff543e 52%, #ec3a23 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45), 0 14px 34px rgba(249, 63, 40, 0.5);
}
.btn--accent:not(.pay-btn)::after {
  content: "";
  width: 36px; height: 36px;
  flex: none;
  margin-left: 6px;
  border-radius: 50%;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23101010' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12h12M13 7l5 5-5 5'/%3E%3C/svg%3E") center / 16px no-repeat,
    #fff;
  transition: transform 0.4s var(--ease);
}
.btn--accent:not(.pay-btn):hover::after { transform: translateX(3px); }
.pay-btn { padding: 0 24px; }

/* --- hero pill --- */
.pill {
  height: 38px;
  padding: 0 16px 0 14px;
  background: var(--btn-bg);
  border: 1px solid var(--btn-border);
  border-radius: 999px;
  box-shadow: var(--btn-shadow);
  transition: background 0.3s var(--ease);
}
.pill:hover { background: var(--btn-bg-hover); }
.pill__sq {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #4be08f;
  box-shadow: 0 0 0 0 rgba(75, 224, 143, 0.6);
  animation: pillPulse 2.2s infinite;
}
@keyframes pillPulse {
  70% { box-shadow: 0 0 0 8px rgba(75, 224, 143, 0); }
  100% { box-shadow: 0 0 0 0 rgba(75, 224, 143, 0); }
}
@media (prefers-reduced-motion: reduce) { .pill__sq { animation: none; } }

/* --- responsive --- */
@media (max-width: 1020px) {
  .header { grid-template-columns: 1fr auto; }
  .header__nav { display: none; }
}
@media (max-width: 767px) {
  .header { padding: 12px 16px; }
  .header__actions { gap: 8px; }
  .wallet-btn, .mycard-btn { width: 40px; padding: 0; justify-content: center; }
  .mycard-btn__count { position: absolute; top: -5px; right: -5px; }
  .logo__word { font-size: 19px; }
  .btn { height: 50px; }
}
@media (max-width: 480px) {
  .icon-btn { display: none; }
  #menuBtn { width: 40px; padding: 0; justify-content: center; }
  #menuBtn .roll { display: none; }
  .hero__ctas .btn { width: 100%; justify-content: center; }
  .btn--accent:not(.pay-btn) { justify-content: space-between; }
}

/* =========================================================
   NAV: sliding active indicator, scroll progress, section anchors
   ========================================================= */
section[id] { scroll-margin-top: 72px; }

.header__nav { position: relative; gap: 0; padding: 5px; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16), 0 8px 30px rgba(0, 0, 24, 0.3); }
.header__nav a { position: relative; z-index: 1; padding: 9px 17px; white-space: nowrap; }
.header__nav a:hover { background: transparent; color: #fff; }
.header__nav a.is-active { background: transparent; box-shadow: none; color: #fff; }
.header__ind {
  position: absolute;
  top: 5px; bottom: 5px; left: 0;
  width: 0;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.28), rgba(255, 255, 255, 0.12));
  border: 1px solid rgba(255, 255, 255, 0.24);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3), 0 4px 14px rgba(70, 120, 255, 0.28);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.55s var(--ease), width 0.55s var(--ease), opacity 0.3s;
}

/* thin scroll-progress line on the bottom edge of the bar */
.header::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 2px;
  background: linear-gradient(90deg, #4f8cff, #a78bfa 55%, #f93f28);
  transform: scaleX(var(--progress, 0));
  transform-origin: left;
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}
.header.is-scrolled::after { opacity: 1; }

/* logo | nav | actions — nav sits in the free middle so it never collides with the buttons */
.header { grid-template-columns: auto 1fr auto; }
.header__nav { justify-self: center; }
@media (max-width: 1240px) {
  .header { grid-template-columns: 1fr auto; }
  .header__nav { display: none; }
}

/* wide screens: centre the nav on the page itself */
@media (min-width: 1560px) {
  .header { grid-template-columns: 1fr auto 1fr; }
}

/* =========================================================
   MENU OVERLAY (real destinations, no photos) + header layout
   ========================================================= */
.header { display: flex; justify-content: space-between; align-items: center; }
.menu__inner {
  grid-template-columns: 1fr minmax(300px, 420px);
  gap: 64px;
  max-width: 1100px;
  margin: 0 auto;
  padding: 130px 32px 60px;
  align-items: start;
}
.menu__cols { grid-template-columns: 1fr 1fr; gap: 40px; }
.menu__col { gap: 6px; }
.menu__col a {
  font-size: 30px;
  letter-spacing: -0.04em;
  padding: 6px 0;
  opacity: 0.85;
  transition: opacity 0.25s, transform 0.4s var(--ease);
}
.menu__col a:hover { opacity: 1; transform: translateX(6px); }
.menu__cta {
  padding: 28px;
  border: 1px solid var(--btn-border);
  border-radius: 20px;
  background: linear-gradient(160deg, rgba(79, 140, 255, 0.18), rgba(167, 139, 250, 0.08) 55%, rgba(249, 63, 40, 0.14));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16);
}
.menu__cta h3 { margin: 12px 0 10px; font-size: 28px; font-weight: 500; letter-spacing: -0.04em; line-height: 1.1; }
.menu__cta p:not(.menu__title) { margin-bottom: 24px; font-size: 15px; line-height: 1.4; opacity: 0.7; }
@media (max-width: 900px) {
  .menu__inner { grid-template-columns: 1fr; gap: 40px; padding: 96px 20px 40px; }
  .menu__col a { font-size: 24px; }
}

/* image logo */
.logo__mark { width: auto; height: 30px; filter: drop-shadow(0 2px 10px rgba(31, 117, 255, 0.45)); }
.logo--lg .logo__mark { width: auto; height: 36px; }
