:root {
  --ink: #101114;
  --ink-soft: #3c4147;
  --muted: #69717b;
  --line: #dfe4e9;
  --paper: #fbfcfd;
  --panel: #ffffff;
  --panel-alt: #f2f6f7;
  --cyan: #00a9ce;
  --coral: #f2634a;
  --green: #22a06b;
  --yellow: #f2b705;
  --dark: #0b0d10;
  --shadow: 0 18px 50px rgba(16, 17, 20, 0.1);
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: 0;
}

body.menu-open {
  overflow: hidden;
}

img,
svg {
  display: block;
}

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

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 72px;
  padding: 12px max(20px, calc((100vw - var(--max)) / 2));
  border-bottom: 1px solid rgba(223, 228, 233, 0.88);
  background: rgba(251, 252, 253, 0.92);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 210px;
}

.brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 2px solid var(--ink);
  border-radius: 50%;
  background: var(--yellow);
  color: var(--ink);
  font-weight: 900;
  text-transform: uppercase;
}

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

.brand strong {
  font-size: 0.98rem;
}

.brand small {
  color: var(--muted);
  font-size: 0.78rem;
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.nav-links a,
.nav-cta,
.button,
.tool-link,
.copy-btn,
.prompt-tabs button,
.quiz-options button {
  min-height: 42px;
  border-radius: 8px;
}

.nav-links a {
  padding: 10px 12px;
  color: var(--ink-soft);
  font-size: 0.92rem;
  font-weight: 700;
}

.nav-links a:hover {
  background: var(--panel-alt);
  color: var(--ink);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 132px;
  padding: 10px 14px;
  background: var(--ink);
  color: #fff;
  font-weight: 800;
}

.icon {
  display: inline-flex;
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
}

.icon svg,
.tile-icon svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.hero {
  position: relative;
  display: grid;
  min-height: 78svh;
  align-items: center;
  overflow: hidden;
  background: var(--dark);
  color: #fff;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(7, 8, 10, 0.92) 0%, rgba(7, 8, 10, 0.76) 38%, rgba(7, 8, 10, 0.22) 68%, rgba(7, 8, 10, 0.1) 100%),
    url("assets/hero-ai-workflows.png") center right / cover no-repeat;
  transform: scale(1.01);
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(100%, var(--max));
  padding: 72px 20px 64px;
  margin: 0 auto;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--cyan);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 690px;
  margin: 0;
  font-size: 4.35rem;
  line-height: 0.98;
  letter-spacing: 0;
}

.hero-copy {
  max-width: 620px;
  margin: 22px 0 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 1.12rem;
}

.hero-form,
.newsletter-form {
  display: flex;
  width: min(100%, 520px);
  gap: 8px;
  margin-top: 28px;
}

.hero-form input,
.newsletter-form input {
  width: 100%;
  min-height: 52px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 8px;
  padding: 0 16px;
  outline: none;
}

.hero-form input {
  background: rgba(255, 255, 255, 0.95);
  color: var(--ink);
}

.hero-form button,
.newsletter-form button {
  min-width: 150px;
  min-height: 52px;
  border: 0;
  border-radius: 8px;
  background: var(--coral);
  color: #fff;
  font-weight: 900;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 16px;
  font-weight: 900;
}

.button.primary {
  background: #fff;
  color: var(--ink);
}

.button.secondary {
  border: 1px solid rgba(255, 255, 255, 0.42);
  color: #fff;
}

.signal-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  width: min(calc(100% - 40px), var(--max));
  margin: -28px auto 0;
  position: relative;
  z-index: 2;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.signal-strip div {
  min-height: 96px;
  padding: 20px;
  border-right: 1px solid var(--line);
}

.signal-strip div:last-child {
  border-right: 0;
}

.signal-strip strong {
  display: block;
  color: var(--ink);
  font-size: 1.85rem;
  line-height: 1;
}

.signal-strip span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-weight: 700;
}

.section {
  width: min(calc(100% - 40px), var(--max));
  margin: 0 auto;
  padding: 82px 0;
}

.intro-section {
  padding-top: 70px;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 28px;
}

.section-heading.compact {
  max-width: 620px;
}

.section-heading h2,
.newsletter-copy h2 {
  margin: 0;
  font-size: 2.5rem;
  line-height: 1.08;
  letter-spacing: 0;
}

.section-heading p:not(.eyebrow),
.newsletter-copy p:not(.eyebrow) {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 1rem;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.category-tile {
  display: grid;
  min-height: 164px;
  align-content: start;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
  background: var(--panel);
  color: var(--ink);
  text-align: left;
  font-weight: 900;
}

.category-tile:hover,
.category-tile.active {
  border-color: var(--ink);
  box-shadow: 0 10px 32px rgba(16, 17, 20, 0.08);
}

.category-tile.active {
  background: var(--ink);
  color: #fff;
}

.category-tile small {
  color: currentColor;
  font-size: 0.86rem;
  font-weight: 700;
  opacity: 0.7;
}

.tile-icon {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  color: var(--cyan);
}

.category-tile.active .tile-icon {
  color: var(--yellow);
}

.utility-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.search-box {
  display: flex;
  align-items: center;
  width: min(100%, 520px);
  min-height: 52px;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 14px;
  background: var(--panel);
  color: var(--muted);
}

.search-box:focus-within {
  border-color: var(--cyan);
  box-shadow: 0 0 0 4px rgba(0, 169, 206, 0.12);
}

.search-box input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
}

