/* defi-cms.com — one stylesheet for every page. Colours are tokens; dark mode swaps the tokens only. */
:root {
  --bg: #ffffff; --bg-soft: #e7e7f6; --bg-tint: #f0f0fa; --page-soft: #f9f9fc; --surface: #ffffff; --surface-2: #f9f9fc;
  --line: rgba(17, 17, 17, .1); --line-strong: rgba(17, 17, 17, .18); --text: #111111; --text-2: #2b2b33; --muted: rgba(17, 17, 17, .7);
  --brand: #0c12a8; --brand-2: #2235d1; --brand-strong: #0b11a7; --brand-ink: #ffffff; --brand-soft: #e7e7f6; --brand-line: #c9cbee;
  --grad: linear-gradient(135deg, #0b11a7 0%, #2235d1 100%);
  --navy: #0c12a8; --navy-2: #1c2cc6; --on-navy: #ffffff; --on-navy-muted: rgba(255, 255, 255, .8);
  --earn: #0e9f6e; --earn-soft: #e3f7ef; --warn: #b45309; --warn-soft: #fff4e0; --soon: #6d28d9; --soon-soft: #f1eaff;
  --shadow-sm: 0 2px 16px 0 rgba(231, 231, 246, .6); --shadow: 0 4px 61.5px 0 rgba(12, 18, 168, .2); --shadow-lg: 0 0 20px 0 rgba(100, 100, 100, .2);
  --radius: 10px; --radius-sm: 6px; --wrap: 1140px; --gutter: clamp(16px, 4vw, 40px);
  --font: "Figtree", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; --font-head: var(--font);
  --font-mono: "JetBrains Mono", ui-monospace, "Cascadia Code", Consolas, monospace; --header-h: 88px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #080a26; --bg-soft: #10133d; --bg-tint: #0c0f33; --page-soft: #0b0d2e; --surface: #11143f; --surface-2: #151950;
    --line: rgba(255, 255, 255, .1); --line-strong: rgba(255, 255, 255, .18); --text: #f3f3fb; --text-2: #d9daf0; --muted: rgba(243, 243, 251, .7);
    --brand: #8d93ff; --brand-2: #aab0ff; --brand-strong: #a3a8ff; --brand-ink: #ffffff; --brand-soft: #1b2060; --brand-line: #2e3488;
    --grad: linear-gradient(135deg, #1a22c4 0%, #3549e6 100%);
    --navy: #0c12a8; --navy-2: #1c2cc6; --earn: #34d399; --earn-soft: #0d2f27; --warn: #fbbf24; --warn-soft: #33270b; --soon: #b794ff; --soon-soft: #261a4a;
    --shadow-sm: 0 2px 16px 0 rgba(0, 0, 0, .35); --shadow: 0 4px 50px 0 rgba(0, 0, 0, .5); --shadow-lg: 0 0 24px 0 rgba(0, 0, 0, .5);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
    --bg: #080a26; --bg-soft: #10133d; --bg-tint: #0c0f33; --page-soft: #0b0d2e; --surface: #11143f; --surface-2: #151950;
    --line: rgba(255, 255, 255, .1); --line-strong: rgba(255, 255, 255, .18); --text: #f3f3fb; --text-2: #d9daf0; --muted: rgba(243, 243, 251, .7);
    --brand: #8d93ff; --brand-2: #aab0ff; --brand-strong: #a3a8ff; --brand-ink: #ffffff; --brand-soft: #1b2060; --brand-line: #2e3488;
    --grad: linear-gradient(135deg, #1a22c4 0%, #3549e6 100%);
    --navy: #0c12a8; --navy-2: #1c2cc6; --earn: #34d399; --earn-soft: #0d2f27; --warn: #fbbf24; --warn-soft: #33270b; --soon: #b794ff; --soon-soft: #261a4a;
    --shadow-sm: 0 2px 16px 0 rgba(0, 0, 0, .35); --shadow: 0 4px 50px 0 rgba(0, 0, 0, .5); --shadow-lg: 0 0 24px 0 rgba(0, 0, 0, .5);
  color-scheme: dark;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 16px/1.6 var(--font); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
h1, h2, h3, h4 { font-family: var(--font-head); color: var(--text); line-height: 1.12; letter-spacing: -.02em; margin: 0 0 .5em; font-weight: 800; }
h1 { font-size: clamp(2.3rem, 5.2vw, 4rem); letter-spacing: -.035em; }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.75rem); letter-spacing: -.03em; }
h3 { font-size: 1.22rem; font-weight: 700; letter-spacing: -.01em; }
h4 { font-size: 1rem; font-weight: 700; letter-spacing: 0; }
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.2em; }
code { font-family: var(--font-mono); font-size: .88em; background: var(--bg-soft); border: 1px solid var(--line); border-radius: 6px; padding: .1em .38em; }
hr { border: 0; border-top: 1px solid var(--line); margin: 2rem 0; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--brand) 55%, transparent); outline-offset: 2px; border-radius: 6px; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--brand); color: var(--brand-ink); padding: 8px 14px; border-radius: 8px; }
.skip:focus { left: 8px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
.wrap--narrow { max-width: calc(860px + 2 * var(--gutter)); }
.section { padding: clamp(64px, 9vw, 120px) 0; position: relative; }
.section--soft { background: var(--bg-soft); }
.section--tight { padding: clamp(44px, 6vw, 72px) 0; }
.section--navy { background: var(--navy); color: var(--on-navy); }
.section--navy h2, .section--navy h3, .section--navy h4 { color: #fff; }
.section--navy .lead, .section--navy .muted { color: var(--on-navy-muted); }
.head { max-width: 760px; margin: 0 0 clamp(32px, 5vw, 56px); }
.head--center { margin-left: auto; margin-right: auto; text-align: center; }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.2rem); color: var(--muted); line-height: 1.65; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font: 700 .78rem/1 var(--font); letter-spacing: .08em; text-transform: uppercase; color: var(--brand); margin-bottom: 16px; }
.eyebrow::before { content: ""; width: 18px; height: 2px; background: currentColor; border-radius: 2px; }
.section--navy .eyebrow { color: #9fb0ff; }
.grad { background: linear-gradient(100deg, var(--brand) 10%, #7b5cff 60%, #19b8d6); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- buttons, chips ---------- */
.btn { --b: var(--brand); display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 46px; padding: 0 20px; border-radius: 12px; font: 600 .95rem/1 var(--font); border: 1px solid transparent; cursor: pointer; transition: transform .15s, box-shadow .15s, background .15s, border-color .15s; white-space: nowrap; text-decoration: none !important; }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn--primary { background: var(--b); color: var(--brand-ink); box-shadow: 0 8px 22px -10px color-mix(in srgb, var(--b) 80%, transparent); }
.btn--primary:hover { background: var(--brand-strong); transform: translateY(-1px); }
.btn--ghost { background: var(--surface); color: var(--text); border-color: var(--line-strong); }
.btn--ghost:hover { border-color: var(--brand); color: var(--brand); }
.btn--light { background: #fff; color: #0a1033; }
.btn--light:hover { transform: translateY(-1px); }
.btn--outline-light { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .35); }
.btn--outline-light:hover { border-color: #fff; }
.btn--sm { min-height: 38px; padding: 0 14px; font-size: .88rem; border-radius: 10px; }
.btns { display: flex; flex-wrap: wrap; gap: 12px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; font: 600 .76rem/1.3 var(--font); background: var(--brand-soft); color: var(--brand); border: 1px solid var(--brand-line); white-space: nowrap; }
.chip--earn { background: var(--earn-soft); color: var(--earn); border-color: color-mix(in srgb, var(--earn) 30%, transparent); }
.chip--warn { background: var(--warn-soft); color: var(--warn); border-color: color-mix(in srgb, var(--warn) 30%, transparent); }
.chip--soon { background: var(--soon-soft); color: var(--soon); border-color: color-mix(in srgb, var(--soon) 30%, transparent); }
.chip--plain { background: var(--surface-2); color: var(--text-2); border-color: var(--line); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }

/* ---------- header ---------- */
.hdr { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px); border-bottom: 1px solid transparent; transition: border-color .2s; }
.hdr.is-scrolled { border-bottom-color: var(--line); }
.hdr__in { display: flex; align-items: center; gap: 20px; height: var(--header-h); }
.logo { display: inline-flex; align-items: center; gap: 10px; color: var(--text); font: 800 1.16rem/1 var(--font-head); letter-spacing: -.02em; text-decoration: none !important; flex: none; }
.logo svg { width: 34px; height: 34px; }
.logo small { display: block; font: 600 .62rem/1 var(--font); color: var(--muted); letter-spacing: .04em; margin-top: 4px; }
.nav { display: flex; align-items: center; gap: 2px; margin-left: 12px; }
.nav__item { position: relative; }
.nav__link { display: inline-flex; align-items: center; gap: 4px; padding: 10px 12px; border-radius: 10px; color: var(--text-2); font: 500 .94rem/1 var(--font); background: none; border: 0; cursor: pointer; text-decoration: none !important; }
.nav__link:hover, .nav__item.is-open > .nav__link, .nav__link[aria-current="page"] { color: var(--brand); background: var(--brand-soft); }
.nav__link svg { width: 14px; height: 14px; transition: transform .2s; }
.nav__item.is-open > .nav__link svg { transform: rotate(180deg); }
.mega { position: absolute; top: calc(100% + 10px); left: -16px; min-width: 560px; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow-lg); padding: 14px; display: none; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px; }
.mega--wide { min-width: 760px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.mega--right { left: auto; right: -16px; }
.nav__item.is-open > .mega { display: grid; animation: drop .18s ease-out; }
@keyframes drop { from { opacity: 0; transform: translateY(-6px); } }
.mega a { display: flex; gap: 12px; padding: 11px 12px; border-radius: 12px; color: var(--text); text-decoration: none !important; }
.mega a:hover { background: var(--bg-soft); }
.mega a b { display: block; font: 600 .92rem/1.25 var(--font); }
.mega a span { display: block; font-size: .8rem; color: var(--muted); line-height: 1.4; margin-top: 2px; }
.mega .ico { flex: none; }
.mega__foot { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 6px; padding: 12px 12px 4px; border-top: 1px solid var(--line); font-size: .84rem; color: var(--muted); }
.hdr__end { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.burger { display: none; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line-strong); background: var(--surface); color: var(--text); cursor: pointer; align-items: center; justify-content: center; }
.burger svg { width: 22px; height: 22px; }

/* theme switch (System / Light / Dark) */
.tswitch { display: inline-flex; padding: 3px; gap: 2px; border-radius: 12px; background: var(--bg-soft); border: 1px solid var(--line); }
.tswitch button { width: 32px; height: 30px; border: 0; border-radius: 9px; background: transparent; color: var(--muted); cursor: pointer; display: grid; place-items: center; }
.tswitch button svg { width: 16px; height: 16px; }
.tswitch button[aria-pressed="true"] { background: var(--surface); color: var(--brand); box-shadow: var(--shadow-sm); }

/* mobile drawer */
.drawer { position: fixed; inset: 0; z-index: 60; display: none; }
.drawer.is-open { display: block; }
.drawer__bg { position: absolute; inset: 0; background: rgba(5, 8, 25, .5); backdrop-filter: blur(2px); }
.drawer__panel { position: absolute; top: 0; right: 0; bottom: 0; width: min(420px, 100%); background: var(--bg); border-left: 1px solid var(--line); display: flex; flex-direction: column; animation: slide .22s ease-out; }
@keyframes slide { from { transform: translateX(30px); opacity: 0; } }
.drawer__top { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.drawer__body { overflow-y: auto; padding: 8px 16px 24px; flex: 1; }
.drawer details { border-bottom: 1px solid var(--line); }
.drawer summary { list-style: none; display: flex; justify-content: space-between; align-items: center; padding: 15px 4px; font: 600 1.02rem/1.2 var(--font); cursor: pointer; }
.drawer summary::-webkit-details-marker { display: none; }
.drawer summary svg { width: 16px; height: 16px; transition: transform .2s; }
.drawer details[open] summary svg { transform: rotate(180deg); }
.drawer details a, .drawer__link { display: block; padding: 10px 4px 10px 12px; color: var(--text-2); font-size: .95rem; }
.drawer__link { padding-left: 4px; font: 600 1.02rem/1.2 var(--font); color: var(--text); padding-top: 15px; padding-bottom: 15px; border-bottom: 1px solid var(--line); }
.drawer__foot { padding: 16px; border-top: 1px solid var(--line); display: grid; gap: 10px; }
.drawer__foot .tsrow { display: flex; align-items: center; justify-content: space-between; font-size: .9rem; color: var(--muted); }

/* ---------- icons ---------- */
.ico { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); flex: none; }
.ico svg { width: 22px; height: 22px; }
.ico--sm { width: 34px; height: 34px; border-radius: 10px; }
.ico--sm svg { width: 18px; height: 18px; }
.ico--earn { background: var(--earn-soft); color: var(--earn); }

/* ---------- hero ---------- */
.hero { position: relative; padding: clamp(40px, 7vw, 88px) 0 clamp(56px, 8vw, 104px); overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: 0; background:
    radial-gradient(900px 500px at 85% -10%, color-mix(in srgb, var(--brand) 16%, transparent), transparent 70%),
    radial-gradient(700px 400px at -10% 30%, color-mix(in srgb, #19b8d6 10%, transparent), transparent 70%); pointer-events: none; }
.hero::after { content: ""; position: absolute; inset: 0; background-image: radial-gradient(color-mix(in srgb, var(--brand) 22%, transparent) 1px, transparent 1.2px); background-size: 28px 28px; mask-image: linear-gradient(180deg, #000 0%, transparent 75%); -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 75%); opacity: .5; pointer-events: none; }
.hero > .wrap { position: relative; z-index: 1; }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); gap: clamp(32px, 5vw, 64px); align-items: center; }
.hero__badge { display: inline-flex; align-items: center; gap: 10px; padding: 6px 14px 6px 6px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm); font-size: .86rem; color: var(--text-2); margin-bottom: 22px; }
.hero__badge b { background: var(--brand); color: var(--brand-ink); border-radius: 999px; padding: 3px 10px; font-size: .75rem; }
.hero h1 { margin-bottom: 20px; }
.hero .lead { max-width: 560px; margin-bottom: 30px; }
.hero__proof { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 30px; color: var(--muted); font-size: .9rem; }
.hero__proof span { display: inline-flex; align-items: center; gap: 7px; }
.hero__proof svg { width: 18px; height: 18px; color: var(--earn); }
.page-hero { padding: clamp(40px, 6vw, 80px) 0 clamp(36px, 5vw, 64px); position: relative; overflow: hidden; border-bottom: 1px solid var(--line); }
.page-hero::before { content: ""; position: absolute; inset: 0; background: radial-gradient(800px 380px at 90% -20%, color-mix(in srgb, var(--brand) 14%, transparent), transparent 70%); pointer-events: none; }
.page-hero > .wrap { position: relative; }
.page-hero h1 { font-size: clamp(2.1rem, 4.4vw, 3.4rem); max-width: 900px; }
.page-hero .lead { max-width: 720px; }
.crumbs { display: flex; flex-wrap: wrap; gap: 6px; font-size: .84rem; color: var(--muted); margin-bottom: 18px; }
.crumbs a { color: var(--muted); }
.crumbs span[aria-hidden] { opacity: .5; }
.page-hero__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: center; }

/* ---------- product stage (hero visual) ---------- */
.stage { position: relative; }
.win { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; box-shadow: var(--shadow-lg); }
.win__bar { display: flex; align-items: center; gap: 7px; height: 36px; padding: 0 12px; background: var(--surface-2); border-bottom: 1px solid var(--line); }
.win__bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--line-strong); }
.win__url { margin-left: 10px; flex: 1; max-width: 340px; height: 22px; border-radius: 7px; background: var(--bg); border: 1px solid var(--line); color: var(--muted); font-size: .72rem; display: flex; align-items: center; gap: 6px; padding: 0 9px; overflow: hidden; white-space: nowrap; }
.win__url svg { width: 11px; height: 11px; color: var(--earn); flex: none; }
.win img { width: 100%; }
.win--shot img { aspect-ratio: 16 / 10; object-fit: cover; object-position: top; }
.phone { width: 200px; padding: 8px; border-radius: 34px; background: #11152a; box-shadow: var(--shadow-lg); }
.phone img { border-radius: 27px; aspect-ratio: 390 / 844; object-fit: cover; object-position: top; }

/* builder mock: real partner site in the frame, the builder panel drawn around it */
.builder { display: grid; grid-template-columns: 196px minmax(0, 1fr); min-height: 0; }
.builder__side { border-right: 1px solid var(--line); background: var(--surface); padding: 12px; display: flex; flex-direction: column; gap: 12px; font-size: .74rem; }
.builder__tabs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; }
.builder__tabs span { text-align: center; padding: 6px 0; border-radius: 7px; background: var(--bg-soft); color: var(--muted); font-weight: 600; }
.builder__tabs span.on { background: var(--brand); color: var(--brand-ink); }
.builder__label { font-weight: 700; color: var(--text-2); font-size: .7rem; text-transform: uppercase; letter-spacing: .06em; }
.builder__themes { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.builder__themes span { border: 1px solid var(--line); border-radius: 8px; padding: 6px; display: grid; gap: 3px; color: var(--text-2); font-weight: 600; transition: border-color .3s, box-shadow .3s; }
.builder__themes span::before { content: ""; height: 26px; border-radius: 5px; background: linear-gradient(180deg, var(--bg-tint) 0 35%, var(--bg-soft) 35%); }
.builder__themes span.on { border-color: var(--brand); box-shadow: 0 0 0 2px var(--brand-soft); }
.builder__toggles { display: grid; gap: 6px; }
.tg { display: flex; justify-content: space-between; align-items: center; color: var(--text-2); font-weight: 500; }
.tg i { width: 28px; height: 16px; border-radius: 99px; background: var(--line-strong); position: relative; transition: background .3s; }
.tg i::after { content: ""; position: absolute; top: 2px; left: 2px; width: 12px; height: 12px; border-radius: 50%; background: #fff; transition: transform .3s; box-shadow: 0 1px 2px rgba(0,0,0,.2); }
.tg.on i { background: var(--earn); }
.tg.on i::after { transform: translateX(12px); }
.builder__swatches { display: flex; gap: 6px; }
.builder__swatches i { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--surface); box-shadow: 0 0 0 1px var(--line-strong); }
.builder__swatches i.on { box-shadow: 0 0 0 2px var(--brand); }
.builder__pub { margin-top: auto; text-align: center; padding: 8px; border-radius: 8px; background: var(--brand); color: var(--brand-ink); font-weight: 700; }
.builder__frame { position: relative; background: var(--bg-soft); padding: 10px; }
.builder__frame img { border-radius: 8px; box-shadow: var(--shadow-sm); aspect-ratio: 16 / 11; object-fit: cover; object-position: top; width: 100%; }
.builder__devices { position: absolute; top: 18px; right: 18px; display: flex; gap: 3px; padding: 3px; border-radius: 8px; background: var(--surface); box-shadow: var(--shadow-sm); }
.builder__devices i { width: 20px; height: 18px; border-radius: 5px; background: var(--bg-soft); }
.builder__devices i:first-child { background: var(--brand); }
.float { position: absolute; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-lg); padding: 12px 14px; font-size: .8rem; display: flex; align-items: center; gap: 10px; animation: bob 6s ease-in-out infinite; }
.float b { display: block; font-size: .9rem; color: var(--text); }
.float span { color: var(--muted); }
.float--a { left: -34px; bottom: -18px; }
.float--b { right: -18px; top: 58px; animation-delay: -3s; }
.float--c { right: 28px; bottom: -22px; animation-delay: -1.5s; }
@keyframes bob { 50% { transform: translateY(-6px); } }

/* ---------- grids & cards ---------- */
.grid { display: grid; gap: 20px; }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.card { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; transition: border-color .2s, transform .2s, box-shadow .2s; }
.card h3 { margin: 16px 0 8px; }
.card p { color: var(--muted); font-size: .95rem; margin-bottom: 0; }
a.card { color: inherit; text-decoration: none !important; display: flex; flex-direction: column; }
a.card:hover { border-color: var(--brand-line); transform: translateY(-2px); box-shadow: var(--shadow); }
.card__more { margin-top: auto; padding-top: 16px; display: inline-flex; align-items: center; gap: 6px; color: var(--brand); font-weight: 600; font-size: .9rem; }
.card__more svg { width: 16px; height: 16px; transition: transform .2s; }
a.card:hover .card__more svg { transform: translateX(3px); }
.card__top { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.card--flat { background: var(--surface-2); }
.section--soft .card { background: var(--surface); }

/* utility cards with a fee line */
.ucard { padding: 0; overflow: hidden; }
.ucard__shot { aspect-ratio: 16 / 9; background: var(--bg-soft); border-bottom: 1px solid var(--line); overflow: hidden; }
.ucard__shot img { width: 100%; height: 100%; object-fit: cover; object-position: top left; transition: transform .5s; }
a.ucard:hover .ucard__shot img { transform: scale(1.03); }
.ucard__body { padding: 20px 22px 22px; display: flex; flex-direction: column; flex: 1; }
.ucard__body h3 { margin: 0 0 6px; display: flex; align-items: center; gap: 10px; }
.ucard__fee { margin-top: 14px; padding-top: 14px; border-top: 1px dashed var(--line-strong); display: flex; flex-wrap: wrap; gap: 6px; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 26px; }
.filters button { border: 1px solid var(--line-strong); background: var(--surface); color: var(--text-2); border-radius: 999px; padding: 8px 15px; font: 600 .86rem/1 var(--font); cursor: pointer; }
.filters button[aria-pressed="true"] { background: var(--brand); color: var(--brand-ink); border-color: var(--brand); }

/* split feature rows */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.split + .split { margin-top: clamp(56px, 8vw, 104px); }
.split--flip > :first-child { order: 2; }
.ticks { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 12px; }
.ticks li { display: flex; gap: 12px; color: var(--text-2); }
.ticks li::before { content: ""; flex: none; width: 20px; height: 20px; margin-top: 2px; border-radius: 50%; background: var(--earn-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230e9f6e' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center / 12px no-repeat; }
.ticks b { color: var(--text); }

/* steps */
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; counter-reset: s; position: relative; }
.steps::before { content: ""; position: absolute; top: 27px; left: 12%; right: 12%; height: 2px; background: repeating-linear-gradient(90deg, var(--brand-line) 0 8px, transparent 8px 14px); }
.step { position: relative; text-align: center; padding: 0 6px; }
.step__n { width: 56px; height: 56px; margin: 0 auto 18px; border-radius: 16px; display: grid; place-items: center; background: var(--surface); border: 1px solid var(--brand-line); color: var(--brand); box-shadow: var(--shadow-sm); position: relative; }
.step__n svg { width: 24px; height: 24px; }
.step__n::after { counter-increment: s; content: counter(s); position: absolute; top: -8px; right: -8px; width: 22px; height: 22px; border-radius: 50%; background: var(--brand); color: var(--brand-ink); font: 700 .72rem/22px var(--font); }
.step h3 { font-size: 1.06rem; margin-bottom: 6px; }
.step p { color: var(--muted); font-size: .92rem; margin: 0; }
.step code { font-size: .8em; }

/* stats strip */
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); overflow: hidden; }
.stat { padding: 24px 22px; border-right: 1px solid var(--line); }
.stat:last-child { border-right: 0; }
.stat b { display: block; font: 800 clamp(1.7rem, 3vw, 2.3rem)/1.05 var(--font-head); letter-spacing: -.03em; color: var(--text); }
.stat span { color: var(--muted); font-size: .9rem; }
.section--navy .stats { background: rgba(255,255,255,.03); border-color: rgba(255,255,255,.1); }
.section--navy .stat { border-color: rgba(255,255,255,.1); }
.section--navy .stat b { color: #fff; }
.section--navy .stat span { color: var(--on-navy-muted); }

/* tables */
.tbl-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); -webkit-overflow-scrolling: touch; }
.tbl { width: 100%; border-collapse: collapse; font-size: .93rem; min-width: 640px; }
.tbl th, .tbl td { padding: 14px 18px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.tbl thead th { background: var(--surface-2); font: 700 .78rem/1.3 var(--font); text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.tbl tbody tr:last-child td { border-bottom: 0; }
.tbl td:first-child { font-weight: 600; color: var(--text); }
.tbl td { color: var(--text-2); }
.tbl .num { white-space: nowrap; font-variant-numeric: tabular-nums; }

/* pricing */
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; align-items: stretch; }
.plan { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 28px; position: relative; }
.plan--hl { border: 2px solid var(--brand); box-shadow: var(--shadow); }
.plan__tag { position: absolute; top: -13px; left: 28px; background: var(--brand); color: var(--brand-ink); font: 700 .72rem/1 var(--font); padding: 7px 11px; border-radius: 999px; letter-spacing: .04em; text-transform: uppercase; }
.plan h3 { margin: 0 0 6px; }
.plan__price { font: 800 2.6rem/1 var(--font-head); letter-spacing: -.04em; margin: 16px 0 4px; color: var(--text); }
.plan__price small { font: 500 .95rem/1 var(--font); color: var(--muted); letter-spacing: 0; }
.plan .ticks { margin-bottom: 24px; font-size: .93rem; }
.plan .btn { margin-top: auto; }

/* calculator */
.calc { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0; border: 1px solid var(--line); border-radius: 20px; overflow: hidden; background: var(--surface); }
.calc__in { padding: 28px; display: grid; gap: 22px; }
.calc__out { padding: 28px; background: var(--navy); color: var(--on-navy); display: flex; flex-direction: column; justify-content: center; gap: 8px; }
.calc__out b { font: 800 clamp(2.2rem, 4vw, 3rem)/1 var(--font-head); color: #fff; letter-spacing: -.03em; }
.calc__out .small { color: var(--on-navy-muted); }
.field label { display: flex; justify-content: space-between; font-weight: 600; font-size: .92rem; margin-bottom: 8px; }
.field output { color: var(--brand); font-variant-numeric: tabular-nums; }
.field input[type=range] { width: 100%; accent-color: var(--brand); }

/* FAQ */
.faq { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; align-items: start; }
.faq__col { display: grid; gap: 14px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 0 20px; }
.faq details[open] { border-color: var(--brand-line); box-shadow: var(--shadow-sm); }
.faq summary { list-style: none; cursor: pointer; padding: 18px 0; display: flex; justify-content: space-between; gap: 16px; font: 600 1rem/1.4 var(--font); color: var(--text); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; width: 26px; height: 26px; border-radius: 8px; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; font: 600 1.1rem/1 var(--font); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details > div { padding: 0 0 18px; color: var(--muted); font-size: .95rem; }
.faq details > div p:last-child { margin: 0; }

/* callouts */
.note { display: flex; gap: 14px; padding: 18px 20px; border-radius: 14px; background: var(--bg-soft); border: 1px solid var(--line); color: var(--text-2); font-size: .94rem; }
.note svg { width: 22px; height: 22px; flex: none; color: var(--brand); margin-top: 1px; }
.note--warn { background: var(--warn-soft); border-color: color-mix(in srgb, var(--warn) 25%, transparent); }
.note--warn svg { color: var(--warn); }
.note p:last-child { margin: 0; }

/* code */
.code { background: #0b1030; color: #dfe4ff; border-radius: 14px; padding: 18px 20px; font: 400 .84rem/1.7 var(--font-mono); overflow-x: auto; border: 1px solid #1d2560; }
.code .c { color: #7f8bc4; } .code .t { color: #8fd3ff; } .code .a { color: #c7a6ff; } .code .s { color: #7ee2b8; }

/* CTA band */
.cta { position: relative; overflow: hidden; border-radius: 28px; background: linear-gradient(120deg, var(--navy) 0%, #142088 55%, #2a3de8 100%); color: #fff; padding: clamp(36px, 6vw, 72px); display: grid; grid-template-columns: minmax(0, 1.4fr) auto; gap: 28px; align-items: center; }
.cta::after { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(255,255,255,.14) 1px, transparent 1.2px); background-size: 24px 24px; mask-image: linear-gradient(90deg, transparent, #000); -webkit-mask-image: linear-gradient(90deg, transparent, #000); pointer-events: none; }
.cta > * { position: relative; z-index: 1; }
.cta h2 { color: #fff; margin-bottom: 10px; }
.cta p { color: #c6cdf5; margin: 0; max-width: 620px; }

/* logos strip */
.logos { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 14px 34px; }
.logos span { display: inline-flex; align-items: center; gap: 9px; color: var(--muted); font: 600 .95rem/1 var(--font); }
.logos img { width: 26px; height: 26px; border-radius: 7px; object-fit: contain; background: #fff; }

/* themes gallery */
.themes { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; }
.theme { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 12px; }
.theme__pic { height: 120px; border-radius: 9px; background: var(--bg-soft); border: 1px solid var(--line); padding: 8px; display: grid; gap: 5px; align-content: start; overflow: hidden; }
.theme__pic i { display: block; border-radius: 3px; background: var(--line-strong); height: 6px; }
.theme__pic i.b { background: var(--brand); }
.theme__pic i.h { height: 30px; background: var(--brand-soft); }
.theme__pic i.r { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 4px; background: none; height: 26px; }
.theme__pic i.r::before, .theme__pic i.r::after, .theme__pic i.r b { content: ""; background: var(--line); border-radius: 3px; }
.theme h4 { margin: 10px 2px 2px; font-size: .95rem; }
.theme p { margin: 0 2px; font-size: .8rem; color: var(--muted); line-height: 1.4; }

/* toc for long pages */
.with-toc { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 48px; align-items: start; }
.toc { position: sticky; top: calc(var(--header-h) + 24px); font-size: .9rem; border-left: 2px solid var(--line); padding-left: 16px; display: grid; gap: 4px; }
.toc b { font-size: .74rem; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); margin-bottom: 6px; }
.toc a { color: var(--text-2); padding: 3px 0; }
.toc a.is-on { color: var(--brand); font-weight: 600; }
.prose h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); margin-top: 2.2em; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: 1.6em; }
.prose p, .prose li { color: var(--text-2); }

/* footer */
.ftr { background: var(--navy); color: var(--on-navy-muted); padding: 72px 0 32px; margin-top: 0; font-size: .92rem; }
.ftr a { color: var(--on-navy-muted); }
.ftr a:hover { color: #fff; }
.ftr__grid { display: grid; grid-template-columns: 1.5fr repeat(4, minmax(0, 1fr)); gap: 32px; }
.ftr .logo { color: #fff; }
.ftr .logo small { color: var(--on-navy-muted); }
.ftr h4 { color: #fff; font-size: .82rem; text-transform: uppercase; letter-spacing: .07em; margin-bottom: 14px; }
.ftr ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; }
.ftr__bottom { margin-top: 48px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.1); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: .84rem; }
.ftr__by { display: inline-flex; align-items: center; gap: 8px; }
.ftr__by img { width: 20px; height: 20px; }

/* reveal */
.rv { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.rv.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .rv { opacity: 1; transform: none; transition: none; }
  .float { animation: none; }
  html { scroll-behavior: auto; }
}

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .nav, .hdr__end .tswitch, .hdr__end .btn--ghost { display: none; }
  .burger { display: inline-flex; }
  .themes { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ftr__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ftr__brand { grid-column: 1 / -1; }
  .with-toc { grid-template-columns: minmax(0, 1fr); }
  .toc { display: none; }
}
@media (max-width: 960px) {
  .hero__grid, .page-hero__grid, .split { grid-template-columns: minmax(0, 1fr); }
  .split--flip > :first-child { order: 0; }
  .grid--3, .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .plans { grid-template-columns: minmax(0, 1fr); max-width: 520px; margin: 0 auto; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 36px; }
  .steps::before { display: none; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .section--navy .stat:nth-child(-n+2) { border-bottom-color: rgba(255,255,255,.1); }
  .faq { grid-template-columns: minmax(0, 1fr); }
  .calc { grid-template-columns: minmax(0, 1fr); }
  .cta { grid-template-columns: minmax(0, 1fr); }
  .float--a { left: -6px; }
  .float--b { right: -6px; }
}
@media (max-width: 640px) {
  body { font-size: 15.5px; }
  .grid--2, .grid--3, .grid--4 { grid-template-columns: minmax(0, 1fr); }
  .steps { grid-template-columns: minmax(0, 1fr); }
  .themes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ftr__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .builder { grid-template-columns: minmax(0, 1fr); }
  .builder__side { display: none; }
  .float { display: none; }
  .float--c { display: flex; position: relative; right: auto; bottom: auto; margin: 14px auto 0; width: max-content; max-width: 100%; animation: none; }
  .btns .btn { flex: 1 1 auto; }
  .hdr__end .btn--primary { display: none; }
  .card { padding: 20px; }
  .plan { padding: 24px 20px; }
  .calc__in, .calc__out { padding: 22px; }
  .cta { border-radius: 20px; }
}

/* inline icons inside text links, chips and badges */
a > svg:not([class]), p svg:not([class]), .chip svg { display: inline-block; width: 1em; height: 1em; vertical-align: -.14em; flex: none; }
.hero__badge svg { width: 15px; height: 15px; }
.hero__badge { text-decoration: none !important; }
/* builder mock: the site fills the frame next to the panel */
.builder__frame { display: flex; }
.builder__frame img { height: 100%; min-height: 100%; aspect-ratio: auto; object-fit: cover; object-position: top center; }
@media (max-width: 640px) { .builder__frame img { aspect-ratio: 4 / 3.4; height: auto; } }

/* ======================================================================
   Figma skin (DeFi CMS design file): Figtree, #0C12A8, lavender #E7E7F6,
   gradient buttons, "— Eyebrow" labels, blue bands with square decor.
   ====================================================================== */
body { font: 400 16px/1.5 var(--font); }
h1, h2, h3, h4 { font-family: var(--font); font-weight: 500; letter-spacing: -.01em; line-height: 1.15; }
h1 { font-size: clamp(2.4rem, 4.6vw, 4rem); letter-spacing: -.02em; line-height: 1.05; }
h2 { font-size: clamp(1.9rem, 3vw, 2.5rem); letter-spacing: -.015em; line-height: 1.12; }
h3 { font-size: 1.25rem; font-weight: 500; }
h4 { font-size: 1rem; font-weight: 600; }
.lead { color: var(--muted); font-size: 1rem; line-height: 1.6; }
.grad { background: none; -webkit-background-clip: initial; background-clip: initial; color: var(--brand); font-weight: 700; }
.eyebrow { font: 500 1.25rem/1.5 var(--font); letter-spacing: 0; text-transform: none; color: var(--brand); gap: 14px; margin-bottom: 8px; }
.eyebrow::before { width: 24px; height: 3px; }
.head--center .eyebrow::after, .eyebrow--both::after { content: ""; width: 24px; height: 3px; background: currentColor; border-radius: 2px; }
.section--navy .eyebrow, .band .eyebrow { color: #fff; }
.section { padding: clamp(56px, 8vw, 100px) 0; }
.section--soft { background: var(--bg-soft); }
.section--page { background: var(--page-soft); }
.section--navy { background: var(--navy); color: #fff; position: relative; overflow: hidden; }
.section--navy::before, .band::before { content: ""; position: absolute; left: -60px; top: -40px; width: 300px; height: 260px; pointer-events: none;
  background:
    linear-gradient(rgba(255,255,255,.07), rgba(255,255,255,.07)) 60px 40px / 88px 88px no-repeat,
    linear-gradient(rgba(255,255,255,.06), rgba(255,255,255,.06)) 150px 70px / 70px 90px no-repeat,
    linear-gradient(rgba(255,255,255,.07), rgba(255,255,255,.07)) 0 140px / 88px 88px no-repeat; }
.section--navy > .wrap, .band > .wrap { position: relative; z-index: 1; }
.head { margin-bottom: clamp(28px, 4vw, 48px); }
.head h2 { margin-bottom: 14px; }

/* buttons: gradient primary, lavender secondary, white outline on blue */
.btn { min-height: 56px; padding: 0 24px; border-radius: 8px; font: 600 1rem/1 var(--font); }
.btn--primary { background: var(--grad); color: #fff; box-shadow: none; }
.btn--primary:hover { background: var(--grad); filter: brightness(1.12); transform: none; }
.btn--ghost { background: var(--bg-soft); color: var(--brand); border-color: transparent; }
.btn--ghost:hover { border-color: var(--brand); color: var(--brand); }
.btn--light { background: #fff; color: #0c12a8; }
.btn--outline-light { border: 2px solid #fff; color: #fff; background: transparent; }
.btn--outline-light:hover { background: rgba(255,255,255,.1); }
.btn--sm { min-height: 44px; padding: 0 18px; font-size: .95rem; }

/* chips + icons follow the brand */
.ico { background: var(--bg-soft); color: var(--brand); border-radius: 10px; }
.chip { font-weight: 600; }

/* header: white bar, logo image, Figtree nav */
.hdr { background: var(--bg); backdrop-filter: none; -webkit-backdrop-filter: none; box-shadow: 0 1px 0 var(--line); border: 0; }
.logo .logo__full { width: 128px; height: auto; }
.logo__full--dark { display: none; }
.nav { margin-left: auto; gap: 4px; }
.nav__link { font: 500 1rem/1 var(--font); color: var(--text); padding: 10px 10px; background: none !important; }
.nav__link:hover, .nav__item.is-open > .nav__link, .nav__link[aria-current="page"] { color: var(--brand); }
.nav__link[aria-current="page"] { font-weight: 700; }
.hdr__end { margin-left: 18px; }
.mega { border-radius: 10px; box-shadow: var(--shadow-lg); }
.mega a b { font-weight: 600; }
.tswitch { border-radius: 8px; }

/* cards: white, thin border, lavender glow */
.card { border-radius: 10px; border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.card h3 { font-weight: 600; font-size: 1.1rem; }
a.card:hover { box-shadow: var(--shadow); border-color: transparent; transform: none; }
.section--soft .card { background: var(--surface); }

/* inner page hero */
.page-hero { background: var(--page-soft); border-bottom: 0; }
.page-hero::before { display: none; }
.page-hero h1 { font-size: clamp(2.2rem, 4vw, 3.4rem); }

/* tables like the Figma pricing grid */
.tbl-wrap { border-radius: 10px; border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.tbl thead th { background: var(--bg-soft); color: var(--brand); font: 600 .95rem/1.3 var(--font); text-transform: none; letter-spacing: 0; }
.plan { border-radius: 10px; }
.plan--hl { border: 2px solid var(--brand); }
.plan__tag { background: var(--grad); color: #fff; }
.plan__price { font-family: var(--font); font-weight: 600; color: var(--brand); }
.calc__out { background: #0c12a8; }

/* CTA band (blue with squares) */
.cta { border-radius: 10px; background: #0c12a8; }
.cta::after { background-image: none; }

/* footer: light, as in the design */
.ftr { background: var(--page-soft); color: var(--muted); padding-top: 64px; border-top: 1px solid var(--line); }
.ftr a { color: var(--muted); }
.ftr a:hover { color: var(--brand); text-decoration: none; }
.ftr h4 { color: var(--text); text-transform: none; letter-spacing: 0; font-size: 1rem; font-weight: 600; }
.ftr .logo { color: var(--text); }
.ftr__bottom { border-top-color: var(--line); color: var(--text); align-items: center; }
.ftr__legal { display: flex; flex-wrap: wrap; gap: 24px; font-weight: 600; }
.ftr__legal a { color: var(--text); }

/* ---------------- home (Figma home page) ---------------- */
.fg-hero { position: relative; overflow: hidden; background: var(--bg); min-height: 722px; display: flex; align-items: center; }
.fg-hero::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 56%; background-image: radial-gradient(rgba(12,18,168,.07) 1.6px, transparent 1.8px); background-size: 26px 26px; pointer-events: none; }
.fg-hero__art { position: absolute; right: 0; top: 0; height: 100%; width: 48%; max-width: 688px; background: url(/assets/img/fig/hero-hex.webp) left top / cover no-repeat; }
.fg-hero > .wrap { position: relative; z-index: 1; }
.fg-hero__txt { max-width: 610px; padding: 60px 0; }
.fg-hero h1 { font-size: clamp(2.6rem, 5vw, 4rem); font-weight: 500; margin-bottom: 26px; }
.fg-hero h1 b { color: var(--brand); font-weight: 700; }
.fg-hero p { color: var(--muted); font-size: 1rem; max-width: 560px; margin-bottom: 40px; }

.fg-what { display: grid; grid-template-columns: minmax(0, 535px) minmax(0, 1fr); gap: clamp(32px, 4vw, 48px); align-items: center; }
.fg-what img { width: 100%; height: auto; }
.fg-what__txt p { color: var(--muted); }

.fg-feats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.fg-feat { display: flex; align-items: stretch; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; box-shadow: var(--shadow-sm); color: inherit; text-decoration: none !important; transition: box-shadow .2s; }
a.fg-feat:hover { box-shadow: var(--shadow); }
.fg-feat__ico { flex: none; width: 94px; display: grid; place-items: center; background: var(--bg-soft); }
.fg-feat__ico img { width: 54px; height: 54px; }
.fg-feat__ico svg { width: 44px; height: 44px; color: #0c12a8; stroke-width: 1.6; }
.fg-feat__txt { padding: 20px 22px; }
.fg-feat__txt h3 { font-size: 1.12rem; font-weight: 600; margin: 0 0 6px; color: var(--text); }
.fg-feat__txt p { margin: 0; color: var(--muted); font-size: .95rem; }
.fg-feat__txt .chips { margin-top: 10px; }
.fg-center { text-align: center; margin-top: 40px; }
.fg-center p { font-weight: 500; color: var(--text); }

.band { position: relative; overflow: hidden; background: #0c12a8; color: #fff; padding: clamp(56px, 8vw, 100px) 0; }
.band::after { content: ""; position: absolute; right: -40px; bottom: -40px; width: 260px; height: 220px; pointer-events: none;
  background: linear-gradient(rgba(255,255,255,.06), rgba(255,255,255,.06)) 0 0 / 88px 88px no-repeat, linear-gradient(rgba(255,255,255,.08), rgba(255,255,255,.08)) 120px 60px / 88px 88px no-repeat; }
.band h2, .band h3 { color: #fff; }
.band p { color: rgba(255,255,255,.85); }
.band b { color: #fff; }
.fg-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 64px); align-items: center; }
.fg-about__vis { position: relative; }
.fg-about__pill { position: absolute; left: -30px; top: 42%; width: 220px; height: 64px; border-radius: 40px; background: #0b11d0; transform: rotate(-30deg); z-index: 0; }
.fg-about__vis .win { position: relative; z-index: 1; transform: rotate(-2deg); }
.fg-about__go { display: flex; align-items: center; gap: 16px; margin-top: 28px; justify-content: flex-end; }
.fg-about__go img { width: 52px; height: 52px; }

/* how it works timeline */
.fg-steps { position: relative; max-width: 950px; margin: 0 auto; }
.fg-steps::before { content: ""; position: absolute; left: 50%; top: 10px; bottom: 10px; width: 3px; margin-left: -1.5px; background: var(--bg-soft); }
.fg-step { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 100px; align-items: center; padding: 28px 0; }
.fg-step::before { content: ""; position: absolute; left: 50%; top: 50%; width: 18px; height: 18px; margin: -9px 0 0 -9px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 6px var(--bg); }
.fg-step__txt b { display: block; color: var(--brand); font-size: 1.25rem; font-weight: 600; margin-bottom: 6px; }
.fg-step__txt h3 { font-size: 1.6rem; margin: 0 0 8px; }
.fg-step__txt p { color: var(--muted); margin: 0; max-width: 340px; }
.fg-step--flip .fg-step__txt { order: -1; text-align: right; }
.fg-step--flip .fg-step__txt p { margin-left: auto; }
.fg-mock { position: relative; justify-self: center; width: min(100%, 300px); }
.fg-mock::before { content: ""; position: absolute; width: 200px; height: 200px; border-radius: 24px; background: var(--bg-soft); transform: rotate(35deg); left: -60px; bottom: -40px; z-index: 0; }
.fg-step--flip .fg-mock::before { left: auto; right: -60px; }
.fg-mock__card { position: relative; z-index: 1; background: var(--surface); border-radius: 10px; box-shadow: var(--shadow-lg); padding: 20px 20px 22px; font-size: .9rem; }
.fg-mock__card h4 { text-align: center; font-size: 1rem; margin: 0 0 4px; font-weight: 600; }
.fg-mock__card small { display: block; text-align: center; color: var(--muted); margin-bottom: 14px; }
.fg-mock__card small b { color: var(--brand); }
.fg-mock__in { border: 1px solid var(--line); border-radius: 6px; padding: 11px 12px; color: var(--muted); margin-bottom: 10px; font-size: .85rem; }
.fg-mock__btn { display: block; text-align: center; background: var(--grad); color: #fff; border-radius: 8px; padding: 13px; font-weight: 600; margin-top: 6px; }
.fg-mock__check { display: flex; gap: 12px; align-items: center; padding: 6px 0; color: var(--text-2); }
.fg-mock__check i { width: 16px; height: 16px; border: 1px dashed var(--line-strong); border-radius: 3px; flex: none; }
.fg-mock__check.on i { border: 0; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230c12a8' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 12l5 5L20 6'/%3E%3C/svg%3E") center / 16px no-repeat; }
.fg-mock__row { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid var(--line); color: var(--text-2); }
.fg-mock__row:last-child { border-bottom: 0; }
.fg-mock__row span:last-child { color: var(--brand); font-weight: 600; }
.fg-mock__tbl { width: 100%; border-collapse: collapse; font-size: .82rem; }
.fg-mock__tbl th { text-align: left; font-weight: 600; padding: 4px 4px 8px; }
.fg-mock__tbl td { padding: 6px 4px; color: var(--text-2); }
.fg-mock__tbl .ok { color: var(--earn); font-weight: 600; }
.fg-mock__link { display: block; text-align: center; margin-top: 12px; font-weight: 600; color: var(--brand); }

/* carousels (case studies, what's new) */
.fg-car { position: relative; }
.fg-car__track { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 48px) / 3); gap: 24px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 6px 2px 18px; }
.fg-car__track::-webkit-scrollbar { display: none; }
.fg-car__track > * { scroll-snap-align: start; }
.fg-car__btn { position: absolute; top: 46%; width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--grad); color: #fff; display: grid; place-items: center; cursor: pointer; z-index: 2; }
.fg-car__btn svg { width: 20px; height: 20px; }
.fg-car__btn--prev { left: -64px; } .fg-car__btn--next { right: -64px; }
.fg-case { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; display: flex; flex-direction: column; box-shadow: var(--shadow-sm); color: inherit; text-decoration: none !important; }
.fg-case:hover { box-shadow: var(--shadow); }
.fg-case__img { aspect-ratio: 364 / 230; overflow: hidden; background: var(--bg-soft); }
.fg-case__img img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.fg-case__body { padding: 20px 20px 22px; display: flex; flex-direction: column; flex: 1; }
.fg-case__body h3 { font-size: 1.25rem; font-weight: 600; margin: 0 0 8px; }
.fg-case__body p { color: var(--muted); font-size: .95rem; }
.fg-case__body .btn { margin-top: auto; width: 100%; min-height: 48px; }
.fg-case__label { color: var(--brand); font-weight: 600; font-size: .9rem; margin-bottom: 6px; }
.fg-news { border-bottom: 10px solid var(--bg-soft); }
.fg-news:hover { border-bottom-color: #0c12a8; }

/* pricing comparison (Figma table) */
.fg-price { border: 1px solid var(--line); border-radius: 10px; overflow-x: auto; background: var(--surface); -webkit-overflow-scrolling: touch; }
.fg-price table { width: 100%; border-collapse: collapse; min-width: 680px; }
.fg-price th, .fg-price td { padding: 16px 18px; text-align: center; border-bottom: 1px solid var(--line); }
.fg-price tr:last-child td, .fg-price tr:last-child th { border-bottom: 0; }
.fg-price th[scope="row"] { text-align: left; font-weight: 500; background: var(--bg-soft); width: 25%; color: var(--text); }
.fg-price thead th { vertical-align: bottom; font-weight: 600; color: var(--brand); }
.fg-price thead th:first-child { text-align: left; font-size: 1.25rem; background: var(--bg-soft); }
.fg-price thead b { display: block; font-size: 1.6rem; color: var(--brand); margin-top: 4px; }
.fg-price thead small { display: block; color: var(--muted); font-weight: 400; }
.fg-price td { border-left: 1px solid var(--line); color: var(--text-2); font-size: .92rem; }
.fg-yes, .fg-no { display: inline-block; width: 22px; height: 22px; vertical-align: middle; }
.fg-yes { background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232235d1' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center / 20px no-repeat; }
.fg-no { background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23a8a8b8' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M7 7l10 10M17 7L7 17'/%3E%3C/svg%3E") center / 18px no-repeat; }

/* tutorials accordion on blue */
.fg-acc { margin: 26px 0 30px; }
.fg-acc details { border-bottom: 2px solid rgba(255,255,255,.35); }
.fg-acc summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; padding: 16px 0; font: 600 1.25rem/1.4 var(--font); color: #fff; }
.fg-acc summary::-webkit-details-marker { display: none; }
.fg-acc summary svg { width: 24px; height: 24px; transition: transform .2s; }
.fg-acc details[open] summary svg { transform: rotate(180deg); }
.fg-acc details > p { margin: -6px 0 16px; color: rgba(255,255,255,.85); max-width: 480px; }
.fg-acc details > p a { color: #fff; text-decoration: underline; }
.fg-iso { width: 100%; max-width: 585px; margin-left: auto; }

/* FAQ (Q.1 style) */
.fg-faq { display: grid; grid-template-columns: minmax(0, 424px) minmax(0, 1fr); gap: clamp(32px, 8vw, 158px); align-items: center; }
.fg-q details { border-bottom: 1px solid var(--line); }
.fg-q summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 0; font: 500 1.25rem/1.4 var(--font); color: var(--text); }
.fg-q summary::-webkit-details-marker { display: none; }
.fg-q summary svg { width: 24px; height: 24px; flex: none; transition: transform .2s; }
.fg-q details[open] summary { color: var(--brand); }
.fg-q details[open] summary svg { transform: rotate(180deg); }
.fg-q details > div { color: var(--muted); padding: 0 0 18px; }
.fg-q details > div p:last-child { margin: 0; }

/* contact */
.fg-contact { display: grid; grid-template-columns: minmax(0, 513px) minmax(0, 1fr); gap: clamp(32px, 6vw, 69px); align-items: center; }
.fg-form { background: var(--surface); border-radius: 10px; box-shadow: var(--shadow-lg); padding: 16px; display: grid; gap: 12px; }
.fg-form label { display: block; }
.fg-form input, .fg-form textarea { width: 100%; font: 400 .95rem/1.4 var(--font); color: var(--text); background: var(--surface); border: 1px solid var(--line); border-radius: 6px; padding: 14px 16px; }
.fg-form textarea { min-height: 110px; resize: vertical; }
.fg-form input:focus, .fg-form textarea:focus { outline: 2px solid var(--brand); outline-offset: 0; }
.fg-form .btn { width: 100%; }
.fg-form small { color: var(--muted); text-align: center; }
.fg-social { display: flex; gap: 12px; margin-top: 24px; }
.fg-social a { width: 36px; height: 36px; border-radius: 6px; background: var(--grad); color: #fff; display: grid; place-items: center; }
.fg-social svg { width: 18px; height: 18px; }

/* organization: facts + product collage */
.fg-org { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(32px, 5vw, 48px); align-items: center; }
.fg-facts { display: flex; flex-wrap: wrap; gap: 16px 0; margin-top: 28px; }
.fg-facts div { padding: 4px 24px 4px 12px; border-left: 2px solid var(--bg-soft); min-width: 120px; }
.fg-facts b { display: block; font-size: 2.2rem; font-weight: 600; color: var(--brand); line-height: 1.2; }
.fg-facts span { color: var(--muted); font-size: .95rem; }
.fg-collage { display: grid; grid-template-columns: 1.4fr 1fr 1.15fr; grid-template-rows: 150px 150px 116px; gap: 20px; }
.fg-collage > * { border-radius: 10px; overflow: hidden; background: var(--bg-soft); }
.fg-collage img { width: 100%; height: 100%; object-fit: cover; object-position: top left; }
.fg-collage .c1 { grid-row: 1 / 3; }
.fg-collage .c2 { background: var(--grad); color: #fff; display: grid; place-content: center; text-align: center; padding: 10px; }
.fg-collage .c2 b { font-size: 2.4rem; font-weight: 600; line-height: 1.1; }
.fg-collage .c2 span { font-size: .9rem; opacity: .9; }
.fg-collage .c4 { grid-row: 2 / 4; }

/* final CTA (centered, blue band) */
.fg-cta { text-align: center; }
.fg-cta .eyebrow { justify-content: center; }
.fg-cta .eyebrow::after { content: ""; width: 24px; height: 3px; background: currentColor; border-radius: 2px; }
.fg-cta p { max-width: 640px; margin: 0 auto 30px; }
.fg-cta .btns { justify-content: center; }

/* home responsive */
@media (max-width: 1240px) { .fg-car__btn--prev { left: -8px; } .fg-car__btn--next { right: -8px; } }
@media (max-width: 1100px) { .fg-hero__art { width: 44%; } }
@media (max-width: 960px) {
  .fg-hero { min-height: 0; display: block; }
  .fg-hero__art { position: relative; display: block; width: 100%; max-width: none; height: 340px; background-position: center top; background-size: auto 420px; }
  .fg-hero__txt { padding: 40px 0 24px; }
  .fg-hero::before { width: 100%; }
  .fg-what, .fg-split, .fg-faq, .fg-contact, .fg-org { grid-template-columns: minmax(0, 1fr); }
  .fg-feats { grid-template-columns: minmax(0, 1fr); }
  .fg-car__track { grid-auto-columns: 78%; }
  .fg-steps::before { left: 9px; }
  .fg-step, .fg-step--flip { grid-template-columns: minmax(0, 1fr); gap: 26px; padding-left: 40px; }
  .fg-step::before { left: 9px; top: 40px; }
  .fg-step--flip .fg-step__txt { order: 0; text-align: left; }
  .fg-step--flip .fg-step__txt p { margin-left: 0; }
  .fg-mock { justify-self: start; }
  .fg-about__go { justify-content: flex-start; }
  .fg-iso { margin: 0 auto; }
}
@media (max-width: 640px) {
  .fg-hero h1 { font-size: 2.5rem; }
  .fg-hero__art { height: 280px; background-size: auto 340px; }
  .fg-car__track { grid-auto-columns: 88%; }
  .fg-car__btn { display: none; }
  .fg-feat__ico { width: 72px; }
  .fg-feat__ico img { width: 42px; height: 42px; }
  .fg-collage { grid-template-columns: 1fr 1fr; grid-template-rows: 120px 120px 120px; }
  .fg-collage .c1, .fg-collage .c4 { grid-row: auto; }
  .fg-q summary, .fg-acc summary { font-size: 1.08rem; }
  .fg-mock::before { display: none; }
}
/* dark mode: white logo, softer hero art */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .logo__full--light { display: none; }
  :root:not([data-theme="light"]) .logo__full--dark { display: block; }
  :root:not([data-theme="light"]) .fg-hero__art { opacity: .9; }
  :root:not([data-theme="light"]) .fg-hero::before { background-image: radial-gradient(rgba(255,255,255,.06) 1.6px, transparent 1.8px); }
}
[data-theme="dark"] .logo__full--light { display: none; }
[data-theme="dark"] .logo__full--dark { display: block; }
[data-theme="dark"] .fg-hero__art { opacity: .9; }
[data-theme="dark"] .fg-hero::before { background-image: radial-gradient(rgba(255,255,255,.06) 1.6px, transparent 1.8px); }
.ftr__grid--6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.ftr__bottom .logo img { width: 110px; }
@media (max-width: 1100px) { .ftr__grid--6 { grid-template-columns: repeat(3, minmax(0, 1fr)); } .hdr__end .btn--primary { display: none; } }
@media (max-width: 640px) { .ftr__grid--6 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.fg-q .n { margin-right: 8px; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .fg-feat__ico { background: #e7e7f6; } }
[data-theme="dark"] .fg-feat__ico { background: #e7e7f6; }
@media (max-width: 1100px) {
  .fg-hero { min-height: 0; display: block; }
  .fg-hero__art { position: relative; display: block; width: 100%; max-width: none; height: 380px; background-position: center top; background-size: auto 460px; opacity: 1; }
  .fg-hero__txt { padding: 40px 0 24px; max-width: 720px; }
  .fg-hero::before { width: 100%; }
}
@media (min-width: 1101px) and (max-width: 1280px) { .fg-hero__txt { max-width: 52%; } .fg-hero h1 { font-size: 3.4rem; } }
