/* ── Design tokens (PlayStation-inspired) ────────────────────── */
:root {
  --bg:          #000000;
  --bg-card:     #181818;
  --bg-section:  #121314;
  --accent:      #0070d1;
  --accent-dim:  rgba(0, 112, 209, 0.12);
  --text:        #ffffff;
  --text-muted:  rgba(255, 255, 255, 0.7);
  --text-subtle: rgba(229, 229, 229, 0.55);
  --border:      rgba(229, 229, 229, 0.2);
  --radius:      8px;
  --font-head:   'Russo One', system-ui, sans-serif;
  --font-body:   'Chakra Petch', 'Segoe UI', system-ui, sans-serif;
}

/* ── Reset ───────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

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

a { color: inherit; text-decoration: none; }

/* ── Announce bar ────────────────────────────────────────────── */
.announce-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 10px 24px;
  background: var(--bg-section);
  border-bottom: 1px solid var(--border);
  font-size: 0.82rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.7);
  letter-spacing: 0.03em;
  text-align: center;
}

.announce-bar strong { color: #53b1ff; }

/* ── Promo bar ───────────────────────────────────────────────── */
.promo-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 24px;
  background: rgba(245, 158, 11, 0.08);
  border-bottom: 1px solid rgba(245, 158, 11, 0.25);
  font-size: 0.82rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.75);
  text-align: center;
}

.promo-bar svg { color: #fbbf24; flex-shrink: 0; }

.promo-code {
  font-family: 'Courier New', monospace;
  font-weight: 700;
  color: #fbbf24;
  background: rgba(245, 158, 11, 0.12);
  padding: 1px 7px;
  border-radius: 4px;
  letter-spacing: 0.03em;
  user-select: all;
}

.announce-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 7px #4ade80;
  flex-shrink: 0;
  animation: dotPulse 2s ease-in-out infinite;
}

@keyframes dotPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.55; transform: scale(0.75); }
}

/* ── Hero ────────────────────────────────────────────────────── */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 24px 100px;
  position: relative;
  overflow: hidden;
}

.hero-bg-grid {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(0, 112, 209, 0.18) 1px, transparent 1px);
  background-size: 44px 44px;
  pointer-events: none;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 40%, black 0%, transparent 72%);
  -webkit-mask-image: radial-gradient(ellipse 80% 80% at 50% 40%, black 0%, transparent 72%);
}

.hero-glow-a {
  position: absolute;
  width: 700px;
  height: 700px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 112, 209, 0.22) 0%, transparent 70%);
  top: -180px;
  left: 50%;
  pointer-events: none;
  animation: glowDriftA 8s ease-in-out infinite;
}

.hero-glow-b {
  position: absolute;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 60, 140, 0.15) 0%, transparent 70%);
  bottom: 80px;
  right: 5%;
  pointer-events: none;
  animation: glowDriftB 10s ease-in-out infinite reverse;
}

@keyframes glowDriftA {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(-20px); }
}

@keyframes glowDriftB {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-16px); }
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 720px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--accent-dim);
  border: 1px solid rgba(0, 112, 209, 0.35);
  border-radius: 9999px;
  padding: 6px 18px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: #53b1ff;
  margin-bottom: 28px;
}

.hero-title {
  font-family: var(--font-head);
  font-size: clamp(4rem, 13vw, 8rem);
  letter-spacing: -0.02em;
  line-height: 1;
  background: linear-gradient(145deg, #ffffff 10%, #90c8ff 40%, #0070d1 72%, #004d8d 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 24px;
  filter: drop-shadow(0 0 28px rgba(0, 112, 209, 0.4));
  animation: titlePulse 5s ease-in-out infinite;
}

@keyframes titlePulse {
  0%, 100% { filter: drop-shadow(0 0 28px rgba(0, 112, 209, 0.4)); }
  50%       { filter: drop-shadow(0 0 52px rgba(83, 177, 255, 0.6)); }
}

.hero-sub {
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  color: var(--text-muted);
  margin-bottom: 40px;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.75;
}

/* ── Buttons ─────────────────────────────────────────────────── */
.hero-btns {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 13px 28px;
  border-radius: 9999px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  transition: background 0.18s, box-shadow 0.18s;
  cursor: pointer;
  border: none;
  text-decoration: none;
}

.btn-invite {
  background: #0070d1;
  color: #fff;
}
.btn-invite:hover {
  background: #0064b7;
  box-shadow: 0 4px 16px rgba(0, 112, 209, 0.4);
}

.btn-wiki {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-wiki:hover {
  background: rgba(255, 255, 255, 0.06);
}

.btn-lg {
  padding: 16px 36px;
  font-size: 1.05rem;
}

/* ── Countdown ───────────────────────────────────────────────── */
.countdown-wrap {
  position: relative;
  z-index: 1;
}

.countdown-label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 14px;
}

.countdown {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.countdown-unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 18px 10px;
  min-width: 72px;
}

.countdown-num {
  font-family: var(--font-head);
  font-size: 2rem;
  color: #ffffff;
  line-height: 1;
  letter-spacing: 0.02em;
}

.countdown-lbl {
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-subtle);
  margin-top: 6px;
}

