:root {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #f7f8fb;
  background: #0b0d12;
  font-synthesis: none;
  --panel: #151821;
  --panel-soft: #1c202b;
  --line: #303543;
  --muted: #a8afbd;
  --orange: #ff6b35;
  --orange-dark: #d84d1c;
  --green: #46d19a;
  --yellow: #f8c35a;
  --red: #ff7a85;
}

* { box-sizing: border-box; }
html { min-width: 320px; background: #0b0d12; }
body { margin: 0; min-height: 100vh; background: radial-gradient(circle at 82% 8%, #262131 0, transparent 32rem), #0b0d12; }
a { color: inherit; }
button, input, select, textarea { font: inherit; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  padding: 0 5vw;
  border-bottom: 1px solid rgba(255,255,255,.1);
  background: rgba(11,13,18,.88);
  backdrop-filter: blur(18px);
}
.brand { display: inline-flex; align-items: center; gap: .7rem; min-height: 44px; text-decoration: none; font-weight: 760; letter-spacing: -.02em; }
.brand-mark { display: grid; place-items: center; width: 38px; height: 38px; border: 2px solid var(--orange); border-radius: 11px; color: var(--orange); font-size: .78rem; }
nav { display: flex; align-items: center; gap: .45rem; }
nav a, .link-button { display: inline-flex; align-items: center; min-height: 44px; padding: .55rem .75rem; color: var(--muted); text-decoration: none; border: 0; background: none; cursor: pointer; }
nav a:hover, .link-button:hover { color: #fff; }
nav form { margin: 0; }

main { min-height: calc(100vh - 144px); }
.shell { width: min(1180px, 90vw); margin: 0 auto; }
.narrow { width: min(560px, 90vw); margin: 0 auto; }
.hero { padding: clamp(4rem, 9vw, 8rem) 0 3rem; }
.eyebrow { color: var(--orange); font-size: .78rem; font-weight: 760; letter-spacing: .16em; text-transform: uppercase; }
h1 { margin: .5rem 0 1rem; max-width: 850px; font-size: clamp(2.5rem, 7vw, 5.8rem); line-height: .97; letter-spacing: -.065em; }
h2 { margin: 0 0 .65rem; font-size: clamp(1.65rem, 3vw, 2.4rem); letter-spacing: -.04em; }
h3 { margin: 0 0 .4rem; }
p { color: var(--muted); line-height: 1.65; }
.lead { max-width: 700px; font-size: 1.15rem; }
.actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.5rem; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: .72rem 1.05rem; border: 1px solid transparent; border-radius: 10px; background: var(--orange); color: #111; font-weight: 760; text-decoration: none; cursor: pointer; }
.button:hover { background: #ff8257; }
.button.secondary { border-color: var(--line); background: var(--panel); color: #fff; }
.button.danger { background: transparent; border-color: #79434a; color: #ffb2b9; }
.button[disabled] { opacity: .5; cursor: not-allowed; }

.panel { min-width: 0; padding: clamp(1.25rem, 3vw, 2rem); border: 1px solid var(--line); border-radius: 18px; background: rgba(21,24,33,.92); box-shadow: 0 25px 80px rgba(0,0,0,.28); }
.auth-panel { margin-top: clamp(3rem, 8vw, 7rem); }
.field { display: grid; gap: .45rem; margin: 1rem 0; }
.field-help { color: var(--muted); font-size: .82rem; line-height: 1.45; }
.field-error { color: var(--red); }
.consent-check { display: grid; grid-template-columns: 22px minmax(0, 1fr); align-items: start; gap: .7rem; margin: 1.2rem 0; color: var(--muted); font-size: .9rem; font-weight: 500; line-height: 1.55; }
.consent-check input { width: 20px; min-height: 20px; height: 20px; margin: .15rem 0 0; padding: 0; accent-color: var(--orange); }
.consent-check a { color: #fff; font-weight: 750; }
.email-suggestion { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem; margin: 0; color: #ffd0bd; font-size: .9rem; }
.email-suggestion[hidden] { display: none; }
.email-suggestion button { min-height: 44px; padding: .35rem 0; border: 0; background: none; color: #fff; font-weight: 750; text-decoration: underline; text-decoration-color: var(--orange); text-underline-offset: 3px; cursor: pointer; }
label { color: #d9dde5; font-size: .9rem; font-weight: 650; }
input, select, textarea { width: 100%; min-height: 46px; padding: .7rem .8rem; border: 1px solid var(--line); border-radius: 9px; background: #0e1117; color: #fff; }
input:focus, select:focus, textarea:focus { outline: 2px solid rgba(255,107,53,.5); border-color: var(--orange); }
input[aria-invalid="true"] { border-color: var(--red); }
.form-help { margin-top: 1.25rem; font-size: .92rem; }
.notice { padding: .85rem 1rem; border: 1px solid #745f2a; border-radius: 10px; background: #2d2615; color: #ffe3a4; }
.notice.error { border-color: #713b43; background: #2c171b; color: #ffbdc3; }
.notice.success { border-color: #2f7358; background: #12271f; color: #a8f4d5; }

.dashboard-head { display: flex; justify-content: space-between; gap: 1rem; align-items: end; padding: 3.5rem 0 1.5rem; }
.dashboard-head h1 { font-size: clamp(2.2rem, 5vw, 4.2rem); }
.grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 1rem; padding-bottom: 3rem; }
.grid > * { min-width: 0; }
.span-4 { grid-column: span 4; }
.span-5 { grid-column: span 5; }
.span-6 { grid-column: span 6; }
.span-7 { grid-column: span 7; }
.span-8 { grid-column: span 8; }
.span-12 { grid-column: span 12; }
.account-card { display: flex; flex-direction: column; align-items: flex-start; }
.account-card > form { width: 100%; }
.account-identity { max-width: 100%; font-size: clamp(1.45rem, 2.7vw, 2.2rem); overflow-wrap: anywhere; word-break: break-word; }
.stat { font-size: 2.3rem; font-weight: 780; letter-spacing: -.04em; }
.metric-label { color: var(--muted); font-size: .85rem; text-transform: uppercase; letter-spacing: .08em; }
.badge { display: inline-flex; align-items: center; min-height: 30px; padding: .25rem .65rem; border-radius: 999px; background: #2d2514; color: var(--yellow); font-size: .82rem; font-weight: 700; }
.badge.active { background: #123226; color: var(--green); }
.badge.founding { margin-bottom: .4rem; background: #392517; color: #ffbd9d; }
.badge.blocked { background: #34181d; color: var(--red); }
.plan-option { display: flex; flex-direction: column; padding: 1.15rem; border: 1px solid var(--line); border-radius: 14px; background: rgba(11,13,18,.42); }
.plan-price { margin: auto 0 0; color: #fff; font-size: 1.35rem; }
.plan-annual { margin: .1rem 0 .9rem; }
.plan-actions { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; }
.plan-actions form, .plan-actions .button { width: 100%; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: .8rem .65rem; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; }
th { color: var(--muted); font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; }
.empty { padding: 2rem; border: 1px dashed var(--line); border-radius: 12px; text-align: center; }
code { color: #ffd0bd; overflow-wrap: anywhere; }
footer { display: flex; justify-content: space-between; align-items: center; min-height: 72px; padding: 0 5vw; color: var(--muted); border-top: 1px solid rgba(255,255,255,.08); }
footer a { display: inline-flex; align-items: center; min-height: 44px; }

@media (max-width: 760px) {
  .site-header { flex-wrap: wrap; gap: .2rem; padding: .65rem 4vw; }
  .site-header nav { width: 100%; justify-content: space-between; gap: .1rem; }
  .site-header nav a, .site-header .link-button { padding: .45rem .35rem; font-size: .9rem; }
  nav a:first-child { display: none; }
  .dashboard-head { align-items: flex-start; flex-direction: column; }
  .span-4, .span-5, .span-6, .span-7, .span-8 { grid-column: span 12; }
  .plan-actions { grid-template-columns: 1fr; }
  footer { gap: 1rem; }
}
