/* ==========================================================================
   Ringlet — styles
   ========================================================================== */

:root {
  --black: #050505;
  --charcoal: #151515;
  --white: #ffffff;
  --silver: #c7c7c7;
  --grey: #888888;
  --line: rgba(199, 199, 199, 0.12);
  --line-strong: rgba(199, 199, 199, 0.22);
  --font-sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-serif: "Instrument Serif", ui-serif, Georgia, serif;
  --radius: 20px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --max: 1180px;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--black);
  color: var(--silver);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

h1, h2, h3 { color: var(--white); margin: 0; font-weight: 500; letter-spacing: -0.03em; }
p { margin: 0; }
em { font-family: var(--font-serif); font-style: italic; font-weight: 400; letter-spacing: -0.01em; }

::selection { background: var(--silver); color: var(--black); }

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

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--white); color: var(--black);
  padding: 10px 16px; border-radius: 10px; font-weight: 500;
  transition: top .2s;
}
.skip-link:focus { top: 16px; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 28px; }
.container.narrow { max-width: 820px; }

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 50px; padding: 0 26px; border-radius: 999px;
  font-size: 15px; font-weight: 500; letter-spacing: -0.01em;
  transition: transform .4s var(--ease), background .3s, border-color .3s, color .3s, box-shadow .4s;
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; transition: transform .4s var(--ease); }
.btn:hover svg { transform: translateX(3px); }

.btn-primary {
  background: linear-gradient(180deg, #ffffff, #d9d9d9);
  color: var(--black);
  box-shadow: 0 0 0 1px rgba(255,255,255,.4) inset, 0 10px 30px -10px rgba(255,255,255,.35);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 0 0 1px rgba(255,255,255,.6) inset, 0 16px 40px -12px rgba(255,255,255,.45); }

.btn-ghost {
  border: 1px solid var(--line-strong);
  color: var(--white);
  background: rgba(255,255,255,.02);
}
.btn-ghost:hover { border-color: rgba(255,255,255,.5); background: rgba(255,255,255,.05); }

.btn-sm { height: 40px; padding: 0 18px; font-size: 14px; }
.btn-block { width: 100%; }

.x-icon { width: 14px; height: 14px; fill: currentColor; }

/* --------------------------------------------------------------------------
   Header / Nav
   -------------------------------------------------------------------------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  transition: background .4s, border-color .4s, backdrop-filter .4s;
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: rgba(5,5,5,.72);
  backdrop-filter: saturate(140%) blur(16px);
  -webkit-backdrop-filter: saturate(140%) blur(16px);
  border-bottom-color: var(--line);
}

.nav { display: flex; align-items: center; justify-content: space-between; height: 76px; }

.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--white); font-weight: 500; font-size: 18px; letter-spacing: -0.02em; }

.nav-menu { display: flex; align-items: center; gap: 36px; }
.nav-menu ul { list-style: none; display: flex; gap: 32px; margin: 0; padding: 0; }
.nav-menu ul a { font-size: 14px; color: var(--silver); transition: color .25s; position: relative; }
.nav-menu ul a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 1px;
  background: var(--white); transform: scaleX(0); transform-origin: left; transition: transform .4s var(--ease);
}
.nav-menu ul a:hover { color: var(--white); }
.nav-menu ul a:hover::after { transform: scaleX(1); }

.nav-toggle { display: none; width: 44px; height: 44px; position: relative; border-radius: 12px; }
.nav-toggle span {
  position: absolute; left: 12px; right: 12px; height: 1.5px; background: var(--white);
  transition: transform .4s var(--ease), top .4s var(--ease);
}
.nav-toggle span:first-child { top: 18px; }
.nav-toggle span:last-child { top: 25px; }
.nav-toggle[aria-expanded="true"] span:first-child { top: 21.5px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:last-child { top: 21.5px; transform: rotate(-45deg); }

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh;
  display: flex; align-items: center;
  padding: 140px 0 120px; overflow: hidden; isolation: isolate;
}
.hero-bg { position: absolute; inset: 0; z-index: -1; }

.curves { position: absolute; inset: 0; width: 100%; height: 100%; }
.curves { will-change: transform; }
.curve { fill: none; stroke: url(#silver); stroke-width: 1.2; opacity: 0; animation: curveIn 2.4s var(--ease) forwards; }
.c1 { animation-delay: .1s; --o: 1; }
.c2 { animation-delay: .3s; --o: .7; }
.c3 { animation-delay: .5s; --o: .4; }
.c4 { animation-delay: .7s; --o: .25; stroke-width: 1; }
@keyframes curveIn { to { opacity: var(--o); } }

.glow { position: absolute; border-radius: 50%; filter: blur(80px); pointer-events: none; }
.g1 {
  width: 720px; height: 420px; left: 50%; top: 58%;
  transform: translate(-50%, -50%);
  background: radial-gradient(closest-side, rgba(199,199,199,.16), transparent);
  animation: breathe 9s ease-in-out infinite alternate;
}
.g2 {
  width: 520px; height: 520px; right: -160px; top: -120px;
  background: radial-gradient(closest-side, rgba(255,255,255,.06), transparent);
}
@keyframes breathe { from { opacity: .6; } to { opacity: 1; } }

.grain {
  position: absolute; inset: 0; opacity: .05; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.hero::after {
  content: ""; position: absolute; inset: auto 0 0 0; height: 200px; z-index: -1;
  background: linear-gradient(to bottom, transparent, var(--black));
}

.hero-inner { will-change: transform, opacity; text-align: center; display: flex; flex-direction: column; align-items: center; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 16px; border: 1px solid var(--line-strong); border-radius: 999px;
  font-size: 13px; color: var(--silver); background: rgba(255,255,255,.02);
  margin-bottom: 36px;
}
.dot { width: 6px; height: 6px; border-radius: 50%; background: var(--silver); box-shadow: 0 0 10px var(--silver); animation: pulse 2.4s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .35; } }

.hero h1 {
  font-size: clamp(48px, 9vw, 120px);
  line-height: .98; letter-spacing: -0.055em; font-weight: 500;
  background: linear-gradient(180deg, #ffffff 30%, #a9a9a9);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero h1 em { letter-spacing: -0.03em; padding-right: .06em; }

.lead { max-width: 560px; margin-top: 28px; font-size: clamp(17px, 2vw, 20px); color: var(--silver); }

.cta-row { display: flex; gap: 14px; margin-top: 44px; flex-wrap: wrap; justify-content: center; }

/* --------------------------------------------------------------------------
   Sections
   -------------------------------------------------------------------------- */
.section { padding: 140px 0; position: relative; scroll-margin-top: 40px; }
.section-alt { background: linear-gradient(180deg, var(--black), var(--charcoal) 18%, var(--charcoal) 82%, var(--black)); }

.section-head { max-width: 800px; margin-bottom: 72px; }
.kicker { font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--grey); margin-bottom: 20px; }
h2 { font-size: clamp(36px, 5.2vw, 64px); line-height: 1.04; letter-spacing: -0.045em; text-wrap: balance; }
.sub { margin-top: 24px; font-size: 18px; color: var(--silver); max-width: 620px; }

