/* Korthveil website: new-wave dark design from the shield emblem's
   blue and ember. Tokens first, then layout, components and pages. */
:root {
  --bg: #050b16;
  --bg-2: #081428;
  --panel: rgba(16, 30, 54, 0.62);
  --panel-solid: #0e1d36;
  --line: rgba(120, 170, 255, 0.14);
  --line-strong: rgba(120, 170, 255, 0.28);
  --text: #e9f1ff;
  --muted: #9db0cc;
  --faint: #6f84a4;
  --blue: #3ba4ff;
  --blue-2: #6a8cff;
  --violet: #8f6bff;
  --ember: #ff7a2f;
  --ember-2: #ffb15c;
  --ok: #34d399;
  --bad: #ff6b85;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 24px 60px -24px rgba(0, 0, 0, 0.65);
  --glow: 0 0 0 1px rgba(91, 160, 255, 0.25), 0 18px 50px -18px rgba(59, 164, 255, 0.45);
  --max: 1200px;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; min-height: 100vh; background: var(--bg); color: var(--text);
  font: 16px/1.6 "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
/* Aurora and grid behind everything */
body::before {
  content: ""; position: fixed; inset: -20% -10% auto -10%; height: 90vh; z-index: -2; pointer-events: none;
  background:
    radial-gradient(40% 50% at 18% 20%, rgba(59, 164, 255, 0.28), transparent 70%),
    radial-gradient(35% 45% at 82% 12%, rgba(143, 107, 255, 0.22), transparent 70%),
    radial-gradient(30% 40% at 70% 60%, rgba(255, 122, 47, 0.12), transparent 70%);
  filter: blur(10px); animation: aurora 18s ease-in-out infinite alternate;
}
body::after {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: 0.35;
  background-image: linear-gradient(rgba(120, 170, 255, 0.06) 1px, transparent 1px), linear-gradient(90deg, rgba(120, 170, 255, 0.06) 1px, transparent 1px);
  background-size: 56px 56px; mask-image: radial-gradient(ellipse at 50% 0%, #000 30%, transparent 75%);
}
@keyframes aurora { from { transform: translate3d(0, 0, 0) scale(1); } to { transform: translate3d(2%, 3%, 0) scale(1.08); } }
@media (prefers-reduced-motion: reduce) { body::before { animation: none; } * { scroll-behavior: auto; } }

a { color: var(--blue); text-decoration: none; }
a:hover { color: #8cc8ff; }
img { max-width: 100%; display: block; }
h1, h2, h3, h4 { line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 0.5em; }
h1 { font-size: clamp(2.3rem, 5.4vw, 4.2rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.6rem); font-weight: 750; }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.muted { color: var(--muted); }
.faint { color: var(--faint); }
.center { text-align: center; }
.grad {
  background: linear-gradient(100deg, #9fd2ff 0%, var(--blue) 35%, var(--violet) 65%, var(--ember) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; font-size: 0.8rem; font-weight: 650; letter-spacing: 0.04em;
  text-transform: uppercase; color: #bfe0ff; background: rgba(59, 164, 255, 0.1); border: 1px solid var(--line-strong); }
.eyebrow::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--ember); box-shadow: 0 0 12px var(--ember); }

/* Top bar */
.topbar { position: sticky; top: 0; z-index: 50; backdrop-filter: blur(16px) saturate(140%); -webkit-backdrop-filter: blur(16px) saturate(140%);
  background: rgba(5, 11, 22, 0.72); border-bottom: 1px solid var(--line); }
.topbar .wrap { display: flex; align-items: center; gap: 18px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 800; font-size: 1.15rem; letter-spacing: 0.02em; }
.brand img { width: 34px; height: 34px; border-radius: 8px; }
.brand span { white-space: nowrap; }
.brand span small { display: block; font-size: 0.62rem; font-weight: 600; letter-spacing: 0.18em; color: var(--muted); text-transform: uppercase; }
.nav { display: flex; align-items: center; gap: 2px; margin-left: 12px; }
.nav a { white-space: nowrap; color: var(--muted); padding: 8px 12px; border-radius: 10px; font-weight: 550; font-size: 0.95rem; }
.nav a:hover, .nav a.on { color: var(--text); background: rgba(120, 170, 255, 0.08); }
.nav a.on { box-shadow: inset 0 -2px 0 var(--blue); }
.top-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.menu-btn { display: none; margin-left: auto; background: none; border: 1px solid var(--line-strong); color: var(--text); border-radius: 10px; padding: 8px 10px; cursor: pointer; }
.announce { background: linear-gradient(90deg, rgba(59, 164, 255, 0.18), rgba(255, 122, 47, 0.18)); border-bottom: 1px solid var(--line); text-align: center;
  font-size: 0.9rem; padding: 7px 16px; }

/* Buttons */
.btn { white-space: nowrap; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 11px 20px; border-radius: 12px; font-weight: 650; font-size: 0.95rem;
  border: 1px solid var(--line-strong); color: var(--text); background: rgba(16, 30, 54, 0.6); cursor: pointer; transition: transform 0.15s, box-shadow 0.2s, background 0.2s; }
.btn:hover { transform: translateY(-1px); color: var(--text); background: rgba(30, 52, 90, 0.7); }
.btn-primary { border: 0; background: linear-gradient(110deg, #1d7cf2, #4f6bff 55%, #8a5cff); box-shadow: 0 10px 30px -10px rgba(59, 130, 255, 0.8); color: #fff; }
.btn-primary:hover { box-shadow: 0 14px 38px -10px rgba(59, 130, 255, 0.95); color: #fff; }
.btn-ember { border: 0; background: linear-gradient(110deg, #ff7a2f, #ff9b4a); color: #1b0c02; box-shadow: 0 10px 30px -12px rgba(255, 122, 47, 0.8); }
.btn-ember:hover { color: #1b0c02; }
.btn-ghost { background: transparent; }
.btn-sm { padding: 7px 12px; font-size: 0.85rem; border-radius: 10px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: 0.5; cursor: not-allowed; transform: none; }

/* Hero */
.hero { padding: 96px 0 72px; position: relative; }
.hero .wrap { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center; }
.hero h1 { margin-top: 18px; }
.hero .lead { font-size: 1.2rem; color: var(--muted); max-width: 36em; }
.hero .cta { display: flex; gap: 12px; flex-wrap: wrap; margin: 28px 0 22px; }
.hero .proof { display: flex; gap: 22px; flex-wrap: wrap; color: var(--faint); font-size: 0.9rem; }
.hero .proof b { color: var(--text); }
.hero-art { position: relative; }
.hero-art .emblem { width: min(420px, 100%); margin: 0 auto; border-radius: 28px; box-shadow: var(--glow); animation: float 7s ease-in-out infinite; }
.hero-art::before { content: ""; position: absolute; inset: 10% 8%; border-radius: 50%; z-index: -1; background: radial-gradient(circle, rgba(59, 164, 255, 0.45), transparent 65%); filter: blur(30px); }
@keyframes float { 50% { transform: translateY(-10px); } }
@media (prefers-reduced-motion: reduce) { .hero-art .emblem { animation: none; } }

/* Sections and cards */
section { padding: 72px 0; }
.section-head { max-width: 760px; margin: 0 auto 40px; text-align: center; }
.section-head p { color: var(--muted); font-size: 1.08rem; }
.grid { display: grid; gap: 20px; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px); box-shadow: var(--shadow); transition: border-color 0.2s, transform 0.2s; }
.card:hover { border-color: var(--line-strong); }
.card h3 { margin-bottom: 8px; }
.card p { color: var(--muted); margin: 0; }
.icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 16px; font-size: 1.3rem;
  background: linear-gradient(135deg, rgba(59, 164, 255, 0.25), rgba(143, 107, 255, 0.25)); border: 1px solid var(--line-strong); }
.shot { border-radius: var(--radius); border: 1px solid var(--line-strong); box-shadow: var(--glow); overflow: hidden; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.ticks { list-style: none; padding: 0; margin: 0 0 1em; }
.ticks li { padding-left: 28px; position: relative; margin: 8px 0; color: var(--muted); }
.ticks li::before { content: "✓"; position: absolute; left: 0; color: var(--ok); font-weight: 800; }
.band { background: linear-gradient(180deg, transparent, rgba(16, 30, 54, 0.5), transparent); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stat { text-align: center; }
.stat b { display: block; font-size: 2.2rem; font-weight: 800; }
.cta-band { text-align: center; padding: 64px 24px; border-radius: 24px; border: 1px solid var(--line-strong);
  background: radial-gradient(120% 140% at 50% 0%, rgba(59, 164, 255, 0.22), rgba(143, 107, 255, 0.12) 45%, transparent 70%), var(--panel-solid); }

/* Pricing */
.tabs { margin-top: 18px; display: inline-flex; padding: 5px; border-radius: 14px; background: var(--panel-solid); border: 1px solid var(--line); gap: 4px; }
.tabs a { padding: 9px 22px; border-radius: 10px; color: var(--muted); font-weight: 650; }
.tabs a.on { background: linear-gradient(110deg, #1d7cf2, #6a5cff); color: #fff; }
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 32px; }
.plan { position: relative; display: flex; flex-direction: column; }
.plan .price { font-size: 2.6rem; font-weight: 800; letter-spacing: -0.03em; margin: 8px 0 0; }
.plan .price small { font-size: 0.95rem; font-weight: 600; color: var(--muted); }
.plan ul { flex: 1; }
.plan.best { border-color: rgba(59, 164, 255, 0.6); box-shadow: var(--glow); }
.badge { position: absolute; top: -12px; right: 18px; padding: 4px 12px; border-radius: 999px; font-size: 0.75rem; font-weight: 750;
  background: linear-gradient(110deg, var(--ember), var(--ember-2)); color: #1b0c02; }
.builder { display: grid; grid-template-columns: 1fr 360px; gap: 24px; align-items: start; margin-top: 40px; }
.mods { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(250px, 100%), 1fr)); gap: 10px; }
.mod { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line); background: rgba(8, 20, 40, 0.6); cursor: pointer; }
.mod:hover { border-color: var(--line-strong); }
.mod input { margin-top: 4px; accent-color: var(--blue); width: 17px; height: 17px; flex: none; }
.mod b { display: block; font-size: 0.95rem; }
.mod span { font-size: 0.82rem; color: var(--faint); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.mod.on { border-color: rgba(59, 164, 255, 0.65); background: rgba(29, 124, 242, 0.12); }
.group-h { margin: 22px 0 10px; font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--faint); font-weight: 700; }
.summary { position: sticky; top: 92px; }
.summary .line { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; border-bottom: 1px dashed var(--line); font-size: 0.93rem; color: var(--muted); }
.summary .total { display: flex; justify-content: space-between; align-items: baseline; margin: 14px 0; font-size: 1.05rem; }
.summary .total b { font-size: 2rem; }
.field { display: grid; gap: 6px; margin-bottom: 14px; }
.field label, .label { font-size: 0.85rem; font-weight: 650; color: var(--muted); }
input[type=text], input[type=email], input[type=password], input[type=number], input[type=tel], select, textarea {
  width: 100%; padding: 11px 13px; border-radius: 10px; border: 1px solid var(--line-strong); background: rgba(5, 11, 22, 0.75); color: var(--text); font: inherit; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(59, 164, 255, 0.25); }
textarea { min-height: 120px; resize: vertical; font-family: inherit; }
textarea.code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.85rem; min-height: 420px; }
.row { display: flex; gap: 12px; flex-wrap: wrap; align-items: end; }
.row > * { flex: 1 1 160px; }
.hint { font-size: 0.82rem; color: var(--faint); }
.notice { padding: 12px 16px; border-radius: 12px; border: 1px solid rgba(52, 211, 153, 0.4); background: rgba(52, 211, 153, 0.1); margin-bottom: 18px; }
.notice.err { border-color: rgba(255, 107, 133, 0.45); background: rgba(255, 107, 133, 0.1); }
.notice.warn { border-color: rgba(255, 177, 92, 0.45); background: rgba(255, 177, 92, 0.1); }

/* Tables */
.table-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--line); }
table { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
th { text-align: left; color: var(--faint); font-weight: 650; font-size: 0.78rem; letter-spacing: 0.06em; text-transform: uppercase; padding: 12px 14px; background: rgba(8, 20, 40, 0.7); }
td { padding: 12px 14px; border-top: 1px solid var(--line); vertical-align: top; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.pill { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: 0.78rem; font-weight: 700; border: 1px solid var(--line-strong); }
.pill.ok { color: var(--ok); border-color: rgba(52, 211, 153, 0.5); }
.pill.bad { color: var(--bad); border-color: rgba(255, 107, 133, 0.5); }
.pill.warn { color: var(--ember-2); border-color: rgba(255, 177, 92, 0.5); }

/* Auth and forms */
.auth { max-width: 460px; margin: 70px auto; }
.auth h1 { font-size: 2rem; }
.prose { max-width: 760px; margin: 0 auto; }
.prose p { color: #c9d7ee; font-size: 1.05rem; }
.page-head { padding: 72px 0 28px; text-align: center; }
.page-head p { color: var(--muted); font-size: 1.1rem; max-width: 46em; margin: 0 auto; }

/* Admin */
.admin { display: grid; grid-template-columns: 230px 1fr; gap: 28px; padding: 34px 0 70px; }
.side { position: sticky; top: 92px; align-self: start; display: grid; gap: 2px; }
.side a { color: var(--muted); padding: 9px 12px; border-radius: 10px; font-weight: 550; }
.side a:hover, .side a.on { color: var(--text); background: rgba(120, 170, 255, 0.1); }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(170px, 100%), 1fr)); gap: 14px; margin-bottom: 24px; }
.kpi { padding: 18px; }
.kpi b { display: block; font-size: 1.8rem; font-weight: 800; }
.kpi span { color: var(--faint); font-size: 0.85rem; }
details.edit { border: 1px solid var(--line); border-radius: 12px; padding: 12px 16px; margin-bottom: 10px; background: rgba(8, 20, 40, 0.5); }
details.edit summary { cursor: pointer; font-weight: 650; }
.key { font-family: ui-monospace, monospace; font-size: 1.15rem; padding: 12px 16px; border-radius: 12px; background: rgba(5, 11, 22, 0.8); border: 1px dashed var(--blue); display: inline-block; letter-spacing: 0.06em; }

/* Footer */
footer { border-top: 1px solid var(--line); padding: 56px 0 36px; margin-top: 40px; background: rgba(5, 11, 22, 0.6); }
footer .cols { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 28px; }
footer h4 { font-size: 0.8rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--faint); }
footer a { display: block; color: var(--muted); padding: 3px 0; }
footer a:hover { color: var(--text); }
footer .legal { margin-top: 36px; color: var(--faint); font-size: 0.85rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }

/* Responsive */
@media (max-width: 1240px) {
  .nav { display: none; position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; align-items: stretch; padding: 12px 16px 18px;
    background: rgba(5, 11, 22, 0.97); border-bottom: 1px solid var(--line); margin: 0; }
  .nav.open { display: flex; }
  .nav a { padding: 12px; }
  .menu-btn { display: inline-flex; }
  .top-actions { margin-left: 0; }
}
@media (max-width: 900px) {
  .hero .wrap, .split, .builder { grid-template-columns: 1fr; }
  .hero { padding-top: 56px; }
  .g3, .g4, .plans { grid-template-columns: 1fr; }
  .g2 { grid-template-columns: 1fr; }
  .summary { position: static; }
  .admin { grid-template-columns: 1fr; }
  .side { position: static; grid-auto-flow: column; overflow-x: auto; }
  footer .cols { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .wrap { padding: 0 16px; }
  .top-actions .btn-ghost { display: none; }
  footer .cols { grid-template-columns: 1fr; }
}

/* Animated console on the home page (simulated values) */
.live-demo { border-radius: 18px; border: 1px solid var(--line-strong); background: linear-gradient(180deg, rgba(14, 29, 54, 0.92), rgba(6, 13, 26, 0.95));
  box-shadow: var(--glow); padding: 0 16px 14px; overflow: hidden; position: relative; }
.ld-bar { display: flex; align-items: center; gap: 12px; margin: 0 -16px 14px; padding: 10px 16px; border-bottom: 1px solid var(--line); background: rgba(5, 11, 22, 0.6); font-size: 0.82rem; }
.ld-dots { display: inline-flex; gap: 6px; } .ld-dots i { width: 10px; height: 10px; border-radius: 50%; background: #2b3b55; }
.ld-dots i:first-child { background: #ff6b85; } .ld-dots i:nth-child(2) { background: #ffb15c; } .ld-dots i:nth-child(3) { background: #34d399; }
.ld-title { color: var(--muted); font-weight: 600; }
.ld-live { margin-left: auto; display: inline-flex; align-items: center; gap: 7px; color: #9ff0cf; font-weight: 700; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.08em; }
.ld-live b { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 10px var(--ok); animation: ldpulse 1.6s ease-in-out infinite; }
@keyframes ldpulse { 50% { opacity: 0.35; transform: scale(0.8); } }
.ld-gauges { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.ld-gauge { background: rgba(8, 20, 40, 0.75); border: 1px solid var(--line); border-radius: 12px; padding: 8px 8px 6px; text-align: center; }
.ld-gauge svg { width: 100%; height: auto; display: block; }
.ld-gauge .v { font-weight: 800; font-size: 1.15rem; margin-top: -6px; }
.ld-gauge .l { color: var(--faint); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.08em; }
.ld-graph { margin-top: 12px; background: rgba(8, 20, 40, 0.75); border: 1px solid var(--line); border-radius: 12px; padding: 10px 10px 6px; }
.ld-graph-h { display: flex; justify-content: space-between; font-size: 0.8rem; color: var(--muted); font-weight: 600; margin-bottom: 4px; }
.ld-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin: 0 4px 0 10px; vertical-align: -1px; }
.ld-legend .dl { background: var(--blue); box-shadow: 0 0 8px var(--blue); } .ld-legend .ul { background: var(--ember); box-shadow: 0 0 8px var(--ember); }
.ld-graph svg { width: 100%; height: 150px; display: block; }
.ld-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 12px; }
.ld-stat { background: rgba(8, 20, 40, 0.75); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; }
.ld-stat b { display: block; font-size: 1.2rem; font-variant-numeric: tabular-nums; } .ld-stat span { font-size: 0.72rem; color: var(--faint); text-transform: uppercase; letter-spacing: 0.08em; }
.ld-bar-track { height: 6px; border-radius: 4px; background: rgba(120, 170, 255, 0.12); margin-top: 7px; overflow: hidden; }
.ld-bar-fill { height: 100%; border-radius: 4px; background: linear-gradient(90deg, var(--blue), var(--violet)); transition: width 0.9s ease; }
.ld-ifaces { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.ld-if { display: inline-flex; align-items: center; gap: 7px; padding: 5px 10px; border-radius: 999px; border: 1px solid var(--line); background: rgba(8, 20, 40, 0.75); font-size: 0.78rem; font-family: ui-monospace, monospace; }
.ld-if i { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 8px var(--ok); animation: ldpulse 2.4s ease-in-out infinite; }
.ld-if:nth-child(2) i { animation-delay: 0.6s; } .ld-if:nth-child(3) i { animation-delay: 1.2s; } .ld-if:nth-child(4) i { animation-delay: 1.8s; }
.ld-note { margin-top: 10px; font-size: 0.72rem; color: var(--faint); text-align: right; }
@media (prefers-reduced-motion: reduce) { .ld-live b, .ld-if i { animation: none; } }
@media (max-width: 560px) { .ld-gauges, .ld-stats { gap: 6px; } .ld-gauge .v { font-size: 0.95rem; } }

/* Rule-flow animation beside the console (demonstration) */
.demo-pair { align-items: stretch; }
.demo-pair .live-demo { display: flex; flex-direction: column; }
.flow-demo svg { width: 100%; height: auto; display: block; flex: 1; }
.fd-legend { display: flex; flex-wrap: wrap; gap: 14px; font-size: 0.78rem; color: var(--muted); margin-top: 6px; }
.fd-legend i { display: inline-block; width: 18px; height: 3px; border-radius: 2px; margin-right: 6px; vertical-align: 3px; }
.fd-legend .ok { background: var(--ok); } .fd-legend .bad { background: var(--bad); } .fd-legend .vpn { background: var(--violet); }
.fd-caption { margin-top: 8px; min-height: 2.6em; font-size: 0.85rem; color: #c9d7ee; border-top: 1px solid var(--line); padding-top: 8px; transition: opacity 0.4s; }
.demo-ticks { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 28px; margin-top: 22px; }

/* Animated rule designer (demonstration) */
.rd-demo { position: relative; }
.dd-toolbar { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-bottom: 8px; }
.dd-chip { font-size: 0.72rem; font-weight: 700; padding: 3px 9px; border-radius: 999px; border: 1px solid var(--line-strong); color: var(--muted); }
.dd-chip.ok { color: var(--ok); border-color: rgba(52, 211, 153, 0.45); } .dd-chip.bad { color: var(--bad); border-color: rgba(255, 107, 133, 0.45); }
.dd-chip.warn { color: var(--ember-2); border-color: rgba(255, 177, 92, 0.45); }
.dd-btn { margin-left: auto; font-size: 0.72rem; font-weight: 700; padding: 4px 10px; border-radius: 8px; border: 1px solid var(--line-strong); color: var(--text); }
.rd-demo svg { width: 100%; height: auto; display: block; background: rgba(8, 20, 40, 0.6); border: 1px solid var(--line); border-radius: 12px; }
.dd-verdict { min-height: 54px; margin-top: 8px; padding: 8px 12px; border-radius: 10px; border: 1px solid var(--line); background: rgba(8, 20, 40, 0.75); font-size: 0.85rem; color: #c9d7ee; transition: opacity 0.35s, border-color 0.35s; }
.dd-verdict b { display: block; font-size: 0.92rem; margin-bottom: 2px; }
.dd-verdict.ok { border-color: rgba(52, 211, 153, 0.55); } .dd-verdict.ok b { color: var(--ok); }
.dd-verdict.warn { border-color: rgba(255, 177, 92, 0.55); } .dd-verdict.warn b { color: var(--ember-2); }
.dd-verdict.bad { border-color: rgba(255, 107, 133, 0.55); } .dd-verdict.bad b { color: var(--bad); }
.dd-table { margin-top: 8px; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; font-size: 0.78rem; }
.dd-row { display: grid; grid-template-columns: 34px 1.6fr 1fr 70px; gap: 8px; padding: 6px 10px; border-top: 1px solid var(--line); align-items: center; transition: background 0.25s; }
.dd-row:first-child { border-top: 0; }
.dd-row.head { color: var(--faint); font-weight: 700; text-transform: uppercase; font-size: 0.66rem; letter-spacing: 0.06em; background: rgba(8, 20, 40, 0.8); }
.dd-row.sel { background: rgba(29, 124, 242, 0.18); box-shadow: inset 3px 0 0 var(--blue); }
.dd-act { font-weight: 700; } .dd-act.ok { color: var(--ok); } .dd-act.bad { color: var(--bad); } .dd-act.warn { color: var(--ember-2); }
.dd-cursor { position: absolute; left: 55%; top: 45%; font-size: 18px; color: #fff; text-shadow: 0 2px 6px rgba(0, 0, 0, 0.8); transform: rotate(-35deg); transition: left 0.9s cubic-bezier(.4, 0, .2, 1), top 0.9s cubic-bezier(.4, 0, .2, 1); pointer-events: none; z-index: 2; }
.dd-cursor.click { animation: ddclick 0.35s ease; }
@keyframes ddclick { 50% { transform: rotate(-35deg) scale(0.8); } }
@media (prefers-reduced-motion: reduce) { .dd-cursor { display: none; } }
@media (max-width: 560px) { .dd-row { grid-template-columns: 28px 1.4fr 1fr 58px; font-size: 0.72rem; } .dd-btn { display: none; } }

/* Features page */
.feat-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; padding-bottom: 8px; }
.feat-nav a { padding: 6px 13px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); font-size: 0.86rem; font-weight: 600; background: rgba(8, 20, 40, 0.6); }
.feat-nav a:hover { color: var(--text); border-color: var(--line-strong); }
section[id] { scroll-margin-top: 80px; }
.feat-cards { margin-top: 36px; }
.feat-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(330px, 100%), 1fr)); gap: 12px; }
.feat-list > div { padding: 16px 18px 16px 44px; border-radius: 14px; border: 1px solid var(--line); background: var(--panel); position: relative; }
.feat-list > div::before { content: "✓"; position: absolute; left: 16px; top: 15px; color: var(--ok); font-weight: 800; }
.feat-list b { display: block; margin-bottom: 3px; }
.feat-list span { color: var(--muted); font-size: 0.92rem; }
table.compare td { font-size: 0.88rem; }
table.compare td.no { color: var(--faint); }
table.compare td.yes { color: #bff5dd; }
.feat-cta { margin-top: 36px; }
.flow-feature { margin-top: 56px; }

/* Supported hardware (home page): illustrations drawn in SVG, power steps, sizing */
.hw-grid { margin-top: 8px; align-items: stretch; }
.hw-card { display: flex; flex-direction: column; gap: 6px; }
.hw-card h3 { margin: 0 0 4px; }
.hw-card .ticks { margin: 4px 0 0; font-size: 15px; }
.hw-fig { margin: -4px -4px 10px; padding: 14px 10px 6px; border-radius: var(--radius-sm); border: 1px solid var(--line);
  background: radial-gradient(80% 90% at 50% 20%, rgba(59, 164, 255, 0.13), transparent 70%), rgba(5, 11, 22, 0.55); }
.hw-fig svg { display: block; width: 100%; height: auto; }
.hw-shadow { fill: rgba(0, 0, 0, 0.45); }
.hw-edge { stroke: rgba(150, 190, 255, 0.35); stroke-width: 1; }
.hw-mark { fill: #8fb4ec; font: 700 8px/1 "Inter", system-ui, sans-serif; letter-spacing: 2.4px; }
.hw-tag { fill: var(--faint); font: 600 8.5px/1 "Inter", system-ui, sans-serif; letter-spacing: 0.4px; }
.hw-tag.hw-ok { fill: var(--ok); } .hw-tag.hw-warn { fill: var(--ember-2); }
.hw-caption { fill: var(--muted); font: 500 10px/1 "Inter", system-ui, sans-serif; }
.hw-port rect, .hw-port-s rect { fill: #060c18; stroke: #3b4f72; stroke-width: 1; }
.hw-sfp rect { fill: #0a1222; stroke: #8aa3c9; stroke-width: 1; }
.hw-usb { fill: #060c18; stroke: #6a8cff; }
.hw-lcd { fill: #0b2a3a; stroke: #2e8cc9; }
.hw-lcd-text { fill: #6fd6ff; font: 700 9px/1 ui-monospace, monospace; }
.hw-btn { fill: #0a1222; stroke: #3b4f72; }
.hw-outlet rect, .hw-card-slot { fill: #0a1222; stroke: #3b4f72; }
.hw-vent path { stroke: rgba(150, 190, 255, 0.18); stroke-width: 1.4; }
.hw-led-ok { fill: var(--ok); filter: drop-shadow(0 0 3px var(--ok)); }
.hw-led-info { fill: var(--blue); filter: drop-shadow(0 0 3px var(--blue)); }
.hw-led-warn { fill: var(--ember-2); filter: drop-shadow(0 0 3px var(--ember)); }
.hw-cable { fill: none; stroke: #4c6a99; stroke-width: 2; }
.hw-cable-usb { fill: none; stroke: var(--blue-2); stroke-width: 2.2; stroke-dasharray: 5 4; animation: hw-flow 1.6s linear infinite; }
.hw-antenna { stroke: #6f84a4; stroke-width: 2.4; stroke-linecap: round; }
.hw-rack { fill: rgba(8, 18, 34, 0.9); stroke: rgba(150, 190, 255, 0.28); }
.hw-rail { fill: rgba(150, 190, 255, 0.12); }
.hw-sync { fill: none; stroke: var(--violet); stroke-width: 2; stroke-dasharray: 4 4; animation: hw-flow 1.2s linear infinite; }
.hw-leader { stroke: rgba(150, 190, 255, 0.3); stroke-width: 1; stroke-dasharray: 2 3; }
.hw-blink { animation: hw-blink 1.3s steps(2, jump-none) infinite; }
.hw-blink2 { animation: hw-blink 0.9s steps(2, jump-none) infinite 0.3s; }
@keyframes hw-blink { 50% { opacity: 0.25; } }
@keyframes hw-flow { to { stroke-dashoffset: -18; } }
@media (prefers-reduced-motion: reduce) { .hw-blink, .hw-blink2, .hw-cable-usb, .hw-sync { animation: none; } }

.hw-power { margin-top: 28px; }
.hw-power-head h3 { margin: 4px 0 6px; }
.hw-steps { list-style: none; margin: 18px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; counter-reset: none; }
.hw-steps li { display: flex; gap: 12px; align-items: flex-start; padding: 14px; border-radius: var(--radius-sm); border: 1px solid var(--line); background: rgba(5, 11, 22, 0.45); }
.hw-steps b { flex: none; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-size: 14px;
  background: linear-gradient(135deg, var(--blue), var(--violet)); color: #fff; box-shadow: 0 0 18px -4px var(--blue); }
.hw-steps span { font-size: 14px; color: var(--muted); line-height: 1.5; }
.hw-steps strong { display: block; color: var(--text); font-size: 15px; margin-bottom: 2px; }
.hw-ups-note { margin: 14px 0 0; font-size: 14px; }
.hw-specs { margin-top: 28px; }
.hw-table td:first-child { color: var(--text); }
.hw-small { font-size: 13.5px; margin: 10px 0 0; }
@media (max-width: 900px) { .hw-steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .hw-steps { grid-template-columns: 1fr; } }
.hw-card .eyebrow, .hw-power-head .eyebrow { align-self: flex-start; }
.hw-power-head { display: flex; flex-direction: column; }
.hw-ups-note { margin-top: 18px; }
/* Admin on phones: the scrolling menu and long emails stay within the screen */
.admin > * { min-width: 0; }
.admin h1 { overflow-wrap: anywhere; }
.admin-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.admin-actions form { margin: 0; }
.lic-card { margin-bottom: 16px; } .lic-head { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.key { max-width: 100%; overflow-wrap: anywhere; }
.dl-list { list-style: none; padding: 0; margin: 12px 0; display: grid; gap: 14px; }
.dl-list .sha { font-size: 12px; color: var(--faint); overflow-wrap: anywhere; margin-top: 4px; }
