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

:root {
  --font: 'Inter', system-ui, sans-serif;
  --font-h: 'Space Grotesk', sans-serif;
  --primary: #6366f1; --primary-d: #4f46e5;
  --cyan: #06b6d4; --green: #10b981;
  --yellow: #f59e0b; --red: #ef4444;
  --bg: #0b0d14; --bg2: #111320; --bg3: #181b2d; --bg4: #1f2340;
  --border: rgba(255,255,255,.07); --border2: rgba(255,255,255,.13);
  --text: #f1f5f9; --text2: #94a3b8; --text3: #64748b;
  --r: 10px; --r-lg: 16px; --r-xl: 24px;
  --shadow: 0 8px 32px rgba(0,0,0,.5);
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body { font-family: var(--font); background: var(--bg); color: var(--text); font-size: 15px; line-height: 1.65; min-height: 100vh; }
a { color: var(--primary); text-decoration: none; transition: color .2s; }
a:hover { color: var(--cyan); }
img { max-width: 100%; display: block; }
button { cursor: pointer; font-family: inherit; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }
.container-md { max-width: 900px; margin: 0 auto; padding: 0 1.5rem; }

/* ── Header ── */
.site-header { position: sticky; top: 0; z-index: 100; background: rgba(11,13,20,.92); backdrop-filter: blur(20px); border-bottom: 1px solid var(--border); }
.header-inner { display: flex; align-items: center; gap: 1.5rem; padding: .75rem 1.5rem; max-width: 1200px; margin: 0 auto; }
.site-logo { display: flex; align-items: center; gap: .625rem; font-family: var(--font-h); font-weight: 800; font-size: 1.1rem; color: var(--text); white-space: nowrap; }
.site-logo img { height: 32px; width: auto; border-radius: 8px; }
.site-logo svg { flex-shrink: 0; }
.main-nav { display: flex; align-items: center; gap: .125rem; flex: 1; }
.nav-link { padding: .45rem .9rem; border-radius: var(--r); font-size: .875rem; font-weight: 500; color: var(--text2); transition: all .18s; white-space: nowrap; }
.nav-link:hover, .nav-link.active { background: var(--bg3); color: var(--text); }
.header-right { display: flex; align-items: center; gap: .75rem; margin-left: auto; }
.lang-sw { display: flex; gap: .2rem; }
.lang-btn { font-size: .72rem; font-weight: 700; padding: .2rem .45rem; border-radius: 5px; color: var(--text3); }
.lang-btn.active { color: var(--primary); }
.hamburger { display: none; background: none; border: none; color: var(--text); font-size: 1.4rem; padding: .25rem; }

/* ── Buttons ── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .45rem; padding: .6rem 1.2rem; border-radius: var(--r); font-size: .875rem; font-weight: 600; border: none; transition: all .2s; white-space: nowrap; cursor: pointer; font-family: inherit; }
.btn-primary   { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-d); color: #fff; transform: translateY(-1px); }
.btn-cyan { background: var(--cyan); color: #fff; }
.btn-cyan:hover { opacity: .88; color: #fff; }
.btn-green { background: var(--green); color: #fff; }
.btn-outline { background: transparent; border: 1px solid var(--border2); color: var(--text2); }
.btn-outline:hover { border-color: var(--primary); color: var(--primary); background: rgba(99,102,241,.08); }
.btn-ghost { background: transparent; color: var(--text2); }
.btn-ghost:hover { background: var(--bg3); color: var(--text); }
.btn-danger { background: var(--red); color: #fff; }
.btn-sm { padding: .35rem .8rem; font-size: .8rem; }
.btn-lg { padding: .85rem 2rem; font-size: 1rem; }
.btn-xl { padding: 1rem 2.5rem; font-size: 1.05rem; border-radius: var(--r-lg); }
.btn-full { width: 100%; }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none !important; }

/* ── Hero ── */
.hero { padding: 5rem 1.5rem 4rem; text-align: center; position: relative; overflow: hidden; }
.hero::before { content:''; position:absolute; inset:0; background: radial-gradient(ellipse 80% 55% at 50% -10%, rgba(99,102,241,.14), transparent); pointer-events:none; }
.hero-badge { display:inline-flex; align-items:center; gap:.5rem; background:rgba(99,102,241,.1); border:1px solid rgba(99,102,241,.25); color:var(--primary); padding:.35rem 1rem; border-radius:100px; font-size:.78rem; font-weight:700; margin-bottom:1.5rem; letter-spacing:.02em; }
.hero h1 { font-family:var(--font-h); font-size:clamp(2rem,5vw,3.5rem); font-weight:800; line-height:1.1; letter-spacing:-.02em; margin-bottom:1.25rem; }
.hero h1 .grad { background:linear-gradient(135deg,var(--primary),var(--cyan)); -webkit-background-clip:text; -webkit-text-fill-color:transparent; background-clip:text; }
.hero-sub { font-size:1.05rem; color:var(--text2); max-width:600px; margin:0 auto 2.5rem; line-height:1.75; }

/* ── Analyzer Box ── */
.analyzer-wrap { max-width:720px; margin:0 auto; }
.analyzer-box { background:var(--bg2); border:1px solid var(--border2); border-radius:var(--r-xl); padding:2rem; box-shadow:var(--shadow),0 0 60px rgba(99,102,241,.1); }
.analyzer-tabs-top { display:flex; gap:.5rem; margin-bottom:1.5rem; padding:.4rem; background:var(--bg3); border-radius:var(--r); }
.atab { flex:1; padding:.55rem .75rem; border-radius:7px; font-size:.835rem; font-weight:600; color:var(--text3); background:none; border:none; transition:all .2s; cursor:pointer; font-family:inherit; text-align:center; }
.atab.active { background:var(--bg4); color:var(--text); box-shadow:0 2px 8px rgba(0,0,0,.3); }
.input-row { display:flex; gap:.75rem; }
.url-inp { flex:1; background:var(--bg3); border:1px solid var(--border2); border-radius:var(--r); padding:.85rem 1.15rem; font-size:.975rem; color:var(--text); font-family:inherit; transition:border-color .2s; }
.url-inp:focus { outline:none; border-color:var(--primary); box-shadow:0 0 0 3px rgba(99,102,241,.15); }
.url-inp::placeholder { color:var(--text3); }
.analyze-opts { display:flex; gap:1.25rem; margin-top:1.1rem; flex-wrap:wrap; }
.opt-check { display:flex; align-items:center; gap:.45rem; font-size:.825rem; color:var(--text2); cursor:pointer; }
.opt-check input { accent-color:var(--primary); width:15px; height:15px; }

/* ── Results ── */
.results-wrap { margin-top:2rem; }
.score-cards { display:grid; grid-template-columns:repeat(3,1fr); gap:1rem; margin-bottom:1.5rem; }
.score-card { background:var(--bg3); border:1px solid var(--border); border-radius:var(--r-lg); padding:1.5rem; text-align:center; transition:border-color .3s; }
.score-card.s-good { border-color:rgba(16,185,129,.35); }
.score-card.s-mid  { border-color:rgba(245,158,11,.35); }
.score-card.s-poor { border-color:rgba(239,68,68,.35); }
.ring-wrap { position:relative; display:inline-flex; margin-bottom:.875rem; }
.ring-wrap svg { transform:rotate(-90deg); }
.ring-bg  { fill:none; stroke:var(--bg4); stroke-width:7; }
.ring-val { fill:none; stroke-width:7; stroke-linecap:round; transition:stroke-dashoffset 1.2s cubic-bezier(.4,0,.2,1); }
.ring-txt { position:absolute; inset:0; display:flex; flex-direction:column; align-items:center; justify-content:center; }
.ring-num { font-family:var(--font-h); font-weight:800; font-size:1.45rem; line-height:1; }
.ring-lbl { font-size:.6rem; font-weight:700; text-transform:uppercase; letter-spacing:.06em; color:var(--text3); margin-top:.2rem; }
.score-title { font-family:var(--font-h); font-weight:700; font-size:.9rem; color:var(--text2); }

/* ── AI Engines ── */
.ai-engines { display:grid; grid-template-columns:repeat(5,1fr); gap:.75rem; margin-bottom:1.5rem; }
.ai-card { background:var(--bg3); border:1px solid var(--border); border-radius:var(--r-lg); padding:1rem .75rem; text-align:center; transition:all .3s; }
.ai-card.good { border-color:rgba(16,185,129,.3); }
.ai-card.mid  { border-color:rgba(245,158,11,.3); }
.ai-card.poor { border-color:rgba(239,68,68,.3); }
.ai-logo { font-size:1.6rem; margin-bottom:.5rem; }
.ai-name { font-size:.7rem; font-weight:700; color:var(--text2); margin-bottom:.375rem; }
.ai-score { font-family:var(--font-h); font-weight:800; font-size:1.2rem; }
.ai-note { font-size:.65rem; color:var(--text3); margin-top:.35rem; line-height:1.35; }

/* ── Result Tabs ── */
.res-tabs { display:flex; gap:.25rem; border-bottom:1px solid var(--border); margin-bottom:1.5rem; overflow-x:auto; }
.res-tab { padding:.6rem 1rem; font-size:.83rem; font-weight:600; color:var(--text3); background:none; border:none; cursor:pointer; border-bottom:2px solid transparent; transition:all .2s; white-space:nowrap; font-family:inherit; margin-bottom:-1px; }
.res-tab:hover { color:var(--text); }
.res-tab.active { color:var(--primary); border-bottom-color:var(--primary); }
.res-panel { display:none; }
.res-panel.active { display:block; animation:fadeIn .3s ease; }

/* ── Checklists ── */
.chk-list { display:flex; flex-direction:column; gap:.75rem; }
.chk-item { display:flex; gap:.875rem; align-items:flex-start; padding:.75rem 1rem; background:var(--bg3); border-radius:var(--r); border:1px solid var(--border); }
.chk-icon { width:22px; height:22px; border-radius:50%; display:flex; align-items:center; justify-content:center; font-size:.7rem; font-weight:800; flex-shrink:0; margin-top:.05rem; }
.ci-pass { background:rgba(16,185,129,.15); color:var(--green); }
.ci-fail { background:rgba(239,68,68,.15); color:var(--red); }
.ci-warn { background:rgba(245,158,11,.15); color:var(--yellow); }
.chk-body { flex:1; font-size:.865rem; }
.chk-body strong { color:var(--text); display:block; margin-bottom:.15rem; }
.chk-body span { color:var(--text2); }

/* ── Tips / Recommendations ── */
.tips-list { display:flex; flex-direction:column; gap:.75rem; }
.tip-item { background:var(--bg3); border-radius:var(--r); padding:1rem 1.125rem; border-left:3px solid var(--border2); }
.tip-item.p-high { border-color:var(--red); }
.tip-item.p-medium { border-color:var(--yellow); }
.tip-item.p-low { border-color:var(--green); }
.tip-priority { font-size:.68rem; font-weight:800; text-transform:uppercase; letter-spacing:.08em; margin-bottom:.35rem; }
.tip-action { font-size:.875rem; color:var(--text); font-weight:600; margin-bottom:.2rem; }
.tip-why { font-size:.8rem; color:var(--text2); }

/* ── Progress ── */
.progress { height:5px; background:var(--bg4); border-radius:100px; overflow:hidden; }
.progress-fill { height:100%; border-radius:100px; transition:width 1s ease; }

/* ── Badges ── */
.badge { display:inline-flex; align-items:center; gap:.3rem; padding:.2rem .6rem; border-radius:100px; font-size:.72rem; font-weight:700; }
.badge-primary { background:rgba(99,102,241,.12); color:var(--primary); }
.badge-green   { background:rgba(16,185,129,.12); color:var(--green); }
.badge-yellow  { background:rgba(245,158,11,.12);  color:var(--yellow); }
.badge-red     { background:rgba(239,68,68,.12);   color:var(--red); }
.badge-gray    { background:var(--bg3); color:var(--text3); }
.badge-cyan    { background:rgba(6,182,212,.12); color:var(--cyan); }

/* ── Cards ── */
.card { background:var(--bg2); border:1px solid var(--border); border-radius:var(--r-lg); padding:1.5rem; transition:all .3s; }
.card:hover { border-color:var(--border2); box-shadow:var(--shadow); transform:translateY(-2px); }

/* ── Feature cards ── */
.feature-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(260px,1fr)); gap:1.25rem; }
.feature-card { background:var(--bg2); border:1px solid var(--border); border-radius:var(--r-lg); padding:1.5rem; transition:all .3s; }
.feature-card:hover { border-color:rgba(99,102,241,.3); transform:translateY(-2px); }
.feature-icon { font-size:2rem; margin-bottom:1rem; }
.feature-title { font-family:var(--font-h); font-weight:700; font-size:1rem; color:var(--text); margin-bottom:.5rem; }
.feature-desc { font-size:.85rem; color:var(--text2); line-height:1.65; }

