:root {
  --bg: #0e141a;
  --bg-soft: #121d27;
  --surface: #f4f6f8;
  --ink: #18222b;
  --muted: #5c6b77;
  --line: #d4dbe2;
  --accent: #ffb020;
  --accent-dark: #d48f10;
}

* { box-sizing: border-box; }
body { margin: 0; font-family: "Barlow", Arial, sans-serif; color: var(--ink); background: #eef2f5; }
.wrap { width: min(1100px, calc(100% - 2rem)); margin: 0 auto; }
.hero { position: relative; color: #f7fbff; background: linear-gradient(155deg, var(--bg), var(--bg-soft)); padding-bottom: 3rem; }
.noise { position: absolute; inset: 0; background-image: radial-gradient(rgba(255,255,255,0.06) 1px, transparent 1px); background-size: 4px 4px; opacity: 0.25; pointer-events: none; }
.nav { position: relative; z-index: 1; display: flex; justify-content: space-between; align-items: center; padding: 1.2rem 0; }
.brand { color: #fff; text-decoration: none; font: 700 1.35rem "Space Grotesk", sans-serif; }
.brand.dark { color: #15202a; }
.nav-actions { display: flex; gap: 1rem; }
.nav-actions a { color: #dce7f0; text-decoration: none; font-weight: 600; }
.hero-inner { position: relative; z-index: 1; padding: 3rem 0 1rem; max-width: 760px; }
.kicker { text-transform: uppercase; letter-spacing: 0.13em; color: #9cb1c1; font-size: 0.78rem; margin: 0 0 0.8rem; }
.kicker-dark { color: #8a6a2f; }
h1,h2,h3 { margin-top: 0; font-family: "Space Grotesk", sans-serif; }
h1 { font-size: clamp(2rem, 4.6vw, 3.8rem); line-height: 1.08; margin-bottom: 0.8rem; }
.lead { color: #d8e3ec; line-height: 1.65; }
.hero-cta { display: flex; gap: 0.8rem; margin-top: 1rem; flex-wrap: wrap; }
.btn { border: 0; border-radius: 0.65rem; padding: 0.72rem 1.05rem; text-decoration: none; font-weight: 700; cursor: pointer; display: inline-block; }
.btn-primary { background: var(--accent); color: #1e1300; }
.btn-primary:hover { background: var(--accent-dark); }
.btn-ghost { background: transparent; color: #d9e7f2; border: 1px solid rgba(217, 231, 242, 0.55); }
.btn-secondary {
  background: #1f8a4c;
  color: #ffffff;
  border: 2px solid #17693a;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.16), 0 10px 20px rgba(23, 105, 58, 0.25);
}

.section { padding: 3.5rem 0; }
.feature-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.feature-grid article { background: #fff; border: 1px solid var(--line); border-radius: 0.9rem; padding: 1rem; box-shadow: 0 14px 30px rgba(30, 41, 54, 0.08); }
.feature-grid p { color: var(--muted); line-height: 1.6; }
.section-alt { background: #f8fbfd; border-top: 1px solid #dde5ec; border-bottom: 1px solid #dde5ec; }
.split { display: grid; grid-template-columns: 1.2fr 1fr; gap: 1rem; align-items: start; }
.stats { display: grid; gap: 0.75rem; }
.stats article { background: #fff; border: 1px solid var(--line); border-radius: 0.75rem; padding: 0.9rem; }
.stats strong { display: block; font-size: 1.45rem; color: #263745; }
.stats span { color: var(--muted); }

.subhead { background: linear-gradient(140deg, #162532, #2a3e4f); color: #f4f9fd; padding: 2rem 0 1.5rem; }
.subhead p { color: #d3e0ea; }
.subpage { background: #eef2f5; }
.filters { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.8rem; margin-bottom: 1rem; }
select, input { width: 100%; padding: 0.72rem; border-radius: 0.55rem; border: 1px solid #c4d0db; font: inherit; }
.cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.9rem; }
.cards article { background: #fff; border: 1px solid var(--line); border-radius: 0.9rem; padding: 1rem; }

.notice { color: #2b3d4b; font-weight: 700; margin-bottom: 1.1rem; }
.docs-actions { display: flex; justify-content: center; gap: 1rem; margin: 0.8rem 0 1.5rem; flex-wrap: wrap; }

.protected { filter: blur(12px) saturate(0.7); pointer-events: none; user-select: none; }
.modal { position: fixed; inset: 0; display: grid; place-items: center; padding: 1rem; background: rgba(10, 16, 22, 0.54); z-index: 999; }
.modal.hidden { display: none; }
.modal-box { width: min(540px, 100%); background: #fff; border: 1px solid var(--line); border-radius: 1rem; padding: 1.1rem; text-align: center; box-shadow: 0 24px 56px rgba(9, 20, 29, 0.35); }
.modal-box.compact { width: min(420px, 100%); }
.modal-form { display: grid; gap: 0.75rem; margin-top: 0.8rem; }
.status { min-height: 1.2rem; color: #a0372a; }

.footer { background: #121a22; color: #d0dbe3; padding: 1.6rem 0; margin-top: 2rem; }
.foot-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.foot-grid h4 { margin: 0 0 0.45rem; color: #fff; }

@media (max-width: 900px) {
  .feature-grid, .split, .cards, .filters, .foot-grid { grid-template-columns: 1fr; }
}
