/* ============================
   NESTVM — Theme CSS
   Dark tech aesthetic
   ============================ */

:root {
  --bg: #050810;
  --bg-alt: #080d18;
  --surface: #0d1525;
  --surface-2: #111d30;
  --border: rgba(0, 229, 200, 0.12);
  --cyan: #00E5C8;
  --cyan-dim: rgba(0, 229, 200, 0.15);
  --cyan-glow: rgba(0, 229, 200, 0.06);
  --fg: #e8edf5;
  --fg-muted: #6b7a94;
  --fg-subtle: #3d4f6a;
  --text-secondary: #8fa3bf;
  --mono: 'IBM Plex Mono', monospace;
  --sans: 'IBM Plex Sans', sans-serif;
  --display: 'Syne', sans-serif;
}

/* === RESET & BASE === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }

/* === SCROLLBAR === */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }

/* === NAV === */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 0 2rem;
  background: rgba(5, 8, 16, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: -0.02em;
}
.nav-links {
  display: flex;
  gap: 2rem;
}
.nav-links a {
  font-size: 0.875rem;
  color: var(--fg-muted);
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--fg); }

/* === SECTION LABEL === */
.section-label {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 1rem;
  opacity: 0.8;
}

/* === HERO === */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: 60px;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0, 229, 200, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 229, 200, 0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, black 40%, transparent 100%);
}
.hero-glow {
  position: absolute;
  top: -20%;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 600px;
  background: radial-gradient(ellipse, rgba(0, 229, 200, 0.08) 0%, transparent 70%);
  pointer-events: none;
}
.hero-rings {
  position: absolute;
  top: 50%;
  right: 8%;
  transform: translateY(-50%);
  width: 400px;
  height: 400px;
}
.ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(0, 229, 200, 0.15);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation: ring-pulse 4s ease-in-out infinite;
}
.ring-1 { width: 400px; height: 400px; animation-delay: 0s; }
.ring-2 { width: 280px; height: 280px; border-color: rgba(0, 229, 200, 0.25); animation-delay: 0.5s; }
.ring-3 { width: 170px; height: 170px; border-color: rgba(0, 229, 200, 0.4); animation-delay: 1s; }
.ring-core { width: 80px; height: 80px; background: radial-gradient(circle, rgba(0, 229, 200, 0.2) 0%, transparent 70%); border-color: rgba(0, 229, 200, 0.6); animation-delay: 1.5s; }
@keyframes ring-pulse {
  0%, 100% { opacity: 0.6; }
  50% { opacity: 1; }
}
.hero-content {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: 5rem 2rem 4rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  width: 100%;
}
.hero-text {}
.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 1.5rem;
  opacity: 0.9;
}
.eyebrow-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--cyan);
  animation: dot-blink 2s ease-in-out infinite;
}
@keyframes dot-blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}
h1 {
  font-family: var(--display);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin-bottom: 1.5rem;
}
.hero-lede {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 480px;
  margin-bottom: 2.5rem;
}
.hero-stats {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
.stat {}
.stat-value {
  display: block;
  font-family: var(--display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--fg);
}
.stat-label {
  display: block;
  font-size: 0.7rem;
  color: var(--fg-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-family: var(--mono);
}
.stat-divider {
  width: 1px;
  height: 32px;
  background: var(--border);
}

/* VM Display */
.hero-visual { display: flex; justify-content: center; }
.vm-display {
  width: 100%;
  max-width: 400px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 0 60px rgba(0, 229, 200, 0.06), 0 20px 60px rgba(0, 0, 0, 0.4);
}
.vm-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1rem;
  background: var(--surface-2);
  border-bottom: 1px solid var(--border);
}
.vm-dots { display: flex; gap: 6px; }
.vm-dots span { width: 10px; height: 10px; border-radius: 50%; background: var(--fg-subtle); }
.vm-dots span:first-child { background: #ff5f57; }
.vm-dots span:nth-child(2) { background: #febc2e; }
.vm-dots span:nth-child(3) { background: #28c840; }
.vm-label { font-family: var(--mono); font-size: 0.7rem; color: var(--fg-muted); }
.vm-terminal {
  padding: 1.25rem 1.25rem 1rem;
  font-family: var(--mono);
  font-size: 0.8rem;
  line-height: 1.9;
  min-height: 160px;
}
.terminal-line { }
.t-prompt { color: var(--cyan); }
.t-cmd { color: var(--fg); }
.t-out { color: var(--fg-muted); }
.t-cursor { color: var(--cyan); animation: cursor-blink 1s step-end infinite; }
@keyframes cursor-blink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }
.vm-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1.25rem;
  border-top: 1px solid var(--border);
}
.status-pill {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--mono);
  font-size: 0.7rem;
  padding: 0.2rem 0.6rem;
  border-radius: 100px;
}
.status-active { background: rgba(0, 229, 200, 0.12); color: var(--cyan); }
.status-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--cyan); animation: dot-blink 2s ease-in-out infinite; }
.vm-meta { font-family: var(--mono); font-size: 0.65rem; color: var(--fg-subtle); }

