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

:root {
  --bg: #07111d;
  --bg-deep: #03070d;
  --surface: rgba(10, 20, 32, 0.82);
  --surface-strong: rgba(14, 27, 42, 0.94);
  --surface-soft: rgba(17, 35, 56, 0.78);
  --border: rgba(124, 187, 217, 0.18);
  --text-main: #edf5ff;
  --text-soft: #a0b6cb;
  --text-dim: #73879d;
  --accent: #3fd0db;
  --accent-deep: #2293b5;
  --accent-warm: #ff8b5f;
  --shadow: 0 30px 80px rgba(0, 0, 0, 0.34);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text-main);
  font-family: "IBM Plex Sans", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(63, 208, 219, 0.18), transparent 24%),
    radial-gradient(circle at 90% 10%, rgba(255, 139, 95, 0.12), transparent 20%),
    linear-gradient(180deg, #0b1827 0%, var(--bg) 48%, var(--bg-deep) 100%);
}

body::before,
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
}

body::before {
  opacity: 0.08;
  background-image:
    linear-gradient(rgba(63, 208, 219, 0.2) 1px, transparent 1px),
    linear-gradient(90deg, rgba(63, 208, 219, 0.14) 1px, transparent 1px);
  background-size: 28px 28px;
}

body::after {
  opacity: 0.18;
  background:
    linear-gradient(
      90deg,
      transparent 0 8%,
      rgba(63, 208, 219, 0.03) 8% 10%,
      transparent 10% 18%,
      rgba(255, 139, 95, 0.03) 18% 20%,
      transparent 20% 100%
    ),
    linear-gradient(
      0deg,
      transparent 0 10%,
      rgba(255, 255, 255, 0.02) 10% 12%,
      transparent 12% 22%,
      rgba(63, 208, 219, 0.025) 22% 24%,
      transparent 24% 100%
    ),
    radial-gradient(circle at 16% 16%, rgba(255, 255, 255, 0.9) 0 1px, transparent 2px),
    radial-gradient(circle at 75% 12%, rgba(63, 208, 219, 0.92) 0 2px, transparent 3px),
    radial-gradient(circle at 86% 34%, rgba(255, 139, 95, 0.82) 0 2px, transparent 3px);
  background-size: 100% 100%, 100% 100%, auto, auto, auto;
}

a {
  color: var(--accent);
}

.page-shell {
  position: relative;
  z-index: 1;
  max-width: 1180px;
  margin: 0 auto;
  padding: 28px 20px 56px;
}

.topbar,
.hero,
.section,
.footer-card,
.product-card,
.signal-card {
  border: 1px solid var(--border);
  border-radius: 28px;
  background: var(--surface);
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow);
}

.topbar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  padding: 16px 20px;
  margin-bottom: 22px;
}

.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
}

.brand-mark {
  width: 54px;
  height: 54px;
  object-fit: contain;
}

.brand-word-stack {
  display: grid;
  gap: 2px;
}

.brand-lockup-wordmark {
  width: min(220px, 42vw);
  height: auto;
  display: block;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.nav a,
.pill,
.cta-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(12, 26, 40, 0.8);
  text-decoration: none;
  color: var(--text-main);
  font-weight: 600;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(300px, 0.9fr);
  gap: 24px;
  padding: 34px;
  margin-bottom: 22px;
  overflow: hidden;
}

.hero-copy {
  display: grid;
  gap: 18px;
  align-content: center;
}

.eyebrow,
.section-eyebrow {
  margin: 0;
  color: var(--accent);
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.hero h1,
.section h2,
.product-card h3,
.signal-card h3 {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
  letter-spacing: -0.03em;
}

.hero h1 {
  font-size: clamp(2.7rem, 5vw, 5rem);
  line-height: 0.96;
}

.hero p,
.section p,
.product-card p,
.signal-card p,
.footer-card {
  margin: 0;
  color: var(--text-soft);
  font-size: 1.08rem;
  line-height: 1.7;
}

.heritage-note {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  color: var(--text-dim);
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.syllabary-inline {
  color: var(--accent);
  font-size: 1rem;
  font-weight: 700;
}

.heritage-divider {
  color: var(--text-dim);
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.cta-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 18px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-deep) 100%);
  color: #fff;
  text-decoration: none;
  font-weight: 700;
}

.hero-visual {
  display: grid;
  gap: 16px;
  align-content: start;
}

.mark-panel,
.signal-grid {
  border-radius: 24px;
}

.mark-panel {
  display: grid;
  place-items: center;
  min-height: 340px;
  padding: 24px;
  background:
    radial-gradient(circle at top, rgba(63, 208, 219, 0.16), transparent 36%),
    linear-gradient(180deg, rgba(14, 27, 42, 0.98) 0%, rgba(8, 16, 27, 0.98) 100%);
  border: 1px solid var(--border);
}

