/* Nova Pulse — vibecoded static landing */

:root {
  --bg: #07070c;
  --bg-elevated: rgba(18, 18, 28, 0.72);
  --text: #f4f4f8;
  --muted: #9b9bb0;
  --border: rgba(255, 255, 255, 0.08);
  --violet: #a78bfa;
  --cyan: #22d3ee;
  --pink: #f472b6;
  --radius: 16px;
  --radius-sm: 10px;
  --font: "DM Sans", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
  --max: 1100px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

code {
  font-family: var(--mono);
  font-size: 0.9em;
  color: var(--cyan);
}

/* Ambient background */
.bg-orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.45;
  pointer-events: none;
  z-index: 0;
}

.bg-orb--1 {
  width: 420px;
  height: 420px;
  top: -120px;
  right: -80px;
  background: radial-gradient(circle, var(--violet), transparent 70%);
  animation: drift 18s ease-in-out infinite alternate;
}

.bg-orb--2 {
  width: 360px;
  height: 360px;
  bottom: 10%;
  left: -100px;
  background: radial-gradient(circle, var(--cyan), transparent 70%);
  opacity: 0.28;
  animation: drift 22s ease-in-out infinite alternate-reverse;
}

.bg-orb--3 {
  width: 280px;
  height: 280px;
  top: 45%;
  right: 15%;
  background: radial-gradient(circle, var(--pink), transparent 70%);
  opacity: 0.18;
  animation: drift 16s ease-in-out infinite alternate;
}

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

@keyframes drift {
  from {
    transform: translate(0, 0) scale(1);
  }
  to {
    transform: translate(40px, 30px) scale(1.08);
  }
}

/* Layout chrome */
.site-header,
main,
.site-footer {
  position: relative;
  z-index: 2;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--max);
  margin: 0 auto;
  padding: 1.25rem 1.5rem;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.logo-mark {
  width: 28px;
  height: 28px;
  border-radius: 9px;
  background: linear-gradient(135deg, var(--violet), var(--cyan));
  box-shadow: 0 0 24px rgba(167, 139, 250, 0.45);
}

.logo-mark--sm {
  width: 18px;
  height: 18px;
  border-radius: 6px;
  display: inline-block;
  vertical-align: middle;
  margin-right: 0.4rem;
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  font-size: 0.95rem;
  color: var(--muted);
}

.nav a:hover {
  color: var(--text);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: 0;
  padding: 0.5rem;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

/* Hero */
.hero {
  max-width: var(--max);
  margin: 0 auto;
  padding: 4.5rem 1.5rem 3rem;
  text-align: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 1.25rem;
  padding: 0.35rem 0.85rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
  font-size: 0.85rem;
  letter-spacing: 0.02em;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 0 0 rgba(34, 211, 238, 0.5);
  animation: pulse 2s ease-out infinite;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(34, 211, 238, 0.5);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(34, 211, 238, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(34, 211, 238, 0);
  }
}

.hero h1 {
  margin: 0 0 1.25rem;
  font-size: clamp(2.4rem, 6vw, 3.75rem);
  line-height: 1.08;
  letter-spacing: -0.035em;
  font-weight: 700;
}

.gradient-text {
  background: linear-gradient(120deg, var(--violet) 0%, var(--cyan) 50%, var(--pink) 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: shine 8s linear infinite;
}

@keyframes shine {
  to {
    background-position: 200% center;
  }
}

.hero-lead {
  max-width: 36rem;
  margin: 0 auto 2rem;
  color: var(--muted);
  font-size: 1.1rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  margin-bottom: 3rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.85rem 1.35rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease,
    border-color 0.15s ease;
  cursor: pointer;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn--sm {
  padding: 0.45rem 0.9rem;
  font-size: 0.875rem;
}

.btn--primary {
  background: linear-gradient(135deg, var(--violet), #7c3aed 40%, var(--cyan));
  color: #0b0b12;
  box-shadow: 0 10px 40px rgba(124, 58, 237, 0.35);
}

.btn--primary:hover {
  box-shadow: 0 14px 48px rgba(34, 211, 238, 0.3);
}

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

.btn--ghost:hover {
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.06);
}

.hero-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  max-width: 32rem;
  margin: 0 auto;
  padding: 1.25rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-elevated);
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow);
}

