@import url("/assets/css/header-mobile-fix.css");

:root{
  --brand-1:#f0c000;
  --brand-2:#f0a000;
  --brand-3:#f06000;
  --brand-4:#00a0f0;

  --bg:#08111d;
  --bg-soft:#0d1726;
  --bg-elev:#101c2f;
  --panel:#101a2b;
  --panel-2:#172336;
  --panel-3:#0b1524;

  --text:#f0f0f0;
  --muted:#b3c2cf;
  --muted-2:#8799aa;

  --line:rgba(255,255,255,.08);
  --line-strong:rgba(255,255,255,.14);

  --wrap:1200px;
  --radius:18px;
  --radius-sm:14px;

  --shadow-sm:0 10px 24px rgba(0,0,0,.18);
  --shadow-md:0 16px 40px rgba(0,0,0,.24);
  --shadow-lg:0 26px 80px rgba(0,0,0,.34);

  --grad-brand:linear-gradient(135deg,var(--brand-1),var(--brand-2) 36%,var(--brand-3) 72%,var(--brand-4));
  --grad-soft:linear-gradient(180deg,rgba(240,192,0,.08),rgba(240,160,0,.06) 34%,rgba(240,96,0,.05) 68%,rgba(0,160,240,.06));
}

*{box-sizing:border-box}

html{
  scroll-behavior:smooth;
}

