/* DataCenterB2B — mobile-first responsive stylesheet. Self-hosted (CSP-safe). */
:root {
  --bg: #0b1220;
  --bg-alt: #0f1a2e;
  --surface: #111d33;
  --border: #1e2d47;
  --text: #e8eef7;
  --muted: #9fb0c7;
  --primary: #2f7cf6;
  --primary-600: #1e63d6;
  --accent: #35d0a5;
  --radius: 12px;
  --maxw: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}
a { color: inherit; text-decoration: none; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; }
h1 { font-size: clamp(1.9rem, 5vw, 3.2rem); letter-spacing: -.02em; }
h2 { font-size: clamp(1.4rem, 3.5vw, 2.2rem); margin-bottom: 1rem; }
p { margin: 0 0 1rem; }
small { color: var(--muted); }
.muted { color: var(--muted); }
.center { text-align: center; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 640px; }

/* Buttons */
.btn {
  display: inline-block; padding: .7rem 1.2rem; border-radius: 999px;
  font-weight: 600; font-size: .95rem; border: 1px solid transparent;
  transition: transform .05s ease, background .2s ease; cursor: pointer;
}
.btn:active { transform: translateY(1px); }
.btn-lg { padding: .95rem 1.7rem; font-size: 1.05rem; }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-600); }
.btn-ghost { border-color: var(--border); color: var(--text); background: transparent; }
.btn-ghost:hover { background: var(--surface); }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(11,18,32,.85); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: flex; align-items: center; gap: .6rem; font-weight: 700; }
.brand-mark {
  display: grid; place-items: center; width: 34px; height: 34px; border-radius: 8px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #06101f; font-weight: 800; font-size: .95rem;
}
.brand-name { font-size: 1.05rem; }
.nav { display: flex; align-items: center; gap: 1.25rem; }
.nav a { color: var(--muted); font-weight: 500; }
.nav a:hover { color: var(--text); }
.nav a.btn { color: #fff; }
.nav a.btn-primary { color: #fff; }

/* Mobile nav (CSS-only, no JS -> CSP stays strict) */
.nav-toggle { display: none; }
.nav-burger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 8px; }
.nav-burger span { width: 24px; height: 2px; background: var(--text); border-radius: 2px; }

@media (max-width: 820px) {
  .nav-burger { display: flex; }
  .nav {
    position: absolute; top: 64px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--bg-alt); border-bottom: 1px solid var(--border);
    max-height: 0; overflow: hidden; transition: max-height .25s ease;
  }
  .nav a { padding: .9rem 20px; border-top: 1px solid var(--border); }
  .nav-toggle:checked ~ .nav { max-height: 420px; }
}

/* Hero */
.hero {
  padding: clamp(3rem, 8vw, 6rem) 0;
  background:
    radial-gradient(1200px 400px at 80% -10%, rgba(47,124,246,.25), transparent),
    radial-gradient(900px 400px at 0% 10%, rgba(53,208,165,.15), transparent),
    var(--bg);
}
.eyebrow { color: var(--accent); font-weight: 600; text-transform: uppercase; letter-spacing: .08em; font-size: .8rem; }
.lede { font-size: clamp(1.05rem, 2.5vw, 1.3rem); color: var(--muted); max-width: 640px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.5rem; }

/* Sections */
.section { padding: clamp(2.5rem, 6vw, 4.5rem) 0; }
.section-alt { background: var(--bg-alt); }
.trust { padding: 2.5rem 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: var(--bg-alt); }

/* Grid + cards */
.grid { display: grid; gap: 1rem; }
.grid-3 { grid-template-columns: 1fr; }
.grid-4 { grid-template-columns: 1fr; }
@media (min-width: 640px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
}
.card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.4rem;
}
.card h3 { font-size: 1.1rem; }
.service h3 { color: var(--text); }
.price-tag { font-size: 1.35rem; font-weight: 700; color: var(--accent); }

/* Chips */
.chips { display: flex; flex-wrap: wrap; gap: .6rem; }
.chip {
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .4rem .8rem; border-radius: 999px; font-size: .9rem;
  border: 1px solid var(--border); background: var(--surface);
}
.chip-live { border-color: rgba(53,208,165,.5); }
.chip-soon { opacity: .65; }
.chip em { font-style: normal; font-size: .7rem; color: var(--muted); }

/* CTA band */
.cta-band {
  padding: clamp(3rem, 7vw, 5rem) 0; text-align: center;
  background: linear-gradient(135deg, rgba(47,124,246,.18), rgba(53,208,165,.12)), var(--bg-alt);
  border-top: 1px solid var(--border);
}

/* Table */
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; margin-top: 1rem; }
.table th, .table td { text-align: left; padding: .7rem .8rem; border-bottom: 1px solid var(--border); }
.table th { color: var(--muted); font-weight: 600; font-size: .85rem; text-transform: uppercase; letter-spacing: .04em; }

