/* ─────────────── Reset & vars ─────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; }

:root {
  --bg: #0a0a0a;
  --bg-2: #111114;
  --bg-3: #15161a;
  --line: #23252b;
  --line-soft: #1b1d22;
  --text: #f5f6f8;
  --text-soft: #a1a4ad;
  --text-mute: #6a6e78;
  --brand: #00d68f;
  --brand-2: #4a9eff;
  --warn: #ffb547;
  --grad: linear-gradient(120deg, #00d68f 0%, #4a9eff 60%, #b07cff 100%);
  --shadow: 0 1px 0 rgba(255,255,255,0.03), 0 30px 60px -20px rgba(0,0,0,0.6);
  --radius: 14px;
}

body {
  font-family: 'Inter', -apple-system, system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

code, pre { font-family: 'JetBrains Mono', ui-monospace, monospace; }

a { color: inherit; text-decoration: none; }
a:hover { color: var(--brand); }

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ─────────────── Buttons ─────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 10px 18px; border-radius: 10px;
  font-weight: 600; font-size: 14px; letter-spacing: 0.01em;
  border: 1px solid transparent; cursor: pointer; transition: all 0.15s;
  text-decoration: none;
}
.btn-primary { background: var(--text); color: var(--bg); }
.btn-primary:hover { background: #fff; color: var(--bg); transform: translateY(-1px); }
.btn-ghost { color: var(--text); border-color: var(--line); background: transparent; }
.btn-ghost:hover { border-color: var(--text-soft); background: rgba(255,255,255,0.02); color: var(--text); }
.btn-lg { padding: 13px 22px; font-size: 15px; }

/* ─────────────── Nav ─────────────── */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(10,10,10,0.78);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line-soft);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 24px; gap: 24px;
}
.brand { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 18px; }
.brand-mark { color: var(--brand); font-size: 18px; transform: translateY(-1px); }
.brand-name { letter-spacing: -0.01em; }
.brand:hover { color: var(--text); }
.nav-links { display: flex; gap: 24px; font-size: 14px; color: var(--text-soft); }
.nav-links a:hover { color: var(--text); }
.nav-cta { display: flex; gap: 10px; align-items: center; }

@media (max-width: 800px) {
  .nav-links { display: none; }
}

/* ─────────────── Hero ─────────────── */
.hero {
  position: relative; padding: 80px 0 100px;
  background:
    radial-gradient(1100px 500px at 50% -200px, rgba(0,214,143,0.08), transparent 60%),
    radial-gradient(800px 400px at 90% 100px, rgba(74,158,255,0.06), transparent 60%);
  border-bottom: 1px solid var(--line-soft);
}
.hero-status {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px; border-radius: 999px;
  background: rgba(0,214,143,0.06); border: 1px solid rgba(0,214,143,0.2);
  font-size: 13px; color: var(--text-soft); margin-bottom: 28px;
}
.hero-status .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--brand); box-shadow: 0 0 8px var(--brand);
  animation: pulse 1.8s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}
.hero h1 {
  font-size: clamp(40px, 7vw, 84px);
  line-height: 1.04; letter-spacing: -0.025em;
  font-weight: 800; margin: 0 0 24px;
}
.grad {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-sub {
  max-width: 720px; font-size: 19px; color: var(--text-soft); margin: 0 0 36px;
}
.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 56px; }
.hero-trust {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px;
  padding: 24px; border: 1px solid var(--line); border-radius: 16px;
  background: linear-gradient(180deg, var(--bg-2), var(--bg));
  max-width: 720px;
}
.hero-trust > div { display: flex; flex-direction: column; gap: 4px; }
.hero-trust strong { font-size: 22px; font-weight: 700; letter-spacing: -0.02em; }
.hero-trust span { font-size: 12px; color: var(--text-mute); text-transform: uppercase; letter-spacing: 0.06em; }
@media (max-width: 720px) {
  .hero-trust { grid-template-columns: repeat(2, 1fr); }
}

/* ─────────────── Sections ─────────────── */
.section { padding: 96px 0; border-bottom: 1px solid var(--line-soft); }
.section-alt { background: var(--bg-2); }
.section-head { max-width: 720px; margin: 0 0 56px; }
.section-tag {
  display: inline-block; font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--brand); font-weight: 600; margin-bottom: 16px;
}
.section h2 {
  font-size: clamp(30px, 4.5vw, 48px); margin: 0 0 18px; letter-spacing: -0.02em;
  font-weight: 700; line-height: 1.1;
}
.section-head p { color: var(--text-soft); font-size: 17px; margin: 0; }

