/* ═══════════════════════════════════════════
   ROOT & RESET
═══════════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:           #1c1c1c;
  --bg-deep:      #161616;
  --surface:      #242424;
  --surface2:     #2c2c2c;
  --glass:        rgba(28,28,28,.85);
  --glass-border: rgba(255,255,255,.08);
  --border:       #2e2e2e;
  --accent:       #822EF5;
  --accent-dark:  #6b21d4;
  --accent-light: #a855f7;
  --gold:         #f5af2e;
  --gold-dim:     rgba(245,175,46,.15);
  --glow:         rgba(130,46,245,.5);
  --glow-gold:    rgba(245,175,46,.4);
  --text:         #FEFDFE;
  --muted:        #9696AE;
  --muted2:       #52526a;
  --gray:         #676767;
  --radius:       14px;
  --radius-lg:    22px;
  --radius-xl:    32px;
  --appbar-h:     64px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--bg-deep);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg-deep); }
::-webkit-scrollbar-thumb { background: var(--accent); border-radius: 2px; }

/* ═══════════════════════════════════════════
   LIGHT THEME
═══════════════════════════════════════════ */
[data-theme="light"] {
  --bg:           #eeeef8;
  --bg-deep:      #f6f6fc;
  --surface:      #ffffff;
  --surface2:     #eaeaf4;
  --glass:        rgba(255,255,255,.82);
  --glass-border: rgba(100,100,160,.13);
  --border:       #d8d8e6;
  --text:         #17172b;
  --muted:        #6a6a84;
  --muted2:       #9898b0;
  --gray:         #888888;
  --glow:         rgba(130,46,245,.2);
  --glow-gold:    rgba(245,175,46,.25);
  --gold-dim:     rgba(245,175,46,.1);
}

[data-theme="light"] body {
  background: var(--bg-deep);
  color: var(--text);
}

/* Appbar */
[data-theme="light"] .appbar {
  background: rgba(246,246,252,.85);
  border-bottom-color: rgba(100,100,160,.13);
}
[data-theme="light"] .appbar.solid {
  background: rgba(246,246,252,.98);
}
[data-theme="light"] .appbar-search input {
  background: rgba(220,220,235,.7);
  border-color: rgba(100,100,160,.15);
}
[data-theme="light"] .appbar-search input:focus {
  background: #fff;
}

/* Hero */
[data-theme="light"] .hero-mesh {
  background: none;
}
[data-theme="light"] .hero-grid {
  background-image:
    linear-gradient(rgba(130,46,245,.15) 1px, transparent 1px),
    linear-gradient(90deg, rgba(130,46,245,.15) 1px, transparent 1px);
}
[data-theme="light"] .hero-orb-1 { background: rgba(130,46,245,.1); }
[data-theme="light"] .hero-orb-2 { background: rgba(245,175,46,.06); }

/* Marquee */
[data-theme="light"] .marquee-wrap {
  background: var(--bg-deep);
}
[data-theme="light"] .marquee-wrap::before {
  background: none;
}
[data-theme="light"] .marquee-wrap::after {
  background: none;
}

/* Sections divider glow line */
[data-theme="light"] .generators-section::before {
  background: var(--accent);
  opacity: .3;
}

/* Card shadows in light mode for depth */
[data-theme="light"] .bento-card,
[data-theme="light"] .hero-card,
[data-theme="light"] .hiw-card,
[data-theme="light"] .review-card,
[data-theme="light"] .faq-item,
[data-theme="light"] .review-form-wrap,
[data-theme="light"] .gen-other-card,
[data-theme="light"] .gen-tip {
}

/* HOW section watermark */
[data-theme="light"] .hiw-section::after {
  color: rgba(130,46,245,.06);
}

/* Search dropdown */
[data-theme="light"] .search-dropdown {
}

/* Scrollbar */
[data-theme="light"] ::-webkit-scrollbar-track { background: var(--bg-deep); }
[data-theme="light"] ::-webkit-scrollbar-thumb { background: var(--border); }
[data-theme="light"] ::-webkit-scrollbar-thumb:hover { background: var(--accent); }

/* ── Theme toggle button ── */
.theme-toggle {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--muted);
  flex-shrink: 0;
  transition: border-color .2s, background .2s, color .2s;
  padding: 0;
}
.theme-toggle:hover {
  border-color: var(--accent);
  color: var(--accent-light);
  background: rgba(130,46,245,.08);
}
/* Show sun in dark mode, moon in light mode */
.theme-toggle .icon-moon { display: none; }
[data-theme="light"] .theme-toggle .icon-sun  { display: none; }
[data-theme="light"] .theme-toggle .icon-moon { display: block; }

/* ═══════════════════════════════════════════
   APPBAR  (nav + search)
═══════════════════════════════════════════ */
.appbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  height: var(--appbar-h);
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 0 2rem;
  background: rgba(19,19,31,.88);
  border-bottom: 1px solid var(--glass-border);
  transition: background .3s;
  /* NOTE: backdrop-filter here would make .appbar the containing block for
     position:fixed descendants and collapse the mobile menu panel. The panel
     below is position:absolute against .appbar precisely so it survives it. */
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}
.appbar.solid { background: rgba(19,19,31,.99); }

