:root{
  --bg0:#05060b;
  --text:#f2f4f8;
  --muted: rgba(242,244,248,.72);
  --muted2: rgba(242,244,248,.55);

  --border: rgba(255,255,255,.12);
  --border2: rgba(255,255,255,.18);

  --cyan:#22d3ee;

  --shadow: 0 30px 90px rgba(0,0,0,.72);
  --r:18px;

  --mx:.5;
  --my:.5;
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  color:var(--text);
  background: var(--bg0);
  overflow:hidden;
  font-family: "Space Grotesk", ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial;
}

.muted{color:var(--muted)}
.mono{font-family:"JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace}

.material-symbols-rounded{
  font-variation-settings: 'FILL' 0, 'wght' 520, 'GRAD' 120, 'opsz' 24;
}

/* ===== Canvas background ===== */
#particles{
  position:fixed;
  inset:0;
  width:100%;
  height:100%;
  z-index: 0;
  background:
    radial-gradient(1200px 800px at 50% 20%, rgba(7,18,36,.55), transparent 62%),
    radial-gradient(900px 600px at 15% 85%, rgba(6,27,43,.45), transparent 60%),
    linear-gradient(120deg, #04050a, #060713);
}

/* ===== Overlays ===== */
.fx{
  position:fixed;
  inset:0;
  pointer-events:none;
  z-index: 1;
}
.fx__grid{
  position:absolute; inset:0;
  background-image:
    linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 56px 56px;
  opacity:.08;
  mask-image: radial-gradient(520px 340px at 35% 22%, #000, transparent 70%);
}
.fx__scan{
  position:absolute; inset:0;
  background: repeating-linear-gradient(
    to bottom,
    rgba(255,255,255,.032),
    rgba(255,255,255,.032) 1px,
    transparent 2px,
    transparent 6px
  );
  opacity:.08;
  mix-blend-mode: overlay;
}
.fx__grain{
  position:absolute; inset:-20%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='220' height='220' filter='url(%23n)' opacity='.22'/%3E%3C/svg%3E");
  opacity:.18;
  mix-blend-mode: overlay;
}
.fx__vignette{
  position:absolute; inset:0;
  background: radial-gradient(1200px 820px at 50% 30%, transparent 55%, rgba(0,0,0,.62));
}

.wrap{
  position:relative;
  z-index: 2;
  height:100%;
  display:grid;
  place-items:center;
  padding: 26px;
}

.card{
  width: min(760px, 94vw);
  border-radius: var(--r);
  border: 1px solid var(--border);
  background: rgba(10, 12, 18, .58);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
  overflow:hidden;
  position:relative;
  transform-style: preserve-3d;
  transition: transform .12s ease, border-color .12s ease, background .12s ease;
}

.card:before{
  content:"";
  position:absolute; inset:-1px;
  border-radius: var(--r);
  padding:1px;
  background: linear-gradient(90deg,
    rgba(255,255,255,.16),
    rgba(34,211,238,.20),
    rgba(255,255,255,.10)
  );
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events:none;
  opacity:.85;
}

.card:after{
  content:"";
  position:absolute; inset:-2px;
  border-radius: var(--r);
  background:
    radial-gradient(520px 320px at calc(var(--mx)*100%) calc(var(--my)*100%),
      rgba(34,211,238,.16),
      rgba(255,255,255,.06),
      transparent 60%
    );
  opacity:0;
  transition: opacity .12s ease;
  pointer-events:none;
}

.card.is-hover{
  border-color: var(--border2);
  transform:
    perspective(900px)
    rotateX(calc((.5 - var(--my)) * 10deg))
    rotateY(calc((var(--mx) - .5) * 12deg))
    translateY(0px);
}
.card.is-hover:after{opacity:1;}

.card__top{
  display:flex; align-items:center; justify-content:space-between;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(255,255,255,.08);
  background: rgba(0,0,0,.16);
}

.brand{display:flex; align-items:center; gap:12px;}
.brand__icon{
  width: 38px; height: 38px;
  display:grid; place-items:center;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.14);
  background:
    radial-gradient(circle at 30% 30%, rgba(255,255,255,.18), transparent 60%),
    linear-gradient(135deg, rgba(34,211,238,.18), rgba(6,27,43,.40));
  box-shadow: 0 0 24px rgba(34,211,238,.10);
  color: rgba(242,244,248,.92);
}

.brand__name{font-weight:800; letter-spacing:.02em}
.brand__tag{font-size:12px; color: var(--muted2); margin-top:2px}

.status{
  display:flex; align-items:center; gap:10px;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.status__dot{
  width:10px;height:10px;border-radius:50%;
  background: radial-gradient(circle at 30% 30%, #fff, transparent 60%), rgba(34,211,238,.95);
  box-shadow: 0 0 18px rgba(34,211,238,.28);
  opacity:.9;
}

.card__body{padding: 16px 16px 14px;}

.kicker{
  display:inline-flex; align-items:center; gap:10px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.04);
  color: rgba(242,244,248,.70);
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.kicker .material-symbols-rounded{
  font-variation-settings: 'FILL' 0, 'wght' 540, 'GRAD' 160, 'opsz' 22;
  opacity:.95;
}
.sep{opacity:.55}

.title{margin: 14px 0 8px; line-height: 1.06; letter-spacing:-.5px}
.title__line{
  display:block;
  font-size: clamp(30px, 4.7vw, 54px);
  font-weight: 700;
  text-shadow: 0 0 26px rgba(255,255,255,.10);
}
.title__grad{
  display:block;
  margin-top: 2px;
  font-size: clamp(30px, 4.9vw, 56px);
  font-weight: 700;
  background: linear-gradient(90deg, rgba(242,244,248,.96), rgba(34,211,238,.70), rgba(242,244,248,.90));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 0 22px rgba(34,211,238,.10);
}

.lead{
  margin: 0 0 16px;
  color: var(--muted);
  line-height: 1.75;
  font-size: 15px;
}

.actions{
  display:flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 12px 0 16px;
}

.btn{
  display:inline-flex; align-items:center; gap:10px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.05);
  color: var(--text);
  transition: transform .12s ease, background .12s ease, border-color .12s ease;
  will-change: transform;
}
.btn:hover{
  transform: translateY(-1px);
  background: rgba(255,255,255,.08);
  border-color: rgba(255,255,255,.18);
}
.btn--primary{
  background:
    radial-gradient(circle at 20% 10%, rgba(34,211,238,.16), transparent 60%),
    linear-gradient(180deg, rgba(255,255,255,.12), rgba(255,255,255,.05));
  box-shadow: 0 0 28px rgba(34,211,238,.10);
}
.btn--ghost{color: var(--muted);}
.btn--ghost:hover{color: var(--text);}

.stats{
  display:grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 10px;
  margin-bottom: 14px;
}
.stat{
  padding: 12px 12px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(0,0,0,.22);
}
.stat__k{
  font-size: 11px;
  color: var(--muted2);
  letter-spacing: .16em;
  text-transform: uppercase;
}
.stat__v{margin-top:4px;font-weight:700}

.meter{
  padding: 12px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(0,0,0,.22);
}
.meter__top{display:flex; align-items:center; justify-content:space-between; margin-bottom: 8px}
.meter__bar{
  height: 10px;
  border-radius: 999px;
  background: rgba(255,255,255,.08);
  overflow:hidden;
}
.meter__fill{
  height:100%;
  width:20%;
  background: linear-gradient(90deg, rgba(242,244,248,.92), rgba(34,211,238,.82), rgba(242,244,248,.80));
  box-shadow: 0 0 18px rgba(34,211,238,.14);
}
.meter__hint{margin-top: 8px; font-size: 13px}

.foot{
  margin-top: 12px;
  display:flex;
  justify-content:space-between;
  gap: 10px;
  padding-top: 12px;
  border-top: 1px solid rgba(255,255,255,.08);
}

.toast{
  position:fixed;
  left:50%;
  bottom: 18px;
  transform: translateX(-50%);
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(0,0,0,.62);
  color: rgba(242,244,248,.92);
  box-shadow: var(--shadow);
  opacity:0;
  pointer-events:none;
  transition: opacity .14s ease;
  max-width: min(720px, calc(100% - 28px));
  z-index: 3;
}
.toast.is-on{opacity:1}

@media (max-width: 980px){
  .stats{grid-template-columns: 1fr}
  .actions{flex-direction:column}
  .btn{justify-content:center}
}

/* Hover: no forward jump, only subtle depth shift */
.card.is-hover{
  box-shadow: 0 26px 80px rgba(0,0,0,.78);
  transform:
    perspective(900px)
    rotateX(calc((.5 - var(--my)) * 8deg))
    rotateY(calc((var(--mx) - .5) * 10deg))
    translateZ(-6px);
}
