:root{
  --bg:#030303;
  --bg-soft:#0a0a0d;
  --panel:#101014;
  --line:rgba(255,255,255,0.08);
  --line-strong:rgba(255,255,255,0.12);
  --white:rgba(255,255,255,0.94);
  --muted:rgba(255,255,255,0.68);
  --gold:#d4af37;
  --gold-soft:#edd27a;
  --blue:rgba(43, 88, 255, 0.18);
  --purple:rgba(107, 47, 184, 0.18);
  --glass-bg:rgba(255,255,255,0.05);
  --glass-bg-strong:rgba(255,255,255,0.075);
  --glass-border:rgba(255,255,255,0.10);
  --shadow:0 20px 50px rgba(0,0,0,0.45);
  --radius:24px;
  --radius-pill:999px;
  --success:rgba(40,167,69,0.22);
  --warning:rgba(255,193,7,0.16);
  --danger:rgba(220,53,69,0.18);
}

*{
  box-sizing:border-box;
}

html{
  scroll-behavior:smooth;
  max-width:100%;
  overflow-x:hidden;
}

body{
  margin:0;
  max-width:100%;
  min-height:100vh;
  overflow-x:hidden;
  font-family:'Inter',sans-serif;
  color:var(--white);
  background:
    radial-gradient(circle at top left, var(--blue), transparent 28%),
    radial-gradient(circle at top right, var(--purple), transparent 24%),
    linear-gradient(135deg, #020202 0%, #050507 55%, #0a0910 100%);
}

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

/* =========================================================
   EXACT HOME PAGE NAVBAR SHELL
   ========================================================= */

.site-navbar{
  padding-top:.55rem;
  padding-bottom:.55rem;
  background:rgba(0,0,0,0.68);
  border-bottom:1px solid rgba(255,255,255,0.06);
  backdrop-filter:blur(14px);
  -webkit-backdrop-filter:blur(14px);
}

.site-brand{
  padding:0;
  margin-right:1rem;
  color:var(--gold) !important;
  font-weight:800;
  letter-spacing:.3px;
  font-size:1.2rem;
  text-decoration:none;
}

.site-logo{
  display:block;
  width:auto;
  max-width:100%;
  height:40px;
  object-fit:contain;
}

.site-link{
  color:rgba(255,255,255,0.82) !important;
  font-weight:500;
  transition:color .25s ease;
}

.site-link:hover,
.site-link:focus{
  color:var(--gold) !important;
}

.navbar-toggler-white{
  filter:invert(1);
}

.site-navbar .glass-btn-sm{
  min-width:auto;
  padding:.74rem 1.14rem;
  font-size:.9rem;
  line-height:1;
  border-radius:999px;
}

.glass-btn,
.btn-glass{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:140px;
  padding:.95rem 1.5rem;
  border-radius:var(--radius-pill);
  text-decoration:none;
  font-weight:700;
  color:var(--gold-soft);
  background:linear-gradient(180deg, rgba(255,255,255,0.10), rgba(255,255,255,0.04));
  border:1px solid var(--glass-border);
  backdrop-filter:blur(12px);
  -webkit-backdrop-filter:blur(12px);
  box-shadow:var(--shadow);
  transition:all .25s ease;
}

.glass-btn:hover,
.glass-btn:focus,
.btn-glass:hover,
.btn-glass:focus{
  transform:translateY(-2px);
  color:#fff3c7;
  border-color:rgba(212,175,55,0.35);
}

.glass-btn-sm{
  min-width:auto;
  padding:.74rem 1.14rem;
  font-size:.9rem;
  line-height:1;
  border-radius:999px;
}

.btn-glass-secondary{
  color:var(--white);
  background:rgba(255,255,255,0.03);
}

/* =========================================================
   PAGE SHELL
   ========================================================= */

.hero-section{
  position:relative;
  padding-top:88px;
}

.hero-copy{
  padding:2.25rem 0 1.25rem;
}

.hero-kicker,
.eyebrow,
.overview-kicker{
  display:inline-block;
  margin-bottom:1rem;
  padding:.45rem .9rem;
  border-radius:var(--radius-pill);
  border:1px solid var(--glass-border);
  background:rgba(255,255,255,0.04);
  color:var(--gold-soft);
  font-size:.78rem;
  font-weight:700;
  letter-spacing:.08em;
  text-transform:uppercase;
}

.hero-title{
  font-size:clamp(2.4rem, 6vw, 4.8rem);
  line-height:1.02;
  font-weight:900;
  letter-spacing:-0.03em;
  margin-bottom:1rem;
}

.hero-subtitle,
.section-text,
.muted-copy,
.helper-copy,
.audit-list li,
.form-text,
.overview-copy,
.overview-item p,
.footer-brand-copy{
  color:var(--muted) !important;
  line-height:1.82;
  font-size:1rem;
}

.hero-actions,
.action-wrap,
.output-meta,
.audit-grid{
  display:flex;
  flex-wrap:wrap;
  gap:.85rem;
}

.preview-stack{
  display:grid;
  gap:1.15rem;
}

.hero-panel{
  display:flex;
  align-items:center;
  justify-content:center;
  min-height:100%;
}

.hero-panel-inner,
.glass-panel,
.output-panel,
.content-block,
.tag-card,
.preview-card,
.audit-box{
  border-radius:var(--radius);
  background:linear-gradient(180deg, rgba(255,255,255,0.065), rgba(255,255,255,0.03));
  border:1px solid rgba(255,255,255,0.07);
  backdrop-filter:blur(16px);
  -webkit-backdrop-filter:blur(16px);
  box-shadow:var(--shadow);
  max-width:100%;
}

.hero-panel-inner,
.glass-panel,
.output-panel,
.content-block{
  padding:2.4rem;
}

.section-title,
.form-section-title,
.output-title,
.overview-title,
.overview-item-title,
.preview-title,
.tag-card-title{
  color:var(--gold-soft);
}

.hero-overview{
  display:grid;
  gap:1rem;
}

.overview-card,
.overview-item,
.tag-card,
.preview-card{
  padding:1.15rem;
  border-radius:20px;
  background:rgba(255,255,255,0.04);
  border:1px solid rgba(255,255,255,0.07);
}

.tag-card{
  padding:1.35rem;
}

.preview-card{
  padding:1.2rem;
  border-radius:22px;
  background:rgba(255,255,255,0.035);
}

.overview-title{
  font-size:1.35rem;
  font-weight:800;
  line-height:1.25;
  margin-bottom:.55rem;
}

.overview-grid{
  display:grid;
  gap:.9rem;
  grid-template-columns:repeat(2, minmax(0, 1fr));
}

.overview-item-title,
.tag-card-title,
.preview-title{
  font-size:.98rem;
  font-weight:800;
  margin-bottom:.35rem;
}

.overview-footer{
  display:flex;
  flex-wrap:wrap;
  gap:.7rem;
  align-items:center;
}

.overview-chip,
.stat-pill,
.audit-pill{
  display:inline-flex;
  align-items:center;
  gap:.45rem;
  padding:.48rem .8rem;
  border-radius:var(--radius-pill);
  border:1px solid var(--glass-border);
  background:rgba(255,255,255,0.05);
  color:var(--white);
  font-size:.78rem;
  font-weight:700;
}

.audit-pill.good{
  background:var(--success);
}

.audit-pill.warn{
  background:var(--warning);
}

.audit-pill.bad{
  background:var(--danger);
}

.tool-shell{
  padding:1.25rem 0 2rem;
}

.intro-block{
  max-width:880px;
  margin-bottom:1.3rem;
}

.generator-grid > .col-xl-7,
.generator-grid > .col-xl-5{
  display:flex;
}

.generator-grid .glass-panel,
.generator-grid .output-panel{
  width:100%;
  height:100%;
}

.stack-gap > * + *{
  margin-top:1.5rem;
}

.section-shell + .section-shell{
  margin-top:1.2rem;
  padding-top:1.35rem;
  border-top:1px solid rgba(255,255,255,0.07);
}

.form-cluster{
  padding:1.15rem 1.1rem;
  border-radius:20px;
  background:rgba(255,255,255,0.03);
  border:1px solid rgba(255,255,255,0.06);
}

.form-section-title{
  font-size:1.08rem;
  font-weight:800;
  margin-bottom:1.15rem;
}

.form-label{
  color:var(--white);
  font-size:.92rem;
  font-weight:600;
  margin-bottom:.55rem;
}

.form-control,
.form-select{
  min-height:52px;
  border-radius:18px;
  border:1px solid var(--glass-border);
  color:var(--white);
  background:rgba(255,255,255,0.05);
  box-shadow:none;
}

.form-control::placeholder{
  color:rgba(255,255,255,0.38);
}

.form-control:focus,
.form-select:focus{
  color:var(--white);
  border-color:rgba(212,175,55,0.35);
  background:rgba(255,255,255,0.075);
  box-shadow:0 0 0 .2rem rgba(212,175,55,0.12);
}

.form-select option{
  background:#111217;
  color:#ffffff;
}

textarea.form-control{
  min-height:120px;
  resize:vertical;
}

.code-output{
  width:100%;
  min-height:510px;
  border-radius:22px;
  border:1px solid var(--glass-border);
  background:#07080d;
  color:#f8fafc;
  font-family:ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size:.92rem;
  line-height:1.7;
  padding:1.2rem 1.15rem;
  box-shadow:inset 0 0 0 1px rgba(255,255,255,0.02);
}

.code-output:focus{
  outline:none;
  border-color:rgba(212,175,55,0.35);
  box-shadow:0 0 0 .2rem rgba(212,175,55,0.12);
}

.status-note{
  margin-top:.75rem;
  color:var(--muted);
  font-size:.92rem;
}

.preview-wrap{
  display:grid;
  gap:1rem;
}

.serp-url{
  color:#8ab4f8;
  font-size:.9rem;
  line-height:1.55;
  word-break:break-word;
}

.serp-title{
  color:#d2e3fc;
  font-size:1.28rem;
  line-height:1.38;
  margin:.4rem 0 .38rem;
  font-weight:500;
}

.serp-desc{
  color:#bdc1c6;
  font-size:.97rem;
  line-height:1.72;
  margin:0;
}

.social-line{
  display:flex;
  align-items:flex-start;
  gap:.95rem;
  margin-bottom:.95rem;
}

.social-thumb{
  width:82px;
  height:82px;
  border-radius:18px;
  flex:0 0 82px;
  background:linear-gradient(135deg, rgba(212,175,55,0.22), rgba(91,147,227,0.18));
  border:1px solid rgba(255,255,255,0.08);
  overflow:hidden;
  display:flex;
  align-items:center;
  justify-content:center;
  color:rgba(255,255,255,0.65);
  font-size:.78rem;
  font-weight:700;
  text-transform:uppercase;
  text-align:center;
  padding:.3rem;
}

.social-thumb img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}

