/* ===== COLOR SYSTEM ===== */
:root {
  /* Base dark theme */
  --color-base: #0b0c0a;
  --color-base-light: #121212;
  --color-base-card: #1a1a1a;
  
  /* Accent color options - uncomment ONE */
  /* TEAL: #00c8b3, #00e6cf, #009e8d */
  /* --color-accent: #00c8b3;
  --color-accent-light: #00e6cf;
  --color-accent-dark: #009e8d; */
  
  /* INDIGO: #6366f1, #818cf8, #4f46e5 */
  --color-accent: #6366f1;
  --color-accent-light: #818cf8;
  --color-accent-dark: #4f46e5;
  
  /* Text colors */
  --color-text: #f0f0f0;
  --color-text-muted: #a0a0a0;
  --color-border: rgba(240, 240, 240, 0.1);
}

/* ===== BASE STYLES ===== */
*,*::before,*::after { 
  box-sizing: border-box; 
  margin: 0; 
  padding: 0; 
}

html { 
  scroll-behavior: smooth; 
}

body {
  font-family: 'DM Sans', sans-serif;
  background-color: var(--color-base);
  color: var(--color-text);
  overflow-x: hidden;
}

/* ===== CURSOR ===== */
body { cursor: none; }

#c-dot {
  width: 7px;
  height: 7px;
  background: var(--color-accent);
  border-radius: 50%;
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
}

#c-ring {
  width: 32px;
  height: 32px;
  border: 1.5px solid rgba(99, 102, 241, 0.55);
  border-radius: 50%;
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
  transition: width 0.25s, height 0.25s, border-color 0.25s, background 0.25s;
}

#c-ring.big {
  width: 52px;
  height: 52px;
  border-color: var(--color-accent);
  background: rgba(99, 102, 241, 0.06);
}

/* ===== PARTICLE WRAP ===== */
#p5-wrap {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

#p5-wrap canvas {
  display: block;
  pointer-events: all;
}

/* ===== NAVIGATION ===== */
.nav-link {
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  right: 100%;
  height: 1px;
  background: var(--color-accent);
  transition: right 0.3s;
}

.nav-link:hover::after {
  right: 0;
}

@media (max-width: 768px) {
  #nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    bottom: 0;
    width: 260px;
    background: var(--color-base);
    flex-direction: column;
    justify-content: center;
    padding: 2rem;
    gap: 2rem;
    border-left: 1px solid var(--color-border);
    transition: right 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    z-index: 600;
  }

  #nav-links.open {
    right: 0;
  }
}

/* ===== HERO ===== */
#hero {
  position: relative;
  height: 100vh;
  display: flex;
  align-items: center;
  z-index: 10;
  padding: 0 3rem;
}

@media (max-width: 768px) {
  #hero {
    padding: 0 1.5rem;
  }
}

.hero-eyebrow {
  font-family: 'Space Mono', monospace;
  font-size: 0.68rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--color-accent-light);
  margin-bottom: 1.5rem;
  opacity: 0;
  animation: fadeUp 0.8s 0.2s forwards;
}

.hero-name {
  font-family: 'Syne', sans-serif;
  font-size: clamp(4rem, 11vw, 9.5rem);
  font-weight: 800;
  line-height: 0.88;
  letter-spacing: -0.025em;
  opacity: 0;
  animation: fadeUp 0.8s 0.4s forwards;
}

.hero-name .outline {
  -webkit-text-stroke: 1.5px var(--color-text);
  color: transparent;
}

.hero-sub {
  font-size: 1.05rem;
  color: var(--color-text-muted);
  font-weight: 300;
  margin-top: 2rem;
  max-width: 440px;
  line-height: 1.75;
  opacity: 0;
  animation: fadeUp 0.8s 0.6s forwards;
}

.hero-actions {
  display: flex;
  gap: 1.25rem;
  margin-top: 2.75rem;
  flex-wrap: wrap;
  opacity: 0;
  animation: fadeUp 0.8s 0.8s forwards;
}

/* ===== BUTTONS ===== */
.btn-solid {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.85rem 1.9rem;
  background: var(--color-accent);
  color: #ffffff;
  font-family: 'Space Mono', monospace;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  font-weight: 700;
  transition: background 0.25s, transform 0.25s;
  border: none;
}

.btn-solid:hover {
  background: var(--color-accent-dark);
  transform: translateY(-2px);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.85rem 1.9rem;
  border: 1.5px solid var(--color-text);
  color: var(--color-text);
  font-family: 'Space Mono', monospace;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  transition: border-color 0.25s, color 0.25s, transform 0.25s;
}

.btn-outline:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
  transform: translateY(-2px);
}