.sort-note {
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 800;
}

.tool-grid,
.workflow-grid,
.prompt-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.empty-state {
  grid-column: 1 / -1;
  min-height: 120px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  padding: 32px;
  background: var(--panel);
  color: var(--muted);
  font-weight: 800;
  text-align: center;
}

.tool-card,
.workflow-card,
.prompt-card,
.stack-group {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 8px 28px rgba(16, 17, 20, 0.05);
}

.tool-card {
  display: flex;
  min-height: 420px;
  flex-direction: column;
  padding: 20px;
}

.tool-topline,
.prompt-topline {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 14px;
}

.tool-logo {
  display: grid;
  width: 48px;
  height: 48px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 8px;
  color: #fff;
  font-weight: 900;
}

.logo-cyan {
  background: var(--cyan);
}

.logo-coral {
  background: var(--coral);
}

.logo-green {
  background: var(--green);
}

.logo-dark {
  background: var(--ink);
}

.logo-yellow {
  background: var(--yellow);
  color: var(--ink);
}

.tool-card h3,
.workflow-card h3,
.prompt-card h3,
.stack-group h3 {
  margin: 0;
  font-size: 1.18rem;
  line-height: 1.2;
}

.tool-badge,
.prompt-badge,
.stack-badge {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  border-radius: 999px;
  padding: 4px 9px;
  background: var(--panel-alt);
  color: var(--ink-soft);
  font-size: 0.76rem;
  font-weight: 900;
  white-space: nowrap;
}

.tool-card p,
.workflow-card p,
.prompt-card p {
  color: var(--ink-soft);
}

.tool-meta {
  display: grid;
  gap: 12px;
  margin: 16px 0;
}

.tool-meta div {
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.tool-meta strong,
.workflow-card strong {
  display: block;
  margin-bottom: 4px;
  color: var(--ink);
  font-size: 0.82rem;
  text-transform: uppercase;
}

.tool-meta span {
  color: var(--muted);
  font-size: 0.92rem;
}

.pros-cons {
  display: grid;
  gap: 8px;
  margin-top: auto;
  padding: 0;
  list-style: none;
}

.pros-cons li {
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 8px;
  align-items: start;
  color: var(--ink-soft);
  font-size: 0.92rem;
}

.pros-cons span {
  display: grid;
  width: 22px;
  height: 22px;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  font-size: 0.78rem;
  font-weight: 900;
}

.pros-cons .pro {
  background: var(--green);
}

.pros-cons .con {
  background: var(--coral);
}

.tool-link {
  display: inline-flex;
  width: 100%;
  align-items: center;
  justify-content: center;
  margin-top: 18px;
  padding: 12px 14px;
  background: var(--ink);
  color: #fff;
  font-weight: 900;
}

.tool-link:hover,
.nav-cta:hover,
.hero-form button:hover,
.newsletter-form button:hover {
  transform: translateY(-1px);
}

.workflow-card {
  padding: 22px;
}

.workflow-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0;
}

.workflow-tools span {
  border-radius: 999px;
  padding: 5px 9px;
  background: #e8f7fa;
  color: #08738a;
  font-size: 0.78rem;
  font-weight: 900;
}

.workflow-card ol {
  display: grid;
  gap: 10px;
  margin: 16px 0 0;
  padding-left: 22px;
  color: var(--ink-soft);
}

.workflow-card li::marker {
  color: var(--coral);
  font-weight: 900;
}

.prompt-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}

.prompt-tabs button {
  border: 1px solid var(--line);
  padding: 10px 13px;
  background: var(--panel);
  color: var(--ink-soft);
  font-weight: 900;
}

.prompt-tabs button.active {
  border-color: var(--ink);
  background: var(--ink);
  color: #fff;
}

.prompt-card {
  display: grid;
  gap: 14px;
  min-height: 260px;
  padding: 20px;
}

.prompt-text {
  min-height: 104px;
  border-left: 4px solid var(--cyan);
  padding: 12px 14px;
  background: var(--panel-alt);
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.copy-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  padding: 10px 12px;
  background: var(--ink);
  color: #fff;
  font-weight: 900;
}

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

.stack-group {
  padding: 20px;
}

.stack-group h3 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.stack-group ul {
  display: grid;
  gap: 10px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.stack-group li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 42px;
  border-top: 1px solid var(--line);
  padding-top: 10px;
}

.stack-group a {
  color: var(--cyan);
  font-weight: 900;
}

.finder-shell {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 16px;
  align-items: start;
}

.quiz-panel,
.quiz-result {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  padding: 22px;
}

.quiz-label {
  margin: 0 0 14px;
  color: var(--ink);
  font-size: 1.3rem;
  font-weight: 900;
}

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

