:root {
  --bg: #08080a;
  --bg-elevated: #0e0e11;
  --bg-card: #121215;
  --border: rgba(255, 255, 255, 0.06);
  --border-hover: rgba(255, 255, 255, 0.14);

  --text: #ffffff;
  --text-dim: rgba(255, 255, 255, 0.55);
  --text-muted: rgba(255, 255, 255, 0.3);

  --glow: rgba(255, 255, 255, 0.06);

  --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-display: 'Space Grotesk', 'Inter', sans-serif;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

.video-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.video-bg video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.35;
}

.video-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--bg);
  opacity: 0.4;
}

::selection {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
}

.nav,
.hero,
.section,
.section-divider,
.quote-section,
.ascension-zone,
.footer {
  position: relative;
  z-index: 2;
}

.noise-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.02;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 256px;
}

.cursor-glow {
  position: fixed;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.04) 0%, transparent 70%);
  pointer-events: none;
  z-index: 1;
  opacity: 0;
  transform: translate(-50%, -50%);
  transition: opacity 0.4s ease;
}

body:hover .cursor-glow {
  opacity: 1;
}

/* Gradient only used on 1-2 key words */
.gradient-text {
  background: linear-gradient(135deg, #ffffff 0%, #b0b0b0 40%, #d4a853 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ===== NAV ===== */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 0 2rem;
  background: transparent;
  border-bottom: none;
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 64px;
}

.nav-logo {
  text-decoration: none;
  color: var(--text);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.2em;
}


/* ===== HERO ===== */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 6rem 2rem;
}

.hero::before {
  content: '';
  position: absolute;
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 900px;
  background: radial-gradient(ellipse, rgba(255, 255, 255, 0.03) 0%, transparent 65%);
  pointer-events: none;
}

.hero-particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.particle {
  position: absolute;
  width: 1px;
  height: 1px;
  background: rgba(255, 255, 255, 0.6);
  border-radius: 50%;
  opacity: 0;
  animation: particleFloat linear infinite;
}

@keyframes particleFloat {
  0% { opacity: 0; transform: translateY(100vh) scale(0); }
  10% { opacity: 0.5; }
  90% { opacity: 0.5; }
  100% { opacity: 0; transform: translateY(-10vh) scale(1); }
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 800px;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 9vw, 7rem);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.04em;
  margin-bottom: 1.5rem;
  color: var(--text);
}

.title-line {
  display: block;
}

.hero-tagline {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  color: var(--text-dim);
  margin-bottom: 1.5rem;
  text-transform: uppercase;
}

.hero-subtitle {
  font-size: 1rem;
  line-height: 1.85;
  color: var(--text-muted);
  max-width: 460px;
  margin: 0 auto 2.5rem;
  font-weight: 400;
}

.hero-cta {
  display: flex;
  gap: 1rem;
  justify-content: center;
}

.ca-box {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-top: 1.5rem;
  padding: 0.5rem 0.8rem 0.5rem 1rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  border-radius: 100px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.ca-box:hover {
  border-color: var(--border-hover);
  background: rgba(255, 255, 255, 0.08);
}

.ca-label {
  font-family: var(--font-display);
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  color: var(--text-muted);
  text-transform: uppercase;
}

.ca-address {
  font-family: 'Inter', monospace;
  font-size: 0.65rem;
  color: var(--text-dim);
  letter-spacing: 0.02em;
  max-width: 260px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ca-copy {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  transition: color 0.2s ease;
}

.ca-copy:hover {
  color: var(--text);
}

.ca-copy.copied {
  color: #4ade80;
}

/* ===== BUTTONS ===== */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 2rem;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  text-decoration: none;
  letter-spacing: 0.04em;
  transition: all 0.3s var(--ease-out);
  cursor: pointer;
  border: none;
  text-transform: uppercase;
}

.btn-primary {
  background: #fff;
  color: #000;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(255, 255, 255, 0.1);
}

.btn-hero {
  background: #fff;
  color: #000;
  padding: 0.85rem 2rem;
  border-radius: 100px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all 0.3s var(--ease-out);
  white-space: nowrap;
}

.btn-hero svg {
  flex-shrink: 0;
}

.btn-hero:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(255, 255, 255, 0.12);
}

