:root {
  --bg: #08111f;
  --surface: rgba(10, 21, 39, 0.82);
  --surface-strong: #101f36;
  --surface-soft: #152845;
  --line: rgba(255, 255, 255, 0.12);
  --text: #f4f7fb;
  --muted: #b6c2d6;
  --accent: #67e8f9;
  --accent-strong: #22c55e;
  --shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Inter", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top, rgba(103, 232, 249, 0.16), transparent 30%),
    linear-gradient(180deg, #07101d 0%, #0e1726 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 32px 32px;
  pointer-events: none;
}

.page-shell {
  position: relative;
  width: min(1200px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 2rem 0 4rem;
}

.hero,
.section-heading,
.bonus-card,
.prompt-card {
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.hero {
  padding: 3rem;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: linear-gradient(145deg, rgba(10, 21, 39, 0.92), rgba(21, 40, 69, 0.72));
  box-shadow: var(--shadow);
}

.eyebrow,
.section-kicker,
.bonus-label,
.prompt-number,
.prompt-section-label {
  margin: 0;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.8rem;
  font-weight: 700;
}

.hero h1,
.section-heading h2,
.bonus-card h2,
.prompt-title {
  margin: 0;
}

.hero h1 {
  margin-top: 0.75rem;
  max-width: 12ch;
  font-size: clamp(2.4rem, 5vw, 4.75rem);
  line-height: 0.98;
}

.subheading {
  margin: 1rem 0 0;
  font-size: clamp(1.2rem, 2vw, 1.6rem);
  font-weight: 700;
  color: #dce8f8;
}

.intro {
  max-width: 62ch;
  margin: 1.25rem 0 0;
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--muted);
}

main {
  margin-top: 2rem;
}

.section-heading {
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  align-items: end;
  padding: 1.5rem 1.75rem;
  margin-bottom: 1.5rem;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(10, 21, 39, 0.76);
}

.section-heading h2,
.bonus-card h2 {
  margin-top: 0.5rem;
  font-size: clamp(1.5rem, 3vw, 2.2rem);
}

.section-copy,
.bonus-card p {
  margin: 0;
  max-width: 40ch;
  line-height: 1.7;
  color: var(--muted);
}

.prompt-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.25rem;
}

.prompt-card,
.bonus-card {
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.prompt-card {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1.25rem;
}

.prompt-section {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.download-block {
  padding: 1rem;
  border: 1px solid rgba(103, 232, 249, 0.2);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.025);
}

.card-top {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.prompt-title {
  font-size: 1.1rem;
  line-height: 1.35;
}

.prompt-description {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.download-block .prompt-description,
.download-block .prompt-placeholder {
  margin-top: 0.5rem;
}

.download-link {
  color: var(--accent);
  font-weight: 700;
  text-decoration-thickness: 2px;
  text-underline-offset: 0.2em;
}

.collapsible-prompt {
  overflow: hidden;
  transition: max-height 0.25s ease, opacity 0.2s ease, margin-top 0.2s ease;
}

.collapsible-prompt.is-collapsed {
  max-height: 0;
  opacity: 0;
  margin-top: 0;
}

.collapsible-prompt.is-expanded {
  max-height: 2400px;
  opacity: 1;
  margin-top: 0.25rem;
}

.prompt-placeholder {
  flex: 1;
  min-height: 120px;
  padding: 1rem;
  border: 1px dashed rgba(103, 232, 249, 0.35);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
  line-height: 1.6;
  white-space: pre-wrap;
}

.prompt-actions {
  display: flex;
  gap: 0.75rem;
}

.copy-button,
.toggle-prompt-button {
  border-radius: 999px;
  padding: 0.95rem 1rem;
  font: inherit;
  font-weight: 800;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

.copy-button {
  border: none;
  color: #04111e;
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
}

.toggle-prompt-button {
  border: 1px solid rgba(103, 232, 249, 0.35);
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
}

.copy-button:hover,
.copy-button:focus-visible,
.toggle-prompt-button:hover,
.toggle-prompt-button:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 16px 30px rgba(34, 197, 94, 0.24);
}

.copy-button:active,
.toggle-prompt-button:active {
  transform: translateY(0);
}

.copy-button.copied {
  opacity: 0.88;
}

.bonus-section {
  margin-top: 2rem;
}

.bonus-card {
  padding: 1.75rem;
}

.bonus-card .copy-button {
  margin-top: 1.25rem;
  width: fit-content;
}

#bonus-prompt-content {
  min-height: 220px;
}

@media (max-width: 1024px) {
  .prompt-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .page-shell {
    width: min(100% - 1rem, 1200px);
    padding-top: 0.75rem;
  }

  .hero,
  .section-heading,
  .bonus-card {
    padding: 1.4rem;
    border-radius: 20px;
  }

  .section-heading {
    flex-direction: column;
    align-items: start;
  }

  .prompt-grid {
    grid-template-columns: 1fr;
  }

  .prompt-placeholder {
    min-height: 100px;
  }

  .bonus-card .copy-button,
  .prompt-actions,
  .copy-button,
  .toggle-prompt-button {
    width: 100%;
  }

  .prompt-actions {
    flex-direction: column;
  }
}
