:root {
  /* Nocturnal Elegance Palette */
  --obsidian: #05080A;
  --mariana-navy: #020b14;
  --slate-grey: #151a21;
  --liquid-amber: #F9A826; 
  --sonar-cyan: #00D4FF;
  --text-primary: #F8FAFC;
  --text-muted: #94A3B8;
  
  --font-main: 'Outfit', sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--obsidian);
  color: var(--text-primary);
  font-family: var(--font-main);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  cursor: none; /* Custom cursor */
}

::selection {
  background: rgba(0, 229, 255, 0.2);
  color: var(--sonar-cyan);
}

/* Ambient Glow Background */
.ambient-glow {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: radial-gradient(circle at 50% -20%, var(--mariana-navy) 0%, var(--obsidian) 80%);
  z-index: -1;
  pointer-events: none;
}

/* Sonar Cursor */
.sonar-cursor {
  position: fixed;
  top: 0; left: 0;
  width: 12px; height: 12px;
  background-color: var(--sonar-cyan);
  border-radius: 50%;
  pointer-events: none;
  transform: translate(-50%, -50%);
  z-index: 9999;
  box-shadow: 0 0 15px var(--sonar-cyan);
  transition: width 0.3s ease, height 0.3s ease, background-color 0.3s ease, border 0.3s ease;
}

.sonar-cursor.hover {
  width: 32px;
  height: 32px;
  background-color: transparent;
  border: 1px solid var(--liquid-amber);
  box-shadow: 0 0 20px rgba(255, 179, 71, 0.5);
}

@keyframes pulseClick {
  0% { box-shadow: 0 0 0 0 rgba(0, 229, 255, 0.7); }
  70% { box-shadow: 0 0 0 30px rgba(0, 229, 255, 0); }
  100% { box-shadow: 0 0 0 0 rgba(0, 229, 255, 0); }
}

.sonar-cursor.pulse-anim {
  animation: pulseClick 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

/* Layout Utilities */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 1s cubic-bezier(0.165, 0.84, 0.44, 1), transform 1s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Header */
.header {
  position: fixed;
  top: 0;
  width: 100%;
  padding: 24px 48px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 100;
  background: rgba(5, 8, 10, 0.7);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255,255,255,0.03);
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--text-primary);
  text-decoration: none;
}

.nav a {
  margin-left: 32px;
  font-size: 0.85rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.3s;
  cursor: none;
}

.nav a:hover {
  color: var(--sonar-cyan);
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  padding: 0 24px;
}

.hero h1 {
  font-size: clamp(3rem, 6vw, 5.5rem);
  line-height: 1.1;
  font-weight: 300;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
}

.hero h1 .highlight {
  font-weight: 600;
  background: linear-gradient(135deg, var(--text-primary) 0%, var(--text-muted) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero .subtitle {
  font-size: 1.25rem;
  color: var(--text-muted);
  font-weight: 300;
  margin-bottom: 48px;
  max-width: 600px;
  margin-inline: auto;
}

.cta-button {
  display: inline-block;
  padding: 16px 40px;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 600;
  color: var(--obsidian);
  background: var(--sonar-cyan);
  text-decoration: none;
  border-radius: 100px;
  box-shadow: 0 0 30px rgba(0, 229, 255, 0.3);
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  cursor: none;
}

.cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 50px rgba(0, 229, 255, 0.6);
  background: #ffffff;
}

/* Manifesto Section */
.manifesto {
  padding: 120px 0;
  background: var(--slate-grey);
  position: relative;
}

.manifesto::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.05), transparent);
}

.manifesto h2 {
  font-size: 1.2rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--liquid-amber);
  margin-bottom: 40px;
  font-weight: 500;
}

.manifesto-intro {
  font-size: 2.2rem;
  font-weight: 300;
  line-height: 1.3;
  margin-bottom: 64px;
  max-width: 900px;
  color: var(--text-primary);
}

.manifesto-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
}

