@import url('https://fonts.googleapis.com/css2?family=Sora:wght@300;400;500;600;700&family=Inter:wght@300;400;500;600&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg: #05060c;
  --bg-alt: #0a0c18;
  --ink: #edeff7;
  --muted: #a3a8c2;
  --muted-dim: #7d8299;
  --accent: #8f9dff;
  --accent-2: #b9a4ff;
  --line: rgba(255, 255, 255, 0.09);
  --card-bg: rgba(255, 255, 255, 0.035);
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: 'Inter', sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  position: relative;
}

h1, h2, h3, .wordmark {
  font-family: 'Sora', sans-serif;
}

/* ===== Background layers ===== */
#bg-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  background: radial-gradient(ellipse at 50% -10%, #131832 0%, #05060c 55%, #030409 100%);
}

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

/* ===== Nav ===== */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 6vw;
  background: rgba(5, 6, 12, 0.55);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.wordmark {
  font-size: 1.3rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--ink);
  text-decoration: none;
}

.wordmark span {
  color: var(--accent);
}

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #05060c;
  font-weight: 600;
  font-size: 0.88rem;
  text-decoration: none;
  letter-spacing: 0.01em;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 0 0 rgba(143, 157, 255, 0);
}

.nav-link:hover,
.nav-link:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(143, 157, 255, 0.35);
  outline: none;
}

.nav-link:focus-visible {
  outline: 2px solid var(--accent-2);
  outline-offset: 3px;
}

/* ===== Content wrapper ===== */
main {
  position: relative;
  z-index: 10;
}

/* ===== Hero ===== */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 13vh 6vw 8vh;
}

.eyebrow {
  font-size: 0.78rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 22px;
  font-weight: 500;
}

.hero h1 {
  font-size: clamp(2rem, 6vw, 5rem);
  line-height: 1.12;
  font-weight: 600;
  letter-spacing: -0.01em;
  max-width: 16ch;
}

.hero h1 em {
  font-style: normal;
  background: linear-gradient(120deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero p {
  margin-top: 28px;
  max-width: 680px;
  font-size: clamp(1rem, 1.6vw, 1.15rem);
  line-height: 1.7;
  color: var(--muted);
}

.hero-note {
  margin-top: 40px;
  font-size: 0.85rem;
  color: var(--muted-dim);
  letter-spacing: 0.04em;
  display: flex;
  align-items: center;
  gap: 10px;
}

.pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #7cf5a0;
  box-shadow: 0 0 8px #7cf5a0;
  animation: pulse 2.4s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

/* ===== Cards ===== */
.cards-section {
  padding: 4vh 6vw 10vh;
  max-width: 1200px;
  margin: 0 auto;
}

.section-heading {
  text-align: center;
  margin-bottom: 48px;
}

.section-heading h2 {
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  font-weight: 600;
  margin-bottom: 12px;
}

.section-heading p {
  color: var(--muted);
  max-width: 540px;
  margin: 0 auto;
  line-height: 1.6;
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.card {
  background: var(--card-bg);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 38px 34px;
  transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}

.card:hover {
  transform: translateY(-6px);
  border-color: rgba(143, 157, 255, 0.35);
  box-shadow: 0 20px 40px rgba(5, 6, 12, 0.55);
}

.card-index {
  font-size: 0.78rem;
  color: var(--accent);
  letter-spacing: 0.12em;
  font-weight: 600;
  margin-bottom: 18px;
  display: block;
}

.card h3 {
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 12px;
  color: #ffffff;
}

.card p {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.65;
}

/* ===== CTA ===== */
.cta {
  text-align: center;
  padding: 8vh 6vw 14vh;
  max-width: 640px;
  margin: 0 auto;
  position: relative;
  z-index: 10;
}

.signal-status {
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  color: #7cf5a0;
  font-weight: 600;
  margin-bottom: 22px;
}

.signal-cta {
  display: inline-block;
  padding: 18px 44px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #05060c;
  font-family: 'Sora', sans-serif;
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: 0.01em;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.signal-cta:hover,
.signal-cta:focus-visible {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(143, 157, 255, 0.4);
  outline: none;
}

.signal-cta:focus-visible {
  outline: 2px solid var(--accent-2);
  outline-offset: 4px;
}

.signal-sub {
  margin-top: 20px;
  font-size: 0.85rem;
  color: var(--muted-dim);
}

footer {
  position: relative;
  z-index: 10;
  text-align: center;
  padding: 28px 6vw 40px;
  color: var(--muted-dim);
  font-size: 0.8rem;
  border-top: 1px solid var(--line);
}

/* ===== Responsive ===== */
@media (max-width: 480px) {
  nav {
    padding: 16px 5vw;
  }

  .wordmark {
    font-size: 1.05rem;
  }

  .nav-link {
    padding: 8px 14px;
    font-size: 0.78rem;
  }

  .hero {
    padding: 12vh 6vw 6vh;
  }

  .card {
    padding: 30px 24px;
  }

  .signal-cta {
    padding: 16px 32px;
    font-size: 0.95rem;
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .pulse-dot {
    animation: none;
  }
}
