:root {
  --blue: #1a56db;
  --blue-dark: #123ea8;
  --ink: #0f172a;
  --muted: #475569;
  --line: #e2e8f0;
  --paper: #f8fafc;
  --gold: #d97706;
  --gold-dark: #b45309;
  --white: #ffffff;
  --danger: #b91c1c;
  --ok: #047857;
  --shadow: 0 18px 50px rgba(15, 23, 42, 0.08);
  --sans: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--white);
  line-height: 1.55;
}
a { color: var(--blue); text-decoration: none; }
img { max-width: 100%; display: block; }
.wrap { width: min(1120px, calc(100% - 2rem)); margin: 0 auto; }
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(255,255,255,.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 72px; gap: 1rem;
}
.brand { display: flex; align-items: center; gap: .65rem; color: var(--ink); font-weight: 700; }
.brand img { width: 42px; height: 42px; }
.nav-links { display: flex; align-items: center; gap: .35rem; flex-wrap: wrap; justify-content: flex-end; }
.nav-links a { flex-shrink: 0; }
.nav-links a, .lang-btn, .btn {
  border: 0; cursor: pointer; font: inherit;
}
.nav-links a {
  color: var(--ink); padding: .45rem .7rem; border-radius: 999px; font-weight: 600;
}
.nav-links a.active, .nav-links a:hover { background: #e8efff; color: var(--blue-dark); }
.lang { display: flex; gap: .25rem; align-items: center; }
.lang-btn {
  background: transparent; border: 1px solid var(--line); border-radius: 999px;
  padding: .2rem .45rem; display: inline-flex; align-items: center; gap: .3rem; color: var(--ink);
}
.lang-btn.active { border-color: var(--blue); background: #e8efff; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--blue); color: white; border-radius: 10px;
  padding: .7rem 1rem; font-weight: 700;
}
.btn:hover { background: var(--blue-dark); }
.btn-gold { background: var(--gold); color: #1f1300; }
.btn-gold:hover { background: var(--gold-dark); color: white; }
.btn-ghost { background: transparent; color: var(--ink); border: 1px solid var(--line); }
.btn-danger { background: var(--danger); }
.menu-toggle { display: none; background: transparent; border: 1px solid var(--line); border-radius: 8px; padding: .4rem .55rem; }
.hero {
  background:
    radial-gradient(800px 300px at 80% 0%, rgba(217,119,6,.25), transparent 60%),
    linear-gradient(160deg, #0b1b3a 0%, #1a56db 70%, #123ea8 100%);
  color: white; padding: 5.5rem 0 4.5rem;
}
.kicker { letter-spacing: .08em; text-transform: uppercase; font-size: .78rem; color: #fcd34d; font-weight: 700; }
.hero h1 { font-size: clamp(2rem, 4vw, 3.4rem); line-height: 1.15; margin: .4rem 0 1rem; max-width: 16ch; }
.hero p { max-width: 62ch; color: #e2e8f0; }
.hero-actions { display: flex; gap: .75rem; flex-wrap: wrap; margin: 1.4rem 0; }
.points { display: grid; gap: .6rem; padding: 0; margin: 1.5rem 0 0; list-style: none; }
.points li { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.12); border-radius: 12px; padding: .75rem .9rem; }
.section { padding: 4rem 0; }
.section.alt { background: var(--paper); }
.grid-3, .grid-2, .stats { display: grid; gap: 1rem; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: 1.2fr .8fr; }
.card, .panel {
  background: white; border: 1px solid var(--line); border-radius: 16px; padding: 1.1rem 1.2rem; box-shadow: var(--shadow);
}
.card h3 { margin-top: 0; }
.steps { counter-reset: step; display: grid; gap: .8rem; }
.steps li { list-style: none; background: white; border-radius: 12px; padding: .9rem 1rem .9rem 3rem; position: relative; border: 1px solid var(--line); }
.steps { padding: 0; }
.steps li::before {
  counter-increment: step; content: counter(step);
  position: absolute; left: .8rem; top: .85rem;
  width: 1.5rem; height: 1.5rem; border-radius: 50%;
  background: var(--gold); color: #1f1300; font-weight: 800;
  display: grid; place-items: center; font-size: .85rem;
}
.site-footer { background: #0f172a; color: #cbd5e1; padding: 2rem 0; }
.site-footer a { color: #fcd34d; }
.footer-row { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.flash { padding: .8rem 1rem; border-radius: 12px; margin: 1rem 0; }
.flash.success { background: #ecfdf5; color: var(--ok); }
.flash.error { background: #fef2f2; color: var(--danger); }
label { display: block; font-weight: 650; margin-bottom: .3rem; }
input, select, textarea {
  width: 100%; padding: .7rem .8rem; border: 1px solid #cbd5e1; border-radius: 10px;
  font: inherit; background: white; color: var(--ink);
}
textarea { min-height: 140px; resize: vertical; }
.field { margin-bottom: .9rem; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; }
.auth-shell, .page-shell { width: min(920px, calc(100% - 2rem)); margin: 2.5rem auto 4rem; }
.auth-card { width: min(440px, 100%); margin: 6vh auto; }
.muted { color: var(--muted); }
.badge {
  display: inline-flex; align-items: center; border-radius: 999px; padding: .15rem .55rem;
  font-size: .75rem; font-weight: 700; background: #e8efff; color: var(--blue-dark);
}
.badge.gold { background: #ffedd5; color: #9a3412; }
.badge.ok { background: #d1fae5; color: #065f46; }
.badge.warn { background: #fef3c7; color: #92400e; }
.badge.muted { background: #f1f5f9; color: #334155; }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: .7rem .5rem; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-size: .78rem; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.app-body { min-height: 100vh; background: #f1f5f9; display: grid; grid-template-columns: 250px 1fr; }
.sidebar {
  background: #0f172a; color: white; padding: 1.1rem .9rem; display: flex; flex-direction: column; gap: .4rem;
}
.sidebar a { color: #e2e8f0; padding: .55rem .7rem; border-radius: 10px; display: block; font-weight: 600; }
.sidebar a.active, .sidebar a:hover { background: rgba(255,255,255,.08); color: white; }
.side-brand { display: flex; gap: .6rem; align-items: center; color: white; font-weight: 800; margin-bottom: .8rem; }
.side-brand img { width: 36px; height: 36px; }
.app-main { padding: 1.2rem 1.4rem 3rem; }
.topbar { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: 1rem; }
.stats { grid-template-columns: repeat(4, 1fr); margin: 1rem 0; }
.stat strong { display: block; font-size: 1.35rem; }
.filters { display: flex; flex-wrap: wrap; gap: .5rem; align-items: end; margin-bottom: 1rem; }
.filters .field { margin: 0; min-width: 140px; }
.stack { display: grid; gap: 1rem; }
.timeline { list-style: none; padding: 0; margin: 0; }
.timeline li { border-left: 3px solid var(--gold); padding: .2rem 0 .8rem .8rem; }
.message { background: #f8fafc; border-radius: 12px; padding: .7rem .8rem; margin-bottom: .5rem; }
.pager { display: flex; gap: .5rem; margin-top: 1rem; }
.prose, .prose p { white-space: pre-wrap; }
.check { display: flex; gap: .5rem; align-items: center; }
.check input { width: auto; }
.btn-light { background: transparent; color: white; border: 1px solid rgba(255,255,255,.45); }
.sidebar-foot { margin-top: auto; }
.sidebar .muted { color: #e2e8f0; }
.sidebar .btn-ghost {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.72);
  width: 100%;
}
.sidebar .btn-ghost:hover { background: #ffffff; color: #0f172a; }
button:disabled, .btn:disabled { opacity: 0.55; cursor: not-allowed; }
.btn-nav { background: #12325a; color: #fff; border-radius: 10px; white-space: nowrap; flex-shrink: 0; }
.btn-nav:hover { background: #0b2340; color: #fff; }
.hero {
  background:
    linear-gradient(100deg, rgba(8, 24, 48, 0.88), rgba(18, 50, 90, 0.72)),
    radial-gradient(900px 420px at 80% 40%, rgba(255,255,255,.18), transparent 55%),
    #16375f;
  min-height: 560px;
  display: flex;
  align-items: center;
}
.hero-copy { max-width: 760px; padding: 4.5rem 0; }
.hero h1, .about-hero h1, .center-copy h1, .center-copy h2, .legal-copy h1 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.hero h1 { color: #fff; font-size: clamp(2.4rem, 5vw, 4rem); max-width: 16ch; }
.hero p { color: #e8eef7; font-size: 1.05rem; }
.pill-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: .75rem; margin: 1.4rem 0 1.2rem; }
.pill-row span {
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.28);
  color: #fff;
  border-radius: 14px;
  padding: .85rem .9rem;
  font-size: .92rem;
}
.center-copy { text-align: center; }
.center-copy .grid-3, .center-copy .faq-list { text-align: left; }
.center-copy > .muted { max-width: 62ch; margin: 0 auto 1.4rem; }
.feature-card p { min-height: 4.5rem; }
.center-link { margin-top: 1.4rem; }
.step-no {
  width: 2rem; height: 2rem; border-radius: 50%;
  background: #12325a; color: #fff; display: grid; place-items: center; font-weight: 800;
}
.band { background: #eef3f8; text-align: center; padding: 2.2rem 1rem; }
.about-hero { background: linear-gradient(180deg, #eef5f8, #f8fafc); padding: 4.5rem 0 2rem; }
.about-hero p { max-width: 46ch; color: #334155; }
.faq-list { display: grid; gap: .7rem; margin-top: 1rem; }
.faq-item { background: #f3f6fb; border-radius: 14px; padding: .2rem 1rem; }
.faq-item summary { cursor: pointer; font-weight: 700; padding: .85rem 0; }
.faq-item p { margin-top: 0; color: #334155; }
.narrow { width: min(820px, calc(100% - 2rem)); }
.post-card h3 { margin-top: 0; }
.post-meta { display: flex; justify-content: space-between; color: #64748b; font-size: .9rem; }
.topic-row { display: flex; flex-wrap: wrap; gap: .45rem; justify-content: center; margin: 1rem 0 1.4rem; }
.topic { background: #f1f5f9; color: #0f172a; border-radius: 999px; padding: .35rem .75rem; font-weight: 700; }
.topic.active { background: #12325a; color: #fff; }
.feature-banner {
  text-align: left;
  background: linear-gradient(120deg, #6d5efc, #8b6cf6);
  color: #fff;
  border-radius: 22px;
  padding: 1.6rem;
  margin-bottom: 1.2rem;
}
.feature-banner p { color: #f5f3ff; }
.crumb, .crumb a { color: #64748b; }
.footer-grid { display: grid; grid-template-columns: 1.4fr .8fr .8fr 1fr; gap: 1.5rem; }
.footer-grid a, .footer-grid p { display: block; color: #dbe4f0; margin: .35rem 0; }
.footer-brand { color: #fff; margin-bottom: .6rem; }
.footer-copy { margin-top: 1.4rem; color: #94a3b8; font-size: .9rem; }
.site-footer { background: #0d2340; padding: 2.4rem 0 1.4rem; }
.intake { display: grid; gap: .2rem; }
.thanks-card { text-align: center; padding: 2.5rem 1.4rem; }
.thanks-mark {
  width: 72px; height: 72px; margin: 0 auto 1rem; border-radius: 50%;
  background: #e8eef8; color: #12325a; display: grid; place-items: center;
  font-size: 2rem; font-weight: 800;
}
.legal-copy ul { padding-left: 1.2rem; }
.legal-copy li { margin: .25rem 0; }
body.auth-screen { background: #0d2340; min-height: 100vh; }
.login-screen { min-height: 100vh; display: grid; place-items: center; padding: 1.5rem; }
.login-card { width: min(440px, 100%); background: #fff; border-radius: 22px; padding: 1.8rem 1.5rem 1.3rem; box-shadow: var(--shadow); }
.login-brand { justify-content: center; font-size: 1.35rem; margin-bottom: .4rem; }
.login-card .btn { width: 100%; }
.login-links, .login-note, .login-back { text-align: center; }
.login-note { color: #64748b; font-size: .9rem; }
@media (max-width: 900px) {
  .pill-row, .footer-grid { grid-template-columns: 1fr; }
  .hero { min-height: 0; }
}
@media (max-width: 900px) {
  .grid-3, .grid-2, .stats, .form-grid, .app-body { grid-template-columns: 1fr; }
  .menu-toggle { display: inline-flex; }
  .nav-links { display: none; position: absolute; top: 72px; left: 0; right: 0; background: white; border-bottom: 1px solid var(--line); padding: .8rem; flex-direction: column; align-items: stretch; }
  .nav-links.open { display: flex; }
  .sidebar { position: sticky; top: 0; }
}
