:root{
  --bg:#070A12;
  --panel:#0B1020;
  --text:#EAF0FF;
  --muted:#A8B3D6;
  --line:rgba(255,255,255,.10);
  --glow1:#7C5CFF;
  --glow2:#22D3EE;
  --radius:20px;
  --container:1120px;
}

*{box-sizing:border-box}
body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial;
  color:var(--text);
  background:
    radial-gradient(900px 600px at 20% 10%, rgba(124,92,255,.18), transparent 50%),
    radial-gradient(800px 500px at 80% 0%, rgba(34,211,238,.14), transparent 55%),
    var(--bg);
  line-height:1.5;
}
img{max-width:100%; display:block}
a{color:inherit; text-decoration:none}
.container{max-width:var(--container); margin:0 auto; padding:0 18px}

.skip{position:absolute; left:-999px}
.skip:focus{left:18px; top:18px; background:var(--panel); padding:10px 12px; border-radius:12px}

.header__inner{
  min-height: 74px;              /* adjust to taste */
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding: 10px 0;               /* keeps breathing room */
}

/* Logo fills the available header height */
.brand{
  display:flex;
  align-items:center;
  height: 100%;
  padding-left: 12px;
}

.brand__logo{
  height: 100%;                  /* fills header__inner height */
  max-height: 74px;              /* match min-height above */
  width: auto;                   /* keeps aspect ratio */
  display:block;
}

.nav{display:flex; gap:14px; align-items:center}
.nav a{color:var(--muted); font-weight: 600; padding:10px 12px; border-radius:12px}
.nav a:hover{color:var(--text); background:rgba(255,255,255,.06)}

.navbtn{
  display:none;
  width:44px; height:44px;
  border:1px solid var(--line);
  border-radius:14px;
  background:rgba(255,255,255,.04);
}
.navbtn span{display:block; width:18px; height:2px; background:var(--text); margin:4px auto; border-radius:99px}

.btn{
  display:inline-flex; align-items:center; justify-content:center;
  padding:12px 16px;
  border-radius:14px;
  border:1px solid rgba(255,255,255,.14);
  background:
    radial-gradient(120% 120% at 20% 0%, rgba(124,92,255,.35), transparent 45%),
    radial-gradient(120% 120% at 80% 0%, rgba(34,211,238,.26), transparent 45%),
    rgba(255,255,255,.06);
  font-weight:800;
  color: white;
}
.btn--small{padding:10px 12px; border-radius:12px}
.btn--ghost{background:rgba(255,255,255,.03)}

.hero{padding:10px 0 10px}
.hero__grid{display:grid; grid-template-columns:1.15fr .85fr; gap:22px; align-items:center}
.pill{display:inline-flex; padding:8px 12px; border-radius:999px; border:1px solid var(--line); color:var(--muted); background:rgba(255,255,255,.04); font-size:13px}
h1{font-size:clamp(34px, 4.2vw, 56px); line-height:1.05; margin:14px 0 12px}
.lead{color:var(--muted); font-size:18px; max-width:60ch}
.hero__actions{display:flex; gap:12px; flex-wrap:wrap; margin-top:16px}
.hero__art{border:1px solid var(--line); border-radius:28px; background:rgba(255,255,255,.03); padding:12px}

.section{padding:20px 0}
.section__head{display:flex; justify-content:space-between; gap:16px; align-items:end; margin-bottom:16px}
.muted{color:var(--muted)}
.link{text-decoration:underline; text-underline-offset:4px}

.cards{display:grid; grid-template-columns:repeat(3, 1fr); gap:14px}
.card{
  border:1px solid var(--line);
  border-radius:var(--radius);
  background:rgba(255,255,255,.03);
  padding:18px;
}
.card--big{padding:20px}

.pagehero{padding:44px 0 10px}
.pagehero h1{margin:0 0 6px; font-size:40px}

.services{display:grid; gap:14px}
.service{
  border:1px solid var(--line);
  border-radius:var(--radius);
  background:rgba(255,255,255,.03);
  padding:18px;
}
.service__head{display:flex; gap:14px; align-items:flex-start}
.list{margin:10px 0 0; color:var(--muted)}
.list li{margin:8px 0}

