/* Cloudito Network — marketing site. No framework, no external requests. */
:root {
  --bg: #07090d;
  --bg-2: #0a0d13;
  --surface: #0e121a;
  --surface-2: #131926;
  --surface-3: #18202f;
  --line: #1c2332;
  --line-2: #283145;
  --text: #e9edf4;
  --text-2: #b2bacb;
  --muted: #7c869c;
  --brand: #1878c8;
  --brand-hi: #39aff5;
  --brand-lo: #185187;
  --cyan: #38c6e8;
  --ok: #2fbf71;
  --bad: #ef4f5f;
  --warn: #e8a23b;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 1px 0 rgba(255,255,255,.04) inset, 0 20px 50px -20px rgba(0,0,0,.6);
  --font: "Inter", "InterVariable", ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI Variable Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", "Cascadia Code", "Segoe UI Mono", Consolas, monospace;
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0; background: var(--bg); color: var(--text); font-family: var(--font);
  font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  font-feature-settings: "cv11", "ss01", "ss03";
}
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
::selection { background: rgba(31,138,224,.45); }
:focus-visible { outline: 2px solid var(--brand-hi); outline-offset: 2px; border-radius: 4px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px; }
@media (max-width: 640px) { .container { padding: 0 16px; } }
.mono { font-family: var(--mono); }
.tabular { font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); }
.text-2 { color: var(--text-2); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- typography */
h1, h2, h3, h4 { margin: 0; color: #fff; font-weight: 650; letter-spacing: -0.022em; line-height: 1.15; }
h1 { font-size: clamp(2.3rem, 5.2vw, 4rem); letter-spacing: -0.035em; line-height: 1.04; }
h2 { font-size: clamp(1.75rem, 3.2vw, 2.6rem); letter-spacing: -0.03em; line-height: 1.1; }
h3 { font-size: 1.125rem; letter-spacing: -0.012em; }
p { margin: 0; }
.lead { font-size: clamp(1.05rem, 1.5vw, 1.2rem); color: var(--text-2); line-height: 1.6; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 600; letter-spacing: .08em;
  text-transform: uppercase; color: var(--brand-hi);
}
.eyebrow::before { content: ""; width: 18px; height: 1px; background: currentColor; opacity: .7; }
.grad { background: linear-gradient(92deg, #fff 0%, #c4e6fb 45%, var(--brand-hi) 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- nav */
.nav {
  position: sticky; top: 0; z-index: 50; border-bottom: 1px solid transparent;
  background: rgba(7,9,13,.72); backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px);
  transition: border-color .2s;
}
.nav.scrolled { border-bottom-color: var(--line); }
.nav .container { display: flex; align-items: center; height: 68px; gap: 32px; }
.logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 650; font-size: 17px; letter-spacing: -0.02em; color: #fff; }
.logo-mark { width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; color: #fff;
  background: linear-gradient(145deg, var(--brand-hi), var(--brand) 55%, var(--brand-lo)); box-shadow: 0 0 0 1px rgba(255,255,255,.12) inset, 0 6px 18px -6px rgba(31,138,224,.7); }
.logo-mark svg { width: 17px; height: 17px; }
.logo small { font-weight: 500; color: var(--muted); font-size: 13px; margin-left: 2px; letter-spacing: 0; }
.nav-links { display: flex; gap: 4px; margin-right: auto; }
.nav-links a { padding: 8px 12px; border-radius: 8px; color: var(--text-2); font-size: 14.5px; font-weight: 500; transition: color .15s, background .15s; }
.nav-links a:hover { color: #fff; background: rgba(255,255,255,.04); }
.nav-links a.on { color: #fff; }
.nav-cta { display: flex; gap: 10px; align-items: center; }
.nav-toggle { display: none; margin-left: auto; background: none; border: 1px solid var(--line-2); border-radius: 8px; width: 40px; height: 40px; cursor: pointer; }
.nav-toggle svg { margin: auto; width: 18px; height: 18px; }
@media (max-width: 920px) {
  .nav-links, .nav-cta .btn-ghost { display: none; }
  .nav-toggle { display: grid; place-items: center; margin-left: 0; }
  .nav .container { gap: 12px; }
  .nav-cta { margin-left: auto; }
  .nav.open .nav-links { display: flex; flex-direction: column; position: absolute; top: 68px; left: 0; right: 0;
    background: var(--bg-2); border-bottom: 1px solid var(--line); padding: 12px 16px 18px; }
  .nav.open .nav-links a { padding: 12px; font-size: 16px; }
}
@media (max-width: 480px) { .nav-cta .btn { display: none; } }

/* ---------- buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 40px; padding: 0 18px;
  border-radius: 9px; font-weight: 600; font-size: 14.5px; letter-spacing: -0.005em; border: 1px solid transparent;
  cursor: pointer; transition: background .15s, border-color .15s, color .15s, transform .15s, box-shadow .15s; white-space: nowrap;
}
.btn svg { width: 16px; height: 16px; }
.btn-lg { height: 48px; padding: 0 24px; font-size: 15.5px; border-radius: 10px; }
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 0 0 1px rgba(255,255,255,.1) inset, 0 8px 24px -10px rgba(31,138,224,.9); }
.btn-primary:hover { background: #1f86d6; }
.btn-secondary { background: rgba(255,255,255,.04); border-color: var(--line-2); color: #fff; }
.btn-secondary:hover { background: rgba(255,255,255,.08); border-color: #3a455d; }
.btn-ghost { color: var(--text-2); }
.btn-ghost:hover { color: #fff; }
.btn .arrow { transition: transform .15s; }
.btn:hover .arrow { transform: translateX(2px); }

/* ---------- sections */
section { position: relative; }
.section { padding: 112px 0; }
.section-sm { padding: 72px 0; }
@media (max-width: 720px) { .section { padding: 76px 0; } .section-sm { padding: 52px 0; } }
.section-head { max-width: 760px; margin-bottom: 56px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head.center .eyebrow::before { display: none; }
.section-head h2 { margin-top: 14px; }
.section-head .lead { margin-top: 18px; }
.divider { border-top: 1px solid var(--line); }
.band { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

/* ---------- hero */
.hero { padding: 88px 0 72px; overflow: hidden; isolation: isolate; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -2;
  background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 56px 56px; mask-image: radial-gradient(ellipse 80% 70% at 50% 0%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 0%, #000 30%, transparent 75%);
}
.hero::after {
  content: ""; position: absolute; z-index: -1; left: 50%; top: -260px; width: 1100px; height: 640px; transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(31,138,224,.32), rgba(56,198,232,.08) 55%, transparent);
  filter: blur(10px);
}
.hero-grid { display: grid; grid-template-columns: 1.02fr 1fr; gap: 56px; align-items: center; }
@media (max-width: 1020px) { .hero-grid { grid-template-columns: 1fr; gap: 48px; } }
.hero h1 { margin-top: 22px; }
.hero .lead { margin-top: 22px; max-width: 560px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.hero-note { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 28px; font-size: 14px; color: var(--text-2); }
.hero-note span { display: inline-flex; align-items: center; gap: 8px; }
.hero-note svg { width: 16px; height: 16px; color: var(--ok); }
.announce {
  display: inline-flex; align-items: center; gap: 10px; padding: 5px 14px 5px 6px; border-radius: 999px;
  border: 1px solid var(--line-2); background: rgba(255,255,255,.03); font-size: 13.5px; color: var(--text-2);
}
.announce b { font-weight: 600; font-size: 12px; color: #fff; background: rgba(31,138,224,.25); border: 1px solid rgba(57,175,245,.35); padding: 2px 9px; border-radius: 999px; }
.page-hero { padding: 96px 0 56px; }
.page-hero h1 { font-size: clamp(2.1rem, 4.4vw, 3.3rem); margin-top: 18px; max-width: 880px; }
.page-hero .lead { margin-top: 20px; max-width: 720px; }

/* ---------- visual frame used by demos and the hero */
.frame {
  position: relative; border-radius: 16px; border: 1px solid var(--line-2);
  background: linear-gradient(180deg, rgba(19,25,38,.9), rgba(10,13,19,.95)); box-shadow: var(--shadow), 0 40px 120px -40px rgba(31,138,224,.35);
}
.frame-bar { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-bottom: 1px solid var(--line); font-size: 12.5px; color: var(--muted); }
.frame-bar .dots { display: flex; gap: 6px; }
.frame-bar .dots i { width: 10px; height: 10px; border-radius: 50%; background: #262e3f; display: block; }
.frame-bar .live { margin-left: auto; display: inline-flex; align-items: center; gap: 7px; color: var(--text-2); }
.pulse { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 0 rgba(47,191,113,.6); animation: pulse 1.8s infinite; }
.pulse.bad { background: var(--bad); box-shadow: 0 0 0 0 rgba(239,79,95,.6); animation-name: pulse-bad; }
@keyframes pulse { 70% { box-shadow: 0 0 0 7px rgba(47,191,113,0); } 100% { box-shadow: 0 0 0 0 rgba(47,191,113,0); } }
@keyframes pulse-bad { 70% { box-shadow: 0 0 0 7px rgba(239,79,95,0); } 100% { box-shadow: 0 0 0 0 rgba(239,79,95,0); } }
.hero-canvas { width: 100%; height: 360px; }
.frame-stats { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); }
.frame-stats div { padding: 14px 18px; }
.frame-stats div + div { border-left: 1px solid var(--line); }
.frame-stats dt { font-size: 12px; color: var(--muted); }
.frame-stats dd { margin: 2px 0 0; font-size: 18px; font-weight: 600; color: #fff; font-variant-numeric: tabular-nums; letter-spacing: -0.01em; }
@media (max-width: 520px) { .hero-canvas { height: 300px; } .frame-stats dd { font-size: 15px; } .frame-stats div { padding: 12px; } }

/* ---------- stats strip */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); }
.stats > div { padding: 34px 28px; }
.stats > div + div { border-left: 1px solid var(--line); }
.stat-value { font-size: clamp(1.8rem, 3vw, 2.5rem); font-weight: 650; letter-spacing: -0.03em; color: #fff; font-variant-numeric: tabular-nums; line-height: 1.1; }
.stat-value small { font-size: .5em; font-weight: 600; color: var(--text-2); margin-left: 4px; letter-spacing: 0; }
.stat-label { margin-top: 8px; font-size: 14px; color: var(--muted); line-height: 1.45; }
@media (max-width: 900px) { .stats { grid-template-columns: repeat(2, 1fr); } .stats > div:nth-child(3) { border-left: 0; } .stats > div:nth-child(n+3) { border-top: 1px solid var(--line); } }
@media (max-width: 480px) { .stats > div { padding: 24px 16px; } }

/* ---------- cards and grids */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
@media (max-width: 980px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 680px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }
.card { position: relative; border: 1px solid var(--line); background: linear-gradient(180deg, var(--surface), var(--bg-2)); border-radius: var(--radius); padding: 28px; }
.card h3 { margin-top: 18px; }
.card p { margin-top: 10px; color: var(--text-2); font-size: 15px; }
.card-link { transition: border-color .2s, transform .2s; }
.card-link:hover { border-color: var(--line-2); }
.icon-tile { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; color: var(--brand-hi);
  background: rgba(31,138,224,.1); border: 1px solid rgba(57,175,245,.22); }
.icon-tile svg { width: 20px; height: 20px; }
.checks { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 10px; }
.checks li { display: flex; gap: 10px; font-size: 15px; color: var(--text-2); line-height: 1.5; }
.checks li svg { flex: none; width: 18px; height: 18px; margin-top: 2px; color: var(--brand-hi); }
.checks li b { color: #fff; font-weight: 600; }

/* product cards (two modes) */
.mode-card { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.mode-card .mode-body { padding: 32px; flex: 1; }
.mode-card .mode-flow { border-top: 1px solid var(--line); background: rgba(0,0,0,.25); padding: 18px 32px; display: flex; align-items: center; flex-wrap: wrap; gap: 8px; font-size: 13px; color: var(--text-2); }
.mode-flow .hop { display: inline-flex; align-items: center; gap: 7px; padding: 5px 10px; border-radius: 7px; border: 1px solid var(--line-2); background: var(--surface); white-space: nowrap; }
.mode-flow .hop.hi { border-color: rgba(57,175,245,.45); color: #fff; background: rgba(31,138,224,.12); }
.mode-flow .sep { color: var(--muted); }
.tag { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; padding: 3px 9px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--text-2); background: rgba(255,255,255,.03); }
.tag.blue { color: #cdeafc; border-color: rgba(57,175,245,.4); background: rgba(31,138,224,.14); }
.tag.green { color: #bdf0d3; border-color: rgba(47,191,113,.4); background: rgba(47,191,113,.12); }

/* feature split rows */
.split { display: grid; grid-template-columns: 1fr 1.1fr; gap: 64px; align-items: center; }
.split.rev > :first-child { order: 2; }
.split + .split { margin-top: 112px; }
@media (max-width: 980px) { .split { grid-template-columns: 1fr; gap: 36px; } .split.rev > :first-child { order: 0; } .split + .split { margin-top: 80px; } }
.split h2 { margin-top: 14px; font-size: clamp(1.6rem, 2.6vw, 2.1rem); }
.split .lead { margin-top: 16px; font-size: 1.05rem; }

/* terminal */
.term { font-family: var(--mono); font-size: 13px; line-height: 1.75; padding: 18px 20px; color: #c9d3e6; overflow-x: auto; white-space: pre; }
.term .p { color: var(--brand-hi); }
.term .c { color: var(--muted); }
.term .g { color: #6fdc9e; }
.term .y { color: #f3c46b; }
.term .r { color: #ff8a95; }
.term .w { color: #fff; }

/* protocol grid */
.proto { display: flex; gap: 14px; align-items: flex-start; padding: 22px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.proto .icon-tile { flex: none; }
.proto h4 { font-size: 15.5px; letter-spacing: -0.01em; }
.proto p { font-size: 14px; color: var(--text-2); margin-top: 4px; line-height: 1.5; }

/* ---------- tables */
.table-wrap { border: 1px solid var(--line); border-radius: var(--radius); overflow-x: auto; background: var(--surface); }
table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
th, td { text-align: left; padding: 14px 20px; border-bottom: 1px solid var(--line); vertical-align: top; }
thead th { font-size: 12.5px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; background: var(--bg-2); white-space: nowrap; }
tbody tr:last-child td { border-bottom: 0; }
td:first-child { color: var(--text-2); }
td.us { background: rgba(31,138,224,.06); color: #fff; font-weight: 500; }
th.us { color: #cdeafc; background: rgba(31,138,224,.12); }
.yes, .no { display: inline-flex; align-items: center; gap: 6px; }
.yes svg { width: 17px; height: 17px; color: var(--ok); }
.no svg { width: 17px; height: 17px; color: #5b6478; }
.table-group td { background: var(--bg-2); color: #fff; font-weight: 600; font-size: 13px; letter-spacing: .02em; }

/* ---------- pricing */
.billing { display: inline-flex; padding: 4px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--surface); gap: 2px; }
.billing button { border: 0; background: none; padding: 8px 16px; border-radius: 7px; font-size: 14px; font-weight: 600; color: var(--text-2); cursor: pointer; display: inline-flex; gap: 8px; align-items: center; }
.billing button.on { background: var(--surface-3); color: #fff; box-shadow: 0 0 0 1px var(--line-2) inset; }
.billing .save { font-size: 11.5px; color: #bdf0d3; background: rgba(47,191,113,.15); border-radius: 999px; padding: 1px 8px; }
.plans { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 40px; align-items: stretch; }
@media (max-width: 1100px) { .plans { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .plans { grid-template-columns: 1fr; } }
.plan { position: relative; display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 14px; background: linear-gradient(180deg, var(--surface), var(--bg-2)); padding: 28px 24px; }
.plan.featured { border-color: rgba(57,175,245,.55); background: linear-gradient(180deg, rgba(31,138,224,.13), var(--bg-2) 55%); box-shadow: 0 30px 80px -40px rgba(31,138,224,.6); }
.plan .ribbon { position: absolute; top: -12px; left: 24px; font-size: 11.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; background: var(--brand); color: #fff; padding: 4px 10px; border-radius: 999px; }
.plan h3 { font-size: 17px; }
.plan .for { margin-top: 6px; font-size: 14px; color: var(--muted); min-height: 42px; line-height: 1.5; }
.price { margin-top: 22px; display: flex; align-items: baseline; gap: 6px; }
.price .amount { font-size: 42px; font-weight: 650; letter-spacing: -0.04em; color: #fff; font-variant-numeric: tabular-nums; line-height: 1; }
.price .per { font-size: 14px; color: var(--muted); }
.price-note { margin-top: 8px; font-size: 13px; color: var(--muted); min-height: 20px; }
.price-note .vs { color: #bdf0d3; }
.plan .btn { margin-top: 22px; width: 100%; }
.plan .checks { margin-top: 24px; padding-top: 22px; border-top: 1px solid var(--line); font-size: 14px; }
.plan .checks li { font-size: 14px; }
.plan .checks li svg { width: 16px; height: 16px; }
.plan .traffic { margin-top: 20px; padding: 12px 14px; border-radius: 10px; background: rgba(255,255,255,.03); border: 1px solid var(--line); display: flex; justify-content: space-between; align-items: baseline; }
.plan .traffic span { font-size: 13px; color: var(--muted); }
.plan .traffic b { font-size: 15px; color: #fff; font-weight: 600; }
.addons { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 860px) { .addons { grid-template-columns: 1fr; } }
.addon { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; padding: 22px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.addon h4 { font-size: 15px; }
.addon p { font-size: 14px; color: var(--text-2); margin-top: 4px; }
.addon .p { font-weight: 650; color: #fff; white-space: nowrap; font-variant-numeric: tabular-nums; }

/* ---------- FAQ */
.faq { max-width: 860px; margin: 0 auto; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 22px 0; display: flex; justify-content: space-between; gap: 24px; font-weight: 600; color: #fff; font-size: 16.5px; letter-spacing: -0.01em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary svg { flex: none; width: 20px; height: 20px; color: var(--muted); transition: transform .2s; }
.faq details[open] summary svg { transform: rotate(45deg); }
.faq details p { padding: 0 48px 24px 0; color: var(--text-2); font-size: 15.5px; }

/* ---------- CTA */
.cta { position: relative; overflow: hidden; border-radius: 20px; border: 1px solid var(--line-2); padding: 72px 48px; text-align: center;
  background: radial-gradient(ellipse 70% 120% at 50% 0%, rgba(31,138,224,.32), transparent 65%), linear-gradient(180deg, var(--surface), var(--bg-2)); }
.cta h2 { max-width: 760px; margin: 0 auto; }
.cta .lead { max-width: 620px; margin: 18px auto 0; }
.cta .hero-cta { justify-content: center; }
@media (max-width: 640px) { .cta { padding: 52px 20px; } }

/* ---------- footer */
footer { border-top: 1px solid var(--line); padding: 64px 0 40px; background: var(--bg-2); }
.foot { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 40px; }
@media (max-width: 860px) { .foot { grid-template-columns: 1fr 1fr; } }
.foot h5 { margin: 0 0 14px; font-size: 13px; font-weight: 600; color: #fff; letter-spacing: .02em; }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.foot a { color: var(--muted); font-size: 14.5px; transition: color .15s; }
.foot a:hover { color: #fff; }
.foot .about { color: var(--muted); font-size: 14.5px; max-width: 340px; margin-top: 16px; }
.foot-bottom { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; font-size: 13.5px; color: var(--muted); }
.status-pill { display: inline-flex; align-items: center; gap: 8px; }

/* ---------- demos */
.demo { border: 1px solid var(--line-2); border-radius: 16px; background: linear-gradient(180deg, var(--surface), var(--bg-2)); overflow: hidden; box-shadow: var(--shadow); }
.demo-head { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.demo-head h3 { font-size: 15.5px; }
.demo-head .sub { font-size: 13.5px; color: var(--muted); }
.demo-body { padding: 20px; }
.seg { display: inline-flex; flex-wrap: wrap; gap: 6px; }
.seg button { border: 1px solid var(--line-2); background: var(--bg-2); color: var(--text-2); padding: 7px 12px; border-radius: 8px; font-size: 13.5px; font-weight: 500; cursor: pointer; transition: all .15s; }
.seg button:hover { color: #fff; border-color: #3a455d; }
.seg button.on { color: #fff; border-color: rgba(57,175,245,.6); background: rgba(31,138,224,.16); }
.seg button.atk.on { border-color: rgba(239,79,95,.6); background: rgba(239,79,95,.13); }
.switch { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; font-size: 14px; font-weight: 600; color: #fff; user-select: none; }
.switch input { position: absolute; opacity: 0; pointer-events: none; }
.switch .track { width: 40px; height: 22px; border-radius: 999px; background: #2a3242; position: relative; transition: background .2s; }
.switch .track::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: transform .2s; }
.switch input:checked + .track { background: var(--ok); }
.switch input:checked + .track::after { transform: translateX(18px); }
.switch input:focus-visible + .track { outline: 2px solid var(--brand-hi); outline-offset: 2px; }
.sim-canvas { width: 100%; height: 330px; border-radius: 10px; background: #080b10; border: 1px solid var(--line); }
.sim-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 16px; }
@media (max-width: 760px) { .sim-stats { grid-template-columns: repeat(2, 1fr); } }
.sim-stat { border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; background: var(--bg-2); }
.sim-stat dt { font-size: 12px; color: var(--muted); }
.sim-stat dd { margin: 3px 0 0; font-size: 19px; font-weight: 650; color: #fff; font-variant-numeric: tabular-nums; letter-spacing: -0.015em; }
.sim-stat .bar { height: 4px; border-radius: 2px; background: #1d2433; margin-top: 8px; overflow: hidden; }
.sim-stat .bar i { display: block; height: 100%; width: 0; background: var(--ok); transition: width .3s, background .3s; }
.sim-explain { margin-top: 16px; padding: 14px 16px; border-radius: 10px; background: rgba(31,138,224,.07); border: 1px solid rgba(57,175,245,.2); font-size: 14.5px; color: var(--text-2); display: flex; gap: 12px; }
.sim-explain svg { flex: none; width: 18px; height: 18px; color: var(--brand-hi); margin-top: 2px; }
.sim-explain b { color: #fff; }
.controls { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; margin-bottom: 16px; }
.controls label.lbl { font-size: 12.5px; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .06em; display: block; margin-bottom: 8px; }
input[type=range] { accent-color: var(--brand); width: 180px; }

/* packet inspector */
.insp { display: grid; grid-template-columns: 300px 1fr; min-height: 420px; }
@media (max-width: 860px) { .insp { grid-template-columns: 1fr; } }
.insp-list { border-right: 1px solid var(--line); padding: 10px; display: grid; gap: 6px; align-content: start; }
@media (max-width: 860px) { .insp-list { border-right: 0; border-bottom: 1px solid var(--line); } }
.insp-list button { text-align: left; border: 1px solid transparent; background: none; border-radius: 9px; padding: 10px 12px; cursor: pointer; display: grid; grid-template-columns: auto 1fr; gap: 2px 10px; align-items: center; }
.insp-list button:hover { background: rgba(255,255,255,.03); }
.insp-list button.on { background: var(--surface-2); border-color: var(--line-2); }
.insp-list .k { font-size: 14px; font-weight: 600; color: #fff; }
.insp-list .s { grid-column: 2; font-size: 12.5px; color: var(--muted); }
.verdict-dot { width: 8px; height: 8px; border-radius: 50%; grid-row: span 2; }
.insp-main { padding: 20px 22px; min-width: 0; }
.hex { font-family: var(--mono); font-size: 12.5px; line-height: 1.9; background: #080b10; border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; overflow-x: auto; white-space: nowrap; }
.hex span { padding: 1px 2px; border-radius: 3px; }
.hex .f0 { background: rgba(56,198,232,.16); color: #9be3f5; }
.hex .f1 { background: rgba(57,175,245,.18); color: #c4e6fb; }
.hex .f2 { background: rgba(232,162,59,.16); color: #f5d29b; }
.hex .f3 { background: rgba(47,191,113,.16); color: #a8ebc6; }
.hex .f4 { background: rgba(198,120,221,.18); color: #e5c2f0; }
.hex .fx { background: rgba(239,79,95,.18); color: #ffb3bb; }
.trace { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 8px; }
.trace li { display: grid; grid-template-columns: 22px 1fr auto; gap: 10px; align-items: start; font-size: 14px; padding: 10px 12px; border-radius: 9px; background: var(--bg-2); border: 1px solid var(--line); opacity: 0; transform: translateY(4px); transition: opacity .25s, transform .25s; }
.trace li.show { opacity: 1; transform: none; }
.trace li svg { width: 18px; height: 18px; margin-top: 1px; }
.trace li .t { color: #fff; font-weight: 500; }
.trace li .d { display: block; color: var(--muted); font-size: 13px; margin-top: 2px; }
.trace li .v { font-family: var(--mono); font-size: 12.5px; color: var(--text-2); white-space: nowrap; }
.trace li.pass svg { color: var(--ok); }
.trace li.fail { border-color: rgba(239,79,95,.4); background: rgba(239,79,95,.07); }
.trace li.fail svg { color: var(--bad); }
.trace li.skip { opacity: .45; }
.trace li.skip.show { opacity: .45; }
.verdict { margin-top: 16px; display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 10px; font-weight: 600; font-size: 14.5px; }
.verdict.ok { background: rgba(47,191,113,.1); border: 1px solid rgba(47,191,113,.35); color: #bdf0d3; }
.verdict.drop { background: rgba(239,79,95,.1); border: 1px solid rgba(239,79,95,.4); color: #ffc2c8; }
.verdict svg { width: 18px; height: 18px; }
.legend { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-top: 10px; font-size: 12.5px; color: var(--muted); }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i { width: 10px; height: 10px; border-radius: 3px; display: block; }

/* detection chart */
.det-wrap { position: relative; }
.det-svg { width: 100%; height: 280px; }
.det-tip { position: absolute; pointer-events: none; background: var(--surface-3); border: 1px solid var(--line-2); border-radius: 8px; padding: 8px 10px; font-size: 12.5px; color: var(--text-2); white-space: nowrap; transform: translate(-50%, -110%); opacity: 0; transition: opacity .1s; box-shadow: 0 8px 24px rgba(0,0,0,.4); }
.det-tip b { color: #fff; font-variant-numeric: tabular-nums; }
.det-log { margin-top: 14px; display: grid; gap: 6px; font-family: var(--mono); font-size: 12.5px; color: var(--text-2); max-height: 132px; overflow: auto; }
.det-log div { display: flex; gap: 12px; }
.det-log time { color: var(--muted); }
.det-log .a { color: #ffb3bb; }
.det-log .ok { color: #a8ebc6; }

/* layers diagram on technology page */
.layers { display: grid; gap: 14px; counter-reset: layer; }
.layer { display: grid; grid-template-columns: 64px 1fr 1.1fr; gap: 24px; align-items: start; padding: 26px 28px; border: 1px solid var(--line); border-radius: var(--radius); background: linear-gradient(180deg, var(--surface), var(--bg-2)); }
@media (max-width: 900px) { .layer { grid-template-columns: 48px 1fr; } .layer .layer-stops { grid-column: 1 / -1; } }
.layer-num { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; font-weight: 700; color: #fff; font-family: var(--mono); background: var(--surface-3); border: 1px solid var(--line-2); }
.layer h3 { font-size: 18px; }
.layer p { color: var(--text-2); font-size: 15px; margin-top: 8px; }
.layer .where { font-size: 12.5px; color: var(--brand-hi); font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
.layer-stops { display: flex; flex-wrap: wrap; gap: 8px; align-content: flex-start; }
.layer-stops .tag { font-weight: 500; }

/* misc */
.note { font-size: 13px; color: var(--muted); margin-top: 16px; }
.note a { text-decoration: underline; text-underline-offset: 3px; }
.center { text-align: center; }
.mt-8 { margin-top: 8px; } .mt-16 { margin-top: 16px; } .mt-24 { margin-top: 24px; } .mt-32 { margin-top: 32px; } .mt-48 { margin-top: 48px; }
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } }
.legend i.f0 { background: rgba(56,198,232,.55); } .legend i.f1 { background: rgba(57,175,245,.6); } .legend i.f2 { background: rgba(232,162,59,.55); }
.legend i.f3 { background: rgba(47,191,113,.55); } .legend i.f4 { background: rgba(198,120,221,.6); } .legend i.fx { background: rgba(239,79,95,.6); }
.verdict.warn { background: rgba(232,162,59,.1); border: 1px solid rgba(232,162,59,.4); color: #f5d29b; }
/* grid children may not grow wider than their track (long terminal lines, tables) */
.split > *, .hero-grid > *, .grid-2 > *, .grid-3 > *, .plans > * { min-width: 0; }
.logo-img { height: 28px; width: auto; flex: none; }
