:root {
  --bg: #0d1420;
  --panel: #151e2e;
  --line: #24304a;
  --text: #e6ebf5;
  --muted: #93a0b8;
  --accent: #4f8cff;
  --accent-2: #2fd3a6;
  --danger: #ff6b6b;
  --radius: 12px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 24px; }

header.top {
  position: sticky; top: 0; z-index: 10;
  background: rgba(13, 20, 32, .92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
header.top .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; }

.logo { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 700; font-size: 18px; }
.logo:hover { text-decoration: none; }
.logo svg { width: 28px; height: 28px; }

nav.main { display: flex; align-items: center; gap: 24px; }
nav.main a { color: var(--muted); font-size: 15px; }
nav.main a:hover { color: var(--text); text-decoration: none; }

.btn {
  display: inline-block; padding: 10px 18px; border-radius: 8px;
  background: var(--accent); color: #fff !important; font-weight: 600; font-size: 15px;
  border: 1px solid var(--accent); cursor: pointer;
}
.btn:hover { filter: brightness(1.1); text-decoration: none; }
.btn.ghost { background: transparent; color: var(--text) !important; border-color: var(--line); }

.hero { padding: 88px 0 72px; }
.hero h1 { font-size: 44px; line-height: 1.15; margin: 0 0 20px; max-width: 760px; }
.hero p { font-size: 19px; color: var(--muted); max-width: 660px; margin: 0 0 32px; }
.hero .actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero .facts { display: flex; gap: 40px; flex-wrap: wrap; margin-top: 56px; }
.hero .facts div { color: var(--muted); font-size: 14px; }
.hero .facts b { display: block; color: var(--text); font-size: 24px; }

section { padding: 64px 0; border-top: 1px solid var(--line); }
section h2 { font-size: 30px; margin: 0 0 12px; }
section .lead { color: var(--muted); max-width: 680px; margin: 0 0 36px; }

.grid { display: grid; gap: 20px; grid-template-columns: repeat(3, 1fr); }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.card h3 { margin: 0 0 8px; font-size: 18px; }
.card p { margin: 0; color: var(--muted); font-size: 15px; }
.card .tag { display: inline-block; margin-bottom: 14px; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--accent-2); }

ol.steps { list-style: none; counter-reset: s; padding: 0; margin: 0; display: grid; gap: 20px; grid-template-columns: repeat(3, 1fr); }
ol.steps li { counter-increment: s; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; color: var(--muted); font-size: 15px; }
ol.steps li::before { content: counter(s); display: block; width: 32px; height: 32px; line-height: 32px; text-align: center; border-radius: 50%; background: var(--accent); color: #fff; font-weight: 700; margin-bottom: 14px; }
ol.steps li b { display: block; color: var(--text); font-size: 17px; margin-bottom: 6px; }

.price { font-size: 34px; font-weight: 700; margin: 8px 0 4px; }
.price small { font-size: 14px; font-weight: 400; color: var(--muted); }
.card ul { padding-left: 18px; margin: 16px 0 0; color: var(--muted); font-size: 15px; }
.card.featured { border-color: var(--accent); }

dl.faq { margin: 0; max-width: 780px; }
dl.faq dt { font-weight: 600; margin-top: 24px; }
dl.faq dd { margin: 6px 0 0; color: var(--muted); }

footer { border-top: 1px solid var(--line); padding: 32px 0 48px; color: var(--muted); font-size: 14px; }
footer .wrap { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
footer a { color: var(--muted); }

/* portal */
.center { min-height: calc(100vh - 65px); display: flex; align-items: center; justify-content: center; padding: 40px 24px; }
.login { width: 100%; max-width: 380px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; }
.login h1 { font-size: 22px; margin: 0 0 6px; }
.login p.sub { color: var(--muted); font-size: 14px; margin: 0 0 24px; }
.login label { display: block; font-size: 13px; color: var(--muted); margin: 14px 0 6px; }
.login input {
  width: 100%; padding: 11px 12px; border-radius: 8px; border: 1px solid var(--line);
  background: var(--bg); color: var(--text); font-size: 15px;
}
.login input:focus { outline: none; border-color: var(--accent); }
.login .btn { width: 100%; margin-top: 22px; padding: 12px; font-size: 15px; }
.login .btn[disabled] { opacity: .6; cursor: default; }
.login .err { display: none; margin-top: 16px; padding: 10px 12px; border-radius: 8px; background: rgba(255, 107, 107, .1); border: 1px solid rgba(255, 107, 107, .4); color: var(--danger); font-size: 14px; }
.login .foot { margin-top: 20px; font-size: 13px; color: var(--muted); text-align: center; }

/* status */
.status-banner { display: flex; align-items: center; gap: 12px; padding: 18px 22px; border-radius: var(--radius); background: rgba(47, 211, 166, .1); border: 1px solid rgba(47, 211, 166, .4); font-weight: 600; margin-bottom: 28px; }
.dot { width: 10px; height: 10px; border-radius: 50%; background: var(--accent-2); flex: none; }
table.status { width: 100%; border-collapse: collapse; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
table.status td { padding: 16px 20px; border-top: 1px solid var(--line); }
table.status tr:first-child td { border-top: 0; }
table.status td:last-child { text-align: right; color: var(--accent-2); font-size: 14px; }
.page { padding: 56px 0 80px; }
.page h1 { font-size: 32px; margin: 0 0 8px; }
.page .muted { color: var(--muted); margin: 0 0 32px; }

.notfound { text-align: center; }
.notfound h1 { font-size: 72px; margin: 0; color: var(--accent); }

@media (max-width: 860px) {
  .grid, ol.steps { grid-template-columns: 1fr; }
  .hero h1 { font-size: 34px; }
  nav.main a:not(.btn) { display: none; }
}
