:root {
  --bg: #fbf7f1;
  --paper: #ffffff;
  --soft: #f4eefb;
  --ink: #20182f;
  --muted: #756d82;
  --line: rgba(47, 35, 74, 0.12);
  --purple: #7c3aed;
  --indigo: #4f46e5;
  --pink: #ec4899;
  --amber: #f59e0b;
  --mint: #10b981;
  --shadow: 0 22px 60px rgba(52, 35, 86, 0.12);
  --shadow-soft: 0 12px 30px rgba(52, 35, 86, 0.09);
  --radius-xl: 34px;
  --radius-lg: 24px;
  --radius-md: 16px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 8%, rgba(236, 72, 153, 0.14), transparent 28%),
    radial-gradient(circle at 84% 2%, rgba(124, 58, 237, 0.14), transparent 32%),
    linear-gradient(135deg, #fbf7f1 0%, #f8f5f8 45%, #f3efff 100%);
  font-family: "Trebuchet MS", "Segoe UI", sans-serif;
  line-height: 1.5;
}

.icon-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

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

body.modal-open {
  overflow: hidden;
}

.cursor-trail,
.cursor-comet {
  position: fixed;
  inset: 0;
  z-index: 120;
  pointer-events: none;
}

.cursor-trail {
  width: 100vw;
  height: 100vh;
}

.cursor-comet {
  top: 0;
  left: 0;
  width: 14px;
  height: 10px;
  border-radius: 999px;
  background: radial-gradient(ellipse at 65% 50%, rgba(255, 255, 255, 0.98) 0 15%, rgba(236, 72, 153, 0.86) 42%, rgba(124, 58, 237, 0) 74%);
  box-shadow:
    0 0 14px rgba(236, 72, 153, 0.42),
    0 0 26px rgba(124, 58, 237, 0.22);
  opacity: 0;
  transform: translate3d(-50%, -50%, 0) scale(0.9);
  transition: opacity 0.18s ease, transform 0.18s ease;
}

body.cursor-ready .cursor-comet {
  opacity: 1;
}

body.cursor-active .cursor-comet {
  transform: translate3d(-50%, -50%, 0) scale(1.35);
}

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

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

.container {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.section-pad {
  padding: 92px 0;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  transition: background 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  border-bottom: 1px solid transparent;
}

.site-header.scrolled {
  background: rgba(251, 247, 241, 0.74);
  backdrop-filter: blur(18px);
  border-color: var(--line);
  box-shadow: 0 10px 34px rgba(52, 35, 86, 0.08);
}

.nav-shell {
  height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 26px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 700;
  font-size: 1.18rem;
  letter-spacing: 0;
}

.logo-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: white;
  background: linear-gradient(135deg, var(--purple), var(--pink));
  box-shadow: 0 12px 26px rgba(124, 58, 237, 0.25);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 26px;
  color: #504760;
  font-size: 0.95rem;
}

.main-nav a:hover {
  color: var(--purple);
}

.nav-actions,
.hero-actions,
.model-row,
.feed-toolbar,
.load-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.primary-btn,
.secondary-btn,
.ghost-btn,
.copy-btn,
.text-btn {
  border: 0;
  border-radius: 999px;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.primary-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  color: white;
  background: linear-gradient(135deg, var(--purple), var(--indigo) 58%, var(--pink));
  box-shadow: 0 16px 34px rgba(124, 58, 237, 0.25);
}

.primary-btn.small {
  min-height: 40px;
  padding: 0 17px;
  font-size: 0.9rem;
}

.secondary-btn,
.ghost-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line);
}

.ghost-btn {
  min-height: 40px;
  padding: 0 17px;
}

.text-btn {
  background: transparent;
  color: var(--purple);
  padding: 8px 0;
}

.primary-btn:hover,
.secondary-btn:hover,
.ghost-btn:hover,
.copy-btn:hover {
  transform: translateY(-2px);
}

.hero {
  min-height: 690px;
  padding-top: 118px;
  padding-bottom: 56px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(360px, 0.76fr);
  gap: 44px;
  align-items: center;
}

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

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

h1,
h2,
h3 {
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.04;
  letter-spacing: 0;
}

h1 {
  max-width: 780px;
  margin-bottom: 18px;
  font-size: clamp(2.55rem, 4.8vw, 4.85rem);
}

h2 {
  margin-bottom: 14px;
  font-size: clamp(2rem, 4vw, 3.4rem);
}

h3 {
  margin-bottom: 10px;
  font-size: 1.22rem;
}

.hero-subtitle {
  max-width: 680px;
  color: var(--muted);
  font-size: 1.04rem;
}

.stats-grid {
  margin-top: 30px;
  display: grid;
  grid-template-columns: repeat(4, minmax(120px, 1fr));
  gap: 14px;
}