body{
  margin:0;
  background:
    radial-gradient(circle at 0% 0%, rgba(0,160,240,.12), transparent 24%),
    radial-gradient(circle at 100% 0%, rgba(240,192,0,.10), transparent 18%),
    radial-gradient(circle at 78% 24%, rgba(240,96,0,.06), transparent 16%),
    linear-gradient(180deg, #08111d 0%, #091321 35%, #07111d 100%);
  color:var(--text);
  font:16px/1.65 Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  -webkit-font-smoothing:antialiased;
  text-rendering:optimizeLegibility;
}

a{
  color:var(--brand-4);
  text-decoration:none;
  transition:color .18s ease, opacity .18s ease;
}

a:hover{
  color:var(--brand-1);
}

img{
  max-width:100%;
  height:auto;
}

.wrap{
  width:min(var(--wrap), calc(100% - 32px));
  margin:0 auto;
}

.content,
.wrap.content{
  width:min(900px, calc(100% - 32px));
  margin:0 auto;
}

.brand{
  font-weight:800;
  letter-spacing:.2px;
}

.eyebrow{
  display:inline-flex;
  align-items:center;
  gap:8px;
  margin:0 0 14px;
  padding:7px 12px;
  border:1px solid rgba(240,192,0,.18);
  border-radius:999px;
  background:linear-gradient(180deg, rgba(240,192,0,.08), rgba(255,255,255,.02));
  color:var(--brand-1);
  font-size:12px;
  font-weight:800;
  letter-spacing:.12em;
  text-transform:uppercase;
}

h1,h2,h3{
  margin:0 0 14px;
  line-height:1.1;
  color:#fbfdff;
}

h1{
  font-size:clamp(2.4rem, 5vw, 4.5rem);
  letter-spacing:-.03em;
}

h2{
  font-size:clamp(1.55rem, 2.6vw, 2.3rem);
  letter-spacing:-.02em;
}

h3{
  font-size:1.08rem;
}

p{
  margin:0 0 16px;
}

.lead{
  color:var(--muted);
  max-width:760px;
  font-size:1.06rem;
}

.content p,
.content li{
  color:var(--muted);
}

ul{
  padding-left:20px;
  margin:0 0 18px;
}

li{
  margin:0 0 8px;
}

.hero{
  position:relative;
  overflow:hidden;
  padding:88px 0 56px;
}

.hero::before{
  content:"";
  position:absolute;
  inset:0;
  pointer-events:none;
  background:
    radial-gradient(circle at 10% 12%, rgba(240,192,0,.11), transparent 24%),
    radial-gradient(circle at 88% 14%, rgba(0,160,240,.12), transparent 28%),
    radial-gradient(circle at 78% 84%, rgba(240,96,0,.09), transparent 22%);
}

.hero-grid{
  position:relative;
  display:grid;
  grid-template-columns:minmax(0,1.08fr) minmax(340px,.92fr);
  gap:34px;
  align-items:center;
}

.hero h1{
  background:linear-gradient(135deg,#ffffff 0%, #fff0b8 34%, #ffd575 66%, #ddf4ff 100%);
  -webkit-background-clip:text;
  background-clip:text;
  color:transparent;
}

.hero-actions{
  display:flex;
  gap:12px;
  flex-wrap:wrap;
  margin-top:24px;
}

.section{
  padding:34px 0;
}

.section.alt{
  background:linear-gradient(180deg, rgba(255,255,255,.014), rgba(255,255,255,.006));
  border-top:1px solid rgba(255,255,255,.035);
  border-bottom:1px solid rgba(255,255,255,.035);
}

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

.mini-grid{
  display:grid;
  grid-template-columns:repeat(2, minmax(0,1fr));
  gap:16px;
  margin-top:18px;
}

.card,
.tool-card,
.generator-card{
  background:
    linear-gradient(180deg, rgba(255,255,255,.045), rgba(255,255,255,.02)),
    linear-gradient(180deg, var(--panel), var(--panel-2));
  border:1px solid var(--line);
  border-radius:var(--radius);
  box-shadow:var(--shadow-md);
}

.card,
.tool-card{
  position:relative;
  overflow:hidden;
}

.card::before,
.tool-card::before,
.generator-card::before{
  content:"";
  position:absolute;
  inset:0 0 auto 0;
  height:2px;
  background:linear-gradient(90deg, var(--brand-1), var(--brand-2), var(--brand-3), var(--brand-4));
  opacity:.95;
}

.tool-card{
  padding:22px;
  transition:transform .18s ease, border-color .18s ease, box-shadow .22s ease;
}

.tool-card:hover,
.card:hover{
  transform:translateY(-3px);
  border-color:rgba(240,192,0,.24);
  box-shadow:
    0 18px 45px rgba(0,0,0,.28),
    0 0 0 1px rgba(240,192,0,.06);
}

.tool-card::after{
  content:"";
  position:absolute;
  inset:auto 0 0 0;
  height:1px;
  background:linear-gradient(90deg, transparent, rgba(240,192,0,.30), rgba(0,160,240,.24), transparent);
  opacity:.7;
}

.tool-card h3{
  margin-bottom:10px;
}

.tool-card p{
  margin:0;
  color:var(--muted);
  line-height:1.6;
}

.card{
  padding:22px;
}

.generator-card{
  position:relative;
  overflow:hidden;
  padding:24px;
  border-color:rgba(240,192,0,.22);
  background:
    linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.025)),
    linear-gradient(180deg, rgba(12,24,40,.98), rgba(15,28,46,.98));
  box-shadow:
    0 22px 60px rgba(0,0,0,.34),
    0 0 0 1px rgba(240,192,0,.05);
}

.generator-card h2{
  color:#ffffff;
  font-size:1.85rem;
  margin-bottom:14px;
}

.generator-card label{
  display:block;
  font-size:13px;
  margin:12px 0 6px;
  color:var(--muted);
  font-weight:700;
}

input,
select,
textarea{
  width:100%;
  background:#091426;
  border:1px solid rgba(255,255,255,.10);
  color:var(--text);
  border-radius:14px;
  padding:14px 14px;
  font:inherit;
  transition:border-color .18s ease, box-shadow .18s ease, background .18s ease;
}

input::placeholder,
textarea::placeholder{
  color:#7f91a4;
}

input:focus,
select:focus,
textarea:focus{
  outline:none;
  border-color:rgba(240,192,0,.55);
  box-shadow:0 0 0 4px rgba(240,192,0,.10);
  background:#0b172b;
}

.generator-card textarea{
  margin-top:12px;
  min-height:140px;
  resize:vertical;
}

