:root{
    --bg: #0B0E14;
    --bg-raised: #11151F;
    --bg-card: #131826;
    --line: #1A1F2B;
    --line-soft: #161B26;
    --text: #E4E7EC;
    --text-dim: #8A92A3;
    --text-faint: #565E70;
    --green: #3DDC84;
    --green-dim: #1F4A35;
    --amber: #F4A53D;
    --amber-dim: #4A3A1F;
    --red: #E2554A;
    --mono: 'JetBrains Mono', monospace;
    --sans: 'Inter', sans-serif;
  }

  *{ margin:0; padding:0; box-sizing:border-box; }

  html{ scroll-behavior:smooth; }

  body{
    background:var(--bg);
    color:var(--text);
    font-family:var(--sans);
    -webkit-font-smoothing:antialiased;
    line-height:1.5;
  }

  a{ color:inherit; text-decoration:none; }

  .wrap{ max-width:1180px; margin:0 auto; padding:0 32px; }

  /* ---------- NAV ---------- */
  nav{
    position:sticky; top:0; z-index:50;
    background:rgba(11,14,20,0.85);
    backdrop-filter:blur(10px);
    border-bottom:1px solid var(--line);
  }
  .nav-inner{
    display:flex; align-items:center; justify-content:space-between;
    height:64px;
  }
  .brand{ display:flex; align-items:center; gap:10px; font-family:var(--mono); font-weight:600; font-size:15px; letter-spacing:0.2px; }
  .brand-mark{ width:22px; height:22px; flex-shrink:0; }
  .nav-links{ display:flex; gap:32px; font-size:14px; color:var(--text-dim); }
  .nav-links a:hover{ color:var(--text); }
  .nav-cta{
    font-family:var(--mono); font-size:13px; font-weight:500;
    padding:8px 16px; border:1px solid var(--line); border-radius:6px;
    color:var(--text);
  }
  .nav-cta:hover{ border-color:var(--green); }
  @media (max-width:760px){ .nav-links{ display:none; } }

  /* ---------- HERO ---------- */
  .hero{ padding:88px 0 64px; border-bottom:1px solid var(--line); }
  .hero-grid{
    display:grid; grid-template-columns:1.1fr 0.9fr; gap:56px; align-items:start;
  }
  @media (max-width:900px){ .hero-grid{ grid-template-columns:1fr; } }

  .eyebrow{
    font-family:var(--mono); font-size:12.5px; color:var(--green);
    display:flex; align-items:center; gap:8px; margin-bottom:20px;
    letter-spacing:0.3px;
  }
  .eyebrow .dot{
    width:7px; height:7px; border-radius:50%; background:var(--green);
    box-shadow:0 0 0 0 rgba(61,220,132,0.6);
    animation:pulse-dot 2s infinite;
  }
  @keyframes pulse-dot{
    0%{ box-shadow:0 0 0 0 rgba(61,220,132,0.5); }
    70%{ box-shadow:0 0 0 6px rgba(61,220,132,0); }
    100%{ box-shadow:0 0 0 0 rgba(61,220,132,0); }
  }

  h1{
    font-family:var(--sans); font-weight:700; font-size:46px; line-height:1.12;
    letter-spacing:-0.5px; color:#fff; margin-bottom:20px;
  }
  h1 .accent{ color:var(--green); }
  @media (max-width:760px){ h1{ font-size:32px; } }

  .hero-sub{ font-size:16.5px; color:var(--text-dim); max-width:480px; margin-bottom:32px; }

  .hero-actions{ display:flex; gap:12px; margin-bottom:40px; flex-wrap:wrap; }
  .btn{
    font-family:var(--sans); font-weight:600; font-size:14.5px;
    padding:12px 22px; border-radius:7px; cursor:pointer; border:1px solid transparent;
  }
  .btn-primary{ background:var(--green); color:#08130E; }
  .btn-primary:hover{ background:#52e398; }
  .btn-ghost{ border-color:var(--line); color:var(--text); }
  .btn-ghost:hover{ border-color:var(--text-faint); }

  .trust-row{ display:flex; gap:28px; flex-wrap:wrap; font-family:var(--mono); font-size:12px; color:var(--text-faint); }
  .trust-row span{ display:flex; align-items:center; gap:6px; }

  /* ---------- LIVE PANEL ---------- */
  .panel{
    background:var(--bg-card); border:1px solid var(--line); border-radius:12px;
    overflow:hidden;
  }
  .panel-head{
    display:flex; align-items:center; justify-content:space-between;
    padding:14px 18px; border-bottom:1px solid var(--line); background:var(--bg-raised);
  }
  .panel-title{ font-family:var(--mono); font-size:12.5px; color:var(--text-dim); display:flex; align-items:center; gap:8px; }
  .traffic-lights{ display:flex; gap:6px; }
  .traffic-lights span{ width:9px; height:9px; border-radius:50%; background:var(--line); }
  .panel-live{ font-family:var(--mono); font-size:11px; color:var(--green); display:flex; align-items:center; gap:6px; }

  .panel-body{ padding:18px; }

  .metric-row{ display:flex; gap:14px; margin-bottom:16px; }
  .metric-box{
    flex:1; background:var(--bg-raised); border:1px solid var(--line-soft); border-radius:8px;
    padding:12px 14px;
  }
  .metric-label{ font-family:var(--mono); font-size:10.5px; color:var(--text-faint); text-transform:uppercase; letter-spacing:0.6px; margin-bottom:6px; }
  .metric-value{ font-family:var(--mono); font-size:22px; font-weight:600; color:#fff; }
  .metric-value.green{ color:var(--green); }
  .metric-delta{ font-family:var(--mono); font-size:11px; color:var(--text-faint); margin-top:2px; }

  .chart-wrap{ background:var(--bg-raised); border:1px solid var(--line-soft); border-radius:8px; padding:14px 14px 8px; margin-bottom:16px; }
  .chart-label-row{ display:flex; justify-content:space-between; font-family:var(--mono); font-size:11px; color:var(--text-faint); margin-bottom:8px; }
  svg.sparkline{ width:100%; height:64px; display:block; }

  .node-list{ display:flex; flex-direction:column; gap:8px; }
  .node-row{
    display:flex; align-items:center; gap:10px; font-family:var(--mono); font-size:12px;
    padding:8px 10px; border-radius:6px; background:var(--bg-raised); border:1px solid var(--line-soft);
  }
  .node-status{ width:7px; height:7px; border-radius:50%; flex-shrink:0; }
  .node-status.up{ background:var(--green); }
  .node-status.warn{ background:var(--amber); }
  .node-name{ color:var(--text); flex:1; }
  .node-region{ color:var(--text-faint); }
  .node-latency{ color:var(--text-dim); min-width:54px; text-align:right; }

  /* ---------- LOGOS ---------- */
  .logos{ padding:40px 0; border-bottom:1px solid var(--line); }
  .logos-label{ font-family:var(--mono); font-size:11px; color:var(--text-faint); text-align:center; margin-bottom:24px; letter-spacing:0.5px; }
  .logos-row{ display:flex; justify-content:center; gap:56px; flex-wrap:wrap; opacity:0.55; }
  .logo-item{ font-family:var(--mono); font-weight:600; font-size:14px; color:var(--text-dim); }

  /* ---------- FEATURES ---------- */
  .section{ padding:88px 0; border-bottom:1px solid var(--line); }
  .section-head{ max-width:560px; margin-bottom:48px; }
  .section-eyebrow{ font-family:var(--mono); font-size:12px; color:var(--green); margin-bottom:12px; letter-spacing:0.4px; }
  .section-title{ font-size:32px; font-weight:700; color:#fff; letter-spacing:-0.3px; margin-bottom:14px; }
  .section-desc{ color:var(--text-dim); font-size:15.5px; }

  .feature-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:1px; background:var(--line); border:1px solid var(--line); border-radius:12px; overflow:hidden; }
  @media (max-width:860px){ .feature-grid{ grid-template-columns:1fr; } }
  .feature-card{ background:var(--bg-card); padding:28px 26px; }
  .feature-icon{ width:34px; height:34px; margin-bottom:18px; color:var(--green); }
  .feature-title{ font-size:16px; font-weight:600; color:#fff; margin-bottom:8px; }
  .feature-text{ font-size:14px; color:var(--text-dim); line-height:1.6; }

  /* ---------- HOW IT WORKS ---------- */
  .flow{ display:flex; gap:0; align-items:flex-start; margin-top:8px; }
  @media (max-width:860px){ .flow{ flex-direction:column; gap:28px; } }
  .flow-step{ flex:1; padding-right:28px; position:relative; }
  .flow-num{ font-family:var(--mono); font-size:12px; color:var(--text-faint); margin-bottom:10px; }
  .flow-title{ font-size:15.5px; font-weight:600; color:#fff; margin-bottom:8px; }
  .flow-text{ font-size:13.5px; color:var(--text-dim); line-height:1.6; }
  .flow-step:not(:last-child)::after{
    content:''; position:absolute; top:6px; right:0; width:14px; height:1px; background:var(--line-soft);
  }

  /* ---------- PRICING ---------- */
  .pricing-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:18px; }
  @media (max-width:860px){ .pricing-grid{ grid-template-columns:1fr; } }
  .price-card{ background:var(--bg-card); border:1px solid var(--line); border-radius:12px; padding:28px 26px; }
  .price-card.featured{ border-color:var(--green); position:relative; }
  .price-tag{ font-family:var(--mono); font-size:11px; color:var(--green); background:var(--green-dim); display:inline-block; padding:3px 9px; border-radius:4px; margin-bottom:16px; }
  .price-name{ font-size:17px; font-weight:600; color:#fff; margin-bottom:6px; }
  .price-amount{ font-family:var(--mono); font-size:30px; font-weight:700; color:#fff; margin-bottom:4px; }
  .price-amount span{ font-size:14px; color:var(--text-faint); font-weight:400; }
  .price-desc{ font-size:13px; color:var(--text-dim); margin-bottom:22px; }
  .price-list{ list-style:none; display:flex; flex-direction:column; gap:10px; margin-bottom:24px; }
  .price-list li{ font-size:13.5px; color:var(--text-dim); display:flex; gap:9px; }
  .price-list li::before{ content:'✓'; color:var(--green); font-weight:700; flex-shrink:0; }
  .price-btn{ display:block; text-align:center; padding:11px; border-radius:7px; font-size:14px; font-weight:600; border:1px solid var(--line); }
  .price-btn.primary{ background:var(--green); color:#08130E; border-color:var(--green); }

  /* ---------- FOOTER ---------- */
  footer{ padding:48px 0 40px; }
  .footer-grid{ display:flex; justify-content:space-between; flex-wrap:wrap; gap:32px; margin-bottom:32px; }
  .footer-brand{ max-width:260px; }
  .footer-brand .brand{ margin-bottom:12px; }
  .footer-brand p{ font-size:13px; color:var(--text-faint); line-height:1.6; }
  .footer-cols{ display:flex; gap:48px; flex-wrap:wrap; }
  .footer-col h4{ font-size:12px; color:var(--text-faint); margin-bottom:14px; letter-spacing:0.3px; }
  .footer-col a{ display:block; font-size:13.5px; color:var(--text-dim); margin-bottom:10px; }
  .footer-col a:hover{ color:var(--text); }
  .footer-bottom{ display:flex; justify-content:space-between; padding-top:24px; border-top:1px solid var(--line); font-size:12.5px; color:var(--text-faint); flex-wrap:wrap; gap:12px; }
  .footer-status{ display:flex; align-items:center; gap:6px; font-family:var(--mono); }
  .footer-status .dot{ width:6px; height:6px; border-radius:50%; background:var(--green); }

  @media (max-width:600px){
    .wrap{ padding:0 20px; }
    .hero{ padding:56px 0 40px; }
    .section{ padding:56px 0; }
    .metric-row{ flex-direction:column; }
  }

  /* ---------- SIMPLE PAGE HEADER (docs/status/legal) ---------- */
  .page-header{ padding:64px 0 40px; border-bottom:1px solid var(--line); }
  .page-title{ font-size:36px; font-weight:700; color:#fff; letter-spacing:-0.4px; margin-bottom:12px; }
  .page-sub{ font-size:15.5px; color:var(--text-dim); max-width:560px; }
  .page-body{ padding:48px 0 80px; }
  .page-body h2{ font-size:20px; color:#fff; margin:36px 0 14px; }
  .page-body h2:first-child{ margin-top:0; }
  .page-body p{ font-size:14.5px; color:var(--text-dim); margin-bottom:14px; max-width:680px; }
  .page-body ul{ margin:0 0 14px 20px; color:var(--text-dim); font-size:14.5px; }
  .page-body li{ margin-bottom:6px; }
  .page-body code{ font-family:var(--mono); font-size:13px; background:var(--bg-card); padding:2px 7px; border-radius:4px; border:1px solid var(--line); color:var(--green); }
  .page-body pre{ font-family:var(--mono); font-size:13px; background:var(--bg-card); border:1px solid var(--line); border-radius:8px; padding:16px 18px; overflow-x:auto; margin-bottom:18px; color:var(--text); line-height:1.7; }

  /* ---------- DOCS LAYOUT ---------- */
  .docs-grid{ display:grid; grid-template-columns:220px 1fr; gap:48px; }
  @media (max-width:820px){ .docs-grid{ grid-template-columns:1fr; } }
  .docs-nav{ position:sticky; top:88px; align-self:start; }
  .docs-nav-group{ margin-bottom:24px; }
  .docs-nav-group h5{ font-family:var(--mono); font-size:11px; color:var(--text-faint); letter-spacing:0.4px; margin-bottom:10px; }
  .docs-nav-group a{ display:block; font-size:13.5px; color:var(--text-dim); padding:5px 0; }
  .docs-nav-group a.active{ color:var(--green); }
  .docs-nav-group a:hover{ color:var(--text); }

  /* ---------- STATUS PAGE ---------- */
  .status-banner{
    display:flex; align-items:center; gap:12px; background:var(--green-dim); border:1px solid #235C3F;
    border-radius:10px; padding:16px 20px; margin-bottom:36px;
  }
  .status-banner .dot{ width:9px; height:9px; border-radius:50%; background:var(--green); flex-shrink:0; }
  .status-banner-text{ font-size:14.5px; color:#fff; font-weight:600; }
  .status-banner-sub{ font-size:12.5px; color:var(--text-dim); margin-top:2px; }

  .status-service-row{
    display:flex; align-items:center; justify-content:space-between; padding:16px 0;
    border-bottom:1px solid var(--line-soft);
  }
  .status-service-name{ font-size:14.5px; color:var(--text); }
  .status-service-region{ font-family:var(--mono); font-size:11.5px; color:var(--text-faint); margin-left:10px; }
  .status-pill{ font-family:var(--mono); font-size:11.5px; padding:4px 10px; border-radius:20px; display:flex; align-items:center; gap:6px; }
  .status-pill.ok{ background:var(--green-dim); color:var(--green); }
  .status-pill.degraded{ background:var(--amber-dim); color:var(--amber); }
  .status-pill .dot{ width:6px; height:6px; border-radius:50%; }
  .status-pill.ok .dot{ background:var(--green); }
  .status-pill.degraded .dot{ background:var(--amber); }

  .uptime-bar{ display:flex; gap:2px; margin-top:8px; }
  .uptime-bar span{ flex:1; height:22px; border-radius:2px; background:var(--green); opacity:0.85; }
  .uptime-bar span.warn{ background:var(--amber); }
  .uptime-bar span.low{ opacity:0.35; }

  .incident-card{ background:var(--bg-card); border:1px solid var(--line); border-radius:10px; padding:18px 20px; margin-bottom:14px; }
  .incident-date{ font-family:var(--mono); font-size:11.5px; color:var(--text-faint); margin-bottom:6px; }
  .incident-title{ font-size:14.5px; color:#fff; font-weight:600; margin-bottom:6px; }
  .incident-text{ font-size:13.5px; color:var(--text-dim); }
