:root {
  --bg: #050509;
  --bg-alt: #0b0b14;
  --accent: #35f0ff;
  --accent-soft: #a26bff;
  --text: #f5f5f7;
  --muted: #9a9ab0;
  --card: #11111c;
  --border-subtle: rgba(255, 255, 255, 0.06);
  --radius: 14px;
  --transition: 200ms ease-out;
}

/* Reset */
*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Inter', sans-serif;
  background: radial-gradient(circle at top, #151528 0, #050509 55%);
  color: var(--text);
}

/* Null Gate */
.null-gate {
  position: fixed;
  inset: 0;
  background: #050509;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 999;
  transition: opacity 0.8s ease, visibility 0.8s ease;
}

.null-gate.hidden {
  opacity: 0;
  visibility: hidden;
}

.gate-content {
  text-align: center;
  animation: fadeIn 2s ease forwards;
}

.gate-line {
  font-size: 1.2rem;
  color: var(--muted);
  margin-bottom: 1.5rem;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Navigation */
.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.2rem 7vw;
  background: linear-gradient(to bottom, rgba(5,5,9,0.96), rgba(5,5,9,0.7), transparent);
  backdrop-filter: blur(18px);
}

.logo {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.9rem;
}

.nav nav a {
  margin-left: 1.5rem;
  font-size: 0.9rem;
  color: var(--muted);
  position: relative;
}

.nav nav a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -0.3rem;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent-soft));
  transition: width var(--transition);
}

.nav nav a:hover::after {
  width: 100%;
}

/* Hero */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 3rem;
  padding: 5rem 7vw 4rem;
  align-items: center;
}

.hero-content h1 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(3rem, 5vw, 4.5rem);
  margin-bottom: 1rem;
}

.hero-content p {
  max-width: 32rem;
  color: var(--muted);
  line-height: 1.6;
}

.hero-actions {
  margin-top: 2rem;
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn {
  padding: 0.8rem 1.6rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 0.9rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 500;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.btn.primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-soft));
  color: #050509;
  box-shadow: 0 0 30px rgba(53, 240, 255, 0.35);
}

.btn.primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 40px rgba(53, 240, 255, 0.5);
}

.btn.ghost {
  border-color: var(--border-subtle);
  color: var(--muted);
  background: rgba(10, 10, 20, 0.7);
}

.btn.ghost:hover {
  border-color: var(--accent);
  color: var(--text);
}

.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.orb {
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 20%, #ffffff, var(--accent), #050509 70%);
  box-shadow:
    0 0 60px rgba(53, 240, 255, 0.6),
    0 0 120px rgba(162, 107, 255, 0.4);
  animation: float 6s ease-in-out infinite alternate;
}

@keyframes float {
  0% { transform: translateY(0) translateX(0); }
  100% { transform: translateY(-18px) translateX(6px); }
}

/* Sections */
.section {
  padding: 4rem 7vw;
}

.section-alt {
  background: radial-gradient(circle at top left, #151528 0, #050509 55%);
}

.section h2 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.8rem;
  margin-bottom: 1rem;
}

.section-sub {
  color: var(--muted);
  margin-bottom: 2rem;
}

/* Manifesto */
.manifesto-text p {
  font-size: 1.2rem;
  margin: 0.6rem 0;
  color: var(--muted);
}

/* Archive */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.6rem;
}

.card {
  padding: 1.6rem;
  border-radius: var(--radius);
  background: var(--card);
  border: 1px solid var(--border-subtle);
  position: relative;
  overflow: hidden;
  transition: var(--transition);
}

.card:hover {
  transform: translateY(-4px);
  border-color: rgba(53, 240, 255, 0.5);
  background: #121222;
}

/* Terminal */
.terminal {
  background: #0a0a14;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  padding: 1rem;
  max-width: 600px;
}

.terminal-output {
  height: 200px;
  overflow-y: auto;
  font-family: monospace;
  font-size: 0.9rem;
  color: var(--accent);
  margin-bottom: 0.8rem;
}

.terminal-input {
  width: 100%;
  padding: 0.6rem;
  border-radius: 8px;
  border: 1px solid var(--border-subtle);
  background: #050509;
  color: var(--text);
  font-family: monospace;
}

.terminal-response {
  color: var(--muted);
}

/* Contact */
.contact-form {
  margin-top: 2rem;
  max-width: 420px;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.contact-form input,
.contact-form textarea {
  padding: 0.8rem 1rem;
  border-radius: 10px;
  border: 1px solid var(--border-subtle);
  background: rgba(5, 5, 12, 0.9);
  color: var(--text);
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 1px rgba(53, 240, 255, 0.4);
}

/* Footer */
.footer {
  padding: 1.8rem 7vw 2.2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--border-subtle);
  font-size: 0.8rem;
  color: var(--muted);
}

@media (max-width: 800px) {
  .hero {
    grid-template-columns: 1fr;
    padding-top: 3.5rem;
  }

  .hero-visual {
    order: -1;
  }

  .nav {
    padding-inline: 5vw;
  }

  .section {
    padding-inline: 5vw;
  }

  .footer {
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
  }
}
