:root {
  --bg-base: #060911;
  --bg-surface: rgba(13, 19, 33, 0.7);
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-active: rgba(16, 185, 129, 0.4);

  --accent-emerald: #10b981;
  --accent-gold: #e5c07b;
  --accent-blue: #38bdf8;
  --accent-purple: #a78bfa;

  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;

  --font-main: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  background-color: var(--bg-base);
}

body {
  background-color: var(--bg-base);
  color: var(--text-primary);
  font-family: var(--font-main);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Background Ambient Lighting */
.ambient-glow {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 1000px;
  height: 550px;
  background: radial-gradient(
    circle,
    rgba(16, 185, 129, 0.07) 0%,
    rgba(6, 9, 17, 0) 70%
  );
  z-index: -1;
  pointer-events: none;
}

/* Top Navigation Bar */
nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 80px;
  background: rgba(6, 9, 17, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-subtle);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 6%;
}

.brand-wrapper {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: #fff;
}

.brand-title {
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.brand-badge {
  font-size: 0.65rem;
  padding: 2px 8px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-subtle);
  color: var(--accent-emerald);
  text-transform: uppercase;
  font-weight: 700;
}

.nav-menu {
  display: flex;
  gap: 32px;
  list-style: none;
}

.nav-menu a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s ease;
}

.nav-menu a:hover {
  color: #fff;
}

.btn-primary {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #fff;
  border: none;
  padding: 10px 22px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.88rem;
  text-decoration: none;
  box-shadow: 0 4px 20px rgba(16, 185, 129, 0.25);
  transition: all 0.25s ease;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
}

.btn-primary:hover {
  box-shadow: 0 6px 25px rgba(16, 185, 129, 0.45);
  transform: translateY(-2px);
}

/* Hero Header */
.hero-section {
  padding: 180px 6% 120px;
  max-width: 1280px;
  margin: 0 auto;
  text-align: center;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: 100px;
  font-size: 0.8rem;
  color: var(--accent-gold);
  font-weight: 600;
  margin-bottom: 28px;
}

.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--accent-emerald);
  box-shadow: 0 0 10px var(--accent-emerald);
}

.hero-title {
  font-size: clamp(2.4rem, 5vw, 4.4rem);
  font-weight: 800;
  letter-spacing: -2px;
  line-height: 1.15;
  margin-bottom: 28px;
}

.text-gradient {
  background: linear-gradient(180deg, #ffffff 0%, #94a3b8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-accent {
  background: linear-gradient(135deg, #10b981 0%, #38bdf8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-description {
  font-size: 1.2rem;
  color: var(--text-secondary);
  max-width: 820px;
  margin: 0 auto 40px;
  font-weight: 400;
}

/* Scrollytelling Section Layout */
.ecosystem-scrolly {
  max-width: 1320px;
  margin: 0 auto;
  padding: 40px 6% 140px;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 80px;
  position: relative;
}

.scrolly-feed {
  display: flex;
  flex-direction: column;
  gap: 140px;
  padding-bottom: 200px;
}

.cluster-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 24px;
  padding: 48px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: all 0.4s ease;
  opacity: 0.45;
  transform: scale(0.98);
}

.cluster-card.active {
  opacity: 1;
  transform: scale(1);
  border-color: var(--border-active);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.cluster-category {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 12px;
  display: block;
}

.cat-publishing {
  color: var(--accent-gold);
}
.cat-tech {
  color: var(--accent-emerald);
}
.cat-commodity {
  color: var(--accent-blue);
}
.cat-foundation {
  color: var(--accent-purple);
}

.cluster-card h2 {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.8px;
  margin-bottom: 20px;
  color: #fff;
}

.cluster-card p {
  color: var(--text-secondary);
  font-size: 1.05rem;
  margin-bottom: 28px;
  line-height: 1.7;
}

.badge-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 32px;
}

.badge-item {
  font-size: 0.75rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  padding: 6px 12px;
  border-radius: 6px;
  color: #cbd5e1;
}

.detail-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition:
    gap 0.2s ease,
    color 0.2s ease;
}

.detail-link:hover {
  gap: 16px;
  color: var(--accent-emerald);
}

/* Sticky 3D Showcase Window */
.scrolly-stage-wrapper {
  position: sticky;
  top: 130px;
  height: calc(100vh - 180px);
  display: flex;
  align-items: center;
  justify-content: center;
  perspective: 1200px;
}

.stage-display-box {
  width: 100%;
  height: 520px;
  border-radius: 32px;
  background: radial-gradient(
    circle at 50% 50%,
    rgba(255, 255, 255, 0.03) 0%,
    rgba(6, 9, 17, 0.8) 80%
  );
  border: 1px solid var(--border-subtle);
  box-shadow: inset 0 0 60px rgba(0, 0, 0, 0.8);
  position: relative;
  transform-style: preserve-3d;
  transition: transform 0.15s ease-out;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.visual-item {
  position: absolute;
  width: 320px;
  height: 320px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: scale(0.85) translateZ(-40px);
  transition:
    opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}

.visual-item.active {
  opacity: 1;
  transform: scale(1) translateZ(40px);
  pointer-events: auto;
}

.visual-item img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 25px 35px rgba(0, 0, 0, 0.7));
}

.visual-glow-ring {
  position: absolute;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  filter: blur(70px);
  z-index: -1;
  opacity: 0.25;
}

.glow-publishing {
  background: var(--accent-gold);
}
.glow-tech {
  background: var(--accent-emerald);
}
.glow-commodity {
  background: var(--accent-blue);
}
.glow-foundation {
  background: var(--accent-purple);
}

/* Footer Section */
footer {
  border-top: 1px solid var(--border-subtle);
  padding: 60px 6%;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.footer-meta {
  margin-top: 8px;
  font-size: 0.75rem;
}

/* Responsiveness */
@media (max-width: 992px) {
  .ecosystem-scrolly {
    grid-template-columns: 1fr;
  }
  .scrolly-stage-wrapper {
    display: none;
  }
  .cluster-card {
    opacity: 1;
    transform: none;
  }
  .nav-menu {
    display: none;
  }
}
