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

:root {
  --bg: #050508;
  --bg-2: #0a0a10;
  --bg-3: #0f0f18;
  --fg: #e8e8f0;
  --fg-muted: #6b6b80;
  --fg-dim: #3a3a50;
  --accent: #00D4FF;
  --accent-dim: rgba(0, 212, 255, 0.15);
  --accent-2: #FF6B35;
  --accent-2-dim: rgba(255, 107, 53, 0.15);
  --border: rgba(255, 255, 255, 0.06);
  --font-display: 'Space Grotesk', system-ui, sans-serif;
  --font-body: 'DM Sans', system-ui, sans-serif;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* === NAV === */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 0 40px;
  height: 60px;
  background: rgba(5, 5, 8, 0.8);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}

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

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 18px;
  letter-spacing: -0.02em;
  color: var(--fg);
}

.nav-status {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--fg-muted);
  font-family: var(--font-display);
}

.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

/* === HERO === */
.hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  position: relative;
  padding: 100px 80px 80px;
  overflow: hidden;
}

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

.grid-surface {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.grid-lines {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0, 212, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 212, 255, 0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  animation: grid-drift 20s linear infinite;
}

@keyframes grid-drift {
  0% { transform: translate(0, 0); }
  100% { transform: translate(60px, 60px); }
}

.hero-glow {
  position: absolute;
  top: 30%;
  left: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(ellipse, rgba(0, 212, 255, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.deco-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(0, 212, 255, 0.06);
}

.deco-ring-1 { width: 400px; height: 400px; bottom: -100px; right: 20%; animation: ring-rotate 30s linear infinite; }
.deco-ring-2 { width: 600px; height: 600px; bottom: -200px; right: 10%; animation: ring-rotate 40s linear infinite reverse; }
.deco-ring-3 { width: 800px; height: 800px; bottom: -300px; right: 0%; animation: ring-rotate 50s linear infinite; }

@keyframes ring-rotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 28px;
  padding: 6px 12px;
  border: 1px solid rgba(0, 212, 255, 0.2);
  border-radius: 2px;
  background: rgba(0, 212, 255, 0.05);
}

.label-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse-dot 2s ease-in-out infinite;
}

.hero-headline {
  font-family: var(--font-display);
  font-size: clamp(48px, 5vw, 80px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--fg);
  margin-bottom: 28px;
}

.hero-headline .accent {
  color: var(--accent);
  text-shadow: 0 0 40px rgba(0, 212, 255, 0.3);
}

.hero-sub {
  font-size: 17px;
  color: var(--fg-muted);
  max-width: 480px;
  line-height: 1.7;
  margin-bottom: 48px;
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 32px;
}

.stat { text-align: left; }

.stat-value {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 700;
  color: var(--fg);
  letter-spacing: -0.02em;
}

.stat-label {
  font-size: 11px;
  color: var(--fg-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-family: var(--font-display);
  margin-top: 2px;
}

.stat-divider {
  width: 1px;
  height: 36px;
  background: var(--border);
}

.hero-nodes {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.nodes-svg {
  width: 100%;
  max-width: 480px;
  height: auto;
  opacity: 0.8;
}

/* === SECTIONS === */
.mesh-section, .titan-section, .loop-section, .outcomes-section {
  padding: 120px 80px;
}

.mesh-section { background: var(--bg-2); }
.titan-section { background: var(--bg); }
.loop-section { background: var(--bg-2); }
.outcomes-section { background: var(--bg); }

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

.section-label {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg-muted);
  margin-bottom: 24px;
}

.section-num {
  color: var(--accent);
  font-size: 10px;
  padding: 3px 6px;
  border: 1px solid rgba(0, 212, 255, 0.2);
  border-radius: 2px;
}

.section-headline {
  font-family: var(--font-display);
  font-size: clamp(32px, 4vw, 56px);
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--fg);
  max-width: 720px;
  line-height: 1.1;
  margin-bottom: 20px;
}

.section-body {
  font-size: 17px;
  color: var(--fg-muted);
  max-width: 580px;
  line-height: 1.75;
  margin-bottom: 64px;
}

/* === MESH VISUAL === */
.mesh-visual {
  margin-bottom: 56px;
}

.mesh-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr;
  align-items: center;
  gap: 0;
  padding: 32px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.mesh-node {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 16px;
  border-radius: 4px;
  background: var(--bg-3);
  border: 1px solid var(--border);
  text-align: center;
}

.mesh-node-titan {
  border-color: rgba(255, 107, 53, 0.3);
  background: rgba(255, 107, 53, 0.06);
}

.node-name {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  color: var(--fg);
  letter-spacing: 0.05em;
}

.mesh-node-titan .node-name { color: var(--accent-2); }

.node-type {
  font-size: 11px;
  color: var(--fg-muted);
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.mesh-connector {
  width: 40px;
  height: 2px;
  background: linear-gradient(90deg, var(--accent-dim), var(--accent));
  position: relative;
}

.mesh-connector::after {
  content: '';
  position: absolute;
  right: -4px;
  top: -3px;
  width: 0;
  height: 0;
  border-left: 6px solid var(--accent);
  border-top: 4px solid transparent;
  border-bottom: 4px solid transparent;
}

/* === MESH PROPERTIES === */
.mesh-properties {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 32px;
}

.prop {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.prop-icon {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: var(--bg-3);
}

.prop-name {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  color: var(--fg);
  margin-bottom: 6px;
}

.prop-desc {
  font-size: 13px;
  color: var(--fg-muted);
  line-height: 1.6;
}

/* === TITAN DOMAINS === */
.titan-domains {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 48px;
}

.domain {
  background: var(--bg-2);
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.domain-icon { display: flex; }

.domain-label {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  color: var(--fg);
  letter-spacing: 0.02em;
}

.domain-sub {
  font-size: 12px;
  color: var(--fg-muted);
  line-height: 1.5;
}

.titan-behavior {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 24px;
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: 4px;
}

.behavior-tag {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 500;
  color: var(--fg-muted);
}

.behavior-tag-active { color: var(--accent-2); }

.bt-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--fg-muted);
}

.bt-dot-active {
  background: var(--accent-2);
  box-shadow: 0 0 8px var(--accent-2);
  animation: pulse-dot 2s ease-in-out infinite;
}

.behavior-arrow { color: var(--fg-muted); }

/* === LOOP TIMELINE === */
.loop-timeline {
  display: flex;
  align-items: center;
  gap: 0;
  margin-bottom: 64px;
  overflow-x: auto;
  padding-bottom: 16px;
}

.loop-day {
  flex-shrink: 0;
  padding: 20px 32px;
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: 4px;
  min-width: 180px;
}

.loop-day-final {
  border-color: rgba(0, 212, 255, 0.3);
  background: rgba(0, 212, 255, 0.04);
}

.day-num {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 600;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 8px;
}

.day-label {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 500;
  color: var(--fg);
  margin-bottom: 6px;
}

.day-impact {
  font-size: 12px;
  color: var(--fg-muted);
}

.loop-connector {
  flex-shrink: 0;
  padding: 0 8px;
  display: flex;
  align-items: center;
}

.lc-line {
  width: 40px;
  height: 1px;
  background: var(--fg-dim);
  position: relative;
}

.lc-dots {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.lc-dots .dot {
  font-size: 16px;
  color: var(--fg-muted);
  line-height: 1;
}

.loop-engine {
  display: flex;
  align-items: center;
  gap: 24px;
}

.engine-block {
  flex: 1;
  padding: 20px 24px;
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: 4px;
}

.engine-block-center {
  border-color: rgba(0, 212, 255, 0.25);
  background: rgba(0, 212, 255, 0.04);
}

.engine-name {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  color: var(--fg-muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.engine-name-accent {
  color: var(--accent);
}

.engine-label {
  font-size: 11px;
  color: var(--fg-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-family: var(--font-display);
  margin-bottom: 8px;
}

.engine-desc {
  font-size: 13px;
  color: var(--fg-muted);
  line-height: 1.5;
}

.engine-arrow { flex-shrink: 0; }

/* === OUTCOMES === */
.outcomes-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 4px;
  overflow: hidden;
}

.outcome {
  background: var(--bg-2);
  padding: 40px 36px;
}

.outcome-val {
  font-family: var(--font-display);
  font-size: 56px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: 12px;
}

.outcome-name {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
  color: var(--fg);
  margin-bottom: 12px;
}

.outcome-desc {
  font-size: 14px;
  color: var(--fg-muted);
  line-height: 1.65;
}

/* === CLOSING === */
.closing-section {
  padding: 160px 80px;
  background: var(--bg-2);
  text-align: center;
}

.closing-inner {
  max-width: 800px;
  margin: 0 auto;
}

.closing-headline {
  font-family: var(--font-display);
  font-size: clamp(36px, 5vw, 72px);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--fg);
  line-height: 1.1;
  margin-bottom: 24px;
}

.closing-headline .accent { color: var(--accent); }

.closing-sub {
  font-size: 17px;
  color: var(--fg-muted);
  line-height: 1.75;
  max-width: 560px;
  margin: 0 auto 56px;
}

.closing-vision {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 24px 36px;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: var(--bg-3);
}

.vision-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
}

.vision-text {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 500;
  color: var(--fg);
  font-style: italic;
}

.closing-cta {
  margin-top: 48px;
}

.cta-button {
  display: inline-block;
  padding: 14px 40px;
  background: var(--accent);
  color: var(--bg);
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-radius: 3px;
  text-decoration: none;
  transition: opacity 0.2s, box-shadow 0.2s;
  box-shadow: 0 0 32px rgba(0, 212, 255, 0.3);
}

.cta-button:hover {
  opacity: 0.85;
  box-shadow: 0 0 48px rgba(0, 212, 255, 0.5);
}

/* === FOOTER === */
.footer {
  padding: 40px 80px;
  border-top: 1px solid var(--border);
  background: var(--bg);
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 32px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  color: var(--fg);
}

.footer-tagline {
  font-size: 12px;
  color: var(--fg-muted);
  font-family: var(--font-display);
  flex: 1;
}

.footer-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--fg-muted);
  font-family: var(--font-display);
}

.footer-sep { color: var(--fg-dim); }

/* === RESPONSIVE === */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; padding: 80px 32px 60px; }
  .hero-nodes { display: none; }
  .mesh-section, .titan-section, .loop-section, .outcomes-section { padding: 80px 32px; }
  .mesh-properties { grid-template-columns: 1fr; }
  .titan-domains { grid-template-columns: 1fr 1fr; }
  .outcomes-grid { grid-template-columns: 1fr; }
  .loop-engine { flex-wrap: wrap; }
  .closing-section { padding: 100px 32px; }
  .footer { padding: 32px; }
  .footer-inner { flex-wrap: wrap; gap: 16px; }
  .nav { padding: 0 24px; }
}

@media (max-width: 600px) {
  .hero-stats { flex-wrap: wrap; gap: 20px; }
  .mesh-grid { grid-template-columns: 1fr; gap: 16px; }
  .mesh-connector { display: none; }
  .titan-domains { grid-template-columns: 1fr; }
  .loop-timeline { flex-direction: column; align-items: flex-start; }
  .loop-connector { display: none; }
}