:root {
  --bg: #121417;
  --bg-alt: #171a1e;
  --surface: #1d2227;
  --surface-soft: #22282f;
  --line: rgba(255, 255, 255, 0.12);
  --text: #f2eee4;
  --muted: #b5bcc1;
  --lime: #baff3c;
  --coral: #ff693f;
  --cyan: #49d6ff;
  --shell: 1180px;
  --radius: 8px;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.3);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.5;
}

img {
  display: block;
  max-width: 100%;
}

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

button {
  font: inherit;
}

a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--lime);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  top: -3rem;
  left: 1rem;
  z-index: 30;
  padding: 0.7rem 0.95rem;
  border-radius: 6px;
  background: var(--text);
  color: var(--bg);
}

.skip-link:focus {
  top: 1rem;
}

.shell {
  width: min(var(--shell), calc(100% - 2rem));
  margin: 0 auto;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 1rem;
  background: rgba(18, 20, 23, 0.45);
  border-bottom: 1px solid transparent;
  backdrop-filter: blur(0);
}

.topbar.is-scrolled {
  background: rgba(18, 20, 23, 0.88);
  border-bottom-color: var(--line);
  backdrop-filter: blur(18px);
}

.brand {
  flex: 0 0 auto;
  width: min(17rem, 52vw);
}

.brand img {
  width: 100%;
  height: auto;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.4rem;
}

.nav a {
  padding: 0.55rem 0.75rem;
  border: 1px solid transparent;
  border-radius: 6px;
  color: var(--muted);
}

.nav a[aria-current="true"],
.nav a:hover {
  color: var(--text);
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.04);
}

.hero {
  position: relative;
  min-height: 72svh;
  display: flex;
  align-items: flex-end;
  overflow: clip;
}

.hero-media,
.hero-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-media {
  object-fit: cover;
  object-position: center center;
}

