/* ==========================================================================
   AstrixHUB — Stylesheet
   Tokens: bg #0a0a0d / #121218, panel rgba(255,255,255,.04)
           accent #8B5CF6, accent-soft #A78BFA, text #EDEDF2, muted #8A8A99
   Type: Space Grotesk (display) / Inter (body) / JetBrains Mono (code)
   ========================================================================== */

:root {
  --bg: #08080b;
  --bg-alt: #0e0e13;
  --panel: rgba(255, 255, 255, 0.035);
  --panel-border: rgba(255, 255, 255, 0.08);
  --text: #ededf2;
  --muted: #92909f;
  --muted-dim: #605e6b;
  --accent: #8b5cf6;
  --accent-soft: #a78bfa;
  --accent-dim: rgba(139, 92, 246, 0.15);
  --accent-line: rgba(139, 92, 246, 0.35);
  --radius: 16px;
  --font-display: 'Space Grotesk', 'Inter', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --nav-h: 72px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-h);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Custom scrollbar */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--accent), #5b34ad);
  border-radius: 10px;
  border: 2px solid var(--bg);
}
* { scrollbar-width: thin; scrollbar-color: var(--accent) var(--bg); }

a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
button { font: inherit; cursor: pointer; }

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.hex-clip {
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  border-radius: 0 !important;
}

:focus-visible {
  outline: 2px solid var(--accent-soft);
  outline-offset: 3px;
  border-radius: 4px;
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-soft);
  margin-bottom: 14px;
  position: relative;
  padding-left: 18px;
}
.eyebrow::before {
  content: '';
  position: absolute;
  left: 0; top: 50%;
  transform: translateY(-50%);
  width: 10px; height: 10px;
  background: conic-gradient(var(--accent), var(--accent-soft), var(--accent));
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
}

/* ==========================================================================
   Background layers
   ========================================================================== */

.bg-layer {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  background:
    radial-gradient(ellipse 80% 60% at 50% -10%, rgba(139,92,246,0.16), transparent 60%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-alt) 100%);
}

#hex-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.55;
}

.bg-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.35;
  pointer-events: none;
}
.bg-glow--one {
  width: 480px; height: 480px;
  top: 8%; left: -10%;
  background: radial-gradient(circle, var(--accent), transparent 70%);
}
.bg-glow--two {
  width: 420px; height: 420px;
  bottom: -5%; right: -8%;
  background: radial-gradient(circle, #5b34ad, transparent 70%);
}

/* ==========================================================================
   Navbar
   ========================================================================== */

.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  background: rgba(8, 8, 11, 0.5);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border-bottom: 1px solid transparent;
  transition: background 0.35s ease, border-color 0.35s ease;
}
.navbar.scrolled {
  background: rgba(8, 8, 11, 0.78);
  border-bottom-color: var(--panel-border);
}

.scroll-progress {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 2px;
  background: transparent;
}
.scroll-progress__bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--accent), var(--accent-soft));
  box-shadow: 0 0 8px 1px var(--accent-line);
  transition: width 0.1s linear;
}
@media (prefers-reduced-motion: reduce) {
  .scroll-progress__bar { transition: none; }
}

.navbar__inner {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.15rem;
  letter-spacing: 0.01em;
}
.brand__hex {
  width: 26px; height: 26px;
  fill: none;
  stroke: var(--accent);
  stroke-width: 2.2;
}
.brand__hex--sm { width: 22px; height: 22px; }
.brand__accent { color: var(--accent-soft); }

.brand__mark {
  display: flex;
  align-items: center;
  justify-content: center;
}
.brand__logo {
  height: 24px;
  width: auto;
  filter: drop-shadow(0 0 6px rgba(139, 92, 246, 0.45));
}
.brand__logo--sm { height: 20px; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: 999px;
  padding: 6px;
}
.nav-link {
  position: relative;
  padding: 8px 18px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--muted);
  border-radius: 999px;
  transition: color 0.25s ease, background 0.25s ease;
}
.nav-link:hover { color: var(--text); }
.nav-link.active {
  color: var(--text);
  background: linear-gradient(135deg, var(--accent-dim), rgba(139,92,246,0.06));
  box-shadow: inset 0 0 0 1px var(--accent-line);
}

.navbar__right {
  display: flex;
  align-items: center;
  gap: 14px;
}

.discord-icon { width: 16px; height: 16px; flex-shrink: 0; }

