/* ── Custom Typography: Geomini (Headings) & Maison Neue (Body) ── */
@font-face {
  font-family: 'Geomini';
  src: url('./fonts/Geomini_latin-s.p.2j58wcs7_aiaj.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Maison Neue';
  src: url('./fonts/fonnts.com-Maison_Neue_Light.ttf') format('truetype');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Maison Neue';
  src: url('./fonts/fonnts.com-Maison_Neue_Book.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Maison Neue';
  src: url('./fonts/fonnts.com-Maison_Neue_Book.ttf') format('truetype');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Maison Neue';
  src: url('./fonts/fonnts.com-Maison_Neue_Bold.ttf') format('truetype');
  font-weight: 600 700 800 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Maison Neue Mono';
  src: url('./fonts/fonnts.com-Maison_Neue_Mono.ttf') format('truetype');
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

/* ── Precision Dark Palette ── */
:root {
  color-scheme: dark;

  /* Typography Design Tokens */
  --font-heading:     'Geomini', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-body:        'Maison Neue', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono:        'Maison Neue Mono', ui-monospace, 'SF Mono', Menlo, Consolas, monospace;

  /* Matte Charcoal Backgrounds & Deep Surfaces */
  --bg:               #0b0c10;
  --bg-subtle:        #0f1016;
  --surface:          #12131a;
  --surface-2:        #171922;
  --surface-3:        #1e202c;
  --surface-elevated:  #252837;

  /* Hairline Borders */
  --border:           rgba(255, 255, 255, 0.07);
  --border-hi:        rgba(255, 255, 255, 0.14);
  --border-glow:      rgba(239, 35, 60, 0.4);

  /* Modern Neutral Typography */
  --text:             #ffffff;
  --text-2:           #c7cbd9;
  --muted:            #8a90a4;
  --muted-dark:       #535768;

  /* Vibrant Accent Palette (Ref: Cherry / Crimson Red) */
  --primary:          #ef233c;
  --primary-hover:    #d90429;
  --primary-glow:     rgba(239, 35, 60, 0.22);
  --accent:           #ef233c;
  --accent-blue:      #3b82f6;
  --pink:             #f43f5e;
  --purple:           #8b5cf6;

  /* Shape tokens: crisp 5px modern geometry */
  --radius:           5px;
  --radius-sm:        4px;
  --radius-xs:        3px;
  --radius-pill:      5px;

  /* Constrained layout width */
  --w:                1140px;
}

/* ── CSS Reset ── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
[hidden] { display: none !important; }
html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

/* Headings: Geomini */
h1, h2, h3, h4, h5, h6,
.hero h1,
.feat-title,
.block-head h2,
.cat-body h3,
.cat-hero h1,
.scene-hero h1,
.variant-top h2,
.how-card h3,
.directory h2,
.prose h1,
.prose h2,
.footer-nav-col h4,
.footer-newsletter h4,
.cal-month h3,
.logo,
.footer-logo-text {
  font-family: var(--font-heading);
}

button, input, select, textarea {
  font-family: inherit;
}

/* Subtle background spotlight glow */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 1000px;
  height: 550px;
  background: radial-gradient(ellipse at 50% 0%, rgba(239, 35, 60, 0.05) 0%, rgba(20, 24, 40, 0.08) 50%, transparent 80%);
  pointer-events: none;
  z-index: 0;
}

a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; }
img { display: block; max-width: 100%; }

main {
  max-width: var(--w);
  margin: 0 auto;
  padding: 0 24px 80px;
  position: relative;
  z-index: 1;
}

/* ═══════════════════════════════════
   TOPBAR (Improved Header)
═══════════════════════════════════ */
.topbar {
  position: sticky;
  top: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 max(24px, calc((100vw - var(--w)) / 2 + 24px));
  height: 58px;
  background: rgba(11, 12, 16, 0.90);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  border-bottom: 1px solid var(--border);
}

.topbar-brand {
  display: flex;
  align-items: center;
  gap: 22px;
}

.logo {
  font-weight: 600;
  font-size: 16px;
  display: flex;
  align-items: center;
  gap: 9px;
  letter-spacing: -0.02em;
  white-space: nowrap;
  color: #ffffff;
}
.logo-mark {
  display: inline-grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 5px;
  background: linear-gradient(135deg, #ef233c, #be123c);
  color: #fff;
  font-size: 13px;
  box-shadow: 0 2px 10px rgba(239, 35, 60, 0.35);
  flex-shrink: 0;
}

/* Nav links in header */
.topbar-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav-item {
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  padding: 5px 10px;
  border-radius: 5px;
  transition: all 0.15s;
}
.nav-item:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.05);
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Model Switcher */
.model-switch {
  display: flex;
  background: #13151f;
  border: 1px solid var(--border);
  border-radius: 5px;
  padding: 2.5px;
  gap: 2px;
  overflow-x: auto;
  scrollbar-width: none;
  max-width: 100%;
}
.model-switch::-webkit-scrollbar { display: none; }
.model-switch button {
  background: transparent;
  color: var(--muted);
  padding: 5px 11px;
  border-radius: 4px;
  font-weight: 500;
  font-size: 12px;
  white-space: nowrap;
  transition: color 0.15s, background 0.15s;
}
.model-switch button:hover:not(.active) {
  color: var(--text-2);
  background: var(--surface-3);
}
.model-switch button.active {
  background: #ffffff;
  color: #0b0c10;
  font-weight: 600;
  border-radius: 4px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.25);
}

