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

*,*::before,*::after{box-sizing:border-box;margin:0;padding:0}

body{font-family:'Inter',system-ui,sans-serif;background:#0f0f13;color:#e4e4e7;line-height:1.6;min-height:100vh}

.container{max-width:900px;margin:0 auto;padding:0 1.25rem}

/* Header */
.site-header{border-bottom:1px solid rgba(255,255,255,0.06);padding:1rem 0}
.site-header .container{display:flex;align-items:center;justify-content:space-between}
.logo{display:flex;align-items:center;gap:0.5rem;text-decoration:none;color:#e4e4e7;font-weight:700;font-size:1.15rem}
.logo-icon{font-size:1.4rem;background:linear-gradient(135deg,#34d399,#14b8a6,#0d9488);-webkit-background-clip:text;-webkit-text-fill-color:transparent;background-clip:text;font-weight:800}
.site-header nav{display:flex;gap:1.5rem}
.site-header nav a{color:#a1a1aa;text-decoration:none;font-size:0.9rem;font-weight:500;transition:color 0.2s}
.site-header nav a:hover{color:#e4e4e7}

/* Hero */
.hero{text-align:center;padding:3rem 1.25rem 1.5rem}
.hero h1{font-size:2.5rem;font-weight:800;background:linear-gradient(135deg,#34d399,#14b8a6,#0d9488);-webkit-background-clip:text;-webkit-text-fill-color:transparent;background-clip:text;margin-bottom:0.5rem}
.hero p{color:#a1a1aa;font-size:1.05rem;max-width:550px;margin:0 auto}

/* Card */
.card{background:#1a1a2e;border:1px solid rgba(255,255,255,0.06);border-radius:1.25rem;padding:1.75rem;margin-bottom:1.5rem}

/* Input area */
.input-label{display:flex;justify-content:space-between;align-items:center;margin-bottom:0.5rem;font-weight:600;font-size:0.95rem}
.char-count{font-weight:400;color:#71717a;font-size:0.85rem}

textarea{width:100%;background:#0f0f13;border:1px solid rgba(255,255,255,0.1);border-radius:0.75rem;padding:1rem;color:#e4e4e7;font-family:'JetBrains Mono','Fira Code',monospace;font-size:0.9rem;resize:vertical;transition:border-color 0.2s;line-height:1.6}
textarea:focus{outline:none;border-color:#14b8a6}

/* Buttons */
.btn-row{display:flex;gap:0.5rem;margin-top:1rem;flex-wrap:wrap}
.btn-primary{background:linear-gradient(135deg,#14b8a6,#0d9488);color:#fff;border:none;padding:0.7rem 1.5rem;border-radius:0.75rem;font-weight:600;font-size:0.9rem;cursor:pointer;transition:opacity 0.2s;font-family:'Inter',sans-serif}
.btn-primary:hover{opacity:0.9}
.btn-secondary{background:rgba(255,255,255,0.06);color:#e4e4e7;border:1px solid rgba(255,255,255,0.1);padding:0.7rem 1.25rem;border-radius:0.75rem;font-weight:500;font-size:0.9rem;cursor:pointer;transition:all 0.2s;font-family:'Inter',sans-serif}
.btn-secondary:hover{background:rgba(255,255,255,0.1);border-color:rgba(255,255,255,0.15)}

/* Conversion buttons grid */
.convert-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(180px,1fr));gap:0.5rem;margin-top:1.25rem}
.convert-btn{background:rgba(20,184,166,0.08);border:1px solid rgba(20,184,166,0.2);color:#5eead4;padding:0.65rem 1rem;border-radius:0.75rem;font-weight:600;font-size:0.85rem;cursor:pointer;transition:all 0.2s;font-family:'Inter',sans-serif;text-align:center}
.convert-btn:hover{background:rgba(20,184,166,0.15);border-color:rgba(20,184,166,0.4)}
.convert-btn.active{background:rgba(20,184,166,0.2);border-color:#14b8a6;box-shadow:0 0 12px rgba(20,184,166,0.15)}

/* Output area */
.output-section{margin-top:1.5rem}
.output-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:0.5rem}
.output-header span{font-weight:600;font-size:0.95rem}
.btn-copy{background:rgba(20,184,166,0.1);border:1px solid rgba(20,184,166,0.25);color:#5eead4;padding:0.45rem 1rem;border-radius:0.6rem;font-weight:600;font-size:0.8rem;cursor:pointer;transition:all 0.2s;font-family:'Inter',sans-serif}
.btn-copy:hover{background:rgba(20,184,166,0.2)}
.btn-copy.copied{background:rgba(34,197,94,0.15);border-color:rgba(34,197,94,0.3);color:#4ade80}
.output-box{width:100%;min-height:120px;background:#0f0f13;border:1px solid rgba(255,255,255,0.1);border-radius:0.75rem;padding:1rem;color:#e4e4e7;font-family:'JetBrains Mono','Fira Code',monospace;font-size:0.9rem;line-height:1.6;white-space:pre-wrap;word-break:break-word}

/* Stats */
.stats-bar{display:flex;gap:0.75rem;flex-wrap:wrap;margin-top:1rem}
.stat-pill{background:rgba(255,255,255,0.04);border:1px solid rgba(255,255,255,0.08);border-radius:2rem;padding:0.35rem 0.85rem;font-size:0.8rem;color:#a1a1aa}
.stat-pill strong{color:#e4e4e7;margin-right:0.25rem}

/* Content sections */
.content-section h2{font-size:1.5rem;font-weight:700;margin-bottom:1rem;color:#f4f4f5}
.content-section h3{font-size:1.1rem;font-weight:600;margin:1.25rem 0 0.5rem;color:#d4d4d8}
.content-section p{color:#a1a1aa;margin-bottom:0.75rem;font-size:0.95rem}
.content-section ul{list-style:disc;padding-left:1.5rem;color:#a1a1aa;margin-bottom:1rem}
.content-section ul li{margin-bottom:0.35rem;font-size:0.95rem}
.content-section details{background:rgba(255,255,255,0.03);border:1px solid rgba(255,255,255,0.06);border-radius:0.75rem;padding:1rem;margin-bottom:0.5rem}
.content-section summary{font-weight:600;cursor:pointer;color:#d4d4d8}
.content-section details p{margin-top:0.5rem;margin-bottom:0}

/* Ad slots */
.ad-slot{min-height:90px;margin:1.5rem auto;text-align:center;max-width:728px}

/* Footer */
.site-footer{border-top:1px solid rgba(255,255,255,0.06);padding:2rem 0;margin-top:3rem}
.site-footer .container{display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:1rem}
.site-footer p{color:#71717a;font-size:0.85rem}
.site-footer nav{display:flex;gap:1.5rem}
.site-footer nav a{color:#71717a;text-decoration:none;font-size:0.85rem;transition:color 0.2s}
.site-footer nav a:hover{color:#a1a1aa}

.hidden{display:none !important}

/* Responsive */
@media(max-width:640px){
    .hero h1{font-size:1.75rem}
    .site-header nav{display:none}
    .convert-grid{grid-template-columns:repeat(2,1fr)}
    .card{padding:1.25rem}
    .site-footer .container{flex-direction:column;text-align:center}
}