.discord-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 18px;
  font-size: 0.86rem;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(135deg, #5865F2, #4752c4);
  border-radius: 999px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  white-space: nowrap;
}
.discord-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 24px -8px rgba(88, 101, 242, 0.6);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px; height: 40px;
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: 10px;
}
.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 0 auto;
  background: var(--text);
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ==========================================================================
   Layout helpers
   ========================================================================== */

main { position: relative; z-index: 1; }

section {
  max-width: 1180px;
  margin: 0 auto;
  padding: 140px 28px;
}

.section-heading {
  text-align: center;
  max-width: 620px;
  margin: 0 auto 56px;
}
.section-heading h2 {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3.2vw, 2.4rem);
  font-weight: 600;
  letter-spacing: -0.01em;
}
.section-sub {
  margin-top: 12px;
  color: var(--muted);
  font-size: 0.98rem;
}

.glass {
  background: var(--panel);
  border: 1px solid var(--panel-border);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border-radius: var(--radius);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 28px;
  font-size: 0.92rem;
  font-weight: 600;
  border-radius: 10px;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, border-color .25s ease;
}
.btn--primary {
  background: linear-gradient(135deg, var(--accent), #6d3fd1);
  color: #fff;
  box-shadow: 0 8px 30px -8px rgba(139, 92, 246, 0.55);
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 12px 34px -6px rgba(139, 92, 246, 0.7); }
.btn--ghost {
  background: transparent;
  border: 1px solid var(--panel-border);
  color: var(--text);
}
.btn--ghost:hover { border-color: var(--accent-line); background: var(--accent-dim); }
.btn--discord {
  background: linear-gradient(135deg, #5865F2, #4752c4);
  color: #fff;
  box-shadow: 0 8px 30px -8px rgba(88, 101, 242, 0.55);
}
.btn--discord:hover { transform: translateY(-2px); box-shadow: 0 12px 34px -6px rgba(88, 101, 242, 0.7); }

.discord-card {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: 24px;
  padding: 10px 18px 10px 10px;
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: 999px;
  transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}
.discord-card:hover {
  transform: translateY(-2px);
  border-color: var(--accent-line);
  background: rgba(139, 92, 246, 0.06);
}
.discord-card__icon {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--bg-alt);
  flex-shrink: 0;
}
.discord-card__info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  text-align: left;
}
.discord-card__name {
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--text);
}
.discord-card__stats {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  color: var(--muted);
}
.discord-card__dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 8px 2px rgba(74, 222, 128, 0.5);
  flex-shrink: 0;
  animation: status-pulse 2s ease-in-out infinite;
}
@keyframes status-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding-top: var(--nav-h);
  text-align: center;
  overflow: hidden;
}

.hero__content { position: relative; z-index: 2; max-width: 680px; }

.hero__logo-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 8px;
  animation: logo-float 5s ease-in-out infinite;
}
.hero__logo {
  width: clamp(140px, 20vw, 220px);
  height: auto;
  filter: drop-shadow(0 0 28px rgba(139, 92, 246, 0.55))
          drop-shadow(0 0 60px rgba(139, 92, 246, 0.25));
}
@keyframes logo-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
@media (prefers-reduced-motion: reduce) {
  .hero__logo-wrap { animation: none; }
}

.hero__title {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 9vw, 5.4rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1;
}
.hero__title-accent {
  background: linear-gradient(135deg, var(--accent-soft), var(--accent) 60%, #5b34ad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero__subtitle {
  margin-top: 20px;
  font-size: clamp(1rem, 2vw, 1.2rem);
  font-weight: 500;
  color: var(--text);
}

.hero__desc {
  margin: 16px auto 0;
  max-width: 480px;
  color: var(--muted);
  font-size: 0.98rem;
}

.hero__actions {
  margin-top: 38px;
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

.hero__hex-frame {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
  pointer-events: none;
}
.hex-outline {
  position: absolute;
  fill: none;
  stroke: var(--accent-line);
  stroke-width: 0.6;
}
.hex-outline--big {
  width: min(78vw, 640px);
  height: min(78vw, 640px);
  animation: spin-slow 60s linear infinite;
  opacity: 0.5;
}
.hex-outline--small {
  width: min(48vw, 380px);
  height: min(48vw, 380px);
  animation: spin-slow 40s linear infinite reverse;
  opacity: 0.7;
}
@keyframes spin-slow {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.scroll-cue {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  width: 22px; height: 36px;
  border: 1.5px solid var(--panel-border);
  border-radius: 20px;
  z-index: 2;
}
.scroll-cue span {
  position: absolute;
  top: 6px; left: 50%;
  width: 4px; height: 8px;
  margin-left: -2px;
  background: var(--accent-soft);
  border-radius: 4px;
  animation: scroll-cue-move 1.8s ease-in-out infinite;
}
@keyframes scroll-cue-move {
  0% { transform: translateY(0); opacity: 1; }
  70% { transform: translateY(12px); opacity: 0; }
  100% { opacity: 0; }
}

/* ==========================================================================
   About
   ========================================================================== */

.about__layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}

.about__story {
  display: flex;
  flex-direction: column;
  gap: 32px;
  padding-top: 4px;
}

.about__lede {
  color: var(--muted);
  font-size: 1.04rem;
  line-height: 1.75;
}

.about__stats {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
}
.about__stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.about__stat-value {
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--accent-soft);
}
.about__stat-label {
  font-size: 0.8rem;
  color: var(--muted-dim);
}

.about__flow {
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.about__flow-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-soft);
}