/* Logo */
.appbar-logo {
  font-size: 1.3rem;
  font-weight: 900;
  letter-spacing: -.06em;
  color: var(--accent-light);
  white-space: nowrap;
  flex-shrink: 0;
}

/* Search (centre of appbar) */
.appbar-search {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 320px;
  min-width: 0;
  display: flex;
  align-items: center;
}
.appbar-search-icon {
  position: absolute;
  right: .75rem;
  color: #888;
  pointer-events: none;
  flex-shrink: 0;
}
.appbar-search input {
  width: 100%;
  background: rgba(37,37,47,.8);
  border: 1.5px solid var(--glass-border);
  border-radius: 10px;
  padding: .52rem 2.4rem .52rem .9rem;
  color: var(--text);
  font-size: .875rem;
  font-family: inherit;
  outline: none;
  transition: border-color .2s, background .2s;
}
.appbar-search input::placeholder { color: var(--muted2); }
.appbar-search input:focus {
  border-color: var(--accent);
  background: rgba(37,37,47,1);
}
.appbar-search-clear {
  position: absolute;
  right: 2.2rem;
  background: none;
  border: none;
  color: var(--muted);
  cursor: pointer;
  font-size: .7rem;
  width: 18px; height: 18px;
  border-radius: 50%;
  display: none;
  align-items: center;
  justify-content: center;
  transition: color .2s;
}
.appbar-search-clear:hover { color: var(--text); }
.appbar-search-clear.show { display: flex; }

/* Submit arrow — only on the dedicated search page */
.appbar-search-go {
  position: absolute;
  right: .3rem;
  width: 28px; height: 28px;
  border: none;
  border-radius: 8px;
  background: var(--accent);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background .2s;
}
.appbar-search-go:hover { background: var(--accent-dark); }

/* Variant with a leading magnifier: icon left, arrow right */
.appbar-search-lead .appbar-search-icon { left: .7rem; right: auto; }
.appbar-search-lead input { padding: .52rem 2.6rem .52rem 2.2rem; }
.appbar-search-lead .appbar-search-clear { right: 2.5rem; }

/* Nav links */
.appbar-nav {
  display: flex;
  align-items: center;
  gap: .25rem;
  list-style: none;
  flex-shrink: 0;
  margin-left: auto;
}
.appbar-nav a {
  font-size: .82rem;
  font-weight: 500;
  color: var(--muted);
  padding: .4rem .75rem;
  border-radius: 8px;
  transition: color .2s, background .2s;
  white-space: nowrap;
}
.appbar-nav a:hover { color: var(--text); background: rgba(255,255,255,.04); }

.appbar-cta {
  background: var(--accent) !important;
  color: #fff !important;
  font-weight: 700 !important;
  padding: .45rem 1.1rem !important;
  border-radius: 10px !important;
  transition: background .2s;
}
.appbar-cta:hover {
  background: var(--accent-dark) !important;
}

/* Mobile burger */
.appbar-burger {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  cursor: pointer;
  /* 40px square keeps the tap target above the mobile-usability minimum */
  width: 40px;
  height: 40px;
  margin-right: -8px;
  border-radius: 10px;
  flex-shrink: 0;
  -webkit-tap-highlight-color: transparent;
}
.appbar-burger:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.appbar-burger span {
  display: block;
  width: 20px; height: 2px;
  background: var(--muted);
  border-radius: 2px;
  transition: transform .25s ease, opacity .18s ease, background .2s;
}
.appbar-burger.open span { background: var(--text); }
.appbar-burger.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.appbar-burger.open span:nth-child(2) { opacity: 0; }
.appbar-burger.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

@keyframes appbarNavIn {
  from { opacity: 0; transform: translateY(-10px); }
  to   { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  /* Descendant selector so this still beats the rule inside the 900px query */
  .appbar .appbar-nav.open { animation: none; }
  .appbar-burger span { transition: none; }
}

/* Search results dropdown */
.search-dropdown {
  position: absolute;
  top: calc(100% + .5rem);
  left: 0; right: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: .5rem;
  display: none;
  flex-direction: column;
  gap: .25rem;
  z-index: 300;
}
.search-dropdown.show { display: flex; }
.search-result-item {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .65rem .85rem;
  border-radius: 10px;
  cursor: pointer;
  transition: background .15s;
  text-decoration: none;
  color: var(--text);
}
.search-result-item:hover { background: rgba(130,46,245,.1); }
.search-result-icon { font-size: 1.3rem; flex-shrink: 0; }
.search-result-title { font-size: .88rem; font-weight: 700; }
.search-result-desc { font-size: .75rem; color: var(--muted); }
.search-no-result {
  padding: .75rem .85rem;
  font-size: .85rem;
  color: var(--muted);
  text-align: center;
}

/* ═══════════════════════════════════════════
   HERO  — full-viewport editorial
═══════════════════════════════════════════ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: var(--appbar-h) 0 0;
  overflow: hidden;
}

/* Hero mesh */
.hero-mesh {
  position: absolute;
  inset: 0;
  background: none;
  pointer-events: none;
}
@keyframes meshShift {
  0%   { opacity: 1; }
  50%  { opacity: .7; }
  100% { opacity: 1; }
}

.hero-grid {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(130,46,245,.22) 1px, transparent 1px),
    linear-gradient(90deg, rgba(130,46,245,.22) 1px, transparent 1px);
  background-size: 60px 60px;
  animation: gridScroll 4s linear infinite;
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 50%, white 40%, transparent 100%);
  mask-image: radial-gradient(ellipse 80% 70% at 50% 50%, white 40%, transparent 100%);
}
@keyframes gridScroll {
  from { background-position: 0 0; }
  to   { background-position: 60px 60px; }
}

