:root {
  --bg: #050a18;
  --bg-2: #0a1328;
  --line: rgba(120, 220, 255, 0.14);
  --text: #f4f8ff;
  --muted: #a9b8d0;
  --cyan: #2ee6ff;
  --cyan-soft: rgba(46, 230, 255, 0.12);
  --font: "Segoe UI Variable Display", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --mono: "Cascadia Code", "Consolas", ui-monospace, "SFMono-Regular", monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  background-image:
    radial-gradient(ellipse 70% 50% at 85% -10%, rgba(46, 230, 255, 0.10), transparent 60%),
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: auto, 64px 64px, 64px 64px;
  background-attachment: fixed;
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.7;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--cyan); color: var(--bg); }

a { color: var(--cyan); text-underline-offset: 3px; }
a:hover { color: #fff; }
a:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 2px; }

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

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: rgba(5, 10, 24, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; min-height: 72px; flex-wrap: wrap; padding-top: 10px; padding-bottom: 10px;
}
.brand {
  font-weight: 700; font-size: 20px; letter-spacing: 0.42em;
  color: var(--text); text-decoration: none; display: inline-flex; align-items: center; gap: 12px;
}
.brand::before {
  content: ""; width: 9px; height: 9px; border-radius: 50%;
  background: var(--cyan); box-shadow: 0 0 14px var(--cyan);
}
.nav { display: flex; flex-wrap: wrap; gap: 4px; list-style: none; }
.nav a {
  display: block; padding: 8px 14px; border-radius: 999px;
  color: var(--muted); text-decoration: none; font-size: 14px;
  transition: color .2s ease, background-color .2s ease;
}
.nav a:hover { color: var(--text); background: var(--cyan-soft); }
.nav a[aria-current="page"] { color: var(--bg); background: var(--cyan); }

/* Main */
main { flex: 1; }

.hero { padding: 120px 0 80px; }
.eyebrow {
  font-family: var(--mono); font-size: 13px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--cyan); margin-bottom: 28px; display: inline-block;
  border: 1px solid var(--line); padding: 6px 12px; border-radius: 999px;
}
h1 {
  font-size: clamp(2.4rem, 6vw, 4.6rem); line-height: 1.04; font-weight: 700;
  letter-spacing: -0.03em; max-width: 16ch;
}
h1 .accent { color: var(--cyan); }
.lead { font-size: clamp(1rem, 1.6vw, 1.2rem); color: var(--muted); margin-top: 24px; max-width: 46ch; }

.line { display: block; overflow: hidden; }
.line > span { display: inline-block; animation: rise .9s cubic-bezier(.2,.7,.2,1) both; }
.line:nth-child(2) > span { animation-delay: .12s; }
.fade { animation: fade 1s ease .35s both; }
@keyframes rise { from { transform: translateY(105%); } to { transform: none; } }
@keyframes fade { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .line > span, .fade { animation: none; } }

.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 40px; }
.btn {
  display: inline-block; padding: 13px 24px; border-radius: 999px; text-decoration: none;
  font-weight: 600; font-size: 15px; border: 1px solid var(--cyan);
  transition: background-color .2s ease, color .2s ease, transform .2s ease;
}
.btn-primary { background: var(--cyan); color: var(--bg); }
.btn-primary:hover { background: #fff; border-color: #fff; color: var(--bg); transform: translateY(-2px); }
.btn-ghost { color: var(--cyan); }
.btn-ghost:hover { background: var(--cyan-soft); color: #fff; transform: translateY(-2px); }

.section { padding: 64px 0; border-top: 1px solid var(--line); }
.label {
  font-family: var(--mono); font-size: 13px; color: var(--cyan);
  letter-spacing: 0.14em; text-transform: uppercase; margin-bottom: 20px;
}
.prose { max-width: 70ch; }
.prose p { color: #d6e0f0; margin-bottom: 18px; }
.prose p:last-child { margin-bottom: 0; }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.card {
  background: var(--bg-2); border: 1px solid var(--line); border-radius: 16px;
  padding: 28px; transition: border-color .25s ease, transform .25s ease;
}
.card:hover { border-color: rgba(46, 230, 255, 0.5); transform: translateY(-3px); }
.card .num { font-family: var(--mono); color: var(--cyan); font-size: 13px; }
.card h3 { font-size: 19px; margin: 14px 0 10px; letter-spacing: -0.01em; }
.card p { color: var(--muted); font-size: 15px; }

/* Document pages */
.doc { padding: 96px 0 80px; }
.doc h1 { font-size: clamp(2rem, 5vw, 3.4rem); max-width: 22ch; }
.doc .meta { color: var(--muted); font-family: var(--mono); font-size: 13px; margin-top: 18px; }
.doc-body { margin-top: 56px; max-width: 72ch; }
.doc-body h2 {
  font-size: 1.15rem; margin: 44px 0 12px; color: var(--text);
  display: flex; align-items: baseline; gap: 12px;
}
.doc-body h2::before { content: ""; width: 18px; height: 2px; background: var(--cyan); flex: none; transform: translateY(-5px); }
.doc-body h2:first-child { margin-top: 0; }
.doc-body p { color: #d6e0f0; margin-bottom: 14px; }
.doc-body ul { margin: 0 0 14px 20px; color: #d6e0f0; }
.doc-body a { word-break: break-word; }

.mail {
  display: inline-block; margin-top: 32px; font-size: clamp(1.15rem, 4vw, 1.9rem); font-weight: 600;
  padding: 18px 28px; border: 1px solid var(--cyan); border-radius: 16px; text-decoration: none;
  background: var(--cyan-soft); word-break: break-all;
  transition: background-color .2s ease, color .2s ease;
}
.mail:hover { background: var(--cyan); color: var(--bg); }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 32px 0; color: var(--muted); font-size: 14px; }
.site-footer .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.site-footer nav { display: flex; gap: 18px; flex-wrap: wrap; }
.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a:hover { color: var(--cyan); }

@media (max-width: 760px) {
  .hero { padding: 72px 0 56px; }
  .doc { padding: 64px 0 56px; }
  .cards { grid-template-columns: 1fr; }
  .site-header .wrap { justify-content: center; }
  .nav { justify-content: center; }
  .nav a { padding: 7px 11px; font-size: 13px; }
  .section { padding: 48px 0; }
}