.flow-step {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.flow-step__num {
  flex-shrink: 0;
  width: 30px; height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 9px;
  background: var(--accent-dim);
  border: 1px solid var(--accent-line);
  color: var(--accent-soft);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.88rem;
}
.flow-step__body h3 {
  font-size: 0.96rem;
  font-weight: 600;
  margin-bottom: 4px;
}
.flow-step__body p {
  font-size: 0.86rem;
  color: var(--muted);
  line-height: 1.55;
}

/* ==========================================================================
   Executors
   ========================================================================== */

.executors__marquee {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, black 6%, black 94%, transparent);
  mask-image: linear-gradient(90deg, transparent, black 6%, black 94%, transparent);
}

.executors__track {
  display: flex;
  width: max-content;
  animation: executors-scroll 32s linear infinite;
}
.executors__marquee:hover .executors__track,
.executors__marquee:focus-within .executors__track {
  animation-play-state: paused;
}
.executors__set {
  display: flex;
  gap: 16px;
  padding-right: 16px;
  flex-shrink: 0;
}

@keyframes executors-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
  .executors__track { animation: none; transform: none; flex-wrap: wrap; width: auto; }
  .executors__set { flex: 1 1 100%; flex-wrap: wrap; justify-content: center; }
  .executors__set--dup { display: none; }
  .executors__marquee { mask-image: none; -webkit-mask-image: none; overflow: visible; }
}

.executor-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  width: 150px;
  flex-shrink: 0;
  padding: 26px 16px;
  text-align: center;
  transition: transform 0.35s ease, border-color 0.35s ease, background 0.35s ease;
}
.executor-card:hover {
  transform: translateY(-6px);
  border-color: var(--accent-line);
  background: rgba(139, 92, 246, 0.05);
}
.executor-card__icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-alt);
  border: 1px solid var(--panel-border);
}
.executor-card__icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.executor-card span {
  font-size: 0.86rem;
  font-weight: 500;
  color: var(--text);
}

/* ==========================================================================
   Loader / code panel
   ========================================================================== */

.live-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin: 0 auto 28px;
}

.script-status {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 18px;
  background: rgba(74, 222, 128, 0.08);
  border: 1px solid rgba(74, 222, 128, 0.3);
  border-radius: 999px;
  font-size: 0.84rem;
}
.script-status--executes {
  background: var(--accent-dim);
  border-color: var(--accent-line);
}
.script-status__dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 8px 2px rgba(74, 222, 128, 0.5);
  flex-shrink: 0;
  animation: status-pulse 2s ease-in-out infinite;
}
.script-status__label { color: var(--muted); }
.script-status__value { color: #4ade80; font-weight: 600; }
.script-status__value--accent { color: var(--accent-soft); }

.loader__steps {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
  max-width: 780px;
  margin: 0 auto 32px;
}
.loader-step {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: 999px;
}
.loader-step__num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 22px; height: 22px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--accent-dim);
  border: 1px solid var(--accent-line);
  color: var(--accent-soft);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.76rem;
}
.loader-step__text {
  font-size: 0.84rem;
  color: var(--text);
  white-space: nowrap;
}
.loader-step__arrow {
  color: var(--muted-dim);
  font-size: 0.9rem;
}

.code-panel {
  max-width: 780px;
  margin: 0 auto;
  overflow: hidden;
}

.code-panel__bar {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--panel-border);
  background: rgba(255,255,255,0.02);
}
.code-panel__dots { display: flex; gap: 6px; }
.code-panel__dots span {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,0.14);
}
.code-panel__label {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--muted);
  flex: 1;
}
.code-panel__updated {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--muted-dim);
  white-space: nowrap;
}

