
:root {
  --bg: #f8fafc;
  --surface: #ffffff;
  --surface-soft: #f1f5f9;
  --text: #0f172a;
  --muted: #64748b;
  --border: #e2e8f0;
  --primary: #7c3aed;
  --primary-dark: #6d28d9;
  --secondary: #2563eb;
  --secondary-dark: #1d4ed8;
  --success: #10b981;
  --warning-bg: #fff7ed;
  --warning-border: #fdba74;
  --shadow: 0 18px 55px rgba(15, 23, 42, 0.08);
  --shadow-soft: 0 10px 30px rgba(15, 23, 42, 0.06);
  --radius: 24px;
  --radius-small: 16px;
  --max-width: 1180px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Poppins", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background: radial-gradient(circle at top left, rgba(124, 58, 237, 0.12), transparent 34rem), radial-gradient(circle at top right, rgba(37, 99, 235, 0.10), transparent 30rem), var(--bg);
  line-height: 1.6;
}
body.noise::before {
  content: ""; position: fixed; inset: 0; pointer-events: none;
  background-image: linear-gradient(rgba(255,255,255,.22) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.22) 1px, transparent 1px);
  background-size: 42px 42px; mask-image: linear-gradient(to bottom, rgba(0,0,0,.75), transparent 62%); z-index: -1;
}
img, svg { max-width: 100%; }
a { color: inherit; text-decoration: none; }
.container { width: min(var(--max-width), calc(100% - 32px)); margin: 0 auto; }
.narrow { width: min(880px, calc(100% - 32px)); }
.site-header { position: sticky; top: 0; z-index: 20; backdrop-filter: blur(18px); background: rgba(248, 250, 252, 0.9); border-bottom: 1px solid rgba(226, 232, 240, 0.75); }
.header-inner { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 14px 0; }
.brand, .footer-brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; letter-spacing: -0.03em; }
.brand-mark { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 13px; background: linear-gradient(135deg, var(--primary), var(--secondary)); color: white; font-weight: 800; box-shadow: 0 10px 26px rgba(124, 58, 237, 0.22); }
.brand-mark.small { width: 32px; height: 32px; border-radius: 11px; font-size: .85rem; }
.nav { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; justify-content: flex-end; color: var(--muted); font-size: 0.92rem; font-weight: 600; }
.nav a:hover, .nav a[aria-current="page"], .footer-links a:hover, .inline-link, .text-link { color: var(--primary); }
.menu-toggle { display: none; }
.hero { padding: 66px 0 30px; }
.hero-grid, .two-col-hero { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(320px, .85fr); gap: 28px; align-items: center; }
.eyebrow { display: inline-flex; gap: 8px; align-items: center; padding: 7px 12px; border-radius: 999px; color: #5b21b6; background: rgba(124, 58, 237, 0.10); border: 1px solid rgba(124, 58, 237, 0.18); font-size: 0.82rem; font-weight: 700; }
h1, h2, h3 { margin: 0; color: var(--text); line-height: 1.1; letter-spacing: -0.04em; }
h1 { margin-top: 18px; font-size: clamp(2.25rem, 6vw, 4.55rem); max-width: 920px; }
h2 { font-size: clamp(1.65rem, 4vw, 2.45rem); }
h3 { font-size: 1.12rem; letter-spacing: -0.025em; }
.lede { margin: 18px 0 0; max-width: 780px; color: var(--muted); font-size: clamp(1rem, 2vw, 1.18rem); }
.lede.small { font-size: 1.02rem; }
.hero-actions, .form-actions, .card-actions, .filter-row, .trust-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.hero-actions { margin-top: 24px; }
.trust-row { margin-top: 20px; color: #475569; font-weight: 700; font-size: .9rem; }
.trust-row span { background: rgba(255,255,255,.72); border: 1px solid var(--border); padding: 8px 11px; border-radius: 999px; }
.hero-panel { padding: 24px; }
.hero-panel p, .hero-panel li { color: var(--muted); }
.shortcut-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 16px; }
.shortcut-grid a { padding: 12px; border-radius: 15px; background: #fff; border: 1px solid var(--border); font-weight: 700; color: #334155; }
.shortcut-grid a:hover { color: var(--primary); border-color: rgba(124, 58, 237, .4); transform: translateY(-1px); }
.section { padding: 58px 0; }
.section.compact { padding: 38px 0; }
.section.soft { background: rgba(255,255,255,.35); border-block: 1px solid rgba(226,232,240,.65); }
.section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 22px; margin-bottom: 24px; }
.section-heading p { color: var(--muted); margin: 10px 0 0; max-width: 720px; }
.card { background: rgba(255,255,255,0.88); border: 1px solid rgba(226, 232, 240, 0.95); border-radius: var(--radius); box-shadow: var(--shadow-soft); }
.generator-card { margin-top: 30px; padding: clamp(18px, 4vw, 34px); box-shadow: var(--shadow); }
.tool-head { display: flex; gap: 20px; justify-content: space-between; align-items: flex-start; margin-bottom: 22px; }
.tool-head p { color: var(--muted); margin: 10px 0 0; max-width: 760px; }
.privacy-chip { white-space: nowrap; color: #065f46; background: #ecfdf5; border: 1px solid #a7f3d0; border-radius: 999px; padding: 8px 12px; font-size: .82rem; font-weight: 800; }
.generator-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.form-group { display: grid; gap: 8px; }
.form-group.full { grid-column: 1 / -1; }
label { font-weight: 700; color: #1e293b; font-size: 0.92rem; }
select, textarea, input[type="text"], input[type="email"], input[type="search"] { width: 100%; font: inherit; color: var(--text); background: #fff; border: 1px solid var(--border); border-radius: 16px; padding: 13px 14px; outline: none; transition: border-color .2s ease, box-shadow .2s ease; }
textarea { min-height: 126px; resize: vertical; }
select:focus, textarea:focus, input:focus { border-color: rgba(124, 58, 237, 0.75); box-shadow: 0 0 0 4px rgba(124, 58, 237, 0.12); }
.form-actions { margin-top: 20px; }
.button, button { border: 0; border-radius: 999px; font-family: inherit; font-weight: 800; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 12px 18px; transition: transform .2s ease, box-shadow .2s ease, background .2s ease, color .2s ease, border-color .2s ease; }
.button.primary, button.primary { color: #fff; background: linear-gradient(135deg, var(--primary), var(--secondary)); box-shadow: 0 14px 28px rgba(124, 58, 237, 0.22); }
.button.primary:hover, button.primary:hover { transform: translateY(-1px); box-shadow: 0 18px 34px rgba(124, 58, 237, 0.28); }
.button.secondary, button.secondary { color: #334155; background: #fff; border: 1px solid var(--border); }
.button.secondary:hover, button.secondary:hover { color: var(--primary); border-color: rgba(124, 58, 237, 0.45); transform: translateY(-1px); }
.button.small, button.small { min-height: 38px; padding: 9px 14px; font-size: 0.88rem; }
.muted { color: var(--muted); }
.privacy-note, .notice, .disclaimer-box { border-radius: var(--radius-small); border: 1px solid var(--warning-border); background: var(--warning-bg); color: #7c2d12; padding: 14px 16px; font-size: 0.92rem; }
.privacy-note { margin-top: 20px; }
.output-card { margin-top: 22px; padding: 20px; border: 1px dashed rgba(124, 58, 237, 0.42); border-radius: var(--radius-small); background: linear-gradient(180deg, rgba(124, 58, 237, 0.06), rgba(37, 99, 235, 0.04)); }
.output-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.output-text { white-space: pre-wrap; color: #1e293b; background: rgba(255,255,255,0.9); border: 1px solid rgba(226, 232, 240, 0.9); border-radius: 16px; padding: 16px; min-height: 90px; }
.error-message { color: #b91c1c; font-size: 0.92rem; font-weight: 700; margin-top: 12px; display: none; }
.success-message { color: #047857; font-size: 0.9rem; font-weight: 700; min-height: 1.35em; }
.ad-slot { width: 100%; margin: 32px 0; }
.ad-slot:empty { display: none; }
.ad-slot .adsbygoogle { display: block; width: 100%; }
.ad-banner { min-height: 110px; }
.ad-incontent { min-height: 180px; margin: 30px 0; }
.ad-sidebar { min-height: 300px; margin: 0 0 18px; position: sticky; top: 88px; }
.ad-footer { min-height: 120px; }
.examples-grid, .tips-grid, .links-grid, .prompt-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.prompt-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.library-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.example-card, .tip-card, .link-card, .prompt-card, .mini-card { padding: 20px; display: flex; flex-direction: column; gap: 12px; }
.rich-links .link-card { min-height: 190px; }
.link-card span { width: fit-content; color: #5b21b6; background: rgba(124, 58, 237, 0.1); border: 1px solid rgba(124,58,237,.16); border-radius: 999px; padding: 5px 10px; font-weight: 800; font-size: .75rem; }
.link-card:hover, .prompt-card:hover, .example-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: rgba(124,58,237,.25); }
.badge { width: fit-content; padding: 6px 10px; border-radius: 999px; color: #4c1d95; background: rgba(124, 58, 237, 0.10); font-size: 0.75rem; font-weight: 800; }
.example-text, .step p, .tip-card p, .link-card p, .prompt-card p, .mini-card p, .article-card p, .article-card li { color: var(--muted); margin: 0; }
.text-link { font-weight: 800; font-size: .9rem; }
.content-with-sidebar { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 28px; align-items: start; }
.sidebar-stack { display: grid; gap: 18px; }
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; counter-reset: step; }
.step { position: relative; padding: 22px; min-height: 160px; }
.step::before { counter-increment: step; content: counter(step); display: grid; place-items: center; width: 34px; height: 34px; border-radius: 12px; color: white; background: linear-gradient(135deg, var(--primary), var(--secondary)); font-weight: 800; margin-bottom: 14px; }
.faq-list { display: grid; gap: 12px; }
details { background: #fff; border: 1px solid var(--border); border-radius: 18px; padding: 16px 18px; box-shadow: 0 7px 20px rgba(15,23,42,0.04); }
summary { cursor: pointer; font-weight: 800; color: #1e293b; }
details p { color: var(--muted); margin: 12px 0 0; }
.page-hero { padding: 56px 0 24px; }
.article-card { padding: clamp(22px, 4vw, 38px); }
.article-card h2, .article-card h3 { margin: 28px 0 12px; }
.prompt-formula { border-radius: 18px; border: 1px solid rgba(124,58,237,.22); background: rgba(124,58,237,.06); padding: 18px; margin-top: 24px; }
.library-search { margin-top: 24px; padding: 18px; display: grid; gap: 14px; }
.filter-chip { min-height: 36px; padding: 8px 13px; background: #fff; color: #475569; border: 1px solid var(--border); }
.filter-chip.active, .filter-chip:hover { color: white; background: linear-gradient(135deg, var(--primary), var(--secondary)); }
.empty-state { text-align: center; color: var(--muted); font-weight: 700; padding: 32px; }
.clean-list { padding-left: 20px; }
.contact-list { display: grid; gap: 12px; margin-top: 22px; }
.site-footer { border-top: 1px solid var(--border); padding: 34px 0; background: rgba(255,255,255,0.68); }
.footer-inner { display: flex; justify-content: space-between; gap: 22px; flex-wrap: wrap; color: var(--muted); font-size: 0.92rem; }
.footer-inner p { margin: 8px 0 0; }
.footer-links { display: flex; flex-wrap: wrap; gap: 14px; font-weight: 600; align-items: center; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
@media (max-width: 980px) {
  .hero-grid, .two-col-hero, .content-with-sidebar { grid-template-columns: 1fr; }
  .sidebar-stack { display: none; }
  .examples-grid, .links-grid, .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .header-inner { align-items: flex-start; flex-direction: column; }
  .menu-toggle { display: inline-flex; align-self: flex-end; margin-top: -48px; min-height: 38px; padding: 8px 13px; color: #334155; background: #fff; border: 1px solid var(--border); }
  .nav { display: none; width: 100%; justify-content: flex-start; gap: 10px 14px; }
  .nav.open { display: flex; }
  .hero { padding-top: 44px; }
  .generator-grid, .examples-grid, .links-grid, .steps, .prompt-grid, .library-grid { grid-template-columns: 1fr; }
  .section-heading, .tool-head { display: block; }
  .privacy-chip { display: inline-flex; margin-top: 12px; }
  .shortcut-grid { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .container, .narrow { width: min(var(--max-width), calc(100% - 22px)); }
  .brand span:last-child { font-size: 0.95rem; }
  .nav { font-size: 0.86rem; }
  .generator-card { border-radius: 20px; }
  .form-actions, .hero-actions { flex-direction: column; align-items: stretch; }
  .button, button { width: 100%; }
  .filter-chip { width: auto; }
  .output-header { align-items: flex-start; flex-direction: column; }
}


/* Tool-first homepage upgrade */
.hero-tool-first { padding: 26px 0 24px; }
.tool-first-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(290px, .65fr); gap: 24px; align-items: start; }
.instant-tool { margin-top: 0; padding: clamp(18px, 3vw, 28px); }
.compact-head { margin-bottom: 18px; align-items: center; }
.compact-head h1 { margin-top: 12px; font-size: clamp(2rem, 4.6vw, 3.45rem); max-width: 720px; }
.compact-head p { max-width: 740px; }
.instant-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.instant-grid .full { grid-column: 1 / -1; }
.instant-tool textarea { min-height: 116px; }
.instant-tool .textarea-small { min-height: 76px; }
.quick-starts { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; margin-top: 16px; color: var(--muted); font-size: .9rem; font-weight: 700; }
.starter-chip { min-height: 34px; width: auto; padding: 8px 12px; border-radius: 999px; background: #fff; color: #475569; border: 1px solid var(--border); box-shadow: none; font-size: .84rem; }
.starter-chip:hover { color: var(--primary); border-color: rgba(124, 58, 237, .45); transform: translateY(-1px); }
.compact-note { margin-top: 16px; padding: 12px 14px; }
.instant-actions { margin-top: 16px; }
.hero-side { padding: 24px; position: sticky; top: 86px; }
.hero-side h2 { font-size: clamp(1.45rem, 3vw, 2rem); margin-top: 14px; }
.hero-side p { color: var(--muted); margin: 14px 0 0; }
.compact-trust { gap: 8px; margin-top: 16px; }
.compact-trust span { font-size: .82rem; padding: 7px 10px; }
.side-shortcuts { grid-template-columns: 1fr; margin-top: 18px; }
.below-tool-ad { margin-top: 22px; margin-bottom: 0; }
@media (max-width: 980px) {
  .tool-first-grid { grid-template-columns: 1fr; }
  .hero-side { position: static; }
}
@media (max-width: 760px) {
  .hero-tool-first { padding-top: 22px; }
  .instant-grid { grid-template-columns: 1fr; }
  .compact-head { display: block; }
  .compact-head h1 { font-size: clamp(1.95rem, 11vw, 3rem); }
  .instant-tool .textarea-small { min-height: 88px; }
  .starter-chip { width: auto; }
}
@media (max-width: 520px) {
  .instant-tool { padding: 16px; }
  .quick-starts span { flex-basis: 100%; }
  .hero-side { padding: 18px; }
}


.platform-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: center;
  padding: 18px;
}

.platform-strip span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 13px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--border);
  color: var(--muted);
  font-weight: 700;
  font-size: 0.9rem;
}


.platform-launcher {
  margin-top: 18px;
  padding: 18px;
  border: 1px solid rgba(124, 58, 237, 0.14);
  border-radius: 20px;
  background: rgba(255,255,255,0.74);
}

.platform-launcher-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
}

.platform-launcher h4 {
  margin: 0;
  color: var(--text);
  font-size: 1rem;
  letter-spacing: -0.025em;
}

.platform-launcher p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

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

.platform-button {
  min-height: 42px;
  padding: 10px 12px;
  border-radius: 999px;
  color: #334155;
  background: #ffffff;
  border: 1px solid rgba(226, 232, 240, 0.95);
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.04);
  font-size: 0.92rem;
}

.platform-button:hover,
.platform-button:focus-visible {
  color: var(--primary);
  border-color: rgba(124, 58, 237, 0.38);
  transform: translateY(-1px);
}

@media (max-width: 720px) {
  .platform-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

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