.social-domain{
  color:rgba(255,255,255,0.5);
  font-size:.84rem;
  line-height:1.45;
  word-break:break-word;
}

.social-title{
  color:#fff;
  font-size:1.12rem;
  font-weight:700;
  line-height:1.45;
  margin:.12rem 0 .32rem;
}

.social-desc{
  color:var(--muted);
  font-size:.96rem;
  line-height:1.72;
  margin:0;
}

.tag-grid{
  display:grid;
  grid-template-columns:1fr;
  gap:1.15rem;
}

.summary-meta{
  display:grid;
  grid-template-columns:repeat(3, minmax(0, 1fr));
  gap:.8rem;
}

.summary-meta .stat-pill{
  justify-content:center;
  min-height:48px;
}

.script-preview{
  white-space:pre-wrap;
  word-break:break-word;
  border-radius:18px;
  background:rgba(255,255,255,0.04);
  border:1px solid rgba(255,255,255,0.08);
  padding:1rem;
  color:#d7e0ff;
  font-family:ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size:.88rem;
  line-height:1.7;
  min-height:88px;
}

.audit-box{
  margin-top:1.15rem;
  padding:1.35rem;
}

.search-preview-card{
  padding:1.35rem;
}

.audit-title{
  font-size:1rem;
  font-weight:800;
  color:var(--gold-soft);
  margin-bottom:.8rem;
}