.stats-grid div {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.58);
}

.stats-grid strong {
  display: block;
  margin-bottom: 4px;
  font-size: 1.06rem;
}

.stats-grid span {
  color: var(--muted);
  font-size: 0.86rem;
}

.preview-card {
  overflow: hidden;
  border: 1px solid rgba(124, 58, 237, 0.16);
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.78);
  box-shadow: var(--shadow);
}

.preview-visual {
  position: relative;
  height: 300px;
  overflow: hidden;
  background:
    radial-gradient(circle at 20% 18%, rgba(255, 255, 255, 0.5), transparent 28%),
    linear-gradient(135deg, rgba(124, 58, 237, 0.16), rgba(236, 72, 153, 0.14));
}

.preview-visual img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center 38%;
}

.preview-visual::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 120px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.94));
  pointer-events: none;
}

.preview-content {
  position: relative;
  z-index: 2;
  margin-top: -52px;
  padding: 34px 24px 24px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0.92) 42%, rgba(255, 255, 255, 0.96));
  backdrop-filter: blur(12px);
}

.badge {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 11px;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 900;
  color: var(--purple);
  background: #f1e8ff;
}

.badge.pink {
  color: #be185d;
  background: #fce7f3;
}

.badge.free {
  color: #047857;
  background: #d1fae5;
}

.badge.pro {
  color: #92400e;
  background: #fef3c7;
}

.preview-content h2 {
  margin-top: 14px;
  font-size: 1.72rem;
}

.preview-content p,
.section-head p,
.library-card p,
.pack-card p,
.steps-grid p,
.cta-card p,
.site-footer p,
.prompt-card p {
  color: var(--muted);
}

.model-row {
  flex-wrap: wrap;
  margin: 18px 0;
}

.model-row span {
  padding: 7px 10px;
  border-radius: 999px;
  color: #574b6a;
  background: #f6f1fb;
  font-size: 0.78rem;
  font-weight: 800;
}

.copy-btn {
  width: 100%;
  min-height: 46px;
  color: white;
  background: var(--ink);
  margin-top: 8px;
}

.copy-btn.copied {
  background: var(--mint);
}

.tags-section {
  padding: 30px 0 10px;
}

.section-head {
  max-width: 760px;
  margin-bottom: 30px;
}

.section-head.inline {
  max-width: none;
  display: flex;
  justify-content: space-between;
  gap: 20px;
}

.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.tag-cloud button {
  min-height: 42px;
  padding: 0 17px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: #4e445d;
  background: rgba(255, 255, 255, 0.75);
  font-weight: 800;
  box-shadow: 0 8px 20px rgba(52, 35, 86, 0.05);
}

.tag-cloud button.active,
.tag-cloud button:hover {
  color: white;
  border-color: transparent;
  background: linear-gradient(135deg, var(--purple), var(--pink));
}

.feed-toolbar {
  justify-content: space-between;
  margin-bottom: 24px;
}

.tabs {
  display: inline-flex;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.75);
}

.tab {
  min-width: 94px;
  min-height: 38px;
  border: 0;
  border-radius: 999px;
  color: var(--muted);
  background: transparent;
  font-weight: 900;
}

.tab.active {
  color: white;
  background: var(--ink);
}

.result-count {
  margin: 0;
  color: var(--muted);
  font-weight: 800;
}

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

.prompt-card,
.library-card,
.pack-card,
.steps-grid article,
.cta-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: var(--shadow-soft);
}

.prompt-card {
  overflow: hidden;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.prompt-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 28px 70px rgba(52, 35, 86, 0.15);
}

.thumb {
  height: 280px;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 20% 18%, rgba(255, 255, 255, 0.48), transparent 26%),
    linear-gradient(135deg, rgba(124, 58, 237, 0.18), rgba(236, 72, 153, 0.16));
}

.thumb img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  transform: scale(1.01);
  transition: transform 0.35s ease, filter 0.35s ease;
}

.prompt-card:hover .thumb img {
  transform: scale(1.025);
  filter: saturate(1.1) contrast(1.04);
}

.thumb::before {
  display: none;
}

.prompt-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  position: relative;
  z-index: 3;
  margin-top: 0;
  padding: 18px 20px 18px;
  border-radius: 0 0 24px 24px;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: none;
  box-shadow: none;
}

.prompt-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.prompt-body h3 {
  min-height: 42px;
  margin-bottom: 8px;
  font-size: 1.12rem;
}

.prompt-body > p {
  min-height: 50px;
  margin-bottom: 12px;
  font-size: 0.94rem;
  line-height: 1.45;
}

