:root {
  --synapse-bg: #0A0F1F;
  --synapse-card: #121B2C;
  --synapse-logo: #22D0E3;
  --synapse-logo-dark: #18B8C9;
  --synapse-gold: #C8A96A;
  --synapse-text: #F8FBFF;
  --synapse-muted: #9BA8B8;
  --ink: var(--synapse-text);
  --muted: var(--synapse-muted);
  --line: #2A3A52;
  --paper: var(--synapse-card);
  --soft: #0E1728;
  --soft-blue: rgba(34, 208, 227, 0.11);
  --brand: var(--synapse-logo);
  --brand-dark: var(--synapse-logo-dark);
  --accent: var(--synapse-gold);
  --accent-soft: rgba(200, 169, 106, 0.13);
  --shadow: 0 22px 56px rgba(0, 0, 0, 0.28);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 92% 0%, rgba(18, 27, 44, 0.9) 0, rgba(18, 27, 44, 0.45) 18%, transparent 34%),
    linear-gradient(125deg, rgba(34, 208, 227, 0.08) 0 1px, transparent 1px 220px),
    var(--synapse-bg);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  background-image:
    radial-gradient(circle, rgba(34, 208, 227, 0.35) 0 2px, transparent 3px),
    linear-gradient(130deg, transparent 0 18%, rgba(34, 208, 227, 0.12) 18.1% 18.2%, transparent 18.3% 100%),
    linear-gradient(25deg, transparent 0 58%, rgba(34, 208, 227, 0.1) 58.1% 58.2%, transparent 58.3% 100%);
  background-position: 18% 12%, 0 0, 0 0;
  opacity: 0.45;
}

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px clamp(18px, 4vw, 56px);
  background: rgba(10, 15, 31, 0.9);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  min-width: 180px;
}

.brand-mark {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border-radius: 8px;
  background: #070C18;
  border: 1px solid rgba(34, 208, 227, 0.32);
  color: var(--synapse-logo);
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.03);
}

.brand strong,
.brand small {
  display: block;
}

.brand small {
  color: var(--muted);
  font-size: 12px;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
}

.nav a {
  padding: 9px 10px;
  border-radius: 7px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.nav a:hover,
.nav a.active {
  background: var(--soft-blue);
  color: var(--synapse-text);
}

.hero,
.page {
  width: min(1160px, calc(100% - 36px));
  margin: 0 auto;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(280px, 0.8fr);
  gap: 34px;
  align-items: center;
  min-height: 560px;
  padding: 64px 0 36px;
}

.hero-copy h1,
.page-title h1 {
  margin: 0;
  max-width: 820px;
  font-size: clamp(42px, 7vw, 78px);
  line-height: 0.98;
  letter-spacing: 0;
  color: var(--synapse-text);
}

.page-title h1 {
  font-size: clamp(36px, 5vw, 62px);
}

.lead,
.page-title p {
  max-width: 760px;
  color: var(--muted);
  font-size: 19px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.actions,
.link-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.button,
.link-row a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 7px;
  font-weight: 800;
  text-decoration: none;
}

.button.primary {
  background: var(--brand);
  border-color: var(--brand);
  color: #06101a;
  box-shadow: 0 12px 34px rgba(34, 208, 227, 0.16);
}

.button.secondary,
.link-row a {
  background: var(--paper);
  color: var(--synapse-text);
}

.button.ghost {
  background: transparent;
  color: var(--synapse-logo);
}

.button:hover,
.link-row a:hover,
.filter:hover {
  border-color: rgba(34, 208, 227, 0.65);
  transform: translateY(-1px);
}

.hero-panel,
.side-panel {
  display: grid;
  gap: 14px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(145deg, rgba(18, 27, 44, 0.98), rgba(14, 23, 40, 0.96));
  box-shadow: var(--shadow);
}

.hero-panel div {
  padding: 18px;
  border-radius: 7px;
  background: rgba(7, 12, 24, 0.56);
  border: 1px solid rgba(42, 58, 82, 0.75);
}

.hero-panel span {
  display: block;
  color: var(--synapse-logo);
  font-size: 34px;
  font-weight: 900;
}

.hero-panel p,
.feature-card p,
.resource-card p,
.product-card p,
.side-panel li {
  color: var(--muted);
}

.notice {
  width: min(1160px, calc(100% - 36px));
  margin: 0 auto 44px;
  padding: 16px 18px;
  border: 1px solid rgba(200, 169, 106, 0.36);
  border-radius: 8px;
  background: var(--accent-soft);
  color: #E5D3AB;
}

.grid-section,
.page-title,
.toolbar,
.product-grid,
.resource-list,
.prompt-section,
.card-grid {
  width: min(1160px, calc(100% - 36px));
  margin: 0 auto;
}

.grid-section,
.page {
  padding-bottom: 56px;
}

.page-title {
  padding: 56px 0 28px;
}

.section-heading h2,
.prompt-section h2,
.side-panel h2 {
  margin: 0 0 16px;
  font-size: clamp(26px, 4vw, 40px);
}

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

.feature-card,
.product-card,
.resource-card,
.prompt-grid p {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.15);
  text-decoration: none;
}

.feature-card,
.product-card,
.resource-card {
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.feature-card:hover,
.product-card:hover,
.resource-card:hover {
  border-color: rgba(34, 208, 227, 0.42);
  background: #152033;
  transform: translateY(-2px);
}

.feature-card h2,
.feature-card h3,
.product-card h2,
.resource-card h2 {
  margin: 10px 0 8px;
  font-size: 22px;
  line-height: 1.15;
}

.icon {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 8px;
  background: rgba(34, 208, 227, 0.11);
  border: 1px solid rgba(34, 208, 227, 0.24);
  color: var(--synapse-logo);
  font-weight: 900;
}

.toolbar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}

.search-box {
  display: grid;
  gap: 6px;
  flex: 1;
  min-width: 240px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.search-box input {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 0 12px;
  background: #0C1424;
  color: var(--ink);
  font: inherit;
  text-transform: none;
}

.search-box input::placeholder {
  color: #69778A;
}

.filter-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter {
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #0C1424;
  color: var(--muted);
  font-weight: 800;
  cursor: pointer;
}

.filter.is-active {
  background: var(--brand);
  border-color: var(--brand);
  color: #06101a;
}

.product-card[hidden] {
  display: none;
}

.resource-list {
  display: grid;
  gap: 16px;
}

.resource-list.compact {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.two-column {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
  gap: 24px;
}

.two-column .page-title,
.two-column .prompt-section {
  width: auto;
  margin: 0;
}

.prompt-section {
  grid-column: 1 / -1;
}

.check-list {
  margin: 0;
  padding-left: 20px;
}

.footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  padding: 24px clamp(18px, 4vw, 56px);
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}

.footer p {
  margin: 0;
}

@media (max-width: 900px) {
  .site-header,
  .hero,
  .two-column,
  .toolbar {
    display: block;
  }

  .nav {
    justify-content: flex-start;
    margin-top: 14px;
  }

  .hero-panel,
  .side-panel,
  .filter-group {
    margin-top: 18px;
  }

  .card-grid,
  .product-grid,
  .prompt-grid,
  .resource-list.compact {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .hero,
  .page-title {
    padding-top: 34px;
  }

  .hero-copy h1,
  .page-title h1 {
    font-size: 40px;
  }

  .nav a {
    font-size: 13px;
    padding: 8px;
  }
}