.saved-link {
  font-weight: 500;
  font-size: 12.5px;
  color: var(--muted);
  white-space: nowrap;
  transition: all 0.15s;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 5.5px 12px;
  border-radius: 5px;
  background: #13151f;
  border: 1px solid var(--border);
}
.saved-link .heart-icon { color: var(--primary); }
.saved-link:hover {
  color: var(--text);
  border-color: var(--border-hi);
  background: var(--surface-3);
}
.saved-link span#savedCount {
  background: #d61a33;
  color: #fff;
  border-radius: 3px;
  padding: 1px 6px;
  font-size: 10.5px;
  font-weight: 600;
  min-width: 16px;
  text-align: center;
}

/* ═══════════════════════════════════
   HERO (Matching Reference Design)
═══════════════════════════════════ */
.hero {
  text-align: center;
  padding: 72px 0 36px;
  position: relative;
}

/* Floating Squircle App Badge (Like the "Ai Prompts" badge in reference) */
.hero-app-badge {
  display: flex;
  justify-content: center;
  margin-bottom: 24px;
}
.app-squircle {
  width: 72px;
  height: 72px;
  border-radius: 20px;
  background: linear-gradient(145deg, #1f222e 0%, #0e1017 100%);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5), 0 0 40px rgba(239, 35, 60, 0.18);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.app-squircle::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 45%;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08) 0%, transparent 100%);
  border-radius: 20px 20px 0 0;
}
.app-icon {
  font-size: 24px;
  font-weight: 700;
  color: #ffffff;
  line-height: 1;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.4));
}
.app-sub {
  font-size: 8.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: #2563eb;
  color: #ffffff;
  padding: 2px 6px;
  border-radius: 4px;
  margin-top: 5px;
}

/* Semi-bold Headline */
.hero h1 {
  font-size: clamp(32px, 4.8vw, 48px);
  font-weight: 600; /* Semi-bold */
  line-height: 1.16;
  letter-spacing: -0.025em;
  color: #ffffff;
  margin-bottom: 16px;
}
.hero-subline {
  font-weight: 400;
  color: var(--text-2);
  font-size: 0.82em;
}

.hero p {
  color: var(--muted);
  font-size: 15.5px;
  max-width: 580px;
  margin: 0 auto 28px;
  line-height: 1.65;
  font-weight: 400;
}

/* Hero Action Buttons (Reference: Sell prompts / Explore >) */
.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 28px;
}
.btn-pri {
  background: var(--primary);
  background: linear-gradient(135deg, #dc1e36 0%, #d90429 100%);
  color: #ffffff;
  padding: 11px 24px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.18s;
  box-shadow: 0 4px 16px rgba(239, 35, 60, 0.35);
}
.btn-pri:hover {
  background: linear-gradient(135deg, #d61a33 0%, #be123c 100%);
  transform: translateY(-1px);
  box-shadow: 0 6px 22px rgba(239, 35, 60, 0.45);
}
.btn-sec {
  background: #191b24;
  color: var(--text-2);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 11px 22px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.18s;
}
.btn-sec:hover {
  background: #20232e;
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.18);
  transform: translateY(-1px);
}

/* Search Bar */
.search-wrap {
  max-width: 540px;
  margin: 0 auto;
  position: relative;
}
.search-wrap::before {
  content: '⌕';
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 20px;
  color: var(--muted);
  pointer-events: none;
  z-index: 1;
}
#search {
  width: 100%;
  padding: 14px 20px 14px 48px;
  font: 500 14.5px var(--font-body);
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}
#search::placeholder {
  color: var(--muted);
  font-weight: 400;
}
#search:focus {
  background: var(--surface-2);
  border-color: rgba(239, 35, 60, 0.45);
  box-shadow: 0 0 0 3px rgba(239, 35, 60, 0.12), 0 4px 20px rgba(0, 0, 0, 0.4);
}

/* Upcoming Pill */
.next-event {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 20px;
  padding: 8px 18px;
  border-radius: var(--radius-pill);
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text-2);
  font-size: 13px;
  font-weight: 500;
  transition: all 0.18s;
}
.next-event:hover {
  background: var(--surface-3);
  border-color: var(--border-hi);
  color: #ffffff;
  transform: translateY(-1px);
}
.next-event b { color: #ffffff; font-weight: 600; }

/* ═══════════════════════════════════
   THE PROPER FEATURE BLOCK (Reference)
═══════════════════════════════════ */
.feature-block-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: linear-gradient(180deg, rgba(239, 35, 60, 0.03) 0%, var(--bg-subtle) 40%, var(--bg-subtle) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  margin: 44px 0 20px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(239, 35, 60, 0.12);
}

.feature-col {
  padding: 30px 24px;
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  transition: background 0.2s;
  background: transparent;
}
.feature-col:last-child {
  border-right: none;
}
.feature-col:hover {
  background: rgba(255, 255, 255, 0.02);
}

.feat-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  display: grid;
  place-items: center;
  color: #ffffff;
  font-size: 15px;
  margin-bottom: 18px;
}
.feat-title {
  font-size: 15px;
  font-weight: 600; /* Semi-bold */
  color: #ffffff;
  letter-spacing: -0.015em;
  margin-bottom: 10px;
}
.feat-desc {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.55;
  margin-bottom: 22px;
  flex: 1;
}
.feat-link {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-2);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: color 0.15s, transform 0.15s;
}
.feat-link:hover {
  color: var(--primary);
  transform: translateX(2px);
}

/* ═══════════════════════════════════
   SECTION BLOCKS
═══════════════════════════════════ */
.block {
  margin-top: 54px;
}

