*, *::before, *::after { box-sizing: border-box; }

html {
  min-width: 0;
  overflow-x: hidden;
  scroll-behavior: smooth;
}

body {
  min-width: 0;
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 80% 6%, rgba(93, 33, 145, 0.22), transparent 24rem),
    radial-gradient(circle at 12% 18%, rgba(255, 112, 24, 0.10), transparent 20rem),
    linear-gradient(180deg, #07030b 0%, #020104 62%, #000 100%);
  color: var(--text-primary);
  font-family: var(--font-mono);
  letter-spacing: 0;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background-image:
    linear-gradient(rgba(190, 96, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(190, 96, 255, 0.04) 1px, transparent 1px);
  background-size: 36px 36px;
  mask-image: radial-gradient(circle at 50% 16%, black, transparent 70%);
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 50;
  border: 1px solid rgba(192, 96, 255, 0.18);
  box-shadow: inset 0 0 56px rgba(192, 96, 255, 0.12);
}

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

a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }

.graph-nav {
  position: sticky;
  top: 0;
  z-index: 40;
  min-height: 72px;
  display: grid;
  grid-template-columns: minmax(180px, 1fr) auto minmax(180px, 1fr);
  align-items: center;
  gap: 24px;
  padding: 15px 32px;
  background: rgba(3, 1, 7, 0.86);
  border-bottom: 1px solid rgba(192, 96, 255, 0.22);
  backdrop-filter: blur(18px);
}

.graph-wordmark {
  display: inline-flex;
  flex-direction: column;
  width: max-content;
  color: #fff;
  letter-spacing: 0.16em;
  font-weight: 600;
  font-size: 0.92rem;
}

.graph-wordmark small {
  color: rgba(216, 232, 255, 0.62);
  font-size: 0.54rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.graph-nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 34px;
  min-width: 0;
  padding: 0;
  margin: 0;
  list-style: none;
}

.graph-nav-links a,
.graph-nav-cta,
.graph-menu-button {
  color: rgba(246, 222, 255, 0.72);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.graph-nav-links a[aria-current="page"],
.graph-nav-links a:hover { color: var(--p-core); }

.graph-nav-cta {
  justify-self: end;
  padding: 12px 18px;
  border: 1px solid rgba(255, 122, 26, 0.54);
  color: #ff9b29;
  background: rgba(255, 92, 18, 0.08);
  border-radius: 5px;
  box-shadow: 0 0 22px rgba(255, 92, 18, 0.08);
}

.graph-menu-button {
  display: none;
  justify-self: end;
  border: 0;
  background: transparent;
  color: var(--p-mid);
  font-size: 1.35rem;
  cursor: pointer;
}

.graph-menu {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 60;
  width: min(360px, 86vw);
  height: 100vh;
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transform: translateX(105%);
  transition: transform 180ms var(--ease-out);
  background: rgba(7, 2, 12, 0.96);
  border-left: 1px solid rgba(192, 96, 255, 0.32);
}

.graph-menu.open { transform: translateX(0); }
.graph-menu[aria-hidden="true"] { visibility: hidden; }
.graph-menu.open[aria-hidden="false"] { visibility: visible; }

.graph-menu-close {
  align-self: flex-end;
  border: 0;
  background: transparent;
  color: var(--p-core);
  font-size: 1.4rem;
  cursor: pointer;
}

.graph-menu-title {
  margin-bottom: 12px;
  color: var(--a-mid);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.graph-menu a {
  padding: 14px 0;
  border-bottom: 1px solid rgba(192, 96, 255, 0.16);
  color: rgba(246, 222, 255, 0.82);
}

.graph-menu-scrim {
  position: fixed;
  inset: 0;
  z-index: 55;
  display: none;
  background: rgba(0, 0, 0, 0.56);
}

.graph-menu-scrim.active { display: block; }

.graph-home,
.graph-page,
.tool-page {
  width: min(1220px, calc(100% - 32px));
  margin: 0 auto;
  padding: 30px 0 96px;
}

.global-panel,
.category-hero,
.tool-header,
.tool-console,
.sample-rail,
.copy-panel {
  border: 1px solid rgba(192, 96, 255, 0.30);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255,255,255,0.035), rgba(255,255,255,0.006)),
    rgba(5, 2, 10, 0.78);
  box-shadow:
    0 0 42px rgba(106, 18, 255, 0.17),
    inset 0 1px 0 rgba(255,255,255,0.06);
}