.countdown-colon {
  font-family: var(--font-head);
  font-size: 1.8rem;
  color: var(--text-subtle);
  padding-bottom: 8px;
  user-select: none;
}

.countdown-launched {
  font-size: 1rem;
  font-weight: 700;
  color: #4ade80;
  padding: 16px 28px;
  background: rgba(74, 222, 128, 0.08);
  border: 1px solid rgba(74, 222, 128, 0.25);
  border-radius: var(--radius);
  display: inline-block;
}

/* ── Scroll hint ─────────────────────────────────────────────── */
.scroll-hint {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: var(--text-subtle);
  font-family: var(--font-body);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  background: none;
  border: none;
  animation: floatHint 2.4s ease-in-out infinite;
}

.scroll-hint svg { opacity: 0.45; }

@keyframes floatHint {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(-8px); }
}

/* ── Section layout ──────────────────────────────────────────── */
.section { padding: 88px 24px; }
.section-dark { background: var(--bg-section); }

.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 56px;
}

.section-eyebrow {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #53b1ff;
  margin-bottom: 12px;
}

.section-title {
  font-family: var(--font-head);
  font-size: clamp(1.6rem, 4vw, 2.6rem);
  color: var(--text);
  margin-bottom: 14px;
  line-height: 1.15;
}

.section-desc {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.75;
}

/* ── About ───────────────────────────────────────────────────── */
.about-text {
  max-width: 760px;
  margin: 0 auto;
  font-size: 1.1rem;
  line-height: 1.85;
  color: var(--text-muted);
  text-align: center;
}

.about-text strong { color: var(--text); }
.about-text .gold  { color: #53b1ff; font-weight: 700; }

/* ── Feature cards ───────────────────────────────────────────── */
.features-grid {
  max-width: 1060px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 18px;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  transition: border-color 0.2s, box-shadow 0.2s;
  cursor: default;
}

.feature-card:hover {
  border-color: rgba(0, 112, 209, 0.5);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}

.feature-icon-wrap {
  width: 44px;
  height: 44px;
  border-radius: var(--radius);
  background: var(--accent-dim);
  border: 1px solid rgba(0, 112, 209, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  transition: background 0.2s, border-color 0.2s;
  flex-shrink: 0;
}

.feature-card:hover .feature-icon-wrap {
  background: rgba(0, 112, 209, 0.2);
  border-color: rgba(0, 112, 209, 0.5);
}

.feature-icon {
  width: 22px;
  height: 22px;
  color: #53b1ff;
  flex-shrink: 0;
}

.feature-title {
  font-family: var(--font-head);
  font-size: 0.92rem;
  color: var(--text);
  margin-bottom: 8px;
  letter-spacing: 0.01em;
}

.feature-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.65;
}

/* ── Slideshow ───────────────────────────────────────────────── */
.slideshow-wrap {
  max-width: 580px;
  margin: 0 auto;
}

.slideshow-row {
  display: flex;
  align-items: center;
  gap: 16px;
}

.slide-viewport {
  flex: 1;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-card);
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.6);
  position: relative;
}

.slide { display: none; flex-direction: column; }
.slide.active { display: flex; }

.slide-viewport.transitioning .slide.active {
  animation: fadeIn 0.22s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: scale(0.99); }
  to   { opacity: 1; transform: scale(1); }
}

.slide img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
}

.slide-caption {
  padding: 18px 22px;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text);
  background: var(--bg-card);
  border-top: 1px solid var(--border);
}

.slide-caption span {
  display: block;
  font-size: 0.78rem;
  font-weight: 400;
  color: var(--text-muted);
  margin-top: 3px;
  line-height: 1.5;
}

.nav-btn {
  width: 44px;
  height: 44px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
  color: var(--text);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.18s, opacity 0.18s;
  flex-shrink: 0;
  user-select: none;
}

.nav-btn:hover { background: rgba(255, 255, 255, 0.12); }
.nav-btn:disabled { opacity: 0.22; pointer-events: none; }

.slide-dots {
  display: flex;
  justify-content: center;
  gap: 7px;
  margin-top: 20px;
  flex-wrap: wrap;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.18);
  cursor: pointer;
  border: none;
  padding: 0;
  transition: background 0.2s, width 0.2s;
}

.dot.active {
  background: #0070d1;
  width: 22px;
}

/* ── Discord Showcase ────────────────────────────────────────── */
.showcase-wrap {
  max-width: 620px;
  margin: 0 auto;
}

.discord-mock {
  background: #313338;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(255, 255, 255, 0.06);
}

.discord-titlebar {
  background: #2b2d31;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.discord-dots {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
}

.discord-dots span {
  width: 11px;
  height: 11px;
  border-radius: 50%;
}