.search-box{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  margin:18px 0 0;
}

.search-box input{
  flex:1 1 320px;
  min-height:48px;
}

.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:48px;
  padding:0 18px;
  border-radius:14px;
  border:1px solid var(--line);
  cursor:pointer;
  font-weight:800;
  letter-spacing:.01em;
  transition:transform .18s ease, border-color .18s ease, opacity .18s ease, box-shadow .22s ease, filter .22s ease, background .18s ease;
  box-shadow:0 12px 24px rgba(0,0,0,.18);
}

.btn:hover{
  transform:translateY(-1px);
}

.btn-primary{
  color:#1a1100;
  background:var(--grad-brand);
  border-color:transparent;
}

.btn-primary:hover{
  filter:brightness(1.03);
  box-shadow:
    0 16px 30px rgba(240,160,0,.18),
    0 8px 18px rgba(0,160,240,.10);
}

.btn-secondary{
  background:rgba(255,255,255,.04);
  color:var(--text);
  border:1px solid rgba(255,255,255,.10);
}

.btn-secondary:hover{
  background:rgba(255,255,255,.08);
  border-color:rgba(255,255,255,.16);
}

.full{
  width:100%;
}

.site-footer{
  margin-top:36px;
  border-top:1px solid rgba(255,255,255,.06);
  background:
    radial-gradient(circle at left top, rgba(240,192,0,.05), transparent 24%),
    radial-gradient(circle at right top, rgba(0,160,240,.05), transparent 24%),
    linear-gradient(180deg, rgba(7,12,20,.45), rgba(5,9,15,.92));
}

.footer-grid{
  display:grid;
  grid-template-columns:2fr 1fr 1fr;
  gap:24px;
  padding:28px 0 40px;
}

.site-footer p,
.site-footer a{
  color:var(--muted);
}

.site-footer a:hover{
  color:var(--brand-1);
}

.brand-logo img{
  filter:
    drop-shadow(0 0 12px rgba(240,192,0,.14))
    drop-shadow(0 0 18px rgba(0,160,240,.10));
}

hr{
  border:0;
  border-top:1px solid rgba(255,255,255,.08);
}

::selection{
  background:rgba(0,160,240,.24);
  color:#fff;
}

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

@media (max-width: 960px){
  .grid,
  .mini-grid,
  .footer-grid{
    grid-template-columns:1fr;
  }

  .hero{
    padding:48px 0 28px;
  }

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

  .hero-actions .btn{
    width:100%;
  }

  .generator-card{
    padding:18px;
  }

  .section{
    padding:26px 0;
  }

  h1{
    line-height:1.08;
  }
}

/* Cleaner premium homepage flow */
main > .section:first-of-type{
  padding-top:42px;
}

.wrap.content{
  max-width:860px;
}

main .wrap.content h2{
  margin-top:18px;
}

main .wrap.content ul{
  margin-top:10px;
}

footer strong{
  display:inline-block;
  margin-bottom:10px;
  font-size:1.05rem;
}

@media (min-width: 961px){
  .hero{
    padding-bottom:64px;
  }

  .section{
    padding:30px 0;
  }
}

/* Homepage layout: desktop split, mobile generator first */
.hero-grid-home{
  display:grid;
  grid-template-columns:minmax(0,1.02fr) minmax(360px,.98fr);
  gap:34px;
  align-items:center;
}

.hero-copy-home{
  order:1;
  max-width:760px;
}

.generator-card-home{
  order:2;
}

@media (max-width: 1100px){
  .hero-grid-home{
    grid-template-columns:1fr;
    gap:22px;
  }

  .generator-card-home{
    order:1;
  }

  .hero-copy-home{
    order:2;
    max-width:none;
  }
}

@media (max-width: 960px){
  .hero{
    padding-top:28px;
  }

  .hero-grid-home{
    gap:18px;
  }

  .generator-card-home{
    margin-top:0;
  }

  .hero-copy-home .hero-actions{
    margin-top:18px;
  }
}