.copy-btn {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 7px 14px;
  border-radius: 8px;
  background: var(--accent-dim);
  border: 1px solid var(--accent-line);
  color: var(--accent-soft);
  font-size: 0.82rem;
  font-weight: 600;
  transition: background 0.25s ease, color 0.25s ease, transform 0.15s ease;
}
.copy-btn svg { width: 15px; height: 15px; }
.copy-btn:hover { background: rgba(139,92,246,0.28); }
.copy-btn:active { transform: scale(0.96); }
.copy-btn.copied {
  background: rgba(74, 222, 128, 0.15);
  border-color: rgba(74, 222, 128, 0.4);
  color: #4ade80;
}

.code-panel__body {
  padding: 26px 24px 30px;
  overflow-x: auto;
  font-family: var(--font-mono);
  font-size: 0.86rem;
  line-height: 1.8;
  white-space: pre;
}
.c-comment { color: var(--muted-dim); font-style: italic; }
.c-fn { color: var(--accent-soft); }
.c-str { color: #7dd3a0; }
.c-kw { color: #f0a868; }
.c-punct { color: var(--muted); }

.loader__notes {
  max-width: 780px;
  margin: 24px auto 0;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
.note {
  flex: 1 1 240px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  font-size: 0.86rem;
  color: var(--muted);
}
.note__dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px 2px var(--accent-line);
  flex-shrink: 0;
}

/* ==========================================================================
   Status
   ========================================================================== */

.status-banner {
  max-width: 640px;
  margin: 0 auto 24px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 24px;
  border-radius: var(--radius);
  background: rgba(74, 222, 128, 0.08);
  border: 1px solid rgba(74, 222, 128, 0.3);
  transition: background 0.3s ease, border-color 0.3s ease;
}
.status-banner__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 26px; height: 26px;
  flex-shrink: 0;
  border-radius: 50%;
  background: rgba(74, 222, 128, 0.15);
  color: #4ade80;
}
.status-banner__icon svg { width: 15px; height: 15px; }
.status-banner__text {
  font-size: 0.98rem;
  font-weight: 600;
  color: var(--text);
}
.status-banner.is-disrupted {
  background: rgba(251, 191, 36, 0.08);
  border-color: rgba(251, 191, 36, 0.3);
}
.status-banner.is-disrupted .status-banner__icon {
  background: rgba(251, 191, 36, 0.15);
  color: #fbbf24;
}
.status-banner.is-down {
  background: rgba(248, 113, 113, 0.08);
  border-color: rgba(248, 113, 113, 0.3);
}
.status-banner.is-down .status-banner__icon {
  background: rgba(248, 113, 113, 0.15);
  color: #f87171;
}

.status__list {
  max-width: 640px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.status-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 24px;
  transition: transform 0.3s ease, border-color 0.3s ease, background 0.3s ease;
}
.status-row:hover {
  border-color: var(--accent-line);
  background: rgba(139, 92, 246, 0.05);
}
.status-row__name {
  font-size: 0.94rem;
  font-weight: 500;
}
.status-row__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 500;
  color: #4ade80;
  white-space: nowrap;
}
.status-row__dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 8px 2px rgba(74, 222, 128, 0.5);
  flex-shrink: 0;
  animation: status-pulse 2s ease-in-out infinite;
}
.status-row__badge--disruption {
  color: #fbbf24;
}
.status-row__badge--disruption .status-row__dot {
  background: #fbbf24;
  box-shadow: 0 0 8px 2px rgba(251, 191, 36, 0.5);
}
.status-row__badge--down {
  color: #f87171;
}
.status-row__badge--down .status-row__dot {
  background: #f87171;
  box-shadow: 0 0 8px 2px rgba(248, 113, 113, 0.5);
  animation: none;
}

/* ==========================================================================
   FAQ
   ========================================================================== */

.faq__list {
  max-width: 700px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  overflow: hidden;
  transition: border-color 0.3s ease;
}
.faq-item:hover { border-color: var(--accent-line); }

.faq-item__q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 22px;
  background: none;
  border: none;
  color: var(--text);
  text-align: left;
  font-size: 0.94rem;
  font-weight: 500;
  font-family: var(--font-body);
}
.faq-item__chevron {
  width: 18px; height: 18px;
  flex-shrink: 0;
  color: var(--accent-soft);
  transition: transform 0.3s ease;
}
.faq-item.open .faq-item__chevron { transform: rotate(180deg); }

