/* Rudder — apresentação pública (cloud.pages.pop.coop/rudder/)
   Paleta derivada da UI do produto (tema escuro) + gradiente do logo. */

:root {
  --bg: #0b0d12;
  --bg-2: #0f1218;
  --panel: #171a21;
  --panel-hi: #1d2129;
  --border: #262b36;
  --border-hi: #373e4d;
  --fg: #e9eaee;
  --fg-dim: #c7c9cd;
  --muted: #8a8f98;
  --accent: #0080f0;
  --accent-strong: #006bd4;
  --magenta: #d63cc4;
  --violet: #6a3df0;
  --orange: #ffa64d;
  --ok: #57c27b;
  --warn: #f0b77e;
  --err: #f7768e;
  --grad: linear-gradient(90deg, #ff3fb0 0%, #6a3df0 45%, #0080f0 100%);
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --max: 1180px;
  --radius: 14px;
  --radius-sm: 8px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }
h1, h2, h3, h4 { line-height: 1.15; margin: 0; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }
code { font-family: var(--mono); font-size: 0.9em; color: var(--fg-dim); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }

/* Top nav */
.topnav {
  position: sticky; top: 0; z-index: 20;
  background: rgba(11, 13, 18, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.topnav .wrap { display: flex; align-items: center; gap: 24px; height: 60px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand img { height: 22px; width: auto; }
.brand-tag { font-size: 12px; color: var(--muted); border-left: 1px solid var(--border-hi); padding-left: 12px; }
.topnav ul { list-style: none; margin: 0 0 0 auto; padding: 0; display: flex; gap: 20px; }
.topnav li a { color: var(--fg-dim); font-size: 14px; white-space: nowrap; }
.topnav li a:hover { color: var(--fg); text-decoration: none; }
.topnav .btn { margin-left: 8px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 18px; border-radius: var(--radius-sm);
  font-weight: 600; font-size: 14.5px; border: 1px solid transparent;
  white-space: nowrap;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--accent-strong); color: #fff; }
.btn-primary:hover { background: var(--accent); }
.btn-ghost { color: var(--fg); border-color: var(--border-hi); background: transparent; }
.btn-ghost:hover { background: var(--panel-hi); }

/* Hero */
.hero { position: relative; overflow: hidden; padding: 88px 0 72px; border-bottom: 1px solid var(--border); }
.hero-bg {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(700px 400px at 12% 0%, rgba(214, 60, 196, 0.16), transparent 60%),
    radial-gradient(800px 500px at 88% 20%, rgba(0, 128, 240, 0.18), transparent 60%);
}
.hero .wrap { position: relative; display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
.eyebrow {
  font-size: 12.5px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--orange); font-weight: 600; margin-bottom: 18px;
}
.hero h1 { font-size: clamp(34px, 4.6vw, 54px); font-weight: 800; }
.hero h1 em { font-style: normal; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-lead { font-size: 18.5px; color: var(--fg-dim); margin: 22px 0 30px; max-width: 56ch; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-note { margin-top: 18px; font-size: 13px; color: var(--muted); }

/* Stats strip */
.strip { border-bottom: 1px solid var(--border); background: var(--bg-2); }
.strip .wrap { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { padding: 26px 22px; border-right: 1px solid var(--border); }
.stat:first-child { padding-left: 0; }
.stat:last-child { border-right: 0; }
.stat b { display: block; font-size: 26px; font-weight: 800; letter-spacing: -0.02em; }
.stat span { color: var(--muted); font-size: 13.5px; }

/* Sections */
section { padding: 88px 0; border-bottom: 1px solid var(--border); }
section.alt { background: var(--bg-2); }
.section-head { max-width: 760px; margin-bottom: 44px; }
.section-head .eyebrow { color: var(--accent); }
.section-head h2 { font-size: clamp(28px, 3.4vw, 40px); font-weight: 800; }
.section-lead { color: var(--fg-dim); font-size: 17.5px; margin-top: 16px; }

/* Cards */
.grid { display: grid; gap: 18px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.card {
  background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 24px; transition: border-color 140ms ease;
}
.card:hover { border-color: var(--border-hi); }
.card h3 { font-size: 17px; font-weight: 700; margin-bottom: 8px; }
.card p { color: var(--fg-dim); font-size: 14.5px; margin: 0; }
.card .icon {
  width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center;
  margin-bottom: 16px; font-size: 18px; background: rgba(0, 128, 240, 0.12); color: var(--accent);
}
.card .stack { margin-top: 14px; font-family: var(--mono); font-size: 12px; color: var(--muted); }
.card.problem .icon { background: rgba(247, 118, 142, 0.12); color: var(--err); }
.card.problem h3 { color: var(--fg); }

/* Split layout with diagram */
.split { display: grid; grid-template-columns: 1fr 1.15fr; gap: 48px; align-items: center; }
.split ul { padding-left: 18px; color: var(--fg-dim); }
.split li { margin-bottom: 10px; }
.split li strong { color: var(--fg); }
.diagram { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; overflow-x: auto; }
.diagram svg { width: 100%; height: auto; min-width: 560px; display: block; }
.diagram-caption { font-size: 12.5px; color: var(--muted); margin: 10px 4px 0; }

/* Mock UI panels */
.mock {
  background: var(--panel); border: 1px solid var(--border-hi); border-radius: var(--radius);
  overflow: hidden; box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
  font-size: 12.5px;
}
.mock-bar {
  display: flex; align-items: center; gap: 10px; padding: 10px 14px;
  background: #12151c; border-bottom: 1px solid var(--border);
}
.mock-bar img { height: 12px; }
.mock-bar .org { font-size: 11px; color: var(--fg-dim); border: 1px solid var(--border-hi); border-radius: 6px; padding: 2px 8px; }
.mock-bar .org::before { content: "●"; color: var(--orange); margin-right: 6px; font-size: 9px; }
.mock-bar .who { margin-left: auto; color: var(--muted); font-size: 11px; }
.mock-body { padding: 16px; }
.mock h4 { font-size: 15px; font-weight: 700; margin-bottom: 2px; }
.mock .sub { color: var(--muted); font-size: 11.5px; margin-bottom: 14px; }
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 14px; }
.kpi { background: var(--bg); border: 1px solid var(--border); border-radius: 8px; padding: 10px 12px; }
.kpi small { display: block; color: var(--muted); font-size: 9.5px; letter-spacing: 0.08em; text-transform: uppercase; }
.kpi b { display: block; font-size: 20px; font-weight: 800; margin: 2px 0; }
.kpi span { color: var(--muted); font-size: 10.5px; }
.rows { display: grid; grid-template-columns: 1.55fr 1fr; gap: 10px; }
.health .line { flex-wrap: nowrap; min-width: 0; }
.health .v { white-space: nowrap; }
.box { min-width: 0; }
.health .line span:first-child { font-size: 10.5px; white-space: nowrap; }
.box { background: var(--bg); border: 1px solid var(--border); border-radius: 8px; padding: 12px; }
.box h5 { margin: 0 0 8px; font-size: 12px; font-weight: 700; }
.box .line { display: flex; gap: 8px; align-items: baseline; padding: 5px 0; border-bottom: 1px dashed var(--border); font-size: 11px; }
.box .line:last-child { border-bottom: 0; }
.box .t { color: var(--muted); font-family: var(--mono); font-size: 10px; white-space: nowrap; }
.box .a { font-weight: 600; }
.box .r { font-family: var(--mono); font-size: 10px; color: var(--fg-dim); }
.box .who { color: var(--muted); }
.chip { margin-left: auto; font-size: 9.5px; padding: 1px 7px; border-radius: 999px; border: 1px solid var(--border-hi); color: var(--muted); font-family: var(--mono); }
.chip.ok { color: var(--ok); border-color: rgba(87, 194, 123, 0.4); }
.chip.hot { color: var(--orange); border-color: rgba(255, 166, 77, 0.4); }
.chip.err { color: var(--err); border-color: rgba(247, 118, 142, 0.4); }
.health .line { justify-content: space-between; }
.health .v { color: var(--ok); font-family: var(--mono); font-size: 10.5px; }
.health .v.neutral { color: var(--fg-dim); }

.mock table { width: 100%; border-collapse: collapse; font-size: 11px; }
.mock th { text-align: left; color: var(--muted); font-weight: 600; font-size: 9.5px; letter-spacing: 0.08em; text-transform: uppercase; padding: 6px 8px; border-bottom: 1px solid var(--border); }
.mock td { padding: 7px 8px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.mock tr:last-child td { border-bottom: 0; }
.mock td.m { font-family: var(--mono); font-size: 10.5px; color: var(--fg-dim); }
.pill { display: inline-block; font-size: 9.5px; padding: 1px 7px; border-radius: 999px; border: 1px solid; font-family: var(--mono); }
.pill.blue { color: #4a90e2; border-color: rgba(74, 144, 226, 0.5); }
.pill.ok { color: var(--ok); border-color: rgba(87, 194, 123, 0.5); }
.pill.orange { color: var(--orange); border-color: rgba(255, 166, 77, 0.5); }
.zones { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.zone { background: var(--bg); border: 1px solid var(--border); border-radius: 8px; padding: 10px 12px; }
.zone .n { font-family: var(--mono); color: var(--orange); font-size: 11.5px; font-weight: 600; margin-bottom: 6px; overflow-wrap: anywhere; }
.zone .d { display: flex; gap: 12px; font-size: 10.5px; color: var(--muted); }
.zone .d b { display: block; color: var(--fg); font-size: 12px; }
.zone .ns { margin-top: 6px; font-size: 9.5px; color: var(--ok); }
.mock-note { font-size: 12px; color: var(--muted); margin-top: 10px; }

/* Security list */
.sec-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px 28px; list-style: none; padding: 0; margin: 0; }
.sec-list li { position: relative; padding-left: 30px; color: var(--fg-dim); font-size: 15px; }
.sec-list li::before {
  content: "✓"; position: absolute; left: 0; top: 1px; width: 20px; height: 20px; border-radius: 6px;
  background: rgba(87, 194, 123, 0.14); color: var(--ok); font-size: 12px; display: grid; place-items: center; font-weight: 700;
}
.sec-list li strong { color: var(--fg); }

/* Tiers */
.tiers { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 8px; }
.tier { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; }
.tier .num { font-family: var(--mono); font-size: 11px; color: var(--accent); letter-spacing: 0.1em; }
.tier h3 { font-size: 17px; margin: 6px 0 8px; }
.tier p { font-size: 13.5px; color: var(--fg-dim); margin: 0; }
.tier .sla { margin-top: 10px; font-family: var(--mono); font-size: 11px; color: var(--muted); }

/* Callout */
.callout {
  margin-top: 32px; padding: 24px 28px; border-radius: var(--radius);
  border: 1px solid rgba(255, 166, 77, 0.35); background: rgba(255, 166, 77, 0.06);
}
.callout h3 { font-size: 16px; color: var(--orange); margin-bottom: 8px; }
.callout p { color: var(--fg-dim); margin: 0; font-size: 15px; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; counter-reset: step; }
.step { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; }
.step::before {
  counter-increment: step; content: "0" counter(step);
  display: block; font-family: var(--mono); color: var(--magenta); font-size: 13px; margin-bottom: 12px; letter-spacing: 0.1em;
}
.step h3 { font-size: 17px; margin-bottom: 8px; }
.step p { font-size: 14.5px; color: var(--fg-dim); margin: 0; }

/* Status table */
.status { width: 100%; border-collapse: collapse; margin-top: 8px; }
.status th, .status td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--border); font-size: 14.5px; vertical-align: top; }
.status th { color: var(--muted); font-weight: 600; font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; }
.status td:first-child { font-weight: 600; white-space: nowrap; }
.status .tag { font-family: var(--mono); font-size: 11px; padding: 2px 8px; border-radius: 999px; border: 1px solid; white-space: nowrap; }
.tag.prod { color: var(--ok); border-color: rgba(87, 194, 123, 0.5); }
.tag.next { color: var(--warn); border-color: rgba(240, 183, 126, 0.5); }
.tag.plan { color: var(--muted); border-color: var(--border-hi); }

/* Contact */
.contact { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.contact a.card { display: block; color: inherit; }
.contact a.card:hover { text-decoration: none; border-color: var(--accent); }
.contact .card small { display: block; color: var(--muted); margin-top: 6px; font-family: var(--mono); font-size: 12px; }

/* Footer */
footer { padding: 40px 0 56px; color: var(--muted); font-size: 13px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 8px 32px; align-items: center; }
footer img { height: 14px; opacity: 0.8; }
footer p { margin: 0; }

/* Responsive */
@media (max-width: 980px) {
  .hero .wrap, .split { grid-template-columns: 1fr; }
  .grid-3, .tiers, .steps, .contact { grid-template-columns: repeat(2, 1fr); }
  .strip .wrap { grid-template-columns: repeat(2, 1fr); }
  .stat { border-right: 0; border-bottom: 1px solid var(--border); padding-left: 0; }
  .topnav ul { display: none; }
}
@media (max-width: 640px) {
  section { padding: 64px 0; }
  .hero { padding: 56px 0 48px; }
  .grid-3, .grid-2, .tiers, .steps, .contact, .sec-list { grid-template-columns: 1fr; }
  .strip .wrap { grid-template-columns: 1fr; }
  .kpis { grid-template-columns: repeat(2, 1fr); }
  .rows { grid-template-columns: 1fr; }
  .zones { grid-template-columns: 1fr 1fr; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
@media (max-width: 640px) {
  .brand-tag { display: none; }
  .topnav .wrap { gap: 12px; }
  .topnav .btn { padding: 8px 12px; font-size: 13px; margin-left: auto; }
}