.stat {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.stat strong {
  font-size: 1.25rem;
  letter-spacing: -0.02em;
}

.stat span {
  color: var(--muted);
  font-size: 0.8rem;
}

/* Sections */
.section {
  max-width: var(--max);
  margin: 0 auto;
  padding: 3.5rem 1.5rem;
}

.section-head {
  max-width: 36rem;
  margin-bottom: 2rem;
}

.section-head h2 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  letter-spacing: -0.03em;
}

.section-head p {
  margin: 0;
  color: var(--muted);
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.card {
  padding: 1.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.01));
  backdrop-filter: blur(12px);
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.card:hover {
  border-color: rgba(167, 139, 250, 0.35);
  transform: translateY(-2px);
}

.card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  margin-bottom: 0.85rem;
  border-radius: 10px;
  background: rgba(167, 139, 250, 0.12);
  color: var(--violet);
  font-size: 1rem;
}

.card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.1rem;
  letter-spacing: -0.02em;
}

.card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

/* Stack */
.stack-panel {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 1.25rem;
  align-items: stretch;
}

.stack-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.stack-list li {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 1rem 1.15rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.02);
}

.stack-list code {
  font-weight: 500;
}

.stack-list span {
  color: var(--muted);
  font-size: 0.9rem;
}

.terminal {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #0c0c14;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.terminal-bar {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.02);
}

.terminal-bar span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #3a3a4a;
}

.terminal-bar span:nth-child(1) {
  background: #ff5f57;
}
.terminal-bar span:nth-child(2) {
  background: #febc2e;
}
.terminal-bar span:nth-child(3) {
  background: #28c840;
}

.terminal-bar em {
  margin-left: auto;
  font-style: normal;
  font-size: 0.75rem;
  color: var(--muted);
  font-family: var(--mono);
}

.terminal pre {
  margin: 0;
  padding: 1.25rem;
  overflow-x: auto;
  font-family: var(--mono);
  font-size: 0.82rem;
  line-height: 1.7;
  color: #d4d4e0;
}

.t-comment {
  color: #6b6b80;
}

/* CTA */
.cta-panel {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 2rem;
  padding: 2rem;
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) + 4px);
  background:
    radial-gradient(ellipse at top right, rgba(167, 139, 250, 0.15), transparent 50%),
    radial-gradient(ellipse at bottom left, rgba(34, 211, 238, 0.1), transparent 45%),
    var(--bg-elevated);
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow);
}

.cta-panel h2 {
  margin: 0.5rem 0 0.75rem;
  font-size: clamp(1.6rem, 3vw, 2rem);
  letter-spacing: -0.03em;
}

.cta-panel > div > p:not(.eyebrow) {
  color: var(--muted);
  margin: 0 0 1.5rem;
}

.cta-panel .hero-actions {
  justify-content: flex-start;
  margin-bottom: 0;
}

.steps {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  counter-reset: step;
}

.steps li {
  counter-increment: step;
  position: relative;
  padding: 1rem 1rem 1rem 3.25rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: rgba(0, 0, 0, 0.2);
  color: var(--muted);
  font-size: 0.95rem;
}

.steps li::before {
  content: counter(step);
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 0.75rem;
  font-weight: 700;
  color: #0b0b12;
  background: linear-gradient(135deg, var(--violet), var(--cyan));
}

.steps strong {
  color: var(--text);
}

/* Footer */
.site-footer {
  max-width: var(--max);
  margin: 0 auto;
  padding: 2.5rem 1.5rem 3rem;
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  align-items: center;
  color: var(--muted);
  font-size: 0.9rem;
}

.site-footer a {
  color: var(--cyan);
}

.site-footer a:hover {
  text-decoration: underline;
}

.muted {
  color: var(--muted);
}

/* Responsive */
@media (max-width: 840px) {
  .card-grid,
  .stack-panel,
  .cta-panel {
    grid-template-columns: 1fr;
  }

  .nav {
    display: none;
  }

  .nav.is-open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    right: 1.5rem;
    left: 1.5rem;
    padding: 1rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: rgba(10, 10, 16, 0.96);
    backdrop-filter: blur(16px);
    z-index: 10;
  }

  .site-header {
    position: relative;
  }

  .nav-toggle {
    display: flex;
  }

  .hero-meta {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .bg-orb,
  .gradient-text,
  .pulse-dot {
    animation: none;
  }
}