/* === PROBLEM === */
.problem { padding: 6rem 2rem; background: var(--bg-alt); }
.problem-inner { max-width: 1200px; margin: 0 auto; }
.problem h2 {
  font-family: var(--display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 3.5rem;
}
.problem-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}
.problem-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 2rem;
}
.problem-icon {
  color: var(--cyan);
  margin-bottom: 1rem;
}
.problem-card h3 {
  font-family: var(--display);
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}
.problem-card p { color: var(--text-secondary); font-size: 0.9rem; line-height: 1.65; }

/* === SOLUTION === */
.solution { padding: 6rem 2rem; }
.solution-inner { max-width: 1200px; margin: 0 auto; text-align: center; }
.solution h2 {
  font-family: var(--display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
}
.solution-lede { color: var(--text-secondary); max-width: 600px; margin: 0 auto 4rem; line-height: 1.7; }
.arch-diagram {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.arch-layer { display: flex; flex-direction: column; align-items: center; gap: 0.5rem; }
.arch-label { font-family: var(--mono); font-size: 0.65rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--fg-muted); }
.arch-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1rem 1.5rem;
  min-width: 160px;
  text-align: center;
}
.arch-box-active { border-color: rgba(0, 229, 200, 0.35); background: rgba(0, 229, 200, 0.05); }
.arch-box-title { display: block; font-family: var(--display); font-size: 0.9rem; font-weight: 600; margin-bottom: 0.2rem; }
.arch-box-sub { display: block; font-size: 0.75rem; color: var(--fg-muted); }
.arch-box-nest {
  position: relative;
  padding: 1.5rem;
  min-width: 200px;
}
.nest-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(0, 229, 200, 0.2);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}
.nest-r1 { width: 160px; height: 160px; }
.nest-r2 { width: 110px; height: 110px; border-color: rgba(0, 229, 200, 0.35); }
.nest-core { position: relative; z-index: 1; }
.arch-arrow { display: flex; align-items: center; }

/* === FEATURES === */
.features { padding: 6rem 2rem; background: var(--bg-alt); }
.features-inner { max-width: 1200px; margin: 0 auto; }
.features h2 {
  font-family: var(--display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 3.5rem;
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 2rem;
  transition: border-color 0.2s;
}
.feature-card:hover { border-color: rgba(0, 229, 200, 0.3); }
.feature-num {
  font-family: var(--mono);
  font-size: 0.65rem;
  color: var(--cyan);
  opacity: 0.6;
  margin-bottom: 1rem;
}
.feature-card h3 {
  font-family: var(--display);
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}
.feature-card p { color: var(--text-secondary); font-size: 0.875rem; line-height: 1.65; }

/* === HOW === */
.how { padding: 6rem 2rem; }
.how-inner { max-width: 1200px; margin: 0 auto; }
.how h2 {
  font-family: var(--display);
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 4rem;
}
.steps { display: flex; align-items: flex-start; gap: 0; }
.step {
  flex: 1;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 2rem;
}
.step-num { font-family: var(--mono); font-size: 0.65rem; color: var(--cyan); margin-bottom: 1rem; }
.step-content h3 { font-family: var(--display); font-size: 1.1rem; font-weight: 600; margin-bottom: 0.75rem; }
.step-content p { color: var(--text-secondary); font-size: 0.875rem; line-height: 1.65; }
.step-connector { width: 40px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; }
.step-connector::after {
  content: '';
  display: block;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, var(--border) 0%, rgba(0, 229, 200, 0.4) 100%);
}