/* Glow orbs */
.hero-glow {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(120px);
}
.hero-glow-1 {
  width: 600px; height: 400px;
  background: rgba(130,46,245,.28);
  top: 5%; left: 50%;
  transform: translateX(-50%);
}
.hero-glow-2 {
  width: 350px; height: 350px;
  background: rgba(130,46,245,.15);
  bottom: 15%; right: 10%;
}
.hero-orb-2 {
  width: 300px; height: 300px;
  background: rgba(245,175,46,.1);
  bottom: 10%; left: 5%;
  animation-delay: -4s;
}
@keyframes orbFloat {
  0%   { transform: translate(0,0) scale(1); }
  100% { transform: translate(30px,-30px) scale(1.08); }
}

.hero-inner {
  position: relative;
  z-index: 2;
  max-width: 900px;
  margin: 0 auto;
  padding: 0 3rem;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - var(--appbar-h));
  text-align: center;
}

.hero-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.hero-chip {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: rgba(130,46,245,.1);
  border: 1px solid rgba(130,46,245,.25);
  border-radius: 10px;
  padding: .3rem .9rem;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #c084fc;
  margin-bottom: 2rem;
}
.hero-chip-dot {
  width: 6px; height: 6px;
  background: var(--gold);
  border-radius: 50%;
  animation: pulseDot 2s ease-in-out infinite;
}
@keyframes pulseDot {
  0%,100% { transform: scale(1); opacity: 1; }
  50%      { transform: scale(.5); opacity: .4; }
}

.hero-h1 {
  font-size: clamp(3.5rem, 8vw, 7rem);
  font-weight: 900;
  line-height: .95;
  letter-spacing: -.05em;
  margin-bottom: 1.5rem;
}
.hero-h1 .line1 { display: block; color: var(--text); }
.hero-h1 .line2 {
  display: block;
  color: var(--accent-light);
}

.hero-sub {
  font-size: 1.05rem;
  color: var(--muted);
  line-height: 1.8;
  max-width: 480px;
  margin-bottom: 2rem;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 3rem;
}

.btn-hero {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  padding: .95rem 2.2rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: .98rem;
  cursor: pointer;
  border: none;
  transition: transform .2s ease, box-shadow .25s ease, background .2s ease;
  letter-spacing: .01em;
}
.btn-hero:hover { transform: translateY(-2px); }

.btn-hero-arrow {
  display: inline-block;
  transition: transform .25s ease;
}
.btn-hero:hover .btn-hero-arrow { transform: translateX(5px); }

/* Simple solid pill with a soft, slow glow pulse so it draws the eye without
   being busy. */
.btn-hero-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 0 0 0 rgba(130,46,245,.5);
  animation: heroBtnPulse 2.8s ease-in-out infinite;
}
.btn-hero-primary:hover {
  background: var(--accent-light);
  box-shadow: 0 8px 26px rgba(130,46,245,.45);
  animation: none;
}
@keyframes heroBtnPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(130,46,245,.45); }
  50%      { box-shadow: 0 0 0 12px rgba(130,46,245,0); }
}
@media (prefers-reduced-motion: reduce) {
  .btn-hero-primary { animation: none; }
  .btn-hero-arrow { transition: none; }
}

.btn-hero-ghost {
  background: rgba(254,253,254,.06);
  color: var(--text);
  border: 1px solid rgba(150,150,174,.2);
}
.btn-hero-ghost:hover { background: rgba(254,253,254,.1); }

/* Trust row */
.hero-trust {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: .4rem;
  font-size: .8rem;
  color: var(--muted);
  font-weight: 500;
}
.trust-icon { font-size: .95rem; }

/* Right: bento preview */
.hero-right {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 1rem;
  position: relative;
}

.hero-card {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  position: relative;
  overflow: hidden;
  transition: transform .3s, border-color .3s;
}
.hero-card:hover { transform: translateY(-4px); border-color: rgba(130,46,245,.3); }

.hero-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(130,46,245,.06);
  pointer-events: none;
}

.hero-card-large {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 1.8rem 2rem;
}
.hero-card-icon { font-size: 3rem; }
.hero-card-large h3 { font-size: 1.15rem; font-weight: 800; margin-bottom: .3rem; }
.hero-card-large p { font-size: .82rem; color: var(--muted); line-height: 1.6; }
.hero-card-badge {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  background: rgba(130,46,245,.15);
  border: 1px solid rgba(130,46,245,.3);
  color: #c084fc;
  border-radius: 10px;
  padding: .22rem .65rem;
  font-size: .7rem;
  font-weight: 700;
  margin-bottom: .6rem;
}
.hero-card-badge-dot { width: 5px; height: 5px; background: var(--gold); border-radius: 50%; }

