@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600;800&family=Roboto+Mono:wght@400;500&display=swap');

:root {
  --bg-color: #030303;
  --accent-blue: #0070f3;
  --accent-cyan: #00dfd8;
  --accent-gold: #ffb800;
  --text-primary: #ffffff;
  --text-secondary: #8a8a8a;
  --glass-bg: rgba(255, 255, 255, 0.02);
  --glass-border: rgba(255, 255, 255, 0.06);
  --grid-color: rgba(255, 255, 255, 0.03);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--bg-color);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Background Systems */
.bg-grid {
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  background-image: 
    linear-gradient(var(--grid-color) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-color) 1px, transparent 1px);
  background-size: 60px 60px;
  z-index: -2;
  mask-image: radial-gradient(circle at center, black, transparent 80%);
}

.ambient-glow {
  position: fixed;
  z-index: -1;
  filter: blur(120px);
  border-radius: 50%;
  opacity: 0.5;
}

.g1 { top: -10%; right: -10%; width: 50vw; height: 50vw; background: radial-gradient(circle, rgba(0, 112, 243, 0.15) 0%, transparent 70%); }
.g2 { bottom: -10%; left: -10%; width: 40vw; height: 40vw; background: radial-gradient(circle, rgba(0, 223, 216, 0.1) 0%, transparent 70%); }

.container { max-width: 1200px; margin: 0 auto; padding: 0 2rem; }

/* Navigation */
nav {
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  backdrop-filter: blur(10px);
}

.logo { font-size: 1.2rem; font-weight: 800; letter-spacing: 0.4em; color: white; }
.nav-links { display: flex; align-items: center; gap: 3rem; }
.nav-links a { color: var(--text-secondary); text-decoration: none; font-size: 0.75rem; transition: 0.3s; }
.nav-links a:hover { color: white; letter-spacing: 0.1em; }

.status-dot { width: 6px; height: 6px; background: var(--accent-cyan); border-radius: 50%; box-shadow: 0 0 10px var(--accent-cyan); }

/* Typography Extras */
.mono { font-family: 'Roboto Mono', monospace; font-size: 0.7rem; letter-spacing: 0.3em; text-transform: uppercase; margin-bottom: 1rem; display: block; }
.cyan { color: var(--accent-cyan); }
.blue { color: var(--accent-blue); }
.gold { color: var(--accent-gold); }
.accent-text { color: var(--accent-blue); }

/* Hero */
.hero {
  min-height: 90vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: 10rem 0;
}

.hero h1 {
  font-size: 6.5rem;
  font-weight: 800;
  line-height: 0.95;
  margin-bottom: 2.5rem;
  letter-spacing: -0.04em;
}

.hero-desc { font-size: 1.5rem; color: var(--text-secondary); max-width: 650px; margin-bottom: 4rem; font-weight: 300; }

.hero-btns { display: flex; gap: 1.5rem; }

.btn {
  padding: 1.2rem 2.5rem;
  border-radius: 100px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
  font-size: 0.9rem;
}

.btn.primary { background: white; color: black; }
.btn.secondary { border: 1px solid var(--glass-border); color: white; background: var(--glass-bg); }
.btn:hover { transform: scale(1.05) translateY(-5px); box-shadow: 0 20px 40px rgba(0,0,0,0.4); }

/* Sections */
.section { padding: 12rem 0; border-bottom: 1px solid var(--glass-border); }
.section-title { font-size: 4rem; line-height: 1.1; margin-bottom: 3rem; font-weight: 800; }

.split-info { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; }
.info-block p { font-size: 1.2rem; color: var(--text-secondary); font-weight: 300; }

/* Engine Grid */
.engine-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; margin-top: 4rem; }

.engine-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  padding: 3rem;
  border-radius: 32px;
  position: relative;
  transition: 0.5s;
}

.engine-card:hover { background: rgba(255,255,255,0.05); border-color: rgba(255,255,255,0.2); transform: translateY(-10px); }

.card-icon {
  width: 50px; height: 50px; background: white; color: black;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; border-radius: 12px; margin-bottom: 2rem;
}

.engine-card h4 { font-size: 1.5rem; margin-bottom: 1rem; }
.engine-card p { color: var(--text-secondary); margin-bottom: 2rem; font-size: 0.95rem; }

.mono-list { list-style: none; }
.mono-list li { font-family: 'Roboto Mono', monospace; font-size: 0.7rem; color: var(--accent-cyan); margin-bottom: 0.5rem; padding-left: 1rem; position: relative; }
.mono-list li::before { content: '>'; position: absolute; left: 0; color: var(--accent-blue); }

/* Timeline */
.timeline { border-left: 1px solid var(--glass-border); padding-left: 3rem; margin-left: 1rem; position: relative; }

.timeline-item { position: relative; margin-bottom: 4rem; }
.timeline-item::before {
  content: ''; position: absolute; left: calc(-3rem - 6px); top: 10px;
  width: 11px; height: 11px; background: var(--bg-color); border: 2px solid var(--accent-blue);
  border-radius: 50%; z-index: 1;
}

.time { margin-bottom: 0.5rem; opacity: 0.5; }
.event h4 { font-size: 1.5rem; margin-bottom: 0.5rem; }
.event p { color: var(--text-secondary); max-width: 600px; }

.green-border { padding: 1.5rem; border: 1px solid rgba(0, 255, 0, 0.1); border-radius: 16px; background: rgba(0, 255, 0, 0.02); }

/* Bento Layout */
.bento-layout { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 200px; gap: 1.5rem; }

.bento-box { background: var(--glass-bg); border: 1px solid var(--glass-border); padding: 2.5rem; border-radius: 24px; display: flex; flex-direction: column; justify-content: flex-end; transition: 0.4s; }
.bento-box:hover { background: rgba(255,255,255,0.05); transform: scale(1.02); }

.b1 { grid-column: span 2; grid-row: span 2; justify-content: flex-start; }
.b2 { grid-column: span 2; }
.b4 { grid-column: span 2; }

.bento-box h3 { font-size: 1.8rem; margin-bottom: 0.5rem; }
.bento-box p { color: var(--text-secondary); font-size: 0.9rem; }

/* Architecture */
.architecture-section { padding: 10rem 0; text-align: center; }
.arch-box { border: 1px dashed var(--glass-border); padding: 5rem; border-radius: 60px; margin-top: 5rem; }
.arch-layers { display: flex; flex-direction: column; gap: 1rem; max-width: 700px; margin: 0 auto; }
.layer { background: var(--glass-bg); border: 1px solid var(--glass-border); padding: 1.5rem; border-radius: 16px; font-family: 'Roboto Mono', monospace; font-size: 0.8rem; text-align: left; position: relative; overflow: hidden; }
.layer::before { content: ''; position: absolute; left: 0; top: 0; width: 4px; height: 100%; background: var(--accent-blue); }

/* Animations */
.blink { animation: blink 2s infinite; }
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0.3; } }

@media (max-width: 1024px) {
  .hero h1 { font-size: 4rem; }
  .engine-grid, .split-info, .bento-layout { grid-template-columns: 1fr; grid-auto-rows: auto; }
  .hero { align-items: center; text-align: center; }
}