/* === VISION === */
.vision { padding: 6rem 2rem; background: var(--bg-alt); }
.vision-inner { max-width: 1200px; margin: 0 auto; text-align: center; }
.vision-quote {
  max-width: 700px;
  margin: 0 auto 3rem;
}
.vision-quote p {
  font-family: var(--display);
  font-size: clamp(1.2rem, 2.5vw, 1.7rem);
  font-weight: 600;
  line-height: 1.5;
  color: var(--fg);
  letter-spacing: -0.01em;
}
.vision-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-bottom: 3rem;
}
.vision-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 2rem;
}
.vision-metric {
  font-family: var(--display);
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--cyan);
  margin-bottom: 0.5rem;
}
.vision-metric-label { font-size: 0.85rem; color: var(--text-secondary); line-height: 1.5; }
.vision-context { color: var(--text-secondary); max-width: 600px; margin: 0 auto; line-height: 1.7; }

/* === CLOSING === */
.closing { padding: 6rem 2rem; position: relative; overflow: hidden; }
.closing-inner { max-width: 1200px; margin: 0 auto; text-align: center; position: relative; z-index: 1; }
.closing h2 {
  font-family: var(--display);
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 1.5rem;
}
.closing p { color: var(--text-secondary); max-width: 550px; margin: 0 auto; line-height: 1.7; font-size: 1rem; }
.closing-rings { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); pointer-events: none; }
.c-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(0, 229, 200, 0.06);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}
.c-ring-1 { width: 600px; height: 600px; }
.c-ring-2 { width: 400px; height: 400px; }
.c-ring-3 { width: 250px; height: 250px; border-color: rgba(0, 229, 200, 0.1); }

/* === FOOTER === */
.footer { border-top: 1px solid var(--border); padding: 3rem 2rem 2rem; }
.footer-inner { max-width: 1200px; margin: 0 auto; display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 3rem; }
.footer-brand { max-width: 200px; }
.footer-logo { display: flex; align-items: center; gap: 0.5rem; font-family: var(--display); font-weight: 700; margin-bottom: 0.75rem; font-size: 1rem; }
.footer-brand p { font-size: 0.8rem; color: var(--fg-muted); }
.footer-links { display: flex; gap: 3rem; }
.footer-col { display: flex; flex-direction: column; gap: 0.5rem; }
.footer-col-title { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--fg-muted); font-family: var(--mono); margin-bottom: 0.25rem; }
.footer-col a, .footer-col span { font-size: 0.85rem; color: var(--text-secondary); }
.footer-bottom { max-width: 1200px; margin: 0 auto; padding-top: 1.5rem; border-top: 1px solid var(--border); font-size: 0.75rem; color: var(--fg-subtle); font-family: var(--mono); }

/* === RESPONSIVE === */
@media (max-width: 900px) {
  .hero-content { grid-template-columns: 1fr; gap: 2.5rem; padding: 4rem 1.5rem 3rem; }
  .hero-rings { display: none; }
  .hero-visual { display: none; }
  .problem-grid { grid-template-columns: 1fr; }
  .features-grid { grid-template-columns: 1fr; }
  .vision-grid { grid-template-columns: 1fr; }
  .steps { flex-direction: column; }
  .step-connector { width: 1px; height: 24px; margin: 0 auto; }
  .step-connector::after { width: 1px; height: 100%; background: linear-gradient(180deg, var(--border) 0%, rgba(0, 229, 200, 0.4) 100%); }
  .arch-diagram { flex-direction: column; }
  .arch-arrow { transform: rotate(90deg); }
  .footer-inner { flex-direction: column; gap: 2rem; }
}
@media (max-width: 600px) {
  h1 { font-size: 2.2rem; }
  .nav-links { display: none; }
  .hero-stats { gap: 1rem; }
}