.audit-list{
  margin:0;
  padding-left:1.15rem;
}

.audit-list li + li{
  margin-top:.45rem;
}

/* =========================================================
   FOOTER
   ========================================================= */

.site-footer{
  padding:2.25rem 0 2.75rem;
  background:transparent;
}

.footer-copy{
  position:relative;
  padding:0;
  background:transparent;
}

.footer-shell{
  padding:1.25rem 1.5rem;
  border-radius:22px;
  background:linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0.025));
  border:1px solid rgba(255,255,255,0.08);
  box-shadow:0 16px 40px rgba(0,0,0,0.28);
  backdrop-filter:blur(12px);
  -webkit-backdrop-filter:blur(12px);
}

.footer-brand{
  display:flex;
  align-items:center;
  gap:.9rem;
  text-decoration:none;
}

.footer-logo{
  height:40px;
  max-height:none;
  width:auto;
  object-fit:contain;
  display:block;
  opacity:.96;
}

.footer-brand-title{
  color:var(--gold-soft);
  font-size:1rem;
  font-weight:800;
  line-height:1.2;
  margin:0 0 .2rem;
}

.footer-heading{
  color:rgba(255,255,255,0.72);
  font-size:.8rem;
  font-weight:800;
  letter-spacing:.08em;
  text-transform:uppercase;
  margin-bottom:.8rem;
}

