:root {
  --magenta: #E427F5;
  --blue: #279CF5;
  --charcoal: #333333;
  --green: #53BA0F;
  --deep: #BA0F5F;
  --bg: #09090b;
  --bg-2: #111113;
  --surface: #161618;
  --text: #f3f3f6;
  --muted: #9a9aa6;
  --line: rgba(255, 255, 255, 0.08);
  --max: 1120px;
  --radius: 18px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: Inter, system-ui, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.55;
  min-height: 100vh;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

form fieldset {
  border: 0;
  min-width: 0;
}

form fieldset:disabled {
  opacity: 0.72;
}

.skip {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--magenta);
  color: #fff;
  padding: 8px 14px;
  z-index: 100;
}
.skip:focus { left: 12px; top: 12px; }

.circuit {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.55;
}

.circuit svg { width: 100%; height: 100%; }

.grain {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.04;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='140' height='140'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='2'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

.wrap {
  position: relative;
  z-index: 2;
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
}

nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 0 8px;
}

.nav-links {
  display: flex;
  gap: 8px;
  align-items: center;
}

.brand-mark {
  display: block;
  flex: 0 0 auto;
  margin-left: auto;
}

.brand-mark img {
  height: 52px;
  width: auto;
  display: block;
}

.nav-links a {
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--muted);
  padding: 8px 12px;
  border-radius: 999px;
}

.nav-links a:hover { color: var(--text); }

.nav-cta {
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--text) !important;
}

.hero {
  padding: 56px 0 72px;
  text-align: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--blue);
  border: 1px solid rgba(39, 156, 245, 0.28);
  padding: 7px 12px 7px 10px;
  border-radius: 999px;
  background: rgba(39, 156, 245, 0.06);
}

.pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 0 rgba(83, 186, 15, 0.7);
  animation: pulse 2.2s ease-out infinite;
}

@keyframes pulse {
  70% { box-shadow: 0 0 0 8px rgba(83, 186, 15, 0); }
  100% { box-shadow: 0 0 0 0 rgba(83, 186, 15, 0); }
}

.wordmark {
  width: min(920px, 100%);
  height: auto;
  display: block;
  margin: 20px auto 28px;
}

h1, h2, h3 { font-family: Outfit, Inter, sans-serif; font-weight: 650; letter-spacing: -0.03em; }

.lede {
  font-size: clamp(1.15rem, 2.4vw, 1.45rem);
  max-width: 38rem;
  margin: 0 auto 28px;
  padding: 0 8px;
  color: #d8d8df;
  line-height: 1.5;
  text-wrap: pretty;
}

.lede strong { color: #fff; font-weight: 600; }

.actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: 999px;
  padding: 13px 22px;
  cursor: pointer;
  font-weight: 600;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.btn:hover { transform: translateY(-1px); }

.btn-primary {
  background: var(--magenta);
  color: #fff;
  box-shadow: 0 0 0 1px rgba(228, 39, 245, 0.35);
}

.btn-primary:hover { box-shadow: 0 10px 30px rgba(228, 39, 245, 0.22); }

.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--line);
}

.btn:disabled { opacity: 0.6; cursor: wait; transform: none; }

.terminal {
  margin: 48px auto 0;
  max-width: 560px;
  text-align: left;
  background: #0c0c0e;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
}

.term-bar {
  display: flex;
  gap: 6px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
}

.term-bar i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  display: block;
}
.term-bar i:nth-child(1) { background: var(--deep); }
.term-bar i:nth-child(2) { background: #c9a227; }
.term-bar i:nth-child(3) { background: var(--green); }

.terminal pre {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 12.5px;
  line-height: 1.7;
  padding: 16px 18px 20px;
  color: #c9c9d1;
  overflow-x: auto;
}

.k-mag { color: var(--magenta); }
.k-blue { color: var(--blue); }
.k-green { color: var(--green); }
.k-deep { color: var(--deep); }
.k-dim { color: #6d6d78; }

.section { padding: 36px 0 72px; }

.section-kicker {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 10px;
}

h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); margin-bottom: 10px; }
.sub { color: var(--muted); max-width: 560px; margin-bottom: 28px; }

.grid-4, .grid-3 {
  display: grid;
  gap: 14px;
}

.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 20px;
  position: relative;
  overflow: hidden;
}

.card::after {
  content: "";
  position: absolute;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  top: 16px;
  right: 16px;
  background: var(--node, var(--magenta));
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--node, var(--magenta)) 18%, transparent);
}

.card h3 { font-size: 1.05rem; margin: 12px 0 8px; }
.card p { color: var(--muted); font-size: 0.95rem; }

.icon {
  width: 36px;
  height: 36px;
  color: var(--node, var(--magenta));
}

.turn {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 28px;
  align-items: center;
  background:
    radial-gradient(circle at 12% 20%, rgba(228, 39, 245, 0.12), transparent 40%),
    radial-gradient(circle at 88% 80%, rgba(39, 156, 245, 0.1), transparent 42%),
    var(--surface);
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 36px;
}

.day {
  font-family: Outfit, sans-serif;
  font-size: clamp(5.5rem, 12vw, 8.5rem);
  line-height: 0.85;
  letter-spacing: -0.06em;
}
.day em {
  font-style: normal;
  background: linear-gradient(90deg, var(--magenta), var(--blue), var(--green));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.day small {
  display: block;
  font-size: 1.1rem;
  letter-spacing: 0.28em;
  color: var(--muted);
  margin-top: 10px;
}

.host {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 36px;
  align-items: start;
}

.host-panel {
  background: #0c0c0e;
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 22px;
}

.status-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}
.status-row:last-child { border-bottom: 0; }

.ok {
  color: var(--green);
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 11px;
  letter-spacing: 0.12em;
}

.contact {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 36px;
}

form {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 24px;
}

.fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

label {
  display: block;
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 6px;
}

input, select, textarea {
  width: 100%;
  background: #0c0c0e;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 11px 12px;
  outline: none;
}

input:focus, select:focus, textarea:focus {
  border-color: rgba(39, 156, 245, 0.7);
  box-shadow: 0 0 0 3px rgba(39, 156, 245, 0.12);
}

textarea { min-height: 120px; resize: vertical; grid-column: 1 / -1; }
.span-2 { grid-column: 1 / -1; }

.hp {
  position: absolute;
  left: -9999px;
  height: 0;
  width: 0;
  overflow: hidden;
}

.form-msg {
  margin-top: 12px;
  font-size: 14px;
}
.form-msg.is-ok { color: var(--green); }
.form-msg.is-err { color: #ff7a9a; }

.cf-turnstile { margin-top: 4px; }

footer {
  border-top: 1px solid var(--line);
  padding: 28px 0 40px;
  color: var(--muted);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 13px;
}

@media (max-width: 960px) {
  .grid-4, .grid-3, .turn, .host, .contact, .fields {
    grid-template-columns: 1fr;
  }
  .nav-links a:not(.nav-cta) { display: none; }
  .brand-mark img { height: 44px; }
  .hero { padding-top: 28px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .pulse { animation: none; }
  .btn { transition: none; }
}