.hero-card-small h4 { font-size: .92rem; font-weight: 800; margin-bottom: .35rem; }
.hero-card-small .big-stat {
  font-size: 2.4rem;
  font-weight: 900;
  letter-spacing: -.04em;
  color: var(--accent-light);
  line-height: 1;
}
.hero-card-small .stat-label { font-size: .75rem; color: var(--muted); margin-top: .25rem; }

/* Tech stack pills */
.tech-pills {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
  margin-top: .85rem;
}
.tech-pill {
  padding: .25rem .7rem;
  background: rgba(130,46,245,.1);
  border: 1px solid rgba(130,46,245,.2);
  border-radius: 10px;
  font-size: .7rem;
  font-weight: 600;
  color: #c084fc;
}

/* ═══════════════════════════════════════════
   MARQUEE  — scrolling tool strip
═══════════════════════════════════════════ */
.marquee-wrap {
  border-top: 1px solid var(--glass-border);
  border-bottom: 1px solid var(--glass-border);
  background: var(--bg-deep);
  padding: 1rem 0;
  overflow: hidden;
  position: relative;
  z-index: 1;
}
.marquee-wrap::before,
.marquee-wrap::after {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  width: 120px;
  z-index: 2;
  pointer-events: none;
}
.marquee-wrap::before { left: 0; background: none; }
.marquee-wrap::after  { right: 0; background: none; }

.marquee-track {
  display: flex;
  gap: 0;
  animation: marqueeScroll 28s linear infinite;
  width: max-content;
}
@keyframes marqueeScroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.marquee-item {
  display: flex;
  align-items: center;
  gap: .6rem;
  padding: 0 2.5rem;
  font-size: .82rem;
  font-weight: 600;
  color: var(--muted);
  white-space: nowrap;
  border-right: 1px solid var(--glass-border);
}
.marquee-item span { font-size: 1.2rem; }

/* ═══════════════════════════════════════════
   SECTION COMMONS
═══════════════════════════════════════════ */
.section-wrap {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 3rem;
}

.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: .75rem;
}
.section-eyebrow::before {
  content: '';
  width: 24px; height: 2px;
  background: var(--gold);
  border-radius: 2px;
}

.section-title {
  font-size: clamp(2.2rem, 4vw, 3.6rem);
  font-weight: 900;
  letter-spacing: -.045em;
  line-height: 1.05;
  margin-bottom: 1rem;
}
.section-sub {
  font-size: .98rem;
  color: var(--muted);
  max-width: 500px;
  line-height: 1.8;
  margin-bottom: 3.5rem;
}

/* ═══════════════════════════════════════════
   GENERATORS  — bento grid
═══════════════════════════════════════════ */
.generators-section {
  padding: 8rem 0;
  background: var(--bg);
  position: relative;
}
.generators-section::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: var(--accent);
  opacity: .35;
}

.bento-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-template-rows: auto;
  gap: 1.25rem;
}

/* Card base */
.bento-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  position: relative;
  transition: border-color .25s, transform .25s;
  display: flex;
  flex-direction: column;
  cursor: pointer;
  text-decoration: none;
  color: var(--text);
}
.bento-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(130,46,245,.07);
  opacity: 0;
  transition: opacity .3s;
  pointer-events: none;
}
.bento-card:hover {
  border-color: rgba(130,46,245,.5);
  transform: translateY(-5px) scale(1.005);
}
.bento-card:hover::after { opacity: 1; }
.bento-card.soon { pointer-events: none; opacity: .5; }
.bento-card.search-hidden { display: none; }

/* Grid positions — span-based auto-flow so any number of cards wraps cleanly.
   Row 1 = two big cards (halves, span 6); every card after = a third (span 4). */
.bento-grid > .bento-card { grid-column: span 4; }
.bento-grid > .bento-card:nth-child(1),
.bento-grid > .bento-card:nth-child(2) { grid-column: span 6; }

/* Homepage shows only the first 3 rows (8 cards); the rest live on the
   All Generators page. The limit lifts automatically while searching. */
.bento-grid.limited > .bento-card:nth-child(n+9) { display: none; }

/* "All Models" button below the bento grid */
.bento-all-wrap { text-align: center; margin-top: 2.5rem; }
.bento-all-btn {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  padding: .95rem 2.1rem;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: 100px;
  color: var(--text);
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
  transition: border-color .2s, background .2s, transform .15s;
}
.bento-all-btn:hover {
  border-color: var(--accent);
  background: rgba(130,46,245,.08);
  transform: translateY(-2px);
}
.bento-all-btn svg { transition: transform .2s; }
.bento-all-btn:hover svg { transform: translateX(4px); }
.bento-grid:not(.limited) + .bento-all-wrap { display: none; }

