/* ==========================================================================
   Codly.ai — Cloud OS   |   Design System
   Modern dark + gradient/glow. Self-contained, no build step.
   ========================================================================== */

/* ---------- Design Tokens ---------- */
:root {
  /* Base surfaces */
  --bg:            #05060a;
  --bg-2:          #080a11;
  --surface:       #0d1018;
  --surface-2:     #12151f;
  --surface-3:     #171b27;
  --line:          rgba(255,255,255,.08);
  --line-strong:   rgba(255,255,255,.14);

  /* Text */
  --text:          #eef1f8;
  --text-2:        #aab2c5;
  --text-3:        #6f778c;

  /* Brand — exact Codly logo palette: cyan → teal → orange (+magenta accent) */
  --brand:         #00aeef;   /* logo cyan */
  --brand-2:       #00b7d4;   /* cyan-teal (icons/links) */
  --brand-3:       #00b48d;   /* logo teal-green */
  --orange:        #f37021;   /* logo orange */
  --magenta:       #c0398b;   /* logo magenta accent */
  --accent:        #00aeef;
  --grad:          linear-gradient(115deg, #00aeef 0%, #00b48d 54%, #f37021 112%);
  --grad-2:        linear-gradient(120deg, #00aeef 0%, #00b48d 100%);
  --grad-soft:     linear-gradient(120deg, rgba(0,174,239,.16), rgba(243,112,33,.14));

  /* Status */
  --ok:            #00b48d;
  --warn:          #f2a03b;
  --danger:        #fb7185;

  /* Effects */
  --glow-cyan:     radial-gradient(60% 60% at 50% 0%, rgba(0,174,239,.35), transparent 70%);
  --glow-violet:   radial-gradient(50% 50% at 82% 18%, rgba(243,112,33,.22), transparent 70%);
  --ring:          0 0 0 1px var(--line);
  --shadow:        0 24px 60px -20px rgba(0,0,0,.65);
  --shadow-glow:   0 0 0 1px rgba(0,174,239,.25), 0 20px 60px -18px rgba(0,174,239,.35);

  /* Layout */
  --maxw:          1180px;
  --radius:        16px;
  --radius-lg:     22px;
  --radius-sm:     10px;
  --nav-h:         66px;

  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
}

/* ---------- Reset ---------- */
*,*::before,*::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
ul { list-style: none; }
::selection { background: rgba(0,174,239,.35); color: #fff; }

/* Ambient page glow */
body::before {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(50% 32% at 50% -6%, rgba(0,174,239,.10), transparent 60%),
    radial-gradient(40% 30% at 100% 8%, rgba(243,112,33,.08), transparent 60%);
}

/* ---------- Layout helpers ---------- */
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 24px; }
.section { padding: 96px 0; position: relative; }
.section--tight { padding: 64px 0; }
.center { text-align: center; }
.grid { display: grid; gap: 22px; }
.muted { color: var(--text-2); }
.stack-sm > * + * { margin-top: 10px; }

/* ---------- Typography ---------- */
h1,h2,h3,h4 { line-height: 1.12; letter-spacing: -.02em; font-weight: 700; }
.h1 { font-size: clamp(2.6rem, 5.4vw, 4.1rem); font-weight: 800; letter-spacing: -.035em; }
.h2 { font-size: clamp(2rem, 3.8vw, 2.9rem); }
.h3 { font-size: clamp(1.35rem, 2.2vw, 1.7rem); }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: var(--text-2); }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .78rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--brand-2);
}
.gradient-text {
  background: var(--grad); -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.section-head { max-width: 720px; margin: 0 auto 56px; text-align: center; }
.section-head .lead { margin-top: 16px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 12px 22px; border-radius: 999px; font-weight: 600; font-size: .95rem;
  transition: transform .18s ease, box-shadow .25s ease, background .25s ease, border-color .2s;
  white-space: nowrap; border: 1px solid transparent;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--grad); color: #06070c; box-shadow: var(--shadow-glow); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 0 0 1px rgba(0,174,239,.4), 0 26px 60px -16px rgba(0,174,239,.55); }
.btn-ghost { background: rgba(255,255,255,.04); color: var(--text); border-color: var(--line-strong); }
.btn-ghost:hover { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.24); transform: translateY(-2px); }
.btn-sm { padding: 9px 16px; font-size: .88rem; }
.btn-lg { padding: 15px 30px; font-size: 1.02rem; }
.link-arrow { display: inline-flex; align-items: center; gap: 6px; color: var(--brand-2); font-weight: 600; }
.link-arrow svg { transition: transform .2s; }
.link-arrow:hover svg { transform: translateX(4px); }

/* ---------- Badges / chips ---------- */
.chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 13px; border-radius: 999px; font-size: .8rem; font-weight: 500;
  background: rgba(255,255,255,.04); border: 1px solid var(--line); color: var(--text-2);
}
.chip .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 10px var(--ok); }
.pill-grad {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px;
  font-size: .8rem; font-weight: 600; color: var(--text);
  background: var(--grad-soft); border: 1px solid rgba(0,174,239,.28);
}

/* ---------- Cards ---------- */
.card {
  background: linear-gradient(180deg, var(--surface), var(--bg-2));
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; position: relative; transition: border-color .25s, transform .25s, box-shadow .25s;
}
.card:hover { border-color: var(--line-strong); transform: translateY(-3px); box-shadow: var(--shadow); }
.card-icon {
  width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center;
  background: var(--grad-soft); border: 1px solid rgba(0,174,239,.25); margin-bottom: 18px; color: var(--brand-2);
}
.card h3 { font-size: 1.12rem; margin-bottom: 8px; }
.card p { color: var(--text-2); font-size: .95rem; }

