@font-face {
  font-family: Manrope;
  src: url('./assets/manrope.woff2') format('woff2');
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
}

:root {
  color-scheme: light;
  --ink: #11251c;
  --forest: #101f37;
  --deep: #0b1728;
  --muted: #44566c;
  --canvas: #ffffff;
  --paper: #f4f7fb;
  --line: #d9e3ed;
  --lime: #a2f0cd;
  --accent: #127451;
  --side: clamp(1.15rem, 5.5vw, 4rem);
  --ease-out: cubic-bezier(.22, 1, .36, 1);
  --radius-control: .75rem;
  --radius-card: 1.375rem;
  --gap-cards: clamp(.75rem, 1.5vw, 1.25rem);
  --surface-shadow: inset 0 1px 0 #fff, 0 2px 4px #172e4710, 0 16px 30px -22px #16334b54;
  font-family: Manrope, 'Segoe UI', system-ui, sans-serif;
  background: var(--canvas);
  color: var(--ink);
  font-synthesis: none;
}

*, *::before, *::after { box-sizing: border-box; }
body, h1, h2, h3, p, ul, ol { margin: 0; }
body { line-height: 1.55; font-variant-numeric: tabular-nums; }
a { color: inherit; text-underline-offset: .25em; }
button, input, select { font: inherit; }
button { color: inherit; cursor: pointer; }
a, button, summary { transition: background-color .16s var(--ease-out), border-color .16s var(--ease-out), color .16s var(--ease-out), transform .16s var(--ease-out), box-shadow .16s var(--ease-out); }
:focus-visible { outline: 3px solid #549233; outline-offset: 4px; }
.dark :focus-visible, .hero :focus-visible { outline-color: var(--lime); }
section, main { scroll-margin-top: 4.5rem; }
.wrap { width: min(100% - 2 * var(--side), 72rem); margin-inline: auto; }
.skip { position: fixed; z-index: 30; top: .75rem; left: var(--side); padding: .7rem 1rem; color: var(--ink); background: var(--lime); transform: translateY(-200%); }
.skip:focus { transform: none; }
.masthead { position: sticky; z-index: 10; top: 0; background: var(--canvas); border-bottom: 1px solid #e5edf3; box-shadow: 0 6px 18px #122d4410; }
.header-inner, .footer-inner { min-height: 4.5rem; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.brand { display: inline-flex; align-items: center; gap: .55rem; font-size: 1.8rem; font-weight: 760; letter-spacing: -.055em; text-decoration: none; }
.brand-mark { display: block; width: 2.75rem; height: 2.75rem; flex: 0 0 auto; object-fit: contain; }
.nav, .footer nav { display: flex; align-items: center; gap: clamp(.8rem, 2.4vw, 2.1rem); }
.nav { margin-left: auto; }
.nav a, .footer nav a { font-weight: 600; text-decoration: none; }
.nav a:hover, .footer nav a:hover { text-decoration: underline; }
.nav .mobile-panel-link { display: none; }
.console-link, .menu-button { min-height: 2.75rem; padding: .5rem .75rem; border: 1px solid var(--line); border-radius: var(--radius-control); background: transparent; text-decoration: none; font-weight: 650; text-align: center; }
.console-link { color: white; border-color: #106648; background: linear-gradient(#238463, #116648); padding-inline: 1rem; box-shadow: inset 0 1px 0 #ffffff4b,0 2px 0 #084c35,0 7px 13px #103d3027; }
.console-link:hover { border-color: #388d70; transform: translateY(-1px); }
.console-link:active { transform: translateY(1px); box-shadow: inset 0 1px 0 #ffffff30,0 1px 0 #084c35; }
.menu-button:hover { background: var(--paper); }

.hero { isolation: isolate; position: relative; overflow: hidden; min-height: calc(100svh - 4.5rem); background: radial-gradient(ellipse at 50% 5%,#254970,#101f37 65%); color: var(--canvas); }
.hero::before { content: ''; z-index: -1; pointer-events: none; position: absolute; }
.hero::before { inset: 0; background-image: linear-gradient(#b8d9f617 1px, transparent 1px), linear-gradient(90deg, #b8d9f617 1px, transparent 1px); background-size: 4.6rem 4.6rem; mask-image: radial-gradient(ellipse, #000 34%, transparent 95%); }
.hero-inner { display: grid; justify-items: center; gap: clamp(2rem, 4.5vw, 3.5rem); padding-block: clamp(3.5rem, 8vh, 5rem) 3rem; }
.hero-copy { text-align: center; }
.hero-copy .rails, .hero-copy .actions { justify-content: center; }
@keyframes rise-in { from { opacity: .45; translate: 0 .625rem; } to { opacity: 1; translate: 0 0; } }
@keyframes product-drift { 0%, 100% { translate: 0 0; } 48% { translate: 0 -.55rem; } }
.rails { display: flex; align-items: center; gap: .65rem; font-size: .96rem; font-weight: 680; letter-spacing: .07em; }
.rails span { width: .8rem; height: .8rem; border-radius: 50%; background: var(--lime); }
h1, h2, h3 { line-height: 1.08; letter-spacing: -.04em; text-wrap: balance; }
h1 { margin-block: 1rem; font-size: clamp(2.5rem, 4.5vw, 4.25rem); font-weight: 750; }
h1 em { font-style: normal; color: #75dab7; }
h2 { font-size: clamp(2.1rem, 4.3vw, 4.4rem); font-weight: 730; }
h3 { font-size: clamp(1.17rem, 1.75vw, 1.65rem); }
.lead { max-width: 43rem; margin-inline: auto; color: #d8e6f3; font-size: clamp(1rem, 1.5vw, 1.22rem); }
.actions { display: flex; align-items: center; flex-wrap: wrap; gap: .75rem 1.25rem; }
.hero-copy .actions { margin-top: 1.6rem; }
.button { min-height: 3rem; display: inline-flex; align-items: center; justify-content: center; gap: .5rem; padding: .625rem 1.125rem; border: 1px solid #a4edcd; border-radius: var(--radius-control); background: linear-gradient(#c6fce0,#81ddb4); box-shadow: inset 0 1px 0 #fff8,0 3px 0 #3a9971,0 10px 20px #172f2540; color: #103326; text-decoration: none; font-weight: 720; }
.button:hover { transform: translateY(-2px); box-shadow: inset 0 1px 0 #fff8,0 4px 0 #3a9971,0 12px 24px #172f2540; }
.button:active { transform: translateY(2px); box-shadow: inset 0 1px 0 #fff6,0 1px 0 #3a9971,0 4px 8px #172f2530; }
.button-secondary { color: #eff9ff; background: linear-gradient(#314a68,#243852); border-color: #536986; box-shadow: inset 0 1px 0 #ffffff19,0 3px 0 #15293e,0 10px 20px #07101e45; }
.button-secondary:hover { box-shadow: inset 0 1px 0 #ffffff19,0 4px 0 #15293e,0 12px 24px #07101e4d; }
.button-secondary:active { box-shadow: inset 0 1px 0 #ffffff19,0 1px 0 #15293e; }
.button-light { color: #10543d; background: linear-gradient(#fff,#e7f3ec); border-color: #c5ddcf; box-shadow: inset 0 1px 0 #fff, 0 2px 0 #a8c6b6, 0 8px 16px #192f2110; }
.button-light:hover { box-shadow: inset 0 1px 0 #fff,0 3px 0 #a8c6b6,0 10px 20px #192f2115; }
.button:disabled { opacity: .68; cursor: wait; transform: none; }
.text-link { min-height: 2.75rem; display: inline-flex; align-items: center; font-weight: 650; }
.text-link:hover { color: var(--lime); }
.hero-note { margin-top: 1rem; color: #b9cadf; font-size: .875rem; }
.hero-scene { position: relative; width: min(100%,66rem); padding: 1.75rem clamp(3rem, 12vw, 8rem) .5rem; }
.ledger { background: var(--canvas); color: var(--ink); padding: clamp(1.1rem, 2.4vw, 2.1rem); border: .5rem solid #293e58; border-radius: 1.35rem; box-shadow: 0 2rem 3rem #0815217a; width: min(100%,42rem); margin-inline: auto; }
.telegram-sample,.integration-sample { position: absolute; z-index: 1; color: #0f2338; border-radius: 1.5rem; box-shadow: 0 1rem 2rem #020b19a0; }
.telegram-sample { left: 1%; top: 3.2rem; width: 21%; background: #21384f; padding: .43rem; transform: rotate(-7deg); }
.mock-label { position: absolute; bottom: calc(100% + .5rem); left: 50%; transform: translateX(-50%); color: #12314c; font-weight: 750; font-size: .82rem; white-space: nowrap; padding: .28rem .65rem; border-radius: 2rem; background: #e5f0fb; }
.telegram-screen { overflow: hidden; display: grid; gap: .52rem; background: #c7e8da; border-radius: 1.1rem; padding: .8rem .65rem 3rem; font-size: .8rem; }
.telegram-screen header { text-align: center; }
.telegram-screen p { border-radius: .7rem; background: #f5fbfd; padding: .55rem .65rem; }
.telegram-screen .telegram-credit { color: #105d42; font-size: 1rem; font-weight: 750; }
.integration-sample { right: .7%; bottom: 2.25rem; width: 25%; background: #f7fafc; padding: 1rem; }
.integration-sample > div { display: flex; justify-content: space-between; align-items: center; gap: .2rem; padding: .6rem 0; border-bottom: 1px solid var(--line); font-weight: 720; }
.integration-sample div:last-child { border-bottom: 0; padding-bottom: 0; }
.integration-sample small { display: block; color: var(--muted); font-weight: 500; }
.ledger-top { display: flex; align-items: center; justify-content: space-between; gap: .7rem; padding-bottom: 1rem; border-bottom: 1px solid var(--line); }
.ledger-top strong { font-size: clamp(1.15rem, 2.15vw, 1.9rem); line-height: 1.13; letter-spacing: -.035em; }
.mono, code, pre, time { font-family: 'Cascadia Code', Consolas, monospace; }
.mono, time { color: var(--muted); font-size: .79rem; }
.receipt { display: flex; gap: .6rem; align-items: center; justify-content: space-between; padding: clamp(.65rem, 1.55vw, 1.3rem); margin-block: 1rem 1.4rem; border: 1px solid var(--line); border-radius: .25rem; }
.receipt div { display: grid; }
.receipt div span { font-size: .85rem; color: var(--muted); }
.receipt strong { font-size: clamp(1.4rem, 3vw, 2.65rem); white-space: nowrap; line-height: 1.2; letter-spacing: -.045em; }
.receipt small { font-size: .58em; }
.pill { display: inline-block; width: fit-content; padding: .27rem .64rem; border-radius: 10rem; background: var(--lime); color: var(--ink); font-size: .8rem; font-weight: 740; }
.timeline { list-style: none; padding: 0; }
.timeline li { position: relative; display: flex; justify-content: space-between; gap: .5rem; padding: .42rem 0 .65rem 1.35rem; }
.timeline li::before { content: ''; position: absolute; top: .8rem; left: .14rem; width: .54rem; height: .54rem; background: #3c6829; border-radius: 50%; }
.timeline li:not(:last-child)::after { content: ''; position: absolute; top: 1.43rem; bottom: -.69rem; left: .38rem; width: 1px; background: #92aa7d; }
.timeline li span { display: block; color: var(--muted); font-size: .82rem; }
.timeline strong { font-size: .95rem; }
.timeline time { white-space: nowrap; }

.facts { border-bottom: 1px solid var(--line); }
.facts .wrap { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); text-align: center; }
.facts .wrap > div { display: grid; gap: .1rem; padding: 1.3rem .45rem; }
.facts .wrap > div + div { border-left: 1px solid var(--line); }
.facts strong { font-size: 1.45rem; color: var(--accent); }
.facts span { color: var(--muted); font-size: .88rem; }
.section { padding-block: clamp(4rem, 8vw, 6rem); }
.section-header { display: grid; justify-items: center; text-align: center; gap: 1rem; max-width: 52rem; margin: 0 auto clamp(2rem, 4vw, 3.5rem); }
h2 { font-size: clamp(2rem, 3.75vw, 3.45rem); }
.section-header > p:last-child { color: var(--muted); font-size: 1.03rem; max-width: 55ch; }
.eyebrow { color: var(--accent); font-weight: 750; font-size: .9rem; }
.paper { background: var(--paper); }
.dark { background: var(--forest); color: var(--canvas); }
.dark .eyebrow { color: var(--lime); }
.dark .section-header > p:last-child { color: #d0decb; }
.flow,.plans,.feature-grid { display: grid; gap: var(--gap-cards); grid-template-columns: repeat(4, minmax(0, 1fr)); }
.flow article,.plans article,.feature-grid article { padding: 1.5rem; min-width: 0; border: 1px solid var(--line); border-radius: var(--radius-card); background: linear-gradient(#fff 60%,#f8fafc); box-shadow: var(--surface-shadow); transition: border-color .16s var(--ease-out), background-color .16s var(--ease-out), box-shadow .16s var(--ease-out); }
.plans article:nth-child(3) { border-color: #72a892; }
@media (hover: hover) {
  .flow article:hover,.plans article:hover,.feature-grid article:hover { border-color: #8baea2; }
}
#tariflar,#demo,#savollar { background: var(--paper); }
#panel { padding-top: 0; }
.flow h3, .plans h3, .feature-grid h3 { margin-bottom: .6rem; text-wrap: initial; }
.flow p, .plans p, .feature-grid p { color: var(--muted); }
.step { display: inline-block; margin-bottom: 1rem; color: var(--accent); font: 670 1.05rem 'Cascadia Code', Consolas, monospace; }
.line-icon { display: inline-block; width: 1.125rem; height: 1.125rem; fill: none; stroke: currentColor; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; flex: 0 0 auto; vertical-align: middle; }
.feature-mark { display: grid; width: 2.5rem; height: 2.5rem; place-items: center; color: #11704e; background: linear-gradient(#f2fbf6,#deefe6); border: 1px solid #d3e8db; box-shadow: inset 0 1px 0 #fff,0 2px 4px #143a2014; border-radius: .75rem; margin-bottom: .875rem; }

.demo-grid, .api-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 1rem; }
.demo-form, .event-panel, .code-panel { min-width: 0; border: 1px solid #35485c; background: var(--deep); border-radius: var(--radius-card); padding: clamp(1rem, 2vw, 1.5rem); }
.demo-form { display: grid; gap: .5rem; }
.demo-form { background: linear-gradient(#fff,#f9fbfd); color: var(--ink); border-color: var(--line); box-shadow: var(--surface-shadow); }
#demo { color: var(--ink); }
#demo .eyebrow { color: var(--accent); }
#demo .demo-form :focus-visible { outline-color: var(--accent); }
#demo .section-header > p:last-child { color: var(--muted); }
.event-panel { color: #fff; }
.demo-form .actions { margin-top: .65rem; }
.demo-form input, .demo-form select { min-width: 0; min-height: 2.75rem; margin-bottom: .5rem; padding: .5rem .75rem; border: 1px solid #718a75; border-radius: var(--radius-control); background: #172f23; color: var(--canvas); }
.demo-form input,.demo-form select { background: var(--paper); color: var(--ink); border-color: var(--line); }
.plain-button, .code-head button { min-height: 2.75rem; border: 0; background: transparent; font-weight: 650; text-decoration: underline; text-underline-offset: .25em; }
.plain-button:hover, .code-head button:hover { color: var(--lime); }
.event-head { display: flex; justify-content: space-between; align-items: center; gap: .75rem; padding-bottom: 1rem; border-bottom: 1px solid #425c4a; }
.demo-progress { height: .25rem; margin-top: .75rem; border-radius: .25rem; background: #2a394d; overflow: hidden; }
.demo-progress span { display: block; height: 100%; background: #80d8b0; transform: scaleX(0); transform-origin: left; transition: transform .42s var(--ease-out), background-color .16s var(--ease-out); }
.event-panel[data-stage='created'] .demo-progress span { transform: scaleX(.24); }
.event-panel[data-stage='received'] .demo-progress span { transform: scaleX(.62); }
.event-panel:is([data-stage='paid'],[data-stage='expired'],[data-stage='review']) .demo-progress span { transform: scaleX(1); }
.event-panel:is([data-stage='expired'],[data-stage='review']) .demo-progress span { background: #edc780; }
#demo-log { padding: 0; list-style: none; }
#demo-log li { display: grid; grid-template-columns: 7rem 1fr; gap: .5rem; padding: .75rem 0; border-bottom: 1px solid #425c4a; }
#demo-log code { color: var(--lime); overflow-wrap: anywhere; }
#demo-log li span { color: #d7e3ce; }
.pill[data-state='expired'], .pill[data-state='review'] { background: #f7dda2; }

.panel-frame { display: grid; grid-template-columns: minmax(10rem, .34fr) 1fr; border: 1px solid var(--line); background: var(--paper); border-radius: var(--radius-card); box-shadow: var(--surface-shadow); overflow: hidden; }
.panel-nav { display: grid; align-content: start; gap: .35rem; padding: 1rem; border-right: 1px solid var(--line); }
.panel-nav button { color: var(--ink); min-height: 2.75rem; border: 1px solid transparent; border-radius: .25rem; background: transparent; text-align: left; padding: .5rem .65rem; font-weight: 650; }
.panel-nav button:hover { border-color: var(--line); }
.panel-nav button[aria-pressed='true'] { background: var(--lime); }
.panel-area { min-width: 0; padding: clamp(.85rem, 2.5vw, 1.8rem); background: var(--canvas); }
#panel-caption { font-size: 1.2rem; font-weight: 730; margin-bottom: .6rem; }
table { width: 100%; border-collapse: collapse; text-align: left; }
td, th { padding: .65rem .45rem; border-top: 1px solid var(--line); overflow-wrap: anywhere; }
th { color: var(--muted); font-size: .85em; }

#api { background: #fff; }
#api h2 span { color: var(--accent); }
.api-grid { align-items: start; grid-template-columns: minmax(0,.82fr) minmax(0,1.18fr); gap: clamp(1rem,2vw,1.5rem); }
.endpoints { display: grid; gap: 1rem; padding: clamp(1rem,2.2vw,1.75rem); background: linear-gradient(#f5f8fc,#edf3f8); border: 1px solid #e1e8ef; border-radius: var(--radius-card); box-shadow: var(--surface-shadow); }
.endpoint-rows { display: grid; gap: .5rem; }
.endpoint { display: grid; gap: .25rem; text-align: left; padding: .625rem .75rem; background: var(--canvas); border: 1px solid #e0e8ef; border-radius: .875rem; box-shadow: 0 1px 2px #1027410d; }
.endpoint:hover,.endpoint[aria-pressed='true'] { background: #f5fcf8; border-color: #a8cfb9; }
.endpoint > span:first-child { display: flex; align-items: center; gap: .5rem; }
.endpoint > span:last-child { color: var(--muted); font-size: .875rem; }
.endpoint code,.api-facts code { color: #13314b; font-weight: 700; overflow-wrap: anywhere; }
.http-method { flex: 0 0 auto; display: inline-flex; min-width: 2.5rem; justify-content: center; padding: .14rem .28rem; border-radius: .4rem; background: #e4efff; color: #214f91; font: 720 .72rem 'Cascadia Code', Consolas, monospace; }
.http-method.http-get { background: #dcf2e7; color: #155e40; }
.api-facts { display: grid; gap: .45rem; margin: 0; font-size: .86rem; }
.api-facts div { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .2rem 1rem; }
.api-facts dt { color: var(--muted); }
.api-facts dd { margin: 0; font-weight: 675; }
.endpoints .button { justify-self: start; }
.api-examples { min-width: 0; display: grid; gap: .75rem; }
.api-tabs,.language-tabs { display: flex; flex-wrap: wrap; gap: .375rem; }
.api-tabs button,.language-tabs button,.code-head button { display: inline-flex; align-items: center; justify-content: center; gap: .35rem; min-height: 2.5rem; padding: .375rem .65rem; border: 1px solid #dce6ee; border-radius: .65rem; font-size: .83rem; font-weight: 675; background: linear-gradient(#fff,#f4f7fa); box-shadow: 0 2px 0 #e5edf3; }
.api-tabs button:hover { border-color: #9bbcaf; }
.api-tabs button[aria-pressed='true'] { background: linear-gradient(#233b54,#14263e); color: #fff; border-color: #203d5a; box-shadow: inset 0 1px 0 #ffffff25, 0 2px 0 #0d1c2d; }
.code-panel { display: grid; grid-template-rows: auto minmax(17rem,auto) auto; color: #eaf3ff; background: #0e1a29; padding: 0; overflow: hidden; border-color: #2e4157; box-shadow: inset 0 1px 0 #ffffff14,0 4px 0 #122033,0 16px 35px -14px #152d4669; }
.code-head { display: flex; align-items: center; flex-wrap: wrap; gap: .625rem; min-height: 3.25rem; padding: .5rem .75rem; background: #152338; border-bottom: 1px solid #2c3d53; }
.code-head #code-label { margin-right: auto; font-size: .86rem; font-weight: 660; color: #c2d6eb; }
.code-head button,.language-tabs button { text-decoration: none; border-color: #35465e; color: #dcecff; background: #1d2d43; box-shadow: none; }
.code-head button .line-icon { width: .95rem; height: .95rem; }
.code-head button:hover,.language-tabs button:hover,.language-tabs button[aria-pressed='true'] { color: #b9f4d9; border-color: #5e8b83; background: #273c48; }
.terminal-lights { display: flex; gap: .28rem; }
.terminal-lights span { width: .5rem; height: .5rem; border-radius: 50%; background: #df827c; }
.terminal-lights span:nth-child(2) { background: #e0b96d; }
.terminal-lights span:last-child { background: #79bd9d; }
.code-panel pre { margin: 0; max-height: 23rem; overflow: auto; padding: 1.25rem; line-height: 1.7; color: #e2edfa; font-size: clamp(.75rem,1.2vw,.875rem); white-space: pre; }
.code-panel pre:focus-visible { outline-offset: -3px; }
.syntax-string { color: #9ce8c6; }
.syntax-accent { color: #a8cfff; }
.language-tabs { padding: .6rem .75rem .75rem; background: #152338; border-top: 1px solid #2c3d53; }
.language-tabs[hidden] { display: none; }
.payment-states { display: flex; flex-wrap: wrap; gap: .375rem; margin-top: .25rem; }
.payment-states span { display: inline-flex; align-items: center; gap: .35rem; padding: .23rem .46rem; border: 1px solid var(--line); border-radius: .6rem; background: #f8fafc; color: #405569; font-size: .8rem; }
.payment-states i { width: .4rem; height: .4rem; border-radius: 50%; background: #a77a25; }
.payment-states span:nth-child(2) i { background: #238363; }
.payment-states span:last-child i { background: #a76067; }
.copy-status { display: block; min-height: 1.25rem; color: var(--muted); font-size: .85rem; }
.plan-price { display: flex; align-items: baseline; flex-wrap: wrap; gap: .125rem .35rem; font-variant-numeric: tabular-nums; }
.plan-price strong { color: var(--ink); font-size: clamp(1.05rem, 2vw, 1.45rem); }
.plan-price span { white-space: nowrap; font-size: .875rem; }
.plans ul { padding-left: 1rem; margin-top: 1rem; }
.plans li { margin-bottom: .3rem; }

.faq-layout .questions { margin-inline: auto; max-width: 52rem; }
.questions { display: grid; gap: .5rem; }
.questions details { background: linear-gradient(#fff,#fafbfd); box-shadow: var(--surface-shadow); border: 1px solid var(--line); border-radius: .875rem; padding-inline: 1rem; }
.questions summary { min-height: 3.1rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: .85rem; font-weight: 710; cursor: pointer; list-style: none; }
.questions summary::-webkit-details-marker { display: none; }
.questions summary::after { content: '+'; font-size: 1.25rem; }
.questions details[open] summary::after { content: '−'; }
.questions summary:hover { color: var(--accent); }
.questions p { color: var(--muted); padding-bottom: .95rem; }
.close { background: var(--paper); padding-block: 0 clamp(3rem, 7vw, 6rem); }
.close-inner { display: grid; justify-items: center; text-align: center; gap: 1.25rem; background: radial-gradient(ellipse at 50% 0,#204264,#101f37); border-radius: 1.35rem; color: var(--canvas); padding: clamp(2rem, 7vw, 4rem) 1rem; }
.footer { background: var(--deep); color: var(--canvas); }
.footer-inner { min-height: 7rem; }
.footer p { color: #d0ddcd; }
.footer nav { flex-wrap: wrap; }

@media (max-width: 60rem) {
  .header-inner { flex-wrap: wrap; gap: .4rem 1rem; padding-block: .55rem; }
  .nav { order: 3; flex: 1 1 100%; flex-wrap: wrap; gap: .15rem 1.15rem; }
  .nav a { display: flex; min-height: 2.55rem; align-items: center; }
  .hero { min-height: calc(100svh - 5rem); }
  .hero-inner { gap: 2.4rem; }
  .flow, .plans { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-inner { flex-wrap: wrap; padding-block: 1.25rem; gap: .7rem 1.35rem; }
}

@media (max-width: 47rem) {
  .menu-button:not([hidden]) { display: inline-flex; align-items: center; gap: .4rem; margin-left: auto; }
  .header-inner .console-link { display: none; }
  .nav .mobile-panel-link { display: flex; }
  .nav[hidden] { display: none; }
  .hero-inner, .demo-grid, .api-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-inner { gap: 1.75rem; padding-block: 3rem; }
  .hero-scene { padding-inline: 0; }
  .telegram-sample,.integration-sample { display: none; }
  .facts .wrap { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .facts .wrap > div:nth-child(3) { border-left: 0; }
  .facts .wrap > div:nth-child(n+3) { border-top: 1px solid var(--line); }
  h1 { font-size: clamp(2.28rem, 7.1vw, 3.6rem); }
  .hero-copy .actions { margin-top: 1.15rem; }
  .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .panel-frame { grid-template-columns: minmax(0, 1fr); }
  .panel-nav { display: flex; flex-wrap: wrap; gap: .2rem; padding: .4rem; border-right: 0; border-bottom: 1px solid var(--line); }
  .panel-nav button { padding-inline: .38rem; flex: 1 1 auto; text-align: center; font-size: .88rem; }
}

@media (max-width: 25rem) {
  .hero-inner { padding-top: 2.5rem; }
  .flow article, .plans article,.feature-grid article { padding: .875rem; }
  .flow,.plans,.feature-grid { gap: .75rem; }
  #demo-log li { grid-template-columns: minmax(0, 1fr); gap: .15rem; }
  td, th { padding-inline: .25rem; }
}

@media (max-width: 20rem) {
  h1 { font-size: 2.05rem; }
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
  [data-enter] .hero-copy > *, [data-enter] .ledger { animation: rise-in .45s var(--ease-out) both; }
  [data-enter] .hero-copy h1 { animation-delay: .05s; }
  [data-enter] .hero-copy .lead { animation-delay: .1s; }
  [data-enter] .hero-copy .actions { animation-delay: .15s; }
  [data-enter] .hero-copy .hero-note { animation-delay: .2s; }
  [data-enter] .ledger { animation-delay: .24s; }
  [data-enter] .ledger .timeline li { animation: rise-in .4s var(--ease-out) .28s both; }
  [data-enter] .ledger .timeline li:nth-child(2) { animation-delay: .33s; }
  [data-enter] .ledger .timeline li:nth-child(3) { animation-delay: .38s; }
  [data-enter] .telegram-sample { animation: rise-in .45s var(--ease-out) .26s both, product-drift 3.25s var(--ease-out) .8s 1; }
  [data-enter] .integration-sample { animation: rise-in .45s var(--ease-out) .32s both, product-drift 3.45s var(--ease-out) 1s 1; }
  .section-header.in-view,.panel-frame.in-view,.demo-grid.in-view,.api-grid.in-view,.questions.in-view,
  :is(.feature-grid,.flow,.plans).in-view article { animation: rise-in .38s var(--ease-out) both; }
  :is(.feature-grid,.flow,.plans).in-view article:nth-child(4n + 2) { animation-delay: .05s; }
  :is(.feature-grid,.flow,.plans).in-view article:nth-child(4n + 3) { animation-delay: .1s; }
  :is(.feature-grid,.flow,.plans).in-view article:nth-child(4n) { animation-delay: .15s; }
  #demo-log li,.questions details[open] p { animation: rise-in .3s var(--ease-out) both; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