.global-panel {
  min-height: min(620px, calc(100vh - 134px));
  display: grid;
  grid-template-columns: 0.88fr 1.12fr;
  gap: clamp(24px, 4vw, 64px);
  align-items: stretch;
  padding: 28px;
}

.owl-signal {
  min-height: 360px;
  border: 1px solid rgba(255, 132, 36, 0.24);
  border-radius: 7px;
  overflow: hidden;
  background: radial-gradient(circle at 50% 28%, rgba(192, 96, 255, 0.20), rgba(2,0,6,0.2) 52%, rgba(0,0,0,0.56) 100%);
}

.owl-signal img {
  width: 100%;
  height: 100%;
  min-height: 360px;
  object-fit: cover;
  opacity: 0.92;
  filter: saturate(1.14) contrast(1.05);
}

.home-copy {
  align-self: center;
  max-width: 650px;
  padding: clamp(16px, 2vw, 26px) 0;
}

.home-copy h1,
.category-hero h1,
.tool-header h1,
.simple-page h1 {
  margin: 0;
  color: #fff;
  font-size: clamp(2rem, 4.6vw, 4.65rem);
  line-height: 1.03;
  font-weight: 400;
  letter-spacing: 0;
}

.home-copy h1 span {
  color: var(--p-mid);
  text-shadow: 0 0 24px rgba(192, 96, 255, 0.35);
}

.home-copy p,
.category-hero p,
.tool-header p,
.copy-panel p {
  max-width: 620px;
  color: rgba(216, 232, 255, 0.78);
  line-height: 1.7;
}

.router-bar {
  margin-top: 28px;
  display: block;
  padding: 13px;
  border: 1px solid rgba(192, 96, 255, 0.46);
  border-radius: 7px;
  background: rgba(5, 1, 9, 0.86);
  box-shadow: 0 0 28px rgba(106, 18, 255, 0.18);
}

.router-bar label {
  display: block;
  margin-bottom: 8px;
  color: rgba(246, 222, 255, 0.78);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
}

.router-bar div {
  display: grid;
  grid-template-columns: 1fr 44px;
  gap: 8px;
}

.router-bar input {
  min-width: 0;
  border: 0;
  outline: 0;
  color: #fff;
  background: transparent;
}

.router-bar button,
.orange-cta {
  border: 1px solid rgba(255, 122, 26, 0.54);
  border-radius: 5px;
  color: #fff;
  background: linear-gradient(180deg, #ff8b20, #e94f0c);
  cursor: pointer;
}

.router-bar--compact {
  max-width: 540px;
}

.hub-strip,
.tool-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(148px, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.featured-tools {
  margin-top: 14px;
  padding: 20px;
  border: 1px solid rgba(192, 96, 255, 0.30);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255,255,255,0.035), rgba(255,255,255,0.006)),
    rgba(5, 2, 10, 0.78);
  box-shadow:
    0 0 42px rgba(106, 18, 255, 0.15),
    inset 0 1px 0 rgba(255,255,255,0.06);
}

.featured-tools header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.featured-tools h2 {
  margin: 0;
  color: #fff;
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0;
}

.featured-tools p {
  margin: 0;
  max-width: 520px;
  color: rgba(216, 232, 255, 0.68);
  font-size: 0.78rem;
  line-height: 1.5;
}

.featured-tools > div {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.hub-tile,
.category-card,
.tool-card,
.sample-card {
  min-width: 0;
  min-height: 176px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 16px;
  border: 1px solid rgba(192, 96, 255, 0.27);
  border-radius: 7px;
  background: rgba(8, 3, 14, 0.84);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.035);
  transition: transform 150ms var(--ease-out), border-color 150ms var(--ease-out), box-shadow 150ms var(--ease-out);
}

.hub-tile:hover,
.category-card:hover,
.tool-card:hover,
.sample-card:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 160, 44, 0.54);
  box-shadow: 0 0 26px rgba(255, 92, 18, 0.12), inset 0 1px 0 rgba(255,255,255,0.05);
}

.hub-tile span,
.category-card span,
.tool-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(192, 96, 255, 0.42);
  border-radius: 6px;
  color: var(--p-mid);
  background: rgba(106, 18, 255, 0.10);
  font-style: normal;
  font-size: 1.2rem;
}

