@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,#fbbf24,#f59e0b,#d97706);-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,#fbbf24,#f59e0b,#d97706);-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 */
.input-label{display:flex;justify-content:space-between;align-items:center;margin-bottom:0.5rem;font-weight:600;font-size:0.95rem}

textarea{width:100%;background:#0f0f13;border:1px solid rgba(255,255,255,0.1);border-radius:0.75rem;padding:1rem;color:#e4e4e7;font-family:'Inter',system-ui,sans-serif;font-size:0.95rem;resize:vertical;transition:border-color 0.2s;line-height:1.7}
textarea:focus{outline:none;border-color:#f59e0b}

/* Buttons */
.btn-row{display:flex;gap:0.5rem;margin-top:1rem;flex-wrap:wrap}
.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)}

/* Stats grid */
.stats-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:0.75rem;margin-top:1.5rem}
.stat-card{background:rgba(245,158,11,0.06);border:1px solid rgba(245,158,11,0.15);border-radius:1rem;padding:1.25rem;text-align:center}
.stat-card .value{font-size:2rem;font-weight:800;color:#fbbf24;font-family:'JetBrains Mono',monospace}
.stat-card .label{font-size:0.8rem;color:#a1a1aa;margin-top:0.25rem;font-weight:500;text-transform:uppercase;letter-spacing:0.05em}

/* Detail stats */
.detail-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:0.75rem;margin-top:0.75rem}
.detail-card{background:rgba(255,255,255,0.03);border:1px solid rgba(255,255,255,0.06);border-radius:0.75rem;padding:1rem;text-align:center}
.detail-card .value{font-size:1.25rem;font-weight:700;color:#e4e4e7;font-family:'JetBrains Mono',monospace}
.detail-card .label{font-size:0.75rem;color:#71717a;margin-top:0.2rem;font-weight:500}

/* Density section */
.density-section{margin-top:1.5rem}
.density-title{font-weight:600;font-size:0.95rem;margin-bottom:0.75rem;display:flex;justify-content:space-between;align-items:center}
.density-tabs{display:flex;gap:0.35rem}
.density-tab{background:rgba(255,255,255,0.06);border:1px solid rgba(255,255,255,0.08);color:#a1a1aa;padding:0.3rem 0.75rem;border-radius:0.5rem;font-size:0.8rem;cursor:pointer;font-family:'Inter',sans-serif;font-weight:500;transition:all 0.2s}
.density-tab.active{background:rgba(245,158,11,0.15);border-color:rgba(245,158,11,0.3);color:#fbbf24}
.density-list{list-style:none;max-height:300px;overflow-y:auto}
.density-item{display:flex;align-items:center;gap:0.75rem;padding:0.45rem 0;border-bottom:1px solid rgba(255,255,255,0.04)}
.density-item:last-child{border-bottom:none}
.density-word{font-family:'JetBrains Mono',monospace;font-size:0.85rem;color:#e4e4e7;min-width:120px}
.density-bar-track{flex:1;height:6px;background:rgba(255,255,255,0.06);border-radius:3px;overflow:hidden}
.density-bar{height:100%;background:linear-gradient(90deg,#fbbf24,#f59e0b);border-radius:3px;transition:width 0.3s}
.density-count{font-size:0.8rem;color:#71717a;min-width:60px;text-align:right;font-family:'JetBrains Mono',monospace}

/* 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}

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