.prompt-code {
  margin: 10px 0 12px;
  padding: 12px;
  border: 1px solid rgba(124, 58, 237, 0.14);
  border-radius: 16px;
  color: #4b3d62;
  background: #fbf8ff;
  font-family: "Segoe UI", "Trebuchet MS", Arial, sans-serif;
  font-size: 0.82rem;
  line-height: 1.45;
  height: 82px;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: rgba(124, 58, 237, 0.34) transparent;
}

.prompt-code::-webkit-scrollbar {
  width: 7px;
}

.prompt-code::-webkit-scrollbar-track {
  background: transparent;
}

.prompt-code::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(124, 58, 237, 0.26);
}

.prompt-body .model-row {
  min-height: 30px;
  margin: 8px 0 12px;
}

.prompt-body .model-row span {
  padding: 6px 10px;
}

.card-meta {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
  margin-top: 12px;
  color: var(--muted);
  font-size: 0.82rem;
}

.load-row {
  justify-content: center;
  margin-top: 34px;
}

.soft-band {
  background: rgba(255, 255, 255, 0.38);
  border-top: 1px solid rgba(124, 58, 237, 0.08);
  border-bottom: 1px solid rgba(124, 58, 237, 0.08);
}

.library-grid,
.pack-grid,
.steps-grid {
  display: grid;
  gap: 20px;
}

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

.library-card,
.pack-card,
.steps-grid article {
  padding: 24px;
}

.library-card span {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  border-radius: 18px;
  color: white;
  background: linear-gradient(135deg, var(--indigo), var(--pink));
}

.library-card span svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.library-card strong {
  display: block;
  margin-bottom: 14px;
}

.library-card em {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  color: #6d5b83;
  background: #f4eefb;
  font-size: 0.84rem;
  font-style: normal;
  font-weight: 900;
}

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

.pack-card {
  position: relative;
  display: flex;
  min-height: 288px;
  flex-direction: column;
  align-items: flex-start;
}

.pack-card .price {
  align-self: flex-end;
  display: inline-grid;
  place-items: center;
  width: 50px;
  height: 50px;
  margin-bottom: 20px;
  border-radius: 18px;
  color: white;
  background: var(--ink);
  font-weight: 900;
}

.pack-card small {
  display: block;
  margin: auto 0 18px;
  color: var(--muted);
  font-weight: 800;
}

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

.steps-grid span {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 18px;
  border-radius: 999px;
  color: white;
  background: linear-gradient(135deg, var(--purple), var(--pink));
  font-weight: 900;
}

.seo-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(300px, 0.72fr);
  gap: 28px;
  align-items: start;
}

.seo-copy {
  max-width: none;
  margin-bottom: 0;
}

.seo-copy p,
.seo-panel p,
.usecase-card p,
.faq-item p {
  color: var(--muted);
}

.seo-panel,
.usecase-card,
.faq-item {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: var(--shadow-soft);
}

.seo-panel {
  padding: 28px;
}

.seo-list {
  display: grid;
  gap: 12px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.seo-list li {
  position: relative;
  padding-left: 24px;
  color: #51465f;
}

.seo-list li::before {
  content: "";
  position: absolute;
  top: 0.68em;
  left: 0;
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--purple), var(--pink));
}

.usecase-grid,
.faq-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.usecase-card,
.faq-item {
  padding: 24px;
}

.usecase-card h3,
.faq-item h3 {
  font-size: 1.08rem;
}

.testimonials-section {
  background:
    radial-gradient(circle at 12% 18%, rgba(236, 72, 153, 0.1), transparent 30%),
    radial-gradient(circle at 92% 4%, rgba(79, 70, 229, 0.1), transparent 28%);
}

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

.testimonial-card {
  display: flex;
  min-height: 300px;
  flex-direction: column;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: var(--shadow-soft);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.testimonial-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 26px 64px rgba(52, 35, 86, 0.14);
}

.testimonial-card.featured {
  grid-column: span 2;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(244, 238, 251, 0.92)),
    radial-gradient(circle at 90% 18%, rgba(236, 72, 153, 0.18), transparent 32%);
}

.rating {
  margin-bottom: 18px;
  color: var(--amber);
  font-size: 0.96rem;
  letter-spacing: 0.08em;
}

.testimonial-card blockquote {
  margin: 0;
  color: #352a47;
  font-size: 1.03rem;
  line-height: 1.65;
}

.testimonial-card.featured blockquote {
  max-width: 760px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.28rem, 2vw, 1.72rem);
  line-height: 1.32;
}

.reviewer {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: auto;
  padding-top: 24px;
}

.avatar {
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  border-radius: 16px;
  object-fit: cover;
  object-position: center;
  background: #f4eefb;
  box-shadow: 0 8px 18px rgba(52, 35, 86, 0.14);
}

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

.reviewer small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 800;
}

.cta-section {
  padding: 92px 0;
}