.hero-overlay {
  background:
    linear-gradient(180deg, rgba(18, 20, 23, 0.14) 0%, rgba(18, 20, 23, 0.56) 55%, rgba(18, 20, 23, 0.95) 100%),
    linear-gradient(90deg, rgba(18, 20, 23, 0.78) 0%, rgba(18, 20, 23, 0.35) 46%, rgba(18, 20, 23, 0.68) 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: 0 0 5rem;
}

.eyebrow {
  margin: 0 0 0.8rem;
  color: var(--lime);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p,
ul,
pre {
  margin-top: 0;
}

h1 {
  max-width: 10ch;
  margin-bottom: 1rem;
  font-size: 4.75rem;
  line-height: 0.92;
}

h2 {
  margin-bottom: 1rem;
  font-size: 2.35rem;
  line-height: 1.03;
}

h3 {
  margin-bottom: 0.65rem;
  font-size: 1.25rem;
}

.hero-dek,
.lead,
.section-head p,
.footer p,
.prompt-copy p,
.workflow-grid p,
.use-case-grid p,
.faq-list p {
  color: var(--muted);
}

.hero-dek {
  max-width: 36rem;
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.75rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: 0.65rem 1rem;
  border: 1px solid transparent;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 140ms ease, border-color 140ms ease, color 140ms ease, transform 140ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button-primary {
  background: var(--lime);
  color: #101112;
}

.button-secondary {
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.06);
}

.button-small {
  min-height: 2.5rem;
  background: transparent;
  border-color: rgba(255, 255, 255, 0.18);
  color: var(--text);
}

.hero-points {
  display: grid;
  gap: 0.55rem;
  max-width: 42rem;
  padding: 0;
  list-style: none;
}

.hero-points li {
  padding-top: 0.55rem;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
}

.jump-strip {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
  margin-top: -2rem;
  margin-bottom: 1rem;
}

.jump-strip a,
.filter {
  padding: 0.9rem 1rem;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
  color: var(--text);
}

.jump-strip a:hover,
.filter:hover,
.filter.is-active {
  border-color: rgba(186, 255, 60, 0.42);
  background: rgba(186, 255, 60, 0.08);
}

.band {
  padding: 4.5rem 0;
}

.alt-band {
  background: var(--bg-alt);
}

.section-grid {
  display: grid;
  gap: 2rem;
}

.two-up {
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  align-items: start;
}

.principles,
.workflow-grid,
.use-case-grid,
.prompt-grid {
  display: grid;
  gap: 1rem;
}

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

.principles article,
.workflow-grid article,
.use-case-grid article,
.prompt-card,
.faq-list details {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.principles article,
.workflow-grid article,
.use-case-grid article {
  padding: 1.2rem;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.4rem;
}

.split-head {
  margin-bottom: 0;
}

.results-count {
  flex: 0 0 auto;
}

.formula {
  margin-bottom: 1rem;
  padding: 1rem;
  border-left: 4px solid var(--coral);
  background: rgba(255, 105, 63, 0.08);
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.filter {
  cursor: pointer;
}

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

.prompt-card {
  overflow: hidden;
}

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

.prompt-card img {
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.prompt-copy {
  padding: 1rem;
}

.card-tag {
  margin-bottom: 0.4rem;
  color: var(--cyan);
  font-size: 0.9rem;
  font-weight: 700;
}

pre {
  overflow-x: auto;
  margin: 0 0 1rem;
  padding: 1rem;
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.22);
  color: var(--text);
  white-space: pre-wrap;
  font: 0.95rem/1.55 "Courier New", Courier, monospace;
}

.workflow-grid,
.use-case-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.workflow-grid span {
  display: inline-block;
  margin-bottom: 1rem;
  color: var(--coral);
  font-size: 0.85rem;
  font-weight: 700;
}

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

.faq-list {
  display: grid;
  gap: 0.75rem;
}

.faq-list details {
  padding: 1rem 1rem 0;
}

.faq-list summary {
  cursor: pointer;
  list-style: none;
  font-size: 1.05rem;
  font-weight: 700;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list p {
  padding-bottom: 1rem;
}

.footer {
  border-top: 1px solid var(--line);
}

.footer-grid {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 1.5rem;
  align-items: center;
}

.footer-grid img {
  width: 100%;
  height: auto;
}

.copy-status {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 25;
  min-width: 8rem;
  margin: 0;
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(18, 20, 23, 0.96);
  color: var(--text);
  opacity: 0;
  transform: translateY(0.75rem);
  pointer-events: none;
  transition: opacity 150ms ease, transform 150ms ease;
}

.copy-status.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1100px) {
  h1 {
    font-size: 4rem;
  }

  .principles,
  .workflow-grid,
  .use-case-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 780px) {
  .topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .brand {
    width: min(15rem, 62vw);
  }

  .nav {
    width: 100%;
    justify-content: flex-start;
  }

  .hero {
    min-height: 68svh;
  }

  .hero-content {
    padding-bottom: 3.6rem;
  }

  h1 {
    font-size: 3.2rem;
  }

  h2 {
    font-size: 2rem;
  }

  .two-up,
  .prompt-grid,
  .workflow-grid,
  .use-case-grid,
  .footer-grid,
  .jump-strip,
  .principles {
    grid-template-columns: 1fr;
  }

  .section-head {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 520px) {
  .shell {
    width: min(var(--shell), calc(100% - 1.1rem));
  }

  .band {
    padding: 3.4rem 0;
  }

  h1 {
    font-size: 2.6rem;
  }

  h2 {
    font-size: 1.75rem;
  }

  .hero-dek,
  .lead {
    font-size: 1rem;
  }

  .hero-actions,
  .filters {
    gap: 0.55rem;
  }

  .button,
  .jump-strip a,
  .filter {
    width: 100%;
  }

  .copy-status {
    right: 0.55rem;
    bottom: 0.55rem;
    left: 0.55rem;
    min-width: 0;
  }
}