@media (max-width: 960px){
  .hero-copy-home .lead{
    margin-bottom:12px;
  }

  .generator-card-home{
    padding:16px;
  }

  .generator-card-home h2{
    font-size:1.5rem;
    margin-bottom:10px;
  }
}

.example-chips{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin:0 0 14px;
}

.chip-btn{
  appearance:none;
  border:1px solid rgba(255,255,255,.10);
  background:rgba(255,255,255,.04);
  color:var(--text);
  border-radius:999px;
  padding:8px 12px;
  font:inherit;
  font-size:.92rem;
  cursor:pointer;
  transition:background .18s ease,border-color .18s ease,transform .18s ease,color .18s ease;
}

.chip-btn:hover{
  background:rgba(240,192,0,.10);
  border-color:rgba(240,192,0,.26);
  color:#fff;
  transform:translateY(-1px);
}

.generator-actions-row{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin:14px 0 12px;
}

.generator-actions-row .btn{
  min-height:42px;
  flex:0 0 auto;
}

@media (max-width: 960px){
  .generator-actions-row{
    flex-direction:column;
  }

  .generator-actions-row .btn{
    width:100%;
  }
}

/* Premium generator polish */
.generator-card{
  position:relative;
}

.generator-card h2{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
}

.generator-card textarea{
  min-height:190px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.03), rgba(255,255,255,.015)),
    #091426;
  border:1px solid rgba(255,255,255,.11);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.03);
  line-height:1.6;
}

.generator-card textarea:focus{
  background:#0b172b;
}

.example-chips{
  margin-bottom:16px;
}

.chip-btn{
  font-size:.88rem;
  font-weight:700;
  letter-spacing:.01em;
  padding:9px 13px;
  box-shadow:0 6px 14px rgba(0,0,0,.10);
}

.generator-actions-row{
  align-items:center;
}

.generator-actions-row .btn{
  font-size:.92rem;
  padding:0 14px;
}

#advancedBtn{
  border-color:rgba(240,192,0,.20);
}

#advancedBtn:hover{
  background:rgba(240,192,0,.10);
  border-color:rgba(240,192,0,.28);
}

#copyBtn{
  margin-top:10px;
}

@media (min-width: 961px){
  .generator-card{
    padding:26px;
  }

  .generator-card .full{
    max-width:none;
  }

  .generator-actions-row{
    justify-content:flex-start;
  }
}

@media (max-width: 960px){
  .generator-card{
    padding:16px;
  }

  .generator-actions-row{
    position:sticky;
    bottom:0;
    z-index:3;
    padding-top:10px;
    padding-bottom:2px;
    background:linear-gradient(180deg, rgba(16,26,43,0), rgba(16,26,43,.92) 28%, rgba(16,26,43,.98));
    margin-top:12px;
  }

  .generator-card textarea{
    min-height:170px;
  }

  .chip-btn{
    width:100%;
    text-align:left;
  }
}

/* Advanced progress feel */
#advancedBtn{
  position:relative;
  overflow:hidden;
}

#advancedBtn::after{
  content:"";
  position:absolute;
  inset:auto 0 0 0;
  height:2px;
  background:linear-gradient(90deg, rgba(240,192,0,.0), rgba(240,192,0,.85), rgba(0,160,240,.75));
  opacity:.65;
}

/* Pro Mode */
.pro-mode-row{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:12px 16px;
  margin:12px 0 14px;
  padding:12px 14px;
  border:1px solid rgba(240,192,0,.14);
  border-radius:14px;
  background:linear-gradient(180deg, rgba(240,192,0,.05), rgba(0,160,240,.03));
}

.pro-mode-toggle{
  display:inline-flex;
  align-items:center;
  gap:10px;
  font-weight:800;
  color:var(--text);
  cursor:pointer;
}

.pro-mode-toggle input{
  width:18px;
  height:18px;
  accent-color:#f0c000;
}

