/* ==========================================================================
   thetasdk — landing page styles
   1. Tokens   2. Base   3. Layout   4. Components   5. Sections   6. Responsive
   ========================================================================== */

/* 1. Tokens --------------------------------------------------------------- */
:root {
  --font: 'Geist', 'Helvetica Neue', system-ui, sans-serif;
  --mono: 'Geist Mono', ui-monospace, monospace;

  --ink: #0A0B0E;
  --night: #07080C;
  --night-2: #0B0C11;
  --paper: #F6F5F2;
  --white: #FFFFFF;
  --soft: #F2F1ED;
  --soft-2: #F7F6F3;
  --soft-3: #ECEBE7;
  --muted: #6E727C;
  --muted-2: #62656D;
  --dim: #9A9DA6;

  --on-dark: #FFFFFF;
  --on-dark-2: #DADDE6;
  --on-dark-3: #C3C7D2;
  --on-dark-muted: #A6ABB8;
  --on-dark-faint: #8C91A0;
  --on-dark-dim: #6E7383;

  --cobalt: #9DB0FF;
  --accent: #7B93FF;
  --mint: #7EE2B8;
  --ember: #FFB98A;
  --lilac: #C3A6FF;
  --rose: #F0A6B5;
  --blue: #3354E0;

  --ok-bg: #E5F4EC;   --ok-ink: #156B45;
  --warn-bg: #FBF0E0; --warn-ink: #84500F;

  --r-xl: 32px;
  --r-lg: 28px;
  --r-md: 24px;
  --r-sm: 14px;
  --pill: 999px;
}

/* 2. Base ----------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; padding: 0; }
h1, h2, h3, p, ol, ul { margin: 0; }
ol, ul { list-style: none; padding: 0; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .menu, .menu__link, .menu-toggle span { transition-duration: .01ms !important; transition-delay: 0s !important; }
}

.icon { display: block; flex: none; }
.mono { font-family: var(--mono); }
.dim { color: var(--dim); }
.dim-dark { color: var(--on-dark-dim); }

/* 3. Layout --------------------------------------------------------------- */
.page {
  max-width: 1374px;
  margin: 0 auto;
  padding: 12px;
}

.panel-dark {
  position: relative;
  overflow: hidden;
  background: var(--night);
  color: var(--on-dark);
  border-radius: var(--r-xl);
}
.panel-light {
  background: var(--white);
  border-radius: var(--r-xl);
}
.panel__inner {
  position: relative;
  padding: 88px 56px 56px;
  display: flex;
  flex-direction: column;
  gap: 48px;
}
.stack-gap { margin-bottom: 96px; }

.section-head { display: flex; flex-direction: column; gap: 16px; max-width: 820px; }
.section-head--row {
  max-width: none;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 20px 28px;
}
.eyebrow { font-family: var(--mono); font-size: 12px; letter-spacing: 0.14em; color: var(--muted); }
.panel-dark .eyebrow { color: var(--on-dark-faint); }
.title {
  font-size: 56px;
  line-height: 1.02;
  letter-spacing: -0.045em;
  font-weight: 500;
}
.lead { font-size: 18px; line-height: 1.6; color: var(--on-dark-muted); max-width: 620px; }