/* Flash */
.flashes { margin-top: 1rem; }
.flash { background: var(--surface); border: 1px solid var(--border); border-left: 3px solid var(--primary); padding: .8rem 1rem; border-radius: 8px; margin-bottom: .5rem; }

/* Footer */
.site-footer { border-top: 1px solid var(--border); background: var(--bg-alt); padding: 2.5rem 0; margin-top: 2rem; }
.footer-inner { display: flex; flex-wrap: wrap; gap: 1.5rem; justify-content: space-between; }
.footer-inner p { margin: .2rem 0; }

/* Upload */
.upload-form { margin: 1.5rem 0; }
.dropzone {
  border: 2px dashed var(--border); border-radius: var(--radius);
  padding: 2rem 1.5rem; text-align: center; margin-bottom: 1rem;
  transition: border-color .2s ease, background .2s ease;
}
.dropzone.drag { border-color: var(--primary); background: rgba(47,124,246,.08); }
.upload-inputs { display: flex; flex-wrap: wrap; gap: .8rem; justify-content: center; margin: 1rem 0 .5rem; }
.btn-sm { padding: .4rem .8rem; font-size: .85rem; }
.delete-form { margin: 0; }

/* Brand logo + version */
.brand-icon { display: block; height: 34px; width: auto; }
.version { font-size: .8rem; opacity: .65; margin-top: .3rem; }
code { background: var(--surface); border: 1px solid var(--border); border-radius: 6px; padding: .1rem .4rem; font-size: .85rem; }

/* Minimal hero (v1.1.0) */
.hero-inner { max-width: 760px; }
.hero-cta { align-items: center; }
.btn-link { color: var(--muted); font-weight: 600; padding: .95rem .5rem; }
.btn-link:hover { color: var(--text); }
.hero-trust { list-style: none; display: flex; flex-wrap: wrap; gap: .5rem 1.4rem; padding: 0; margin: 2rem 0 0; }
.hero-trust li { position: relative; padding-left: 1.2rem; color: var(--muted); font-size: .9rem; }
.hero-trust li::before { content: "\2713"; position: absolute; left: 0; color: var(--accent); font-weight: 700; }
.note { margin-top: 1.2rem; font-size: .85rem; }

/* Stats bar */
.stats-bar { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: var(--bg-alt); }
.stats-bar .container { display: flex; flex-wrap: wrap; gap: .8rem 2rem; padding-top: 1.1rem; padding-bottom: 1.1rem; }
.stats-bar span { color: var(--muted); font-size: .9rem; position: relative; padding-left: 1.3rem; }
.stats-bar span::before { content: "\2713"; position: absolute; left: 0; color: var(--accent); font-weight: 700; }

/* How it works steps */
.steps { display: grid; gap: 1rem; grid-template-columns: 1fr; }
@media (min-width: 760px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.step { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.4rem; }
.step .num { display: inline-grid; place-items: center; width: 2rem; height: 2rem; border-radius: 8px; background: linear-gradient(135deg, var(--primary), var(--accent)); color: #06101f; font-weight: 800; margin-bottom: .7rem; }

/* Why open */
.why-list { list-style: none; padding: 0; margin: 1rem 0 0; display: grid; gap: .7rem; }
.why-list li { position: relative; padding-left: 1.6rem; color: var(--muted); }
.why-list li::before { content: "\2192"; position: absolute; left: 0; color: var(--accent); font-weight: 700; }

/* FAQ (native <details>, no JS -> CSP-safe) */
.faq { max-width: 760px; }
.faq details { border: 1px solid var(--border); border-radius: 10px; padding: 0 1rem; margin-bottom: .6rem; background: var(--surface); }
.faq summary { cursor: pointer; padding: .95rem 0; font-weight: 600; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; float: right; color: var(--accent); font-weight: 700; }
.faq details[open] summary::after { content: "\2013"; }
.faq details p { color: var(--muted); margin: 0 0 .95rem; }

/* Legal footer line */
.legal { font-size: .8rem; opacity: .8; }

/* Admin server meters (width via class -> CSP-safe, no inline style) */
.meter { background: var(--border); border-radius: 6px; height: 8px; overflow: hidden; margin: .5rem 0; }
.meter i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--primary), var(--accent)); }
.meter i.w-0{width:0}.meter i.w-5{width:5%}.meter i.w-10{width:10%}.meter i.w-15{width:15%}
.meter i.w-20{width:20%}.meter i.w-25{width:25%}.meter i.w-30{width:30%}.meter i.w-35{width:35%}
.meter i.w-40{width:40%}.meter i.w-45{width:45%}.meter i.w-50{width:50%}.meter i.w-55{width:55%}
.meter i.w-60{width:60%}.meter i.w-65{width:65%}.meter i.w-70{width:70%}.meter i.w-75{width:75%}
.meter i.w-80{width:80%}.meter i.w-85{width:85%}.meter i.w-90{width:90%}.meter i.w-95{width:95%}
.meter i.w-100{width:100%}

