@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap');

:root{
  --bg:#090d18;--surface:#111827;--surface2:#0d1423;--border:#263148;
  --text:#edf2ff;--muted:#8995ad;--accent:#8b7cff;--accent2:#5eead4;
  --danger:#fb7185;--shadow:0 24px 80px rgba(0,0,0,.34);
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{min-height:100vh;background:
 radial-gradient(circle at 15% -5%,rgba(139,124,255,.18),transparent 30%),
 radial-gradient(circle at 85% 10%,rgba(94,234,212,.08),transparent 24%),
 var(--bg);font-family:"DM Sans",system-ui,sans-serif}
button,textarea{font:inherit}
button{cursor:pointer}
.site-header{height:72px;max-width:1180px;margin:auto;padding:0 24px;display:flex;align-items:center;justify-content:space-between}
.brand{display:flex;align-items:center;gap:10px;color:var(--text);text-decoration:none;font-weight:700;font-size:20px;letter-spacing:-.5px}
.brand-mark{width:35px;height:35px;border:1px solid #3b4660;border-radius:10px;display:grid;place-items:center;color:var(--accent2);font-family:"JetBrains Mono";font-size:13px;background:#121a2b}
.brand-accent{color:var(--accent)}
.privacy-pill{font-size:12px;color:#a9b3c7;border:1px solid var(--border);border-radius:999px;padding:7px 11px;background:rgba(17,24,39,.6)}
.dot{display:inline-block;width:6px;height:6px;background:var(--accent2);border-radius:50%;margin-right:7px;box-shadow:0 0 10px var(--accent2)}
.container{max-width:1180px;margin:auto;padding:50px 24px 30px}
.hero{text-align:center;margin-bottom:38px}
.eyebrow{font-size:11px;letter-spacing:2px;color:var(--accent2);font-weight:700;margin:0 0 14px}
h1{font-size:clamp(36px,5vw,62px);line-height:1.02;letter-spacing:-3px;margin:0;font-weight:700}
h1 span{background:linear-gradient(100deg,var(--accent),var(--accent2));-webkit-background-clip:text;background-clip:text;color:transparent}
.hero-copy{color:var(--muted);font-size:17px;margin:16px 0 0}
.tool-card{background:rgba(17,24,39,.88);border:1px solid var(--border);border-radius:20px;box-shadow:var(--shadow);overflow:hidden;backdrop-filter:blur(12px)}
.tabs{display:flex;gap:4px;padding:8px;border-bottom:1px solid var(--border);background:#0e1524}
.tab{border:0;background:transparent;color:#8d99b0;padding:12px 18px;border-radius:11px;font-weight:600;font-size:14px}
.tab:hover{color:var(--text);background:#172033}
.tab.active{background:#1d263b;color:var(--text);box-shadow:inset 0 0 0 1px #33405b}
.toolbar,.bottom-bar{display:flex;align-items:center;justify-content:space-between;padding:12px 16px;border-bottom:1px solid var(--border)}
.toolbar{color:var(--muted);font-size:12px}
.toolbar-actions{display:flex;gap:8px}
.ghost-btn,.secondary-btn,.primary-btn{border:1px solid var(--border);background:#141d2f;color:#b8c1d3;border-radius:9px;padding:8px 12px;font-size:12px;font-weight:600}
.ghost-btn:hover,.secondary-btn:hover{background:#1a253a;color:var(--text)}
.workspace{display:grid;grid-template-columns:minmax(0,1fr) 38px minmax(0,1fr);min-height:430px;background:var(--surface2)}
.editor-wrap{min-width:0}
.output-wrap{border-left:1px solid var(--border)}
.swap-col{display:grid;place-items:center;color:#56627a;font-size:20px}
.panel-head{height:38px;display:flex;align-items:center;justify-content:space-between;padding:0 16px;border-bottom:1px solid var(--border);color:#aab5c9;font-size:11px;text-transform:uppercase;letter-spacing:1.2px;font-weight:700}
.counter{font-weight:500;letter-spacing:0;text-transform:none;color:#5f6b83}
.status{font-size:10px;color:var(--accent2);border:1px solid #23454a;padding:3px 7px;border-radius:999px;text-transform:none;letter-spacing:0}
textarea{width:100%;height:392px;display:block;resize:none;border:0;outline:0;background:transparent;color:#dce4f6;padding:18px 18px;font-family:"JetBrains Mono",ui-monospace,monospace;font-size:13px;line-height:1.7;tab-size:2}
#input::selection,#output::selection{background:#4c467a}
#output{color:#c4cdfd}
.message{font-size:12px;color:var(--muted);min-height:18px}
.message.error{color:var(--danger)}
.primary-btn{border:0;background:linear-gradient(135deg,var(--accent),#6e5cf0);color:white;padding:9px 14px;box-shadow:0 8px 24px rgba(139,124,255,.18)}
.primary-btn:hover{filter:brightness(1.08);transform:translateY(-1px)}
.primary-btn span{opacity:.55;margin-left:7px;font-size:10px}
.features{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;margin:18px 0 70px}
.features article{border:1px solid var(--border);background:rgba(17,24,39,.48);border-radius:12px;padding:14px 15px;display:flex;flex-direction:column;gap:4px}
.features strong{font-size:12px;color:#cbd5e8}.features span{font-size:11px;color:#6f7b93}
.seo-copy{max-width:800px;margin:auto;color:#78859d;font-size:14px;line-height:1.8}
.seo-copy h2{color:#d9e1f1;font-size:24px;letter-spacing:-.7px}
.seo-copy strong{color:#aeb9cf}
.footer{max-width:1180px;margin:auto;padding:28px 24px 45px;display:flex;justify-content:space-between;color:#56627a;font-size:11px;border-top:1px solid #161f30}
@media(max-width:760px){
 .site-header{height:64px;padding:0 16px}.privacy-pill{display:none}.container{padding:34px 12px 20px}
 h1{letter-spacing:-2px}.hero-copy{font-size:15px}.tabs{overflow:auto}.tab{white-space:nowrap;padding:11px 14px}
 .toolbar{gap:10px}.toolbar-left{max-width:55%}.workspace{grid-template-columns:1fr;min-height:0}
 .swap-col{display:none}.output-wrap{border-left:0;border-top:1px solid var(--border)}
 textarea{height:300px}.features{grid-template-columns:1fr 1fr;margin-bottom:48px}
 .bottom-bar{gap:12px;align-items:flex-end}.bottom-bar .message{flex:1}.primary-btn span{display:none}
 .footer{padding:24px 16px;gap:10px;flex-direction:column}
}

/* ─────────────────────────────
   404 Page
   ───────────────────────────── */

.error-page{
  min-height:calc(100vh - 72px);
  display:grid;
  place-items:center;
  padding:50px 24px 70px;
}

.error-container{
  width:100%;
  max-width:680px;
  text-align:center;
}

.error-mark{
  width:52px;
  height:52px;
  margin:0 auto 28px;
  display:grid;
  place-items:center;

  border:1px solid #3b4660;
  border-radius:14px;

  color:var(--accent2);
  background:#121a2b;

  font-family:"JetBrains Mono",ui-monospace,monospace;
  font-size:15px;
  font-weight:500;

  box-shadow:0 12px 35px rgba(0,0,0,.2);
}

.error-code{
  margin:0;

  font-family:"JetBrains Mono",ui-monospace,monospace;
  font-size:clamp(76px,14vw,150px);
  line-height:.9;
  font-weight:500;
  letter-spacing:-9px;

  background:linear-gradient(
    100deg,
    var(--accent),
    var(--accent2)
  );
  -webkit-background-clip:text;
  background-clip:text;
  color:transparent;
}

.error-title{
  margin:28px 0 10px;
  color:var(--text);
  font-size:clamp(25px,4vw,34px);
  line-height:1.2;
  letter-spacing:-1px;
  font-weight:700;
}

.error-copy{
  max-width:500px;
  margin:0 auto;

  color:var(--muted);
  font-size:15px;
  line-height:1.7;
}

.error-actions{
  display:flex;
  justify-content:center;
  gap:9px;
  margin-top:28px;
}

.error-actions .primary-btn,
.error-actions .secondary-btn{
  text-decoration:none;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:40px;
}

.error-footer{
  margin:34px 0 0;

  color:#56627a;
  font-family:"JetBrains Mono",ui-monospace,monospace;
  font-size:10px;
}

@media(max-width:760px){
  .error-page{
    min-height:calc(100vh - 64px);
    padding:34px 16px 50px;
  }

  .error-mark{
    width:46px;
    height:46px;
    margin-bottom:24px;
  }

  .error-code{
    font-size:clamp(72px,22vw,110px);
    letter-spacing:-6px;
  }

  .error-title{
    margin-top:22px;
  }

  .error-copy{
    font-size:14px;
  }

  .error-actions{
    flex-direction:column;
    max-width:280px;
    margin-left:auto;
    margin-right:auto;
  }

  .error-actions .primary-btn,
  .error-actions .secondary-btn{
    width:100%;
  }
}

/* ─────────────────────────────
   AdSense & New Content Sections
   ───────────────────────────── */

.ad-banner-wrap { margin: 60px auto; max-width: 800px; }
.ad-banner { background: var(--surface); border: 1px dashed var(--border); padding: 20px; text-align: center; color: var(--muted); border-radius: 12px; }
.ad-placeholder-text { font-size: 12px; text-transform: uppercase; letter-spacing: 1px; }

.how-it-works, .faq-section { max-width: 800px; margin: 80px auto; }
.how-it-works h2, .faq-section h2 { text-align: center; margin-bottom: 40px; color: var(--text); }
.steps-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px; }
.step-card { background: var(--surface); border: 1px solid var(--border); padding: 24px; border-radius: 16px; }
.step-num { width: 32px; height: 32px; background: var(--accent); color: white; display: grid; place-items: center; border-radius: 8px; font-weight: 700; margin-bottom: 16px; }

.faq-grid { display: grid; gap: 16px; }
.faq-card { background: var(--surface); border: 1px solid var(--border); padding: 20px; border-radius: 12px; }
.faq-card h3 { margin: 0 0 8px; font-size: 16px; color: var(--text); }
.faq-card p { margin: 0; font-size: 14px; color: var(--muted); line-height: 1.6; }

.footer-links { display: flex; gap: 20px; }
.footer-links a { color: #56627a; text-decoration: none; font-size: 12px; }
.footer-links a:hover { color: var(--text); }

.privacy-page { max-width: 800px; margin: 50px auto; padding: 20px; }
.privacy-page h1 { font-size: 32px; margin-bottom: 10px; }
.privacy-updated { color: var(--muted); font-size: 14px; margin-bottom: 30px; }
.privacy-content h2 { font-size: 20px; margin-top: 30px; color: var(--text); }
.privacy-content p { color: var(--muted); line-height: 1.8; margin-bottom: 15px; }
.privacy-content a { color: var(--accent); }

