:root {
  color-scheme: dark;
  --bg: #030303;
  --panel: rgba(255, 255, 255, 0.055);
  --panel-strong: rgba(255, 255, 255, 0.09);
  --line: rgba(255, 255, 255, 0.12);
  --line-strong: rgba(255, 255, 255, 0.22);
  --text: #fff;
  --muted: #a7a7a7;
  --soft: #d5d5d5;
  --accent: #fff;
  --green: #a7ff83;
  --shadow: 0 28px 90px rgba(0, 0, 0, 0.5);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  overflow-x: hidden;
  background:
    linear-gradient(rgba(255, 255, 255, 0.027) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.027) 1px, transparent 1px),
    var(--bg);
  background-size: 46px 46px, 46px 46px, auto;
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

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

.site-header {
  position: fixed;
  top: 16px;
  left: 50%;
  z-index: 20;
  display: flex;
  width: min(1180px, calc(100% - 32px));
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(0, 0, 0, 0.66);
  box-shadow: var(--shadow);
  transform: translateX(-50%);
  backdrop-filter: blur(20px);
}

.brand, .footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.95rem;
  font-weight: 700;
}

.brand img, .footer-brand img {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  object-fit: contain;
}

.site-header nav { display: flex; gap: 6px; }

.site-header nav a {
  padding: 10px 12px;
  border-radius: 12px;
  color: var(--muted);
  font-size: 0.9rem;
  transition: 180ms ease;
}

.site-header nav a:hover, .site-header nav a.active {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
}

.library-hero {
  position: relative;
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
  padding: clamp(136px, 12vw, 164px) 0 clamp(72px, 8vw, 104px);
}

.hero-glow {
  position: absolute;
  top: 120px;
  right: 0;
  width: min(560px, 58vw);
  height: 560px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.09);
  filter: blur(110px);
  pointer-events: none;
}

.hero-main {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(290px, 0.8fr);
  align-items: center;
  gap: clamp(42px, 6vw, 88px);
}

.hero-copy { min-width: 0; }

.hero-art {
  position: relative;
  width: 100%;
  max-width: 400px;
  aspect-ratio: 4 / 5;
  border: 1px solid var(--line);
  border-radius: 32px;
  background:
    linear-gradient(125deg, transparent 42%, rgba(255,255,255,.07) 42%, rgba(255,255,255,.07) 43%, transparent 43%),
    radial-gradient(circle at 64% 36%, rgba(255,255,255,.22), transparent 2%),
    repeating-linear-gradient(92deg, rgba(255,255,255,.015) 0 1px, transparent 1px 7px),
    linear-gradient(145deg, rgba(255,255,255,.12), rgba(255,255,255,.018));
  box-shadow: var(--shadow);
  justify-self: end;
  overflow: hidden;
  transform: rotate(4deg);
  pointer-events: none;
}

.hero-art::after {
  position: absolute;
  top: 25%;
  right: 20%;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255,255,255,.42);
  box-shadow: 0 0 18px 7px rgba(255,255,255,.13);
  content: "";
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 24px;
  padding: 8px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.045);
  color: var(--soft);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.eyebrow span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 18px rgba(255, 255, 255, 0.45);
}

.library-hero h1 {
  margin: 0;
  font-size: clamp(3.8rem, 7vw, 6.5rem);
  line-height: 0.91;
  letter-spacing: -0.068em;
}

.library-hero h1 span {
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.58);
}

.hero-copy > p {
  max-width: 620px;
  margin: clamp(24px, 3vw, 32px) 0 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.35vw, 1.18rem);
  line-height: 1.7;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: clamp(24px, 3vw, 30px); }

