/* ====== THEME ====== */
:root{
  --brand:#F6BD60;
  --bg-1:#202d45;
  --bg-2:#1B263B;
  --bg-3:#151d2c;
  --text:#FDF0D5;
  --muted:#a9b1c6;
  --btn:#0e1521;
  --btn-hover:#2c3e50;
  --shadow:0 10px 30px rgba(0,0,0,.35);
  --radius:16px;
  --border: rgba(255,255,255,.10);
}

/* ====== Base reset ====== */
*{ margin:0; padding:0; box-sizing:border-box; }
html,body{ height:100%; }
body{
  font-family:'Jost', system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, "Helvetica Neue", "Noto Sans", sans-serif;
  background: linear-gradient(180deg,var(--bg-1),var(--bg-2),var(--bg-3));
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}
a{ text-decoration:none; color:inherit; }
img{ max-width:100%; display:block; }
.container{ width:92%; max-width:1200px; margin:0 auto; }

/* ====== Buttons (only what's needed) ====== */
.btn{
  display:inline-block;
  padding:13px 16px;
  border-radius:12px;
  border:1px solid rgba(246,189,96,.6);
  background: linear-gradient(180deg, #171f2e, var(--btn));
  color: var(--brand);
  font-weight:700;
  letter-spacing:.3px;
  cursor:pointer;
  transition: transform .06s ease, background .2s ease, opacity .2s ease;
}
.btn:hover{ background: var(--btn-hover); transform: translateY(-1px); }
.btn:active{ transform: translateY(0); }

.btn-primary{
  background: var(--brand);
  color:#0e1521;
  border-color: rgba(246,189,96,.9);
}
.btn-primary:hover{ filter: brightness(1.05); transform: translateY(-1px); }

/* ====== Nav ====== */
.nav{
  position:sticky; top:0; z-index:100;
  background: rgba(15,26,42,.70);
  backdrop-filter: blur(8px) saturate(160%);
  border-bottom:1px solid rgba(255,255,255,.08);
}
.nav-inner{ display:flex; justify-content:space-between; align-items:center; height:70px; }

.nav .brand{
  display:flex; align-items:center; gap:.6rem;
  font-weight:800; color: var(--text);
  font-size:1.25rem; letter-spacing:.3px;
}
.nav .brand img{
  width:36px; height:36px;
  border-radius:.8rem;
  object-fit:contain;
}
.nav-links{ display:flex; align-items:center; gap:1.25rem; }
.nav-links a{ font-weight:600; color: var(--text); opacity:.92; }
.nav-links a:hover{ color: var(--brand); }

/* ====== Sections / Hero ====== */
.section{ padding: 64px 0; }

.hero{
  display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between;
  gap:2rem;
}
.hero-copy{ flex:1 1 450px; }
.hero-copy .eyebrow{
  display:inline-block; font-size:.85rem; letter-spacing:1px; text-transform:uppercase;
  color: var(--brand);
}
.hero-copy h1{ font-size: 2.8rem; line-height:1.1; margin: .8rem 0; color: var(--text); }
.hero-copy .lead{ font-size:1.15rem; color: var(--muted); margin-bottom: 1.2rem; }
.hero-copy .cta{ display:flex; gap:1rem; margin-bottom:.6rem; }
.hero-copy .tiny-note{ font-size:.85rem; color: #aab2c8; }

/* ====== Tools grid ====== */
.section h2{ font-size:2rem; font-weight:800; color: var(--text); margin-bottom:.5rem; }
.section .sub{ font-size:1.05rem; color: var(--muted); margin-bottom:1.5rem; }

.tools-grid{
  display: grid;
  grid-template-columns: repeat(3, minmax(280px, 1fr));
  gap: 24px;
}
@media (max-width: 1100px){
  .tools-grid{ grid-template-columns: repeat(2, minmax(260px, 1fr)); }
}
@media (max-width: 680px){
  .tools-grid{ grid-template-columns: 1fr; }
}

.tool-card {
  background: #0D1B2A;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 14px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.tool-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.25);
}
.tool-card.disabled{ opacity:.55; pointer-events:none; }

.tool-icon{
  width:56px; height:56px; border-radius:14px;
  display:grid; place-items:center;
  background: linear-gradient(135deg, rgba(246,189,96,.18), rgba(246,189,96,0) 60%), #0e1521;
  border:1px solid rgba(246,189,96,.35);
}
.tool-body h3{ font-size:1.25rem; font-weight:700; color:#fff; margin:0 0 4px; }
.tool-body p{ color: var(--muted); font-size:.95rem; }

/* ====== Footer ====== */
.footer{
  border-top:1px solid rgba(255,255,255,.08);
  padding: 28px 0;
  background: rgba(15,26,42,.55);
}
.footer .foot{ display:flex; align-items:center; justify-content:space-between; gap:1rem; flex-wrap:wrap; }
.footer .brand{
  display:flex; align-items:center; gap:.6rem;
  font-weight:800; color: var(--text);
}
.footer .brand img{
  width:28px; height:28px;
  border-radius:.7rem;
  object-fit:contain;
}
.footer .links{ display:flex; gap:18px; }
.footer .links a{ color: var(--muted); font-size:.95rem; }
.footer .links a:hover{ color: var(--brand); }
.footer .copy {
  width: 100%;
  text-align: center;
  font-size: 0.85rem;
  color: var(--muted);
  margin-top: 12px;
}

/* Entry page footer tweak (only affects entry.html) */
.entry .footer .brand { margin-top: 8px; }

/* ====== Misc ====== */
html{ scroll-behavior: smooth; }
#tools, #about, #contact{ scroll-margin-top: 90px; }

.brand .mark{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #F6BD60;
  border-radius: 8px;
  padding: 6px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.25);
}
.brand .mark img{
  width: 20px;
  height: 20px;
  display: block;
}

/* ====== Responsive ====== */
@media (max-width: 768px){
  .hero{ flex-direction:column; padding: 44px 0; }
}

/* ====== Global Loader ====== */
#appLoader {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.65);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  visibility: hidden;
  opacity: 0;
  transition: opacity .25s ease, visibility .25s ease;
}

#appLoader.active {
  visibility: visible;
  opacity: 1;
}

.loader-spin {
  width: 52px; height: 52px;
  border: 5px solid rgba(255,255,255,0.25);
  border-top-color: var(--brand);
  border-radius: 50%;
  animation: spin 0.9s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Keep the card grid exactly as is */
.tool-card { position: relative; }

/* Clickable pill styled like a button */
.tool-card .adfree-pill{
  position: absolute;
  top: 14px;
  right: 16px;
  display: inline-block;
  padding: 6px 12px;
  border-radius: 9999px;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  background: #F6BD60;              /* your accent color */
  color: #0B1625;                    /* good contrast on dark card */
  border: 1px solid rgba(255,255,255,0.15);
  box-shadow: 0 2px 6px rgba(0,0,0,0.25);
  cursor: pointer;
  user-select: none;
  white-space: nowrap;
  z-index: 1;
}
.tool-card .adfree-pill:focus { outline: 2px solid rgba(246,189,96,.55); outline-offset: 2px; }
