/* ==========================================================================
   Cl0ak — friendly monochrome
   ========================================================================== */
@font-face {
  font-family: "Cal Sans";
  src: url("../fonts/cal-sans/CalSansVF.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
@font-face { font-family: "Inter"; src: url("../fonts/inter/inter-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../fonts/inter/inter-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../fonts/inter/inter-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }

:root {
  --bg: #ffffff;
  --bg-alt: #f3f4f6;
  --ink: #242424;
  --ink-2: #5f6570;
  --line: #e5e7eb;
  --sand: #e3dccd;
  --accent: #e8590c;          /* the single accent: tiny status ticks only */
  --accent-soft: #fff1e8;
  --ok: #15803d;
  --glass: rgba(255, 255, 255, 0.72);
  --glass-alt: rgba(243, 244, 246, 0.78);
  --shadow-sm: 0 1px 2px rgba(16, 24, 40, 0.05);
  --shadow: 0 1px 2px rgba(16, 24, 40, 0.04), 0 6px 20px -8px rgba(16, 24, 40, 0.1);
  --shadow-lg: 0 2px 4px rgba(16, 24, 40, 0.04), 0 24px 48px -20px rgba(16, 24, 40, 0.18);
  --r-sm: 10px;
  --r: 16px;
  --r-btn: 13px;
  --max: 1480px;
  --pad: clamp(18px, 4vw, 48px);
  --display: "Cal Sans", "Inter", ui-sans-serif, system-ui, sans-serif;
  --body: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 17px/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; }
::selection { background: var(--ink); color: #fff; }

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

.skip {
  position: fixed; left: 16px; top: -60px; z-index: 300;
  background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 10px;
  text-decoration: none; font-weight: 500; transition: top 0.2s var(--ease);
}
.skip:focus { top: 16px; }
#main:focus { outline: none; }

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

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--pad); }
.narrow { max-width: 1080px; }

/* ---------- Typography ---------- */
h1, h2, h3, .display {
  font-family: var(--display);
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.01em;
  margin: 0;
}
h1 { font-size: clamp(44px, 6.6vw, 84px); line-height: 1.08; }
h2 { font-size: clamp(34px, 4.4vw, 58px); line-height: 1.1; }
h3 { font-size: 23px; line-height: 1.2; letter-spacing: 0; }
p { margin: 0; }
.lede { font-size: 18px; color: var(--ink-2); line-height: 1.6; }
.muted { color: var(--ink-2); }
.center { text-align: center; }

.pill {
  display: inline-flex; align-items: center; gap: 8px;
  font: 600 11px/1 var(--body); letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--ink); border: 1px solid var(--line); background: #fff;
  border-radius: 999px; padding: 7px 12px;
}
.pill--soft { background: var(--bg-alt); }

/* ---------- Buttons ---------- */
.btn {
  --h: 46px;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: var(--h); padding: 0 20px;
  border-radius: var(--r-btn); border: 1px solid transparent;
  font: 500 16px/1 var(--body); text-decoration: none; cursor: pointer;
  transition: transform 0.12s var(--ease), box-shadow 0.2s var(--ease), background 0.2s var(--ease);
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn--lg { --h: 52px; padding: 0 24px; font-size: 17px; border-radius: 14px; }
.btn--primary { background: var(--ink); color: #fff; box-shadow: 0 1px 0 rgba(255,255,255,0.12) inset, 0 2px 6px -2px rgba(16,24,40,0.35); }
.btn--primary:hover { background: #111; }
.btn--secondary { background: #fff; color: var(--ink); border-color: var(--line); box-shadow: var(--shadow-sm), 0 2px 8px -4px rgba(16,24,40,0.12); }
.btn--secondary:hover { box-shadow: var(--shadow-sm), 0 6px 14px -6px rgba(16,24,40,0.2); }
.btn--ghost { background: transparent; color: var(--ink); }
.btn--ghost:hover { background: var(--bg-alt); }
.btn svg { width: 18px; height: 18px; }

/* ---------- Icons ---------- */
.ico { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* ---------- Animated background ---------- */
.bg {
  position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden;
  background: var(--bg);
}
.bg__card {
  position: absolute; left: 50%; top: 50%;
  width: 340px; aspect-ratio: 1.586; border-radius: 20px;
  border: 1px solid rgba(36, 36, 36, 0.08);
  background: linear-gradient(135deg, rgba(243,244,246,0.9), rgba(255,255,255,0.4));
  will-change: transform;
}
.bg__card::after { /* chip slot */
  content: ""; position: absolute; left: 11%; top: 34%; width: 13%; height: 20%;
  border-radius: 6px; border: 1px solid rgba(36,36,36,0.1);
}
.bg__card--hero {
  width: min(70vw, 760px);
  border-color: rgba(36, 36, 36, 0.05);
  background: linear-gradient(135deg, rgba(227,220,205,0.18), rgba(243,244,246,0.12));
}
.bg__veil { position: absolute; inset: 0; background: radial-gradient(ellipse at 50% 20%, rgba(255,255,255,0) 0%, rgba(255,255,255,0.65) 70%); }

/* ---------- Intro ---------- */
.intro {
  position: fixed; inset: 0; z-index: 200;
  background: #fff;
  display: grid; place-items: center; text-align: center;
  transition: opacity 0.28s var(--ease), visibility 0s linear 0.28s;
}
.intro.is-gone { opacity: 0; visibility: hidden; pointer-events: none; }
.intro__inner { display: grid; justify-items: center; gap: 28px; padding: 24px; }
.intro__word {
  font: 600 clamp(64px, 14vw, 168px)/1 var(--display); letter-spacing: -0.01em;
  display: flex; align-items: center;
}
.intro__word > span { display: inline-block; opacity: 0; transform: translateY(0.25em) scale(0.9); }
.intro__word .chip-pop { font-size: 0.22em; margin-left: 0.6em; }
.intro.is-playing .intro__word > span { animation: pop 0.42s var(--spring) forwards; }
.intro__line { color: var(--ink-2); font-size: 18px; opacity: 0; transition: opacity 0.3s var(--ease) 0.9s; }
.intro.is-playing .intro__line { opacity: 1; }
.intro__enter { opacity: 0; transform: translateY(6px); transition: opacity 0.25s var(--ease) 1.2s, transform 0.25s var(--ease) 1.2s; position: relative; z-index: 1; }
.intro.is-playing .intro__enter { opacity: 1; transform: none; }
.intro__hint { font-size: 13px; color: var(--ink-2); }

@keyframes pop {
  0% { opacity: 0; transform: translateY(0.25em) scale(0.9); }
  100% { opacity: 1; transform: none; }
}

/* ---------- Custom cursor (sits above everything, including Enter) ---------- */
.cursor, .cursor-ring { position: fixed; left: 0; top: 0; z-index: 400; pointer-events: none; border-radius: 50%; opacity: 0; }
.cursor { width: 8px; height: 8px; margin: -4px 0 0 -4px; background: var(--ink); }
.cursor-ring {
  width: 34px; height: 34px; margin: -17px 0 0 -17px; border: 1.5px solid rgba(36,36,36,0.55);
  transition: width 0.2s var(--ease), height 0.2s var(--ease), margin 0.2s var(--ease), background 0.2s var(--ease), border-color 0.2s var(--ease);
}
.has-cursor .cursor, .has-cursor .cursor-ring { opacity: 1; }
.cursor-ring.is-hover { width: 52px; height: 52px; margin: -26px 0 0 -26px; background: rgba(36,36,36,0.06); border-color: rgba(36,36,36,0.25); }
.cursor-ring.is-dark { border-color: rgba(255,255,255,0.8); }
@media (pointer: fine) { .has-cursor, .has-cursor * { cursor: none !important; } }

/* ---------- Top navigation ---------- */
.nav {
  position: sticky; top: 12px; z-index: 50;
  margin: 12px auto 0; width: calc(100% - 24px); max-width: calc(var(--max) - 2 * 24px);
}
.nav__bar {
  display: flex; align-items: center; gap: 10px;
  height: 62px; padding: 0 10px 0 18px;
  background: rgba(243, 244, 246, 0.86);
  backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border: 1px solid rgba(229,231,235,0.9);
  border-radius: 14px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; margin-right: 12px; }
.brand img { height: 30px; width: auto; }
.brand__word { font: 600 25px/1 var(--display); letter-spacing: -0.01em; }
.brand__tick { font: 600 11px/1 var(--body); letter-spacing: 0.08em; color: var(--ink-2); border: 1px solid var(--line); background:#fff; border-radius: 999px; padding: 4px 7px; }

.nav__links { display: flex; align-items: center; gap: 2px; list-style: none; margin: 0; padding: 0; }
.nav__links > li { position: relative; }
.nav__link {
  display: inline-flex; align-items: center; gap: 4px;
  height: 40px; padding: 0 12px; border-radius: 10px;
  font: 500 16px/1 var(--body); color: var(--ink); text-decoration: none;
  background: none; border: 0; cursor: pointer;
  transition: background 0.15s var(--ease);
}
.nav__link:hover, .nav__link[aria-expanded="true"] { background: rgba(255,255,255,0.9); }
.nav__link[aria-current="page"] { background: #fff; box-shadow: var(--shadow-sm); }
.nav__link .chev { width: 16px; height: 16px; transition: transform 0.2s var(--ease); }
.nav__link[aria-expanded="true"] .chev { transform: rotate(180deg); }

.drop {
  position: absolute; top: calc(100% + 10px); left: -8px; min-width: 300px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--r);
  box-shadow: var(--shadow-lg); padding: 8px;
  opacity: 0; visibility: hidden; transform: translateY(-4px);
  transition: opacity 0.18s var(--ease), transform 0.18s var(--ease), visibility 0s linear 0.18s;
}
.drop.is-open { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.drop a {
  display: grid; grid-template-columns: 38px 1fr; gap: 12px; align-items: center;
  padding: 10px; border-radius: 12px; text-decoration: none;
}
.drop a:hover, .drop a:focus-visible { background: var(--bg-alt); }
.drop__ico { width: 38px; height: 38px; border-radius: 10px; border: 1px solid var(--line); display: grid; place-items: center; background: #fff; }
.drop strong { display: block; font-weight: 500; font-size: 15px; }
.drop span { display: block; font-size: 14px; color: var(--ink-2); line-height: 1.35; }

.nav__end { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.nav__menu-btn { display: none; }

/* ---------- Hero ---------- */
.hero { padding-top: clamp(64px, 9vw, 104px); text-align: center; }
.hero .pill { margin-bottom: 28px; text-decoration: none; transition: box-shadow 0.2s var(--ease); }
.hero .pill:hover { box-shadow: var(--shadow); }
.pill__tag { background: var(--ink); color: #fff; border-radius: 999px; padding: 4px 7px; margin-left: -6px; }
.pill__text { text-transform: none; letter-spacing: 0; font-size: 14px; font-weight: 500; }

.headline {
  max-width: 1120px; margin: 0 auto;
  padding-left: clamp(0px, 3vw, 44px); /* sits a touch right of centre */
  font-size: clamp(44px, 6.6vw, 88px);
}
.headline .ln { display: block; text-wrap: balance; }
h1, h2 { text-wrap: balance; }

/* Inline objects inside the headline, sized to the cap height */
.inl {
  display: inline-flex; align-items: center; justify-content: center;
  height: 0.74em; vertical-align: -0.06em; margin: 0 0.02em;
  opacity: 0; transform: scale(0.6) rotate(-4deg);
}
.inl.is-in { animation: inl-pop 0.34s var(--spring) forwards; }
@keyframes inl-pop { to { opacity: 1; transform: none; } }

.inl--photo {
  width: 0.74em; border-radius: 0.2em; overflow: hidden;
  background: linear-gradient(140deg, #ececec, #d9d9d9);
  border: 1px solid var(--line); box-shadow: var(--shadow);
}
.inl--photo img { width: 100%; height: 100%; object-fit: cover; }
.inl--photo .ph { width: 0.34em; height: 0.34em; color: #9aa0a6; }

.inl--clock {
  width: 0.74em; border-radius: 0.18em; background: #fff;
  border: 1px solid var(--line); box-shadow: var(--shadow);
}
.clock { position: relative; width: 76%; aspect-ratio: 1; border-radius: 50%; border: 0.025em solid var(--ink); }
.clock i { position: absolute; left: 50%; bottom: 50%; transform-origin: 50% 100%; background: var(--ink); border-radius: 2px; }
.clock .h { width: 0.035em; height: 26%; margin-left: -0.0175em; }
.clock .m { width: 0.025em; height: 36%; margin-left: -0.0125em; }
.clock .s { width: 0.012em; height: 38%; margin-left: -0.006em; background: var(--accent); }
.clock b { position: absolute; left: 50%; top: 50%; width: 0.06em; height: 0.06em; margin: -0.03em; border-radius: 50%; background: var(--ink); }

.inl--chip {
  height: auto; padding: 0.11em 0.2em 0.11em 0.14em; gap: 0.1em;
  font: 500 0.26em/1 var(--body); letter-spacing: 0; vertical-align: 0.42em;
  background: #fff; color: var(--ink); border: 1px solid var(--line);
  border-radius: 999px; box-shadow: var(--shadow);
}
.tick { display: inline-grid; place-items: center; width: 1.25em; height: 1.25em; border-radius: 50%; background: var(--accent); color: #fff; }
.tick svg { width: 0.8em; height: 0.8em; stroke: #fff; stroke-width: 3; fill: none; }

.hero__sub { max-width: 640px; margin: 26px auto 0; }
.hero__cta { display: flex; justify-content: center; gap: 12px; margin-top: 34px; flex-wrap: wrap; }
.hero__note { margin-top: 14px; font-size: 14px; color: var(--ink-2); }

/* Mosaic panel with browser mock */
.stage {
  position: relative; margin: 64px auto 0; max-width: 1280px;
  border-radius: var(--r); overflow: hidden; border: 1px solid var(--line);
  padding: clamp(18px, 5vw, 64px) clamp(14px, 5vw, 72px) 0;
  background: var(--sand);
}
.stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.browser {
  position: relative; background: #fff; border-radius: 14px 14px 0 0;
  border: 1px solid rgba(36,36,36,0.1); border-bottom: 0; box-shadow: var(--shadow-lg);
  overflow: hidden; text-align: left;
}
.browser__top { display: flex; align-items: center; gap: 12px; height: 44px; padding: 0 14px; border-bottom: 1px solid var(--line); background: #fafafa; }
.dots { display: flex; gap: 6px; }
.dots i { width: 11px; height: 11px; border-radius: 50%; background: #e2e3e6; display: block; }
.browser__url { flex: 1; max-width: 420px; margin: 0 auto; height: 28px; border-radius: 8px; background: var(--bg-alt); color: var(--ink-2); font-size: 13px; display: flex; align-items: center; justify-content: center; gap: 6px; }
.browser__url .ico { width: 14px; height: 14px; }

.app { display: grid; grid-template-columns: 210px 1fr 320px; min-height: 440px; }
.app__side { border-right: 1px solid var(--line); padding: 18px 12px; display: grid; align-content: start; gap: 2px; }
.app__side .who { display: flex; align-items: center; gap: 10px; padding: 6px 8px 16px; }
.avatar { width: 30px; height: 30px; border-radius: 9px; background: var(--bg-alt); border: 1px solid var(--line); display: grid; place-items: center; font: 600 13px/1 var(--display); }
.app__side a { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 9px; font-size: 14px; text-decoration: none; color: var(--ink-2); }
.app__side a.on { background: var(--bg-alt); color: var(--ink); font-weight: 500; }
.app__side .ico { width: 17px; height: 17px; }
.app__main { padding: 22px 24px; display: grid; gap: 18px; align-content: start; }
.app__main h4, .app__right h4 { margin: 0; font: 600 13px/1 var(--body); color: var(--ink-2); letter-spacing: 0.02em; }
.balance { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.balance strong { font: 600 44px/1 var(--display); }
.balance span { font-size: 14px; color: var(--ink-2); }
.minirow { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.mini { border: 1px solid var(--line); border-radius: 12px; padding: 12px; }
.mini small { display: block; font-size: 12px; color: var(--ink-2); }
.mini b { font: 600 18px/1.3 var(--display); }
.tx { display: grid; gap: 2px; }
.tx__row { display: grid; grid-template-columns: 34px 1fr auto auto; gap: 12px; align-items: center; padding: 9px 4px; border-bottom: 1px solid var(--line); font-size: 14px; }
.tx__row:last-child { border-bottom: 0; }
.tx__ico { width: 34px; height: 34px; border-radius: 10px; background: var(--bg-alt); display: grid; place-items: center; }
.tx__ico .ico { width: 16px; height: 16px; }
.tx__row small { display: block; color: var(--ink-2); font-size: 12px; }
.tx__amt { font-weight: 500; font-variant-numeric: tabular-nums; }

.status { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 500; border: 1px solid var(--line); border-radius: 999px; padding: 3px 8px 3px 4px; background: #fff; }
.status .tick { width: 16px; height: 16px; font-size: 16px; }
.status--grey .tick { background: #9aa0a6; }

.app__right { border-left: 1px solid var(--line); padding: 22px 20px; display: grid; gap: 16px; align-content: start; background: #fcfcfc; }

/* The card mock (product UI, not an illustration) */
.pcard {
  position: relative; width: 100%; aspect-ratio: 1.586; border-radius: 16px;
  background: var(--ink); color: #fff; padding: 7% 8%;
  display: flex; flex-direction: column; justify-content: space-between;
  box-shadow: 0 18px 40px -18px rgba(16,24,40,0.55);
  overflow: hidden; isolation: isolate;
}
.pcard::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(130deg, rgba(255,255,255,0.12), rgba(255,255,255,0) 45%); }
.pcard__top { display: flex; justify-content: space-between; align-items: center; }
.pcard__brand { font: 600 1.2em/1 var(--display); }
.pcard__chip { width: 15%; aspect-ratio: 1.3; border-radius: 6px; border: 1px solid rgba(255,255,255,0.35); background: linear-gradient(135deg, rgba(255,255,255,0.22), rgba(255,255,255,0.05)); }
.pcard__num { font: 500 0.9em/1 var(--body); letter-spacing: 0.1em; white-space: nowrap; font-variant-numeric: tabular-nums; opacity: 0.9; }
.pcard__bot { display: flex; justify-content: space-between; align-items: flex-end; font-size: 0.72em; }
.pcard__bot small { display: block; opacity: 0.6; font-size: 0.85em; letter-spacing: 0.08em; text-transform: uppercase; }
.pcard--white { background: #fff; color: var(--ink); border: 1px solid var(--line); box-shadow: var(--shadow-lg); }
.pcard--white .pcard__chip { border-color: rgba(36,36,36,0.2); background: linear-gradient(135deg, #f3f4f6, #fff); }
.pcard--sand { background: var(--sand); color: var(--ink); }
.pcard--sand .pcard__chip { border-color: rgba(36,36,36,0.18); background: rgba(255,255,255,0.4); }
.pcard--graphite { background: #4a4d52; }
.pcard--frost { background: rgba(255,255,255,0.55); color: var(--ink); border: 1px solid rgba(255,255,255,0.8); backdrop-filter: blur(10px); }
.pcard--frost .pcard__chip { border-color: rgba(36,36,36,0.2); }
.pcard img.pcard__art { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -1; }
.contactless { width: 1.4em; height: 1.4em; }

.toggle-row { display: flex; justify-content: space-between; align-items: center; font-size: 14px; padding: 6px 0; border-bottom: 1px solid var(--line); }
.switch { width: 34px; height: 20px; border-radius: 999px; background: var(--ink); position: relative; flex: none; }
.switch::after { content: ""; position: absolute; top: 2px; left: 16px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: left 0.2s var(--ease); }
.switch.off { background: #d1d5db; }
.switch.off::after { left: 2px; }

/* ---------- Sections ---------- */
.section { padding: clamp(80px, 10vw, 136px) 0; position: relative; }
.section--alt { background: var(--glass-alt); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); border-block: 1px solid var(--line); }
.section__head { text-align: center; max-width: 820px; margin: 0 auto clamp(40px, 5vw, 64px); display: grid; justify-items: center; gap: 18px; }
.section__head .lede { max-width: 640px; }

/* Bento */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.tile {
  grid-column: span 2; position: relative;
  background: var(--glass); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--line); border-radius: var(--r);
  padding: 28px; box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column; gap: 12px;
  transition: transform 0.24s var(--ease), box-shadow 0.24s var(--ease);
  overflow: hidden;
}
.section--alt .tile { background: rgba(255,255,255,0.85); }
.tile:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.tile--grey { background: var(--glass-alt); }
.tile--w3 { grid-column: span 3; }
.tile--w4 { grid-column: span 4; }
.tile--w6 { grid-column: span 6; }
.tile h3 { margin-top: 4px; }
.tile p { color: var(--ink-2); font-size: 16px; }
.tile__ico { width: 44px; height: 44px; border-radius: 12px; background: #fff; border: 1px solid var(--line); display: grid; place-items: center; box-shadow: var(--shadow-sm); }
.tile__num { font: 600 13px/1 var(--body); color: var(--ink-2); letter-spacing: 0.08em; }
.tile__ui { margin-top: auto; padding-top: 14px; }
.tile__visual { margin-top: auto; padding-top: 18px; display: grid; gap: 8px; }

.uirow { display: flex; align-items: center; justify-content: space-between; gap: 10px; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; font-size: 14px; box-shadow: var(--shadow-sm); }
.uirow .k { color: var(--ink-2); }
.uirow b { font-weight: 500; font-variant-numeric: tabular-nums; }
.bar { height: 8px; border-radius: 999px; background: var(--bg-alt); overflow: hidden; }
.bar i { display: block; height: 100%; background: var(--ink); border-radius: inherit; }

/* Feature accordion + visual + live stats */
.feat { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(28px, 4vw, 64px); align-items: start; }
.acc { display: grid; gap: 10px; }
.acc__item { background: var(--glass); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border: 1px solid var(--line); border-radius: var(--r); transition: box-shadow 0.2s var(--ease), background 0.2s var(--ease); }
.acc__item.is-open { background: #fff; box-shadow: var(--shadow); }
.acc__btn { width: 100%; display: flex; align-items: center; gap: 14px; text-align: left; padding: 20px 22px; background: none; border: 0; cursor: pointer; font: 600 21px/1.25 var(--display); border-radius: var(--r); }
.acc__btn .plus { margin-left: auto; width: 28px; height: 28px; border-radius: 8px; border: 1px solid var(--line); display: grid; place-items: center; flex: none; transition: transform 0.25s var(--ease); background: #fff; }
.acc__item.is-open .plus { transform: rotate(45deg); }
.acc__panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.26s var(--ease); }
.acc__item.is-open .acc__panel { grid-template-rows: 1fr; }
.acc__panel > div { overflow: hidden; }
.acc__panel p { padding: 0 22px 22px 64px; color: var(--ink-2); }

.feat__visual { position: sticky; top: 100px; display: grid; gap: 16px; }
.visual-box { border-radius: var(--r); background: var(--sand); border: 1px solid var(--line); padding: clamp(24px, 5vw, 56px); display: grid; place-items: center; min-height: 360px; position: relative; overflow: hidden; perspective: 900px; }
.visual-box .pcard { max-width: 420px; transition: transform 0.3s var(--ease); font-size: clamp(16px, 2vw, 22px); }
.visual-box__chip { position: absolute; transition: opacity 0.25s var(--ease), transform 0.25s var(--spring); }

.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.stat { background: var(--glass); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border: 1px solid var(--line); border-radius: 14px; padding: 16px; min-height: 96px; display: grid; align-content: space-between; gap: 6px; transition: transform 0.24s var(--ease), box-shadow 0.24s var(--ease); }
.stat:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.stat small { font-size: 13px; color: var(--ink-2); display: flex; align-items: center; gap: 6px; }
.stat b { font: 600 24px/1.1 var(--display); font-variant-numeric: tabular-nums; }
.stat em { font-style: normal; font-size: 12px; color: var(--ink-2); }
.live-dot { width: 7px; height: 7px; border-radius: 50%; background: #9aa0a6; flex: none; }
.is-live .live-dot { background: var(--ok); box-shadow: 0 0 0 3px rgba(21,128,61,0.15); }
.stats__note { font-size: 13px; color: var(--ink-2); }

/* Token / CA */
.ca { display: flex; align-items: center; gap: 10px; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 8px 8px 8px 16px; box-shadow: var(--shadow-sm); max-width: 640px; margin: 0 auto; }
.ca code { flex: 1; min-width: 0; font: 500 15px/1.4 ui-monospace, SFMono-Regular, Menlo, monospace; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-align: left; }
.ca .btn { --h: 40px; padding: 0 14px; font-size: 15px; }

/* FAQ */
.faq { max-width: 880px; margin: 0 auto; }

/* CTA band */
.cta { text-align: center; display: grid; justify-items: center; gap: 22px; padding: clamp(48px, 7vw, 88px) var(--pad); background: var(--glass-alt); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border: 1px solid var(--line); border-radius: 24px; }

/* Forms */
.form { display: flex; gap: 10px; width: 100%; max-width: 520px; margin: 0 auto; }
.field { flex: 1; min-width: 0; height: 52px; border-radius: 14px; border: 1px solid var(--line); background: #fff; padding: 0 16px; font: 400 17px var(--body); color: var(--ink); box-shadow: var(--shadow-sm); }
.field::placeholder { color: #80868f; }
.field:focus-visible { outline: 2px solid var(--ink); outline-offset: 1px; }
.form__msg { min-height: 24px; font-size: 14px; color: var(--ink-2); margin-top: 10px; }
label.lbl { font-size: 14px; font-weight: 500; display: block; margin-bottom: 8px; }

/* Calculator */
.calc { display: grid; gap: 14px; }
.calc__out { font: 600 44px/1 var(--display); font-variant-numeric: tabular-nums; }

/* ---------- Page header (inner pages) ---------- */
.phead { padding-top: clamp(64px, 8vw, 100px); padding-bottom: clamp(40px, 5vw, 64px); text-align: center; display: grid; justify-items: center; gap: 20px; }
.phead h1 { max-width: 980px; padding-left: clamp(0px, 2vw, 28px); }
.phead .lede { max-width: 640px; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; counter-reset: s; }

/* Compare table */
.compare { width: 100%; border-collapse: separate; border-spacing: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; font-size: 16px; }
.compare th, .compare td { padding: 16px 20px; text-align: left; border-bottom: 1px solid var(--line); }
.compare tr:last-child td { border-bottom: 0; }
.compare thead th { background: var(--bg-alt); font-weight: 600; font-size: 14px; }
.compare td:first-child { color: var(--ink-2); }
.table-scroll { overflow-x: auto; border-radius: var(--r); }

/* Studio */
.studio { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 24px; align-items: start; }
.studio__stage { position: sticky; top: 100px; border-radius: var(--r); background: var(--sand); border: 1px solid var(--line); min-height: 480px; display: grid; place-items: center; padding: 40px; perspective: 1000px; overflow: hidden; }
.studio__stage .pcard { max-width: 460px; font-size: clamp(16px, 2.2vw, 24px); transition: transform 0.12s linear; transform-style: preserve-3d; }
.panel { background: var(--glass); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border: 1px solid var(--line); border-radius: var(--r); padding: 24px; display: grid; gap: 22px; }
.seg { display: flex; flex-wrap: wrap; gap: 8px; }
.seg button { height: 40px; padding: 0 14px; border-radius: 10px; border: 1px solid var(--line); background: #fff; cursor: pointer; font-size: 15px; display: inline-flex; align-items: center; gap: 8px; transition: transform 0.12s var(--ease); }
.seg button:active { transform: translateY(1px); }
.seg button[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.swatch { width: 14px; height: 14px; border-radius: 50%; border: 1px solid rgba(0,0,0,0.15); }

/* Live */
.spark { width: 100%; height: 220px; display: block; }
.chart-box { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 20px; box-shadow: var(--shadow-sm); }
.split { height: 14px; border-radius: 999px; overflow: hidden; display: flex; background: var(--bg-alt); }
.split i { display: block; height: 100%; transition: width 0.3s var(--ease); }
.split .b { background: var(--ink); }
.split .s { background: #c7cad0; }
.log { font: 13px/1.6 ui-monospace, SFMono-Regular, Menlo, monospace; color: var(--ink-2); max-height: 220px; overflow: auto; margin: 0; padding: 0; list-style: none; }
.log li { padding: 4px 0; border-bottom: 1px dashed var(--line); }

/* ---------- Footer ---------- */
.foot { padding: 72px 0 140px; border-top: 1px solid var(--line); background: rgba(255,255,255,0.8); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.foot__grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 32px; }
.foot h2 { font-size: 14px; font-family: var(--body); font-weight: 600; color: var(--ink-2); margin-bottom: 14px; letter-spacing: 0; }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.foot a { text-decoration: none; color: var(--ink); font-size: 16px; }
.foot a:hover { text-decoration: underline; text-underline-offset: 3px; }
.foot__legal { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); font-size: 14px; color: var(--ink-2); display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }

/* ---------- Bottom dock (unusual nav) ---------- */
.dock {
  position: fixed; left: 50%; bottom: 18px; z-index: 60; transform: translateX(-50%);
  display: flex; align-items: center; gap: 4px; padding: 6px;
  background: rgba(36,36,36,0.92); color: #fff; border-radius: 16px;
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 16px 40px -14px rgba(16,24,40,0.5);
  transition: transform 0.25s var(--ease), opacity 0.25s var(--ease);
}
.dock.is-hidden { transform: translate(-50%, 120%); opacity: 0; pointer-events: none; }
.dock a, .dock button { height: 40px; min-width: 40px; padding: 0 12px; border-radius: 11px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; color: #fff; text-decoration: none; background: none; border: 0; cursor: pointer; font-size: 14px; font-weight: 500; transition: background 0.15s var(--ease), transform 0.12s var(--ease); }
.dock a:hover, .dock button:hover { background: rgba(255,255,255,0.12); }
.dock a:active, .dock button:active { transform: translateY(1px); }
.dock :focus-visible { outline-color: #fff; }
.dock__idx { font: 600 14px/1 var(--display); padding: 0 10px; font-variant-numeric: tabular-nums; letter-spacing: 0.02em; }
.dock__idx span { opacity: 0.55; }
.dock__name { max-width: 140px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dock__prog { position: absolute; left: 14px; right: 14px; bottom: 3px; height: 2px; border-radius: 2px; background: rgba(255,255,255,0.15); overflow: hidden; }
.dock__prog i { display: block; height: 100%; width: 0; background: #fff; }
kbd { font: 600 11px/1 var(--body); border: 1px solid rgba(255,255,255,0.3); border-radius: 5px; padding: 3px 5px; }

/* ---------- Full-screen menu ---------- */
.menu {
  position: fixed; inset: 0; z-index: 150; background: rgba(255,255,255,0.94);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  display: grid; grid-template-rows: auto 1fr auto; padding: 18px var(--pad) 28px;
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity 0.22s var(--ease), visibility 0s linear 0.22s;
}
.menu.is-open { opacity: 1; visibility: visible; pointer-events: auto; transition-delay: 0s; }
.menu__top { display: flex; justify-content: space-between; align-items: center; max-width: var(--max); width: 100%; margin: 0 auto; }
.menu__list { list-style: none; margin: 0 auto; padding: 0; align-self: center; width: 100%; max-width: 1100px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 4px 40px; }
.menu__list a { display: flex; align-items: baseline; gap: 18px; padding: 10px 0; border-bottom: 1px solid var(--line); text-decoration: none; font: 600 clamp(32px, 4.6vw, 58px)/1.1 var(--display); transform: translateY(10px); opacity: 0; transition: transform 0.28s var(--spring), opacity 0.2s var(--ease), padding 0.2s var(--ease); }
.menu.is-open .menu__list a { transform: none; opacity: 1; }
.menu__list a:hover { padding-left: 10px; }
.menu__list small { font: 600 13px/1 var(--body); color: var(--ink-2); min-width: 26px; }
.menu__list a[aria-current="page"] small::after { content: " ●"; color: var(--accent); }
.menu__foot { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; max-width: var(--max); width: 100%; margin: 0 auto; color: var(--ink-2); font-size: 14px; }

/* ---------- Reveal ---------- */
.rv { opacity: 0; transform: translateY(14px); transition: opacity 0.28s var(--ease), transform 0.28s var(--ease); }
.rv.is-in { opacity: 1; transform: none; }

/* ---------- Toast ---------- */
.toast { position: fixed; left: 50%; bottom: 84px; transform: translate(-50%, 10px); z-index: 120; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 12px; font-size: 14px; opacity: 0; pointer-events: none; transition: opacity 0.2s var(--ease), transform 0.2s var(--ease); }
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* ---------- 404 ---------- */
.nf { min-height: 70vh; display: grid; place-items: center; text-align: center; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1180px) {
  .app { grid-template-columns: 180px 1fr; }
  .app__right { display: none; }
}
@media (max-width: 980px) {
  .nav__links { display: none; }
  .nav__menu-btn { display: inline-flex; }
  .bento { grid-template-columns: repeat(2, 1fr); }
  .tile, .tile--w3, .tile--w4 { grid-column: span 1; }
  .tile--w6, .tile--wide-m { grid-column: span 2; }
  .feat, .studio { grid-template-columns: 1fr; }
  .feat__visual, .studio__stage { position: static; }
  .steps { grid-template-columns: 1fr; }
  .foot__grid { grid-template-columns: 1fr 1fr; }
  .menu__list { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  body { font-size: 16.5px; }
  .nav { top: 8px; margin-top: 8px; width: calc(100% - 16px); }
  .nav__bar { height: 56px; padding: 0 6px 0 14px; }
  .nav__end .btn--primary { --h: 40px; padding: 0 14px; font-size: 15px; }
  .brand__tick { display: none; }
  .hero { padding-top: 56px; }
  .headline { padding-left: 0; font-size: clamp(32px, 9vw, 56px); }
  .phead h1 { font-size: clamp(34px, 9.4vw, 52px); padding-left: 0; }
  .inl--chip { font-size: 0.3em; }
  .hero__cta .btn { width: 100%; }
  .stage { margin-top: 44px; padding: 16px 12px 0; }
  .app { grid-template-columns: 1fr; min-height: 0; }
  .app__side { display: none; }
  .app__main { padding: 16px; }
  .balance strong { font-size: 34px; }
  .minirow { grid-template-columns: 1fr 1fr; }
  .minirow .mini:nth-child(3) { display: none; }
  .tx__row { grid-template-columns: 30px 1fr auto; }
  .tx__row .status { display: none; }
  .bento { grid-template-columns: 1fr; }
  .tile, .tile--w3, .tile--w4, .tile--w6, .tile--wide-m { grid-column: span 1; }
  .tile { padding: 22px; }
  .stats { grid-template-columns: 1fr 1fr; }
  .acc__panel p { padding-left: 22px; }
  .acc__btn { font-size: 19px; padding: 18px; }
  .form { flex-direction: column; }
  .form .btn { width: 100%; }
  .foot { padding-bottom: 120px; }
  .foot__grid { grid-template-columns: 1fr; }
  .dock { bottom: 12px; }
  .dock__name, .dock .hide-m { display: none; }
  .studio__stage { min-height: 300px; padding: 24px; }
  .compare th, .compare td { padding: 12px 14px; }
}

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

/* switch rows used as real buttons */
button.uirow { width: 100%; cursor: pointer; text-align: left; font: inherit; color: inherit; transition: transform 0.12s var(--ease), box-shadow 0.2s var(--ease); }
button.uirow:active { transform: translateY(1px); }
button.uirow:hover { box-shadow: var(--shadow); }

.seg .btn--primary, .seg .btn--primary:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.seg .btn--ghost { border-color: transparent; background: transparent; }

/* closed-eye card inside the headline */
.inl--eye { width: 0.74em; border-radius: 0.18em; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); }
.inl--eye svg { width: 86%; height: 86%; margin-top: -8%; fill: none; stroke: var(--ink); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }

.intro__word .intro__eye { display: inline-flex; align-items: center; justify-content: center; width: 0.62em; height: 0.62em; margin-left: 0.14em; }