.grid2{display:grid; grid-template-columns:1.1fr .9fr; gap:14px}
.panel{border:1px solid var(--line); border-radius:var(--radius); background:rgba(255,255,255,.03); padding:18px}
.form{display:grid; gap:12px; margin-top:12px}
label span{display:block; font-weight:800; font-size:14px; margin-bottom:8px}
input,textarea{
  width:100%;
  border:1px solid var(--line);
  border-radius:14px;
  background:rgba(0,0,0,.22);
  color:var(--text);
  padding:12px;
}
.notice{border:1px solid var(--line); border-radius:14px; padding:12px; margin:10px 0; background:rgba(255,255,255,.03)}
.notice--ok{border-color:rgba(34,211,238,.35)}
.notice--bad{border-color:rgba(255,99,99,.35)}

.check{list-style:none; padding:0; margin:10px 0 0}
.check li{color:var(--muted); margin:10px 0; padding-left:26px; position:relative}
.check li::before{content:"✓"; position:absolute; left:0; top:0; color:var(--text)}

.stats{display:flex; gap:12px; flex-wrap:wrap; margin-top:16px}
.stat{min-width:140px; border:1px solid var(--line); border-radius:18px; padding:12px 14px; background:rgba(255,255,255,.03)}
.stat__big{font-weight:900; font-size:18px}
.stat__small{color:var(--muted); font-size:13px}

.cta{
  margin-top:16px;
  border:1px solid var(--line);
  border-radius:var(--radius);
  padding:16px;
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:14px;
  background:rgba(255,255,255,.03);
}

.footer{border-top:1px solid var(--line); padding:26px 0; background:rgba(0,0,0,.16)}
.footer__grid{display:grid; grid-template-columns:1.4fr .6fr .8fr; gap:14px}
.footer__brand{display:flex; gap:10px; align-items:center; margin-bottom:10px}
.links{list-style:none; padding:0; margin:10px 0 0}
.links li{margin:10px 0}
.links a{color:var(--muted)}
.links a:hover{color:var(--text); text-decoration:underline; text-underline-offset:4px}
.footer__bottom{display:flex; justify-content:space-between; gap:12px; margin-top:18px; padding-top:14px; border-top:1px solid var(--line)}

@media (max-width: 900px){
  .hero__grid{grid-template-columns:1fr}
  .cards{grid-template-columns:1fr}
  .grid2{grid-template-columns:1fr}
  .footer__grid{grid-template-columns:1fr}
  .section__head{flex-direction:column; align-items:flex-start}
  .navbtn{display:inline-flex; align-items:center; justify-content:center}
  .nav{
    position:absolute;
    right:18px;
    top:70px;
    display:none;
    flex-direction:column;
    width:min(320px, calc(100vw - 36px));
    border:1px solid var(--line);
    border-radius:16px;
    background: rgba(7,10,18,.92);
    padding:10px;
  }
  .nav[data-open="true"]{display:flex}
}

/* ===== Groups ===== */
.status-group{ margin: 26px 0 34px; }
.status-group__title{
  font-size: 18px;
  font-weight: 900;
  margin: 0 0 14px;
}

/* ===== Spacing between rows ===== */
.status-list{
  display: flex;
  flex-direction: column;
  gap: 18px;
}

/* ===== Card layout ===== */
.status-card{ padding: 20px; }

.status-card__summary{
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 16px;
  height: 90px; /* fixed row height */
}

/* ===== Text ===== */
.status-card__name{
  font-weight: 900;
  font-size: 17px;
  margin: 0 0 6px;
  line-height: 1.15;
}
.status-card__state{
  font-size: 14px;
  color: var(--muted);
  margin: 0;
}

/* ===== Expandable ===== */
.status-card--expandable{ cursor: pointer; user-select: none; }
.status-card--expandable:hover{ background: rgba(255,255,255,.04); }
.status-card--expandable:focus{
  outline: none;
  box-shadow: 0 0 0 2px rgba(124,92,255,.35);
}

/* ===== Fixed-width centered badge ===== */
.status-badge{
  width: 180px;                 /* <--- all the same width */
  display: inline-flex;
  align-items: center;
  justify-content: center;      /* center text */
  text-align: center;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
  border: 1px solid transparent;
  white-space: nowrap;
}