/* Section Header */
.block-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 22px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}
.block-head h2 {
  font-size: 20px;
  font-weight: 600; /* Semi-bold */
  letter-spacing: -0.02em;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 10px;
}

/* "Full calendar" toggle */
.link-btn {
  font-size: 12.5px;
  font-weight: 500;
  color: var(--muted);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  padding: 6px 14px;
  background: var(--surface-2);
  transition: all 0.15s;
  white-space: nowrap;
}
.link-btn:hover {
  color: #ffffff;
  border-color: var(--border-hi);
  background: var(--surface-3);
}

.upcoming .sub {
  color: var(--muted);
  font-size: 13px;
  margin-top: -12px;
  margin-bottom: 18px;
}

/* ═══════════════════════════════════
   CATEGORY CARDS (Modern Minimal Matte)
═══════════════════════════════════ */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(255px, 1fr));
  gap: 18px;
}

.cat-card {
  background: linear-gradient(180deg, rgba(239, 35, 60, 0.03) 0%, #13141d 40%, #0e1017 100%);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.25), inset 0 1px 0 rgba(239, 35, 60, 0.1);
  transition: transform 0.22s cubic-bezier(.22, 1, .36, 1),
              box-shadow 0.22s ease,
              border-color 0.22s ease;
  display: flex;
  flex-direction: column;
}
.cat-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.5), 0 0 20px rgba(239, 35, 60, 0.08);
  border-color: rgba(239, 35, 60, 0.28);
}

.cat-art {
  height: 124px;
  background: var(--g);
  display: grid;
  place-items: center;
  font-size: 50px;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}
.cat-art::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(11, 12, 16, 0.75) 100%);
}
.cat-art span {
  position: relative;
  z-index: 1;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.35));
  transition: transform 0.28s cubic-bezier(.34, 1.4, .64, 1);
}
.cat-card:hover .cat-art span {
  transform: scale(1.12);
}
.cat-art.has-img {
  background-size: cover;
  background-position: center;
}
.cat-art.has-img span { display: none; }

.cat-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.cat-body h3 {
  font-size: 15.5px;
  font-weight: 600; /* Semi-bold */
  letter-spacing: -0.015em;
  color: #ffffff;
  margin: 9px 0 5px;
  line-height: 1.35;
}
.cat-body p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
  margin-bottom: 14px;
  flex: 1;
}
.count {
  font-size: 12.5px;
  font-weight: 500;
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: gap 0.18s;
}
.cat-card:hover .count { gap: 7px; }

/* ═══════════════════════════════════
   BADGES
═══════════════════════════════════ */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 500;
  padding: 2px 7.5px;
  border-radius: 3px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--muted);
}
.badge + .badge { margin-left: 4px; }
.badge.hot {
  background: rgba(239, 35, 60, 0.12);
  color: #ff4d64;
  border: 1px solid rgba(239, 35, 60, 0.28);
}

/* ═══════════════════════════════════
   CHIPS (Country & Style Filter Tabs)
═══════════════════════════════════ */
.chips {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 6px 0 22px;
  scrollbar-width: none;
}
.chips::-webkit-scrollbar { display: none; }

.chip {
  flex: none;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-2);
  padding: 7px 15px;
  border-radius: 6px;
  font-size: 12.5px;
  font-weight: 500;
  white-space: nowrap;
  transition: all 0.15s ease;
}
.chip:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.16);
  color: #ffffff;
}
.chip.active {
  background: #ffffff;
  color: #0b0c10;
  font-weight: 600;
  border-color: transparent;
  border-radius: 6px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
}

/* ═══════════════════════════════════
   PROMPT CARDS (Minimal UI & Tactile Film Grain)
═══════════════════════════════════ */
.prompt-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(330px, 1fr));
  gap: 20px;
  margin-top: 10px;
  margin-bottom: 36px;
}

.prompt {
  display: flex;
  flex-direction: column;
  padding: 16px;
  background:
    radial-gradient(ellipse at 85% 0%, rgba(239, 35, 60, 0.045) 0%, transparent 60%),
    linear-gradient(180deg, rgba(239, 35, 60, 0.025) 0%, #12141d 35%, #0e1017 100%);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 8px;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.28), inset 0 1px 0 rgba(239, 35, 60, 0.12);
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.2s ease,
              box-shadow 0.2s ease;
  position: relative;
}
.prompt:hover {
  transform: translateY(-3px);
  border-color: rgba(239, 35, 60, 0.28);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.5), 0 0 20px rgba(239, 35, 60, 0.08), inset 0 1px 0 rgba(239, 35, 60, 0.2);
}

.prompt-img {
  margin: -16px -16px 14px -16px;
  border-top-left-radius: 8px;
  border-top-right-radius: 8px;
  overflow: hidden;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}
.prompt-img img {
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
  display: block;
}

.prompt-head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 0 10px 0;
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  color: #8c91a3;
}
.prompt-head .emoji { font-size: 14px; opacity: 0.9; }
.prompt-head .num {
  font-weight: 500;
  font-size: 11.5px;
  color: #828799;
  letter-spacing: 0.01em;
}
.cat-tag {
  margin-left: auto;
  font-size: 10.5px;
  font-weight: 500;
  background: rgba(239, 35, 60, 0.08);
  border: 1px solid rgba(239, 35, 60, 0.18);
  padding: 2px 8px;
  border-radius: 4px;
  color: #e58390;
  transition: all 0.15s;
}
.cat-tag:hover {
  background: rgba(239, 35, 60, 0.16);
  color: #ff9fa9;
}

.prompt h3, .prompt h4 {
  margin: 11px 0 11px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.4;
  color: #f7f8fc;
}
.prompt h3 a {
  color: inherit;
  transition: color 0.15s;
}
.prompt h3 a:hover {
  color: var(--primary);
}