.footer-links{
  display:flex;
  flex-wrap:wrap;
  gap:.8rem 1rem;
  align-items:center;
}

.footer-links a{
  color:rgba(255,255,255,0.74);
  text-decoration:none;
  transition:color .25s ease, transform .25s ease;
  font-size:.94rem;
}

.footer-links a:hover,
.footer-links a:focus{
  color:var(--gold-soft);
  transform:translateY(-1px);
}

.footer-cta{
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  gap:.85rem;
}

.footer-bottom{
  display:flex;
  flex-wrap:wrap;
  justify-content:space-between;
  gap:.85rem;
  align-items:center;
  margin-top:1.15rem;
  padding-top:.95rem;
  border-top:1px solid rgba(255,255,255,0.06);
}

.footer-meta,
.footer-credit{
  margin:0;
  color:rgba(255,255,255,0.46);
  font-size:.9rem;
  line-height:1.65;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 991.98px){
  .navbar-collapse{
    margin-top:.85rem;
    padding:1rem;
    border-radius:18px;
    background:rgba(0,0,0,0.82);
    border:1px solid rgba(255,255,255,0.08);
    backdrop-filter:blur(14px);
    -webkit-backdrop-filter:blur(14px);
  }

  .navbar-nav{
    gap:.35rem;
  }

  .site-link{
    display:block;
    padding:.75rem 0;
  }

  .hero-section{
    padding-top:82px;
  }

  .hero-copy{
    padding:2rem 0 1rem;
    text-align:center;
  }

  .hero-subtitle{
    margin-left:auto;
    margin-right:auto;
    max-width:100%;
    text-align:center;
  }

  .hero-actions{
    justify-content:center;
  }

  .hero-panel{
    margin-top:1rem;
  }

  .hero-panel-inner,
  .glass-panel,
  .output-panel,
  .content-block{
    padding:1.55rem;
  }

  .tool-shell{
    padding:1.25rem 0 2rem;
  }

  .stack-gap > * + *{
    margin-top:1.2rem;
  }

  .code-output{
    min-height:400px;
  }

  .summary-meta{
    grid-template-columns:1fr;
  }
}

@media (max-width: 767.98px){
  .container-xl{
    padding-left:1rem !important;
    padding-right:1rem !important;
  }

  .site-logo{
    height:40px;
    width:auto;
    display:block;
  }

  .hero-section{
    padding-top:78px;
  }

  .hero-copy{
    padding:1.6rem 0 .75rem;
  }

  .hero-title{
    font-size:clamp(2.2rem, 11vw, 3.4rem);
    line-height:1.04;
    text-align:center;
  }

  .hero-subtitle{
    font-size:.98rem;
    line-height:1.75;
    text-align:center;
  }

  .glass-btn{
    width:100%;
    min-width:0;
  }

  .hero-panel-inner,
  .glass-panel,
  .output-panel,
  .content-block,
  .tag-card,
  .preview-card,
  .form-cluster{
    padding:1rem;
  }

  .section-title,
  .output-title{
    text-align:center;
  }

  .section-text{
    max-width:100%;
    text-align:center;
  }

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

  .footer-shell{
    padding:1rem;
    border-radius:18px;
  }

  .footer-bottom{
    flex-direction:column;
    align-items:flex-start;
  }

  .social-line{
    flex-direction:column;
    gap:.8rem;
  }

  .social-thumb{
    width:72px;
    height:72px;
    flex-basis:72px;
  }
}

@media (max-width: 575.98px){
  .site-logo{
    height:40px;
  }

  .hero-title{
    font-size:clamp(2rem, 12vw, 2.8rem);
  }

  .hero-subtitle,
  .section-text,
  .overview-copy,
  .overview-item p,
  .helper-copy,
  .audit-list li,
  .footer-brand-copy{
    font-size:.93rem;
    line-height:1.7;
  }

  .hero-kicker,
  .eyebrow,
  .overview-kicker{
    font-size:.72rem;
  }

  .site-footer{
    padding:1.75rem 0 2.25rem;
  }

  .footer-shell{
    padding:1rem;
    border-radius:18px;
  }
}