/* Card interior */
.bento-thumb {
  height: 200px;
  background: var(--surface2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
}
.bento-thumb::before {
  content: '';
  position: absolute;
  inset: 0;
  background: none;
}
.bento-thumb-emoji { position: relative; z-index: 1; }
.bento-thumb-img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.bento-label {
  position: absolute;
  top: 14px; left: 14px;
  background: var(--accent);
  color: #fff;
  font-size: .65rem;
  font-weight: 800;
  padding: .28rem .7rem;
  border-radius: 10px;
  letter-spacing: .08em;
  text-transform: uppercase;
  z-index: 2;
}
.bento-label.soon-badge {
  background: var(--surface2);
  color: var(--muted);
  border: 1px solid var(--border);
}

.bento-body {
  padding: 1.6rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.bento-body h3 {
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -.02em;
  margin-bottom: .45rem;
}
.bento-body p {
  font-size: .84rem;
  color: var(--muted);
  line-height: 1.7;
  flex: 1;
}
.bento-arrow {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  color: var(--gold);
  font-size: .8rem;
  font-weight: 700;
  margin-top: 1.2rem;
  letter-spacing: .03em;
  transition: gap .2s;
}
.bento-card:hover .bento-arrow { gap: .7rem; }

/* Tag chips on cards */
.bento-tags {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem;
  margin-top: .7rem;
}
.bento-tag {
  padding: .2rem .55rem;
  background: rgba(130,46,245,.08);
  border: 1px solid rgba(130,46,245,.15);
  border-radius: 10px;
  font-size: .68rem;
  font-weight: 600;
  color: var(--accent-light);
}

/* Search no-results message */
.bento-no-results {
  grid-column: 1 / -1;
  text-align: center;
  padding: 4rem 2rem;
  color: var(--muted);
  font-size: .95rem;
  display: none;
}
.bento-no-results.show { display: block; }

/* ═══════════════════════════════════════════
   HOW IT WORKS  — numbered cards row
═══════════════════════════════════════════ */
.hiw-section {
  padding: 8rem 0;
  background: var(--bg-deep);
  position: relative;
  overflow: hidden;
}
.hiw-section::after {
  content: 'HOW';
  position: absolute;
  right: -2rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 18rem;
  font-weight: 900;
  letter-spacing: -.05em;
  color: rgba(130,46,245,.04);
  pointer-events: none;
  user-select: none;
  line-height: 1;
}

.hiw-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.hiw-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 2.5rem 2rem;
  position: relative;
  overflow: hidden;
  transition: border-color .2s, transform .2s;
}
.hiw-card:hover { border-color: rgba(130,46,245,.35); transform: translateY(-4px); }

.hiw-num {
  font-size: 5rem;
  font-weight: 900;
  letter-spacing: -.06em;
  line-height: 1;
  color: rgba(130,46,245,.5);
  margin-bottom: 1.5rem;
  display: block;
}

.hiw-icon {
  width: 50px; height: 50px;
  border-radius: 14px;
  background: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 1.25rem;
}

.hiw-card h3 {
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: -.02em;
  margin-bottom: .65rem;
}
.hiw-card p { font-size: .87rem; color: var(--muted); line-height: 1.75; }

/* ═══════════════════════════════════════════
   FEATURES  — alternating horizontal strips
═══════════════════════════════════════════ */
.features-section {
  padding: 8rem 0;
  background: var(--bg);
}

.feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
  margin-bottom: 7rem;
  padding: 3rem 0;
  border-bottom: 1px solid var(--glass-border);
}
.feature-row:last-child { margin-bottom: 0; border-bottom: none; }
.feature-row.reverse { direction: rtl; }
.feature-row.reverse > * { direction: ltr; }

.feature-visual {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 5rem;
  position: relative;
  overflow: hidden;
}
.feature-visual::before {
  content: '';
  position: absolute;
  inset: 0;
  background: none;
}

.feature-eyebrow {
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: .65rem;
}
.feature-title {
  font-size: clamp(1.6rem, 2.5vw, 2.4rem);
  font-weight: 900;
  letter-spacing: -.04em;
  line-height: 1.1;
  margin-bottom: 1rem;
}
.feature-desc { font-size: .92rem; color: var(--muted); line-height: 1.8; margin-bottom: 1.5rem; }

.feature-pills {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
}
.feature-pill {
  display: flex;
  align-items: center;
  gap: .4rem;
  padding: .4rem .9rem;
  background: rgba(130,46,245,.08);
  border: 1px solid rgba(130,46,245,.18);
  border-radius: 10px;
  font-size: .78rem;
  font-weight: 600;
  color: var(--text);
}
.feature-pill-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); flex-shrink: 0; }

/* ═══════════════════════════════════════════
   REVIEWS  — stacked masonry
═══════════════════════════════════════════ */
.reviews-section {
  padding: 8rem 0;
  background: var(--bg-deep);
}

.reviews-mosaic {
  columns: 3;
  column-gap: 1.25rem;
  margin-bottom: 3.5rem;
}
.review-card {
  break-inside: avoid;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  margin-bottom: 1.25rem;
  transition: border-color .2s, transform .2s;
}
.review-card:hover { border-color: rgba(130,46,245,.3); transform: translateY(-3px); }