.prompt-text {
  margin: 0;
  padding: 13px 14px;
  flex: 1;
  font-size: 12px;
  color: #9ba0b2;
  line-height: 1.68;
  background-color: #090a0f;
  background-image:
    radial-gradient(ellipse at 50% 0%, rgba(239, 35, 60, 0.035) 0%, transparent 75%),
    url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='matrix' values='1 0 0 0 0  0 1 0 0 0  0 0 1 0 0  0 0 0 0.06 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 6px;
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.45);
  font-family: var(--font-mono);
  word-break: break-word;
}

.prompt-actions {
  display: flex;
  gap: 8px;
  margin-top: 13px;
  padding: 0;
}

/* ═══════════════════════════════════
   BUTTONS
═══════════════════════════════════ */
.btn {
  border-radius: 6px;
  padding: 8px 14px;
  font-weight: 500;
  font-size: 12.5px;
  background: #ffffff;
  color: #0b0c10;
  transition: transform 0.1s, opacity 0.1s, background 0.15s;
}
.btn:active { transform: scale(0.97); }

.btn.copy {
  flex: 1;
  background: rgba(255, 255, 255, 0.05);
  color: #eaedf7;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  padding: 9px 13px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.01em;
  transition: all 0.18s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.btn.copy:hover {
  background: rgba(239, 35, 60, 0.15);
  border-color: rgba(239, 35, 60, 0.38);
  color: #ffffff;
  box-shadow: 0 2px 10px rgba(239, 35, 60, 0.18);
}
.btn.copy.done {
  background: rgba(16, 185, 129, 0.18);
  border-color: rgba(16, 185, 129, 0.45);
  color: #34d399;
}

.btn.icon {
  width: 36px;
  height: 36px;
  padding: 0;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #83889c;
  font-size: 14px;
  border-radius: 6px;
  transition: all 0.18s ease;
}
.btn.icon:hover {
  background: rgba(239, 35, 60, 0.12);
  border-color: rgba(239, 35, 60, 0.35);
  color: #ff4d64;
}
.btn.icon.on {
  background: rgba(239, 35, 60, 0.16);
  color: #ff4d64;
  border-color: rgba(239, 35, 60, 0.4);
}

.btn.more {
  margin-top: 24px;
  padding: 9px 24px;
  background: transparent;
  color: var(--text-2);
  border: 1px solid var(--border);
  border-radius: 5px;
  font-size: 13px;
  font-weight: 500;
  transition: all 0.18s;
}
.btn.more:hover {
  background: var(--surface-2);
  border-color: var(--border-hi);
  color: #ffffff;
}
a.btn.more { display: inline-block; }

/* ═══════════════════════════════════
   TIMELINE (Coming Up)
═══════════════════════════════════ */
.timeline {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding: 2px 0 14px;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  scrollbar-color: var(--surface-3) transparent;
}
.tl-card {
  flex: 0 0 216px;
  scroll-snap-align: start;
  display: flex;
  gap: 12px;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 5px;
  padding: 12px;
  transition: transform 0.2s cubic-bezier(.22, 1, .36, 1), border-color 0.2s, box-shadow 0.2s;
}
.tl-card:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.18);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}
.tl-card.soon {
  border-color: rgba(239, 35, 60, 0.25);
}

.tl-date {
  flex: none;
  width: 48px;
  border-radius: 4px;
  background: var(--g);
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 7px 0;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}
.tl-mon {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  opacity: 0.85;
}
.tl-day {
  font-size: 20px;
  font-weight: 700;
  line-height: 1.1;
}
.tl-dow {
  font-size: 9px;
  opacity: 0.8;
}

.tl-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}
.tl-name {
  font-weight: 600; /* Semi-bold */
  font-size: 13.5px;
  line-height: 1.3;
  color: #ffffff;
}
.tl-emoji { margin-right: 4px; }
.tl-meta { font-size: 11.5px; color: var(--muted); }
.tl-info .badge { align-self: flex-start; margin-top: 1px; }

/* Calendar */
.calendar {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 14px;
}
.cal-month {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
}
.cal-month h3 {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 10px;
}
.cal-month ul { list-style: none; }
.cal-month li a {
  display: grid;
  grid-template-columns: 42px 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 8px 0;
  border-top: 1px solid var(--border);
  font-size: 13px;
  transition: color 0.12s;
}
.cal-month li:first-child a { border-top: 0; }
.cal-month li a:hover .cal-name { color: var(--primary); }
.cal-day {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 10px;
  color: var(--muted);
}
.cal-day b {
  font-size: 16px;
  color: var(--text);
  font-weight: 700;
  line-height: 1.2;
}
.cal-name { font-weight: 500; }
.cal-when { font-size: 11px; color: var(--muted); white-space: nowrap; }