.badge {
  display: inline-block; margin-left: 6px; padding: 3px 12px; border-radius: 999px;
  font-size: 12px; letter-spacing: .04em; border: 1px solid var(--line-strong); color: var(--white);
  vertical-align: 2px;
}

.note { margin-top: 28px; font-size: 14px; color: var(--grey); padding-left: 14px; border-left: 1px solid var(--line-strong); }
.note.center { text-align: center; border: 0; padding: 0; margin-top: 48px; }

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

.card {
  position: relative; padding: 36px 32px; border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255,255,255,.035), rgba(255,255,255,.01));
  border: 1px solid var(--line);
  transition: border-color .4s, transform .6s var(--ease);
}
.card::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: radial-gradient(400px circle at var(--mx, 50%) var(--my, 0%), rgba(255,255,255,.06), transparent 40%);
  opacity: 0; transition: opacity .4s;
}
.card:hover { border-color: var(--line-strong); transform: translateY(-3px); }
.card:hover::before { opacity: 1; }
.card h3 { font-size: 21px; margin: 28px 0 12px; letter-spacing: -0.02em; }
.card p { color: var(--grey); font-size: 15.5px; }

.icon {
  width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center;
  border: 1px solid var(--line-strong); background: rgba(255,255,255,.03);
}
.icon svg { width: 22px; height: 22px; fill: none; stroke: var(--white); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }

/* Split layout */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }

.checklist { list-style: none; padding: 0; margin: 36px 0 0; display: grid; gap: 14px; scroll-margin-top: 120px; }
.checklist li { display: flex; gap: 14px; align-items: baseline; color: var(--white); font-size: 16px; }
.checklist li span {
  flex: 0 0 22px; height: 22px; border-radius: 50%; display: inline-grid; place-items: center;
  font-size: 11px; border: 1px solid var(--line-strong); color: var(--silver); transform: translateY(4px);
}

/* Compare visual */
.compare { display: grid; gap: 18px; justify-items: center; }
.compare-card {
  width: 100%; max-width: 440px; padding: 28px; border-radius: var(--radius);
  border: 1px solid var(--line); background: rgba(255,255,255,.02); position: relative;
}
.compare-card.bright {
  border-color: var(--line-strong);
  background: linear-gradient(160deg, rgba(255,255,255,.08), rgba(255,255,255,.015));
  box-shadow: 0 30px 80px -30px rgba(255,255,255,.12);
}
.compare-card .tag { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--grey); }
.compare-card .label { color: var(--white); font-size: 18px; margin: 10px 0 14px; }
.compare-card code { transition: border-color .8s, color .8s, box-shadow .8s;
  display: block; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 13px;
  padding: 12px 14px; border-radius: 12px; background: rgba(0,0,0,.4); border: 1px solid var(--line);
  color: var(--silver); overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.compare-card.muted code { color: var(--grey); }
.caption { font-size: 13px; color: var(--grey); margin-top: 14px; }

.trail { display: flex; gap: 6px; margin-top: 14px; }
.trail span { height: 6px; flex: 1; border-radius: 3px; background: rgba(136,136,136,.18); transition: background .5s, box-shadow .5s; }

.pill-row { display: flex; gap: 8px; margin-top: 14px; flex-wrap: wrap; }
.pill { font-size: 13px; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line-strong); color: var(--white); }


/* Steps */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: s; }
.step {
  position: relative; padding: 32px; border-radius: var(--radius);
  border: 1px solid var(--line); background: rgba(255,255,255,.015);
}
.step-num { font-family: var(--font-serif); font-size: 40px; color: var(--white); line-height: 1; }
.step h3 { font-size: 20px; margin: 24px 0 10px; }
.step p { color: var(--grey); font-size: 15.5px; }

.step-visual {
  height: 170px; margin-top: 24px; border-radius: 16px; position: relative; overflow: hidden;
  background: radial-gradient(120% 90% at 50% 0%, rgba(255,255,255,.06), transparent 60%), var(--charcoal);
  border: 1px solid var(--line); display: grid; place-items: center;
}

.mini-form { width: 70%; display: grid; gap: 10px; }
.mf-line { height: 6px; border-radius: 3px; background: rgba(199,199,199,.18); }
.w60 { width: 60%; } .w80 { width: 80%; }
.mf-field { padding: 8px 12px; border: 1px solid var(--line-strong); border-radius: 10px; font-size: 13px; color: var(--grey); }
.mf-field b { color: var(--white); font-weight: 500; }
.mf-btn { justify-self: start; font-size: 12px; padding: 6px 14px; border-radius: 999px; background: var(--white); color: var(--black); }

.mini-link {
  position: relative; z-index: 1; display: flex; align-items: center; gap: 10px;
  padding: 10px 16px; border-radius: 999px; border: 1px solid var(--line-strong);
  background: rgba(5,5,5,.8); font-size: 13px; color: var(--white);
}
.mini-link svg { width: 16px; height: 16px; fill: none; stroke: var(--silver); stroke-width: 1.6; stroke-linecap: round; }
.ripples { position: absolute; inset: 0; display: grid; place-items: center; }
.ripples i {
  position: absolute; width: 120px; height: 120px; border-radius: 50%;
  border: 1px solid rgba(199,199,199,.25); animation: ripple 4s var(--ease) infinite;
}
.ripples i:nth-child(2) { animation-delay: 1.3s; }
.ripples i:nth-child(3) { animation-delay: 2.6s; }
@keyframes ripple { from { transform: scale(.6); opacity: 1; } to { transform: scale(2.6); opacity: 0; } }

.mini-shield {
  width: 76px; height: 76px; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid var(--line-strong);
  background: radial-gradient(circle, rgba(255,255,255,.1), transparent 70%);
  box-shadow: 0 0 60px -10px rgba(255,255,255,.25);
}
.mini-shield svg { width: 32px; height: 32px; fill: none; stroke: var(--white); stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }

/* Technology */
.tech-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.tech-card {
  padding: 40px; border-radius: var(--radius); border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.01));
}
.tech-card h3 { font-size: 26px; margin-bottom: 18px; }
.tech-card p { color: var(--silver); font-size: 15.5px; }
.tech-card p + p { margin-top: 14px; }
.tech-card strong { color: var(--white); font-weight: 500; }

.status { margin-top: 20px; padding: 40px; border-radius: var(--radius); border: 1px solid var(--line); background: rgba(5,5,5,.5); }
.status h3 { font-size: 20px; margin-bottom: 24px; }
.status-row {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 16px 0; border-top: 1px solid var(--line); font-size: 15px; color: var(--white);
}
.status-row.head { border-top: 0; padding-top: 0; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--grey); }
.st {
  font-style: normal; font-size: 12px; padding: 4px 12px; border-radius: 999px;
  border: 1px solid var(--line-strong); white-space: nowrap; display: inline-flex; align-items: center; gap: 8px;
}
.st::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.st.live { color: var(--white); background: rgba(255,255,255,.06); }
.st.planned { color: var(--silver); }
.st.research { color: var(--grey); }
.st.none { color: #5f5f5f; border-color: var(--line); }
.disclosure { margin-top: 24px; padding: 16px 18px; border-radius: 14px; border: 1px solid var(--line-strong); background: rgba(255,255,255,.03); font-size: 14px; color: var(--silver); }
.disclosure strong { color: var(--white); font-weight: 500; }

/* Demo / checkout */
.checkout-wrap { position: relative; display: grid; place-items: center; padding: 20px 0; }
.checkout-wrap::before {
  content: ""; position: absolute; width: 80%; height: 70%; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(199,199,199,.14), transparent); filter: blur(40px);
}
.checkout {
  position: relative; width: 100%; max-width: 400px; padding: 32px; border-radius: 28px;
  background: linear-gradient(180deg, #1b1b1b, #0e0e0e);
  border: 1px solid var(--line-strong);
  box-shadow: 0 1px 0 rgba(255,255,255,.08) inset, 0 40px 100px -30px rgba(0,0,0,.9);
}
.demo-label {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  padding: 5px 14px; border-radius: 999px; font-size: 12px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase;
  background: var(--white); color: var(--black); white-space: nowrap;
}
.co-head { display: flex; align-items: center; gap: 14px; }
.avatar {
  width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center;
  background: linear-gradient(145deg, #3a3a3a, #1a1a1a); border: 1px solid var(--line-strong);
  color: var(--white); font-size: 14px; font-weight: 500;
}
.co-merchant { color: var(--white); font-weight: 500; }
.co-desc { color: var(--grey); font-size: 14px; }

.co-amount { margin: 32px 0 28px; display: flex; align-items: baseline; gap: 10px; }
.amt { font-size: 64px; line-height: 1; letter-spacing: -0.05em; color: var(--white); font-weight: 500; }
.cur { font-size: 20px; color: var(--silver); }

.co-rows { border-top: 1px solid var(--line); }
.co-row { display: flex; justify-content: space-between; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.co-row span:first-child { color: var(--grey); }
.co-row span:last-child { color: var(--white); }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 13px; }

.switch {
  width: 44px; height: 26px; border-radius: 999px; position: relative;
  background: rgba(255,255,255,.1); border: 1px solid var(--line-strong); transition: background .3s;
}
.switch span {
  position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%;
  background: var(--grey); transition: transform .4s var(--ease), background .3s;
}
.switch[aria-checked="true"] { background: rgba(255,255,255,.22); }
.switch[aria-checked="true"] span { transform: translateX(18px); background: var(--white); }

.co-hint { font-size: 13px; color: var(--grey); margin: 16px 0 22px; min-height: 20px; }
.co-notice { font-size: 13px; color: var(--white); text-align: center; min-height: 20px; margin-top: 12px; transition: opacity .3s; }
.co-foot { text-align: center; font-size: 12px; color: var(--grey); margin-top: 6px; }

/* FAQ */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; padding: 28px 48px 28px 0; position: relative;
  font-size: clamp(18px, 2.2vw, 22px); color: var(--white); letter-spacing: -0.02em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after, .faq summary::before {
  content: ""; position: absolute; right: 8px; top: 50%; width: 14px; height: 1.5px; background: var(--silver);
  transition: transform .4s var(--ease);
}
.faq summary::before { transform: rotate(90deg); }
.faq details[open] summary::before { transform: rotate(0deg); }
.faq summary:hover { color: var(--silver); }
.answer { padding: 0 48px 28px 0; color: var(--grey); font-size: 16px; animation: fadeDown .5s var(--ease); }
.answer a { color: var(--white); border-bottom: 1px solid var(--line-strong); }
@keyframes fadeDown { from { opacity: 0; transform: translateY(-6px); } }

/* CTA band */
.cta-band { padding: 160px 0; position: relative; overflow: hidden; text-align: center; }
.cta-band::before {
  content: ""; position: absolute; left: 50%; top: 50%; width: 900px; height: 900px; transform: translate(-50%, -50%);
  border-radius: 50%; border: 1px solid var(--line);
  box-shadow: 0 0 0 120px rgba(255,255,255,.012), 0 0 0 240px rgba(255,255,255,.008);
}
.cta-inner { position: relative; display: flex; flex-direction: column; align-items: center; }
.cta-inner .sub { margin: 20px 0 40px; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 64px 0 40px; }
.footer-inner { display: flex; justify-content: space-between; align-items: flex-start; gap: 40px; flex-wrap: wrap; }
.footer-brand p { margin-top: 12px; color: var(--grey); font-size: 14px; }
.footer-links { display: flex; gap: 28px; flex-wrap: wrap; }
.footer-links a { font-size: 14px; color: var(--silver); transition: color .25s; }
.footer-links a:hover { color: var(--white); }
.footer-bottom {
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--line);
  font-size: 13px; color: var(--grey);
}

/* --------------------------------------------------------------------------
   Idea visual — living transformation
   -------------------------------------------------------------------------- */
.compare { gap: 0; }
.compare-card { transition: opacity .8s var(--ease), transform .8s var(--ease), border-color .8s, box-shadow .8s, background .8s; overflow: hidden; }
.compare-card code { transition: border-color .8s, color .8s, box-shadow .8s; position: relative; min-height: 43px; }
.caret { display: inline-block; width: 1px; height: 14px; margin-left: 2px; vertical-align: -2px; background: var(--silver); opacity: 0; }
.compare-card .caption, .compare-card .pill { transition: opacity .6s var(--ease), transform .6s var(--ease); }

.js .compare.anim .compare-card.dim { opacity: .38; transform: scale(.97); }
.js .compare.anim .compare-card.muted.on { border-color: var(--line-strong); }
.js .compare.anim .compare-card.muted { opacity: .25; transform: translateY(10px); }
.js .compare.anim .compare-card.muted.on { opacity: 1; transform: none; }
.js .compare.anim .compare-card.muted.on.dim { opacity: .38; transform: scale(.97); }
.js .compare.anim .compare-card.bright { opacity: .15; transform: translateY(14px) scale(.97); box-shadow: none; }
.js .compare.anim .flow-line, .js .compare.anim .flow-label { transition: opacity .6s var(--ease); }
.js .compare.anim:not(.flowing) .flow-label { opacity: .5; }
.js .compare.anim .compare-card.bright.on code { border-color: rgba(255,255,255,.28); color: var(--white); box-shadow: 0 0 22px -8px rgba(255,255,255,.3); }
.js .compare.anim .compare-card.bright.on { animation: floatB 5s ease-in-out .9s infinite; opacity: 1; transform: none; box-shadow: 0 30px 80px -30px rgba(255,255,255,.16), 0 0 0 1px rgba(255,255,255,.12) inset; }
.js .compare.anim .caption { opacity: 0; transform: translateY(4px); }
.js .compare.anim .show-cap .caption { opacity: 1; transform: none; }
.js .compare.anim .pill { opacity: 0; transform: translateY(6px) scale(.96); }
.js .compare.anim .pills-in .pill { opacity: 1; transform: none; }
.js .compare.anim .pills-in .pill:nth-child(2) { transition-delay: .12s; }
.js .compare.anim .typing .caret { opacity: 1; animation: blink .9s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

.trail span.lit { background: rgba(199,199,199,.75); box-shadow: 0 0 12px rgba(255,255,255,.25); }

.sheen {
  position: absolute; inset: 0; pointer-events: none; border-radius: inherit;
  background: linear-gradient(105deg, transparent 35%, rgba(255,255,255,.10) 50%, transparent 65%);
  transform: translateX(-120%);
}
.compare-card.bright.sweep .sheen { animation: sheen 1.6s var(--ease) forwards; }
@keyframes sheen { to { transform: translateX(120%); } }

.compare-flow { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 14px 0; }
.flow-line { position: relative; width: 1px; height: 26px; background: var(--line-strong); overflow: hidden; }
.flow-dot {
  position: absolute; left: -1.5px; top: -10px; width: 4px; height: 10px; border-radius: 2px;
  background: linear-gradient(to bottom, transparent, #fff); opacity: 0;
}
.compare.flowing .flow-line:first-child .flow-dot { animation: flow .6s ease-in forwards; }
.compare.flowing .flow-line:last-child .flow-dot { animation: flow .6s ease-out .55s forwards; }
@keyframes flow { 0% { top: -10px; opacity: 1; } 100% { top: 30px; opacity: 1; } }
.flow-label {
  font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--grey);
  padding: 5px 12px; border: 1px solid var(--line); border-radius: 999px; transition: color .5s, border-color .5s, box-shadow .5s;
}
.compare.flowing .flow-label { color: var(--white); border-color: var(--line-strong); box-shadow: 0 0 24px -4px rgba(255,255,255,.25); }

@keyframes floatB { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-4px); } }