.hub-tile strong,
.category-card strong,
.tool-card strong,
.sample-card strong {
  color: #fff;
  font-size: 0.92rem;
  line-height: 1.25;
}

.hub-tile small,
.category-card small,
.tool-card small,
.sample-card small {
  color: rgba(216, 232, 255, 0.64);
  font-size: 0.68rem;
  line-height: 1.45;
}

.hub-tile em,
.category-card em,
.tool-card em {
  margin-top: auto;
  color: #ff9b29;
  font-size: 0.72rem;
  font-style: normal;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.category-hero,
.tool-header {
  display: grid;
  grid-template-columns: 1fr minmax(180px, 320px);
  gap: 28px;
  align-items: center;
  margin-top: 20px;
  padding: clamp(24px, 4vw, 42px);
}

.back-link {
  display: inline-flex;
  margin-bottom: 24px;
  color: rgba(246, 222, 255, 0.64);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.category-sigil {
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border: 1px solid rgba(192, 96, 255, 0.24);
  border-radius: 8px;
  color: var(--p-mid);
  font-size: clamp(4rem, 12vw, 8rem);
  background: radial-gradient(circle, rgba(192, 96, 255, 0.20), transparent 62%);
  text-shadow: 0 0 34px rgba(192, 96, 255, 0.52);
}

.tool-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.tool-grid--hubs {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.sample-rail {
  margin-top: 16px;
  padding: 22px;
}

.sample-rail header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.sample-rail h2 {
  margin: 0;
  color: #fff;
  font-size: 1rem;
  font-weight: 500;
}

.sample-rail header a {
  color: var(--p-mid);
  font-size: 0.74rem;
}

.sample-rail > div {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.sample-card span,
.paper-preview {
  display: block;
  min-height: 92px;
  border: 1px solid rgba(216, 232, 255, 0.24);
  border-radius: 3px;
  background:
    linear-gradient(90deg, transparent 0 20%, rgba(0,0,0,0.08) 20% 22%, transparent 22%),
    repeating-linear-gradient(180deg, rgba(255,255,255,0.85) 0 7px, rgba(0,0,0,0.12) 8px 9px, rgba(255,255,255,0.85) 10px 18px);
}

.sample-eyebrow {
  margin: 0 0 8px;
  color: #ff9b29;
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.sample-proof-panel {
  display: grid;
  grid-template-columns: minmax(240px, 0.78fr) minmax(0, 1.22fr);
  gap: 16px;
  margin-top: 16px;
}

.sample-pdf-preview {
  min-height: 360px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 18px;
  border: 1px solid rgba(216, 232, 255, 0.24);
  border-radius: 7px;
  background: rgba(7, 3, 12, 0.82);
}

.sample-pdf-preview span {
  flex: 1;
  min-height: 260px;
  border: 1px solid rgba(216, 232, 255, 0.26);
  border-radius: 3px;
  background:
    linear-gradient(90deg, rgba(255,255,255,0.92) 0 16%, rgba(230,230,235,0.88) 16% 17%, rgba(255,255,255,0.92) 17%),
    repeating-linear-gradient(180deg, rgba(255,255,255,0.92) 0 10px, rgba(0,0,0,0.10) 11px 12px, rgba(255,255,255,0.92) 13px 24px);
  box-shadow: 0 18px 46px rgba(0,0,0,0.32);
}

.sample-pdf-preview strong {
  color: #fff;
}

.sample-pdf-preview small {
  color: #ff9b29;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.copy-panel h2 {
  margin: 0 0 10px;
  color: #fff;
  font-weight: 500;
  letter-spacing: 0;
}

.price-console {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  border: 1px solid rgba(255, 122, 26, 0.36);
  border-radius: 7px;
  background: rgba(12, 5, 9, 0.84);
}

.price-console strong {
  color: #fff;
  font-size: 2rem;
}

.orange-cta {
  display: inline-flex;
  justify-content: center;
  padding: 12px 14px;
  color: #fff;
  text-align: center;
}

.orange-cta.disabled {
  opacity: 0.78;
}

.price-console small {
  color: rgba(216, 232, 255, 0.62);
  line-height: 1.5;
}

.tool-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.tool-badges span,
.step-tabs span {
  padding: 7px 10px;
  border: 1px solid rgba(192, 96, 255, 0.22);
  border-radius: 999px;
  color: rgba(246, 222, 255, 0.72);
  font-size: 0.66rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.tool-console {
  margin-top: 16px;
  overflow: hidden;
}

.step-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 18px;
  border-bottom: 1px solid rgba(192, 96, 255, 0.22);
}

.step-tabs .active {
  border-color: rgba(255, 160, 44, 0.64);
  color: #ff9b29;
}

.console-body {
  display: grid;
  grid-template-columns: 1fr minmax(220px, 320px) minmax(180px, 240px);
  gap: 20px;
  padding: 22px;
}

.intake-preview {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.intake-preview label {
  color: var(--p-mid);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.intake-preview textarea {
  min-height: 170px;
  resize: vertical;
  border: 1px solid rgba(192, 96, 255, 0.28);
  border-radius: 6px;
  padding: 14px;
  color: rgba(216, 232, 255, 0.76);
  background: rgba(0,0,0,0.36);
}

.intake-preview button {
  padding: 12px 14px;
  border: 1px solid rgba(192, 96, 255, 0.24);
  border-radius: 5px;
  color: rgba(246, 222, 255, 0.54);
  background: rgba(192, 96, 255, 0.08);
}

.preview-lock,
.include-list,
.copy-panel {
  padding: 16px;
}

.preview-lock {
  border: 1px solid rgba(216, 232, 255, 0.15);
  border-radius: 6px;
  background: rgba(0,0,0,0.24);
}

.preview-lock strong {
  display: block;
  margin-top: 12px;
  color: #fff;
}

.preview-lock small {
  color: rgba(216, 232, 255, 0.56);
}

.include-list {
  margin: 0;
  list-style: none;
  border-left: 1px solid rgba(192, 96, 255, 0.22);
}

.include-list li {
  padding: 10px 0;
  color: rgba(246, 222, 255, 0.76);
  font-size: 0.78rem;
  border-bottom: 1px solid rgba(192, 96, 255, 0.12);
}

.include-list li::before {
  content: "▣";
  margin-right: 8px;
  color: var(--p-mid);
}

.graph-footer {
  position: sticky;
  bottom: 0;
  z-index: 35;
  min-height: 54px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(12px, 4vw, 48px);
  padding: 12px 24px;
  background: rgba(3, 1, 7, 0.90);
  border-top: 1px solid rgba(192, 96, 255, 0.22);
  backdrop-filter: blur(18px);
  color: rgba(216, 232, 255, 0.66);
  font-size: 0.66rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.graph-footer a {
  color: #fff;
  font-weight: 600;
}

@media (max-width: 980px) {
  .graph-nav {
    grid-template-columns: 1fr auto;
    padding: 15px 22px;
  }
  .graph-nav-links,
  .graph-nav-cta {
    display: none;
  }
  .graph-menu-button {
    display: inline-grid;
  }
  .global-panel,
  .category-hero,
  .tool-header,
  .sample-proof-panel,
  .console-body {
    grid-template-columns: 1fr;
  }
  .hub-strip,
  .featured-tools > div,
  .tool-grid,
  .tool-grid--hubs,
  .sample-rail > div {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .category-sigil {
    display: none;
  }
  .graph-footer {
    position: static;
    flex-wrap: wrap;
  }
}

@media (max-width: 620px) {
  .graph-home,
  .graph-page,
  .tool-page {
    width: min(100% - 20px, 1220px);
    padding-top: 14px;
  }
  .global-panel {
    padding: 14px;
  }
  .owl-signal {
    min-height: 180px;
  }
  .owl-signal img {
    min-height: 180px;
  }
  .home-copy h1,
  .category-hero h1,
  .tool-header h1 {
    font-size: clamp(2rem, 11vw, 3.1rem);
  }
  .hub-strip,
  .featured-tools > div,
  .tool-grid,
  .tool-grid--hubs,
  .sample-rail > div {
    grid-template-columns: 1fr;
  }
  .featured-tools header {
    display: block;
  }
  .featured-tools p {
    margin-top: 8px;
  }
  .hub-tile,
  .category-card,
  .tool-card {
    min-height: 150px;
  }
  .category-hero,
  .tool-header,
  .tool-console,
  .sample-rail {
    border-radius: 7px;
  }
  .console-body {
    padding: 14px;
  }
}