/* ── Forms ── */
.form-group { margin-bottom:1.25rem; }
.form-label { display:block; font-size:.82rem; font-weight:600; color:var(--text2); margin-bottom:.45rem; }
.form-input, .form-select, .form-textarea {
  width:100%; background:var(--bg3); border:1px solid var(--border2);
  border-radius:var(--r); padding:.7rem 1rem; font-size:.9rem; color:var(--text); font-family:inherit; transition:border-color .2s;
}
.form-input:focus, .form-select:focus, .form-textarea:focus { outline:none; border-color:var(--primary); box-shadow:0 0 0 3px rgba(99,102,241,.15); }
.form-textarea { resize:vertical; min-height:140px; line-height:1.65; }
.form-hint { font-size:.75rem; color:var(--text3); margin-top:.3rem; }
.form-row { display:grid; grid-template-columns:1fr 1fr; gap:1rem; }

/* ── Alerts ── */
.alert { padding:.875rem 1.125rem; border-radius:var(--r); font-size:.875rem; margin-bottom:1rem; display:flex; gap:.625rem; align-items:flex-start; }
.alert-ok   { background:rgba(16,185,129,.1); border:1px solid rgba(16,185,129,.25); color:var(--green); }
.alert-err  { background:rgba(239,68,68,.1);  border:1px solid rgba(239,68,68,.25);  color:var(--red); }
.alert-warn { background:rgba(245,158,11,.1); border:1px solid rgba(245,158,11,.25); color:var(--yellow); }
.alert-info { background:rgba(99,102,241,.1); border:1px solid rgba(99,102,241,.25); color:var(--primary); }