.hero-lockup {
  grid-template-columns: auto minmax(0, 1fr);
  justify-content: center;
  align-items: center;
  gap: 18px;
  text-align: left;
}

.hero-brand-mark {
  width: clamp(88px, 11vw, 116px);
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 22px 34px rgba(0, 0, 0, 0.34));
}

.hero-wordmark {
  width: min(280px, 44vw);
  height: auto;
  display: block;
}

.hero-tagline {
  width: min(220px, 34vw);
  height: auto;
  display: block;
  opacity: 0.82;
}

.hero-brand-copy {
  display: grid;
  justify-items: start;
  gap: 6px;
}

.signal-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.signal-card {
  display: grid;
  grid-template-columns: minmax(88px, 112px) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
  padding: 20px 22px;
  background:
    linear-gradient(135deg, rgba(24, 44, 66, 0.62) 0%, rgba(15, 31, 49, 0.92) 100%);
}

.signal-card h3 {
  margin: 2px 0 0;
  font-size: 1rem;
  line-height: 1.1;
}

.signal-card p {
  font-size: 1rem;
  line-height: 1.6;
}

.section {
  padding: 30px;
  margin-bottom: 22px;
}

.section-wide {
  padding: 34px 30px;
}

.section-header {
  display: grid;
  gap: 10px;
  margin-bottom: 18px;
}

.section h2 {
  font-size: clamp(1.9rem, 3vw, 2.8rem);
}

.page-title {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(2.4rem, 4.4vw, 4.2rem);
  line-height: 1.02;
  letter-spacing: -0.03em;
}

.page-intro {
  max-width: 70ch;
}

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

.product-card {
  overflow: hidden;
}

.product-art {
  position: relative;
  min-height: 260px;
  padding: 22px;
  background:
    radial-gradient(circle at top, rgba(255, 255, 255, 0.12), transparent 34%),
    linear-gradient(180deg, rgba(30, 24, 56, 0.98) 0%, rgba(11, 10, 21, 0.98) 100%);
}

.product-card.math .product-art {
  background:
    radial-gradient(circle at top, rgba(99, 233, 255, 0.16), transparent 34%),
    linear-gradient(180deg, rgba(21, 50, 82, 0.98) 0%, rgba(7, 12, 22, 0.98) 100%);
}

.product-card.match .product-art {
  background:
    radial-gradient(circle at top, rgba(255, 170, 200, 0.16), transparent 34%),
    linear-gradient(180deg, rgba(63, 24, 63, 0.98) 0%, rgba(13, 9, 22, 0.98) 100%);
}

.product-logo {
  width: min(100%, 420px);
  height: auto;
  display: block;
  margin-bottom: 18px;
}

.art-cluster {
  display: flex;
  gap: 14px;
  align-items: end;
}

.art-cluster img {
  width: calc(50% - 7px);
  max-width: 180px;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 18px 30px rgba(0, 0, 0, 0.28));
}

.product-copy {
  display: grid;
  gap: 14px;
  padding: 24px;
}

.product-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.product-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 10px 14px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
}

.product-link.primary {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-deep) 100%);
  color: #fff;
}

.product-link.secondary {
  border: 1px solid var(--border);
  background: rgba(12, 26, 40, 0.8);
  color: var(--text-main);
}

.path-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.path-card {
  padding: 22px;
  border-radius: 24px;
  border: 1px solid var(--border);
  background: var(--surface-soft);
}

.about-card {
  padding: 24px;
  border-radius: 24px;
  border: 1px solid var(--border);
  background: var(--surface-soft);
}

.path-card h3 {
  margin: 0 0 10px;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.08rem;
}

.about-card h2 {
  margin: 0 0 10px;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.2rem;
  letter-spacing: -0.02em;
}

.about-card p {
  margin: 0;
}

.footer-card {
  padding: 20px 24px;
}

@media (max-width: 900px) {
  .hero,
  .product-grid,
  .path-grid,
  .about-grid {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 720px) {
  .page-shell {
    padding: 18px 14px 36px;
  }

  .topbar,
  .hero,
  .section {
    padding: 22px;
  }

  .brand-mark {
    width: 46px;
    height: 46px;
  }

  .brand-wordmark,
  .brand-lockup-wordmark {
    width: min(170px, 46vw);
  }

  .mark-panel {
    min-height: 260px;
  }

  .hero-lockup {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
    gap: 10px;
  }

  .hero-brand-copy {
    justify-items: center;
  }

  .hero-wordmark {
    width: min(260px, 62vw);
  }

  .hero-tagline {
    width: min(200px, 48vw);
  }

  .signal-card {
    grid-template-columns: 1fr;
    gap: 10px;
  }
}