.pro-mode-help{
  margin:0;
  color:var(--muted);
  font-size:.94rem;
}

@media (max-width: 960px){
  .pro-mode-row{
    align-items:flex-start;
    flex-direction:column;
  }
}

/* Role presets */
.role-row{
  margin:12px 0 10px;
}

.role-row label{
  display:block;
  margin:0 0 6px;
  font-size:13px;
  color:var(--muted);
  font-weight:700;
}

/* Output format presets */
.format-row{
  margin:12px 0 10px;
}

.format-row label{
  display:block;
  margin:0 0 6px;
  font-size:13px;
  color:var(--muted);
  font-weight:700;
}

/* Smart preset rows */
.role-row,
.format-row{
  margin:12px 0 10px;
}

.role-row label,
.format-row label{
  display:block;
  margin:0 0 6px;
  font-size:13px;
  color:var(--muted);
  font-weight:700;
}

.generator-actions-row-bottom{
  margin-top:10px;
}

@media (max-width: 960px){
  .generator-actions-row-bottom{
    margin-top:8px;
  }
}

/* Recent prompts */
.recent-prompts-card{
  margin-top:18px;
  padding:22px;
}

.recent-prompts-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin-bottom:8px;
}

.recent-prompts-head h2{
  margin:0;
}

.recent-prompts-help{
  margin:0 0 14px;
  color:var(--muted);
}

.recent-prompts-list{
  display:grid;
  gap:12px;
}

.recent-prompt-item{
  border:1px solid rgba(255,255,255,.08);
  border-radius:14px;
  padding:14px;
  background:rgba(255,255,255,.02);
}

.recent-prompt-load{
  display:block;
  width:100%;
  text-align:left;
  background:none;
  border:0;
  color:var(--text);
  font:inherit;
  font-weight:800;
  cursor:pointer;
  padding:0;
  margin:0 0 6px;
}

.recent-prompt-load:hover{
  color:var(--brand-1);
}

.recent-prompt-meta{
  margin:0 0 10px;
  color:var(--muted);
  font-size:.92rem;
}

.recent-prompt-delete{
  appearance:none;
  border:1px solid rgba(255,255,255,.10);
  background:rgba(255,255,255,.04);
  color:var(--text);
  border-radius:10px;
  padding:8px 12px;
  font:inherit;
  cursor:pointer;
}

.recent-prompt-delete:hover{
  background:rgba(255,255,255,.08);
}

.recent-prompts-empty{
  margin:0;
  color:var(--muted);
}

@media (max-width: 960px){
  .recent-prompts-head{
    flex-direction:column;
    align-items:flex-start;
  }

  .recent-prompts-head .btn{
    width:100%;
  }
}

/* Favorites */
.favorites-card{
  margin-top:18px;
  padding:22px;
}

.favorites-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin-bottom:8px;
}

.favorites-head h2{
  margin:0;
}

.favorites-help{
  margin:0 0 14px;
  color:var(--muted);
}

.favorites-list{
  display:grid;
  gap:12px;
}

.favorite-prompt-item{
  border:1px solid rgba(255,255,255,.08);
  border-radius:14px;
  padding:14px;
  background:rgba(255,255,255,.02);
}

.favorite-prompt-load{
  display:block;
  width:100%;
  text-align:left;
  background:none;
  border:0;
  color:var(--text);
  font:inherit;
  font-weight:800;
  cursor:pointer;
  padding:0;
  margin:0 0 6px;
}

.favorite-prompt-load:hover{
  color:var(--brand-1);
}

.favorite-prompt-meta{
  margin:0 0 10px;
  color:var(--muted);
  font-size:.92rem;
}

.favorite-prompt-delete{
  appearance:none;
  border:1px solid rgba(255,255,255,.10);
  background:rgba(255,255,255,.04);
  color:var(--text);
  border-radius:10px;
  padding:8px 12px;
  font:inherit;
  cursor:pointer;
}

.favorite-prompt-delete:hover{
  background:rgba(255,255,255,.08);
}

