/* ============================================================
   STRUZIL NETWORK — Coming Soon
   ============================================================ */

:root{
  /* Base palette (sampled from the network's teal/cyan identity) */
  --bg-0: #030a0c;
  --bg-1: #050f13;
  --teal-950: #04191b;
  --teal-900: #072a2a;
  --teal-800: #0c3838;
  --teal-700: #124b49;
  --cyan-500: #1fb8ab;
  --cyan-400: #2fd9c9;
  --cyan-300: #7cf1e3;
  --white: #f3fbfa;
  --muted: #6f9997;
  --muted-dim: #4a6968;
  --green: #34e0a1;
  --red: #ef4f4f;
  --orange: #e2572b;

  --panel-bg: rgba(4, 15, 18, 0.72);
  --panel-bg-soft: rgba(6, 20, 24, 0.5);
  --panel-border: rgba(97, 214, 201, 0.28);
  --panel-border-strong: rgba(124, 241, 227, 0.5);

  --radius-lg: 26px;
  --radius-md: 18px;
  --radius-sm: 12px;

  --font-pixel: "Pixelify Sans", "Courier New", monospace;
}

*, *::before, *::after{ box-sizing: border-box; }

html, body{
  margin: 0;
  padding: 0;
  width: 100%;
  min-height: 100%;
  background: var(--bg-0);
  color: var(--white);
  font-family: var(--font-pixel);
  overflow-x: hidden;
}

body{
  position: relative;
  min-height: 100vh;
}

a{ color: inherit; text-decoration: none; }
button{ font-family: inherit; }

::selection{ background: var(--cyan-500); color: var(--bg-0); }

/* Respect reduced motion: the JS animation loop checks this too,
   but we also freeze any residual CSS-driven motion here. */