.review-stars { color: var(--gold); font-size: .95rem; margin-bottom: .85rem; letter-spacing: .1em; }
.review-text {
  font-size: .88rem;
  color: var(--muted);
  line-height: 1.8;
  margin-bottom: 1.2rem;
  font-style: italic;
}
.review-author { display: flex; align-items: center; gap: .75rem; }
.review-avatar {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .78rem;
  font-weight: 800;
  color: #fff;
  flex-shrink: 0;
}
.review-author strong { font-size: .87rem; display: block; }
.review-author span { font-size: .75rem; color: var(--muted); }

/* Review form */
.review-form-wrap {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 2.5rem;
  max-width: 560px;
}
.review-form-wrap h3 { font-size: 1.2rem; font-weight: 900; letter-spacing: -.03em; margin-bottom: 1.5rem; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-group { display: flex; flex-direction: column; gap: .4rem; margin-bottom: 1rem; }
.form-group label { font-size: .77rem; font-weight: 700; color: var(--muted); letter-spacing: .04em; text-transform: uppercase; }
.form-group input,
.form-group textarea {
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: 10px;
  padding: .75rem 1rem;
  color: var(--text);
  font-size: .9rem;
  font-family: inherit;
  outline: none;
  transition: border-color .2s;
}
.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--accent);
}
.form-group textarea { resize: vertical; min-height: 100px; }

/* ═══════════════════════════════════════════
   FAQ  — clean accordion
═══════════════════════════════════════════ */
.faq-section {
  padding: 8rem 0;
  background: var(--bg);
}

.faq-layout {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 6rem;
  align-items: start;
}

.faq-sidebar h2 { font-size: 2.4rem; font-weight: 900; letter-spacing: -.05em; line-height: 1.1; margin-bottom: .75rem; }
.faq-sidebar p { color: var(--muted); font-size: .9rem; line-height: 1.75; }

.faq-list { display: flex; flex-direction: column; gap: .5rem; }

.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color .2s;
}
.faq-item.open { border-color: rgba(130,46,245,.35); }

.faq-q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.2rem 1.5rem;
  cursor: pointer;
  font-weight: 700;
  font-size: .92rem;
  gap: 1rem;
  user-select: none;
}
.faq-icon {
  width: 26px; height: 26px;
  flex-shrink: 0;
  border: 1.5px solid var(--border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .82rem;
  font-weight: 700;
  color: var(--muted);
  transition: transform .3s, background .2s, border-color .2s, color .2s;
}
.faq-item.open .faq-icon {
  transform: rotate(45deg);
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.faq-a { max-height: 0; overflow: hidden; transition: max-height .35s ease; }
.faq-a p {
  padding: 0 1.5rem 1.3rem;
  font-size: .88rem;
  color: var(--muted);
  line-height: 1.8;
}

/* ═══════════════════════════════════════════
   CTA BANNER
═══════════════════════════════════════════ */
.cta-section {
  padding: 7rem 0;
  background: var(--bg-deep);
  position: relative;
  overflow: hidden;
}
.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: none;
  pointer-events: none;
}

.cta-inner {
  text-align: center;
  position: relative;
  z-index: 1;
}
.cta-inner h2 {
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 900;
  letter-spacing: -.05em;
  line-height: 1.1;
  margin-bottom: 1rem;
}
.cta-grad {
  color: var(--accent);
}
.cta-inner p { color: var(--muted); font-size: 1rem; margin-bottom: 2.5rem; max-width: 420px; margin-left: auto; margin-right: auto; }
.cta-buttons { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* Button shared */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: var(--accent);
  color: #fff;
  padding: .9rem 2rem;
  border-radius: 10px;
  font-weight: 700;
  font-size: .95rem;
  border: none;
  cursor: pointer;
  transition: transform .2s;
}
.btn-primary:hover { transform: translateY(-2px); }

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: transparent;
  color: var(--text);
  padding: .9rem 2rem;
  border-radius: 10px;
  font-weight: 600;
  font-size: .95rem;
  border: 1.5px solid var(--border);
  cursor: pointer;
  transition: border-color .2s, background .2s, transform .2s;
}
.btn-outline:hover { border-color: var(--accent); background: rgba(130,46,245,.06); transform: translateY(-2px); }

/* ═══════════════════════════════════════════
   FOOTER
═══════════════════════════════════════════ */
footer {
  background: var(--bg-deep);
  border-top: 1px solid var(--glass-border);
  padding: 5rem 3rem 2.5rem;
}

.footer-inner {
  max-width: 1400px;
  margin: 0 auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 4rem;
  padding-bottom: 4rem;
  border-bottom: 1px solid var(--glass-border);
}

.footer-logo {
  font-size: 1.5rem;
  font-weight: 900;
  letter-spacing: -.06em;
  color: var(--accent-light);
  margin-bottom: .85rem;
}
.footer-brand-desc {
  font-size: .84rem;
  color: var(--muted);
  line-height: 1.75;
  max-width: 260px;
  margin-bottom: 1.5rem;
}
.social-row { display: flex; gap: .6rem; }
.social-btn {
  width: 36px; height: 36px;
  border-radius: 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .85rem;
  color: var(--muted);
  transition: border-color .2s, background .2s, color .2s;
}
.social-btn:hover { border-color: var(--accent); background: rgba(130,46,245,.1); color: var(--text); }

