:root {
  color-scheme: dark;
  --bg: #090d19;
  --surface: #10172a;
  --line: rgba(157, 171, 219, .17);
  --text: #f3f5ff;
  --muted: #9da9c9;
  --accent: #756dff;
  --accent-soft: #9b95ff;
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 75% 5%, rgba(95, 86, 255, .18), transparent 26rem),
    var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.6;
}
a { color: inherit; text-decoration: none; }

.site-header, footer {
  width: min(calc(100% - 40px), var(--max));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.site-header { min-height: 92px; border-bottom: 1px solid var(--line); }
.site-header.compact { min-height: 78px; }
.brand { display: inline-flex; align-items: center; gap: 11px; font-size: 1.05rem; font-weight: 700; letter-spacing: -.02em; }
.brand b { color: var(--accent-soft); }
.brand-mark {
  display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px;
  background: linear-gradient(145deg, #8b84ff, #554aff); color: white; font-weight: 900;
  box-shadow: 0 8px 25px rgba(92, 80, 255, .28);
}
.brand.small { font-size: .95rem; }
.brand.small .brand-mark { width: 28px; height: 28px; border-radius: 8px; font-size: .85rem; }
nav { display: flex; gap: 30px; color: var(--muted); font-size: .92rem; }
nav a, footer a { transition: color .2s ease; }
nav a:hover, footer a:hover { color: white; }

main { width: min(calc(100% - 40px), var(--max)); margin: 0 auto; }
.hero { min-height: 680px; display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: 70px; }
.eyebrow { color: var(--accent-soft); font-weight: 800; letter-spacing: .18em; font-size: .76rem; }
.hero h1 { font-size: clamp(3.2rem, 7vw, 6.4rem); line-height: .94; letter-spacing: -.065em; margin: 25px 0 30px; }
.hero h1 span { color: var(--accent-soft); }
.lead { max-width: 610px; color: var(--muted); font-size: 1.18rem; line-height: 1.7; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 13px; margin-top: 38px; }
.button { display: inline-flex; min-height: 50px; align-items: center; justify-content: center; padding: 0 22px; border-radius: 14px; font-weight: 700; }
.button.primary { background: var(--accent); color: white; box-shadow: 0 12px 34px rgba(99, 86, 255, .27); }
.button.secondary { border: 1px solid var(--line); background: rgba(18, 25, 45, .5); color: #d9def3; }
.button:hover { transform: translateY(-1px); }

.signal-card {
  height: 480px; position: relative; overflow: hidden; border: 1px solid var(--line); border-radius: 36px;
  background: linear-gradient(145deg, rgba(24, 33, 61, .92), rgba(12, 17, 32, .9));
  box-shadow: 0 30px 90px rgba(0, 0, 0, .28);
}
.signal-card::after { content: ""; position: absolute; inset: 0; background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 48px 48px; mask-image: linear-gradient(to bottom, black, transparent 85%); opacity: .27; }
.orb { position: absolute; border-radius: 50%; filter: blur(2px); }
.orb-one { width: 230px; height: 230px; background: rgba(112, 98, 255, .25); top: 50px; right: 55px; box-shadow: 0 0 110px rgba(112, 98, 255, .45); }
.orb-two { width: 120px; height: 120px; border: 1px solid rgba(183, 178, 255, .35); bottom: 58px; left: 50px; }
.monogram { position: absolute; z-index: 2; display: grid; place-items: center; inset: 50% auto auto 50%; translate: -50% -50%; width: 112px; height: 112px; border-radius: 30px; background: linear-gradient(145deg, #8d86ff, #554aff); font-size: 3.8rem; font-weight: 900; box-shadow: 0 20px 80px rgba(85, 74, 255, .45); }
.signal-lines { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 14px; }
.signal-lines i { display: block; width: 4px; height: 46px; border-radius: 10px; background: rgba(188, 184, 255, .42); }
.signal-lines i:nth-child(2), .signal-lines i:nth-child(4) { height: 130px; }
.signal-lines i:nth-child(3) { height: 220px; }
.mini-card { position: absolute; z-index: 3; display: flex; align-items: center; gap: 10px; padding: 12px 15px; border: 1px solid rgba(193, 199, 233, .18); border-radius: 14px; background: rgba(13, 19, 37, .78); backdrop-filter: blur(12px); font-size: .76rem; color: #dfe3f8; }
.mini-card span { width: 8px; height: 8px; border-radius: 50%; background: #7d74ff; box-shadow: 0 0 15px #7d74ff; }
.card-a { left: 27px; top: 42px; }
.card-b { right: 24px; bottom: 34px; }

.manifesto { margin: 40px 0 120px; padding: 80px 7vw; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.manifesto p { margin: 0; max-width: 940px; font-size: clamp(1.8rem, 4vw, 3.3rem); line-height: 1.25; letter-spacing: -.04em; }
.principles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.principles article { min-height: 310px; padding: 30px; border: 1px solid var(--line); border-radius: 24px; background: rgba(16, 23, 42, .58); }
.number { color: var(--accent-soft); font-size: .78rem; font-weight: 800; }
.principles h2 { margin: 70px 0 14px; font-size: 1.65rem; }
.principles p { color: var(--muted); margin: 0; }
.closing { margin: 120px 0; padding: 55px; border-radius: 28px; background: linear-gradient(120deg, #332c93, #171d3b); display: flex; align-items: end; justify-content: space-between; gap: 40px; }
.closing h2 { margin: 10px 0 0; font-size: clamp(2rem, 4vw, 3.6rem); letter-spacing: -.04em; }
.closing > p { max-width: 400px; color: #c9ccef; margin: 0; }
footer { min-height: 130px; border-top: 1px solid var(--line); color: var(--muted); font-size: .86rem; }
footer div { display: flex; gap: 22px; }

.document { max-width: 820px; padding: 100px 0 120px; }
.document h1 { margin: 15px 0 26px; font-size: clamp(3rem, 7vw, 5.8rem); line-height: 1; letter-spacing: -.06em; }
.document-lead { margin-bottom: 70px; color: #c3cbe2; font-size: 1.25rem; }
.document section { padding: 30px 0; border-top: 1px solid var(--line); }
.document h2 { font-size: 1.3rem; }
.document section p { color: var(--muted); }
.updated { margin-top: 40px; color: #717e9f; font-size: .86rem; }
.contact-page { min-height: 650px; }
.contact-card { margin-top: 70px; padding: 34px; border: 1px solid var(--line); border-radius: 24px; background: var(--surface); }
.contact-card span { display: block; color: var(--accent-soft); font-size: .8rem; font-weight: 800; text-transform: uppercase; letter-spacing: .12em; }
.contact-card strong { display: block; margin: 13px 0; font-size: 1.5rem; }
.contact-card p { color: var(--muted); margin: 0; }
.error-page { display: grid; place-items: center; text-align: center; }
.error-page main { width: min(calc(100% - 40px), 560px); }
.error-page .brand { justify-content: center; }
.error-code { color: var(--accent-soft); font-size: 1rem; font-weight: 900; letter-spacing: .25em; margin-top: 70px; }
.error-page h1 { font-size: clamp(2.5rem, 8vw, 5rem); letter-spacing: -.05em; margin: 12px 0; }
.error-page p:not(.error-code) { color: var(--muted); margin-bottom: 35px; }

@media (max-width: 820px) {
  .site-header nav { display: none; }
  .hero { grid-template-columns: 1fr; padding: 90px 0; gap: 50px; }
  .signal-card { height: 380px; }
  .manifesto { margin-top: 0; padding: 60px 0; }
  .principles { grid-template-columns: 1fr; }
  .principles article { min-height: 240px; }
  .principles h2 { margin-top: 45px; }
  .closing { margin: 80px 0; padding: 34px 26px; flex-direction: column; align-items: start; }
  footer { padding: 35px 0; flex-wrap: wrap; gap: 20px; }
}

@media (max-width: 520px) {
  .site-header, main, footer { width: min(calc(100% - 28px), var(--max)); }
  .hero { min-height: auto; padding-top: 65px; }
  .hero h1 { font-size: 3.15rem; }
  .lead { font-size: 1.05rem; }
  .hero-actions { flex-direction: column; }
  .button { width: 100%; }
  .signal-card { height: 330px; border-radius: 26px; }
  .mini-card { font-size: .68rem; }
  .card-a { top: 22px; left: 16px; }
  .card-b { right: 14px; bottom: 20px; }
  .document { padding-top: 70px; }
  footer > p { order: 3; width: 100%; }
}

@media (prefers-reduced-motion: no-preference) {
  .signal-card { animation: appear .7s ease both; }
  .hero-copy { animation: appear .55s ease both; }
  @keyframes appear { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
}