.btn-ghost {
  background: transparent;
  color: var(--text-dim);
  border: 1px solid var(--border-hover);
}

.btn-ghost:hover {
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.03);
}

/* ===== SCROLL INDICATOR ===== */

.scroll-indicator {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.4), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; transform: scaleY(0.5); }
  50% { opacity: 1; transform: scaleY(1); }
}

.scroll-indicator span {
  font-size: 0.55rem;
  letter-spacing: 0.35em;
  color: var(--text-muted);
  font-weight: 600;
}

/* ===== SECTIONS ===== */

.section {
  position: relative;
  padding: 8rem 2rem;
}

.section-elevated {
  background: var(--bg-elevated);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-transparent {
  background: transparent;
}

.section-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.section-label {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.3em;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 2rem;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.025em;
  margin-bottom: 3rem;
  color: var(--text);
}

/* ===== DIVIDER ===== */

.section-divider {
  display: flex;
  align-items: center;
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.divider-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--border), transparent);
}

.divider-text {
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.5em;
  color: var(--text-muted);
}

/* ===== THE SHIFT ===== */

.shift-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.shift-text h2 {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
  color: var(--text);
}

.shift-text p {
  color: var(--text-dim);
  line-height: 1.85;
  margin-bottom: 1.25rem;
  font-size: 0.95rem;
}

.shift-stats {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.shift-motto {
  font-style: italic;
  color: var(--text-muted);
  border-left: 2px solid rgba(255,255,255,0.1);
  padding-left: 1rem;
  margin-top: 0.5rem;
}

.stat-card {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  flex-wrap: wrap;
  padding: 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  transition: all 0.5s var(--ease-out);
}

.stat-card.glow-card {
  opacity: 0;
  transform: translateY(15px);
}

.stat-card.glow-card.visible {
  opacity: 1;
  transform: translateY(0);
  box-shadow: 0 0 25px rgba(255,255,255,0.04), 0 0 50px rgba(255,255,255,0.02);
}

.stat-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-2px);
  box-shadow: 0 0 30px rgba(255,255,255,0.08), 0 8px 30px rgba(0, 0, 0, 0.4);
}

.stat-number {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--text);
  line-height: 1;
}

.stat-unit {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-dim);
}

.stat-label {
  width: 100%;
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
  line-height: 1.5;
}

/* ===== CHART ===== */

.chart-section {
  padding-top: 5rem;
  padding-bottom: 5rem;
}

.chart-header {
  margin-bottom: 2rem;
}

.chart-title {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.02em;
}

.chart-ticker {
  font-weight: 500;
  font-size: 1rem;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  margin-left: 0.5rem;
}

.chart-container {
  position: relative;
  width: 100%;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: #09090b;
  box-shadow: 0 0 80px rgba(255, 255, 255, 0.03), 0 20px 60px rgba(0, 0, 0, 0.5);
}

.chart-glow {
  position: absolute;
  inset: -80px;
  background: radial-gradient(ellipse at center, rgba(255,255,255,0.04) 0%, transparent 60%);
  pointer-events: none;
  z-index: 0;
}

.chart-container iframe {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 600px;
  border: none;
  display: block;
  border-radius: 15px;
}

