/* ===== Reset & Base ===== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg: #07070b;
  --bg-elevated: #0e0e14;
  --bg-card: #12121a;
  --border: rgba(255, 255, 255, 0.07);
  --text: #e8e8ed;
  --text-muted: #9b9ba8;
  --text-dim: #6b6b78;
  --accent: #7c6cff;
  --accent-soft: rgba(124, 108, 255, 0.15);
  --cyan: #5eead4;
  --cyan-soft: rgba(94, 234, 212, 0.12);
  --gradient: linear-gradient(135deg, #7c6cff 0%, #5eead4 100%);
  --radius: 16px;
  --font: "Inter", system-ui, -apple-system, sans-serif;
  --font-display: "Space Grotesk", var(--font);
}

html {
  scroll-behavior: smooth;
}

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

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

img {
  max-width: 100%;
  display: block;
}

.container {
  width: min(1120px, 92%);
  margin-inline: auto;
}

/* ===== Typography ===== */
h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(2.6rem, 6vw, 4.4rem);
}

h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
}

h3 {
  font-size: 1.25rem;
  margin-bottom: 0.6rem;
}

.eyebrow {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 1rem;
}

.gradient-text {
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font);
  font-weight: 500;
  font-size: 0.95rem;
  padding: 0.85rem 1.5rem;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-primary {
  background: var(--gradient);
  color: #0a0a0f;
  border: none;
}

.btn-primary:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  border-color: var(--border);
  color: var(--text);
}

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

.btn-sm {
  padding: 0.55rem 1.1rem;
  font-size: 0.875rem;
}

/* ===== Navigation ===== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1.1rem 0;
  background: rgba(7, 7, 11, 0.75);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s;
}

.nav.scrolled {
  border-bottom-color: var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.25rem;
  letter-spacing: -0.03em;
}

.logo-mark {
  color: var(--cyan);
  font-size: 1.35rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-links a:not(.btn) {
  font-size: 0.9rem;
  color: var(--text-muted);
  transition: color 0.2s;
}

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

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.menu-toggle span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--text);
  transition: transform 0.2s, opacity 0.2s;
}

.menu-toggle.active span:first-child {
  transform: translateY(3.75px) rotate(45deg);
}

.menu-toggle.active span:last-child {
  transform: translateY(-3.75px) rotate(-45deg);
}

/* ===== Hero ===== */
.hero {
  padding: 9rem 0 6rem;
  position: relative;
}

.hero .container {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3rem;
  align-items: center;
}

.hero-content .eyebrow {
  margin-bottom: 1.25rem;
}

.hero-sub {
  margin-top: 1.5rem;
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 28rem;
  line-height: 1.7;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 2.25rem;
}

/* Hero visual – orbiting nodes */
.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 340px;
}

.orbit {
  position: relative;
  width: 280px;
  height: 280px;
}

.core {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--gradient);
  box-shadow: 0 0 40px rgba(124, 108, 255, 0.45);
  animation: pulse 3.5s ease-in-out infinite;
}

.node {
  position: absolute;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 12px rgba(94, 234, 212, 0.6);
}

.node-1 {
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  animation: orbit 8s linear infinite;
}

.node-2 {
  top: 50%;
  right: 0;
  transform: translateY(-50%);
  animation: orbit 8s linear infinite 2s;
}

.node-3 {
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  animation: orbit 8s linear infinite 4s;
}

.node-4 {
  top: 50%;
  left: 0;
  transform: translateY(-50%);
  animation: orbit 8s linear infinite 6s;
}

@keyframes pulse {
  0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 1; }
  50% { transform: translate(-50%, -50%) scale(1.08); opacity: 0.9; }
}

@keyframes orbit {
  0% { opacity: 0.7; }
  50% { opacity: 1; }
  100% { opacity: 0.7; }
}

/* ===== Sections ===== */
.section {
  padding: 6rem 0;
}

.section-header {
  max-width: 640px;
  margin-bottom: 3.5rem;
}

.section-header h2 {
  margin-top: 0.25rem;
}

/* Vision */
.vision {
  background: linear-gradient(180deg, transparent, rgba(124, 108, 255, 0.03));
}

.vision-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.vision-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  transition: border-color 0.25s, transform 0.25s;
}