.favorite-prompt-empty{
  margin:0;
  color:var(--muted);
}

/* Footer network row */
.footer-network-row{
  border-top:1px solid rgba(255,255,255,.08);
  margin-top:18px;
  padding:16px 0 4px;
  display:flex;
  flex-wrap:wrap;
  justify-content:space-between;
  gap:10px 18px;
  color:var(--muted);
  font-size:.92rem;
}

.footer-credit{
  color:var(--muted);
}

.footer-network-links{
  display:flex;
  flex-wrap:wrap;
  gap:10px 14px;
}

.footer-network-row a{
  color:var(--muted);
}

.footer-network-row a:hover{
  color:var(--brand-1);
}

@media (max-width: 960px){
  .footer-network-row{
    flex-direction:column;
    align-items:flex-start;
  }

  .footer-network-links{
    gap:8px 12px;
  }
}

.footer-network-row{
  opacity:.96;
}

.footer-network-links a{
  position:relative;
}

.footer-network-links a:not(:last-child)::after{
  content:"•";
  margin-left:14px;
  color:rgba(255,255,255,.20);
}

@media (max-width: 960px){
  .footer-network-links a:not(:last-child)::after{
    margin-left:10px;
  }
}

/* Homepage + tools hub product polish */
.hero-copy-home .mini-grid{
  margin-top:18px;
}

.hero-copy-home .tool-card{
  padding:18px;
}

.hero-copy-home .tool-card h3{
  margin-bottom:8px;
}

.hero-copy-home .tool-card p{
  margin:0;
}

@media (max-width: 960px){
  .hero-copy-home .mini-grid{
    grid-template-columns:1fr;
  }
}

/* ================================
   Sitewide spacing + consistency pass
   ================================ */

:root{
  --wrap: min(1180px, calc(100% - 32px));
  --wrap-narrow: min(900px, calc(100% - 32px));
  --section-pad: 56px;
  --section-pad-mobile: 28px;
  --card-pad: 22px;
  --card-pad-mobile: 16px;
  --radius-lg: 22px;
  --radius-md: 16px;
}

.wrap{
  width: var(--wrap);
  margin: 0 auto;
}

.wrap.content{
  width: var(--wrap-narrow);
}

main{
  display:block;
}

section.section,
section.hero{
  position:relative;
}

.section{
  padding: var(--section-pad) 0;
}

.hero{
  padding: 72px 0 56px;
}

.section + .section{
  margin-top: 0;
}

.section h2,
.section h3,
.content h2,
.content h3{
  scroll-margin-top: 100px;
}

.content > * + *{
  margin-top: 16px;
}

.content h2{
  margin-top: 0;
  margin-bottom: 12px;
}

.content h2 + p,
.content h3 + p,
.content p + ul,
.content p + ol{
  margin-top: 10px;
}

.content ul,
.content ol{
  padding-left: 20px;
}

.content li + li{
  margin-top: 6px;
}

.lead{
  margin: 0;
}

.eyebrow{
  margin-bottom: 12px;
}

.hero-actions{
  margin-top: 22px;
}

.grid{
  gap: 18px;
  margin-top: 18px;
}

.mini-grid{
  gap: 16px;
}

.card,
.tool-card{
  border-radius: var(--radius-lg);
}

.tool-card{
  padding: var(--card-pad);
}

.tool-card h3{
  margin-bottom: 8px;
}

.tool-card p{
  margin: 0;
}

.generator-card{
  padding: 24px;
  border-radius: 22px;
}

.generator-card > * + *{
  margin-top: 12px;
}

.generator-card label{
  margin: 0 0 6px;
}

.generator-card input,
.generator-card select,
.generator-card textarea{
  margin: 0;
}

.generator-card textarea{
  min-height: 180px;
}

.generator-card .generator-actions-row + textarea{
  margin-top: 12px;
}

.generator-actions-row{
  gap: 10px;
}

.generator-actions-row-bottom{
  margin-top: 10px;
}