/* How it works — inner visuals come alive on entry */
.js .step .mf-line, .js .step .mf-field, .js .step .mf-btn { transform-origin: left; transition: transform .9s var(--ease), opacity .9s var(--ease); }
.js .step:not(.in) .mf-line { transform: scaleX(0); }
.js .step:not(.in) .mf-field, .js .step:not(.in) .mf-btn { opacity: 0; transform: translateY(6px); }
.js .step.in .mf-line.w80 { transition-delay: .5s; }
.js .step.in .mf-field { transition-delay: .35s; }
.js .step.in .mf-btn { transition-delay: .7s; }
.js .step .mini-link { transition: transform 1s var(--ease) .4s, opacity 1s var(--ease) .4s; }
.js .step:not(.in) .mini-link { opacity: 0; transform: translateY(10px) scale(.95); }
.js .step .mini-shield svg path { stroke-dasharray: 80; stroke-dashoffset: 80; transition: stroke-dashoffset 1.6s var(--ease) .5s; }
.js .step.in .mini-shield svg path { stroke-dashoffset: 0; }

/* --------------------------------------------------------------------------
   Interactive demo checkout
   -------------------------------------------------------------------------- */
.checkout { transition: box-shadow .8s var(--ease), border-color .8s; overflow: hidden; }
.checkout .demo-label { z-index: 3; }
.checkout { overflow: visible; }
.checkout[data-privacy="on"] {
  box-shadow: 0 1px 0 rgba(255,255,255,.08) inset, 0 0 0 1px rgba(255,255,255,.06), 0 0 60px -20px rgba(255,255,255,.18), 0 40px 100px -30px rgba(0,0,0,.9);
}
.checkout[data-privacy="off"] { border-color: var(--line); }

