/* HostRob — brand tokens kept from the original site (Tailwind config) */
:root {
  --abyss: #030308; --deep: #07070f; --hull: #0c0c16; --panel: #101020; --line: #15152a; --seam: #1e1e38;
  --cyan: #06b6d4; --blue: #3b82f6; --indigo: #818cf8;
  --ink: #e8eaf3; --soft: #b4b9cf; --muted: #8a90aa; --ok: #34d399; --warn: #f87171;
  --display: "Sora", system-ui, sans-serif; --body: "DM Sans", system-ui, sans-serif; --mono: "JetBrains Mono", ui-monospace, monospace;
  --w: 1180px; --r: 14px;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--abyss); color: var(--ink); font: 400 17px/1.65 var(--body); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
::selection { background: rgba(6, 182, 212, .3); color: #fff; }
a { color: var(--cyan); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: #67e8f9; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 4px; }
img { max-width: 100%; }
code { font: 0.86em var(--mono); background: var(--panel); border: 1px solid var(--seam); border-radius: 6px; padding: .08em .4em; color: #a5f3fc; }
h1, h2, h3 { font-family: var(--display); line-height: 1.12; letter-spacing: -0.025em; margin: 0 0 .5em; text-wrap: balance; }
h1 { font-size: clamp(38px, 5.4vw, 68px); font-weight: 800; letter-spacing: -0.04em; }
h2 { font-size: clamp(26px, 3vw, 38px); font-weight: 700; }
h3 { font-size: 19px; font-weight: 600; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--w); margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 780px; }
.center { text-align: center; }
.muted { color: var(--muted); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--cyan); color: #000; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }

/* nav */
.nav { position: sticky; top: 0; z-index: 50; background: rgba(3, 3, 8, .78); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.nav-in { display: flex; align-items: center; justify-content: space-between; height: 66px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font: 800 20px var(--display); color: var(--ink); text-decoration: none; letter-spacing: -0.02em; }
.brand:hover { color: #fff; }
nav#nav-links { display: flex; align-items: center; gap: 26px; }
nav#nav-links a:not(.btn) { color: var(--soft); text-decoration: none; font-size: 15px; font-weight: 500; }
nav#nav-links a:not(.btn):hover, nav#nav-links a[aria-current="page"] { color: #fff; }
nav#nav-links a[aria-current="page"] { box-shadow: 0 2px 0 var(--cyan); }
.nav-toggle { display: none; background: none; border: 1px solid var(--seam); color: var(--ink); border-radius: 10px; padding: 8px 14px; font: 500 14px var(--body); cursor: pointer; }
@media (max-width: 860px) {
  .nav-toggle { display: block; }
  nav#nav-links { position: absolute; top: 66px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; background: var(--deep); border-bottom: 1px solid var(--seam); padding: 8px 24px 18px; display: none; }
  nav#nav-links.open { display: flex; }
  nav#nav-links a:not(.btn) { padding: 12px 0; border-bottom: 1px solid var(--line); }
  nav#nav-links .btn { margin-top: 14px; text-align: center; }
}

/* buttons */
.btn { display: inline-block; font: 600 15px var(--body); text-decoration: none; color: #fff; padding: 13px 22px; border-radius: 12px; background: linear-gradient(135deg, var(--cyan), var(--blue)); border: 1px solid transparent; transition: transform .15s ease, box-shadow .2s ease; }
.btn:hover { color: #fff; transform: translateY(-1px); box-shadow: 0 10px 32px rgba(6, 182, 212, .28); }
.btn-ghost { background: rgba(255, 255, 255, .03); border-color: var(--seam); color: var(--ink); }
.btn-ghost:hover { border-color: #33335a; box-shadow: none; background: rgba(255, 255, 255, .06); }
.btn-small { white-space: nowrap; padding: 9px 16px; font-size: 14px; border-radius: 10px; }
.cta-row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 30px; }
.cta-row.center { justify-content: center; }

/* hero */
.hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--line); }
.hero::before { content: ""; position: absolute; inset: 0; background:
  radial-gradient(60% 70% at 78% 40%, rgba(59, 130, 246, .13), transparent 70%),
  radial-gradient(40% 50% at 12% 10%, rgba(6, 182, 212, .07), transparent 70%); pointer-events: none; }
.hero-in { position: relative; display: grid; grid-template-columns: 1fr 1.05fr; gap: 32px; align-items: center; min-height: min(760px, calc(100vh - 66px)); padding-top: 40px; padding-bottom: 40px; }
.kicker { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; color: var(--soft); border: 1px solid var(--seam); background: rgba(6, 182, 212, .05); padding: 6px 14px; border-radius: 99px; margin-bottom: 26px; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 10px var(--ok); }
.lede { font-size: 19px; color: var(--soft); max-width: 60ch; }
.hero h1 { background: linear-gradient(180deg, #fff 30%, #b9c3e6); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-3d { position: relative; margin: 0; aspect-ratio: 1 / 0.92; width: 100%; }
#rack { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.rack-fallback { position: absolute; inset: 8%; border-radius: 24px; background:
  repeating-linear-gradient(90deg, rgba(6, 182, 212, .14) 0 46px, transparent 46px 56px),
  repeating-linear-gradient(0deg, rgba(59, 130, 246, .1) 0 30px, transparent 30px 38px);
  transform: perspective(900px) rotateX(55deg) rotateZ(-30deg); opacity: .55; }
.has-3d.webgl .rack-fallback { display: none; }
.hero-3d figcaption { position: absolute; bottom: 0; left: 0; right: 0; text-align: center; font-size: 13px; color: var(--muted); }
@media (max-width: 900px) {
  .hero-in { grid-template-columns: 1fr; min-height: 0; padding-top: 48px; }
  .hero-3d { aspect-ratio: 1 / .8; max-width: 560px; margin: 0 auto; }
}

/* bands */
.band { padding: 88px 0; border-bottom: 1px solid var(--line); }
.band.tight { padding: 40px 0 70px; }
.page-head { padding: 84px 0 40px; background: radial-gradient(70% 120% at 50% 0%, rgba(59, 130, 246, .1), transparent 70%); }
.page-head h1 { font-size: clamp(34px, 4.6vw, 56px); }
.answer { background: linear-gradient(180deg, rgba(6, 182, 212, .045), transparent); }
.answer p { font-size: 19px; color: var(--soft); }
.split { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 56px; align-items: start; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; gap: 20px; } .band { padding: 64px 0; } }
.head-row { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }

/* lists */
.ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.ticks li { position: relative; padding: 14px 0 14px 34px; border-bottom: 1px solid var(--line); color: var(--soft); }
.ticks li::before { content: ""; position: absolute; left: 4px; top: 21px; width: 14px; height: 8px; border-left: 2px solid var(--cyan); border-bottom: 2px solid var(--cyan); transform: rotate(-45deg); }
.ticks.cross li::before { width: 14px; height: 2px; border: 0; background: var(--warn); top: 26px; transform: none; }

/* layers: a real stack, drawn as a stack */
.layers-band h2 { margin-bottom: 36px; }
.layers { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; counter-reset: l; }
.layers li { display: grid; grid-template-columns: 220px 1fr; gap: 24px; align-items: baseline; padding: 22px 26px; border: 1px solid var(--seam); border-radius: var(--r);
  background: linear-gradient(90deg, rgba(6, 182, 212, .07), rgba(12, 12, 22, .6) 40%); }
.layers li:nth-child(2) { margin-left: 3%; } .layers li:nth-child(3) { margin-left: 6%; border-color: rgba(6, 182, 212, .45); background: linear-gradient(90deg, rgba(6, 182, 212, .16), rgba(12, 12, 22, .6) 45%); }
.layers li:nth-child(4) { margin-left: 9%; } .layers li:nth-child(5) { margin-left: 12%; }
.layers h3 { margin: 0; }
.layers p { margin: 0; color: var(--soft); }
@media (max-width: 760px) { .layers li { grid-template-columns: 1fr; gap: 6px; margin-left: 0 !important; } }

/* tables */
.table-scroll { overflow-x: auto; border: 1px solid var(--seam); border-radius: 18px; background: var(--hull); }
table { border-collapse: collapse; width: 100%; }
caption { caption-side: bottom; text-align: left; padding: 14px 18px; font-size: 13px; color: var(--muted); }
.plans th, .plans td { padding: 14px 16px; text-align: left; border-bottom: 1px solid var(--line); font-size: 15px; vertical-align: top; }
.plans thead th { font: 700 16px var(--display); color: #fff; white-space: nowrap; padding-top: 22px; }
.plans tbody th { color: var(--muted); font-weight: 500; white-space: nowrap; }
.plans td { color: var(--soft); min-width: 120px; }
.plans td strong { font: 700 20px var(--display); color: #fff; }
.plans .hl { background: rgba(6, 182, 212, .07); }
.plans thead .hl { box-shadow: inset 0 3px 0 var(--cyan); }
.tag { display: block; width: max-content; margin-top: 4px; font: 600 11px var(--body); color: var(--cyan); }
.compare td { min-width: 170px; }
.simple th, .simple td { padding: 14px 0; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.simple th { color: var(--muted); font-weight: 500; width: 36%; padding-right: 18px; }
.simple td { color: var(--ink); }

/* plan notes */
.plan-notes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid var(--seam); }
.plan-notes article { padding: 26px 24px 22px 0; border-bottom: 1px solid var(--line); }
.plan-notes .price { font: 500 14px var(--body); color: var(--cyan); margin-left: 6px; }
.plan-notes p { color: var(--soft); font-size: 15px; }
.plan-notes ul { margin: 0; padding-left: 18px; color: var(--muted); font-size: 14px; }
@media (max-width: 860px) { .plan-notes { grid-template-columns: 1fr; } }

/* enterprise teaser + facts */
.ent-teaser { background: radial-gradient(60% 100% at 85% 50%, rgba(129, 140, 248, .1), transparent 70%); }
.ent-teaser p { color: var(--soft); }
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; margin: 0; background: var(--seam); border: 1px solid var(--seam); border-radius: 18px; overflow: hidden; }
.facts div { background: var(--hull); padding: 26px; }
.facts dt { color: var(--muted); font-size: 14px; }
.facts dd { margin: 6px 0 0; font: 800 clamp(24px, 3vw, 34px) var(--display); letter-spacing: -0.03em; color: #fff; }

/* ledger (enterprise) */
.ledger { list-style: none; margin: 30px 0 0; padding: 0; border-top: 1px solid var(--seam); }
.ledger li { display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; padding: 28px 0; border-bottom: 1px solid var(--line); }
.ledger li p { color: var(--soft); margin: 0; }
.ledger .alt { color: var(--muted); font-size: 15px; border-left: 2px solid var(--seam); padding-left: 20px; }
.ledger .alt span { display: block; color: var(--soft); font-weight: 600; margin-bottom: 4px; }
.ledger small { display: block; margin-top: 8px; }
.note { margin-top: 18px; font-size: 13px; color: var(--muted); }
@media (max-width: 760px) { .ledger li { grid-template-columns: 1fr; gap: 14px; } }

/* checks + steps (security) */
.checks { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin: 30px 0 0; border-top: 1px solid var(--seam); }
.checks div { padding: 24px 24px 24px 0; border-bottom: 1px solid var(--line); }
.checks dt { font: 600 17px var(--display); color: #fff; margin-bottom: 6px; }
.checks dd { margin: 0; color: var(--soft); font-size: 15px; }
@media (max-width: 860px) { .checks { grid-template-columns: 1fr; } }
.steps { list-style: none; counter-reset: s; margin: 30px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.steps li { counter-increment: s; position: relative; padding-top: 52px; }
.steps li::before { content: counter(s); position: absolute; top: 0; left: 0; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; font: 700 15px var(--display); color: var(--abyss); background: var(--cyan); }
.steps li:not(:last-child)::after { content: ""; position: absolute; top: 18px; left: 46px; right: -14px; height: 1px; background: linear-gradient(90deg, var(--cyan), transparent); }
.steps p { color: var(--soft); font-size: 15px; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr 1fr; } .steps li::after { display: none; } }

/* faq */
.faq { margin: 18px 0 40px; border-top: 1px solid var(--seam); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 20px 40px 20px 0; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary h3 { margin: 0; font: 600 17px var(--body); letter-spacing: 0; color: var(--ink); }
.faq summary::after { content: "+"; position: absolute; right: 6px; top: 16px; font: 400 24px var(--display); color: var(--muted); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); color: var(--cyan); }
.faq details p { color: var(--soft); padding-bottom: 8px; max-width: 70ch; }

/* docs + misc */
.doc h2 { font-size: 26px; margin-top: 48px; scroll-margin-top: 90px; }
.doc ol, .doc ul { color: var(--soft); padding-left: 22px; }
.doc li { margin-bottom: 8px; }
.doc p { color: var(--soft); }
.toc { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.toc a { font-size: 14px; text-decoration: none; border: 1px solid var(--seam); border-radius: 99px; padding: 6px 13px; color: var(--soft); }
.toc a:hover { border-color: var(--cyan); color: #fff; }
.customers { list-style: none; padding: 0; margin: 0 0 40px; border-top: 1px solid var(--seam); }
.customers li { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 14px 0; border-bottom: 1px solid var(--line); }
.customers span { color: var(--muted); }
.closing { border-bottom: 0; background: radial-gradient(50% 100% at 50% 100%, rgba(6, 182, 212, .1), transparent 70%); }

/* footer */
.foot { border-top: 1px solid var(--line); padding: 64px 0 28px; background: var(--deep); font-size: 15px; }
.foot-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; }
.foot-grid p { color: var(--soft); margin-top: 14px; max-width: 36ch; }
.foot h2 { font: 600 14px var(--body); color: var(--muted); letter-spacing: 0; margin: 4px 0 14px; }
.foot-grid > div > a:not(.brand) { display: block; color: var(--soft); text-decoration: none; padding: 4px 0; }
.foot-grid > div > a:not(.brand):hover { color: #fff; }
.foot-end { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 48px; padding-top: 22px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }
@media (max-width: 860px) { .foot-grid { grid-template-columns: 1fr 1fr; } .foot-grid > div:first-child { grid-column: 1 / -1; } }

/* keep row labels visible while the plan table scrolls sideways on phones */
.plans tbody th, .plans thead th:first-child { position: sticky; left: 0; z-index: 1; background: var(--hull); }
.plans tbody th { box-shadow: 1px 0 0 var(--seam); }
@media (max-width: 700px) {
  .plans tbody th { white-space: normal; min-width: 108px; max-width: 120px; font-size: 13px; }
  .plans td { min-width: 104px; font-size: 14px; }
  .table-scroll::after { content: "Swipe to see all plans"; display: block; position: sticky; left: 0; padding: 0 16px 12px; font-size: 12px; color: var(--muted); }
}
