@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=IBM+Plex+Mono:wght@400;500&display=swap");

/* hero sky */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 6rem 0 4rem;
  overflow: hidden;
}

.hero-sky {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: #05070d url("/assets/night-sky.webp") center / cover no-repeat;
}

.hero-sky::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(5,7,13,.35) 0%, rgba(5,7,13,.15) 40%, rgba(5,7,13,.85) 100%);
}

.hero-pieces {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.hero-pieces img {
  position: absolute;
  bottom: 0;
  height: min(72vh, 820px);
  width: auto;
  opacity: 0.92;
  filter: drop-shadow(0 20px 40px rgba(0,0,0,.45));
}
.hero-pieces .piece-left {
  left: -4%;
  transform: scaleX(-1);
}
.hero-pieces .piece-right {
  right: -2%;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
}

.hero-content .h-display .soft {
  display: block;
  color: rgba(255,255,255,0.55);
  font-weight: 650;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  margin-top: 0.5rem;
}

.hero-search {
  margin-top: 1.25rem;
  width: min(100%, 420px);
}

.hero-mock {
  position: relative;
  z-index: 2;
  margin: 3rem auto 0;
  width: min(100%, 920px);
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(10,14,24,0.88);
  backdrop-filter: blur(20px);
  box-shadow: 0 30px 100px rgba(0,0,0,0.55);
}

.hero-mock-bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 0.9rem;
  border-bottom: 1px solid var(--line);
  background: rgba(255,255,255,0.03);
}
.hero-mock-bar .dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: rgba(255,255,255,0.15);
}
.hero-mock-body {
  display: grid;
  grid-template-columns: 200px 1fr;
  min-height: 280px;
}
@media (max-width: 700px) {
  .hero-mock-body { grid-template-columns: 1fr; }
  .hero-mock-side { display: none; }
}
.hero-mock-side {
  border-right: 1px solid var(--line);
  padding: 1rem;
  background: rgba(0,0,0,0.2);
}
.hero-mock-side .nav-item {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.55rem 0.7rem;
  border-radius: 8px;
  color: var(--text-2);
  font-size: 0.88rem;
  font-weight: 500;
}
.hero-mock-side .nav-item.active {
  background: rgba(91,140,255,0.15);
  color: #fff;
}
.hero-mock-main { padding: 1.25rem 1.35rem; }
.hero-mock-main .user-row {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 1rem;
}
.hero-mock-main .av {
  width: 48px; height: 48px;
  border-radius: 12px;
  background: linear-gradient(135deg, #2a3550, #121826);
  border: 1px solid var(--line);
}
.stat-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.stat-pills span {
  font-size: 0.78rem;
  padding: 0.35em 0.7em;
  border-radius: 8px;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--line);
  color: var(--text-2);
}

.section {
  position: relative;
  padding: 4.5rem 0;
  background: var(--bg);
}

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.75rem;
}

.mod-grid {
  display: grid;
  gap: 0.9rem;
}
@media (min-width: 700px) { .mod-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .mod-grid { grid-template-columns: repeat(3, 1fr); } }

.mod {
  background: var(--panel-solid);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.25rem;
  transition: border-color .15s, transform .15s;
}
.mod:hover {
  border-color: rgba(91,140,255,0.35);
  transform: translateY(-2px);
}
.mod .idx {
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--accent-2);
  margin-bottom: 0.4rem;
}
.mod h3 {
  margin: 0 0 0.35rem;
  font-size: 1.05rem;
  font-weight: 650;
  text-transform: none;
  letter-spacing: -0.01em;
  color: #fff;
}
.mod p { margin: 0; color: var(--muted); font-size: 0.92rem; }

.script-panel {
  background: var(--panel-solid);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.script-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--line);
  background: rgba(255,255,255,0.02);
}
.script-editor { height: 220px; }

.faq details {
  border-bottom: 1px solid var(--line);
  padding: 1rem 0;
}
.faq summary {
  font-weight: 650;
  font-size: 1.02rem;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--muted); font-weight: 400; }
.faq details[open] summary::after { content: "–"; }
.faq p { margin: 0.65rem 0 0; color: var(--muted); max-width: 42em; }

.site-foot {
  padding: 2.5rem 0 3.5rem;
  border-top: 1px solid var(--line);
  background: var(--bg);
}
.site-foot .inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
}
.site-foot .meta {
  font-size: 0.8rem;
  color: var(--muted);
}

.status-strip {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.5rem 0;
  font-size: 0.78rem;
  color: var(--muted);
}
.status-dot {
  width: 0.45rem; height: 0.45rem;
  border-radius: 50%;
  background: var(--ok);
}
.status-dot.degraded { background: var(--warn); }
.status-dot.maintenance { background: var(--danger); }


/* spinning logo */
.logo-spin {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  object-fit: cover;
  animation: spin-logo 12s linear infinite;
  box-shadow: 0 8px 28px rgba(0,0,0,0.4);
}
@keyframes spin-logo {
  from { transform: rotateY(0deg); }
  to { transform: rotateY(360deg); }
}
@media (prefers-reduced-motion: reduce) {
  .logo-spin { animation: none; }
}

.hero-mock-main .user-row { gap: 1rem; }
.hero-mock-main .user-row .meta-title {
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}
.hero-mock-main .user-row .meta-sub {
  color: var(--muted);
  font-size: 0.85rem;
  margin-top: 0.15rem;
}
.stat-pills span {
  font-weight: 600;
}

.hero-logo-wrap {
  margin-top: 1.5rem;
  display: flex;
  justify-content: center;
}
.logo-spin-lg {
  width: 120px;
  height: 120px;
  border-radius: 28px;
  object-fit: cover;
  box-shadow: 0 20px 60px rgba(0,0,0,0.45);
}