/* Badge colors */
.status-badge--none{
  background: rgba(34,197,94,.15);
  color: #22c55e;
  border-color: rgba(34,197,94,.35);
}
.status-badge--partial{
  background: rgba(249,115,22,.15);
  color: #f97316;
  border-color: rgba(249,115,22,.35);
}
.status-badge--outage{
  background: rgba(239,68,68,.15);
  color: #ef4444;
  border-color: rgba(239,68,68,.35);
}
.status-badge--planned{
  background: rgba(59,130,246,.15);
  color: #3b82f6;
  border-color: rgba(59,130,246,.35);
}

/* ===== Subtle outage pulse (badge) ===== */
@keyframes outagePulse {
  0%   { box-shadow: 0 0 0 0 rgba(239,68,68,.22); }
  70%  { box-shadow: 0 0 0 10px rgba(239,68,68,0); }
  100% { box-shadow: 0 0 0 0 rgba(239,68,68,0); }
}
.status-card[data-status="outage"] .status-badge--outage{
  animation: outagePulse 1.8s ease-out infinite;
}

/* Details */
.status-card__details{
  border-top: 1px solid var(--line);
  margin-top: 14px;
  padding-top: 14px;
}
.status-card__details-inner{
  font-size: 14px;
  line-height: 1.6;
  color: var(--muted);
}

/* Ensure clicks are not blocked by inherited rules */
.status-card[data-expandable="true"]{
  cursor: pointer;
  pointer-events: auto;
}

/* If your existing .card has inner layers, ensure they can receive clicks */
.status-card[data-expandable="true"] *{
  pointer-events: auto;
}

/* Last updated line styling */
.status-card__updated{
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px dashed rgba(255,255,255,.12);
  color: var(--muted);
  font-size: 13px;
}

/* =========================
   MOBILE LAYOUT
   ========================= */

@media (max-width: 640px) {

  /* Stack main text + badge */
  .status-card__summary {
    grid-template-columns: 1fr;   /* single column */
    height: auto;                 /* allow natural height */
    gap: 14px;
  }

  /* Ensure content stacks properly */
  .status-card__main {
    width: 100%;
  }

  /* Badge drops underneath */
  .status-badge {
    width: 100%;                  /* full width on mobile */
    max-width: 100%;
    justify-content: center;      /* keep text centered */
  }

  /* Optional: slightly tighter spacing */
  .status-card {
    padding: 18px;
  }

}

.legal-policy {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px 0;
}

.legal-policy h1 {
    margin-bottom: 10px;
}

.legal-policy h2 {
    margin-top: 30px;
}

.legal-policy ul {
    padding-left: 20px;
}

.legal-content {
    display: none;
}

.privacy-policy {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px 0;
}

.privacy-policy h1 {
    margin-bottom: 10px;
}

.privacy-policy h2 {
    margin-top: 30px;
}

.privacy-policy ul {
    padding-left: 20px;
}

.privacy-toggle {
    margin: 20px 0;
    padding: 10px 18px;
    cursor: pointer;
    background: #ffffff;
    border: 1px solid #333;
    transition: background 0.2s ease;
}

.privacy-toggle:hover {
    background: #f5f5f5;
}

.privacy-content {
    display: none;
}

.cookie-policy {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px 0;
}

.cookie-policy h1 {
    margin-bottom: 10px;
}

.cookie-policy h2 {
    margin-top: 30px;
}

.cookie-policy ul {
    padding-left: 20px;
}

.cookie-toggle {
    margin: 20px 0;
    padding: 10px 18px;
    cursor: pointer;
    background: #ffffff;
    border: 1px solid #333;
    transition: background 0.2s ease;
}

.cookie-toggle:hover {
    background: #f5f5f5;
}

.cookie-content {
    display: none;
}

.terms-policy {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px 0;
}

.terms-policy h1 {
    margin-bottom: 10px;
}

.terms-policy h2 {
    margin-top: 30px;
}

.terms-policy ul {
    padding-left: 20px;
}

.terms-content {
    display: none;
}