.co-amount { position: relative; flex-wrap: wrap; }
.amt { transition: filter .6s var(--ease), opacity .6s; }
.checkout.flash .amt { animation: amtFlash .7s var(--ease); }
@keyframes amtFlash { 40% { filter: blur(6px); opacity: .5; } }

.chip {
  margin-left: auto; align-self: center; display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; padding: 5px 10px; border-radius: 999px; border: 1px solid var(--line-strong);
  color: var(--white); background: rgba(255,255,255,.05); transition: color .5s, background .5s, border-color .5s;
  position: relative;
}
.chip svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: opacity .4s, transform .5s var(--ease); }
.chip .i-eye { position: absolute; left: 10px; }
.chip-on, .chip-off { transition: opacity .4s; }
.chip-off { position: absolute; left: 29px; opacity: 0; white-space: nowrap; }
.checkout[data-privacy="off"] .chip { color: var(--grey); background: transparent; border-color: var(--line); }
.checkout[data-privacy="on"] .i-eye, .checkout[data-privacy="off"] .i-lock { opacity: 0; transform: scale(.6) rotate(-20deg); }
.checkout[data-privacy="off"] .chip-on { opacity: 0; }
.checkout[data-privacy="off"] .chip-off { opacity: 1; }

.swap { position: relative; display: inline-grid; text-align: right; }
.swap > span { grid-area: 1 / 1; transition: opacity .45s var(--ease), transform .45s var(--ease); }
.swap-off { opacity: 0; transform: translateY(6px); }
.checkout[data-privacy="off"] .swap-on { opacity: 0; transform: translateY(-6px); }
.checkout[data-privacy="off"] .swap-off { opacity: 1; transform: none; }