.role-row,
.format-row,
.pro-mode-row{
  margin-top: 10px;
}

.pro-mode-row{
  padding: 12px 14px;
}

.recent-prompts-card,
.favorites-card{
  padding: 22px;
  border-radius: 22px;
}

.recent-prompts-card + .favorites-card{
  margin-top: 18px;
}

.recent-prompts-list,
.favorites-list{
  margin-top: 10px;
}

.recent-prompt-item,
.favorite-prompt-item{
  padding: 14px;
  border-radius: 14px;
}

.site-footer{
  margin-top: 40px;
}

.footer-grid{
  padding: 30px 0 22px;
}

.footer-grid > div > p{
  margin-top: 10px;
}

.footer-grid a{
  line-height: 1.9;
}

.footer-network-row{
  padding: 14px 0 6px;
}

.footer-network-links{
  row-gap: 8px;
}

.hero-grid-home{
  align-items: start;
}

.generator-card-home{
  align-self: start;
}

.hero-copy-home{
  padding-top: 4px;
}

.hero-copy-home .mini-grid{
  margin-top: 20px;
}

.hero-copy-home .tool-card{
  min-height: 100%;
}

body main .card + .card{
  margin-top: 18px;
}

body main .wrap > .card + .card{
  margin-top: 18px;
}

/* Better rhythm for hub pages */
.section .wrap > h2{
  margin-bottom: 6px;
}

.section .wrap > h2 + .grid,
.section .wrap > h2 + .mini-grid,
.section .wrap > h2 + .card,
.section .wrap > h2 + p{
  margin-top: 16px;
}

/* Slightly cleaner footer hierarchy */
.site-footer strong{
  display:inline-block;
  margin-bottom: 6px;
}

/* Mobile spacing */
@media (max-width: 960px){
  .section{
    padding: var(--section-pad-mobile) 0;
  }

  .hero{
    padding: 32px 0 24px;
  }

  .tool-card{
    padding: var(--card-pad-mobile);
  }

  .generator-card{
    padding: 16px;
  }

  .recent-prompts-card,
  .favorites-card{
    padding: 16px;
  }

  .footer-grid{
    padding: 24px 0 18px;
  }

  .footer-network-row{
    padding: 12px 0 2px;
  }

  .hero-copy-home{
    padding-top: 0;
  }

  .content > * + *{
    margin-top: 14px;
  }

  .grid,
  .mini-grid{
    gap: 14px;
  }
}

/* Large screens: slightly more breathing room */
@media (min-width: 1200px){
  .hero{
    padding: 84px 0 60px;
  }

  .section{
    padding: 60px 0;
  }
}

/* Footer network subtle polish */
.footer-credit,
.footer-network-links{
  font-size:.9rem;
}

.footer-credit{
  opacity:.95;
}

.footer-network-links{
  opacity:.88;
}

.footer-network-row{
  border-top:1px solid rgba(255,255,255,.06);
}

/* Content consistency pass */
.content h2{
  font-size:clamp(1.55rem, 2.5vw, 2.2rem);
}

.content ul{
  margin: 0;
}

.content ul li::marker,
.content ol li::marker{
  color: var(--brand-1);
}

.content p + h2,
.content ul + h2,
.content ol + h2{
  margin-top: 26px;
}

.content a{
  text-underline-offset: 2px;
}

.content a:hover{
  text-decoration: underline;
}

/* Nav + footer consistency pass */
.nav a{
  white-space: nowrap;
}

.footer-grid{
  align-items: start;
}

.footer-grid > div{
  min-width: 0;
}

.footer-grid a{
  display: inline-block;
}

.footer-grid > div:nth-child(2) a,
.footer-grid > div:nth-child(3) a{
  opacity: .96;
}

.footer-grid > div:nth-child(2) a:hover,
.footer-grid > div:nth-child(3) a:hover{
  opacity: 1;
}

.footer-network-row{
  justify-content: space-between;
}

@media (max-width: 960px){
  .nav a{
    white-space: normal;
  }
}