.manifesto-col p {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.manifesto-outro {
  font-size: 1.5rem;
  color: var(--text-primary);
  margin-top: 48px;
}

.manifesto-outro strong {
  color: var(--sonar-cyan);
}

/* 5 Dimensions */
.dimensions {
  padding: 160px 0;
}

.section-title {
  font-size: 1.2rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 120px;
  text-align: center;
}

.dimension-row {
  display: flex;
  align-items: center;
  gap: 80px;
  margin-bottom: 160px;
}

.dimension-row:last-child {
  margin-bottom: 0;
}

.dimension-row.reverse {
  flex-direction: row-reverse;
}

.dimension-text {
  flex: 1;
}

.dimension-num {
  font-size: 1rem;
  font-weight: 600;
  color: var(--liquid-amber);
  display: block;
  margin-bottom: 16px;
}

.dimension-text h3 {
  font-size: 2.5rem;
  font-weight: 400;
  margin-bottom: 24px;
  line-height: 1.2;
}

.dimension-text h3 span {
  display: block;
  font-size: 1.2rem;
  color: var(--text-muted);
  font-weight: 300;
  margin-top: 8px;
}

.dimension-text p {
  font-size: 1.1rem;
  color: var(--text-muted);
}

.dimension-image {
  flex: 1;
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
  background: var(--slate-grey);
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255,255,255,0.03);
}

.dimension-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1s ease;
}

.dimension-row:hover .dimension-image img {
  transform: scale(1.03);
}

/* Sonar Beacon CSS Demo inside dimension 02 */
.sonar-beacon-demo {
  position: relative;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at center, var(--mariana-navy), var(--obsidian));
}

.beacon {
  position: absolute;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.beacon::before {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  width: 100%; height: 100%;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  animation: radarPing 3s linear infinite;
}

.beacon.center {
  top: 50%; left: 50%;
  background-color: var(--sonar-cyan);
  box-shadow: 0 0 20px var(--sonar-cyan);
}
.beacon.center::before { border: 1px solid var(--sonar-cyan); }

.beacon.friend1 {
  top: 30%; left: 60%;
  background-color: var(--liquid-amber);
  box-shadow: 0 0 20px var(--liquid-amber);
  animation-delay: 1s;
}
.beacon.friend1::before { border: 1px solid var(--liquid-amber); animation-delay: 1s; }

.beacon.friend2 {
  top: 65%; left: 35%;
  background-color: var(--liquid-amber);
  box-shadow: 0 0 20px var(--liquid-amber);
  animation-delay: 2s;
}
.beacon.friend2::before { border: 1px solid var(--liquid-amber); animation-delay: 2s; }

@keyframes radarPing {
  0% { width: 16px; height: 16px; opacity: 1; }
  100% { width: 150px; height: 150px; opacity: 0; }
}

/* Festival Map CSS Demo for dimension 05 */
.festival-map {
  background: linear-gradient(45deg, #02070d, var(--mariana-navy));
}
.map-overlay {
  position: absolute;
  width: 100%; height: 100%;
  background-image: radial-gradient(var(--sonar-cyan) 1px, transparent 1px);
  background-size: 20px 20px;
  opacity: 0.1;
  animation: slowPan 20s linear infinite;
}

@keyframes slowPan {
  0% { background-position: 0 0; }
  100% { background-position: 40px 40px; }
}

/* Flywheel Section */
.flywheel {
  padding: 160px 0;
  background: var(--mariana-navy);
  border-top: 1px solid rgba(255,255,255,0.03);
}

.flywheel h2 {
  font-size: 3rem;
  font-weight: 300;
  text-align: center;
  margin-bottom: 80px;
}

.flywheel-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 32px;
}

.flywheel-card {
  background: var(--obsidian);
  border: 1px solid rgba(255,255,255,0.05);
  padding: 40px 32px;
  border-radius: 16px;
  transition: transform 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
}

.flywheel-card:hover {
  transform: translateY(-8px);
  border-color: rgba(0, 229, 255, 0.3);
  box-shadow: 0 20px 40px rgba(0,0,0,0.5);
}

.card-icon {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--sonar-cyan);
  margin-bottom: 24px;
}

.flywheel-card h3 {
  font-size: 1.25rem;
  font-weight: 500;
  margin-bottom: 16px;
}

.flywheel-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* Footer */
.footer {
  padding: 64px 0;
  background: var(--obsidian);
  border-top: 1px solid rgba(255,255,255,0.05);
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 32px;
}

.footer-logo {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--text-muted);
}

.footer-links a {
  margin-left: 24px;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.3s;
  cursor: none;
}

.footer-links a:hover {
  color: var(--text-primary);
}

.copyright {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.8rem;
  opacity: 0.5;
}

/* Responsive */
@media (max-width: 900px) {
  .manifesto-intro { font-size: 1.8rem; }
  .manifesto-grid { grid-template-columns: 1fr; gap: 32px; }
  .dimension-row, .dimension-row.reverse { flex-direction: column; gap: 40px; }
  .header { padding: 16px 24px; }
  .nav { display: none; }
  body { cursor: auto; }
  .sonar-cursor { display: none; }
}