.footer-col h4 {
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1.2rem;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: .65rem; }
.footer-col a { font-size: .85rem; color: var(--muted2); transition: color .2s; }
.footer-col a:hover { color: var(--text); }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}
.footer-bottom p { font-size: .8rem; color: var(--muted2); }

/* Ad slots */
.ad-slot { display: none; }

/* ═══════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════ */
@media (max-width: 1100px) {
  /* Below this width the absolutely-centred search box starts running into
     the nav links, so drop it back into the flex flow next to the logo. */
  .appbar-search {
    position: relative;
    left: auto;
    transform: none;
    width: auto;
    max-width: 340px;
    flex: 1 1 auto;
  }

  .hero-inner { grid-template-columns: 1fr; padding: 3rem 2rem; }
  .hero-right { display: none; }
  .hero { min-height: auto; padding-bottom: 4rem; }
  .hero-inner { min-height: auto; padding-top: 3rem; }
  /* bento grid unchanged at 1100px — desktop nth-child rules apply */
  .feature-row { grid-template-columns: 1fr; gap: 2rem; }
  .feature-row.reverse { direction: ltr; }
  .faq-layout { grid-template-columns: 1fr; gap: 2rem; }
  .reviews-mosaic { columns: 2; }
}

/* Menu 8 maddeyle 1000px altinda sigmiyor: hamburger bu noktada devreye
   girer (js/appbar.js MOBILE ile ayni deger). */
@media (max-width: 1000px) {
  .appbar { gap: .75rem; }
  .appbar-nav { display: none; }
  .appbar-burger { display: flex; }

  /* The nav carried the `margin-left:auto` that pushed the right-hand
     controls over; once it is hidden that job moves to the theme toggle,
     and `order` puts the burger last where it is expected. */
  .appbar .theme-toggle { order: 8; margin-left: auto; }
  .appbar-burger        { order: 9; }

  /* Below this width the search does not live in the bar at all —
     js/appbar.js moves it into the menu panel. */

  /* Slide-down panel, anchored to whatever the bar's current height is */
  .appbar-nav.open {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    position: absolute;
    top: 100%; left: 0; right: 0;
    height: calc(100vh - var(--appbar-h));
    height: calc(100dvh - var(--appbar-h)); /* excludes mobile browser chrome */
    background: var(--bg-deep);
    padding: 1.25rem 1.25rem calc(1.25rem + env(safe-area-inset-bottom));
    gap: .15rem;
    border-top: 1px solid var(--border);
    overflow-y: auto;
    overscroll-behavior: contain;
    z-index: 199;
    animation: appbarNavIn .22s ease both;
  }
  /* Direct children only — the search dropdown lives deeper in this panel
     and must keep its own link styling. */
  .appbar-nav.open > li { width: 100%; }
  .appbar-nav.open > li > a {
    display: flex;
    align-items: center;
    width: 100%;
    min-height: 52px;
    font-size: 1.05rem;
    font-weight: 500;
    color: var(--text);
    padding: .75rem .9rem;
    border-radius: 12px;
  }
  .appbar-nav.open > li > a:active { background: rgba(255,255,255,.06); }
  .appbar-nav.open > li > .appbar-cta {
    justify-content: center;
    margin-top: 1rem;
    padding: .95rem 1rem !important;
    font-size: 1rem;
  }

  /* Search, relocated into the panel by js/appbar.js */
  .appbar-nav-search { margin-bottom: .6rem; }
  .appbar-nav-search .appbar-search {
    width: 100%;
    max-width: none;
    flex: 0 0 auto;
  }
  .appbar-nav-search input {
    font-size: 16px;
    padding: .8rem 2.75rem .8rem 1rem;
    border-radius: 12px;
  }
  .appbar-nav-search .appbar-search-lead input { padding-left: 2.5rem; }
  .appbar-nav-search .appbar-search-icon { right: 1rem; }
  .appbar-nav-search .appbar-search-lead .appbar-search-icon { left: 1rem; right: auto; }
  .appbar-nav-search .appbar-search-clear { right: 2.6rem; }
  .appbar-nav-search .appbar-search-lead .appbar-search-clear { right: 3rem; }
  .appbar-nav-search .appbar-search-go { right: .45rem; width: 32px; height: 32px; }

  /* Freeze the page behind the panel (set by js/appbar.js) */
  body.nav-open { overflow: hidden; }
}

@media (max-width: 900px) {
  .hiw-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }

  /* Tablet: two per row (halves). First two cards go full-width. */
  .bento-grid > .bento-card { grid-column: span 6; }
  .bento-grid > .bento-card:nth-child(1),
  .bento-grid > .bento-card:nth-child(2) { grid-column: 1 / -1; }

  .section-wrap { padding: 0 1.5rem; }
  footer { padding: 3.5rem 1.5rem 2rem; }
}