/* ═══════════════════════════════════
   CATEGORY HERO PAGE
═══════════════════════════════════ */
.cat-hero {
  margin-top: 16px;
  margin-bottom: 22px;
  padding: 30px 32px;
  border-radius: 8px;
  background:
    radial-gradient(ellipse at 85% 15%, rgba(239, 35, 60, 0.08) 0%, transparent 60%),
    linear-gradient(145deg, rgba(239, 35, 60, 0.04) 0%, #12141c 40%, #0e0f16 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #fff;
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(239, 35, 60, 0.14);
}
.cat-hero::before {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 450px; height: 100%;
  background: var(--g);
  opacity: 0.10;
  filter: blur(45px);
  pointer-events: none;
}
.back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 500;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 14px;
  transition: color 0.15s;
}
.back:hover { color: #ffffff; }
.back.dark { color: var(--muted); }
.back.dark:hover { color: #ffffff; }

.cat-hero-row { display: flex; gap: 22px; align-items: center; position: relative; z-index: 1; }
.big-emoji {
  font-size: 54px;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.4));
  flex-shrink: 0;
}
.cat-hero h1 {
  margin: 6px 0 6px;
  font-size: clamp(22px, 3.4vw, 30px);
  font-weight: 600; /* Semi-bold */
  letter-spacing: -0.02em;
  line-height: 1.25;
  color: #ffffff;
}
.cat-hero p { color: var(--muted); font-size: 13.5px; }
.cat-hero p b { color: #ffffff; }
.cat-hero .badge {
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text-2);
  border-radius: 3px;
  font-size: 10.5px;
}
.cat-hero .intro {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 13.5px;
  color: #9297aa;
  max-width: 840px;
  line-height: 1.65;
  position: relative;
  z-index: 1;
}

/* Scene hero */
.scene-hero {
  margin-top: 16px;
  margin-bottom: 22px;
  padding: 30px 32px;
  border-radius: 8px;
  background:
    radial-gradient(ellipse at 85% 15%, rgba(239, 35, 60, 0.08) 0%, transparent 60%),
    linear-gradient(145deg, rgba(239, 35, 60, 0.04) 0%, #12141c 40%, #0e0f16 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #fff;
  display: flex;
  gap: 24px;
  align-items: center;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(239, 35, 60, 0.14);
}
.scene-hero::before {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 450px; height: 100%;
  background: var(--g);
  opacity: 0.12;
  filter: blur(40px);
  pointer-events: none;
}
.scene-hero .badge {
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text-2);
  border-radius: 3px;
}
.scene-hero h1 {
  margin: 6px 0 5px;
  font-size: clamp(20px, 3.2vw, 28px);
  font-weight: 600; /* Semi-bold */
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: #ffffff;
}
.scene-hero .lead { color: var(--muted); font-size: 14px; }
.scene-desc {
  margin-top: 12px;
  padding: 10px 14px;
  background: rgba(0, 0, 0, .3);
  border: 1px solid var(--border);
  border-radius: 4px;
  font-size: 13px;
  color: #9da2b4;
}
.jump { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.jump a {
  font-size: 12px;
  font-weight: 500;
  padding: 4px 10px;
  border-radius: 4px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text-2);
  transition: all 0.15s;
}
.jump a:hover {
  background: var(--surface-3);
  color: #ffffff;
}
.scene-hero-img {
  width: 180px;
  aspect-ratio: 4/5;
  object-fit: cover;
  border-radius: 5px;
  flex: none;
  box-shadow: 0 12px 36px rgba(0, 0, 0, .6);
}

/* ═══════════════════════════════════
   VARIANT / SCENE PAGES
═══════════════════════════════════ */
.variants { display: grid; gap: 16px; margin-top: 20px; }
.variant {
  display: grid;
  grid-template-columns: 190px 1fr;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  scroll-margin-top: 72px;
  transition: border-color 0.2s;
}
.variant:target {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(239, 35, 60, 0.15);
}
.variant-media {
  position: relative;
  background: var(--g);
  display: grid;
  place-items: center;
  min-height: 190px;
}
.variant-media img { width: 100%; height: 100%; object-fit: cover; }
.variant-emoji { font-size: 56px; filter: drop-shadow(0 4px 10px rgba(0, 0, 0, .3)); }
.img-note {
  position: absolute;
  left: 8px;
  bottom: 8px;
  font-size: 10.5px;
  color: #fff;
  background: rgba(0, 0, 0, .5);
  padding: 2px 9px;
  border-radius: var(--radius-pill);
}
.variant-body { padding: 18px; }
.variant-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.variant-top h2 {
  font-size: 16.5px;
  font-weight: 600; /* Semi-bold */
  letter-spacing: -0.015em;
  color: #ffffff;
}
.variant-body .muted { margin: 4px 0 12px; font-size: 13.5px; }

/* Tabs */
.tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 10px; }
.tabs button {
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--muted);
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  font-size: 12.5px;
  font-weight: 500;
  transition: all 0.15s;
}
.tabs button:hover {
  border-color: var(--border-hi);
  color: var(--text-2);
}
.tabs button.active {
  background: #ffffff;
  color: #0b0c10;
  font-weight: 600;
  border-color: transparent;
}
.panel-text {
  margin-bottom: 10px;
  padding: 12px 14px;
  font-size: 12.5px;
  color: #9da2b4;
  line-height: 1.65;
  background: #090a0e;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
}
.tab-panel .btn.copy { width: 100%; }

/* ═══════════════════════════════════
   HOW / FAQ / GRIDS
═══════════════════════════════════ */
.how-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}
.how-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
}
.how-card h3 {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 8px;
  color: #ffffff;
}
.how-card ol, .tips {
  padding-left: 18px;
  color: var(--muted);
  font-size: 13.5px;
}
.how-card li, .tips li { margin: 5px 0; }

.faq details {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  margin-bottom: 8px;
  transition: border-color 0.15s;
}
.faq details:hover {
  border-color: var(--border-hi);
}
.faq summary {
  font-weight: 600;
  cursor: pointer;
  font-size: 14.5px;
  color: #ffffff;
}
.faq details p {
  margin-top: 10px;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.6;
}

.link-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 10px;
}
.link-grid a {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 12px 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 13.5px;
  font-weight: 500;
  transition: all 0.15s;
}
.link-grid a:hover {
  background: var(--surface-2);
  border-color: var(--border-hi);
  color: #ffffff;
}