/* Masked silk backgrounds */
.silk { position: absolute; inset: 0; pointer-events: none; background-size: cover; background-repeat: no-repeat; }
.silk--hero {
  background-image: url(../assets/images/silk-cobalt.webp);
  background-position: 70% 40%;
  opacity: .5;
  -webkit-mask-image: radial-gradient(ellipse 60% 75% at 78% 38%, #000 10%, transparent 72%);
          mask-image: radial-gradient(ellipse 60% 75% at 78% 38%, #000 10%, transparent 72%);
}
.silk--code {
  background-image: url(../assets/images/silk-violet.webp);
  background-position: 30% 60%;
  opacity: .45;
  -webkit-mask-image: radial-gradient(ellipse 55% 60% at 12% 85%, #000 5%, transparent 70%);
          mask-image: radial-gradient(ellipse 55% 60% at 12% 85%, #000 5%, transparent 70%);
}
.silk--billing {
  background-image: url(../assets/images/silk-ember.webp);
  opacity: .4;
  -webkit-mask-image: radial-gradient(ellipse 50% 55% at 90% 8%, #000 5%, transparent 70%);
          mask-image: radial-gradient(ellipse 50% 55% at 90% 8%, #000 5%, transparent 70%);
}
.silk--cta {
  background-image: url(../assets/images/silk-cobalt.webp);
  background-position: 50% 40%;
  opacity: .6;
  -webkit-mask-image: radial-gradient(ellipse 55% 70% at 45% 0%, #000 10%, transparent 72%);
          mask-image: radial-gradient(ellipse 55% 70% at 45% 0%, #000 10%, transparent 72%);
}
.fade-right { -webkit-mask-image: linear-gradient(90deg, transparent, #000 55%); mask-image: linear-gradient(90deg, transparent, #000 55%); }
.fade-down  { -webkit-mask-image: linear-gradient(#000 45%, transparent);    mask-image: linear-gradient(#000 45%, transparent); }
.arch {
  object-fit: cover;
  border-radius: 999px 999px 36px 36px;
  -webkit-mask-image: linear-gradient(#000 70%, transparent);
          mask-image: linear-gradient(#000 70%, transparent);
}

/* 4. Components ----------------------------------------------------------- */

/* Glass surfaces */
.glass {
  background: rgba(22, 26, 38, .48);
  -webkit-backdrop-filter: blur(22px) saturate(150%);
          backdrop-filter: blur(22px) saturate(150%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .10), 0 24px 48px -16px rgba(0, 0, 0, .55);
}
.glass-soft {
  background: rgba(255, 255, 255, .08);
  -webkit-backdrop-filter: blur(22px) saturate(150%);
          backdrop-filter: blur(22px) saturate(150%);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 22px;
  border-radius: var(--pill);
  font-size: 15px;
  font-weight: 500;
}
.btn--light { background: var(--white); color: var(--night); }
.btn--dark  { background: var(--ink); color: var(--white); }
.btn--glass { color: var(--white); }
.btn--sm { min-height: 42px; padding: 0 18px; font-size: 14px; }
.btn--block { width: 100%; }
.btn--with-orb { padding: 0 8px 0 24px; }
.btn__orb {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--night);
  display: inline-flex; align-items: center; justify-content: center;
}

/* Icon tiles */
.icon-tile {
  width: 48px; height: 48px;
  border-radius: 15px;
  display: inline-flex; align-items: center; justify-content: center;
  flex: none;
  background: var(--soft);
}
.icon-tile--dark { background: rgba(255, 255, 255, .10); }
.icon-tile--sm { width: 36px; height: 36px; border-radius: 11px; background: rgba(255, 255, 255, .08); }

/* Avatars / monograms */
.mono-badge {
  width: 30px; height: 30px;
  border-radius: 9px;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 600;
  flex: none;
}
.tint-sand   { background: #F4EDE3; color: #8A5A2B; }
.tint-sky    { background: #E7ECF8; color: #2D4C8A; }
.tint-lilac  { background: #EFEAF7; color: #5A438A; }
.tint-peach  { background: #FBEEE4; color: #8A4210; }
.tint-blue   { background: #E9EDFC; color: #2D4C8A; }
.tint-mint   { background: #EAF5EF; color: #156B45; }
.tint-stone  { background: #F0EFEC; color: #2A2C31; }

/* Status pills */
.status { display: inline-block; padding: 5px 11px; border-radius: var(--pill); font-size: 12px; }
.status--live    { background: var(--ok-bg); color: var(--ok-ink); }
.status--review  { background: var(--warn-bg); color: var(--warn-ink); }
.status--neutral { background: #F0EFEC; color: #55585F; }

/* Tags */
.tag { font-size: 13px; color: #2A2C31; background: var(--soft); padding: 6px 12px; border-radius: var(--pill); }
.tag-dark { font-family: var(--mono); font-size: 12px; color: var(--on-dark-2); background: rgba(255, 255, 255, .08); padding: 6px 12px; border-radius: var(--pill); }

/* Toggle switch (state lives in aria-pressed) */
.switch { padding: 10px; margin: -10px; flex: none; }
.switch__track {
  display: block; position: relative;
  width: 44px; height: 26px;
  border-radius: var(--pill);
  background: #DEDDD9;
  transition: background .2s;
}
.switch__track::after {
  content: '';
  position: absolute; top: 3px; left: 3px;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--white);
  transition: transform .2s;
}
.switch[aria-pressed="true"] .switch__track { background: var(--ink); }
.switch[aria-pressed="true"] .switch__track::after { transform: translateX(18px); }
.switch--on-dark .switch__track { background: rgba(255, 255, 255, .18); }
.switch--on-dark[aria-pressed="true"] .switch__track { background: var(--white); }
.switch--on-dark[aria-pressed="true"] .switch__track::after { background: var(--ink); }

/* Segmented control (state lives in aria-selected) */
.segmented {
  display: inline-flex; gap: 2px; padding: 3px;
  border-radius: var(--pill);
  background: rgba(255, 255, 255, .08);
}
.segmented__btn {
  min-height: 40px; padding: 0 16px;
  border-radius: var(--pill);
  font-size: 13px;
  color: var(--on-dark-3);
}
.segmented__btn[aria-selected="true"] { background: var(--white); color: var(--night); font-weight: 500; }
.segmented--light { display: grid; grid-template-columns: 1fr 1fr; background: var(--soft); border-radius: 12px; }
.segmented--light .segmented__btn { border-radius: 10px; color: #55585F; }
.segmented--light .segmented__btn[aria-selected="true"] { color: var(--ink); box-shadow: 0 1px 3px rgba(10, 10, 11, .08); }

/* Form fields */
.field { display: flex; flex-direction: column; gap: 8px; }
.field__label { font-size: 13px; color: var(--on-dark-3); }
.field__input {
  width: 100%; min-height: 50px;
  border: 0; border-radius: 14px;
  padding: 0 16px;
  font-size: 15px;
  background: rgba(255, 255, 255, .08);
  color: var(--white);
  appearance: none; -webkit-appearance: none;
}
.field__input::placeholder { color: #A9AEBB; opacity: 1; }
.field__input option { color: var(--ink); }
.field--light .field__label { font-size: 12px; color: var(--muted); }
.field--light .field__input { min-height: 46px; border-radius: 12px; padding: 0 14px; background: #F4F3F0; color: var(--ink); }
.field--light .field__input::placeholder { color: #8C909A; }

/* 5. Sections ------------------------------------------------------------- */

/* Header */
.site-header {
  position: relative;
  max-width: 1280px; margin: 0 auto;
  padding: 22px 32px;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 17px; letter-spacing: -0.02em; }
.nav { display: flex; flex-wrap: wrap; gap: 4px; padding: 5px; border-radius: var(--pill); font-size: 14px; }
.nav__link { padding: 9px 16px; border-radius: var(--pill); color: var(--on-dark-3); }
.nav__link[aria-current="true"] { color: var(--white); background: rgba(255, 255, 255, .12); }

/* Mobile menu (hidden above 760px) */
.header__actions { display: flex; align-items: center; gap: 8px; }
.menu-toggle, .menu, .show-mobile { display: none; }

/* Hero */
.hero {
  position: relative;
  max-width: 1280px; margin: 0 auto;
  padding: 64px 32px 56px;
  display: flex; flex-wrap: wrap; gap: 48px; align-items: center;
}
.hero__copy { flex: 1 1 480px; min-width: 0; display: flex; flex-direction: column; gap: 30px; }
.announce {
  align-self: flex-start;
  display: inline-flex; align-items: center; gap: 10px;
  padding: 5px 14px 5px 5px;
  border-radius: var(--pill);
  font-size: 13px; color: var(--on-dark-2);
}
.announce__badge { background: var(--white); color: var(--night); border-radius: var(--pill); padding: 3px 10px; font-weight: 500; }
.hero__title { font-size: 58px; line-height: 1; letter-spacing: -0.05em; font-weight: 500; }
.silk-text {
  font-weight: 600;
  background: linear-gradient(90deg, rgba(214, 222, 255, .62), rgba(214, 222, 255, .28)),
              url(../assets/images/silk-cobalt.webp) 4% 22% / 420px auto;
  -webkit-background-clip: text; background-clip: text;
  color: transparent; -webkit-text-fill-color: transparent;
}
.hero__lead { font-size: 19px; line-height: 1.6; color: var(--on-dark-muted); max-width: 540px; }
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.audience { display: flex; flex-wrap: wrap; gap: 12px 28px; padding-top: 18px; font-size: 14px; color: var(--on-dark-faint); }
.audience li { display: inline-flex; align-items: center; gap: 8px; }

.hero__visual { flex: 1 1 460px; min-width: 0; display: flex; justify-content: center; }
.visual { position: relative; width: 100%; max-width: 520px; height: 620px; }
.visual__arch { position: absolute; left: 12%; top: 0; width: 76%; height: 560px; object-position: 62% 50%; }

.float-card {
  position: absolute; right: 0; width: 206px;
  border-radius: 20px; padding: 16px;
  display: flex; flex-direction: column; gap: 12px;
}
.float-card--payment { top: 60px; }
.float-card--renewal { bottom: 40px; }
.float-card__row { display: flex; align-items: center; gap: 10px; }
.float-card__title { font-size: 13px; font-weight: 500; }
.float-card__sub { font-size: 12px; color: var(--on-dark-muted); }
.float-card__amount { display: flex; justify-content: space-between; align-items: baseline; }
.float-card__amount strong { font-size: 26px; font-weight: 400; letter-spacing: -0.04em; }
.progress { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; }
.progress span { height: 3px; border-radius: 2px; background: rgba(255, 255, 255, .18); }
.progress .is-done { background: var(--ember); }
.api-chip {
  position: absolute; left: 0; top: 96px;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 14px; border-radius: var(--pill);
  font-family: var(--mono); font-size: 12px; color: var(--on-dark-2);
}

/* Hero payment selector */
.paybox {
  position: absolute; left: 0; top: 230px;
  width: 300px; max-width: 64%;
  padding: 16px 12px 12px;
  border-radius: 22px;
  background: var(--white); color: var(--ink);
  display: flex; flex-direction: column; gap: 10px;
  box-shadow: 0 40px 70px -24px rgba(0, 0, 0, .7);
}
.paybox__head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; padding: 0 4px; font-size: 12px; color: var(--muted); }
.paybox__head strong { font-size: 20px; font-weight: 400; letter-spacing: -0.03em; color: var(--ink); }
.paybox__methods { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.method-chip {
  display: flex; align-items: center; gap: 8px; min-width: 0;
  min-height: 44px; padding: 0 10px;
  border-radius: 12px;
  background: #F4F3F0;
  font-size: 13px; text-align: left;
}
.method-chip .mono-badge { width: 24px; height: 24px; border-radius: 7px; font-size: 10px; }
.method-chip__logo { height: 22px; width: auto; max-width: 100%; object-fit: contain; display: block; }
.method-chip span:last-child { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.method-chip { transition: background .2s ease; }
.method-chip:hover { background: #ECEBE7; }
.method-chip[aria-pressed="true"] { background: #FBFAF8; font-weight: 500; }
.method-chip[aria-pressed="true"]::after {
  content: ""; flex: none; margin-left: auto;
  width: 14px; height: 14px; border-radius: 50%;
  border: 1.5px solid var(--ink);
  background: radial-gradient(circle, var(--ink) 0 3px, transparent 3.5px);
}
.paybox .btn { min-height: 44px; font-size: 14px; gap: 8px; }

/* Modules (bento) */
.modules { padding: 56px 0 96px; display: flex; flex-direction: column; gap: 36px; }
.count-pill { font-size: 14px; color: #2A2C31; background: var(--soft-3); padding: 10px 16px; border-radius: var(--pill); font-variant-numeric: tabular-nums; }
.bento { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.span-2 { grid-column: span 2; }

.tile {
  position: relative; overflow: hidden;
  min-height: 340px; padding: 28px;
  border-radius: var(--r-lg);
  background: var(--white);
  display: flex; flex-direction: column; gap: 28px;
}
.tile--dark { background: var(--night-2); color: var(--on-dark); }
.tile--flush { padding: 0; gap: 0; }
.tile__top { position: relative; display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.tile__bottom { position: relative; margin-top: auto; display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px; }
.tile__body { display: flex; flex-direction: column; gap: 8px; }
.tile__body h3 { font-size: 22px; font-weight: 500; letter-spacing: -0.03em; }
.tile__body p { font-size: 15px; line-height: 1.55; color: var(--muted-2); max-width: 380px; }
.tile--dark .tile__body p { color: var(--on-dark-muted); }
.tile--dark.span-2 .tile__body p { color: #E4E7EF; }
.tile__media { position: absolute; right: 0; top: 0; height: 100%; object-fit: cover; }
.tile__stat { margin-top: auto; display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: var(--muted); }
.tile__stat strong { font-size: 40px; font-weight: 400; letter-spacing: -0.05em; color: var(--ink); }
.tile__pills { margin-top: auto; display: flex; flex-wrap: wrap; gap: 6px; }
.tile__banner { position: relative; height: 190px; }
.tile__banner > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.tile__banner-bar { position: absolute; inset: 22px 22px auto; display: flex; justify-content: space-between; align-items: flex-start; }
.tile__pad { padding: 0 28px 28px; margin-top: auto; }

.endpoint-list { border-radius: 18px; padding: 16px 18px; font-family: var(--mono); font-size: 12px; line-height: 1.8; color: var(--on-dark-2); }
.endpoint-list span { color: var(--cobalt); }
.rule-chip { margin-top: auto; display: flex; align-items: center; gap: 10px; background: var(--soft-2); border-radius: 14px; padding: 12px 14px; font-family: var(--mono); font-size: 12px; color: #2A2C31; }
.glass-pill { display: inline-flex; align-items: center; gap: 8px; color: var(--white); font-size: 13px; padding: 8px 12px; border-radius: var(--pill); }
.payout-note { border-radius: 18px; padding: 14px 16px; color: var(--white); display: flex; align-items: center; gap: 12px; font-size: 13px; }
.payout-note small { display: block; color: var(--on-dark-3); font-size: 12px; }

.mini-card { position: relative; width: 78%; max-width: 320px; aspect-ratio: 1000 / 630; margin: 6px auto 20px; transform: perspective(900px) rotateX(16deg) rotateZ(-6deg); filter: drop-shadow(0 28px 28px rgba(0, 0, 0, .6)); }
.mini-card img { position: absolute; inset: 0; width: 100%; height: 100%; }
.mini-card__brand { position: absolute; left: 8%; top: 10%; font-weight: 600; font-size: 15px; letter-spacing: -0.02em; color: rgba(255, 255, 255, .88); }
.mini-card__number { position: absolute; left: 8%; bottom: 10%; font-family: var(--mono); font-size: 12px; letter-spacing: .12em; color: rgba(255, 255, 255, .7); }

/* Codebase */
.tech-badges { display: flex; flex-wrap: wrap; gap: 8px; }
.tech-badge { display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: var(--pill); font-size: 14px; }
.dot { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.code-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.code-grid .tree { grid-row: span 2; }
.ftile { border-radius: var(--r-md); padding: 26px; display: flex; flex-direction: column; gap: 22px; min-width: 0; }
.ftile__icons { display: flex; gap: 8px; }
.ftile__top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap; }
.ftile .icon-tile { width: 44px; height: 44px; border-radius: 14px; background: rgba(255, 255, 255, .08); }
.ftile__body { margin-top: auto; display: flex; flex-direction: column; gap: 8px; }
.ftile__body h3 { font-size: 21px; font-weight: 500; letter-spacing: -0.03em; }
.ftile__body p { font-size: 15px; line-height: 1.55; color: var(--on-dark-muted); }

.tree { border-radius: var(--r-md); padding: 22px 16px; display: flex; flex-direction: column; gap: 14px; min-width: 0; background: rgba(10, 12, 18, .55); }
.tree__head { display: flex; align-items: center; justify-content: space-between; padding: 0 10px; font-size: 14px; font-weight: 500; }
.tree__head span { display: inline-flex; align-items: center; gap: 8px; }
.tree__head small { font-family: var(--mono); font-size: 11px; font-weight: 400; color: var(--on-dark-faint); }
.tree__list { font-family: var(--mono); font-size: 13px; color: var(--on-dark-2); display: flex; flex-direction: column; gap: 1px; overflow-x: auto; }
.tree__row { display: flex; align-items: center; gap: 10px; padding: 6px 10px; border-radius: 8px; }
.depth-1 { padding-left: 30px; } .depth-2 { padding-left: 50px; } .depth-3 { padding-left: 70px; }
.tree__row.is-highlight { background: rgba(255, 255, 255, .07); }
.tree__row small { margin-left: auto; font-size: 11px; color: var(--on-dark-faint); }
.tree__row small.next { color: var(--on-dark-2); }
.tree__row small.nest { color: var(--rose); }
.tree__row small.note { color: var(--mint); }

.steps5 { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.steps5 li { display: flex; flex-direction: column; gap: 10px; min-width: 0; font-size: 14px; color: var(--on-dark-faint); }
.steps5 li::before { content: ''; height: 4px; border-radius: 2px; background: rgba(255, 255, 255, .18); }
.steps5 li.is-done { color: var(--white); }
.steps5 li.is-done::before { background: var(--mint); }
.steps5 span { display: flex; align-items: center; gap: 8px; }

.terminal { background: rgba(0, 0, 0, .35); border-radius: 14px; padding: 16px 18px; font-family: var(--mono); font-size: 12.5px; line-height: 1.9; color: #C9CDD8; }
.terminal .ok { color: var(--mint); }
.terminal .muted { color: var(--on-dark-faint); }
.entities { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-family: var(--mono); font-size: 12.5px; color: var(--on-dark-2); }
.entities span { background: rgba(195, 166, 255, .14); padding: 8px 12px; border-radius: 10px; }
.entities .break { width: 100%; height: 0; padding: 0; background: none; }

/* Payments */
.pay-layout { display: flex; flex-wrap: wrap; gap: 56px; align-items: center; }
.capabilities { flex: 1 1 400px; min-width: 0; display: flex; flex-direction: column; gap: 40px; }
.capability { display: flex; gap: 18px; align-items: flex-start; }
.capability .icon-tile { width: 52px; height: 52px; border-radius: 16px; }
.capability__body { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.capability__body h3 { font-size: 22px; font-weight: 500; letter-spacing: -0.03em; }
.capability__body p { font-size: 15px; line-height: 1.6; color: var(--muted-2); }
.capability__tags { display: flex; flex-wrap: wrap; gap: 6px; padding-top: 2px; }
.bg-peach { background: #FBEEE4; } .bg-blue { background: #E9EDFC; } .bg-lilac { background: #EFEAFB; }

.stage-wrap { flex: 1 1 400px; min-width: 0; }
.stage { position: relative; height: 700px; }
.stage__arch { position: absolute; left: 50%; top: 0; transform: translateX(-50%); width: 100%; max-width: 480px; height: 640px; }

.phone {
  position: absolute; left: 50%; top: 48px; transform: translateX(-50%);
  width: 300px; height: 612px; padding: 10px;
  border-radius: 48px;
  background: var(--ink);
  box-shadow: 0 50px 80px -30px rgba(40, 16, 4, .55), 0 0 0 1px rgba(255, 255, 255, .06);
}
.phone__screen {
  height: 100%;
  border-radius: 39px; overflow: hidden;
  padding: 30px 20px 18px;
  background: var(--white);
  display: flex; flex-direction: column; gap: 16px;
}
.merchant { display: flex; align-items: center; gap: 10px; }
.merchant strong { display: block; font-size: 14px; font-weight: 500; }
.merchant small { display: block; font-size: 12px; color: var(--muted); }
.merchant .mono-badge { width: 34px; height: 34px; border-radius: 10px; font-size: 12px; }
.phone__amount { font-size: 40px; letter-spacing: -0.05em; line-height: 1; }
.checkout-panel { display: flex; flex-direction: column; gap: 16px; }
.checkout-panel[hidden] { display: none; }
.wallets { display: flex; flex-direction: column; gap: 8px; }
.wallet-option {
  display: flex; align-items: center; gap: 12px;
  width: 100%; min-height: 52px; padding: 0 14px;
  border-radius: 14px;
  background: var(--soft-2);
  font-size: 14px;
}
.wallet-option .mono-badge { font-size: 13px; }
.wallet-option::after { content: ''; margin-left: auto; width: 18px; height: 18px; border-radius: 50%; background: #DEDDD9; }
.wallet-option[aria-pressed="true"] { background: var(--white); box-shadow: 0 0 0 2px var(--ink); font-weight: 500; }
.wallet-option[aria-pressed="true"]::after { background: radial-gradient(circle, var(--white) 3px, var(--ink) 3.5px); }
.hint { font-size: 12px; line-height: 1.5; color: var(--muted); }
.hint--icon { display: inline-flex; align-items: center; gap: 6px; }
.two-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.phone .btn { margin-top: auto; }
.secured { display: inline-flex; align-items: center; justify-content: center; gap: 6px; font-size: 12px; color: var(--muted); }

.adapters-row { display: flex; flex-wrap: wrap; gap: 14px; }
.code-card { flex: 1.3 1 420px; min-width: 0; background: var(--night-2); color: #C9CDD8; border-radius: var(--r-md); padding: 28px; display: flex; flex-direction: column; gap: 18px; }
.code-card__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-family: var(--mono); font-size: 12px; color: var(--on-dark-faint); }
.code-card__head span:last-child { font-family: var(--font); color: #C9CDD8; background: rgba(255, 255, 255, .08); padding: 5px 10px; border-radius: var(--pill); }
.code { margin: 0; font-family: var(--mono); font-size: 13px; line-height: 1.9; overflow-x: auto; }
.tok-dec { color: var(--lilac); } .tok-kw { color: var(--cobalt); } .tok-str { color: var(--ember); } .tok-fn { color: var(--mint); }
.adapters { flex: 1 1 340px; min-width: 0; background: #FAFAF8; border-radius: var(--r-md); padding: 28px; display: flex; flex-direction: column; gap: 20px; }
.adapters__intro { display: flex; flex-direction: column; gap: 8px; }
.adapters__intro h3 { font-size: 22px; font-weight: 500; letter-spacing: -0.03em; }
.adapters__intro p { font-size: 15px; line-height: 1.6; color: var(--muted-2); }
.adapter { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; background: var(--soft-2); }
.adapter code { font-family: var(--mono); font-size: 13px; }
.adapter small { font-size: 12px; color: var(--muted); }
.adapter .icon:last-child { margin-left: auto; }
.adapter--new { background: none; color: #55585F; }

/* Money movement */
.two-col { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.mm-tile { border-radius: var(--r-lg); padding: 28px; display: flex; flex-direction: column; gap: 28px; min-width: 0; }
.mm-tile__intro { display: flex; flex-direction: column; gap: 10px; }
.mm-tile__intro h3 { font-size: 26px; font-weight: 500; letter-spacing: -0.035em; line-height: 1.15; }
.mm-tile__intro p { font-size: 15px; line-height: 1.6; color: var(--on-dark-muted); }
.mm-row { display: flex; flex-wrap: wrap; gap: 24px; align-items: center; }
.timeline { flex: 1 1 220px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.timeline li { display: flex; gap: 12px; align-items: flex-start; }
.timeline strong { display: block; font-size: 14px; font-weight: 500; }
.timeline small { display: block; font-size: 13px; color: var(--on-dark-faint); }
.renew-preview { flex: 1 1 240px; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.renew-preview .segmented { align-self: flex-start; }
.notice {
  min-height: 196px; padding: 16px;
  border-radius: 22px;
  background: #F4F3F0; color: var(--ink);
  box-shadow: 0 30px 50px -24px rgba(0, 0, 0, .7);
}
.notice__panel { display: flex; flex-direction: column; gap: 12px; }
.notice__panel[hidden] { display: none; }
.notice__meta { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); }
.notice__meta b { font-weight: 500; color: #2A2C31; }
.notice__meta span:last-child { margin-left: auto; }
.notice__bubble { background: var(--white); border-radius: 14px; padding: 14px; font-size: 14px; line-height: 1.5; }
.notice__bubble strong { display: block; font-weight: 500; }
.notice__bubble small { display: block; font-size: 13px; color: var(--muted-2); }
.notice__bubble--sms { border-bottom-left-radius: 4px; }
.notice__link { font-family: var(--mono); font-size: 13px; color: var(--blue); }
.notice__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.notice__actions span { min-height: 40px; border-radius: var(--pill); display: inline-flex; align-items: center; justify-content: center; font-size: 13px; background: #E6E5E1; }
.notice__actions span:last-child { background: var(--ink); color: var(--white); font-weight: 500; }

.split { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.split__source { flex: 0 1 150px; min-width: 0; background: var(--white); color: var(--ink); border-radius: 18px; padding: 16px; display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: var(--muted); box-shadow: 0 30px 50px -24px rgba(0, 0, 0, .7); }
.split__source strong { font-size: 28px; font-weight: 400; letter-spacing: -0.04em; color: var(--ink); }
.split__lines { flex: none; }
.recipients { flex: 1 1 220px; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.recipient { display: flex; align-items: center; gap: 10px; min-width: 0; padding: 10px 12px; border-radius: 14px; background: rgba(255, 255, 255, .07); font-size: 13px; }
.recipient span:nth-child(2) { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.recipient b { margin-left: auto; font-size: 14px; font-weight: 400; font-variant-numeric: tabular-nums; }
.recipient--fee { background: none; color: var(--on-dark-muted); }
.recipient--fee .mono-badge { background: rgba(255, 255, 255, .08); }

.onboarding { background: rgba(255, 255, 255, .06); border-radius: 20px; padding: 18px; display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; }
.onboarding .icon-tile { width: 40px; height: 40px; border-radius: 12px; background: rgba(126, 226, 184, .14); }
.onboarding__text { flex: 1 1 200px; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.onboarding__text strong { font-size: 15px; font-weight: 500; }
.onboarding__text span { font-size: 13px; line-height: 1.5; color: var(--on-dark-muted); }
.onboarding__steps { display: flex; flex-wrap: wrap; gap: 8px 16px; font-size: 13px; }
.onboarding__steps li { display: inline-flex; align-items: center; gap: 6px; }
.onboarding__steps li.is-pending { color: var(--on-dark-faint); }
.onboarding__steps li.is-pending::before { content: ''; width: 12px; height: 12px; border-radius: 50%; background: rgba(255, 255, 255, .2); }

/* Call to action */
.cta { position: relative; padding: 104px 56px; display: flex; flex-wrap: wrap; gap: 56px; align-items: center; }
.cta__copy { flex: 1.2 1 440px; min-width: 0; display: flex; flex-direction: column; gap: 28px; }
.cta__title { font-size: 76px; line-height: .98; letter-spacing: -0.055em; font-weight: 500; }
.cta__title span { color: var(--on-dark-faint); }
.assurances { display: flex; flex-wrap: wrap; gap: 12px 28px; font-size: 14px; color: var(--on-dark-3); }
.assurances li { display: inline-flex; align-items: center; gap: 8px; }
.contact { display: flex; flex-direction: column; gap: 14px; padding-top: 8px; font-size: 15px; color: var(--on-dark-muted); }
.contact b { font-weight: 400; color: var(--white); font-variant-numeric: tabular-nums; }
.contact__links { display: flex; flex-wrap: wrap; gap: 8px; }
.contact__links a { display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 0 16px; border-radius: var(--pill); background: rgba(255, 255, 255, .08); color: var(--white); font-size: 14px; font-weight: 500; }
.signup { flex: 1 1 360px; min-width: 0; max-width: 480px; border-radius: var(--r-lg); padding: 28px; display: flex; flex-direction: column; gap: 16px; background: rgba(10, 12, 18, .78); }
.signup h3 { font-size: 22px; font-weight: 500; letter-spacing: -0.03em; }
.signup p { font-size: 14px; color: var(--on-dark-muted); }
.signup .btn { margin-top: 6px; }
.form-status { margin: 0; min-height: 20px; font-size: 14px; text-align: center; color: var(--mint); }
.form-status.is-error { color: var(--ember); }

/* Footer */
.footer { padding: 72px 12px 40px; display: flex; flex-direction: column; gap: 56px; }
.footer__top { display: flex; flex-wrap: wrap; gap: 48px; justify-content: space-between; }
.footer__about { flex: 1 1 260px; max-width: 340px; display: flex; flex-direction: column; gap: 14px; }
.footer__about p { font-size: 14px; line-height: 1.6; color: var(--muted-2); }
.footer__cols { flex: 2 1 480px; min-width: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.footer__col { display: flex; flex-direction: column; gap: 12px; font-size: 14px; }
.footer__col h4 { margin: 0; font-size: 13px; font-weight: 400; color: var(--muted); }
.footer__legal { font-size: 13px; color: var(--muted); }

/* 6. Responsive ----------------------------------------------------------- */
@media (max-width: 980px) {
  .two-col { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .bento, .code-grid { grid-template-columns: 1fr; }
  .span-2, .code-grid .tree, .code-grid > * { grid-column: auto; grid-row: auto; }
}
@media (max-width: 760px) {
  .hide-mobile { display: none !important; }
  .site-header { padding: 16px 18px; z-index: 20; }

  .menu-toggle {
    display: grid; place-items: center; align-content: center; gap: 5px;
    width: 42px; height: 42px; padding: 0; border: 0; border-radius: var(--pill);
    cursor: pointer; transition: background .2s ease;
  }
  .menu-toggle:hover, .menu-toggle[aria-expanded="true"] { background: rgba(255, 255, 255, .16); }
  .menu-toggle:focus-visible, .menu__link:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
  .menu-toggle span {
    display: block; width: 16px; height: 1.5px; border-radius: 2px; background: var(--white);
    transition: transform .3s cubic-bezier(.2, .8, .2, 1);
  }
  .menu-toggle[aria-expanded="true"] span:first-child { transform: translateY(3.25px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] span:last-child  { transform: translateY(-3.25px) rotate(-45deg); }

  .menu {
    position: absolute; top: calc(100% - 4px); left: 18px; right: 18px;
    flex-direction: column; gap: 2px; padding: 8px; border-radius: var(--r-md);
    background: rgba(16, 19, 28, .78);
    opacity: 0; transform: translateY(-8px) scale(.98); transform-origin: top right;
    pointer-events: none; visibility: hidden;
    transition: opacity .25s ease, transform .3s cubic-bezier(.2, .8, .2, 1), visibility 0s .3s;
  }
  .menu:not([hidden]) { display: flex; }
  .menu.is-open {
    opacity: 1; transform: none; pointer-events: auto; visibility: visible;
    transition-delay: 0s;
  }
  .menu__link {
    padding: 14px 16px; border-radius: var(--r-sm); font-size: 16px; letter-spacing: -0.01em;
    color: var(--on-dark-muted);
    opacity: 0; transform: translateY(-4px);
    transition: opacity .3s ease, transform .3s ease, background .2s ease, color .2s ease;
  }
  .menu.is-open .menu__link { opacity: 1; transform: none; }
  .menu.is-open .menu__link:nth-child(2) { transition-delay: .04s; }
  .menu.is-open .menu__link:nth-child(3) { transition-delay: .08s; }
  .menu.is-open .menu__link:nth-child(4) { transition-delay: .12s; }
  .menu.is-open .menu__link:nth-child(5) { transition-delay: .16s; }
  .menu__link:active { background: rgba(255, 255, 255, .06); }
  .menu__link[aria-current="true"] { color: var(--white); background: rgba(255, 255, 255, .09); }
  .hero { padding: 24px 20px 20px; gap: 24px; }
  .show-mobile { display: inline; }
  .hero__title { font-size: 30px; line-height: 1.08; }
  .hero__lead { font-size: 16px; line-height: 1.55; }
  .title { font-size: 34px; line-height: 1.06; }
  .cta__title { font-size: 46px; line-height: 1.02; }
  .visual { height: 352px; }
  .visual__arch { height: 320px; left: 6%; width: 88%; }
  .paybox { top: 56px; left: 0; width: 100%; max-width: none; }
  .float-card--renewal { bottom: 0; width: 196px; padding: 12px; }
  .modules { padding: 72px 0 56px; }
  .panel__inner { padding: 48px 18px 18px; gap: 32px; }
  .cta { padding: 48px 18px 18px; gap: 36px; }
  .panel-light .panel__inner { gap: 36px; }
  .stack-gap { margin-bottom: 48px; }
  .steps5 { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 14px; }
  .stage { height: 660px; }
  .phone { top: 30px; }
}
@media (max-width: 560px) {
  .footer__cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Small utilities used by single elements ----------------------------------- */
.tile__media--70 { width: 70%; }
.tile__media--62 { width: 62%; }
.dot--white { background: var(--white); }
.dot--rose { background: var(--rose); }
.dot--cobalt { background: var(--cobalt); }
.float-card__price { margin-left: auto; }
.adapter-list { display: flex; flex-direction: column; gap: 4px; }
.nowrap { white-space: nowrap; }
.modules .title { max-width: 720px; }
.segmented--light .segmented__btn { padding: 0 8px; }
.float-card--renewal .float-card__row { gap: 8px; }
.float-card--renewal { width: 228px; }
@media (max-width: 760px) { .float-card--renewal { width: 214px; } }