.vision-card:hover {
  border-color: rgba(124, 108, 255, 0.35);
  transform: translateY(-3px);
}

.card-icon {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 1.1rem;
  letter-spacing: 0.05em;
}

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

.vision-card em {
  color: var(--text);
  font-style: normal;
  font-weight: 500;
}

/* How it works */
.steps {
  display: flex;
  flex-direction: column;
  gap: 0;
  max-width: 720px;
}

.step {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 1.5rem;
  padding: 1.75rem 0;
  border-bottom: 1px solid var(--border);
}

.step:last-child {
  border-bottom: none;
}

.step-num {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.step-body p {
  color: var(--text-muted);
  font-size: 0.98rem;
  margin-top: 0.35rem;
}

/* Bridging */
.bridging {
  background: var(--bg-elevated);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.bridging-inner {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 4rem;
  align-items: center;
}

.bridging-text p {
  color: var(--text-muted);
  margin-top: 1.1rem;
  font-size: 1.05rem;
}

.bridging-text p + p {
  margin-top: 0.9rem;
}

.bridging-visual {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}

.bridge-card {
  width: 100%;
  max-width: 220px;
  padding: 1.4rem 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.9rem;
  font-weight: 500;
}

.bridge-card.accent {
  border-color: rgba(94, 234, 212, 0.3);
  background: var(--cyan-soft);
}

.bridge-card .symbol {
  font-size: 1.2rem;
  color: var(--cyan);
}

.bridge-line {
  width: 2px;
  height: 36px;
  background: linear-gradient(to bottom, var(--accent), var(--cyan));
  opacity: 0.6;
}

/* Why */
.why-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.75rem;
}

.why-item {
  padding: 1.5rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg-card);
}

.why-item h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.why-item p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* Join */
.join {
  padding-bottom: 7rem;
}

.join-card {
  text-align: center;
  max-width: 560px;
  margin-inline: auto;
  padding: 3.5rem 2.5rem;
  background: linear-gradient(160deg, rgba(124, 108, 255, 0.08), rgba(94, 234, 212, 0.05));
  border: 1px solid rgba(124, 108, 255, 0.2);
  border-radius: 24px;
}

.join-card h2 {
  margin-bottom: 1rem;
}

.join-sub {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin-bottom: 2rem;
}

.join-form {
  display: flex;
  gap: 0.75rem;
  max-width: 420px;
  margin-inline: auto;
}

.join-form input {
  flex: 1;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.85rem 1.25rem;
  color: var(--text);
  font-family: var(--font);
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.2s;
}

.join-form input:focus {
  border-color: rgba(124, 108, 255, 0.5);
}

.join-form input::placeholder {
  color: var(--text-dim);
}

.form-note {
  margin-top: 1rem;
  font-size: 0.8rem;
  color: var(--text-dim);
}

/* Footer */
.footer {
  padding: 2.5rem 0;
  border-top: 1px solid var(--border);
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  text-align: center;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.1rem;
}

.footer-brand .logo-mark {
  color: var(--cyan);
}

.footer-tag {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.footer-copy {
  font-size: 0.8rem;
  color: var(--text-dim);
  margin-top: 0.5rem;
}

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(7, 7, 11, 0.97);
    backdrop-filter: blur(16px);
    flex-direction: column;
    padding: 1.5rem;
    gap: 1.25rem;
    border-bottom: 1px solid var(--border);
  }

  .nav-links.open {
    display: flex;
  }

  .menu-toggle {
    display: flex;
  }

  .hero .container {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-sub {
    margin-inline: auto;
  }

  .hero-cta {
    justify-content: center;
  }

  .hero-visual {
    order: -1;
    min-height: 220px;
  }

  .orbit {
    width: 200px;
    height: 200px;
  }

  .vision-grid {
    grid-template-columns: 1fr;
  }

  .bridging-inner {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .bridging-visual {
    order: -1;
  }

  .why-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .hero {
    padding-top: 7.5rem;
  }

  .join-form {
    flex-direction: column;
  }

  .join-card {
    padding: 2.5rem 1.5rem;
  }

  .step {
    grid-template-columns: 40px 1fr;
    gap: 1rem;
  }
}
