* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html { scroll-behavior: smooth; }

body {
  background: #030712;
  color: #e5e7eb;
  font-family: Inter, system-ui, sans-serif;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

#networkCanvas {
  position: fixed;
  inset: 0;
  z-index: -5;
}

.noise {
  position: fixed;
  inset: 0;
  background-image: radial-gradient(rgba(255,255,255,0.08) 1px, transparent 1px);
  background-size: 4px 4px;
  opacity: .08;
  pointer-events: none;
  z-index: -3;
}

.orb {
  position: fixed;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  filter: blur(120px);
  opacity: .45;
  z-index: -4;
}

.orb-a {
  top: 10%;
  left: -8%;
  background: #00f5ff;
}

.orb-b {
  right: -10%;
  bottom: 5%;
  background: #9d4edd;
}

.nav {
  width: min(1180px, 92%);
  margin: auto;
  padding: 28px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brand {
  font-weight: 900;
  letter-spacing: .12em;
}

.brand span {
  color: #38bdf8;
}

.nav-links {
  display: flex;
  gap: 24px;
  color: #94a3b8;
  font-size: 14px;
}

.nav-links a:hover {
  color: #38bdf8;
}

main {
  width: min(1180px, 92%);
  margin: auto;
}

.hero {
  min-height: 88vh;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  align-items: center;
  gap: 60px;
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 9px 14px;
  border: 1px solid rgba(56,189,248,.35);
  border-radius: 999px;
  color: #93c5fd;
  background: rgba(15,23,42,.55);
  margin-bottom: 24px;
}

.pulse {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 18px #22c55e;
  animation: pulse 1.3s infinite;
}

@keyframes pulse {
  50% { transform: scale(1.6); opacity: .45; }
}

h1 {
  font-size: clamp(46px, 7vw, 92px);
  line-height: .92;
  letter-spacing: -.075em;
  color: white;
}

h1 span {
  color: #38bdf8;
  text-shadow: 0 0 30px rgba(56,189,248,.6);
}

.hero p {
  margin-top: 26px;
  max-width: 660px;
  color: #cbd5e1;
  font-size: 18px;
  line-height: 1.8;
}

.actions {
  display: flex;
  gap: 14px;
  margin-top: 34px;
}

.actions a {
  padding: 14px 20px;
  border-radius: 999px;
  border: 1px solid rgba(148,163,184,.28);
  background: rgba(15,23,42,.6);
  transition: .25s;
}

.actions a:first-child {
  background: linear-gradient(135deg, #38bdf8, #a855f7);
  color: #020617;
  font-weight: 800;
}

.actions a:hover {
  transform: translateY(-4px);
}

.hologram {
  position: relative;
  min-height: 560px;
  border: 1px solid rgba(56,189,248,.24);
  border-radius: 34px;
  background:
    linear-gradient(135deg, rgba(56,189,248,.08), rgba(168,85,247,.08)),
    rgba(15,23,42,.36);
  overflow: hidden;
  box-shadow: 0 0 80px rgba(56,189,248,.12);
  backdrop-filter: blur(16px);
}

.scanline {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent, rgba(56,189,248,.12), transparent);
  height: 140px;
  animation: scan 4s infinite linear;
}

@keyframes scan {
  from { transform: translateY(-160px); }
  to { transform: translateY(620px); }
}

.code-panel,
.chart-panel {
  position: absolute;
  background: rgba(2,6,23,.72);
  border: 1px solid rgba(148,163,184,.22);
  border-radius: 22px;
  backdrop-filter: blur(12px);
  box-shadow: 0 20px 70px rgba(0,0,0,.35);
}

.code-panel {
  top: 32px;
  left: 28px;
  right: 28px;
  padding: 18px;
  min-height: 210px;
}

.panel-title {
  color: #38bdf8;
  font-size: 12px;
  letter-spacing: .16em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

#codeStream {
  color: #22c55e;
  font-size: 13px;
  line-height: 1.7;
  white-space: pre-wrap;
}

.chart-panel {
  bottom: 28px;
  left: 28px;
  right: 28px;
  padding: 18px;
}

.bars {
  display: flex;
  align-items: end;
  gap: 8px;
  height: 120px;
}

.bar {
  flex: 1;
  min-width: 8px;
  background: linear-gradient(to top, #38bdf8, #a855f7);
  border-radius: 999px 999px 0 0;
  box-shadow: 0 0 18px rgba(56,189,248,.45);
  transition: height .4s ease;
}

.ai-core {
  position: absolute;
  top: 245px;
  left: 50%;
  transform: translateX(-50%);
  width: 190px;
  height: 190px;
  display: grid;
  place-items: center;
}

.ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(56,189,248,.55);
  animation: rotate 8s linear infinite;
}

.r1 { inset: 0; }
.r2 { inset: 24px; animation-duration: 5s; border-color: rgba(168,85,247,.7); }
.r3 { inset: 48px; animation-duration: 3s; }

.core-text {
  font-size: 20px;
  font-weight: 900;
  text-align: center;
  color: white;
  text-shadow: 0 0 25px #38bdf8;
}

@keyframes rotate {
  to { transform: rotate(360deg); }
}

.lab-section,
.projects,
.stack {
  padding: 100px 0;
}

.lab-section h2,
.section-head h2 {
  font-size: clamp(34px, 5vw, 60px);
  letter-spacing: -.065em;
  color: white;
}

.lab-section p {
  max-width: 780px;
  margin-top: 20px;
  color: #cbd5e1;
  line-height: 1.8;
  font-size: 18px;
}

.metrics {
  margin-top: 42px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.metrics div {
  padding: 24px;
  border-radius: 24px;
  border: 1px solid rgba(148,163,184,.2);
  background: rgba(15,23,42,.55);
}

.metrics strong {
  display: block;
  color: #38bdf8;
  font-size: 34px;
}

.metrics span {
  color: #cbd5e1;
}

.section-head {
  margin-bottom: 34px;
}

.section-head span {
  color: #38bdf8;
  text-transform: uppercase;
  letter-spacing: .18em;
  font-size: 12px;
  font-weight: 900;
}

.project-orbit {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}

.module-card {
  position: relative;
  min-height: 290px;
  padding: 28px;
  border-radius: 30px;
  border: 1px solid rgba(148,163,184,.22);
  background:
    radial-gradient(circle at top right, rgba(56,189,248,.13), transparent 35%),
    rgba(15,23,42,.62);
  overflow: hidden;
  transition: .35s ease;
}

.module-card::after {
  content: "";
  position: absolute;
  inset: auto -20% -40% -20%;
  height: 120px;
  background: linear-gradient(90deg, transparent, rgba(56,189,248,.35), transparent);
  transform: rotate(-6deg);
  opacity: .35;
}

.module-card:hover {
  transform: translateY(-10px) scale(1.015);
  border-color: rgba(56,189,248,.75);
  box-shadow: 0 30px 100px rgba(56,189,248,.16);
}

.module-card.wide {
  grid-column: span 2;
}

.module-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.module-top span {
  color: #38bdf8;
  font-size: 42px;
  font-weight: 900;
}

.module-top small {
  color: #94a3b8;
  letter-spacing: .14em;
}

.module-card h3 {
  margin-top: 36px;
  font-size: 38px;
  color: white;
  letter-spacing: -.05em;
}

.module-card p {
  margin-top: 14px;
  color: #cbd5e1;
  line-height: 1.75;
  max-width: 640px;
}

.module-footer {
  position: absolute;
  bottom: 26px;
  left: 28px;
  color: #38bdf8;
  font-weight: 800;
}

.stack-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.stack-grid span {
  padding: 13px 17px;
  border-radius: 999px;
  background: rgba(15,23,42,.75);
  border: 1px solid rgba(148,163,184,.22);
  color: #e5e7eb;
}

footer {
  width: min(1180px, 92%);
  margin: auto;
  padding: 50px 0;
  border-top: 1px solid rgba(148,163,184,.16);
  color: #64748b;
}

footer span {
  color: white;
  font-weight: 900;
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: .75s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@media(max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    padding: 50px 0;
  }

  .hologram {
    min-height: 520px;
  }

  .metrics,
  .project-orbit {
    grid-template-columns: 1fr;
  }

  .module-card.wide {
    grid-column: span 1;
  }
}

@media(max-width: 620px) {
  .nav {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }

  .nav-links {
    flex-wrap: wrap;
  }

  .actions {
    flex-direction: column;
  }

  .hero-right {
    display: none;
  }
}