/* Admin sub-navigation (tabs) */
.subnav { display: flex; flex-wrap: wrap; gap: .2rem; border-bottom: 1px solid var(--border); margin: 0 0 1.6rem; }
.subnav a { padding: .6rem 1rem; color: var(--muted); font-weight: 600; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.subnav a:hover { color: var(--text); }
.subnav a.active { color: var(--text); border-bottom-color: var(--primary); }

/* Monitor dashboard (SVG gauges, no JS -> CSP-safe) */
.mon-head { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; margin-bottom: .5rem; }
.mon-head h1 { margin: 0; }
.mon-status { display: inline-flex; align-items: center; gap: .5rem; padding: .5rem 1rem; border-radius: 999px; font-weight: 600; font-size: .9rem; border: 1px solid var(--border); background: var(--surface); }
.mon-status .dot { width: 10px; height: 10px; border-radius: 50%; }
.mon-status.ok { color: var(--accent); } .mon-status.ok .dot { background: var(--accent); box-shadow: 0 0 8px var(--accent); }
.mon-status.warn { color: #e6b800; } .mon-status.warn .dot { background: #e6b800; box-shadow: 0 0 8px #e6b800; }
.mon-status.crit { color: #e5484d; } .mon-status.crit .dot { background: #e5484d; box-shadow: 0 0 8px #e5484d; }
.mon-links { margin-top: 1.2rem; }

.metric-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; margin: 1.2rem 0 1.5rem; }
@media (min-width: 820px) { .metric-grid { grid-template-columns: repeat(4, 1fr); } }
.metric { display: flex; flex-direction: column; align-items: center; text-align: center; gap: .35rem; padding: 1.4rem 1rem; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.metric-name { font-weight: 600; }
.gauge { position: relative; width: 128px; height: 128px; }
.gauge svg { transform: rotate(-90deg); }
.g-track { fill: none; stroke: var(--border); stroke-width: 9; }
.g-fill { fill: none; stroke-width: 9; stroke-linecap: round; }
.g-ok { stroke: var(--accent); } .g-warn { stroke: #e6b800; } .g-crit { stroke: #e5484d; }
.gauge-label { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
.gauge-pct { font-size: 1.7rem; font-weight: 700; color: var(--text); }
.metric.uptime { justify-content: center; }
.up-val { font-size: 1.7rem; font-weight: 700; color: var(--accent); }
.small { font-size: .8rem; }

.svc-grid { display: grid; grid-template-columns: 1fr; gap: .6rem; }
@media (min-width: 640px) { .svc-grid { grid-template-columns: repeat(2, 1fr); } }
.svc { display: flex; align-items: center; gap: .7rem; padding: .85rem 1rem; background: var(--surface); border: 1px solid var(--border); border-radius: 10px; }
.svc .dot { width: 9px; height: 9px; border-radius: 50%; flex: none; }
.svc-ok .dot { background: var(--accent); box-shadow: 0 0 6px var(--accent); }
.svc-bad .dot { background: #e5484d; box-shadow: 0 0 6px #e5484d; }
.svc-name { font-weight: 600; flex: 1; }
.svc-state { color: var(--muted); font-size: .85rem; }

/* Auth + subscribe */
.auth-card { max-width: 440px; margin: 1rem auto; }
.auth-card h1 { margin-bottom: .3rem; }
.btn-google { display: block; width: 100%; text-align: center; background: #fff; color: #1f2937; margin-top: 1rem; }
.btn-google:hover { background: #eef2f7; }
.auth-or { display: flex; align-items: center; gap: .8rem; color: var(--muted); font-size: .85rem; margin: 1.3rem 0; }
.auth-or::before, .auth-or::after { content: ""; flex: 1; height: 1px; background: var(--border); }
.subscribe { display: flex; gap: .6rem; max-width: 460px; margin: 1.2rem auto 0; flex-wrap: wrap; }
.subscribe.col { flex-direction: column; margin: 0; max-width: none; }
.subscribe input[type=email] { flex: 1; min-width: 200px; padding: .8rem 1rem; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); color: var(--text); font-size: 1rem; }
.subscribe.col input[type=email] { border-radius: 10px; }
.subscribe input[type=email]:focus { outline: 2px solid var(--primary); border-color: var(--primary); }
.subscribe .btn { white-space: nowrap; }
.subscribe.col .btn { border-radius: 10px; }

/* Log viewer */
.logbox { background: #06101f; border: 1px solid var(--border); border-radius: 10px; padding: 1rem; overflow: auto; max-height: 70vh; font-family: ui-monospace, Menlo, Consolas, monospace; font-size: .8rem; line-height: 1.5; color: #cbd5e5; white-space: pre; }
