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

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

html {
  scroll-behavior: smooth;
}

body {
  background: #0a0f16;
  color: #e7ecf3;
  font-family: 'Inter', sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
}

/* ===== Background layers ===== */
.bg-base {
  position: fixed;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% -10%, rgba(56, 189, 248, 0.14), transparent 60%),
    radial-gradient(ellipse 70% 50% at 90% 100%, rgba(139, 92, 246, 0.10), transparent 60%),
    #0a0f16;
}

.bg-grid {
  position: fixed;
  inset: 0;
  z-index: 0;
  background-image:
    linear-gradient(rgba(148, 178, 214, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 178, 214, 0.05) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: radial-gradient(ellipse 90% 80% at 50% 30%, #000 40%, transparent 90%);
  -webkit-mask-image: radial-gradient(ellipse 90% 80% at 50% 30%, #000 40%, transparent 90%);
}

#gridCanvas {
  position: fixed;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

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

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

/* ===== NAV ===== */
.content nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 5vw;
  background: rgba(10, 15, 22, 0.55);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(148, 178, 214, 0.12);
}

.wordmark {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.3rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.wordmark .accent {
  color: #4fd6ff;
  font-weight: 700;
}

.wordmark .tld {
  color: #5b6779;
}

.nav-link {
  display: inline-block;
  padding: 10px 22px;
  border: 1px solid rgba(79, 214, 255, 0.5);
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 500;
  background: rgba(79, 214, 255, 0.07);
  transition: background 0.25s ease, border-color 0.25s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link:focus-visible {
  background: rgba(79, 214, 255, 0.18);
  border-color: rgba(79, 214, 255, 0.9);
  transform: translateY(-1px);
  outline: none;
}

/* ===== HERO ===== */
.hero {
  padding: 14vh 6vw 10vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.hero h1 {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: clamp(2rem, 6vw, 5rem);
  line-height: 1.08;
  letter-spacing: -0.01em;
  max-width: 16ch;
}

.hero h1 .line-accent {
  background: linear-gradient(90deg, #4fd6ff, #8b7cf6);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero p {
  margin-top: 26px;
  max-width: 680px;
  font-size: clamp(1rem, 1.6vw, 1.15rem);
  line-height: 1.65;
  color: #a9b4c4;
}

.hero .eyebrow {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #4fd6ff;
  margin-bottom: 22px;
  font-weight: 600;
}

/* ===== CARDS ===== */
.cards {
  padding: 4vh 6vw 10vh;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  max-width: 1200px;
  margin: 0 auto;
}

.card {
  background: rgba(19, 26, 38, 0.6);
  border: 1px solid rgba(148, 178, 214, 0.14);
  border-radius: 16px;
  padding: 38px 35px;
  backdrop-filter: blur(6px);
  transition: transform 0.3s ease, border-color 0.3s ease, background 0.3s ease;
}

.card:hover {
  transform: translateY(-6px);
  border-color: rgba(79, 214, 255, 0.4);
  background: rgba(24, 33, 48, 0.75);
}

.card .icon {
  width: 38px;
  height: 38px;
  margin-bottom: 20px;
  border-radius: 9px;
  background: linear-gradient(135deg, rgba(79, 214, 255, 0.22), rgba(139, 124, 246, 0.22));
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(148, 178, 214, 0.2);
}

.card .icon span {
  width: 10px;
  height: 10px;
  border-radius: 3px;
  background: #4fd6ff;
  box-shadow: 12px 0 0 rgba(139, 124, 246, 0.9), 0 12px 0 rgba(139, 124, 246, 0.6), 12px 12px 0 rgba(79, 214, 255, 0.5);
}

.card h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 12px;
  color: #e7ecf3;
}

.card p {
  font-size: 0.95rem;
  line-height: 1.6;
  color: #d1d9e5;
}

/* ===== CTA ===== */
.cta {
  padding: 8vh 6vw 14vh;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.cta .signal-status {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.78rem;
  letter-spacing: 0.2em;
  color: #5be6a8;
  font-weight: 600;
  margin-bottom: 22px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.cta .signal-status::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #5be6a8;
  box-shadow: 0 0 8px 2px rgba(91, 230, 168, 0.7);
}

.signal-cta {
  display: inline-block;
  padding: 18px 46px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  border-radius: 999px;
  background: linear-gradient(90deg, #4fd6ff, #8b7cf6);
  color: #0a0f16;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  box-shadow: 0 8px 30px rgba(79, 214, 255, 0.18);
}

.signal-cta:hover,
.signal-cta:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 12px 36px rgba(79, 214, 255, 0.32);
  outline: none;
}

.cta .signal-sub {
  margin-top: 20px;
  font-size: 0.85rem;
  color: #6d7a8e;
}

/* ===== Responsive ===== */
@media (max-width: 480px) {
  .content nav { padding: 16px 5vw; }
  .wordmark { font-size: 1.1rem; }
  .nav-link { padding: 8px 16px; font-size: 0.8rem; }
  .hero { padding: 12vh 6vw 8vh; }
  .cards { padding: 3vh 6vw 8vh; gap: 18px; }
  .card { padding: 30px 24px; }
  .signal-cta { padding: 16px 34px; font-size: 0.92rem; width: 100%; }
  .cta { padding: 6vh 6vw 10vh; }
}

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