@charset "UTF-8";

:root {
  color-scheme: dark;
  --bg: #111211;
  --surface: #191b19;
  --surface-raised: #20231f;
  --ink: #f0eee5;
  --muted: #a5aa9e;
  --line: #33392f;
  --rose: #e6a0b7;
  --mint: #b9d6b7;
  --danger: #ffadb0;
  --radius: 18px;
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 100px; }
body { margin: 0; min-width: 320px; background: var(--bg); color: var(--ink); line-height: 1.6; }
body::before { position: fixed; z-index: -1; inset: 0; content: ""; pointer-events: none; background: radial-gradient(ellipse at 80% 8%, #73896a0b, transparent 48%); }
::selection { color: var(--bg); background: var(--rose); }
a { color: inherit; text-underline-offset: .22em; }
button, input, select, textarea { font: inherit; }
button, a, input, select, textarea { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button:disabled, input:disabled, select:disabled { cursor: not-allowed; opacity: .5; }
button:disabled:hover { transform: none; }
button, .button { touch-action: manipulation; }
:focus-visible { outline: 2px solid var(--mint); outline-offset: 5px; }
img, svg { max-width: 100%; }
img { display: block; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { line-height: 1.12; font-weight: 500; text-wrap: balance; }
h1, h2 { font-family: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Georgia, serif; letter-spacing: -.045em; }
h1 { font-size: clamp(3.6rem, 7.6vw, 7.3rem); margin-bottom: 28px; }
h2 { font-size: clamp(2.3rem, 4.3vw, 4rem); margin-bottom: 24px; }
h3 { font-size: 1.22rem; letter-spacing: -.02em; margin-bottom: 12px; }
p { margin-bottom: 20px; }
small { font-size: .8rem; }
code { border: 1px solid var(--line); border-radius: 5px; padding: 2px 6px; font-size: .85em; overflow-wrap: anywhere; }
hr { border: 0; border-top: 1px solid var(--line); margin: 28px 0; }
[hidden] { display: none !important; }

.shell { width: min(1240px, calc(100% - 96px)); margin-inline: auto; }
.nav { display: flex; align-items: center; gap: 32px; min-height: 104px; border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; gap: 10px; font-size: 1.04rem; font-weight: 650; letter-spacing: -.045em; text-decoration: none; white-space: nowrap; }
.brand-icon { display: inline-grid; place-items: center; width: 32px; height: 32px; color: var(--rose); font-size: 2rem; font-weight: 400; line-height: 1; }
.brand-icon img, .brand-icon svg { width: 32px; height: 32px; }
.nav-links { display: flex; align-items: center; gap: 28px; margin-inline: auto; }
.nav-links a { color: var(--muted); font-size: .84rem; text-decoration: none; transition: color .18s ease; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--ink); }
.nav-actions { display: flex; gap: 10px; align-items: center; margin-left: auto; }
.button, button { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 46px; border: 1px solid var(--line); border-radius: 7px; padding: 11px 21px; background: var(--surface); color: var(--ink); font-size: .85rem; font-weight: 600; line-height: 1.35; text-decoration: none; transition: background .18s ease, border-color .18s ease, transform .18s ease; }
.button:hover, button:hover { background: #2a2e27; border-color: #525c4a; }
.button:active, button:active { transform: translateY(1px); }
.primary, button[type="submit"] { background: var(--mint); border-color: var(--mint); color: #152414; }
.primary:hover, button[type="submit"]:hover { background: #cde5cb; border-color: #cde5cb; }
.secondary { background: transparent; border-color: #52584b; }
.ghost { background: transparent; border-color: transparent; padding-inline: 13px; color: var(--muted); }
.ghost:hover { background: var(--surface); border-color: transparent; color: var(--ink); }
.button svg, button svg { width: 16px; height: 16px; }

.hero { min-height: 690px; display: grid; grid-template-columns: 1.05fr 1fr; align-items: center; gap: 24px; padding-block: 76px 90px; position: relative; }
.eyebrow { display: flex; align-items: center; gap: 12px; color: var(--mint); font-size: .66rem; line-height: 1.5; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; margin-bottom: 24px; }
.eyebrow::before { content: ""; height: 1px; width: 28px; flex: 0 0 28px; background: currentColor; }
.hero-copy { position: relative; z-index: 1; padding-top: 8px; }
.hero-copy > p:not(.eyebrow):not(.status-line) { max-width: 440px; font-size: 1rem; color: var(--muted); line-height: 1.85; }
.hero-copy em, h1 em, h2 em { color: var(--rose); font-weight: 400; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-block: 32px 24px; }
.hero-art { width: 100%; min-width: 0; aspect-ratio: 1; object-fit: contain; position: relative; }
img.hero-art { filter: drop-shadow(0 28px 45px #0003); }
.hero-art img { width: 100%; height: 100%; object-fit: contain; }
.status-line { color: var(--muted); display: flex; align-items: center; gap: 9px; font-size: .73rem; }
.status-line::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--mint); flex-shrink: 0; }
.section { border-top: 1px solid var(--line); padding-block: 80px; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 48px; margin-bottom: 44px; }
.section-head h2 { max-width: 650px; margin: 0; }
.section-head > p { max-width: 330px; color: var(--muted); font-size: .91rem; margin: 0 0 4px; }
.feature-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.feature { min-height: 230px; padding: 32px; background: #191b1966; }
.feature + .feature { border-left: 1px solid var(--line); }
.feature p { color: var(--muted); font-size: .88rem; margin-bottom: 0; }
.feature .number { display: block; color: var(--rose); font-size: .69rem; font-variant-numeric: tabular-nums; letter-spacing: .14em; margin-bottom: 35px; }
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; }
.step { position: relative; padding-top: 24px; border-top: 1px solid #4c5645; }
.step .number { color: var(--mint); font-size: .72rem; display: block; margin-bottom: 18px; }
.step p { color: var(--muted); font-size: .88rem; }
.footer { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 24px; border-top: 1px solid var(--line); padding-block: 32px; color: var(--muted); font-size: .75rem; }
.footer .brand { color: var(--ink); }
.footer a { text-decoration: none; }
.footer a:hover { color: var(--rose); }
.footer > div { display: flex; flex-wrap: wrap; align-items: center; gap: 24px; }

.auth-layout { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 8vw, 120px); min-height: 690px; align-items: center; padding-block: 64px 96px; }
.auth-aside { align-self: stretch; display: flex; flex-direction: column; justify-content: center; padding: 40px 0; position: relative; }
.auth-aside h1 { font-size: clamp(3.4rem, 5.5vw, 5.5rem); }
.auth-aside p:not(.eyebrow) { max-width: 380px; color: var(--muted); }
.auth-aside img { max-width: 230px; margin: 12px auto 0; }
.auth-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(24px, 3.8vw, 42px); width: 100%; }
.auth-card h1, .auth-card h2 { font-size: 2.2rem; margin-bottom: 12px; }
.auth-card > p { color: var(--muted); font-size: .87rem; }
.auth-card form { margin-top: 28px; }
.auth-card form > .button, .auth-card form > button { width: 100%; margin-top: 8px; }
.auth-card > p:last-child { margin-top: 24px; margin-bottom: 0; text-align: center; font-size: .8rem; }
.auth-card a:not(.button) { color: var(--mint); }
.field { display: flex; flex-direction: column; gap: 8px; min-width: 0; margin-bottom: 20px; }
.field label, label.field { color: #d7dbd0; font-size: .8rem; font-weight: 500; }
.field small { color: var(--muted); font-size: .73rem; font-weight: 400; line-height: 1.5; }
.field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
input:not([type="checkbox"]):not([type="radio"]), select, textarea { width: 100%; min-height: 46px; padding: 11px 13px; border: 1px solid #41483b; border-radius: 6px; background: #111410; color: var(--ink); font-size: .88rem; line-height: 1.45; outline: none; transition: border-color .18s ease, box-shadow .18s ease; }
input::placeholder, textarea::placeholder { color: #777f70; opacity: 1; }
input:focus, select:focus, textarea:focus { border-color: var(--mint); box-shadow: 0 0 0 3px #b9d6b712; }
input[aria-invalid="true"], textarea[aria-invalid="true"] { border-color: var(--danger); }
input:-webkit-autofill { -webkit-text-fill-color: var(--ink); box-shadow: 0 0 0 1000px #111410 inset; caret-color: var(--ink); }
textarea { resize: vertical; min-height: 140px; font-family: "Cascadia Code", Consolas, monospace; font-size: .81rem; tab-size: 2; }
input[type="checkbox"], input[type="radio"] { width: 17px; height: 17px; flex: 0 0 17px; accent-color: var(--mint); margin: 3px 0 0; }
.check { display: flex; align-items: flex-start; gap: 11px; margin-block: 18px 24px; color: var(--muted); font-size: .78rem; }
.notice { border: 1px solid #48523e; background: #b9d6b709; border-radius: 8px; color: #cdd6c5; padding: 14px 16px; margin-block: 18px; font-size: .82rem; overflow-wrap: anywhere; }
.notice p:last-child { margin-bottom: 0; }
.error { color: var(--danger); }
.notice.error, .error.notice { background: #e6a0b70b; border-color: #70434a; }
.success { color: var(--mint); }
.notice.success { border-color: #486241; background: #b9d6b709; }
.muted { color: var(--muted); }

.dashboard-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; padding-block: 56px 32px; }
.dashboard-head h1 { font-size: clamp(2.6rem, 4.5vw, 4.2rem); margin-bottom: 10px; }
.dashboard-head p { color: var(--muted); margin-bottom: 0; font-size: .87rem; }
.dashboard-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; padding-bottom: 70px; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; min-width: 0; }
.panel > h2 { font-family: inherit; font-size: 1.1rem; letter-spacing: -.02em; margin-bottom: 20px; }
.panel > p { font-size: .86rem; color: var(--muted); }
.panel > :last-child { margin-bottom: 0; }
.panel-wide { grid-column: 1 / -1; }
.metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-bottom: 24px; }
.metric { border: 1px solid var(--line); background: var(--surface); border-radius: 12px; padding: 22px; min-width: 0; }
.metric > span, .metric > small, .metric > p { color: var(--muted); font-size: .76rem; margin-bottom: 6px; display: block; }
.metric > strong { display: block; font-size: 1.6rem; font-weight: 500; overflow-wrap: anywhere; }
.table-wrap { width: 100%; overflow-x: auto; scrollbar-color: #4b5544 transparent; }
.table { width: 100%; border-collapse: collapse; text-align: left; font-size: .8rem; }
.table th { color: var(--muted); font-weight: 500; font-size: .71rem; white-space: nowrap; }
.table th, .table td { padding: 15px 13px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table th:first-child, .table td:first-child { padding-left: 0; }
.table th:last-child, .table td:last-child { padding-right: 0; }
.table tbody tr:last-child td { border-bottom: 0; }
.table td { max-width: 280px; overflow-wrap: anywhere; }
.table td small { color: var(--muted); display: block; margin-top: 3px; }
.table .button, .table button { min-height: 34px; padding: 7px 10px; font-size: .7rem; }
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 4px 9px; border: 1px solid #45543e; border-radius: 100px; color: var(--mint); background: #b9d6b709; font-size: .67rem; font-weight: 500; white-space: nowrap; }
.badge.error { border-color: #70434a; color: var(--danger); background: #e6a0b709; }
.badge.muted { color: var(--muted); border-color: var(--line); background: transparent; }
.actions { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.config-list { display: grid; gap: 12px; margin-block: 18px; }
.config-item { display: flex; align-items: center; justify-content: space-between; gap: 20px; background: #111410; border: 1px solid var(--line); border-radius: 9px; padding: 17px 18px; }
.config-item strong { display: block; font-size: .86rem; font-weight: 500; overflow-wrap: anywhere; }
.config-item small, .config-item p { display: block; color: var(--muted); font-size: .72rem; margin: 4px 0 0; }
.config-item .button, .config-item button { min-height: 35px; padding: 7px 10px; font-size: .73rem; }
.empty { border: 1px dashed #424a3c; border-radius: 10px; padding: 36px 24px; text-align: center; color: var(--muted); font-size: .86rem; }
.tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-block: 0 24px; padding: 5px; width: fit-content; max-width: 100%; border: 1px solid var(--line); background: #0d100c; border-radius: 9px; }
.tabs a, .tabs button { min-height: 38px; border: 0; border-radius: 5px; background: transparent; padding: 8px 15px; font-size: .8rem; color: var(--muted); text-decoration: none; }
.tabs [aria-selected="true"], .tabs [aria-current="page"], .tabs .active { color: var(--ink); background: var(--surface-raised); }
.legal { max-width: 780px; margin-inline: auto; padding-block: 64px 90px; overflow-wrap: anywhere; }
.legal h1 { font-size: clamp(2.8rem, 6vw, 4.8rem); }
.legal h2 { font-family: inherit; font-size: 1.25rem; margin-top: 36px; letter-spacing: -.02em; }
.legal h3 { font-size: 1rem; margin-top: 24px; }
.legal p, .legal li { color: #b8bdb0; font-size: .92rem; line-height: 1.85; }
.legal a { color: var(--mint); }
.legal ul, .legal ol { padding-left: 22px; }
.legal li + li { margin-top: 8px; }
.spinner { display: inline-block; width: 17px; height: 17px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .75s linear infinite; }
.toast { position: fixed; z-index: 30; right: 24px; bottom: 24px; width: max-content; max-width: min(440px, calc(100vw - 48px)); padding: 16px 20px; border: 1px solid #4d6244; border-radius: 10px; background: #20281e; box-shadow: 0 12px 48px #0006; color: var(--ink); font-size: .86rem; overflow-wrap: anywhere; }
.toast.error { border-color: #70434a; background: #2c1e21; color: var(--danger); }
@keyframes spin { to { transform: rotate(360deg); } }

@media (min-width: 1500px) { .hero { min-height: 760px; } }
@media (max-width: 1000px) {
  .shell { width: calc(100% - 56px); }
  .nav { gap: 20px; }
  .nav-links { gap: 18px; }
  .nav-links a { font-size: .78rem; }
  .nav-actions .button, .nav-actions button { padding-inline: 14px; }
  .hero { min-height: 580px; padding-block: 60px; }
  .feature { padding: 26px; }
  .section-head { gap: 28px; }
  .auth-layout { gap: 40px; }
}
@media (max-width: 760px) {
  .shell { width: calc(100% - 40px); }
  .nav { min-height: 84px; gap: 14px; flex-wrap: wrap; padding-block: 18px; }
  .brand { font-size: .96rem; }
  .nav-links { order: 3; width: 100%; justify-content: flex-start; gap: 24px; padding-top: 4px; overflow-x: auto; }
  .nav-links a { white-space: nowrap; }
  .nav-actions { gap: 3px; }
  .nav-actions .button, .nav-actions button { font-size: .75rem; min-height: 39px; padding: 9px 12px; }
  .hero { grid-template-columns: 1fr; padding-block: 56px 40px; gap: 0; min-height: 0; }
  .hero-copy { max-width: 560px; }
  .hero-copy h1 { max-width: 580px; font-size: clamp(3.7rem, 11vw, 5.6rem); }
  .hero-copy > p:not(.eyebrow):not(.status-line) { max-width: 460px; }
  .hero-art { max-width: 460px; margin: 20px auto -4px; }
  .eyebrow { font-size: .61rem; }
  .section { padding-block: 52px; }
  .section-head { display: block; margin-bottom: 30px; }
  .section-head h2 { margin-bottom: 18px; }
  .section-head > p { max-width: 440px; }
  .feature-grid { grid-template-columns: 1fr; }
  .feature { min-height: 0; padding: 27px; }
  .feature + .feature { border-left: 0; border-top: 1px solid var(--line); }
  .feature .number { margin-bottom: 22px; }
  .steps { grid-template-columns: 1fr; gap: 22px; }
  .step p { max-width: 480px; margin-bottom: 4px; }
  .footer { align-items: flex-start; padding-block: 27px; gap: 20px; }
  .footer > div { gap: 17px; }
  .auth-layout { grid-template-columns: 1fr; gap: 24px; min-height: 0; padding-block: 44px 64px; }
  .auth-aside { padding: 0; }
  .auth-aside h1 { font-size: 3.3rem; max-width: 490px; margin-bottom: 18px; }
  .auth-aside img { display: none; }
  .auth-card { max-width: 560px; }
  .dashboard-head { padding-block: 38px 26px; }
  .dashboard-grid { grid-template-columns: 1fr; gap: 18px; padding-bottom: 48px; }
  .metrics { gap: 10px; }
  .metric { padding: 16px 13px; }
  .metric > strong { font-size: 1.22rem; }
  .metric > span, .metric > small, .metric > p { font-size: .69rem; }
  .panel { padding: 23px; }
  .config-item { align-items: flex-start; flex-wrap: wrap; gap: 14px; }
  .legal { padding-block: 42px 64px; }
  .legal h1 { font-size: 3rem; }
}
@media (max-width: 420px) {
  .shell { width: calc(100% - 32px); }
  .nav .brand { gap: 5px; font-size: .86rem; }
  .brand-icon { width: 26px; height: 26px; font-size: 1.6rem; }
  .nav-actions .ghost { padding-inline: 7px; }
  .hero-copy h1 { font-size: 3.4rem; }
  .hero-actions { align-items: stretch; }
  .hero-actions .button { flex: 1 1 auto; }
  .auth-card { padding: 24px 20px; }
  .field-row { grid-template-columns: 1fr; gap: 0; }
  .metrics { grid-template-columns: 1fr; }
  .metric { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
  .metric > span, .metric > small, .metric > p { margin: 0; }
  .panel { padding: 20px; }
}
.key-form { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 16px; margin-block: 20px; }
.key-form .field { flex: 1 1 240px; margin: 0; }
.key-form .button { flex: 0 0 auto; }
.key-result { margin-block: 24px; padding: 20px; border: 1px solid var(--line); border-radius: 12px; }
.key-result textarea { font-family: ui-monospace, monospace; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