.faq-item__a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s ease;
  padding: 0 22px;
}
.faq-item.open .faq-item__a {
  max-height: 500px;
  padding: 0 22px 20px;
}
.faq-item__a p {
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.65;
}

/* ==========================================================================
   Credits
   ========================================================================== */

.credits__layout {
  max-width: 780px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.credits__row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.credit-card {
  position: relative;
  padding: 36px 28px;
  text-align: center;
  overflow: hidden;
  transition: transform 0.35s ease, border-color 0.35s ease, background 0.35s ease;
}
.credit-card:hover {
  transform: translateY(-6px);
  border-color: var(--accent-line);
}
.credit-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 0%, rgba(139, 92, 246, 0.1), transparent 65%);
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
}
.credit-card:hover::before { opacity: 1; }

.credit-card--founder {
  padding: 44px 32px;
  border-color: var(--accent-line);
  background: linear-gradient(180deg, rgba(139, 92, 246, 0.08), rgba(255,255,255,0.02));
}
.credit-card--founder::before {
  background: radial-gradient(circle at 50% 0%, rgba(139, 92, 246, 0.22), transparent 65%);
  opacity: 1;
}

.credit-card__ring {
  position: relative;
  z-index: 1;
  width: 64px; height: 64px;
  margin: 0 auto 18px;
  padding: 3px;
  border-radius: 18px;
  background: conic-gradient(from 0deg, var(--accent-soft), var(--accent), #5b34ad, var(--accent-soft));
}
.credit-card--founder .credit-card__ring {
  width: 78px; height: 78px;
  animation: ring-spin 6s linear infinite;
}
@keyframes ring-spin {
  from { filter: hue-rotate(0deg); }
  to { filter: hue-rotate(20deg); }
}
.credit-card__ring--designer {
  background: conic-gradient(from 0deg, #e879f9, #a78bfa, #7c3aed, #e879f9);
}
.credit-card__ring--developer {
  background: conic-gradient(from 0deg, #60a5fa, #818cf8, #6d28d9, #60a5fa);
}

.credit-card__avatar {
  width: 100%; height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.4rem;
  color: var(--text);
  background: var(--bg-alt);
  border-radius: 15px;
}
.credit-card--founder .credit-card__avatar { font-size: 1.7rem; }

.credit-card__role {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 14px;
  margin-bottom: 14px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-radius: 999px;
  background: var(--accent-dim);
  border: 1px solid var(--accent-line);
  color: var(--accent-soft);
}
.credit-card__role svg { width: 13px; height: 13px; }

.credit-card__role--designer {
  background: rgba(232, 121, 249, 0.12);
  border-color: rgba(232, 121, 249, 0.35);
  color: #e879f9;
}
.credit-card__role--developer {
  background: rgba(96, 165, 250, 0.12);
  border-color: rgba(96, 165, 250, 0.35);
  color: #60a5fa;
}

.credit-card h3 {
  position: relative;
  z-index: 1;
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 8px;
}
.credit-card--founder h3 { font-size: 1.3rem; }

.credit-card p {
  position: relative;
  z-index: 1;
  font-size: 0.86rem;
  color: var(--muted);
  max-width: 320px;
  margin: 0 auto;
}

/* ==========================================================================
   Partner spotlight
   ========================================================================== */

.partner-spotlight {
  position: relative;
  z-index: 1;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 28px 64px;
}

.partner-spotlight__inner {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 36px 40px;
  border-color: var(--accent-line);
  background: linear-gradient(120deg, rgba(139, 92, 246, 0.1), rgba(255,255,255,0.02) 60%);
}
.partner-spotlight__inner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 0% 50%, rgba(139, 92, 246, 0.25), transparent 55%);
  pointer-events: none;
}

.partner-spotlight__icon {
  position: relative;
  z-index: 1;
  flex-shrink: 0;
  width: 56px; height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  background: var(--accent-dim);
  border: 1px solid var(--accent-line);
  color: var(--accent-soft);
}
.partner-spotlight__icon svg { width: 28px; height: 28px; }

.partner-spotlight__content {
  position: relative;
  z-index: 1;
  flex: 1;
  min-width: 0;
}
.partner-spotlight__eyebrow {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-soft);
  margin-bottom: 6px;
}
.partner-spotlight__content h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 8px;
}
.partner-spotlight__content p {
  color: var(--muted);
  font-size: 0.9rem;
  max-width: 560px;
}