/* ===== SCROLL HINT ===== */
.scroll-hint {
  position: absolute;
  bottom: 2.5rem;
  left: 3rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  font-family: 'Space Mono', monospace;
  font-size: 0.62rem;
  letter-spacing: 0.22em;
  color: var(--color-text-muted);
  text-transform: uppercase;
  opacity: 0;
  animation: fadeIn 1s 1.3s forwards;
}

.scroll-line {
  width: 36px;
  height: 1px;
  background: var(--color-text-muted);
  position: relative;
  overflow: hidden;
}

.scroll-line::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: var(--color-accent);
  animation: lineRun 2s 1.6s ease-in-out infinite;
}

@keyframes lineRun {
  0% { left: -100%; }
  100% { left: 100%; }
}

/* ===== TEXTURE & EFFECTS ===== */
/* Grain texture overlay */
body::after { 
  content: ''; 
  position: fixed; 
  inset: 0; 
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.025'/%3E%3C/svg%3E"); 
  pointer-events: none; 
  z-index: 5; 
  opacity: 0.3;
}

/* ===== TICKER / MARQUEE ===== */
.ticker-wrap {
  position: relative;
  z-index: 10;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  padding: 0.9rem 0;
  overflow: hidden;
  background: var(--color-base-light);
}

.ticker-track {
  display: flex;
  width: max-content;
  animation: ticker 28s linear infinite;
}

.ticker-track:hover {
  animation-play-state: paused;
}

.ticker-item {
  font-family: 'Syne', sans-serif;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  color: var(--color-text-muted);
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 1.25rem;
  white-space: nowrap;
  padding: 0 1.25rem;
}

.ticker-item::after {
  content: '';
  width: 5px;
  height: 5px;
  background: var(--color-accent);
  border-radius: 50%;
  flex-shrink: 0;
}

@keyframes ticker {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ===== UNIVERSE CARDS ===== */
#universe {
  position: relative;
  z-index: 10;
  padding: 8rem 3rem;
}

@media (max-width: 768px) {
  #universe {
    padding: 5rem 1.5rem;
  }
}

.s-label {
  font-family: 'Space Mono', monospace;
  font-size: 0.65rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--color-accent-light);
  margin-bottom: 0.9rem;
}

.s-title {
  font-family: 'Syne', sans-serif;
  font-size: clamp(2.2rem, 4.5vw, 4rem);
  font-weight: 800;
  line-height: 1.0;
  color: var(--color-text);
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  margin-top: 3.5rem;
}

@media (max-width: 900px) {
  .cards-grid {
    grid-template-columns: 1fr;
  }
}

.u-card {
  position: relative;
  height: 500px;
  overflow: hidden;
  cursor: none;
  text-decoration: none;
  display: block;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  border-radius: 1rem;
}

.u-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 40px rgba(99, 102, 241, 0.12);
}

.u-card-top {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--color-accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s ease;
  z-index: 4;
}

.u-card:hover .u-card-top {
  transform: scaleX(1);
}

.u-card-body {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 2.25rem;
  z-index: 3;
}

.u-card-num {
  font-family: 'Space Mono', monospace;
  font-size: 0.62rem;
  letter-spacing: 0.2em;
  color: var(--color-accent-light);
  margin-bottom: 0.9rem;
}

.u-card-title {
  font-family: 'Syne', sans-serif;
  font-size: 1.9rem;
  font-weight: 800;
  color: var(--color-text);
  line-height: 1.05;
}

.u-card-desc {
  font-size: 0.88rem;
  color: rgba(240, 240, 240, 0.6);
  line-height: 1.65;
  margin-top: 0.75rem;
  max-width: 280px;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.u-card:hover .u-card-desc {
  opacity: 1;
  transform: translateY(0);
}

.u-card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1.25rem;
  font-family: 'Space Mono', monospace;
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-accent-light);
  opacity: 0;
  transform: translateX(-8px);
  transition: opacity 0.4s ease 0.05s, transform 0.4s ease 0.05s;
}

.u-card:hover .u-card-link {
  opacity: 1;
  transform: translateX(0);
}

.u-card-link svg {
  transition: transform 0.25s ease;
}

.u-card:hover .u-card-link svg {
  transform: translateX(4px);
}

/* ===== SCROLL REVEAL ===== */
.sr {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.75s ease, transform 0.75s ease;
}

.sr.vis {
  opacity: 1;
  transform: translateY(0);
}

/* ===== ANIMATIONS ===== */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes fadeUp {
  from { 
    opacity: 0;
    transform: translateY(20px);
  }
  to { 
    opacity: 1;
    transform: translateY(0);
  }
}