/* Card with top gradient hairline on hover */
.card--glow::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px;
  background: var(--grad); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude; opacity: 0; transition: opacity .3s;
}
.card--glow:hover::before { opacity: .55; }

/* ---------- Navbar ---------- */
.nav {
  position: sticky; top: 0; z-index: 100; height: var(--nav-h);
  backdrop-filter: blur(14px); background: rgba(5,6,10,.72);
  border-bottom: 1px solid transparent; transition: border-color .3s, background .3s;
}
.nav.scrolled { border-bottom-color: var(--line); background: rgba(5,6,10,.86); }
.nav-inner { height: 100%; display: flex; align-items: center; gap: 32px; }
.brand { display: flex; align-items: center; gap: 9px; font-weight: 700; font-size: 1.2rem; letter-spacing: -.02em; }
.brand-mark { height: 30px; width: auto; display: block; }
.brand .wm-ai { color: var(--text-3); font-weight: 600; }
.nav-links { display: flex; align-items: center; gap: 4px; margin-left: 8px; }
.nav-links a {
  padding: 8px 14px; border-radius: 8px; font-size: .93rem; color: var(--text-2);
  transition: color .2s, background .2s;
}
.nav-links a:hover, .nav-links a.active { color: var(--text); background: rgba(255,255,255,.05); }
.nav-cta { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.nav-cta .sign-in { color: var(--text-2); font-size: .93rem; font-weight: 500; }
.nav-cta .sign-in:hover { color: var(--text); }
.nav-toggle { display: none; width: 42px; height: 42px; border-radius: 10px; border: 1px solid var(--line); }
.nav-toggle span { display: block; width: 18px; height: 2px; background: var(--text); margin: 3px auto; border-radius: 2px; transition: .25s; }

/* Dropdown / mega menu */
.nav-item { position: relative; display: flex; align-items: center; height: 100%; }
.nav-top { display: inline-flex; align-items: center; gap: 5px; padding: 8px 14px; border-radius: 8px; font-size: .93rem; color: var(--text-2); cursor: pointer; transition: color .2s, background .2s; }
.nav-top:hover, .nav-item.active .nav-top { color: var(--text); background: rgba(255,255,255,.05); }
.nav-top .caret { transition: transform .2s; opacity: .7; }
.nav-item:hover .nav-top .caret { transform: rotate(180deg); }
.mega {
  position: absolute; top: calc(100% + 4px); left: 50%; transform: translateX(-50%) translateY(8px);
  min-width: 560px; padding: 14px; border-radius: 16px; border: 1px solid var(--line-strong);
  background: rgba(10,12,18,.97); backdrop-filter: blur(16px); box-shadow: var(--shadow);
  opacity: 0; visibility: hidden; transition: opacity .2s, transform .2s; z-index: 120;
}
/* invisible hover bridge so the menu stays open while the cursor crosses the gap */
.mega::before { content: ""; position: absolute; left: 0; right: 0; top: -14px; height: 14px; }
.mega.single { min-width: 260px; }
.nav-item:hover .mega { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.mega-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; }
.mega-link { display: flex; gap: 12px; align-items: flex-start; padding: 11px 12px; border-radius: 10px; transition: background .18s; }
.mega-link:hover { background: rgba(255,255,255,.05); }
.mega-link .m-ico { flex: none; width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; background: var(--grad-soft); border: 1px solid rgba(31,143,230,.25); color: var(--brand-2); }
.mega-link b { font-size: .88rem; font-weight: 600; display: block; color: var(--text); }
.mega-link small { font-size: .76rem; color: var(--text-3); line-height: 1.4; }
.mega-foot { margin-top: 8px; padding: 12px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; }
.mega-foot span { font-size: .82rem; color: var(--text-3); }

/* Announcement bar */
.announce {
  background: var(--grad-soft); border-bottom: 1px solid rgba(0,174,239,.18);
  font-size: .85rem; text-align: center; padding: 9px 16px; color: var(--text);
}
.announce a { font-weight: 600; color: var(--brand-2); }
.announce .link-arrow svg { width: 14px; height: 14px; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 72px 0 64px; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: -20% -10% auto -10%; height: 620px; z-index: 0;
  background: var(--glow-cyan), var(--glow-violet); filter: blur(20px); opacity: .8;
}
.hero-inner { position: relative; z-index: 1; text-align: center; }
.hero .h1 { margin: 22px auto 20px; max-width: 15ch; }
.hero .lead { max-width: 620px; margin: 0 auto 32px; }
.hero-cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.hero-trust { margin-top: 30px; display: flex; gap: 10px 22px; justify-content: center; flex-wrap: wrap; color: var(--text-3); font-size: .82rem; }
.hero-trust span { display: inline-flex; align-items: center; gap: 7px; }
.hero-trust svg { color: var(--ok); }

/* Grid backdrop */
.grid-bg { position: absolute; inset: 0; z-index: 0; opacity: .5;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 52px 52px;
  -webkit-mask-image: radial-gradient(70% 60% at 50% 30%, #000 30%, transparent 75%);
  mask-image: radial-gradient(70% 60% at 50% 30%, #000 30%, transparent 75%);
}

/* ---------- Product demo panel (terminal / agent) ---------- */
.demo {
  position: relative; z-index: 1; max-width: 960px; margin: 54px auto 0;
  border-radius: var(--radius-lg); border: 1px solid var(--line-strong);
  background: linear-gradient(180deg, var(--surface-2), var(--bg-2));
  box-shadow: var(--shadow); overflow: hidden;
}
.demo::after { content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none;
  background: linear-gradient(120deg, rgba(0,174,239,.5), transparent 40%, transparent 60%, rgba(243,112,33,.5));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; }
.demo-bar { display: flex; align-items: center; gap: 8px; padding: 12px 16px; border-bottom: 1px solid var(--line); background: rgba(255,255,255,.02); }
.demo-bar .dots { display: flex; gap: 6px; }
.demo-bar .dots i { width: 11px; height: 11px; border-radius: 50%; background: #2a2f3c; }
.demo-bar .title { font-size: .8rem; color: var(--text-3); margin-left: 6px; font-family: var(--mono); }
.demo-bar .live { margin-left: auto; }
.demo-body { display: grid; grid-template-columns: 1.1fr .9fr; min-height: 340px; }
.demo-terminal { padding: 20px 22px; font-family: var(--mono); font-size: .84rem; line-height: 1.9; border-right: 1px solid var(--line); }
.demo-terminal .ln { opacity: 0; transform: translateY(4px); animation: lineIn .5s forwards; }
.demo-terminal .prompt { color: var(--brand-2); }
.demo-terminal .ok { color: var(--ok); }
.demo-terminal .warn { color: var(--warn); }
.demo-terminal .dim { color: var(--text-3); }
.demo-side { padding: 20px 22px; display: flex; flex-direction: column; gap: 14px; background: rgba(255,255,255,.015); }
.demo-side .agent-step { display: flex; gap: 12px; align-items: flex-start; opacity: .35; transition: opacity .4s; }
.demo-side .agent-step.on { opacity: 1; }
.demo-side .agent-step .num { flex: none; width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; font-size: .78rem; font-weight: 700; background: var(--grad-soft); border: 1px solid rgba(0,174,239,.3); color: var(--brand-2); }
.demo-side .agent-step.on .num { background: var(--grad); color: #06070c; }
.demo-side .agent-step h5 { font-size: .9rem; }
.demo-side .agent-step p { font-size: .78rem; color: var(--text-3); }
@keyframes lineIn { to { opacity: 1; transform: none; } }

/* ---------- Logo cloud ---------- */
.logo-cloud { padding: 40px 0 8px; }
.logo-cloud p { text-align: center; color: var(--text-3); font-size: .82rem; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 26px; }
.logo-row { display: flex; flex-wrap: wrap; gap: 14px 44px; justify-content: center; align-items: center; opacity: .8; }
.logo-row .logo-item { color: var(--text-2); font-weight: 700; font-size: 1.1rem; letter-spacing: -.01em; display: inline-flex; align-items: center; gap: 8px; filter: grayscale(1); opacity: .7; transition: .3s; }
.logo-row .logo-item:hover { filter: none; opacity: 1; }

/* ---------- Metrics band ---------- */
.metrics { display: grid; grid-template-columns: repeat(4,1fr); gap: 20px; }
.metric { text-align: center; padding: 22px; border-radius: var(--radius); border: 1px solid var(--line); background: linear-gradient(180deg, var(--surface), var(--bg-2)); }
.metric .num { font-size: clamp(2rem, 3.6vw, 2.8rem); font-weight: 800; letter-spacing: -.03em; }
.metric .lbl { color: var(--text-2); font-size: .9rem; margin-top: 6px; }

/* ---------- Feature rows (alternating) ---------- */
.feature-row { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.feature-row + .feature-row { margin-top: 100px; }
.feature-row.reverse .feature-media { order: -1; }
.feature-copy .eyebrow { margin-bottom: 14px; }
.feature-copy h3 { font-size: clamp(1.5rem, 2.6vw, 2rem); margin-bottom: 14px; }
.feature-copy p { color: var(--text-2); margin-bottom: 20px; }
.feature-list li { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 12px; color: var(--text-2); font-size: .95rem; }
.feature-list svg { flex: none; margin-top: 3px; color: var(--brand-2); }
.feature-media {
  border-radius: var(--radius-lg); border: 1px solid var(--line-strong); background: linear-gradient(160deg, var(--surface-2), var(--bg-2));
  padding: 22px; min-height: 300px; position: relative; overflow: hidden; box-shadow: var(--shadow);
}
.feature-media::before { content: ""; position: absolute; inset: 0; background: var(--glow-cyan); opacity: .18; }

/* Mini dashboard/mock elements used inside media panels */
.mock-row { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 10px; border: 1px solid var(--line); background: rgba(255,255,255,.02); margin-bottom: 10px; position: relative; z-index: 1; }
.mock-row .ico { width: 30px; height: 30px; border-radius: 8px; background: var(--grad-soft); display: grid; place-items: center; color: var(--brand-2); flex: none; }
.mock-row .meta { flex: 1; min-width: 0; }
.mock-row .meta b { font-size: .86rem; font-weight: 600; display: block; }
.mock-row .meta small { color: var(--text-3); font-size: .76rem; }
.mock-row .tag { font-size: .72rem; font-weight: 600; padding: 3px 9px; border-radius: 999px; }
.tag.ok { color: var(--ok); background: rgba(52,211,153,.12); }
.tag.warn { color: var(--warn); background: rgba(251,191,36,.12); }
.tag.run { color: var(--brand-2); background: rgba(34,211,238,.12); }
.bar { height: 8px; border-radius: 999px; background: rgba(255,255,255,.07); overflow: hidden; }
.bar > i { display: block; height: 100%; background: var(--grad); border-radius: inherit; }

/* ---------- Steps / how it works ---------- */
.steps { display: grid; grid-template-columns: repeat(4,1fr); gap: 20px; counter-reset: step; }
.step { padding: 26px 22px; border-radius: var(--radius); border: 1px solid var(--line); background: linear-gradient(180deg, var(--surface), var(--bg-2)); position: relative; }
.step .n { font-family: var(--mono); font-size: .8rem; color: var(--brand-2); font-weight: 600; }
.step h4 { margin: 12px 0 8px; font-size: 1.05rem; }
.step p { color: var(--text-2); font-size: .9rem; }
.step-connector { position: absolute; top: 40px; right: -12px; color: var(--text-3); }

/* ---------- Security band ---------- */
.trust-band { border-radius: var(--radius-lg); border: 1px solid var(--line); background: linear-gradient(120deg, var(--surface-2), var(--bg-2)); padding: 44px; position: relative; overflow: hidden; }
.trust-band::before { content: ""; position: absolute; inset: 0; background: var(--glow-violet); opacity: .2; }
.badge-grid { display: flex; flex-wrap: wrap; gap: 12px; position: relative; z-index: 1; }
.badge { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 10px; border: 1px solid var(--line-strong); background: rgba(255,255,255,.03); font-size: .85rem; font-weight: 600; }
.badge svg { color: var(--brand-2); }

/* ---------- Persona / use case cards ---------- */
.persona-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 22px; }
.persona { padding: 30px; border-radius: var(--radius-lg); border: 1px solid var(--line); background: linear-gradient(180deg, var(--surface), var(--bg-2)); transition: .25s; }
.persona:hover { border-color: var(--line-strong); transform: translateY(-3px); box-shadow: var(--shadow); }
.persona .card-icon { width: 52px; height: 52px; }
.persona h3 { font-size: 1.25rem; margin-bottom: 10px; }
.persona ul { margin-top: 16px; }
.persona ul li { display: flex; gap: 10px; padding: 8px 0; border-top: 1px solid var(--line); color: var(--text-2); font-size: .9rem; }
.persona ul li svg { flex: none; color: var(--brand-2); margin-top: 3px; }

/* ---------- Tabs ---------- */
.tabs { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; margin-bottom: 36px; }
.tab { padding: 10px 18px; border-radius: 999px; border: 1px solid var(--line); background: rgba(255,255,255,.02); color: var(--text-2); font-weight: 600; font-size: .9rem; transition: .2s; }
.tab.active { background: var(--grad); color: #06070c; border-color: transparent; }
.tab-panel { display: none; }
.tab-panel.active { display: block; animation: fadeUp .4s; }

/* ---------- FAQ ---------- */
.faq { max-width: 800px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q { width: 100%; text-align: left; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 22px 4px; font-size: 1.05rem; font-weight: 600; }
.faq-q .ic { flex: none; width: 24px; height: 24px; display: grid; place-items: center; color: var(--brand-2); transition: transform .3s; }
.faq-item.open .faq-q .ic { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .35s ease; }
.faq-a p { padding: 0 4px 22px; color: var(--text-2); }

/* ---------- Pricing ---------- */
.price-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 22px; align-items: stretch; }
.price { display: flex; flex-direction: column; padding: 30px; border-radius: var(--radius-lg); border: 1px solid var(--line); background: linear-gradient(180deg, var(--surface), var(--bg-2)); }
.price.featured { border-color: transparent; box-shadow: var(--shadow-glow); position: relative; }
.price.featured::before { content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; background: var(--grad); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; }
.price .plan { font-size: 1.05rem; font-weight: 700; }
.price .amount { font-size: 2.6rem; font-weight: 800; letter-spacing: -.03em; margin: 14px 0 4px; }
.price .amount small { font-size: .95rem; font-weight: 500; color: var(--text-3); }
.price .desc { color: var(--text-2); font-size: .9rem; min-height: 40px; }
.price ul { margin: 22px 0; flex: 1; }
.price ul li { display: flex; gap: 10px; padding: 9px 0; color: var(--text-2); font-size: .9rem; }
.price ul li svg { flex: none; color: var(--brand-2); margin-top: 3px; }
.price-tag { align-self: flex-start; margin-bottom: 4px; }

/* Comparison table */
.compare { width: 100%; border-collapse: collapse; font-size: .92rem; }
.compare th, .compare td { padding: 15px 18px; text-align: left; border-bottom: 1px solid var(--line); }
.compare thead th { color: var(--text-3); font-weight: 600; font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; }
.compare tbody td:not(:first-child) { text-align: center; }
.compare td svg { color: var(--brand-2); margin: 0 auto; }
.compare .row-cat td { background: rgba(255,255,255,.02); font-weight: 700; color: var(--text); }

/* ---------- CTA band ---------- */
.cta-band { text-align: center; border-radius: var(--radius-lg); padding: 68px 32px; position: relative; overflow: hidden; border: 1px solid var(--line-strong); background: linear-gradient(120deg, var(--surface-2), var(--bg-2)); }
.cta-band::before { content: ""; position: absolute; inset: 0; background: var(--glow-cyan), var(--glow-violet); opacity: .3; }
.cta-band > * { position: relative; z-index: 1; }
.cta-band .h2 { max-width: 18ch; margin: 0 auto 18px; }
.cta-band .lead { max-width: 540px; margin: 0 auto 30px; }
.cta-band .hero-cta { justify-content: center; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); padding: 66px 0 34px; margin-top: 40px; }
.footer-top { display: grid; grid-template-columns: 1.6fr repeat(4, 1fr); gap: 40px; }
.footer-brand p { color: var(--text-2); font-size: .9rem; margin: 16px 0 20px; max-width: 34ch; }
.footer-social { display: flex; gap: 10px; }
.footer-social a { width: 38px; height: 38px; border-radius: 10px; border: 1px solid var(--line); display: grid; place-items: center; color: var(--text-2); transition: .2s; }
.footer-social a:hover { color: var(--text); border-color: var(--line-strong); background: rgba(255,255,255,.04); }
.footer-col h5 { font-size: .82rem; text-transform: uppercase; letter-spacing: .08em; color: var(--text-3); margin-bottom: 16px; }
.footer-col a { display: block; color: var(--text-2); font-size: .9rem; padding: 6px 0; transition: color .2s; }
.footer-col a:hover { color: var(--text); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 48px; padding-top: 26px; border-top: 1px solid var(--line); color: var(--text-3); font-size: .85rem; }
.footer-bottom .legal { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-bottom .legal a:hover { color: var(--text-2); }

/* ---------- Page hero (inner pages) ---------- */
.page-hero { padding: 70px 0 40px; text-align: center; position: relative; overflow: hidden; }
.page-hero::before { content: ""; position: absolute; inset: -30% 0 auto 0; height: 460px; z-index: 0; background: var(--glow-cyan), var(--glow-violet); opacity: .5; }
.page-hero > .container { position: relative; z-index: 1; }
.page-hero .h1 { margin: 18px auto 16px; max-width: 18ch; }
.page-hero .lead { max-width: 620px; margin: 0 auto; }

/* ---------- Architecture diagram (platform) ---------- */
.arch { border-radius: var(--radius-lg); border: 1px solid var(--line-strong); background: linear-gradient(160deg, var(--surface-2), var(--bg-2)); padding: 34px; position: relative; overflow: hidden; }
.arch::before { content:""; position:absolute; inset:0; background: var(--glow-violet); opacity:.16; }
.arch-layer { position: relative; z-index: 1; border: 1px dashed var(--line-strong); border-radius: 14px; padding: 18px; margin-bottom: 16px; }
.arch-layer:last-child { margin-bottom: 0; }
.arch-layer .layer-label { font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; color: var(--text-3); margin-bottom: 12px; }
.arch-nodes { display: flex; gap: 12px; flex-wrap: wrap; }
.arch-node { flex: 1; min-width: 130px; padding: 14px; border-radius: 10px; border: 1px solid var(--line); background: rgba(255,255,255,.03); text-align: center; font-size: .86rem; font-weight: 600; }
.arch-node.kernel { background: var(--grad); color: #06070c; border-color: transparent; }
.arch-node small { display: block; font-weight: 400; color: var(--text-3); font-size: .74rem; margin-top: 3px; }
.arch-node.kernel small { color: rgba(6,7,12,.7); }

/* ---------- Integrations ---------- */
.int-grid { display: grid; grid-template-columns: repeat(6,1fr); gap: 14px; }
.int { aspect-ratio: 1.4; border-radius: 12px; border: 1px solid var(--line); background: rgba(255,255,255,.02); display: grid; place-items: center; gap: 6px; text-align: center; font-size: .78rem; color: var(--text-2); font-weight: 600; transition: .2s; }
.int:hover { border-color: var(--line-strong); background: rgba(255,255,255,.05); color: var(--text); }
.int .ico { width: 30px; height: 30px; color: var(--brand-2); }

/* ---------- Values / about ---------- */
.values-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 22px; }
.timeline { max-width: 760px; margin: 0 auto; }
.tl-item { display: grid; grid-template-columns: 90px 1fr; gap: 22px; padding-bottom: 28px; position: relative; }
.tl-item::before { content:""; position: absolute; left: 96px; top: 8px; bottom: -6px; width: 1px; background: var(--line); }
.tl-item:last-child::before { display: none; }
.tl-year { font-family: var(--mono); color: var(--brand-2); font-weight: 600; font-size: .92rem; }
.tl-item .tl-body { position: relative; padding-left: 22px; }
.tl-item .tl-body::before { content:""; position: absolute; left: -1px; top: 6px; width: 10px; height: 10px; border-radius: 50%; background: var(--grad); box-shadow: 0 0 0 4px var(--bg); margin-left:-4px;}
.tl-body h4 { margin-bottom: 6px; }
.tl-body p { color: var(--text-2); font-size: .93rem; }

/* ---------- Scroll reveal ---------- */
[data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
[data-reveal].in { opacity: 1; transform: none; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

/* ---------- Responsive ---------- */
@media (max-width: 940px) {
  .nav-links, .nav-cta .sign-in { display: none; }
  .nav-toggle { display: block; }
  .nav.open .nav-links { display: flex; position: absolute; top: var(--nav-h); left: 0; right: 0; flex-direction: column; align-items: stretch; padding: 14px 24px 22px; background: rgba(5,6,10,.98); border-bottom: 1px solid var(--line); gap: 2px; max-height: calc(100vh - var(--nav-h)); overflow-y: auto; }
  .nav.open .nav-links a { padding: 12px 14px; }
  .nav-item { display: block; }
  .mega { position: static; transform: none; min-width: 0; width: 100%; padding: 4px 0 8px 12px; border: none; background: none; box-shadow: none; opacity: 1; visibility: visible; display: none; }
  .nav-item.expanded .mega { display: block; }
  .mega-grid { grid-template-columns: 1fr; }
  .mega-foot, .mega .mega-lead-desc { display: none; }
  .nav-item:hover .mega { transform: none; }
  .demo-body { grid-template-columns: 1fr; }
  .demo-terminal { border-right: none; border-bottom: 1px solid var(--line); }
  .feature-row, .feature-row.reverse .feature-media { grid-template-columns: 1fr; order: 0; }
  .feature-row.reverse .feature-copy { order: -1; }
  .metrics { grid-template-columns: repeat(2,1fr); }
  .steps { grid-template-columns: repeat(2,1fr); }
  .step-connector { display: none; }
  .persona-grid, .price-grid, .values-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .int-grid { grid-template-columns: repeat(3,1fr); }
  .compare-wrap { overflow-x: auto; }
}
@media (max-width: 560px) {
  .section { padding: 68px 0; }
  .metrics, .footer-top, .int-grid { grid-template-columns: 1fr 1fr; }
  .hero .h1 { font-size: 2.4rem; }
  .btn-lg { padding: 13px 24px; }
}
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; scroll-behavior: auto; } [data-reveal]{opacity:1;transform:none;} }

/* ==========================================================================
   Additions: forms, overview, big quote, works-with, related, callouts
   ========================================================================== */

/* Overview / narrative split */
.overview { display: grid; grid-template-columns: .9fr 1.1fr; gap: 48px; align-items: start; }
.overview .lead-xl { font-size: clamp(1.4rem, 2.4vw, 1.9rem); font-weight: 600; letter-spacing: -.02em; line-height: 1.35; }
.overview .lead-xl b { background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.overview .body p { color: var(--text-2); margin-bottom: 16px; }
.overview .body p:last-child { margin-bottom: 0; }
.overview .facts { margin-top: 22px; display: flex; flex-wrap: wrap; gap: 10px; }

/* Big quote */
.quote-lg { max-width: 900px; margin: 0 auto; text-align: center; padding: 8px 0; }
.quote-lg .mark { font-size: 3rem; line-height: 1; background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.quote-lg p { font-size: clamp(1.3rem, 2.3vw, 1.75rem); font-weight: 600; letter-spacing: -.02em; line-height: 1.4; margin: 8px 0 20px; }
.quote-lg .by { color: var(--text-2); font-size: .92rem; }
.quote-lg .by b { color: var(--text); }

/* Works-with chips */
.chips-row { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.chip-int { display: inline-flex; align-items: center; gap: 9px; padding: 10px 16px; border-radius: 999px; border: 1px solid var(--line); background: rgba(255,255,255,.02); font-size: .88rem; font-weight: 600; color: var(--text-2); transition: .2s; }
.chip-int:hover { border-color: var(--line-strong); color: var(--text); background: rgba(255,255,255,.05); }
.chip-int .d { width: 7px; height: 7px; border-radius: 50%; background: var(--grad); }

/* Related module / link cards */
.related-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; }
.related { display: block; padding: 24px; border-radius: var(--radius); border: 1px solid var(--line); background: linear-gradient(180deg, var(--surface), var(--bg-2)); transition: .25s; }
.related:hover { border-color: var(--line-strong); transform: translateY(-3px); box-shadow: var(--shadow); }
.related .card-icon { width: 42px; height: 42px; margin-bottom: 14px; }
.related h4 { font-size: 1.02rem; margin-bottom: 6px; display: flex; align-items: center; gap: 6px; }
.related h4 .arr { color: var(--brand-2); transition: transform .2s; }
.related:hover h4 .arr { transform: translateX(3px); }
.related p { color: var(--text-2); font-size: .88rem; }

/* Callout strip (icon + text bullets) */
.callout { display: grid; grid-template-columns: repeat(3,1fr); gap: 22px; }
.callout .c { display: flex; gap: 14px; align-items: flex-start; }
.callout .c .ci { flex: none; width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; background: var(--grad-soft); border: 1px solid rgba(31,143,230,.25); color: var(--brand-2); }
.callout .c h4 { font-size: 1rem; margin-bottom: 4px; }
.callout .c p { color: var(--text-2); font-size: .9rem; }

/* ---------- Contact / demo form ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: 48px; align-items: start; }
.contact-aside .h2 { margin-bottom: 16px; }
.contact-benefits { margin-top: 26px; }
.contact-benefits li { display: flex; gap: 12px; align-items: flex-start; padding: 12px 0; border-top: 1px solid var(--line); color: var(--text-2); font-size: .94rem; }
.contact-benefits li svg { flex: none; color: var(--brand-2); margin-top: 3px; }
.contact-trust { margin-top: 26px; display: flex; flex-wrap: wrap; gap: 8px; }

.cform { padding: 30px; border-radius: var(--radius-lg); border: 1px solid var(--line-strong); background: linear-gradient(180deg, var(--surface-2), var(--bg-2)); box-shadow: var(--shadow); position: relative; overflow: hidden; }
.cform::before { content: ""; position: absolute; inset: 0; background: var(--glow-cyan); opacity: .12; pointer-events: none; }
.cform > * { position: relative; z-index: 1; }
.form-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { margin-bottom: 16px; display: flex; flex-direction: column; gap: 7px; }
.field label { font-size: .82rem; font-weight: 600; color: var(--text-2); }
.field label .req { color: var(--orange); }
.field input, .field select, .field textarea {
  width: 100%; padding: 12px 14px; border-radius: 10px; border: 1px solid var(--line-strong);
  background: rgba(255,255,255,.03); color: var(--text); font-family: inherit; font-size: .93rem;
  transition: border-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; min-height: 96px; }
.field input::placeholder, .field textarea::placeholder { color: var(--text-3); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--brand-2); box-shadow: 0 0 0 3px rgba(22,192,230,.18); }
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%236f778c' stroke-width='2.5' viewBox='0 0 24 24'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 40px; }
.field.error input, .field.error select, .field.error textarea { border-color: var(--danger); box-shadow: 0 0 0 3px rgba(251,113,133,.15); }
.field .err-msg { display: none; color: var(--danger); font-size: .78rem; }
.field.error .err-msg { display: block; }
.cform .btn-primary { width: 100%; margin-top: 6px; }
.form-note { font-size: .78rem; color: var(--text-3); margin-top: 12px; text-align: center; }
.form-success { display: none; text-align: center; padding: 24px 6px; }
.form-success.show { display: block; animation: fadeUp .4s; }
.form-success .tick { width: 62px; height: 62px; border-radius: 50%; margin: 0 auto 18px; display: grid; place-items: center; background: var(--grad-soft); border: 1px solid rgba(34,192,138,.4); color: var(--ok); }
.form-success h3 { margin-bottom: 8px; }
.form-success p { color: var(--text-2); }

@media (max-width: 940px) {
  .overview, .contact-grid { grid-template-columns: 1fr; gap: 32px; }
  .related-grid, .callout { grid-template-columns: 1fr; }
  .form-2 { grid-template-columns: 1fr; }
}

/* Responsive: collapse inline-column card grids on small screens */
@media (max-width: 900px) {
  .grid[style*="repeat"] { grid-template-columns: repeat(2,1fr) !important; }
}
@media (max-width: 560px) {
  .grid[style*="repeat"] { grid-template-columns: 1fr !important; }
}

/* ---------- DFD Level-0 system-context diagram ---------- */
.dfd { max-width: 940px; margin: 0 auto; }
.dfd-row { display: flex; justify-content: center; gap: 18px; flex-wrap: wrap; }
.dfd-node { position: relative; flex: 1 1 0; min-width: 180px; max-width: 320px; padding: 16px 18px; border-radius: 14px; border: 1px solid var(--line-strong); background: linear-gradient(180deg, var(--surface-2), var(--bg-2)); text-align: center; }
.dfd-node b { display: block; font-size: .98rem; font-weight: 700; }
.dfd-node small { display: block; color: var(--text-3); font-size: .76rem; margin-top: 3px; }
.dfd-node .n-ic { width: 34px; height: 34px; border-radius: 9px; margin: 0 auto 8px; display: grid; place-items: center; }
.dfd-node.entity { max-width: 360px; }
.dfd-node.portal { max-width: 620px; border-color: rgba(0,174,239,.5); box-shadow: 0 0 0 1px rgba(0,174,239,.15), 0 18px 44px -22px rgba(0,174,239,.4); }
.dfd-node.portal b { font-size: 1.15rem; }
/* accent variants */
.dfd-node .n-ic { background: var(--grad-soft); border: 1px solid rgba(0,174,239,.3); color: var(--brand-2); }
.dfd-node.a-cyan .n-ic { background: rgba(0,174,239,.14); border-color: rgba(0,174,239,.4); color: #00aeef; }
.dfd-node.a-teal .n-ic { background: rgba(0,180,141,.14); border-color: rgba(0,180,141,.4); color: #00b48d; }
.dfd-node.a-orange .n-ic { background: rgba(243,112,33,.14); border-color: rgba(243,112,33,.4); color: #f37021; }
.dfd-node.a-magenta .n-ic { background: rgba(192,57,139,.14); border-color: rgba(192,57,139,.4); color: #c0398b; }
.dfd-node.a-green .n-ic { background: rgba(0,180,141,.14); border-color: rgba(0,180,141,.4); color: #00b48d; }
.dfd-node.a-blue .n-ic { background: rgba(0,174,239,.14); border-color: rgba(0,174,239,.4); color: #00aeef; }
.dfd-node.a-cyan { border-color: rgba(0,174,239,.35); }
.dfd-node.a-teal { border-color: rgba(0,180,141,.35); }
.dfd-node.a-orange { border-color: rgba(243,112,33,.35); }
.dfd-conn { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 12px 0; }
.dfd-conn .line { width: 2px; height: 26px; background: linear-gradient(var(--brand-2), transparent); border-radius: 2px; }
.dfd-conn .lbl { font-family: var(--mono); font-size: .72rem; color: var(--text-3); letter-spacing: .06em; }
.dfd-ext { border: 1px dashed var(--line-strong); border-radius: 16px; padding: 22px; background: rgba(255,255,255,.015); }
.dfd-ext .ext-title { text-align: center; font-weight: 700; font-size: .95rem; margin-bottom: 18px; color: var(--text); }
.dfd-ext-grid { display: grid; grid-template-columns: repeat(7,1fr); gap: 12px; }
.dfd-ext-grid .ext { text-align: center; }
.dfd-ext-grid .ext .badge-ic { width: 44px; height: 44px; margin: 0 auto 8px; border-radius: 12px; display: grid; place-items: center; border: 1px solid var(--line-strong); background: rgba(255,255,255,.03); color: var(--text); font-weight: 800; font-size: .72rem; }
.dfd-ext-grid .ext small { font-size: .72rem; color: var(--text-2); display: block; }
.dfd-legend { display: flex; flex-wrap: wrap; gap: 14px 22px; justify-content: center; margin-top: 30px; }
.dfd-legend span { display: inline-flex; align-items: center; gap: 8px; font-size: .8rem; color: var(--text-3); }
.dfd-legend i { width: 20px; height: 12px; border-radius: 4px; border: 1px solid var(--line-strong); display: inline-block; }
.dfd-legend .l-entity { background: rgba(255,255,255,.05); }
.dfd-legend .l-proc { background: rgba(0,174,239,.18); border-color: rgba(0,174,239,.5); }
.dfd-legend .l-store { background: rgba(0,180,141,.16); border-color: rgba(0,180,141,.5); }
.dfd-legend .l-ext { background: transparent; border-style: dashed; }
@media (max-width: 820px) {
  .dfd-node { flex-basis: 100%; max-width: 100% !important; }
  .dfd-ext-grid { grid-template-columns: repeat(3,1fr); gap: 16px; }
}

/* ---------- Pricing: 4-plan layout + accents ---------- */
.price-grid.cols-4 { grid-template-columns: repeat(4,1fr); gap: 16px; }
.price-grid.cols-4 .price { padding: 24px 22px; }
.price-grid.cols-4 .amount { font-size: 1.7rem; }
.plan-accent { height: 5px; width: 46px; border-radius: 3px; margin-bottom: 14px; }
.acc-teal { background: #14b8b8; } .acc-blue { background: #2f8fe6; }
.acc-orange { background: #f37021; } .acc-green { background: #00b48d; }
.plan-modules { margin: 18px 0; flex: 1; }
.plan-modules li { display: flex; gap: 9px; padding: 7px 0; color: var(--text-2); font-size: .88rem; align-items: flex-start; }
.plan-modules li svg { flex: none; margin-top: 2px; }
.plan-modules li.on svg { color: var(--brand-3); }
.plan-modules li.off { color: var(--text-3); opacity: .55; }
.plan-modules li.off svg { color: var(--text-3); }
.compare td .yes { color: var(--brand-3); }
.compare td .no { color: var(--text-3); opacity: .5; }
@media (max-width: 1000px) { .price-grid.cols-4 { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 600px)  { .price-grid.cols-4 { grid-template-columns: 1fr; } }

/* ---------- Official logo image (nav/footer) ---------- */
.brand-logo { height: 30px; width: auto; display: block; }
@media (max-width: 560px) { .brand-logo { height: 26px; } }

/* ---------- Hero brand showcase (replaces terminal) ---------- */
.demo-brand { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 30px 24px; gap: 16px; }
.demo-brand img { width: min(320px, 78%); height: auto; }
.demo-brand .tagline { color: var(--text-2); font-size: .98rem; max-width: 28ch; line-height: 1.5; }
.demo-brand .chips { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 4px; }
.demo-brand .chips .chip { font-size: .74rem; }

/* ---------- Product screenshot frame ---------- */
.shot { max-width: 980px; margin: 0 auto; border-radius: var(--radius-lg); border: 1px solid var(--line-strong); background: #fff; overflow: hidden; box-shadow: var(--shadow); }
.shot-bar { display: flex; align-items: center; gap: 7px; padding: 10px 14px; background: #0d1018; border-bottom: 1px solid var(--line); }
.shot-bar > span { width: 11px; height: 11px; border-radius: 50%; background: #2a2f3c; flex: none; }
.shot-bar .shot-title { margin-left: 8px; width: auto; height: auto; border-radius: 0; background: none; font-family: var(--mono); font-size: .8rem; color: var(--text-3); }
.shot img { display: block; width: 100%; height: auto; }

/* ---------- Cloud Atlas: live topology map ---------- */
.topo { max-width: 960px; margin: 0 auto; border-radius: var(--radius-lg); border: 1px solid var(--line-strong); background: linear-gradient(160deg, var(--surface-2), var(--bg-2)); padding: 30px 26px; position: relative; overflow: hidden; }
.topo::before { content:""; position:absolute; inset:0; background: var(--glow-cyan); opacity:.10; }
.topo-inner { position: relative; z-index: 1; }
.topo-row { display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; }
.topo-node { position: relative; flex: 1 1 0; min-width: 158px; max-width: 260px; padding: 14px 16px; border-radius: 12px; border: 1px solid var(--line-strong); background: rgba(255,255,255,.03); }
.topo-node .topo-ic { width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; background: rgba(255,255,255,.05); color: var(--text-2); margin-bottom: 9px; }
.topo-node b { display: block; font-size: .9rem; }
.topo-node small { display: block; font-size: .72rem; color: var(--text-3); margin-top: 2px; }
.topo-node.entity { max-width: 320px; text-align: center; }
.topo-node.entity .topo-ic { margin: 0 auto 9px; }
.topo-sev { position: absolute; top: 11px; right: 11px; font-size: .62rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; padding: 3px 8px; border-radius: 999px; }
.topo-node.sev-crit { border-color: rgba(251,113,133,.55); } .topo-node.sev-crit .topo-sev { background: rgba(251,113,133,.16); color:#fb7185; } .topo-node.sev-crit .topo-ic { color:#fb7185; background: rgba(251,113,133,.12); }
.topo-node.sev-high { border-color: rgba(243,112,33,.5); } .topo-node.sev-high .topo-sev { background: rgba(243,112,33,.16); color:#f37021; } .topo-node.sev-high .topo-ic { color:#f37021; background: rgba(243,112,33,.12); }
.topo-node.sev-med { border-color: rgba(242,160,59,.5); } .topo-node.sev-med .topo-sev { background: rgba(242,160,59,.16); color:#f2a03b; } .topo-node.sev-med .topo-ic { color:#f2a03b; background: rgba(242,160,59,.12); }
.topo-node.sev-ok { border-color: rgba(0,180,141,.4); } .topo-node.sev-ok .topo-sev { background: rgba(0,180,141,.14); color: var(--brand-3); } .topo-node.sev-ok .topo-ic { color: var(--brand-3); background: rgba(0,180,141,.12); }
.topo-conn { display: flex; flex-direction: column; align-items: center; gap: 5px; padding: 9px 0; }
.topo-conn .line { width: 2px; height: 22px; background: linear-gradient(var(--brand-2), transparent); border-radius: 2px; }
.topo-conn .lbl { font-family: var(--mono); font-size: .7rem; color: var(--text-3); letter-spacing: .06em; }
.topo-legend { display: flex; flex-wrap: wrap; gap: 12px 20px; justify-content: center; margin-top: 26px; position: relative; z-index: 1; }
.topo-legend span { display: inline-flex; align-items: center; gap: 8px; font-size: .8rem; color: var(--text-3); }
.topo-legend i { width: 11px; height: 11px; border-radius: 50%; }
.topo-legend .lc { background:#fb7185; } .topo-legend .lh { background:#f37021; } .topo-legend .lm { background:#f2a03b; } .topo-legend .lo { background: var(--brand-3); }
@media (max-width: 760px) { .topo-node { flex-basis: 100%; max-width: 100% !important; } }

/* Dark dropdown option list (fix white-on-white native <option>) */
.field select { color: var(--text); background-color: var(--surface-2); }
.field select option, .field select optgroup { background-color: #12151f; color: #eef1f8; }