.chart-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 600px;
  gap: 1rem;
  color: var(--text-muted);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.chart-loader {
  width: 24px;
  height: 24px;
  border: 2px solid var(--border);
  border-top-color: var(--text-dim);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ===== THE CODE (PROSE + TWEETS) ===== */

.code-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.code-prose {
  max-width: 720px;
}

.code-prose p {
  font-size: 1rem;
  color: var(--text-dim);
  line-height: 2;
  margin-bottom: 2rem;
}

.code-prose p:last-child {
  margin-bottom: 0;
}

.code-tweets {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.tweet-wrapper {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 0 40px rgba(255, 255, 255, 0.04), 0 0 80px rgba(255, 255, 255, 0.02);
}

.tweet-wrapper::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(255,255,255,0.08), transparent 50%, rgba(255,255,255,0.04));
  z-index: 0;
  pointer-events: none;
}

.tweet-wrapper .twitter-tweet {
  margin: 0 !important;
}


.tweet-wrapper iframe,
.tweet-wrapper .twitter-tweet-rendered {
  border-radius: 16px !important;
  max-width: 100% !important;
}

.code-tweets blockquote {
  font-size: 0.85rem;
  color: var(--text-muted);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.5rem;
  background: var(--bg-card);
}

.code-tweets blockquote a {
  color: var(--text-dim);
  text-decoration: none;
}

/* ===== LEVELS / TIMELINE ===== */

.levels-timeline {
  position: relative;
  padding-left: 3rem;
}

.timeline-line {
  position: absolute;
  left: 7px;
  top: 0;
  bottom: 0;
  width: 1px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.05), rgba(255,255,255,0.2), rgba(255,255,255,0.05));
}

.timeline-line::after {
  content: '';
  position: absolute;
  left: -1px;
  top: 0;
  width: 3px;
  height: 60px;
  background: linear-gradient(to bottom, transparent, rgba(255,255,255,0.5), transparent);
  animation: timelineScan 4s ease-in-out infinite;
  border-radius: 2px;
}

@keyframes timelineScan {
  0% { top: 0%; }
  100% { top: 100%; }
}

.timeline-step {
  display: flex;
  gap: 2rem;
  padding-bottom: 3.5rem;
  position: relative;
}

.timeline-step:last-child {
  padding-bottom: 0;
}

.step-marker {
  position: absolute;
  left: -3rem;
  top: 0.3rem;
}

.step-dot {
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid rgba(255, 255, 255, 0.2);
  transition: all 0.4s var(--ease-out);
}

.step-dot.active {
  background: #fff;
  border-color: #fff;
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.3), 0 0 30px rgba(255, 255, 255, 0.1);
  animation: dotPulse 2.5s ease-in-out infinite;
}

@keyframes dotPulse {
  0%, 100% { box-shadow: 0 0 10px rgba(255,255,255,0.2), 0 0 20px rgba(255,255,255,0.05); }
  50% { box-shadow: 0 0 20px rgba(255,255,255,0.4), 0 0 40px rgba(255,255,255,0.15); }
}

.timeline-step:hover .step-dot {
  background: #fff;
  border-color: #fff;
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.15);
}

.timeline-step.visible .step-content {
  animation: stepSlideIn 0.7s var(--ease-out) forwards;
}

@keyframes stepSlideIn {
  from { opacity: 0; transform: translateX(-20px); }
  to { opacity: 1; transform: translateX(0); }
}

.step-phase {
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.3em;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.step-content h3 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  letter-spacing: -0.01em;
  color: var(--text);
}

.step-content p {
  font-size: 0.9rem;
  color: var(--text-dim);
  line-height: 1.8;
  max-width: 600px;
}

/* ===== QUOTE ===== */

.quote-section {
  text-align: center;
  padding: 6rem 2rem;
}

.quote-block {
  max-width: 700px;
  margin: 0 auto;
}

.quote-mark {
  font-family: var(--font-display);
  font-size: 6rem;
  color: var(--text);
  opacity: 0.08;
  line-height: 0.5;
  margin-bottom: 1rem;
}

blockquote {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2.5vw, 1.6rem);
  font-weight: 500;
  line-height: 1.7;
  color: var(--text);
  letter-spacing: -0.01em;
}

/* ===== ASCENSION ZONE ===== */

.ascension-zone {
  position: relative;
  height: 400vh;
  overflow: visible;
}

