:root {
  --bg: #0d1117;
  --bg-alt: #11161d;
  --card: #151b23;
  --line: #232c37;
  --fg: #dbe3ec;
  --muted: #8b98a9;
  --accent: #4ade80;
  --accent-dim: #1b3c2a;
  --warn: #f59e0b;
  --radius: 12px;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 16px/1.65 ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--fg); text-decoration: none; }
a:hover { color: var(--accent); }

h1, h2, h3, h4 { line-height: 1.25; margin: 0 0 .6em; font-weight: 650; letter-spacing: -.011em; }
h1 { font-size: clamp(1.9rem, 4.2vw, 2.9rem); }
h2 { font-size: clamp(1.35rem, 2.4vw, 1.7rem); }
h3 { font-size: 1.05rem; }
p { margin: 0 0 1em; }

.wrap { width: min(1060px, 100% - 2.5rem); margin-inline: auto; }
.narrow { width: min(680px, 100%); }
.center { text-align: center; }
.muted { color: var(--muted); }
.fine { color: var(--muted); font-size: .85rem; }

/* header */
.nav { border-bottom: 1px solid var(--line); background: rgba(13, 17, 23, .85); position: sticky; top: 0; z-index: 10; backdrop-filter: blur(8px); }
.nav-inner { display: flex; align-items: center; gap: 1.5rem; min-height: 62px; }
.brand { display: inline-flex; align-items: center; gap: .5rem; font-weight: 700; letter-spacing: -.02em; color: var(--fg); }
.brand svg { color: var(--accent); }
.links { display: flex; gap: 1.25rem; margin-left: auto; font-size: .92rem; color: var(--muted); }
.links a { color: var(--muted); }
.links a:hover { color: var(--fg); }

/* buttons */
.btn {
  display: inline-block; padding: .68rem 1.1rem; border-radius: 9px;
  background: var(--accent); color: #06240f; font-weight: 650; font-size: .95rem;
  border: 1px solid var(--accent); transition: filter .15s ease, background .15s ease;
}
.btn:hover { color: #06240f; filter: brightness(1.08); }
.btn-sm { padding: .45rem .8rem; font-size: .88rem; margin-left: .5rem; }
.btn-ghost { background: transparent; color: var(--fg); border-color: var(--line); }
.btn-ghost:hover { color: var(--fg); border-color: var(--muted); filter: none; }

/* hero */
.hero { padding: 4.5rem 0 3rem; }
.eyebrow { color: var(--accent); font-size: .8rem; letter-spacing: .09em; text-transform: uppercase; font-weight: 650; margin-bottom: .8rem; }
.lead { color: var(--muted); font-size: 1.08rem; max-width: 62ch; }
.cta { display: flex; flex-wrap: wrap; gap: .75rem; margin: 1.8rem 0 1rem; }

/* metric strip */
.strip { border-block: 1px solid var(--line); background: var(--bg-alt); padding: 1.6rem 0; }
.strip-inner { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 1.2rem; }
.metric .num { display: block; font-size: 1.45rem; font-weight: 700; letter-spacing: -.02em; }
.metric .lbl { color: var(--muted); font-size: .82rem; }

/* sections */
.section { padding: 3.4rem 0; }
.section.alt { background: var(--bg-alt); border-block: 1px solid var(--line); }

.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 1rem; }
.grid.three { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.25rem 1.3rem; }
.card h3 { margin-bottom: .45em; }
.card p { color: var(--muted); font-size: .93rem; margin: 0; }

.two-col { display: grid; grid-template-columns: 1.15fr .85fr; gap: 2.2rem; align-items: start; }
.ticks { list-style: none; padding: 0; margin: 0; color: var(--muted); font-size: .94rem; }
.ticks li { padding-left: 1.4rem; position: relative; margin-bottom: .5rem; }
.ticks li::before { content: "✓"; position: absolute; left: 0; color: var(--accent); font-weight: 700; }

/* uptime panel */
.panel { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem; }
.panel-head { display: flex; align-items: center; gap: .5rem; font-size: .9rem; margin-bottom: .8rem; }
.bars { display: grid; grid-template-columns: repeat(30, 1fr); gap: 2px; }
.bars i { display: block; height: 34px; border-radius: 2px; background: var(--accent); opacity: .82; }
.bars i:nth-child(7n) { opacity: .62; }
.panel-foot { display: flex; justify-content: space-between; color: var(--muted); font-size: .78rem; margin-top: .7rem; }

.dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; flex: 0 0 auto; }
.dot.ok { background: var(--accent); box-shadow: 0 0 0 3px rgba(74, 222, 128, .16); }

/* pricing */
.price { display: flex; flex-direction: column; }
.price ul { list-style: none; padding: 0; margin: 0 0 1.3rem; color: var(--muted); font-size: .92rem; }
.price li { margin-bottom: .35rem; }
.price .btn { margin-top: auto; text-align: center; }
.amount { font-size: 1.9rem; font-weight: 700; letter-spacing: -.02em; margin-bottom: .8rem; }
.amount span { font-size: .9rem; font-weight: 500; color: var(--muted); }
.featured { border-color: #2c5b3c; box-shadow: 0 0 0 1px rgba(74, 222, 128, .12) inset; }

/* code */
pre { background: #0a0e13; border: 1px solid var(--line); border-radius: 10px; padding: 1rem 1.1rem; overflow-x: auto; }
code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .86rem; }
p code { background: #0a0e13; border: 1px solid var(--line); border-radius: 5px; padding: .1em .35em; }

/* status page */
.banner { display: flex; align-items: center; gap: .6rem; padding: .9rem 1.1rem; border-radius: 10px; margin: 1.6rem 0 2rem; font-weight: 600; font-size: .95rem; }
.ok-banner { background: var(--accent-dim); border: 1px solid #2c5b3c; color: #bfe9cd; }
.status-table { width: 100%; border-collapse: collapse; font-size: .93rem; margin-bottom: 2.4rem; }
.status-table th, .status-table td { text-align: left; padding: .7rem .6rem; border-bottom: 1px solid var(--line); }
.status-table th { color: var(--muted); font-weight: 600; font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; }
.pill { font-size: .74rem; padding: .16em .6em; border-radius: 99px; font-weight: 650; }
.pill.ok { background: var(--accent-dim); color: #a7e6bd; border: 1px solid #2c5b3c; }
.incidents { list-style: none; padding: 0; }
.incidents li { border-left: 2px solid var(--line); padding: 0 0 .2rem 1rem; margin-bottom: 1.6rem; }
.inc-head { font-weight: 600; margin-bottom: .3rem; }

/* footer */
.foot { border-top: 1px solid var(--line); padding: 2.6rem 0 1.6rem; background: var(--bg-alt); }
.foot-inner { display: flex; flex-wrap: wrap; gap: 2rem; justify-content: space-between; }
.foot-cols { display: flex; flex-wrap: wrap; gap: 3rem; }
.foot-cols h4 { font-size: .8rem; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); margin-bottom: .6rem; }
.foot-cols a { display: block; color: var(--muted); font-size: .9rem; margin-bottom: .3rem; }
.foot-cols a:hover { color: var(--fg); }
.copy { color: var(--muted); font-size: .8rem; margin-top: 2rem; padding-top: 1rem; border-top: 1px solid var(--line); }

/* prose pages */
.prose { max-width: 74ch; }
.prose h2 { margin-top: 2rem; }
.prose ul { color: var(--muted); }

@media (max-width: 780px) {
  .two-col { grid-template-columns: 1fr; }
  .links { display: none; }
  .hero { padding-top: 3rem; }
}