.partner-spotlight__cta {
  position: relative;
  z-index: 1;
  flex-shrink: 0;
  white-space: nowrap;
}
.partner-spotlight__arrow { width: 16px; height: 16px; }

/* ==========================================================================
   Footer
   ========================================================================== */

.footer {
  border-top: 1px solid var(--panel-border);
  padding: 48px 28px 40px;
  position: relative;
  z-index: 1;
}
.footer__inner {
  max-width: 1180px;
  margin: 0 auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
.footer__brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 600;
}
.footer__note, .footer__copy {
  color: var(--muted-dim);
  font-size: 0.82rem;
  max-width: 480px;
}

.footer__socials {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.footer__discord {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 20px;
  font-size: 0.85rem;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(135deg, #5865F2, #4752c4);
  border-radius: 999px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.footer__discord:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 24px -8px rgba(88, 101, 242, 0.6);
}

.footer__rscript {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 20px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
  background: linear-gradient(135deg, #2a2a33, #16161b);
  border: 1px solid var(--panel-border);
  border-radius: 999px;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.footer__rscript:hover {
  transform: translateY(-1px);
  border-color: var(--accent-line);
  box-shadow: 0 8px 24px -8px rgba(139, 92, 246, 0.45);
}
.footer__rscript-icon {
  width: 16px;
  height: 17px;
  flex-shrink: 0;
}

/* ==========================================================================
   Toast
   ========================================================================== */

.toast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%) translateY(16px);
  background: #131318;
  border: 1px solid var(--accent-line);
  color: var(--text);
  padding: 13px 22px;
  border-radius: 12px;
  font-size: 0.88rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 12px 40px -10px rgba(0,0,0,0.6);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
  z-index: 200;
}
.toast::before {
  content: '';
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 8px 2px rgba(74,222,128,0.5);
}
.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ==========================================================================
   Back to top
   ========================================================================== */

.back-to-top {
  position: fixed;
  bottom: 28px;
  right: 24px;
  width: 44px; height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--panel);
  border: 1px solid var(--panel-border);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 12px;
  color: var(--accent-soft);
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease, border-color 0.3s ease, background 0.3s ease;
  z-index: 90;
}
.back-to-top svg { width: 20px; height: 20px; }
.back-to-top.show {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.back-to-top:hover {
  border-color: var(--accent-line);
  background: rgba(139, 92, 246, 0.1);
}

/* ==========================================================================
   Scroll reveal
   ========================================================================== */

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s cubic-bezier(.16,.84,.44,1), transform 0.7s cubic-bezier(.16,.84,.44,1);
}
.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}
.credits__row .reveal:nth-child(2) { transition-delay: 0.08s; }

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 860px) {
  .about__layout { grid-template-columns: 1fr; gap: 32px; }
  .credits__row { grid-template-columns: 1fr; max-width: 360px; margin: 0 auto; }
  .partner-spotlight__inner { flex-direction: column; text-align: center; padding: 32px 28px; }
  .partner-spotlight__content p { max-width: 100%; }
  .partner-spotlight__cta { width: 100%; justify-content: center; }
  section { padding: 100px 24px; }
}

@media (max-width: 960px) {
  .nav-links {
    position: fixed;
    top: var(--nav-h);
    left: 16px; right: 16px;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 10px;
    background: rgba(10, 10, 14, 0.96);
    backdrop-filter: blur(20px);
    border-radius: 16px;
    opacity: 0;
    transform: translateY(-12px);
    pointer-events: none;
    transition: opacity 0.25s ease, transform 0.25s ease;
  }
  .nav-links.open {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }
  .nav-link { text-align: center; padding: 12px; }
  .nav-toggle { display: flex; }
}

@media (max-width: 720px) {
  .executor-card { width: 130px; padding: 22px 12px; }

  .hero__actions { flex-direction: column; align-items: stretch; }
  .code-panel__body { font-size: 0.76rem; }
  .code-panel__updated { display: none; }
  .loader__notes { flex-direction: column; }
  .note { flex: 0 0 auto; width: 100%; }
  .loader__steps { flex-direction: column; align-items: stretch; }
  .loader-step { justify-content: flex-start; }
  .loader-step__text { white-space: normal; }
  .loader-step__arrow { display: none; }
}

@media (max-width: 480px) {
  .status-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
}

@media (max-width: 420px) {
  .hero__title { font-size: 2.4rem; }
  .brand__text { font-size: 1rem; }
  .discord-btn { padding: 9px; }
  .discord-btn span { display: none; }
}