/* ── Section ── */
.section { padding:4rem 1.5rem; }
.section-header { text-align:center; margin-bottom:2.5rem; }
.section-eyebrow { display:inline-block; font-size:.72rem; font-weight:800; letter-spacing:.15em; text-transform:uppercase; color:var(--primary); margin-bottom:.75rem; }
.section-title { font-family:var(--font-h); font-size:clamp(1.5rem,3vw,2.25rem); font-weight:800; color:var(--text); margin-bottom:.875rem; }
.section-desc { font-size:.95rem; color:var(--text2); max-width:540px; margin:0 auto; line-height:1.75; }

/* ── Blog ── */
.blog-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(300px,1fr)); gap:1.5rem; }
.blog-card { background:var(--bg2); border:1px solid var(--border); border-radius:var(--r-lg); overflow:hidden; transition:all .3s; display:flex; flex-direction:column; }
.blog-card:hover { border-color:var(--border2); transform:translateY(-3px); box-shadow:var(--shadow); }
.blog-card-img { aspect-ratio:16/9; background:var(--bg3); overflow:hidden; }
.blog-card-img img { width:100%; height:100%; object-fit:cover; transition:transform .4s; }
.blog-card:hover .blog-card-img img { transform:scale(1.03); }
.blog-card-body { padding:1.25rem; flex:1; display:flex; flex-direction:column; }
.blog-meta { display:flex; gap:.5rem; font-size:.72rem; color:var(--text3); margin-bottom:.625rem; align-items:center; flex-wrap:wrap; }
.blog-card-title { font-family:var(--font-h); font-size:.975rem; font-weight:700; color:var(--text); margin-bottom:.5rem; line-height:1.4; }
.blog-card-title a:hover { color:var(--primary); }
.blog-card-excerpt { font-size:.845rem; color:var(--text2); line-height:1.65; flex:1; margin-bottom:1rem; }
.post-content { font-size:1.025rem; line-height:1.85; color:var(--text2); }
.post-content h2 { font-family:var(--font-h); font-size:1.5rem; font-weight:800; color:var(--text); margin:2.5rem 0 .875rem; }
.post-content h3 { font-family:var(--font-h); font-size:1.2rem; font-weight:700; color:var(--text); margin:2rem 0 .75rem; }
.post-content p  { margin-bottom:1.35rem; }
.post-content ul, .post-content ol { padding-left:1.5rem; margin-bottom:1.35rem; }
.post-content li { margin-bottom:.5rem; }
.post-content blockquote { border-left:3px solid var(--primary); padding-left:1.25rem; color:var(--text2); margin:2rem 0; font-style:italic; font-size:1.05rem; }
.post-content code { background:var(--bg3); padding:.2rem .5rem; border-radius:5px; font-size:.875rem; color:var(--cyan); }
.post-content pre { background:var(--bg3); padding:1.5rem; border-radius:var(--r-lg); overflow-x:auto; margin-bottom:1.5rem; border:1px solid var(--border); }
.post-content pre code { background:none; padding:0; color:var(--text); }
.post-content img { border-radius:var(--r-lg); margin:1.5rem 0; }
.post-content a { color:var(--primary); border-bottom:1px solid rgba(99,102,241,.3); }
.post-content a:hover { border-color:var(--primary); }