.button {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  padding: 13px 21px;
  border: 1px solid transparent;
  border-radius: 14px;
  cursor: pointer;
  font-weight: 800;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.button:hover { transform: translateY(-2px); }
.button-primary { background: #fff; color: #050505; }
.button-secondary { border-color: var(--line-strong); background: rgba(255,255,255,.055); color: #fff; }
.button-secondary:hover { background: rgba(255,255,255,.1); }
.button-whatsapp { border-color: rgba(255,255,255,.18); background: rgba(255,255,255,.08); color: #fff; }
.button-whatsapp:hover { border-color: rgba(255,255,255,.38); background: rgba(255,255,255,.13); }

.hero-meta {
  display: grid;
  grid-template-columns: 0.6fr 0.8fr 1.25fr;
  gap: 1px;
  margin-top: clamp(48px, 7vw, 76px);
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--line);
  overflow: hidden;
}

.hero-meta div { display: flex; flex-direction: column; padding: 20px 22px; background: rgba(8,8,8,.93); }
.hero-meta strong { font-family: "Space Mono", monospace; font-size: 1rem; }
.hero-meta span { color: var(--muted); font-size: 0.82rem; }

.library-section {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
  padding: clamp(64px, 8vw, 92px) 0 clamp(88px, 10vw, 118px);
}

.section-intro {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 34px;
}

.kicker {
  display: block;
  margin-bottom: 12px;
  color: var(--muted);
  font-family: "Space Mono", monospace;
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.section-intro h2, .closing-section h2 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(2.2rem, 5vw, 4.5rem);
  line-height: 1;
  letter-spacing: -0.055em;
}

.search-field {
  display: flex;
  width: min(100%, 300px);
  min-height: 50px;
  align-items: center;
  gap: 10px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255,255,255,.045);
  color: var(--muted);
}

.search-field svg { fill: none; stroke: currentColor; stroke-linecap: round; stroke-width: 1.8; }
.search-field input { width: 100%; border: 0; outline: 0; background: transparent; color: #fff; font-size: 0.92rem; }
.search-field input::placeholder { color: #7d7d7d; }
.search-field:focus-within { border-color: rgba(255,255,255,.38); }

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

.prompt-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: clamp(24px, 3vw, 36px);
  border: 1px solid var(--line);
  border-radius: 26px;
  background: linear-gradient(145deg, rgba(255,255,255,.08), rgba(255,255,255,.025));
  box-shadow: 0 20px 70px rgba(0,0,0,.23);
  overflow: hidden;
}

.prompt-card::before {
  position: absolute;
  inset: 0;
  background: radial-gradient(400px circle at var(--mx, 50%) var(--my, 0%), rgba(255,255,255,.09), transparent 42%);
  content: "";
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease;
}

.prompt-card:hover::before { opacity: 1; }
.prompt-card-featured { grid-column: 1 / -1; }
.prompt-card-wide { grid-column: 1 / -1; }
.prompt-card[hidden] { display: none; }

.card-top { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.prompt-number { color: #828282; font-family: "Space Mono", monospace; font-size: 0.86rem; }
.tags { display: flex; flex-wrap: wrap; justify-content: end; gap: 7px; }
.tags span { padding: 5px 9px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); font-size: 0.72rem; }

.prompt-card h3 {
  position: relative;
  z-index: 1;
  margin: 48px 0 20px;
  font-size: clamp(1.8rem, 3vw, 3rem);
  line-height: 1;
  letter-spacing: -0.045em;
}

.prompt-text {
  position: relative;
  z-index: 1;
  margin: 0 0 28px;
  color: #c0c0c0;
  font-size: 0.95rem;
  line-height: 1.75;
  white-space: pre-line;
}

.prompt-card-featured .prompt-text { max-width: 980px; }
.prompt-card-wide .prompt-text { max-width: 960px; }

.copy-button {
  position: relative;
  z-index: 1;
  display: inline-flex;
  width: fit-content;
  min-height: 46px;
  align-items: center;
  gap: 9px;
  margin-top: auto;
  padding: 11px 15px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: rgba(255,255,255,.06);
  color: #fff;
  cursor: pointer;
  font-weight: 700;
  transition: 180ms ease;
}

.copy-button:hover { border-color: rgba(255,255,255,.42); background: rgba(255,255,255,.11); }
.copy-button svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-linejoin: round; stroke-width: 1.7; }
.copy-button.copied { background: #fff; color: #050505; }
.prompt-card-surveillance { border-color: rgba(167,255,131,.2); }
.prompt-card-surveillance .prompt-number { color: var(--green); }

.no-results { padding: 36px; border: 1px solid var(--line); border-radius: 20px; color: var(--muted); text-align: center; }

.closing-section {
  display: flex;
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto 90px;
  padding: clamp(38px, 7vw, 90px);
  border: 1px solid var(--line);
  border-radius: 30px;
  background: linear-gradient(135deg, rgba(255,255,255,.1), rgba(255,255,255,.025));
  box-shadow: var(--shadow);
  flex-direction: column;
  align-items: flex-start;
}

.closing-section p { max-width: 650px; margin: 22px 0 28px; color: var(--muted); font-size: 1.05rem; }

footer {
  display: grid;
  width: min(1180px, calc(100% - 36px));
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  margin: 0 auto;
  padding: 28px 0 42px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.84rem;
}

footer p { margin: 0; text-align: center; }
footer > span { text-align: right; }

.toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 30;
  padding: 13px 17px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: #fff;
  box-shadow: var(--shadow);
  color: #050505;
  font-size: 0.9rem;
  font-weight: 700;
  opacity: 0;
  transform: translateY(12px);
  transition: 180ms ease;
  pointer-events: none;
}

.toast.show { opacity: 1; transform: translateY(0); }
.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; }

@media (max-width: 980px) {
  .hero-main { grid-template-columns: minmax(0, 1fr) minmax(240px, .55fr); gap: 36px; }
  .library-hero h1 { font-size: clamp(3.7rem, 8vw, 5.4rem); }
  .prompt-grid { grid-template-columns: 1fr; }
  .prompt-card-featured, .prompt-card-wide { grid-column: auto; }
}

@media (max-width: 760px) {
  .library-hero { padding-top: 130px; }
  .hero-main { grid-template-columns: 1fr; gap: 42px; }
  .hero-art {
    width: 100%;
    max-width: none;
    aspect-ratio: 16 / 7;
    border-radius: 24px;
    justify-self: stretch;
    transform: none;
  }
  .hero-meta { grid-template-columns: 1fr; margin-top: 18px; }
  .hero-meta div { flex-direction: row; align-items: baseline; justify-content: space-between; padding: 13px 16px; }
  .section-intro { align-items: stretch; flex-direction: column; }
  .search-field { width: 100%; max-width: none; }
  footer { grid-template-columns: 1fr; text-align: left; }
  footer p { text-align: left; }
  footer > span { text-align: left; }
}

@media (max-width: 560px) {
  .site-header { top: 10px; width: calc(100% - 20px); }
  .brand span { display: none; }
  .site-header nav a { padding: 9px; font-size: .8rem; }
  .library-hero { width: calc(100% - 28px); padding-top: 118px; padding-bottom: 64px; }
  .library-hero h1 { font-size: clamp(3rem, 16vw, 4.6rem); line-height: .94; }
  .hero-copy > p { font-size: 1rem; line-height: 1.65; }
  .hero-actions { align-items: stretch; flex-direction: column; }
  .button { width: 100%; }
  .hero-art { aspect-ratio: 16 / 8; border-radius: 20px; }
  .library-section, .closing-section, footer { width: calc(100% - 28px); }
  .library-section { padding-top: 54px; }
  .prompt-card { padding: 24px; border-radius: 22px; }
  .prompt-card h3 { margin-top: 36px; }
  .toast { right: 14px; bottom: 14px; left: 14px; text-align: center; }
}

@media (max-width: 380px) {
  .site-header nav a { padding: 8px 7px; font-size: .76rem; }
  .library-hero h1 { font-size: clamp(2.7rem, 15vw, 3.5rem); }
  .eyebrow { padding: 7px 10px; font-size: .7rem; }
  .card-top { align-items: flex-start; }
  .tags { max-width: 75%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}