.switch { transition: background .4s, border-color .4s, box-shadow .4s; }
.switch:hover { border-color: rgba(255,255,255,.4); }
.switch[aria-checked="true"] { box-shadow: 0 0 16px -2px rgba(255,255,255,.35); }
.switch:active span { width: 22px; }
.switch[aria-checked="true"]:active span { transform: translateX(14px); }
.switch span { transition: transform .45s var(--ease), background .3s, width .2s; }

.switch-wrap { display: inline-flex; align-items: center; gap: 10px; }
.switch-state { position: relative; display: inline-grid; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; }
.switch-state > span { grid-area: 1 / 1; text-align: right; transition: opacity .35s var(--ease), transform .35s var(--ease); }
.ss-on { color: var(--white); }
.ss-off { color: var(--grey); opacity: 0; transform: translateY(5px); }
.checkout[data-privacy="off"] .ss-on { opacity: 0; transform: translateY(-5px); }
.checkout[data-privacy="off"] .ss-off { opacity: 1; transform: none; }
.co-hint { transition: opacity .3s; }
.co-hint.fade { opacity: 0; }

.pay-btn { position: relative; gap: 0; }
.pay-btn:disabled { cursor: default; }
.pay-label { transition: opacity .25s; }
.spinner {
  width: 0; height: 16px; border-radius: 50%; border: 0 solid rgba(5,5,5,.2); border-top-color: var(--black);
  opacity: 0; transition: width .3s var(--ease), margin .3s var(--ease), opacity .3s;
}
.checkout[data-state="working"] .spinner { width: 16px; border-width: 2px; margin-right: 10px; opacity: 1; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.checkout[data-state="working"] .pay-btn { transform: scale(.985); }

.co-done {
  position: absolute; inset: 0; z-index: 2; border-radius: inherit;
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 32px;
  background: radial-gradient(120% 80% at 50% 30%, rgba(40,40,40,.97), rgba(12,12,12,.98));
  opacity: 0; visibility: hidden; transition: opacity .6s var(--ease), visibility .6s;
}
.checkout[data-state="done"] .co-done { opacity: 1; visibility: visible; }
.check { width: 64px; height: 64px; fill: none; stroke: var(--white); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.check circle { stroke: var(--line-strong); stroke-dasharray: 151; stroke-dashoffset: 151; }
.check path { stroke-dasharray: 32; stroke-dashoffset: 32; }
.checkout[data-state="done"] .check circle { transition: stroke-dashoffset 1s var(--ease) .15s; stroke-dashoffset: 0; }
.checkout[data-state="done"] .check path { transition: stroke-dashoffset .6s var(--ease) .8s; stroke-dashoffset: 0; }
.done-title { color: var(--white); font-size: 22px; letter-spacing: -0.02em; margin-top: 20px; }
.done-text { color: var(--grey); font-size: 14px; margin: 8px 0 24px; max-width: 260px; }
.co-done > *:not(.check) { transition: opacity .6s var(--ease), transform .6s var(--ease); opacity: 0; transform: translateY(8px); }
.checkout[data-state="done"] .co-done > *:not(.check) { opacity: 1; transform: none; transition-delay: .9s; }

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

/* Concept indicator in footer */
.concept-chip {
  display: inline-flex; align-items: center; gap: 10px; padding: 6px 14px;
  border: 1px solid var(--line-strong); border-radius: 999px; color: var(--silver); font-size: 12.5px;
}

/* --------------------------------------------------------------------------
   Hero contract address pill
   -------------------------------------------------------------------------- */
.ca-pill {
  position: relative; display: inline-flex; align-items: center; gap: 10px; max-width: 100%;
  margin-bottom: 36px; padding: 6px 14px 6px 6px; border-radius: 999px;
  border: 1px solid var(--line-strong); background: rgba(255,255,255,.02);
  font-size: 13px; color: var(--silver);
  transition: border-color .3s, background .3s, box-shadow .4s var(--ease);
}
.ca-tag {
  flex: none; padding: 3px 9px; border-radius: 999px; font-size: 11px; font-weight: 600; letter-spacing: .08em;
  background: linear-gradient(180deg, #ffffff, #cfcfcf); color: var(--black);
}
.ca-value { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12.5px; letter-spacing: .02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ca-icon { flex: none; width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; opacity: .7; transition: opacity .3s, transform .4s var(--ease); }

.ca-pill:not(:disabled):hover { border-color: rgba(255,255,255,.45); background: rgba(255,255,255,.05); box-shadow: 0 0 24px -8px rgba(255,255,255,.3); color: var(--white); }
.ca-pill:not(:disabled):hover .ca-icon { opacity: 1; }
.ca-pill:not(:disabled):active .ca-icon { transform: scale(.85); }

.ca-pill:disabled { cursor: default; }
.ca-pill:disabled .ca-value { font-family: var(--font-sans); font-size: 13px; letter-spacing: 0; color: var(--grey); }
.ca-pill:disabled .ca-icon { opacity: .25; }

.ca-toast {
  position: absolute; left: 50%; top: calc(100% + 10px); transform: translate(-50%, -4px);
  padding: 5px 12px; border-radius: 999px; font-size: 12px; white-space: nowrap;
  background: var(--white); color: var(--black); opacity: 0; pointer-events: none;
  transition: opacity .3s var(--ease), transform .3s var(--ease);
}
.ca-pill.copied .ca-toast { opacity: 1; transform: translate(-50%, 0); }
.ca-pill.copied { border-color: rgba(255,255,255,.5); }

@media (max-width: 640px) {
  .ca-pill { margin-bottom: 28px; font-size: 12px; }
  .ca-value { font-size: 12px; }
}

/* --------------------------------------------------------------------------
   Reveal animation
   -------------------------------------------------------------------------- */
.js .reveal { opacity: 0; transform: translateY(28px); filter: blur(6px); transition: opacity 1.1s var(--ease), transform 1.1s var(--ease), filter 1.1s var(--ease); }
.js .reveal.in { filter: none; }
.js .step.reveal, .js .card.reveal, .js .tech-card.reveal { transform: translateY(36px) scale(.98); }
.js .reveal.in, .js .step.reveal.in, .js .card.reveal.in, .js .tech-card.reveal.in { opacity: 1; transform: none; }

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  .split { grid-template-columns: 1fr; gap: 64px; }
  .steps, .grid-3 { grid-template-columns: 1fr 1fr; }
  .steps .step:last-child, .grid-3 .card:last-child { grid-column: 1 / -1; }
}

@media (max-width: 860px) {
  .nav-toggle { display: block; z-index: 2; }
  .nav-menu {
    position: fixed; inset: 0; flex-direction: column; justify-content: center; gap: 40px;
    background: rgba(5,5,5,.97); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
    opacity: 0; visibility: hidden; transition: opacity .4s var(--ease), visibility .4s;
  }
  .nav-menu.open { opacity: 1; visibility: visible; }
  .nav-menu ul { flex-direction: column; align-items: center; gap: 26px; }
  .nav-menu ul a { font-size: 28px; color: var(--white); letter-spacing: -0.02em; }
  body.menu-open { overflow: hidden; }
  .tech-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .container { padding: 0 20px; }
  .section { padding: 96px 0; }
  .section-head { margin-bottom: 48px; }
  .sub { font-size: 16.5px; }
  .hero { padding: 120px 0 110px; }
  .cta-row { flex-direction: column; width: 100%; max-width: 320px; }
  .cta-row .btn { width: 100%; }
  .steps, .grid-3 { grid-template-columns: 1fr; }
  .card, .step, .tech-card, .status { padding: 28px 24px; }
  .checkout { padding: 28px 22px; }
  .amt { font-size: 54px; }
  .cta-band { padding: 110px 0; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .badge { margin: 8px 0 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .curve { opacity: var(--o); }
  .compare-card { animation: none !important; }
  .js .reveal, .js .step.reveal, .js .card.reveal, .js .tech-card.reveal { opacity: 1; transform: none; filter: none; }
  .hero-inner { transform: none !important; opacity: 1 !important; }
}

/* Header blur would trap the fixed mobile menu — disable it while open */
body.menu-open .site-header { backdrop-filter: none; -webkit-backdrop-filter: none; background: transparent; border-bottom-color: transparent; }