.cta-card {
  padding: clamp(34px, 7vw, 76px);
  background:
    radial-gradient(circle at 92% 12%, rgba(236, 72, 153, 0.2), transparent 28%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.88), rgba(244, 238, 251, 0.92));
}

.cta-card h2 {
  max-width: 680px;
}

.cta-card p {
  max-width: 620px;
}

.site-footer {
  padding: 62px 0 34px;
  color: #e8e1f4;
  background: #20182f;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(260px, 0.6fr);
  gap: 30px;
  align-items: start;
}

.site-footer .logo {
  color: white;
  margin-bottom: 16px;
}

.site-footer h3 {
  font-size: 1rem;
}

.site-footer p,
.disclaimer {
  color: #bdb0cf;
}

.site-footer p {
  max-width: 620px;
}

.footer-contact {
  justify-self: end;
}

.footer-contact p {
  margin-bottom: 8px;
}

.disclaimer {
  margin-top: 34px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.88rem;
}

.search-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding: 110px 20px 20px;
  background: rgba(32, 24, 47, 0.42);
  backdrop-filter: blur(10px);
}

.search-modal.open {
  display: flex;
}

.search-panel {
  position: relative;
  width: min(680px, 100%);
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--paper);
  box-shadow: var(--shadow);
}

.close-search {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 999px;
  background: #f3eef8;
  font-size: 1.5rem;
}

.search-panel input {
  width: 100%;
  height: 56px;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  outline: none;
  color: var(--ink);
  background: #fbf8ff;
}

.search-panel input:focus {
  border-color: rgba(124, 58, 237, 0.5);
  box-shadow: 0 0 0 4px rgba(124, 58, 237, 0.1);
}

.recent-copy {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.78);
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 5px auto;
  background: var(--ink);
}

@media (max-width: 1040px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }

  .preview-card {
    max-width: 620px;
  }

  .stats-grid,
  .library-grid,
  .steps-grid,
  .usecase-grid,
  .faq-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .seo-grid {
    grid-template-columns: 1fr;
  }

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

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

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

  .testimonial-card.featured {
    grid-column: span 2;
  }

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

  .footer-contact {
    justify-self: start;
  }
}

@media (max-width: 1040px) {
  .cursor-trail,
  .cursor-comet {
    display: none;
  }

  .menu-toggle {
    display: block;
    margin-left: auto;
  }

  .main-nav {
    position: absolute;
    top: 78px;
    left: 20px;
    right: 20px;
    display: none;
    flex-direction: column;
    align-items: flex-start;
    padding: 22px;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: var(--shadow-soft);
  }

  .main-nav.open {
    display: flex;
  }

  .nav-actions {
    display: none;
  }

  .hero {
    min-height: auto;
    padding-top: 112px;
  }

  .section-pad,
  .cta-section {
    padding: 70px 0;
  }

  .feed-toolbar,
  .section-head.inline {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 620px) {
  .container {
    width: min(100% - 28px, 1180px);
  }

  h1 {
    font-size: 2.24rem;
    line-height: 1.08;
  }

  h2 {
    font-size: 1.78rem;
  }

  h3 {
    font-size: 1.08rem;
  }

  .hero {
    padding-top: 98px;
    padding-bottom: 42px;
  }

  .section-pad,
  .cta-section {
    padding: 56px 0;
  }

  .eyebrow {
    margin-bottom: 10px;
    font-size: 0.72rem;
  }

  .hero-subtitle {
    font-size: 0.98rem;
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .stats-grid,
  .prompt-grid,
  .library-grid,
  .pack-grid,
  .testimonial-grid,
  .steps-grid,
  .usecase-grid,
  .faq-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .testimonial-card.featured {
    grid-column: auto;
  }

  .stats-grid {
    gap: 10px;
    margin-top: 24px;
  }

  .stats-grid div {
    padding: 12px;
    border-radius: 18px;
  }

  .thumb {
    height: 220px;
  }

  .prompt-body {
    margin-top: 0;
    padding: 16px 18px 18px;
  }

  .prompt-top {
    flex-wrap: wrap;
  }

  .prompt-body h3,
  .prompt-body > p {
    min-height: 0;
  }

  .prompt-code {
    height: 76px;
  }

  .copy-btn {
    min-height: 44px;
  }

  .seo-panel,
  .usecase-card,
  .faq-item,
  .pack-card,
  .steps-grid article,
  .testimonial-card {
    padding: 20px;
  }

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

  .tabs {
    width: 100%;
  }

  .tab {
    flex: 1;
    min-width: 0;
  }

  .preview-visual {
    height: 230px;
  }

  .preview-content {
    margin-top: -30px;
    padding: 26px 20px 20px;
  }

  .preview-card {
    border-radius: 24px;
  }

  .search-panel {
    padding: 26px 22px;
    border-radius: 22px;
  }
}