/* ─────────────── Suites grid ─────────────── */
.suites-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 16px;
}
.suite {
  position: relative;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--bg-3), var(--bg-2));
  transition: all 0.2s;
}
.suite:hover { border-color: var(--text-mute); transform: translateY(-2px); box-shadow: var(--shadow); }
.suite header {
  display: flex; align-items: center; gap: 12px; margin-bottom: 14px;
}
.suite-id {
  font-family: 'JetBrains Mono', monospace; font-size: 12px; font-weight: 600;
  color: var(--brand); letter-spacing: 0.05em;
}
.suite h3 {
  font-size: 22px; font-weight: 800; margin: 0; letter-spacing: -0.01em;
  flex: 1;
}
.suite-badge {
  font-size: 11px; padding: 3px 8px; border-radius: 999px;
  background: rgba(255,255,255,0.04); border: 1px solid var(--line);
  color: var(--text-soft); font-weight: 500;
}
.suite p { color: var(--text-soft); font-size: 14px; margin: 0 0 14px; }
.suite ul {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-wrap: wrap; gap: 6px;
}
.suite li {
  font-size: 11px; padding: 4px 10px; border-radius: 999px;
  background: rgba(255,255,255,0.025); border: 1px solid var(--line-soft);
  color: var(--text-mute);
}
.suite-command {
  border-color: rgba(0,214,143,0.25);
  background:
    radial-gradient(400px 200px at 100% 0, rgba(0,214,143,0.06), transparent 60%),
    linear-gradient(180deg, var(--bg-3), var(--bg-2));
}

/* ─────────────── Stack grid ─────────────── */
.stack-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}
.stack-card {
  padding: 22px; border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--bg-3);
}
.stack-card h4 {
  margin: 0 0 8px; font-size: 16px; font-weight: 700;
}
.stack-card p { margin: 0; color: var(--text-soft); font-size: 14px; }

/* ─────────────── Status ─────────────── */
.status-grid {
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--bg-3); overflow: hidden;
}
.status-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 16px 20px;
  border-bottom: 1px solid var(--line-soft);
}
.status-row:last-child { border-bottom: none; }
.status-name { font-size: 14px; font-weight: 500; }
.status-name small { display: block; color: var(--text-mute); font-weight: 400; font-size: 12px; margin-top: 2px; }
.status-pill {
  font-size: 12px; padding: 4px 10px; border-radius: 999px; font-weight: 500;
  font-family: 'JetBrains Mono', monospace;
}
.status-pending { background: rgba(255,181,71,0.1); color: var(--warn); border: 1px solid rgba(255,181,71,0.25); }
.status-ok      { background: rgba(0,214,143,0.1); color: var(--brand); border: 1px solid rgba(0,214,143,0.25); }
.status-fail    { background: rgba(255,80,80,0.12); color: #ff7a7a; border: 1px solid rgba(255,80,80,0.25); }
.status-soon    { background: rgba(74,158,255,0.1); color: var(--brand-2); border: 1px solid rgba(74,158,255,0.2); }

.status-raw {
  margin-top: 18px; border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--bg-3);
}
.status-raw summary {
  padding: 12px 18px; cursor: pointer; font-size: 13px; color: var(--text-soft);
}
.status-raw pre {
  margin: 0; padding: 16px 18px; border-top: 1px solid var(--line-soft);
  font-size: 12px; color: var(--text-soft); overflow-x: auto;
}

/* ─────────────── Contact ─────────────── */
.contact-inner {
  display: grid; grid-template-columns: 1fr auto; gap: 48px; align-items: center;
}
.contact-card {
  display: flex; flex-direction: column; gap: 8px;
  padding: 28px 32px; border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--bg-3); min-width: 280px;
  transition: all 0.2s;
}
.contact-card:hover { border-color: var(--brand); transform: translateY(-2px); }
.contact-card strong { font-size: 18px; font-family: 'JetBrains Mono', monospace; color: var(--text); }
.contact-card span { font-size: 13px; color: var(--brand); }
@media (max-width: 720px) {
  .contact-inner { grid-template-columns: 1fr; }
}

/* ─────────────── Footer ─────────────── */
.footer { padding: 32px 0; border-top: 1px solid var(--line-soft); }
.footer-inner {
  display: flex; justify-content: space-between; gap: 16px;
  font-size: 13px; color: var(--text-mute);
}
.footer nav { display: flex; gap: 18px; }

/* ─────────────── Modal ─────────────── */
.modal {
  display: none;
  position: fixed; inset: 0; z-index: 100;
  align-items: center; justify-content: center;
  padding: 24px;
}
.modal[aria-hidden="false"] { display: flex; }
.modal-backdrop {
  position: absolute; inset: 0;
  background: rgba(0,0,0,0.7); backdrop-filter: blur(4px);
}
.modal-card {
  position: relative;
  max-width: 460px; width: 100%;
  padding: 32px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.modal-card h3 { margin: 0 0 14px; font-size: 22px; }
.modal-card p { color: var(--text-soft); font-size: 14px; margin: 0 0 12px; }
.modal-card .btn { margin-top: 16px; }
.modal-card small { display: block; margin-top: 16px; color: var(--text-mute); font-size: 12px; }
.modal-close {
  position: absolute; top: 12px; right: 12px;
  background: transparent; border: none; color: var(--text-mute);
  font-size: 28px; line-height: 1; cursor: pointer; padding: 4px 10px;
}
.modal-close:hover { color: var(--text); }