@media (max-width: 600px) {
  :root { --appbar-h: 56px; }

  .appbar {
    gap: .5rem;
    padding-left:  max(.875rem, env(safe-area-inset-left));
    padding-right: max(.875rem, env(safe-area-inset-right));
  }
  .appbar-logo { font-size: 1.15rem; }
  .appbar-search input {
    /* iOS Safari zooms the whole page on focus when this is under 16px */
    font-size: 16px;
    padding: .5rem 2.2rem .5rem .75rem;
    border-radius: 9px;
  }
  .appbar-search-lead input { padding: .5rem 2.5rem .5rem 2.1rem; }
  .appbar .theme-toggle { width: 36px; height: 36px; }

  .hero-h1 { font-size: 2.6rem; }
  .hiw-section::after { display: none; }
  .bento-grid > .bento-card { grid-column: 1 / -1; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .reviews-mosaic { columns: 1; }
  .form-row { grid-template-columns: 1fr; }
  .hiw-section::after { content: none; }
  .faq-section { padding: 5rem 0; }
  .generators-section { padding: 5rem 0; }
  .hiw-section { padding: 5rem 0; }
  .features-section { padding: 4rem 0; }
  .cta-section { padding: 4rem 0; }
  .reviews-section { padding: 5rem 0; }
}

/* Small phones — buy the search box a little more room */
@media (max-width: 400px) {
  .appbar { gap: .4rem; }
  .appbar-logo { font-size: 1rem; letter-spacing: -.04em; }
  .appbar-search input { padding-left: .6rem; }
  .appbar-search-lead input { padding-left: 1.95rem; }
}

/* ═══════════════════════════════════════════
   AD PLACEHOLDERS
═══════════════════════════════════════════ */
.ad-slot {
  background: #ffffff;
  border: 2px dashed #cccccc;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .4rem;
  color: #aaaaaa;
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  font-family: inherit;
}
.ad-slot-label { color: #bbbbbb; font-size: .7rem; font-weight: 500; }

/* Leaderboard — 728×90 */
.ad-leaderboard {
  width: 100%;
  max-width: 728px;
  height: 90px;
  margin: 0 auto;
}

/* Rectangle — 300×250 */
.ad-rectangle {
  width: 300px;
  height: 250px;
  flex-shrink: 0;
}

/* Full-width banner */
.ad-banner {
  width: 100%;
  height: 90px;
}

/* Wrapper sections */
.ad-section {
  padding: 1.5rem 2rem;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* ─────────────────────────────────────────────
   Scroll reveal — subtle fade + rise on enter
   ───────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition:
    opacity .7s cubic-bezier(.22, .61, .36, 1),
    transform .7s cubic-bezier(.22, .61, .36, 1);
  transition-delay: var(--reveal-delay, 0ms);
  will-change: opacity, transform;
}
.reveal.in {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

/* Hero content — staggered load-in */
.hero-h1  { opacity: 0; animation: heroRise .9s cubic-bezier(.22, .61, .36, 1) .15s both; }
.hero-sub { opacity: 0; animation: heroRise .9s cubic-bezier(.22, .61, .36, 1) .30s both; }
/* Button rises in, then hands off to its existing glow pulse */
.btn-hero-primary {
  animation:
    heroRise .9s cubic-bezier(.22, .61, .36, 1) .45s both,
    heroBtnPulse 2.8s ease-in-out 1.6s infinite;
}
@keyframes heroRise {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-h1, .hero-sub, .btn-hero-primary { opacity: 1; animation: none; }
}

/* ─────────────────────────────────────────────
   Footer brand note
   ───────────────────────────────────────────── */
.footer-brand-note {
  margin-top: 1rem;
  font-size: .8rem;
  color: var(--muted2);
  letter-spacing: .01em;
}

/* ─────────────────────────────────────────────
   Legal / content pages (privacy, terms)
   ───────────────────────────────────────────── */
.legal-page {
  max-width: 820px;
  margin: 0 auto;
  padding: 7.5rem 1.5rem 4rem;
}
.legal-eyebrow {
  display: inline-block;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: .9rem;
}
.legal-page h1 {
  font-size: clamp(2rem, 5vw, 2.9rem);
  font-weight: 800;
  letter-spacing: -.02em;
  margin-bottom: .6rem;
}
.legal-updated {
  font-size: .85rem;
  color: var(--muted2);
  margin-bottom: 2.5rem;
}
.legal-page h2 {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 2.4rem 0 .8rem;
  letter-spacing: -.01em;
}
.legal-page p,
.legal-page li {
  font-size: .96rem;
  line-height: 1.7;
  color: var(--muted);
}
.legal-page p { margin-bottom: 1rem; }
.legal-page ul {
  margin: 0 0 1rem 1.2rem;
  display: flex;
  flex-direction: column;
  gap: .5rem;
}
.legal-page a { color: var(--accent); text-decoration: none; }
.legal-page a:hover { text-decoration: underline; }
.legal-page strong { color: var(--text); font-weight: 600; }
.legal-intro {
  font-size: 1.05rem !important;
  color: var(--text) !important;
  line-height: 1.65 !important;
}