.ascension-track {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.ascension-line {
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 1px;
  background: linear-gradient(
    to bottom,
    transparent 0%,
    rgba(255,255,255,0.03) 5%,
    rgba(255,255,255,0.08) 30%,
    rgba(255,255,255,0.15) 50%,
    rgba(255,255,255,0.25) 70%,
    rgba(255,255,255,0.5) 90%,
    #fff 100%
  );
  transform: translateX(-50%);
}

.ascension-particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.ascension-particle {
  position: absolute;
  width: 1px;
  height: 1px;
  background: rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  animation: ascendParticle linear infinite;
}

@keyframes ascendParticle {
  0% { opacity: 0; transform: translateY(0) scale(0); }
  15% { opacity: 0.6; transform: scale(1); }
  85% { opacity: 0.4; }
  100% { opacity: 0; transform: translateY(-400vh) scale(0.5); }
}

.ascension-marker {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  opacity: 0;
  transition: opacity 0.8s ease, transform 0.8s var(--ease-out);
}

.ascension-marker[data-depth="1"] { top: 8%; }
.ascension-marker[data-depth="2"] { top: 22%; }
.ascension-marker[data-depth="3"] { top: 36%; }
.ascension-marker[data-depth="4"] { top: 50%; }
.ascension-marker[data-depth="5"] { top: 62%; }
.ascension-marker[data-depth="6"] { top: 74%; }
.ascension-marker[data-depth="7"] { top: 84%; }

.ascension-marker.visible {
  opacity: 1;
}

.ascension-marker span {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.4em;
  color: rgba(255,255,255,0.1);
  white-space: nowrap;
  display: block;
  transition: color 0.6s ease, text-shadow 0.6s ease;
}

.ascension-marker.visible span {
  color: #ffffff;
  text-shadow: 0 0 10px rgba(255,255,255,0.6), 0 0 30px rgba(255,255,255,0.3), 0 0 60px rgba(255,255,255,0.1);
}

.ascension-final {
  position: absolute;
  bottom: 5%;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  opacity: 0;
  transition: opacity 1s ease;
}

.ascension-final.visible {
  opacity: 1;
}

.final-text {
  font-family: var(--font-display);
  font-size: clamp(3rem, 8vw, 6rem);
  font-weight: 900;
  letter-spacing: 0.15em;
  color: var(--text);
  margin-bottom: 2rem;
  text-shadow: 0 0 60px rgba(255,255,255,0.15), 0 0 120px rgba(255,255,255,0.05);
}

.send-btn {
  display: inline-block;
  background: #fff;
  color: #000;
  border: none;
  padding: 1rem 4rem;
  border-radius: 6px;
  cursor: pointer;
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  transition: all 0.4s var(--ease-out);
}

.send-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 40px rgba(255,255,255,0.15), 0 0 60px rgba(255,255,255,0.05);
}

/* ===== FOOTER ===== */

.footer {
  padding: 3rem 2rem;
  border-top: 1px solid var(--border);
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-brand {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.2em;
  color: var(--text);
}

.footer-text {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.footer-year {
  font-size: 0.7rem;
  color: var(--text-muted);
  letter-spacing: 0.15em;
}

/* ===== ANIMATIONS ===== */

[data-animate] {
  opacity: 0;
  transform: translateY(25px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}

[data-animate].visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== RESPONSIVE ===== */

@media (max-width: 768px) {
  .shift-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .code-layout { grid-template-columns: 1fr; gap: 2.5rem; }
  .hero-cta { flex-direction: column; align-items: center; }
  .footer-inner { flex-direction: column; gap: 1rem; text-align: center; }
  .section { padding: 5rem 1.5rem; }
  .ascension-zone { height: 300vh; }
}

@media (max-width: 480px) {
  .hero-title { font-size: 2.8rem; }
  .section-title { font-size: 1.8rem; }
  .ascension-zone { height: 250vh; }
}