/* ── DNS Table ── */
.dns-table { width:100%; border-collapse:collapse; font-size:.875rem; }
.dns-table th, .dns-table td { padding:.75rem 1rem; border:1px solid var(--border); text-align:left; }
.dns-table th { background:var(--bg3); font-weight:700; color:var(--text2); font-size:.75rem; text-transform:uppercase; letter-spacing:.05em; }
.dns-table td { color:var(--text2); word-break:break-all; }
.dns-table tr:hover td { background:rgba(255,255,255,.02); }

/* ── Footer ── */
.site-footer { background:var(--bg2); border-top:1px solid var(--border); padding:3rem 1.5rem 1.5rem; margin-top:4rem; }
.footer-grid { display:grid; grid-template-columns:2fr 1fr 1fr 1fr; gap:2.5rem; max-width:1200px; margin:0 auto; }
.footer-brand p { font-size:.875rem; color:var(--text3); line-height:1.7; margin-top:.75rem; max-width:280px; }
.footer-col h4 { font-family:var(--font-h); font-weight:700; font-size:.875rem; color:var(--text); margin-bottom:.875rem; }
.footer-links { list-style:none; }
.footer-links li { margin-bottom:.5rem; }
.footer-links a { font-size:.845rem; color:var(--text3); transition:color .2s; }
.footer-links a:hover { color:var(--primary); }
.footer-social { display:flex; gap:.5rem; margin-top:.875rem; }
.social-btn { width:34px; height:34px; border-radius:8px; background:var(--bg3); border:1px solid var(--border); display:flex; align-items:center; justify-content:center; font-size:.875rem; color:var(--text2); transition:all .2s; }
.social-btn:hover { background:var(--primary); border-color:var(--primary); color:#fff; }
.footer-bottom { max-width:1200px; margin:2rem auto 0; padding-top:1.5rem; border-top:1px solid var(--border); display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:1rem; }
.footer-bottom p { font-size:.8rem; color:var(--text3); }

/* ── Pagination ── */
.pagination { display:flex; gap:.375rem; justify-content:center; margin:2.5rem 0; flex-wrap:wrap; }
.page-btn { min-width:36px; height:36px; padding:0 .625rem; border-radius:var(--r); background:var(--bg2); border:1px solid var(--border); display:flex; align-items:center; justify-content:center; font-size:.85rem; color:var(--text2); transition:all .2s; }
.page-btn:hover, .page-btn.active { background:var(--primary); border-color:var(--primary); color:#fff; }

/* ── History ── */
.history-item { background:var(--bg2); border:1px solid var(--border); border-radius:var(--r-lg); padding:1.125rem 1.25rem; display:flex; align-items:center; gap:1.25rem; transition:border-color .2s; margin-bottom:.75rem; }
.history-item:hover { border-color:var(--border2); }
.history-scores { display:flex; gap:.75rem; flex-shrink:0; }
.hist-score { text-align:center; }
.hist-score .num { font-family:var(--font-h); font-weight:800; font-size:1.1rem; }
.hist-score .lbl { font-size:.6rem; color:var(--text3); text-transform:uppercase; letter-spacing:.05em; }
.hist-domain { font-weight:700; color:var(--text); font-size:.925rem; }
.hist-url { font-size:.78rem; color:var(--text3); }
.hist-time { font-size:.75rem; color:var(--text3); margin-left:auto; white-space:nowrap; }

/* ── Spinner ── */
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes fadeIn { from { opacity:0; transform:translateY(8px); } to { opacity:1; transform:translateY(0); } }
@keyframes pulse { 0%,100% { opacity:1; } 50% { opacity:.5; } }
.spinner { width:20px; height:20px; border:2.5px solid rgba(255,255,255,.2); border-top-color:#fff; border-radius:50%; animation:spin .65s linear infinite; display:inline-block; }
.fade-in { animation:fadeIn .35s ease; }
.skeleton { background:linear-gradient(90deg,var(--bg3) 25%,var(--bg4) 50%,var(--bg3) 75%); background-size:200%; animation:pulse 1.5s ease-in-out infinite; border-radius:var(--r); }

/* ── Utilities ── */
.text-center { text-align:center; }
.flex { display:flex; } .flex-center { display:flex; align-items:center; justify-content:center; }
.gap-1 { gap:.5rem; } .gap-2 { gap:1rem; } .gap-3 { gap:1.5rem; }
.mt-1{margin-top:.5rem;}.mt-2{margin-top:1rem;}.mt-3{margin-top:1.5rem;}.mt-4{margin-top:2rem;}
.mb-1{margin-bottom:.5rem;}.mb-2{margin-bottom:1rem;}.mb-3{margin-bottom:1.5rem;}
.hidden { display:none !important; }
.w-full { width:100%; }
.grid-2 { display:grid; grid-template-columns:1fr 1fr; gap:1.5rem; }
.grid-3 { display:grid; grid-template-columns:1fr 1fr 1fr; gap:1.5rem; }

/* ── Quick win strip ── */
.quick-wins { display:flex; flex-wrap:wrap; gap:.625rem; }
.quick-win { background:rgba(99,102,241,.08); border:1px solid rgba(99,102,241,.2); color:var(--primary); padding:.4rem .875rem; border-radius:100px; font-size:.8rem; font-weight:600; }

/* ── Mobile ── */
@media (max-width:768px) {
  .main-nav { display:none; }
  .main-nav.open { display:flex; flex-direction:column; position:fixed; top:57px; left:0; right:0; background:var(--bg2); border-bottom:1px solid var(--border); padding:1rem; z-index:99; }
  .hamburger { display:block; }
  .score-cards { grid-template-columns:1fr; }
  .ai-engines { grid-template-columns:repeat(3,1fr); }
  .footer-grid { grid-template-columns:1fr 1fr; gap:1.5rem; }
  .form-row { grid-template-columns:1fr; }
  .grid-2, .grid-3 { grid-template-columns:1fr; }
  .input-row { flex-direction:column; }
  .hero { padding:3rem 1rem 2.5rem; }
}
@media (max-width:480px) {
  .footer-grid { grid-template-columns:1fr; }
  .ai-engines { grid-template-columns:repeat(2,1fr); }
  .score-cards { grid-template-columns:1fr; }
}