@media (prefers-reduced-motion: reduce){
  * { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

/* ---------------------------------------------------------
   Ambient background canvas (embers + glow), driven by JS rAF
   --------------------------------------------------------- */
#fx-canvas{
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

/* ---------------------------------------------------------
   Scene: static painted backdrop (cave / water silhouette)
   built with layered gradients + clip-path rock shapes
   --------------------------------------------------------- */
.scene{
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 28px 20px 40px;

  background:
    radial-gradient(60% 50% at 50% 8%, rgba(20, 90, 88, 0.28), transparent 70%),
    radial-gradient(90% 60% at 50% 100%, rgba(8, 45, 44, 0.55), transparent 70%),
    linear-gradient(180deg, var(--bg-1) 0%, #041012 45%, #020608 100%);
}

.scene::before,
.scene::after{
  content: "";
  position: fixed;
  bottom: 0;
  width: 46vw;
  max-width: 620px;
  height: 62vh;
  z-index: 0;
  background:
    linear-gradient(180deg, transparent 0%, rgba(10, 40, 40, 0.35) 60%, rgba(6, 26, 27, 0.7) 100%),
    repeating-linear-gradient(115deg, rgba(9, 46, 46, 0.9) 0 40px, rgba(6, 32, 33, 0.9) 40px 80px);
  opacity: 0.9;
}
.scene::before{
  left: 0;
  clip-path: polygon(0 20%, 30% 8%, 45% 22%, 62% 12%, 78% 28%, 100% 18%, 100% 100%, 0 100%);
}
.scene::after{
  right: 0;
  clip-path: polygon(100% 15%, 68% 5%, 55% 24%, 40% 10%, 22% 26%, 0 12%, 0 100%, 100% 100%);
}

/* ---------------------------------------------------------
   Status bar
   --------------------------------------------------------- */
.statusbar{
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1040px;
  background: var(--panel-bg);
  border: 1.5px solid var(--panel-border);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 0 0 1px rgba(0,0,0,0.25), 0 20px 50px -20px rgba(0,0,0,0.7);
  padding: 14px 18px;
}

.statusbar__row{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.brand{
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.brand__logo{
  width: 34px;
  height: 34px;
  border-radius: 9px;
  object-fit: cover;
  box-shadow: 0 0 0 1px var(--panel-border), 0 0 16px rgba(47, 217, 201, 0.25);
  flex-shrink: 0;
}
.brand__name{
  font-size: 15px;
  letter-spacing: 0.04em;
  color: var(--white);
  white-space: nowrap;
}

.stats{
  display: flex;
  align-items: center;
  gap: 26px;
  flex-wrap: wrap;
}

.stat{
  display: flex;
  align-items: center;
  gap: 9px;
}
.stat__icon{
  width: 18px;
  height: 18px;
  color: var(--cyan-400);
  flex-shrink: 0;
}
.stat__text{
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}
.stat__label{
  font-size: 10px;
  color: var(--muted);
  letter-spacing: 0.02em;
}
.stat__value{
  font-size: 13px;
  color: var(--white);
}

.stat__dot{
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--muted-dim);
  flex-shrink: 0;
  box-shadow: 0 0 0 rgba(52, 224, 161, 0);
}
.stat__dot[data-state="online"]{ background: var(--green); }
.stat__dot[data-state="offline"]{ background: var(--red); }
.stat__dot[data-state="loading"]{ background: var(--muted-dim); }

.expand-btn{
  width: 38px;
  height: 38px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  background: transparent;
  border: 1.5px solid var(--panel-border);
  border-radius: var(--radius-sm);
  color: var(--cyan-300);
  cursor: pointer;
}
.expand-btn svg{ width: 18px; height: 18px; }
.expand-btn[aria-expanded="true"] svg{ transform: rotate(90deg); }
.expand-btn svg{ transition: transform 0.25s ease; }
.expand-btn:hover{ border-color: var(--panel-border-strong); background: rgba(47, 217, 201, 0.07); }
.expand-btn:focus-visible,
.social:focus-visible,
a:focus-visible{
  outline: 2px solid var(--cyan-300);
  outline-offset: 2px;
}

.stat-detail{
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transition: max-height 0.35s ease, opacity 0.3s ease, margin-top 0.35s ease;
  margin-top: 0;
}
.stat-detail.is-open{
  max-height: 140px;
  opacity: 1;
  margin-top: 14px;
}
.stat-detail__grid{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px 20px;
  padding-top: 14px;
  border-top: 1px solid var(--panel-border);
}
.stat-detail__grid div{
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}
.stat-detail__grid span{
  font-size: 9.5px;
  color: var(--muted);
  letter-spacing: 0.04em;
}
.stat-detail__grid b{
  font-size: 12px;
  font-weight: 400;
  color: var(--cyan-300);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ---------------------------------------------------------
   Hero
   --------------------------------------------------------- */
.hero{
  position: relative;
  z-index: 2;
  flex: 1;
  width: 100%;
  max-width: 780px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 12px;
  gap: 26px;
}

.hero__deco{
  display: flex;
  align-items: center;
  gap: 22px;
}
.hero__line{
  width: 64px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--cyan-400));
}
.hero__deco .hero__line:last-child{
  background: linear-gradient(90deg, var(--cyan-400), transparent);
}
.hero__logo{
  width: 46px;
  height: 46px;
  border-radius: 12px;
  object-fit: cover;
}

.hero__title{
  margin: 0;
  font-size: clamp(40px, 9vw, 80px);
  line-height: 1;
  letter-spacing: 0.01em;
  display: flex;
  gap: 0.4ch;
  flex-wrap: wrap;
  justify-content: center;
}
.hero__title-white{ color: var(--white); }
.hero__title-teal{ color: var(--cyan-400); }

.hero__subtitle{
  margin: 0;
  font-size: clamp(14px, 2.4vw, 18px);
  line-height: 1.7;
  color: var(--cyan-300);
  max-width: 34ch;
}

.socials{
  display: flex;
  gap: 16px;
  margin-top: 6px;
}
.social{
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: var(--radius-md);
  background: var(--panel-bg-soft);
  border: 1.5px solid var(--panel-border);
  color: var(--white);
}
.social svg{ width: 22px; height: 22px; }
.social--discord:hover{ color: #5865f2; border-color: #5865f2; }
.social--youtube:hover{ color: #ff0033; border-color: #ff0033; }
.social--tiktok:hover{ color: var(--white); border-color: var(--white); }
.social--instagram:hover{ color: #e1306c; border-color: #e1306c; }

/* ---------------------------------------------------------
   Responsive
   --------------------------------------------------------- */
@media (max-width: 720px){
  .statusbar__row{ flex-wrap: wrap; row-gap: 12px; }
  .brand{ order: 1; }
  .expand-btn{ order: 2; margin-left: auto; }
  .stats{ order: 3; width: 100%; justify-content: space-between; gap: 12px; }
  .stat__label{ font-size: 9px; }
  .stat__value{ font-size: 12px; }
}

@media (max-width: 480px){
  .scene{ padding: 18px 12px 28px; }
  .brand__name{ font-size: 12px; }
  .stats{ gap: 10px; }
  .stat__icon{ width: 15px; height: 15px; }
  .socials{ gap: 12px; }
  .social{ width: 46px; height: 46px; }
  .hero{ gap: 20px; padding: 40px 8px; }
}