.quiz-options button {
  border: 1px solid var(--line);
  padding: 14px;
  background: var(--panel-alt);
  color: var(--ink);
  font-weight: 900;
  text-align: left;
}

.quiz-options button.active {
  border-color: var(--ink);
  background: var(--ink);
  color: #fff;
}

.quiz-result {
  min-height: 252px;
}

.quiz-result h3 {
  margin: 0 0 12px;
  font-size: 1.45rem;
}

.result-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.result-list li {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
  border-top: 1px solid var(--line);
  padding-top: 10px;
}

.result-list strong {
  display: block;
}

.result-list span {
  color: var(--muted);
  font-size: 0.9rem;
}

.result-list a {
  border-radius: 8px;
  padding: 8px 10px;
  background: var(--coral);
  color: #fff;
  font-size: 0.86rem;
  font-weight: 900;
}

.newsletter-section {
  display: grid;
  width: min(calc(100% - 40px), var(--max));
  grid-template-columns: 1fr 0.8fr;
  gap: 24px;
  align-items: center;
  margin: 10px auto 82px;
  border: 1px solid #21313a;
  border-radius: 8px;
  padding: 34px;
  background: #11171b;
  color: #fff;
}

.newsletter-copy p:not(.eyebrow) {
  color: rgba(255, 255, 255, 0.74);
}

.newsletter-form {
  width: 100%;
  margin-top: 0;
}

.newsletter-form input {
  border-color: transparent;
  background: #fff;
  color: var(--ink);
}

.site-footer {
  display: flex;
  width: min(calc(100% - 40px), var(--max));
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin: 0 auto;
  border-top: 1px solid var(--line);
  padding: 28px 0 42px;
  color: var(--muted);
}

.site-footer strong,
.site-footer span {
  display: block;
}

.site-footer strong {
  color: var(--ink);
}

.site-footer a {
  color: var(--ink);
  font-weight: 900;
}

.toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 40;
  max-width: min(360px, calc(100vw - 36px));
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  padding: 12px 14px;
  background: var(--ink);
  color: #fff;
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity 180ms ease, transform 180ms ease;
}

.toast.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1080px) {
  .hero h1 {
    font-size: 3.3rem;
  }

  .category-grid,
  .tool-grid,
  .workflow-grid,
  .prompt-grid,
  .stack-layout {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .category-grid .category-tile:first-child {
    grid-column: 1 / -1;
    min-height: 116px;
  }
}

@media (max-width: 840px) {
  .site-header {
    align-items: stretch;
    flex-wrap: wrap;
    padding-inline: 16px;
  }

  .brand {
    min-width: 0;
  }

  .nav-links {
    order: 3;
    width: 100%;
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .nav-cta {
    min-width: 0;
  }

  .hero {
    min-height: 74svh;
  }

  .hero-bg {
    background:
      linear-gradient(90deg, rgba(7, 8, 10, 0.96) 0%, rgba(7, 8, 10, 0.86) 48%, rgba(7, 8, 10, 0.5) 100%),
      url("assets/hero-ai-workflows.png") center right / cover no-repeat;
  }

  .hero-content {
    padding-block: 52px;
  }

  .hero h1 {
    font-size: 2.75rem;
  }

  .signal-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .signal-strip div:nth-child(2) {
    border-right: 0;
  }

  .signal-strip div:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }

  .section {
    padding: 62px 0;
  }

  .section-heading h2,
  .newsletter-copy h2 {
    font-size: 2rem;
  }

  .finder-shell,
  .newsletter-section {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  body {
    font-size: 15px;
  }

  .site-header {
    min-height: 68px;
  }

  .brand small {
    display: none;
  }

  .nav-links a {
    padding-inline: 10px;
  }

  .nav-cta {
    padding-inline: 12px;
  }

  .hero {
    min-height: 72svh;
  }

  .hero h1 {
    font-size: 2.2rem;
    line-height: 1.02;
  }

  .hero-copy {
    font-size: 1rem;
  }

  .hero-form,
  .newsletter-form {
    flex-direction: column;
  }

  .hero-form button,
  .newsletter-form button {
    width: 100%;
  }

  .hero-actions .button {
    width: 100%;
  }

  .signal-strip,
  .section,
  .newsletter-section,
  .site-footer {
    width: min(calc(100% - 28px), var(--max));
  }

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

  .signal-strip div {
    min-height: 86px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .signal-strip div:last-child {
    border-bottom: 0;
  }

  .category-grid,
  .tool-grid,
  .workflow-grid,
  .prompt-grid,
  .stack-layout,
  .quiz-options {
    grid-template-columns: 1fr;
  }

  .category-tile,
  .tool-card,
  .workflow-card,
  .prompt-card,
  .stack-group,
  .quiz-panel,
  .quiz-result {
    padding: 18px;
  }

  .utility-bar {
    align-items: stretch;
    flex-direction: column;
  }

  .tool-card {
    min-height: auto;
  }

  .result-list li {
    grid-template-columns: 1fr;
  }

  .newsletter-section {
    padding: 24px 18px;
  }

  .site-footer {
    align-items: start;
    flex-direction: column;
  }
}
