@import url("https://fonts.googleapis.com/css2?family=Lexend:wght@400;500;600;700;800&display=swap");

:root {
  --canvas: #f3f2ec;
  --paper: #fffefa;
  --ink: #151817;
  --muted: #666c67;
  --soft-muted: #929891;
  --line: #d9dbd3;
  --line-strong: #bfc3bb;
  --accent: #ee4d38;
  --accent-dark: #c93726;
  --accent-soft: #fff0eb;
  --night: #171b19;
  --night-2: #222825;
  --success: #247c59;
  --success-soft: #e9f5ee;
  --warning: #96510d;
  --warning-soft: #fff4df;
  --danger-soft: #fff0ed;
  --display: "Lexend", "Segoe UI", sans-serif;
  --body: "Lexend", "Segoe UI", sans-serif;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  --shadow: 0 28px 80px rgba(24, 30, 27, 0.12);
  --shadow-soft: 0 14px 40px rgba(24, 30, 27, 0.07);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 100px; }
body {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 2% -6%, rgba(238, 77, 56, 0.12), transparent 29rem),
    radial-gradient(circle at 98% 6%, rgba(21, 24, 23, 0.075), transparent 34rem),
    var(--canvas);
  color: var(--ink);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body::before {
  position: fixed;
  z-index: -1;
  inset: 0;
  pointer-events: none;
  content: "";
  opacity: 0.28;
  background-image: linear-gradient(rgba(21, 24, 23, 0.035) 1px, transparent 1px), linear-gradient(90deg, rgba(21, 24, 23, 0.035) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(to bottom, #000, transparent 72%);
}
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
img { max-width: 100%; }
::selection { background: rgba(238, 77, 56, 0.2); }
:focus-visible { outline: 3px solid rgba(238, 77, 56, 0.3); outline-offset: 3px; }
.wrap { width: min(1180px, calc(100% - 48px)); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; margin: -1px; padding: 0; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; z-index: 100; top: 12px; left: 12px; padding: 10px 14px; border-radius: 7px; background: var(--night); color: var(--paper); font-size: 0.82rem; font-weight: 700; transform: translateY(-160%); transition: transform 160ms ease; }
.skip-link:focus { transform: translateY(0); }

.site-nav { position: sticky; z-index: 20; top: 0; border-bottom: 1px solid rgba(21, 24, 23, 0.1); background: rgba(243, 242, 236, 0.84); backdrop-filter: blur(20px); }
.nav-wrap { min-height: 82px; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.brand { display: inline-flex; flex-shrink: 0; align-items: center; gap: 13px; }
.brand img { display: block; width: auto; height: 34px; max-width: 180px; object-fit: contain; }
.brand-copy { display: grid; gap: 2px; padding-left: 13px; border-left: 1px solid var(--line-strong); line-height: 1; }
.brand-copy strong { font-family: var(--display); font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; }
.brand-copy span { color: var(--soft-muted); font-size: 0.64rem; letter-spacing: 0.12em; text-transform: uppercase; }
.nav-links { display: flex; align-items: center; justify-content: flex-end; gap: 23px; color: var(--muted); font-size: 0.83rem; font-weight: 600; }
.nav-logout-form { margin: 0; }
.nav-link { position: relative; padding-block: 8px; transition: color 160ms ease; }
.nav-link::after { position: absolute; right: 0; bottom: 2px; left: 0; height: 1px; background: var(--accent); content: ""; transform: scaleX(0); transform-origin: left; transition: transform 160ms ease; }
.nav-link:hover, .nav-link.is-active { color: var(--ink); }
.nav-link.is-active::after { transform: scaleX(1); }
.nav-account { display: inline-flex; min-width: 0; align-items: center; gap: 7px; color: var(--soft-muted); }
.nav-user { max-width: 170px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 0.72rem; }
.presence-dot { width: 7px; height: 7px; flex: 0 0 auto; border-radius: 50%; background: #34a36e; box-shadow: 0 0 0 4px rgba(52, 163, 110, 0.11); }

.button { display: inline-flex; min-height: 45px; align-items: center; justify-content: center; gap: 9px; border: 1px solid var(--ink); border-radius: var(--radius-sm); padding: 11px 18px; background: var(--ink); color: var(--paper); font-size: 0.82rem; font-weight: 700; letter-spacing: -0.01em; cursor: pointer; transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease, border-color 180ms ease, color 180ms ease; }
.button:hover { background: #000; box-shadow: 0 9px 22px rgba(21, 24, 23, 0.14); transform: translateY(-2px); }
.button.accent { border-color: var(--accent-dark); background: var(--accent-dark); color: #fff; }
.button.accent:hover { border-color: #a62c20; background: #a62c20; box-shadow: 0 10px 26px rgba(166, 44, 32, 0.24); }
.button.secondary { border-color: var(--line-strong); background: rgba(255, 254, 250, 0.42); color: var(--ink); }
.button.secondary:hover { border-color: var(--ink); background: var(--paper); }
.button.light { border-color: var(--paper); background: var(--paper); color: var(--ink); }
.button.light:hover { background: #f1efe7; }
.button.small { min-height: 38px; padding: 8px 13px; font-size: 0.74rem; }
.button.full { width: 100%; }
.button:disabled { opacity: 0.55; cursor: wait; transform: none; }

.kicker { display: inline-flex; align-items: center; gap: 9px; margin: 0; color: var(--accent-dark); font-size: 0.68rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; }
.kicker::before { width: 24px; height: 1px; background: currentColor; content: ""; }
.eyebrow-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; }
.live-chip, .account-state, .docs-version, .secure-badge, .secure-label { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-size: 0.68rem; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; }
.live-chip, .docs-version, .secure-badge { border: 1px solid var(--line); border-radius: 999px; padding: 7px 10px; background: rgba(255, 254, 250, 0.62); }
.secure-badge > span { color: var(--success); }
.lead { max-width: 610px; margin: 0; color: var(--muted); font-size: clamp(1rem, 1.6vw, 1.14rem); line-height: 1.75; }
.muted { color: var(--muted); font-size: 0.86rem; }
.text-link, .back-link, .panel-link, .stat-link, .process-link { color: var(--accent-dark); font-size: 0.75rem; font-weight: 700; }

.hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(400px, 0.82fr); align-items: center; gap: clamp(54px, 8vw, 112px); padding-block: clamp(84px, 10vw, 124px); }
.hero h1, .page-hero h1, .dash-head h1, .auth-panel h1, .error-card h1 { margin: 19px 0 23px; font-family: var(--display); font-weight: 800; letter-spacing: -0.075em; line-height: 0.96; }
.hero h1 { max-width: 690px; font-size: clamp(3.5rem, 7vw, 6.55rem); }
.accent { color: var(--accent); }
.hero-actions, .docs-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 31px; }
.hero-proof { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: 570px; margin-top: 38px; padding-top: 22px; border-top: 1px solid var(--line); }
.hero-proof div { display: grid; gap: 4px; padding-right: 18px; }
.hero-proof div + div { padding-left: 18px; border-left: 1px solid var(--line); }
.hero-proof strong { font-family: var(--display); font-size: 1.25rem; letter-spacing: -0.04em; }
.hero-proof span { color: var(--muted); font-size: 0.7rem; }

.hero-visual { position: relative; isolation: isolate; }
.visual-orbit { position: absolute; z-index: -1; border: 1px solid rgba(21, 24, 23, 0.1); border-radius: 50%; }
.orbit-one { width: 390px; height: 390px; right: -66px; top: -70px; }
.orbit-two { width: 280px; height: 280px; right: -10px; top: -13px; border-color: rgba(238, 77, 56, 0.16); }
.demo-window { overflow: hidden; border: 1px solid rgba(255, 254, 250, 0.13); border-radius: 20px; background: linear-gradient(145deg, #202522, #121513); box-shadow: var(--shadow); transform: rotate(1.1deg); }
.demo-top { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; padding: 16px 19px; border-bottom: 1px solid rgba(255, 254, 250, 0.1); color: #8d958f; font-family: var(--mono); font-size: 0.66rem; }
.window-dots { display: flex; gap: 6px; }
.demo-dot { width: 8px; height: 8px; border-radius: 50%; background: #f16a5a; }
.demo-dot:nth-child(2) { background: #e4b558; }
.demo-dot:nth-child(3) { background: #62b785; }
.window-secure { justify-self: end; color: #6db98b; }
.demo-body { padding: 28px 26px 24px; }
.demo-label { display: flex; align-items: center; justify-content: space-between; margin-bottom: 23px; color: #a7afa9; font-family: var(--mono); font-size: 0.65rem; letter-spacing: 0.08em; text-transform: uppercase; }
.demo-label b { color: #f2eee4; font-weight: 500; }
.code-line { display: block; margin: 8px 0; color: #dfe5da; font-family: var(--mono); font-size: 0.72rem; line-height: 1.75; }
.code-key { color: #f3a18f; }
.code-value { color: #c8df8e; }
.code-muted { color: #808982; }
.demo-response { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 24px; padding: 13px 14px; border: 1px solid rgba(238, 77, 56, 0.3); border-radius: 9px; background: rgba(238, 77, 56, 0.1); color: #e9eee5; font-family: var(--mono); font-size: 0.65rem; }
.response-dot { color: #72c395; }
.response-meta { color: #9ea89f; }
.demo-side-note { position: absolute; right: -33px; bottom: -37px; width: 196px; padding: 16px; border: 1px solid var(--line); border-radius: 12px; background: rgba(255, 254, 250, 0.96); box-shadow: var(--shadow-soft); font-size: 0.72rem; }
.demo-side-note .note-index { display: block; margin-bottom: 9px; color: var(--accent); font-family: var(--mono); font-size: 0.62rem; }
.demo-side-note b { display: block; margin-bottom: 5px; font-family: var(--display); font-size: 0.86rem; }
.demo-side-note span:last-child { color: var(--muted); }

.trust-strip { display: flex; align-items: center; justify-content: space-between; gap: 25px; padding-block: 24px; border-top: 1px solid var(--line); color: var(--muted); font-size: 0.72rem; font-weight: 600; }
.trust-strip span:not(.trust-label) { display: inline-flex; align-items: center; gap: 8px; }
.trust-strip span:not(.trust-label)::before { color: var(--accent); content: "✦"; font-size: 0.55rem; }
.trust-label { color: var(--soft-muted); font-size: 0.64rem; letter-spacing: 0.14em; text-transform: uppercase; }
.section { padding-block: clamp(76px, 9vw, 104px); }
.section-border { border-top: 1px solid var(--line); }
.section-head { display: grid; grid-template-columns: minmax(240px, 0.82fr) minmax(0, 1fr); align-items: end; gap: 70px; margin-bottom: 44px; }
.section-title { margin: 13px 0 0; font-family: var(--display); font-size: clamp(2.2rem, 4.2vw, 3.8rem); letter-spacing: -0.07em; line-height: 0.99; }
.section-description { max-width: 500px; margin: 0; color: var(--muted); font-size: 0.94rem; line-height: 1.8; }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.feature-card { position: relative; min-height: 280px; display: flex; flex-direction: column; overflow: hidden; padding: 25px; border: 1px solid var(--line); border-radius: var(--radius-md); background: rgba(255, 254, 250, 0.58); transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease; }
.feature-card::after { position: absolute; right: -45px; bottom: -65px; width: 150px; height: 150px; border: 1px solid var(--line); border-radius: 50%; content: ""; transition: border-color 180ms ease, transform 180ms ease; }
.feature-card:hover { border-color: var(--line-strong); box-shadow: var(--shadow-soft); transform: translateY(-4px); }
.feature-card:hover::after { border-color: rgba(238, 77, 56, 0.28); transform: scale(1.08); }
.feature-number { color: var(--accent); font-family: var(--mono); font-size: 0.66rem; font-weight: 600; }
.feature-icon { width: 34px; height: 34px; display: grid; place-items: center; margin: 26px 0 auto; border: 1px solid var(--line); border-radius: 50%; color: var(--accent-dark); font-family: var(--display); font-size: 0.92rem; }
.feature-card h3 { margin: 30px 0 9px; font-family: var(--display); font-size: 1.22rem; letter-spacing: -0.04em; }
.feature-card p { position: relative; z-index: 1; max-width: 285px; margin: 0; color: var(--muted); font-size: 0.81rem; line-height: 1.7; }
.process { display: grid; grid-template-columns: repeat(3, 1fr); padding-top: 20px; }
.process-item { min-height: 230px; display: flex; flex-direction: column; padding: 28px 38px 6px 0; }
.process-item + .process-item { padding-left: 38px; border-left: 1px solid var(--line); }
.process-index { color: var(--soft-muted); font-family: var(--mono); font-size: 0.68rem; }
.process-item h3 { margin: 24px 0 8px; font-family: var(--display); font-size: 1.15rem; letter-spacing: -0.04em; }
.process-item p { margin: 0 0 26px; color: var(--muted); font-size: 0.81rem; line-height: 1.72; }
.process-link { margin-top: auto; }
.cta-panel { position: relative; display: flex; overflow: hidden; align-items: center; justify-content: space-between; gap: 34px; padding: 42px 44px; border-radius: var(--radius-lg); background: var(--night); color: var(--paper); box-shadow: var(--shadow); }
.cta-panel::after { position: absolute; right: 7%; width: 260px; height: 260px; border: 1px solid rgba(255, 255, 255, 0.09); border-radius: 50%; content: ""; }
.cta-panel > * { position: relative; z-index: 1; }
.cta-panel h2 { margin: 9px 0 0; font-family: var(--display); font-size: clamp(1.8rem, 3vw, 2.7rem); letter-spacing: -0.06em; line-height: 1; }
.cta-panel p:not(.kicker) { max-width: 570px; margin: 13px 0 0; color: #aeb5b0; font-size: 0.82rem; }
.cta-panel .kicker { color: #f2a094; }
.cta-panel .button { flex-shrink: 0; }

.site-footer { margin-top: 20px; border-top: 1px solid var(--line); color: var(--muted); font-size: 0.72rem; }
.footer-main { min-height: 92px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 25px; }
.footer-brand { display: inline-flex; align-items: center; gap: 12px; justify-self: start; color: var(--ink); font-family: var(--display); font-size: 0.8rem; font-weight: 700; }
.footer-brand img { width: auto; height: 24px; max-width: 132px; object-fit: contain; }
.footer-status { display: inline-flex; align-items: center; gap: 9px; }
.footer-links { display: flex; gap: 20px; justify-self: end; }
.footer-links a:hover { color: var(--ink); }
.footer-bottom { display: flex; justify-content: space-between; gap: 24px; padding-block: 17px 20px; border-top: 1px solid var(--line); color: var(--soft-muted); font-size: 0.67rem; }

.auth-shell { min-height: calc(100vh - 82px); display: grid; align-items: center; padding-block: 66px 90px; }
.auth-layout { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(380px, 0.64fr); align-items: center; gap: clamp(50px, 10vw, 140px); }
.auth-panel h1 { max-width: 560px; font-size: clamp(3rem, 5.4vw, 5.05rem); }
.auth-panel .lead { max-width: 540px; }
.auth-step, .form-step { color: var(--soft-muted); font-family: var(--mono); font-size: 0.64rem; }
.auth-points { display: grid; max-width: 480px; margin-top: 38px; border-top: 1px solid var(--line); }
.auth-point { display: grid; grid-template-columns: 30px 1fr; gap: 13px; padding-block: 15px; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 0.79rem; }
.auth-point b { display: block; margin-bottom: 2px; color: var(--ink); font-family: var(--display); font-size: 0.83rem; }
.point-index { padding-top: 2px; color: var(--accent); font-family: var(--mono); font-size: 0.62rem; }
.auth-assurance { display: inline-flex; align-items: center; gap: 9px; margin-top: 22px; color: var(--muted); font-size: 0.72rem; }
.assurance-mark { width: 20px; height: 20px; display: grid; place-items: center; border-radius: 50%; background: var(--success-soft); color: var(--success); font-size: 0.7rem; font-weight: 800; }
.form-card { border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 34px; background: rgba(255, 254, 250, 0.82); box-shadow: var(--shadow-soft); }
.auth-card { position: relative; overflow: hidden; }
.auth-card::before { position: absolute; top: 0; right: 0; left: 0; height: 3px; background: linear-gradient(90deg, var(--accent), #f5a85a); content: ""; }
.form-card-top { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-bottom: 27px; }
.form-card h2 { margin: 0; font-family: var(--display); font-size: 1.62rem; letter-spacing: -0.055em; }
.form-card > .muted { margin: 8px 0 0; }
.form-stack { display: grid; gap: 17px; margin-top: 27px; }
.field { display: grid; gap: 8px; color: var(--ink); font-size: 0.76rem; font-weight: 700; }
.field input, .field select, .text-input, .inline-form input { width: 100%; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 12px 13px; background: var(--paper); color: var(--ink); outline: none; font-size: 0.87rem; transition: border-color 160ms ease, box-shadow 160ms ease; }
.field input::placeholder, .inline-form input::placeholder { color: #a0a59e; }
.field input:focus, .field select:focus, .text-input:focus, .inline-form input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(238, 77, 56, 0.1); }
.field.has-errors input { border-color: var(--accent-dark); }
.field-error { color: var(--accent-dark); font-size: 0.68rem; font-weight: 600; line-height: 1.4; }
.field-hint { margin: -7px 0 0; color: var(--soft-muted); font-size: 0.68rem; }
.form-note { margin: 19px 0 0; color: var(--muted); text-align: center; font-size: 0.76rem; }
.form-note a { color: var(--accent-dark); font-weight: 700; }
.notice { margin: 18px 0 0; border: 1px solid rgba(238, 77, 56, 0.28); border-radius: var(--radius-sm); padding: 11px 13px; background: var(--accent-soft); color: var(--accent-dark); font-size: 0.78rem; }

.dashboard { padding-block: 66px 94px; }
.dash-head { display: flex; min-width: 0; align-items: flex-end; justify-content: space-between; gap: 34px; }
.dash-head > div { min-width: 0; }
.dash-head h1 { max-width: 780px; min-width: 0; margin-bottom: 0; overflow-wrap: anywhere; font-size: clamp(2.75rem, 5vw, 4.65rem); }
.dash-sub { max-width: 650px; min-width: 0; margin: 13px 0 0; overflow-wrap: anywhere; color: var(--muted); font-size: 0.86rem; }
.dash-actions { display: flex; flex-shrink: 0; gap: 9px; }
.dashboard-notice { margin-top: 25px; }
.balance-band { display: grid; min-width: 0; grid-template-columns: minmax(0, 1.3fr) minmax(320px, 0.7fr); overflow: hidden; margin-top: 36px; border: 1px solid var(--night); border-radius: var(--radius-lg); background: var(--night); color: var(--paper); box-shadow: var(--shadow-soft); }
.balance-band > * { min-width: 0; }
.balance-main { position: relative; overflow: hidden; padding: 29px 32px; }
.balance-main::after { position: absolute; right: 8%; bottom: -100px; width: 220px; height: 220px; border: 1px solid rgba(255, 255, 255, 0.08); border-radius: 50%; content: ""; }
.balance-band .stat-label { color: #a9b0ab; }
.balance-value { display: block; margin-top: 13px; font-family: var(--display); font-size: clamp(2rem, 4vw, 3.1rem); letter-spacing: -0.065em; line-height: 1; }
.balance-value small { color: #9da59f; font-family: var(--body); font-size: 0.68rem; letter-spacing: 0; }
.balance-note { display: block; margin-top: 12px; color: #8e9690; font-size: 0.7rem; }
.balance-aside { display: grid; min-width: 0; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); border-left: 1px solid rgba(255, 255, 255, 0.1); background: var(--night-2); }
.balance-aside > div { display: flex; min-width: 0; flex-direction: column; justify-content: center; padding: 24px; }
.balance-aside > div + div { border-left: 1px solid rgba(255, 255, 255, 0.1); }
.aside-label { color: #89918c; font-size: 0.66rem; letter-spacing: 0.08em; text-transform: uppercase; }
.balance-aside strong { min-width: 0; overflow: hidden; margin-top: 9px; color: #eef0ec; font-size: 0.76rem; text-overflow: ellipsis; white-space: nowrap; }
.aside-status { display: inline-flex; align-items: center; gap: 8px; }
.stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 13px; margin-block: 14px 17px; }
.stat-card { min-height: 144px; padding: 21px 22px; border: 1px solid var(--line); border-radius: var(--radius-md); background: rgba(255, 254, 250, 0.64); }
.stat-card-tip { background: linear-gradient(135deg, var(--accent-soft), rgba(255, 254, 250, 0.72)); }
.stat-label { display: block; color: var(--muted); font-size: 0.69rem; font-weight: 600; }
.stat-value { display: block; margin-top: 17px; font-family: var(--display); font-size: 1.9rem; letter-spacing: -0.06em; line-height: 1; }
.stat-value-copy { font-size: 1rem; letter-spacing: -0.04em; }
.stat-foot { display: block; margin-top: 13px; color: var(--soft-muted); font-size: 0.66rem; }
.stat-link { display: inline-block; margin-top: 14px; }
.dash-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.panel { min-width: 0; padding: 27px; border: 1px solid var(--line); border-radius: var(--radius-md); background: rgba(255, 254, 250, 0.74); }
.panel.wide { grid-column: 1 / -1; }
.panel-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 17px; }
.panel h2 { margin: 10px 0 0; font-family: var(--display); font-size: 1.48rem; letter-spacing: -0.055em; line-height: 1.05; }
.panel-description { max-width: 420px; margin: 9px 0 0; color: var(--muted); font-size: 0.74rem; line-height: 1.6; }
.panel-count { flex-shrink: 0; border: 1px solid var(--line); border-radius: 999px; padding: 6px 9px; color: var(--muted); font-size: 0.64rem; }
.inline-form { display: flex; gap: 8px; margin: 24px 0 4px; }
.inline-form input { flex: 1; min-width: 0; }
.panel-list { margin-top: 19px; }
.list-row { min-width: 0; display: flex; align-items: center; justify-content: space-between; gap: 15px; padding-block: 15px; border-top: 1px solid var(--line); }
.row-leading { min-width: 0; display: flex; align-items: center; gap: 12px; }
.row-leading > div { min-width: 0; }
.row-icon { width: 32px; height: 32px; display: grid; flex: 0 0 auto; place-items: center; border: 1px solid var(--line); border-radius: 9px; background: #f7f6f0; color: var(--accent-dark); font-size: 0.82rem; }
.list-row b { display: block; overflow: hidden; font-size: 0.78rem; text-overflow: ellipsis; white-space: nowrap; }
.list-row small { display: block; overflow: hidden; margin-top: 4px; color: var(--soft-muted); font-size: 0.65rem; text-overflow: ellipsis; white-space: nowrap; }
.list-row code { padding: 0; background: transparent; color: var(--muted); }
.row-separator { color: var(--line-strong); }
.row-actions { display: flex; flex-shrink: 0; align-items: center; gap: 8px; }
.status-badge { display: inline-flex; align-items: center; gap: 7px; border-radius: 999px; padding: 6px 9px; font-size: 0.63rem; font-weight: 700; }
.status-badge.success { background: var(--success-soft); color: var(--success); }
.status-badge.pending { background: var(--warning-soft); color: var(--warning); }
.status-badge.danger { background: var(--danger-soft); color: var(--accent-dark); }
.status-badge .presence-dot { width: 5px; height: 5px; box-shadow: none; }
.text-danger { border: 0; padding: 6px; background: transparent; color: var(--accent-dark); font-size: 0.66rem; font-weight: 700; cursor: pointer; }
.text-danger:hover { text-decoration: underline; }
.empty-state { display: grid; place-items: center; padding: 30px 20px 24px; border-top: 1px solid var(--line); text-align: center; }
.empty-icon { width: 38px; height: 38px; display: grid; place-items: center; margin-bottom: 12px; border: 1px dashed var(--line-strong); border-radius: 50%; color: var(--accent); }
.empty-state strong { font-family: var(--display); font-size: 0.85rem; }
.empty-state p { max-width: 300px; margin: 6px auto 11px; color: var(--muted); font-size: 0.72rem; }
.panel-link { display: inline-block; margin-top: 17px; }
.secure-label { flex-shrink: 0; color: var(--success); }
.topup-content { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(300px, 0.8fr); align-items: center; gap: 28px; margin-top: 24px; padding: 23px; border: 1px solid var(--line); border-radius: 12px; background: #f8f7f2; }
.topup-form { margin: 0; }
.money-input { position: relative; flex: 1; }
.money-input input { padding-right: 54px; }
.money-input > span { position: absolute; top: 50%; right: 13px; color: var(--muted); font-size: 0.65rem; font-weight: 700; transform: translateY(-50%); }
.amount-hints { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 10px; color: var(--muted); font-size: 0.62rem; }
.amount-hints span:not(:first-child) { border: 1px solid var(--line); border-radius: 999px; padding: 4px 7px; background: var(--paper); color: var(--muted); }
.topup-note { display: flex; gap: 11px; padding-left: 24px; border-left: 1px solid var(--line); }
.note-icon { width: 24px; height: 24px; display: grid; flex: 0 0 auto; place-items: center; border-radius: 50%; background: var(--accent-soft); color: var(--accent-dark); font-family: var(--display); font-size: 0.7rem; font-weight: 800; }
.topup-note p { margin: 0; color: var(--muted); font-size: 0.72rem; line-height: 1.65; }
.topup-note strong { color: var(--ink); }
.topup-history { margin-top: 27px; }
.subsection-head { display: flex; align-items: center; justify-content: space-between; padding-bottom: 10px; color: var(--soft-muted); font-size: 0.63rem; letter-spacing: 0.09em; text-transform: uppercase; }
.empty { padding-block: 20px 3px; }
.help-strip { display: flex; align-items: center; gap: 14px; margin-top: 17px; border: 1px solid var(--line); border-radius: var(--radius-md); padding: 17px 19px; background: rgba(255, 254, 250, 0.48); }
.help-mark { width: 30px; height: 30px; display: grid; flex: 0 0 auto; place-items: center; border: 1px solid var(--line); border-radius: 50%; color: var(--accent-dark); font-family: var(--display); font-weight: 800; }
.help-strip > div { display: grid; gap: 2px; }
.help-strip strong { font-size: 0.76rem; }
.help-strip span:not(.help-mark) { color: var(--muted); font-size: 0.68rem; }
.help-strip .text-link { margin-left: auto; }

.page-hero { padding-block: 76px 64px; }
.page-hero h1 { max-width: 850px; min-width: 0; overflow-wrap: anywhere; font-size: clamp(3.2rem, 6.5vw, 5.9rem); }
.docs-page { padding-bottom: 104px; }
.docs-intro { display: grid; grid-template-columns: minmax(0, 1fr) 300px; align-items: end; gap: 58px; padding-top: 6px; }
.docs-intro .page-hero { padding-bottom: 44px; }
.api-chip { margin-bottom: 48px; border: 1px solid var(--line); border-radius: var(--radius-md); padding: 19px; background: rgba(255, 254, 250, 0.72); box-shadow: var(--shadow-soft); }
.chip-label { color: var(--soft-muted); font-size: 0.65rem; letter-spacing: 0.09em; text-transform: uppercase; }
.api-chip b { display: block; margin-top: 10px; color: var(--ink); font-family: var(--mono); font-size: 0.72rem; font-weight: 500; word-break: break-all; }
.chip-status { display: flex; align-items: center; gap: 8px; margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); color: var(--success); font-size: 0.67rem; font-weight: 700; }
.docs-layout { display: grid; grid-template-columns: 220px minmax(0, 1fr); align-items: start; gap: 58px; border-top: 1px solid var(--line); padding-top: 54px; }
.docs-nav { position: sticky; top: 120px; display: grid; gap: 2px; }
.docs-nav-label { margin-bottom: 14px; color: var(--soft-muted); font-size: 0.63rem; letter-spacing: 0.13em; text-transform: uppercase; }
.docs-nav a { border-left: 1px solid var(--line); padding: 9px 12px; color: var(--muted); font-size: 0.73rem; transition: border-color 160ms ease, color 160ms ease; }
.docs-nav a:hover { border-left-color: var(--accent); color: var(--ink); }
.docs-content { min-width: 0; max-width: 850px; }
.doc-section { margin-top: 64px; scroll-margin-top: 110px; }
.doc-section:first-child { margin-top: 0; }
.doc-heading { display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 16px; margin-bottom: 19px; }
.doc-number { padding-top: 5px; color: var(--accent); font-family: var(--mono); font-size: 0.66rem; }
.doc-section h2 { margin: 0 0 8px; font-family: var(--display); font-size: 1.52rem; letter-spacing: -0.05em; }
.doc-section p { max-width: 660px; margin: 0; line-height: 1.7; }
.doc-block { overflow: auto; margin: 0; border: 1px solid #2c322f; border-radius: 12px; padding: 22px; background: linear-gradient(145deg, #1d221f, #121513); box-shadow: var(--shadow-soft); color: #d4e6be; font: 500 0.73rem/1.85 var(--mono); white-space: pre-wrap; }
code { border-radius: 4px; padding: 2px 5px; background: var(--accent-soft); color: var(--accent-dark); font-family: var(--mono); font-size: 0.85em; }
.status-codes { display: grid; grid-template-columns: repeat(5, 1fr); border: 1px solid var(--line); border-radius: 12px; background: rgba(255, 254, 250, 0.65); }
.status-codes span { display: grid; gap: 8px; padding: 17px; }
.status-codes span + span { border-left: 1px solid var(--line); }
.status-codes code { width: fit-content; }
.status-codes b { font-size: 0.69rem; font-weight: 600; }

.payment-shell { padding-bottom: 100px; }
.payment-hero { padding-bottom: 39px; }
.payment-hero h1 { max-width: 920px; font-size: clamp(2.8rem, 5.8vw, 5.2rem); }
.topup-layout { display: grid; grid-template-columns: minmax(330px, 0.8fr) minmax(0, 1fr); align-items: start; gap: 17px; }
.qr-card { text-align: left; }
.qr-badge { border-radius: 6px; padding: 6px 8px; background: #eaf5ec; color: #1d6949; font-family: var(--display); font-size: 0.65rem; font-weight: 800; }
.qr-frame { width: min(100%, 350px); margin: 26px auto 23px; border: 1px solid var(--line); border-radius: 15px; padding: 12px; background: #fff; box-shadow: 0 12px 30px rgba(24, 30, 27, 0.07); }
.qr-frame img { display: block; width: 100%; border-radius: 8px; }
.payment-details { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); }
.payment-details span { display: grid; gap: 4px; padding: 14px 11px; border-bottom: 1px solid var(--line); }
.payment-details span:nth-child(even) { border-left: 1px solid var(--line); }
.payment-details small { color: var(--soft-muted); font-size: 0.62rem; }
.payment-details strong { overflow: hidden; color: var(--ink); font-size: 0.74rem; text-overflow: ellipsis; white-space: nowrap; }
.payment-content-row strong { color: var(--accent-dark); font-family: var(--mono); }
.payment-summary { padding: 30px; }
.summary-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.order-code { color: var(--soft-muted); font-family: var(--mono); font-size: 0.66rem; }
.payment-state { display: flex; align-items: center; gap: 12px; margin-top: 32px; }
.payment-pulse { width: 12px; height: 12px; border-radius: 50%; background: var(--warning); box-shadow: 0 0 0 7px var(--warning-soft); }
.payment-state[data-status="paid"] .payment-pulse { background: var(--success); box-shadow: 0 0 0 7px var(--success-soft); }
.payment-state[data-status="expired"] .payment-pulse, .payment-state[data-status="cancelled"] .payment-pulse, .payment-state[data-status="manual_review"] .payment-pulse { background: var(--accent); box-shadow: 0 0 0 7px var(--danger-soft); }
.payment-status { margin: 0; color: var(--ink); font-family: var(--display); font-size: 1.68rem; letter-spacing: -0.055em; }
.status-message { margin: 12px 0 22px; color: var(--muted); font-size: 0.78rem; line-height: 1.7; }
.amount-card { border-radius: 12px; padding: 20px; background: var(--night); color: var(--paper); }
.amount-card > span { color: #929a94; font-size: 0.65rem; text-transform: uppercase; letter-spacing: 0.08em; }
.amount-card strong { display: block; margin-top: 10px; font-family: var(--display); font-size: 2rem; letter-spacing: -0.06em; }
.amount-card small { color: #909891; font-family: var(--body); font-size: 0.65rem; letter-spacing: 0; }
.payment-progress { margin-top: 22px; }
.progress-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; color: var(--muted); font-size: 0.68rem; }
.progress-head strong { color: var(--ink); font-size: 0.68rem; }
.progress-track { overflow: hidden; height: 6px; margin-top: 10px; border-radius: 999px; background: #e4e5df; }
.progress-track span { display: block; width: 0; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--accent), #f4a258); transition: width 400ms ease; }
.payment-steps { display: grid; gap: 0; margin: 26px 0 0; padding: 0; list-style: none; }
.payment-steps li { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 12px; padding-block: 13px; border-top: 1px solid var(--line); }
.payment-steps li > span { width: 24px; height: 24px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; color: var(--accent-dark); font-family: var(--mono); font-size: 0.62rem; }
.payment-steps b, .payment-steps small { display: block; }
.payment-steps b { font-size: 0.74rem; }
.payment-steps small { margin-top: 3px; color: var(--muted); font-size: 0.65rem; }
.payment-actions { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 26px; }
.payment-actions > span { max-width: 175px; color: var(--soft-muted); font-size: 0.64rem; text-align: right; }

.key-shell { min-height: 68vh; display: grid; place-items: center; padding-block: 65px 100px; }
.key-card { width: min(680px, 100%); min-width: 0; margin: 0; padding: 42px; text-align: center; }
.key-success-mark { width: 52px; height: 52px; display: grid; place-items: center; margin: 0 auto 20px; border-radius: 50%; background: var(--success-soft); color: var(--success); font-family: var(--display); font-size: 1.2rem; font-weight: 800; box-shadow: 0 0 0 9px rgba(36, 124, 89, 0.07); }
.key-card .kicker { justify-content: center; }
.key-card h1 { margin: 17px 0 11px; font-family: var(--display); font-size: clamp(2.65rem, 6vw, 4.8rem); letter-spacing: -0.075em; line-height: 0.98; }
.key-intro { max-width: 520px; margin-inline: auto !important; }
.secret-key { overflow: auto; margin: 28px 0 13px; border: 1px solid rgba(36, 124, 89, 0.32); border-radius: 9px; padding: 17px; background: #edf7f0; color: #206b4c; font: 500 0.75rem var(--mono); white-space: nowrap; }
.security-checklist { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 25px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.security-checklist span { display: grid; gap: 5px; padding: 16px 10px; color: var(--muted); font-size: 0.65rem; }
.security-checklist span + span { border-left: 1px solid var(--line); }
.security-checklist b { color: var(--accent); font-family: var(--mono); font-size: 0.61rem; }
.key-next-step { display: flex; justify-content: space-between; gap: 18px; margin: 24px 0 0; }

.not-found { min-height: 68vh; display: grid; place-items: center; padding-block: 70px; }
.error-card { position: relative; max-width: 720px; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 50px; background: rgba(255, 254, 250, 0.72); box-shadow: var(--shadow-soft); text-align: center; }
.error-code { position: absolute; top: -40px; right: -8px; color: rgba(238, 77, 56, 0.07); font-family: var(--display); font-size: 10rem; font-weight: 800; line-height: 1; }
.error-card .kicker { justify-content: center; }
.error-card h1 { position: relative; margin-top: 19px; font-size: clamp(2.8rem, 6vw, 5rem); }
.error-card .lead { position: relative; margin-inline: auto; }
.error-card .hero-actions { justify-content: center; }

.reveal { animation: rise 650ms cubic-bezier(0.2, 0.75, 0.25, 1) both; }
.reveal-delay-1 { animation-delay: 90ms; }
.reveal-delay-2 { animation-delay: 180ms; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }

@media (max-width: 1350px) {
  .orbit-one, .orbit-two { right: 0; }
  .demo-side-note { right: 0; }
}

@media (max-width: 1000px) {
  .hero { grid-template-columns: minmax(0, 1fr) minmax(360px, 0.8fr); gap: 42px; }
  .docs-layout { grid-template-columns: 180px minmax(0, 1fr); gap: 36px; }
  .status-codes { grid-template-columns: repeat(3, 1fr); }
  .status-codes span:nth-child(4) { border-left: 0; border-top: 1px solid var(--line); }
  .status-codes span:nth-child(5) { border-top: 1px solid var(--line); }
  .topup-content { grid-template-columns: 1fr; }
  .topup-note { padding: 18px 0 0; border-top: 1px solid var(--line); border-left: 0; }
}

@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; gap: 65px; padding-top: 74px; }
  .hero-visual { width: min(100%, 680px); }
  .section-head, .auth-layout { grid-template-columns: 1fr; gap: 26px; }
  .auth-layout { gap: 50px; }
  .auth-panel { max-width: 650px; }
  .form-card.auth-card { max-width: 580px; }
  .balance-band { grid-template-columns: minmax(0, 1fr); }
  .balance-aside { border-top: 1px solid rgba(255, 255, 255, 0.1); border-left: 0; }
  .docs-intro { grid-template-columns: 1fr; gap: 0; }
  .api-chip { width: min(100%, 430px); margin-bottom: 45px; }
  .docs-layout { grid-template-columns: 1fr; gap: 28px; }
  .docs-nav { position: static; display: flex; overflow-x: auto; gap: 0; padding-bottom: 8px; }
  .docs-nav-label { display: none; }
  .docs-nav a { flex-shrink: 0; border-top: 1px solid var(--line); border-left: 0; }
  .docs-nav a:hover { border-top-color: var(--accent); border-left-color: transparent; }
  .topup-layout { grid-template-columns: 1fr; }
  .qr-card { max-width: 620px; }
}

@media (max-width: 700px) {
  .wrap { width: min(100% - 30px, 1180px); }
  .nav-wrap { min-height: 70px; }
  .brand-copy { display: none; }
  .brand img { height: 30px; max-width: 158px; }
  .nav-links { gap: 11px; }
  .nav-links .nav-link:not(.nav-cta), .nav-account { display: none; }
  .nav-cta { min-height: 36px; padding: 8px 11px; font-size: 0.7rem; }
  .hero h1 { font-size: clamp(3.15rem, 16vw, 5.1rem); }
  .hero-actions, .docs-actions { align-items: stretch; flex-direction: column; }
  .hero-actions .button, .docs-actions .button { width: 100%; }
  .hero-proof { gap: 0; }
  .hero-proof div { padding-right: 9px; }
  .hero-proof div + div { padding-left: 9px; }
  .hero-proof strong { font-size: 1.05rem; }
  .hero-proof span { font-size: 0.62rem; }
  .demo-window { transform: none; }
  .demo-side-note { right: 12px; bottom: -42px; }
  .orbit-one { right: 0; width: min(390px, 100%); height: auto; aspect-ratio: 1; }
  .orbit-two { right: 12%; width: min(280px, 76%); height: auto; aspect-ratio: 1; }
  .trust-strip { flex-wrap: wrap; justify-content: flex-start; row-gap: 10px; padding-bottom: 19px; }
  .trust-strip span { flex-shrink: 1; }
  .feature-grid, .process, .stats-grid, .dash-grid { grid-template-columns: 1fr; }
  .feature-card { min-height: 245px; }
  .process-item, .process-item + .process-item { min-height: 0; padding: 24px 0; border: 0; border-top: 1px solid var(--line); }
  .process-item:first-child { border-top: 0; }
  .process-item p { margin-bottom: 18px; }
  .cta-panel { align-items: flex-start; flex-direction: column; padding: 31px 25px; }
  .cta-panel .button { width: 100%; }
  .footer-main { grid-template-columns: 1fr; justify-items: start; gap: 15px; padding-block: 26px; }
  .footer-status, .footer-links { justify-self: start; }
  .footer-bottom { align-items: flex-start; flex-direction: column; gap: 6px; }
  .auth-shell, .dashboard { padding-top: 48px; }
  .auth-panel h1, .dash-head h1 { font-size: clamp(2.75rem, 13vw, 4.3rem); }
  .form-card, .panel { padding: 22px 18px; border-radius: 13px; }
  .dash-head { align-items: flex-start; flex-direction: column; }
  .dash-actions { width: 100%; }
  .dash-actions .button { flex: 1; }
  .balance-main { padding: 25px 22px; }
  .balance-aside { grid-template-columns: minmax(0, 1fr); }
  .balance-aside > div + div { border-top: 1px solid rgba(255, 255, 255, 0.1); border-left: 0; }
  .inline-form { align-items: stretch; flex-direction: column; }
  .inline-form .button { width: 100%; }
  .list-row { align-items: flex-start; }
  .row-actions { align-items: flex-end; flex-direction: column; }
  .list-row b, .list-row small { white-space: normal; overflow-wrap: anywhere; }
  .topup-content { padding: 18px 15px; }
  .help-strip { align-items: flex-start; flex-wrap: wrap; }
  .help-strip .text-link { width: 100%; margin: 3px 0 0 44px; }
  .page-hero { padding-top: 52px; }
  .page-hero h1 { font-size: clamp(2.8rem, 14vw, 4.5rem); }
  .status-codes { grid-template-columns: 1fr; }
  .status-codes span + span, .status-codes span:nth-child(4), .status-codes span:nth-child(5) { border-top: 1px solid var(--line); border-left: 0; }
  .payment-details { grid-template-columns: 1fr; }
  .payment-details span:nth-child(even) { border-left: 0; }
  .payment-actions { align-items: stretch; flex-direction: column; }
  .payment-actions .button { width: 100%; }
  .payment-actions > span { max-width: none; text-align: left; }
  .key-card { padding: 31px 19px; }
  .security-checklist { grid-template-columns: 1fr; }
  .security-checklist span + span { border-top: 1px solid var(--line); border-left: 0; }
  .key-next-step { align-items: center; flex-direction: column; }
  .error-card { padding: 42px 22px; }
}

@media (max-width: 430px) {
  .eyebrow-row .live-chip, .eyebrow-row .account-state, .docs-version { display: none; }
  .demo-top { grid-template-columns: auto 1fr; }
  .demo-top > span:nth-child(2) { justify-self: end; }
  .window-secure { display: none; }
  .demo-label { align-items: flex-start; flex-direction: column; gap: 6px; }
  .code-line { font-size: 0.64rem; }
  .demo-side-note { width: 175px; }
  .dash-actions { flex-direction: column; }
  .balance-aside > div { padding: 20px; }
  .panel-head { align-items: flex-start; flex-direction: column; }
  .panel-count, .secure-label { align-self: flex-start; }
  .row-icon { display: none; }
  .row-actions .status-badge { display: none; }
  .subsection-head { display: none; }
}

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

/* Final component normalization: shared controls, cards and mobile navigation. */
:root {
  --space-1: 4px; --space-2: 8px; --space-3: 12px; --space-4: 16px;
  --space-5: 20px; --space-6: 24px; --space-8: 32px; --space-10: 40px;
  --control-height: 45px;
}
.nav-toggle { display: none; width: 44px; height: 44px; align-items: center; justify-content: center; flex-direction: column; gap: 5px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--paper); color: var(--ink); cursor: pointer; }
.nav-toggle span { display: block; width: 20px; height: 2px; border-radius: 99px; background: currentColor; transition: transform 160ms ease, opacity 160ms ease; }
.nav-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.field input, .field select, .text-input, .inline-form input { min-height: var(--control-height); }
.form-card, .panel, .feature-card, .stat-card, .api-chip, .error-card { box-shadow: var(--shadow-soft); }
.button, .field input, .field select, .text-input, .inline-form input { transition-duration: 160ms; }
@media (max-width: 700px) {
  .nav-toggle { display: flex; margin-left: auto; }
  .nav-links { position: absolute; top: calc(100% + 1px); right: 15px; left: 15px; display: none; align-items: stretch; flex-direction: column; gap: 4px; padding: 12px; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--paper); box-shadow: var(--shadow); }
  .nav-links.is-open { display: flex; }
  .nav-links .nav-link:not(.nav-cta), .nav-account { display: flex; }
  .nav-link { min-height: 44px; align-items: center; padding: 10px 12px; border-radius: var(--radius-sm); }
  .nav-link:hover, .nav-link.is-active { background: var(--accent-soft); }
  .nav-link::after { display: none; }
  .nav-account { padding: 10px 12px; }
  .nav-user { max-width: none; }
  .nav-logout-form, .nav-cta { width: 100%; }
  .nav-logout-form .button { width: 100%; }
  .nav-cta { min-height: 44px; }
}
