:root {
  --ink: #0b1020;
  --ink-2: #131a33;
  --text: #1b2236;
  --muted: #5b6478;
  --line: #e4e7ef;
  --bg: #ffffff;
  --bg-alt: #f5f7fb;
  --accent: #ff5a1f;
  --accent-2: #ff8a3d;
  --ok: #22c55e;
  --bad: #ef4444;
  --radius: 14px;
  --shadow: 0 20px 50px -20px rgba(11, 16, 32, 0.35);
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; line-height: 1.6; }
h1, h2, h3 { line-height: 1.15; margin: 0 0 0.5em; letter-spacing: -0.02em; color: var(--ink); }
h1 { font-size: clamp(2.3rem, 5vw, 3.6rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); font-weight: 750; }
h3 { font-size: 1.12rem; font-weight: 700; }
p { margin: 0 0 1em; }
a { color: inherit; }
ul, ol { margin: 0; padding: 0; list-style: none; }

.wrap { width: min(1140px, 100% - 40px); margin-inline: auto; }
.narrow { width: min(760px, 100% - 40px); }
.center { text-align: center; }
.muted { color: var(--muted); font-size: 0.9rem; margin: 0; }
.lead { font-size: 1.12rem; color: var(--muted); }
.accent { background: linear-gradient(90deg, var(--accent), var(--accent-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); margin-bottom: 0.9em; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 13px 22px; border-radius: 999px; font-weight: 650; text-decoration: none; border: 1px solid transparent; transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease; }
.btn:hover { transform: translateY(-1px); }
.btn-sm { padding: 9px 16px; font-size: 0.92rem; }
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 10px 25px -10px rgba(255, 90, 31, 0.7); }
.btn-primary:hover { background: #ef4e14; }
.btn-ghost { border-color: rgba(255, 255, 255, 0.25); color: #fff; }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.08); }
.btn-ghost-light { border-color: rgba(255, 255, 255, 0.3); color: #fff; }
.link-quiet { text-decoration: none; font-weight: 600; color: #cfd6e6; }
.link-quiet:hover { color: #fff; }

/* Dots */
.dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; flex: none; }
.dot-ok { background: var(--ok); box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.18); }
.dot-bad { background: var(--bad); box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.18); }
.dot-live { background: var(--accent); animation: beat 1.4s ease-in-out infinite; }
@keyframes beat { 0%, 100% { box-shadow: 0 0 0 0 rgba(255, 90, 31, 0.6); } 50% { box-shadow: 0 0 0 6px rgba(255, 90, 31, 0); } }

/* Nav */
.nav { position: sticky; top: 0; z-index: 10; background: rgba(11, 16, 32, 0.85); backdrop-filter: saturate(160%) blur(12px); border-bottom: 1px solid rgba(255, 255, 255, 0.06); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.2rem; letter-spacing: -0.02em; text-decoration: none; color: #fff; }
.brand-mark { width: 30px; height: 30px; }
.brand-mark rect { fill: var(--accent); }
.brand-mark path { fill: none; stroke: #fff; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.nav-links { display: flex; gap: 28px; }
.nav-links a { color: #cfd6e6; text-decoration: none; font-weight: 550; font-size: 0.95rem; }
.nav-links a:hover { color: #fff; }
.nav-cta { display: flex; align-items: center; gap: 18px; }

/* Hero */
.hero { background: radial-gradient(1200px 500px at 85% -10%, rgba(255, 90, 31, 0.22), transparent 60%), radial-gradient(900px 500px at 0% 110%, rgba(59, 130, 246, 0.16), transparent 60%), var(--ink); color: #e6eaf3; padding: 88px 0 96px; overflow: hidden; }
.hero h1 { color: #fff; }
.hero .lead { color: #aab3c7; max-width: 560px; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin: 28px 0 22px; }
.hero-actions.center { justify-content: center; }
.hero-points { display: flex; flex-wrap: wrap; gap: 8px 22px; color: #aab3c7; font-size: 0.93rem; }
.hero-points li::before { content: "✓"; color: var(--ok); font-weight: 800; margin-right: 8px; }

.panel { background: linear-gradient(180deg, #161e3a, #10162c); border: 1px solid rgba(255, 255, 255, 0.08); border-radius: 20px; padding: 22px; box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.7); position: relative; }
.panel-head { display: flex; justify-content: space-between; align-items: center; font-weight: 650; color: #fff; margin-bottom: 18px; }
.pill { display: inline-flex; align-items: center; gap: 7px; font-size: 0.78rem; padding: 4px 10px; border-radius: 999px; }
.pill-live { background: rgba(255, 90, 31, 0.14); color: #ffb08c; }
.panel-stat { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.panel-stat > div { background: rgba(255, 255, 255, 0.04); border: 1px solid rgba(255, 255, 255, 0.06); border-radius: 12px; padding: 12px 14px; }
.panel-stat small { display: block; color: #8f99b0; font-size: 0.78rem; }
.panel-stat strong { font-size: 1.6rem; color: #fff; letter-spacing: -0.02em; }
.panel-stat strong.ok { color: #6ee7a0; }
.pulse { width: 100%; height: 64px; margin: 16px 0 10px; }
.pulse path { fill: none; stroke: var(--accent); stroke-width: 2.4; stroke-linejoin: round; stroke-dasharray: 600; stroke-dashoffset: 600; animation: draw 3.2s linear infinite; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.machines li { display: flex; align-items: center; gap: 10px; padding: 10px 2px; border-top: 1px solid rgba(255, 255, 255, 0.06); color: #e6eaf3; font-weight: 600; font-size: 0.95rem; }
.machines em { margin-left: auto; font-style: normal; font-weight: 500; color: #8f99b0; font-size: 0.85rem; }
.alert-toast { position: absolute; left: -28px; bottom: -38px; display: flex; align-items: center; gap: 10px; background: #fff; color: var(--ink); font-size: 0.86rem; font-weight: 600; padding: 12px 16px; border-radius: 12px; box-shadow: var(--shadow); max-width: 320px; }

/* Strip */
.strip { border-bottom: 1px solid var(--line); background: #fff; }
.strip-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; padding: 30px 0; }
.strip-grid strong { display: block; color: var(--ink); }
.strip-grid span { color: var(--muted); font-size: 0.92rem; }

/* Sections */
.section { padding: 96px 0; }
.section.alt { background: var(--bg-alt); }
.section-head { max-width: 700px; margin: 0 auto 48px; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; counter-reset: step; }
.steps li { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.steps p { color: var(--muted); margin: 0; }
.step-n { display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; background: rgba(255, 90, 31, 0.1); color: var(--accent); font-weight: 800; margin-bottom: 16px; }

.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.card { border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; background: #fff; transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease; }
.card:hover { border-color: rgba(255, 90, 31, 0.4); box-shadow: 0 16px 40px -24px rgba(11, 16, 32, 0.35); transform: translateY(-2px); }
.card p { color: var(--muted); margin: 0; font-size: 0.96rem; }

.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; max-width: 860px; margin: 0 auto; }
.chips li { background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 10px 18px; font-weight: 600; color: var(--ink); }

.split { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 64px; align-items: center; }
.ticks li { position: relative; padding-left: 30px; margin: 12px 0; font-weight: 550; }
.ticks li::before { content: "✓"; position: absolute; left: 0; top: 3px; width: 20px; height: 20px; border-radius: 6px; background: rgba(255, 90, 31, 0.12); color: var(--accent); font-size: 0.8rem; font-weight: 800; display: grid; place-items: center; }

.node-card { background: var(--ink); border-radius: 24px; padding: 56px 40px 40px; display: grid; justify-items: center; box-shadow: var(--shadow); }
.node { width: 220px; height: 240px; background: linear-gradient(180deg, #2a3150, #1b2140); border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 18px; padding: 18px; display: grid; grid-template-rows: auto 1fr auto; position: relative; z-index: 1; }
.node-leds { display: flex; gap: 10px; }
.node-label { align-self: center; justify-self: center; color: #fff; font-weight: 800; letter-spacing: 0.02em; }
.node-ports { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; }
.node-ports span { height: 18px; border-radius: 4px; background: #0f1430; border: 1px solid rgba(255, 255, 255, 0.12); }
.rail { width: 100%; height: 22px; margin-top: -60px; background: repeating-linear-gradient(90deg, #8b93a8 0 18px, #737b91 18px 22px); border-radius: 3px; }

/* CTA */
.cta { background: radial-gradient(800px 300px at 50% 0%, rgba(255, 90, 31, 0.3), transparent 70%), var(--ink); color: #e6eaf3; padding: 96px 0; }
.cta h2 { color: #fff; }
.cta .lead { color: #aab3c7; }

/* Footer */
.footer { background: #070b17; color: #aab3c7; padding: 36px 0; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.footer-links { display: flex; gap: 22px; }
.footer-links a { text-decoration: none; color: #aab3c7; }
.footer-links a:hover { color: #fff; }
.footer .muted { color: #6b7488; }

/* Login */
.login-page { min-height: 100vh; background: radial-gradient(900px 400px at 50% 0%, rgba(255, 90, 31, 0.22), transparent 65%), var(--ink); }
.login-main { display: grid; place-items: center; padding: 72px 20px; }
.login-card { width: min(420px, 100%); background: #fff; border-radius: 20px; padding: 32px; box-shadow: var(--shadow); display: grid; gap: 10px; }
.login-card h1 { font-size: 1.6rem; margin: 0; }
.login-card label { font-weight: 650; font-size: 0.92rem; margin-top: 8px; color: var(--ink); }
.login-card input { font: inherit; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; outline: none; }
.login-card input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(255, 90, 31, 0.18); }
.login-card .btn { margin-top: 8px; border: 0; cursor: pointer; font: inherit; font-weight: 650; }
.login-error { display: none; margin: 4px 0 0; padding: 10px 12px; border-radius: 10px; background: #fef2f2; color: #b91c1c; font-size: 0.9rem; }
.login-error:target { display: block; }
.login-foot { margin: 8px 0 0; display: flex; gap: 8px; justify-content: center; font-size: 0.88rem; color: var(--muted); }
.login-foot a { color: var(--muted); }

/* Responsive */
@media (max-width: 980px) {
  .hero-grid, .split { grid-template-columns: 1fr; }
  .hero-visual { max-width: 520px; padding-bottom: 12px; }
  .alert-toast { left: 16px; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .strip-grid { grid-template-columns: repeat(2, 1fr); }
  .nav-links { display: none; }
}
@media (max-width: 640px) {
  .hero { padding: 56px 0 72px; }
  .section { padding: 72px 0; }
  .steps, .cards { grid-template-columns: 1fr; }
  .alert-toast { position: static; margin-top: 16px; max-width: none; }
  .nav-cta .link-quiet { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .pulse path { stroke-dashoffset: 0; }
}