.discord-dots span:nth-child(1) { background: #ff5f57; }
.discord-dots span:nth-child(2) { background: #febc2e; }
.discord-dots span:nth-child(3) { background: #28c840; }

.discord-channel-label {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.85rem;
  font-weight: 600;
  color: #e3e5e8;
  font-family: var(--font-body);
}

.discord-channel-label svg { color: #8e9297; flex-shrink: 0; }

.discord-body {
  padding: 16px 16px 20px;
}

.discord-msg {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.discord-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #0070d1;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.discord-msg-body { flex: 1; min-width: 0; }

.discord-msg-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 6px;
}

.discord-bot-name {
  font-size: 0.88rem;
  font-weight: 700;
  color: #e3e5e8;
  font-family: var(--font-body);
}

.discord-app-badge {
  background: #5865f2;
  color: #fff;
  font-size: 0.58rem;
  font-weight: 700;
  padding: 1px 5px;
  border-radius: 3px;
  letter-spacing: 0.04em;
  font-family: var(--font-body);
}

.discord-embed {
  border-left: 4px solid var(--embed-color, #0070d1);
  background: #2b2d31;
  border-radius: 0 4px 4px 0;
  overflow: hidden;
  transition: border-left-color 0.3s ease;
}

.discord-embed img {
  width: 100%;
  max-height: 460px;
  object-fit: contain;
  display: block;
  transition: opacity 0.18s ease;
}

/* Showcase tabs */
.showcase-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 24px;
}

.showcase-tab {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 9999px;
  padding: 10px 16px;
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  transition: background 0.18s, border-color 0.18s, color 0.18s;
  letter-spacing: 0.02em;
  text-align: center;
}

.showcase-tab:hover:not(.active) {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
}

.showcase-tab.active {
  background: var(--accent-dim);
  border-color: rgba(0, 112, 209, 0.5);
  color: #53b1ff;
}

@media (max-width: 480px) {
  .showcase-tabs { grid-template-columns: 1fr; }
  .discord-embed img { max-height: 320px; }
}

/* ── Classes grid ────────────────────────────────────────────── */
.classes-grid {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  gap: 10px;
}

.class-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.class-card:hover {
  transform: translateY(-3px);
  border-color: rgba(0, 112, 209, 0.55);
  box-shadow: 0 6px 20px rgba(0, 112, 209, 0.18);
}

.class-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: top;
  display: block;
  filter: saturate(0.85);
  transition: filter 0.25s;
}

.class-card:hover img { filter: saturate(1.1); }

/* ── CTA section ─────────────────────────────────────────────── */
.cta-section {
  background:
    radial-gradient(ellipse 70% 60% at 50% 50%, rgba(0, 112, 209, 0.12) 0%, transparent 70%),
    var(--bg);
  border-top: 1px solid var(--border);
  text-align: center;
}

.cta-inner {
  max-width: 600px;
  margin: 0 auto;
}

.cta-title {
  font-family: var(--font-head);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  color: var(--text);
  margin-bottom: 16px;
  line-height: 1.2;
}

.cta-desc {
  font-size: 1.05rem;
  color: var(--text-muted);
  margin-bottom: 36px;
  line-height: 1.75;
}

/* ── Footer ──────────────────────────────────────────────────── */
footer {
  background: #0070d1;
  padding: 24px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-brand {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.8);
}

.footer-brand strong { color: #ffffff; }

.footer-links {
  display: flex;
  gap: 28px;
}

.footer-links a {
  font-size: 0.84rem;
  color: rgba(255, 255, 255, 0.75);
  transition: color 0.18s;
}

.footer-links a:hover { color: #ffffff; }

/* ── Hero logo ───────────────────────────────────────────────── */
.hero-logo {
  width: 88px;
  height: 88px;
  border-radius: 22px;
  display: block;
  margin: 0 auto 22px;
  object-fit: cover;
  box-shadow: 0 0 0 1px rgba(255,255,255,0.1), 0 8px 24px rgba(0,0,0,0.5);
}

/* ── Command tag ─────────────────────────────────────────────── */
.cmd {
  font-family: 'Courier New', monospace;
  background: rgba(0, 112, 209, 0.18);
  color: #53b1ff;
  padding: 2px 9px;
  border-radius: 6px;
  font-size: 0.88em;
  letter-spacing: 0.01em;
}

/* ── Reduced motion ──────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ── Responsive ──────────────────────────────────────────────── */
@media (max-width: 640px) {
  .countdown { gap: 5px; }
  .countdown-unit { min-width: 58px; padding: 10px 12px 8px; }
  .countdown-num  { font-size: 1.5rem; }
  .countdown-colon { font-size: 1.4rem; }

  .slideshow-wrap { max-width: 100%; }
  .slideshow-row  { gap: 8px; }
  .nav-btn { width: 36px; height: 36px; }

  .features-grid { grid-template-columns: 1fr; }
  .classes-grid  { grid-template-columns: repeat(auto-fill, minmax(80px, 1fr)); gap: 8px; }

  footer { flex-direction: column; text-align: center; }
  .footer-links { justify-content: center; }
}