.directory {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
  max-width: var(--w);
  margin: 0 auto 24px;
  text-align: left;
}
.directory h2 {
  font-size: 11.5px;
  color: var(--muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 10px;
}
.directory ul { list-style: none; columns: 2; column-gap: 14px; }
.directory li { margin: 4px 0; break-inside: avoid; }
.directory a {
  font-size: 13px;
  color: var(--muted);
  transition: color 0.12s;
}
.directory a:hover { color: #ffffff; }

/* ═══════════════════════════════════
   PROSE / EDITORIAL
═══════════════════════════════════ */
.prose { max-width: 740px; margin: 12px auto 0; }
.prose h1 {
  font-size: clamp(26px, 4vw, 38px);
  line-height: 1.15;
  margin-bottom: 12px;
  letter-spacing: -0.025em;
  font-weight: 600; /* Semi-bold */
  color: #ffffff;
}
.prose h2 {
  font-size: 20px;
  font-weight: 600;
  margin: 32px 0 10px;
  letter-spacing: -0.02em;
  color: #ffffff;
}
.prose p, .prose li {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.7;
}
.prose .lead {
  font-size: 16.5px;
  color: var(--text-2);
  line-height: 1.75;
}
.prose a:not(.btn) {
  color: var(--primary);
  font-weight: 500;
}
.prose code {
  background: var(--surface-2);
  padding: 2px 6px;
  border-radius: 5px;
  font-size: .88em;
  border: 1px solid var(--border);
}
.table-wrap {
  overflow-x: auto;
  margin: 18px 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.prose table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
  min-width: 600px;
}
.prose th, .prose td {
  text-align: left;
  padding: 11px 14px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
.prose thead th {
  background: var(--surface-2);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
}
.prose tbody tr:last-child > * { border-bottom: 0; }
.legal { margin-bottom: 14px; font-size: 13.5px; }
.legal a { color: var(--text-2); font-weight: 500; }
.legal a:hover { color: #ffffff; }

/* ═══════════════════════════════════
   UTILITIES
═══════════════════════════════════ */
.center { text-align: center; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.crumbs { padding: 18px 0 0; font-size: 13px; color: var(--muted); }
.crumbs a { color: var(--text-2); font-weight: 500; }
.crumbs a:hover { color: #ffffff; }

/* ═══════════════════════════════════
   FOOTER (Modern Reference Design)
═══════════════════════════════════ */
.footer {
  background: #08090d;
  border-top: 1px solid var(--border);
  margin-top: 72px;
  padding: 68px 0 36px;
  color: var(--muted);
}

.footer-wrap {
  max-width: var(--w);
  margin: 0 auto;
  padding: 0 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 0.8fr 0.8fr 1.6fr;
  gap: 36px;
  align-items: start;
}

/* Brand column */
.footer-brand {
  display: flex;
  flex-direction: column;
}
.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-weight: 600;
  font-size: 17px;
  color: #ffffff;
  letter-spacing: -0.02em;
  margin-bottom: 14px;
}
.footer-logo-mark {
  display: inline-grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 6px;
  background: linear-gradient(135deg, #ef233c, #be123c);
  color: #fff;
  font-size: 13px;
  flex-shrink: 0;
}
.footer-desc {
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.6;
  max-width: 280px;
  margin-bottom: 22px;
}

/* Nav columns */
.footer-nav-col h4 {
  font-size: 14px;
  font-weight: 600;
  color: #ffffff;
  letter-spacing: -0.01em;
  margin-bottom: 18px;
}
.footer-nav-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 11px;
}
.footer-nav-col a {
  font-size: 13.5px;
  color: var(--muted);
  transition: color 0.15s;
}
.footer-nav-col a:hover {
  color: #ffffff;
}

/* Newsletter section (Matching Reference Image) */
.footer-newsletter h4 {
  font-size: 14px;
  font-weight: 600;
  color: #ffffff;
  letter-spacing: -0.01em;
  margin-bottom: 18px;
}

/* Bottom copyright / disclaimer bar */
.footer-bottom {
  margin-top: 54px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
}
.footer-copy {
  font-size: 12.5px;
  color: var(--muted);
}
.footer-disclaimer {
  font-size: 12px;
  color: var(--muted);
  max-width: 580px;
  text-align: right;
}

@media (max-width: 960px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
  .footer-newsletter {
    grid-column: 1 / -1;
  }
  .footer-disclaimer {
    text-align: left;
  }
}

@media (max-width: 600px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translate(-50%, 110px);
  opacity: 0;
  background: #ffffff;
  color: #0b0c10;
  padding: 11px 22px;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 13px;
  transition: transform 0.28s cubic-bezier(.22, 1, .36, 1), opacity 0.28s;
  z-index: 999;
  white-space: nowrap;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
}
.toast.show { transform: translate(-50%, 0); opacity: 1; }

/* ═══════════════════════════════════
   RESPONSIVE DESIGN
═══════════════════════════════════ */
@media (max-width: 900px) {
  .feature-block-bar {
    grid-template-columns: repeat(2, 1fr);
  }
  .feature-col:nth-child(2) {
    border-right: none;
  }
  .feature-col:nth-child(1),
  .feature-col:nth-child(2) {
    border-bottom: 1px solid var(--border);
  }
}

@media (max-width: 760px) {
  main { padding: 0 16px 60px; }
  .topbar {
    padding: 0 16px;
    height: auto;
    padding-top: 10px;
    padding-bottom: 10px;
    flex-wrap: wrap;
    gap: 10px;
  }
  .model-switch { order: 3; width: 100%; justify-content: space-between; }
  .model-switch button { padding: 6px 9px; font-size: 12px; }

  .hero { padding: 48px 0 28px; }
  .hero h1 { font-size: clamp(28px, 7vw, 40px); }
  .hero-actions { flex-direction: column; width: 100%; max-width: 320px; margin: 0 auto 24px; }
  .btn-pri, .btn-sec { width: 100%; justify-content: center; }

  .feature-block-bar {
    grid-template-columns: 1fr;
  }
  .feature-col {
    border-right: none;
    border-bottom: 1px solid var(--border);
    padding: 24px 20px;
  }
  .feature-col:last-child {
    border-bottom: none;
  }

  .cat-grid { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
  .prompt-grid { grid-template-columns: 1fr; }

  .cat-hero, .scene-hero { padding: 20px; border-radius: 14px; }
  .big-emoji { font-size: 48px; }

  .scene-hero { flex-direction: column-reverse; align-items: stretch; }
  .scene-hero-img { width: 100%; max-height: 280px; }
  .scene-hero .big-emoji { display: none; }

  .variant { grid-template-columns: 1fr; }
  .variant-media { min-height: 130px; max-height: 260px; overflow: hidden; }
  .prompt-img img { max-height: 320px; }

  .block-head { margin-bottom: 16px; padding-bottom: 12px; }
}

@media (max-width: 480px) {
  .cat-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .cat-art { height: 96px; font-size: 38px; }
  .cat-body { padding: 12px; }
  .cat-body h3 { font-size: 13.5px; margin: 6px 0 4px; }
}

/* ── Mobile menu ── */
.menu-toggle {
  display: none;
  width: 38px; height: 38px; flex: none;
  border: 1px solid var(--border); border-radius: 6px; background: var(--surface-2);
  flex-direction: column; align-items: center; justify-content: center; gap: 4px; cursor: pointer;
}
.menu-toggle span { display: block; width: 16px; height: 2px; border-radius: 2px; background: var(--text); transition: transform .2s, opacity .2s; }
.nav-open .menu-toggle span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-open .menu-toggle span:nth-child(2) { opacity: 0; }
.nav-open .menu-toggle span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 760px) {
  .topbar-brand { flex: 1; min-width: 0; }
  .topbar-actions { display: contents; }
  .saved-link { order: 1; }
  .menu-toggle { display: flex; order: 2; }
  .topbar-nav {
    display: none; order: 4; width: 100%;
    flex-direction: column; align-items: stretch; gap: 2px;
    padding-top: 6px; border-top: 1px solid var(--border);
  }
  .nav-open .topbar-nav { display: flex; }
  .topbar-nav .nav-item { font-size: 15px; padding: 12px 10px; }
  .topbar-brand { display: contents; }
  .logo { flex: 1; order: 0; }
}



/* ── Footer social icons + newsletter (restored) ── */
.footer-socials {
  display: flex;
  align-items: center;
  gap: 10px;
}
.social-btn {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  display: grid;
  place-items: center;
  color: var(--muted);
  transition: all 0.15s;
}
.social-btn:hover {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.22);
  background: var(--surface-3);
  transform: translateY(-1px);
}
.newsletter-form {
  display: flex;
  align-items: center;
  background: #12131b;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  padding: 4px 5px 4px 16px;
  max-width: 340px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.newsletter-form:focus-within {
  border-color: rgba(255, 255, 255, 0.25);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.45), 0 0 0 2px rgba(239, 35, 60, 0.15);
}
.newsletter-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  font-size: 13.5px;
  color: #ffffff;
  font-family: inherit;
  min-width: 0;
}
.newsletter-input::placeholder {
  color: var(--muted);
  font-weight: 400;
}
.newsletter-btn {
  width: 38px;
  height: 38px;
  border-radius: 9px;
  background: linear-gradient(180deg, #2d303f 0%, #181924 100%);
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.28), 0 2px 8px rgba(0, 0, 0, 0.4);
  color: #ffffff;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  transition: all 0.18s;
  cursor: pointer;
}
.newsletter-btn:hover {
  background: linear-gradient(180deg, #ef233c 0%, #be123c 100%);
  border-color: rgba(239, 35, 60, 0.6);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.35), 0 4px 14px rgba(239, 35, 60, 0.45);
  transform: translateX(1px);
}
.newsletter-subtext {
  display: block;
  font-size: 12px;
  color: var(--muted);
  margin-top: 10px;
}

/* ── Footer "Suggest a trend" (under the newsletter) ── */
.footer-suggest { margin-top: 28px; }
.footer-suggest h4 { font-size: 14px; font-weight: 600; color: #ffffff; letter-spacing: -0.01em; margin-bottom: 8px; }
.footer-suggest p { font-size: 13.5px; color: var(--muted); line-height: 1.6; margin: 0 0 14px; max-width: 300px; }
.footer-suggest-btn {
  display: inline-block; font-size: 13.5px; font-weight: 600; color: #fff;
  padding: 9px 14px; border-radius: 8px; border: 1px solid rgba(255, 255, 255, 0.18);
  background: var(--surface-2); transition: background .15s, border-color .15s;
}
.footer-suggest-btn:hover { background: var(--surface-3); border-color: rgba(255, 255, 255, 0.3); }

/* ── Accessibility: skip link + keyboard focus ── */
.skip-link {
  position: fixed; top: 8px; left: 8px; z-index: 1000;
  padding: 10px 16px; border-radius: 8px; font-weight: 600; font-size: 14px;
  background: var(--text); color: var(--bg);
  transform: translateY(-150%); transition: transform .15s;
}
.skip-link:focus { transform: translateY(0); }
main:focus { outline: none; }
:focus-visible { outline: 2px solid var(--focus-ring, #60a5fa); outline-offset: 2px; border-radius: 4px; }
#search:focus-visible, .newsletter-input:focus-visible { outline: none; } /* these show their own focus style */

/* ── Scroll progress + back to top ── */
.scroll-progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 300; pointer-events: none; }
.scroll-progress span {
  display: block; height: 100%; transform: scaleX(0); transform-origin: 0 50%;
  background: linear-gradient(90deg, #ef233c, #ff6b81);
}
.back-to-top {
  position: fixed; right: 20px; bottom: 24px; z-index: 250;
  width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid var(--border); background: var(--surface-2); color: var(--text);
  font-size: 18px; font-weight: 700; cursor: pointer;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35); transition: transform .15s, background .15s;
}
.back-to-top:hover { transform: translateY(-2px); background: var(--surface-3); }
@media (prefers-reduced-motion: reduce) { .skip-link, .back-to-top { transition: none; } }

/* ── Header search ── */
.topbar { position: sticky; }
.search-toggle {
  width: 38px; height: 38px; flex: none; display: grid; place-items: center;
  border: 1px solid var(--border); border-radius: 6px; background: var(--surface-2); color: var(--text); cursor: pointer;
}
.search-toggle:hover { background: var(--surface-3); }
.header-search {
  position: absolute; left: 0; right: 0; top: 100%;
  display: flex; gap: 8px; padding: 12px max(16px, calc((100vw - var(--w)) / 2 + 24px));
  background: var(--bg); border-bottom: 1px solid var(--border); box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
}
.header-search input {
  flex: 1; min-width: 0; padding: 11px 14px; font: inherit; font-size: 15px; color: var(--text);
  background: var(--surface); border: 1px solid var(--border); border-radius: 8px;
}
.header-search input::placeholder { color: var(--muted); }
.header-search .btn-pri { padding: 0 18px; border-radius: 8px; border: 0; color: #fff; font-weight: 600; cursor: pointer; }
@media (max-width: 760px) {
  .search-toggle { order: 2; }
  .menu-toggle { order: 2; }
  .header-search { padding: 10px 16px; }
}

/* ── Loading states ── */
@keyframes shimmer { from { background-position: 150% 0; } to { background-position: -50% 0; } }
.sk, .prompt-img, .variant-media:has(img), .scene-hero-img {
  background-color: var(--surface-2);
  background-image: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.06) 50%, transparent 100%);
  background-size: 200% 100%;
  animation: shimmer 1.4s ease-in-out infinite;
}
.skeleton-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; margin: 8px 0 48px; }
.skeleton-card { border: 1px solid var(--border); border-radius: 12px; padding: 14px; background: var(--surface); }
.sk { border-radius: 8px; }
.sk-art { height: 110px; margin-bottom: 14px; }
.sk-line { height: 12px; margin-bottom: 10px; }
.sk-line.short { width: 60%; }
@media (prefers-reduced-motion: reduce) { .sk, .prompt-img, .variant-media:has(img), .scene-hero-img { animation: none; } }
.loaded { animation: none !important; background-image: none !important; }

/* ── Print: clean black-on-white prompts, no site chrome ── */
@media print {
  @page { margin: 16mm; }
  :root { color-scheme: light; }
  html, body { background: #fff !important; color: #000 !important; font-size: 11pt; }
  *, *::before, *::after { background: transparent !important; color: #000 !important; box-shadow: none !important; text-shadow: none !important; animation: none !important; }
  .topbar, .footer, .skip-link, .scroll-progress, .back-to-top, .toast, .chips, .tabs, .jump,
  .prompt-actions, .btn, .btn-pri, .btn-sec, .link-btn, .more, #more, .model-switch, .header-search,
  .search-wrap, .hero-actions, .next-event, .variant-top .btn, .tab-panel .btn, .skeleton-grid { display: none !important; }
  main { padding: 0 !important; max-width: none !important; }
  .prompt-grid > .prompt[hidden] { display: block !important; } /* print all prompts, not just the first page */
  .prompt-grid, .variants, .cat-grid { display: block !important; }
  .prompt, .variant, .cat-card, .how-card, .faq details { border: 1px solid #999 !important; border-radius: 6px; padding: 10px 12px; margin: 0 0 10px; break-inside: avoid; }
  .prompt-text, .panel-text { border: 1px solid #ccc !important; padding: 8px !important; font-size: 10pt; }
  .variant { display: block !important; }
  .variant-media, .prompt-img, .cat-art { display: none !important; }
  .cat-hero, .scene-hero { border: 0 !important; padding: 0 !important; }
  .badge { border: 1px solid #999 !important; }
  h1, h2, h3 { break-after: avoid; }
  .faq details > *:not(summary) { display: block !important; }
  .prose a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 9pt; }
  a { text-decoration: none; }
}

/* ── Theme toggle ── */
.theme-toggle {
  width: 38px; height: 38px; flex: none; display: grid; place-items: center;
  border: 1px solid var(--border); border-radius: 6px; background: var(--surface-2); color: var(--text); cursor: pointer;
}
.theme-toggle:hover { background: var(--surface-3); }
.theme-toggle .icon-moon { display: none; }
[data-theme="light"] .theme-toggle .icon-sun { display: none; }
[data-theme="light"] .theme-toggle .icon-moon { display: block; }
@media (max-width: 760px) { .theme-toggle { order: 2; } }
