/* ── Design tokens ─────────────────────────────────── */
:root {
--bg:#0d0f1c;
--bg2: #131629;
--bg3: #1a1e35;
--border:#252a47;
--cyan:#00d4ff;
--cyan-dim:#0099cc;
--purple:#7c5cfc;
--green: #22d3a5;
--amber: #f59e0b;
--red: #ef4444;
--text:#e8eaf6;
--text2: #9aa0c4;
--text3: #5d638a;
--radius:10px;
--radius-lg: 18px;
--shadow:0 4px 32px rgba(0,0,0,.45);
--font-head: 'Outfit', sans-serif;
--font-body: 'Inter', sans-serif;
--nav-h: 62px;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
font-family: var(--font-body);
background: var(--bg);
color: var(--text);
line-height: 1.65;
overflow-x: hidden;
min-width: 320px;
}
a { color: var(--cyan); text-decoration: none; }
a:hover { color: #fff; }
img { display: block; max-width: 100%; }

/* ── Scrollbar ─────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg2); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }

/* ── NAV ───────────────────────────────────────────── */
.nav {
position: sticky; top: 0; z-index: 900;
background: rgba(13,15,28,.95);
backdrop-filter: blur(12px);
border-bottom: 1px solid var(--border);
height: var(--nav-h);
}
.nav-inner {
max-width: 1200px; margin: 0 auto;
padding: 0 20px;
height: 100%;
display: flex; align-items: center; justify-content: space-between;
gap: 12px;
}
.nav-logo {
font-family: var(--font-head); font-weight: 800; font-size: 1.2rem;
color: #fff; white-space: nowrap;
display: flex; align-items: center; gap: 8px;
}
.nav-logo span { color: var(--cyan); }
.nav-logo svg { flex-shrink: 0; }
.nav-links { display: flex; align-items: center; gap: 4px; flex: 1; justify-content: flex-end; }
.nav-links > a, .nav-dropdown > .nav-btn {
font-size: .875rem; font-weight: 500; color: var(--text2);
padding: 6px 12px; border-radius: 6px;
transition: background .15s, color .15s;
background: transparent; border: none; cursor: pointer;
white-space: nowrap;
}
.nav-links > a:hover, .nav-dropdown > .nav-btn:hover { background: var(--bg3); color: #fff; }
.nav-dropdown { position: relative; }
.nav-dropdown-menu {
display: none; position: absolute; top: calc(100% + 8px); right: 0;
background: var(--bg2); border: 1px solid var(--border); border-radius: var(--radius);
min-width: 260px; padding: 8px 0; box-shadow: var(--shadow);
max-height: 70vh; overflow-y: auto; z-index: 999;
}
.nav-dropdown-menu a {
display: block; padding: 9px 16px; font-size: .825rem;
color: var(--text2); transition: background .12s, color .12s;
}
.nav-dropdown-menu a:hover { background: var(--bg3); color: var(--cyan); }
.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu { display: block; }

/* hamburger */
.nav-hamburger {
display: none; flex-direction: column; gap: 5px;
background: transparent; border: none; cursor: pointer; padding: 6px;
}
.nav-hamburger span { display: block; width: 22px; height: 2px; background: var(--text); border-radius: 2px; transition: all .25s; }
.nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.nav-mobile {
display: none; flex-direction: column; background: var(--bg2);
border-bottom: 1px solid var(--border); padding: 12px 0;
max-height: calc(100vh - var(--nav-h)); overflow-y: auto;
}
.nav-mobile.open { display: flex; }
.nav-mobile a { padding: 10px 24px; font-size: .9rem; color: var(--text2); border-bottom: 1px solid var(--border); }
.nav-mobile a:hover { color: var(--cyan); background: var(--bg3); }
.nav-mobile .mobile-section-title {
padding: 8px 24px 4px; font-size: .75rem; font-weight: 700;
text-transform: uppercase; letter-spacing: .08em; color: var(--text3);
}

/* ── BREADCRUMB ────────────────────────────────────── */
.breadcrumb { background: var(--bg2); border-bottom: 1px solid var(--border); padding: 10px 0; }
.breadcrumb-inner { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.breadcrumb ol { display: flex; align-items: center; gap: 6px; list-style: none; flex-wrap: wrap; }
.breadcrumb li { font-size: .8rem; color: var(--text2); display: flex; align-items: center; gap: 6px; }
.breadcrumb li::after { content: '›'; color: var(--text3); }
.breadcrumb li:last-child::after { display: none; }
.breadcrumb a { color: var(--text2); } .breadcrumb a:hover { color: var(--cyan); }
.breadcrumb li:last-child { color: var(--cyan); font-weight: 600; }

/* ── HERO ──────────────────────────────────────────── */
.hero {
padding: 72px 20px 64px;
text-align: center;
background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(124,92,252,.18) 0%, transparent 70%);
position: relative; overflow: hidden;
}
.hero::before {
content: '';
position: absolute; inset: 0;
background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%237c5cfc' fill-opacity='0.04'%3E%3Ccircle cx='30' cy='30' r='1'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
pointer-events: none;
}
.hero-badge {
display: inline-flex; align-items: center; gap: 6px;
background: rgba(0,212,255,.08); border: 1px solid rgba(0,212,255,.25);
color: var(--cyan); font-size: .8rem; font-weight: 600;
padding: 4px 14px; border-radius: 99px; margin-bottom: 20px;
text-transform: uppercase; letter-spacing: .06em;
}
.hero h1 {
font-family: var(--font-head); font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 800;
line-height: 1.15; color: #fff; max-width: 760px; margin: 0 auto 18px;
}
.hero h1 em { font-style: normal; color: var(--cyan); }
.hero p { font-size: 1.05rem; color: var(--text2); max-width: 580px; margin: 0 auto 36px; }

/* ── TOOL CARD ─────────────────────────────────────── */
.tool-section { max-width: 900px; margin: 0 auto; padding: 0 20px 72px; }
.tool-card {
background: var(--bg2); border: 1px solid var(--border);
border-radius: var(--radius-lg); padding: 36px;
box-shadow: var(--shadow);
}
.input-row {
display: flex; gap: 10px; align-items: stretch; flex-wrap: wrap;
}
.url-input {
flex: 1; min-width: 200px;
background: var(--bg3); border: 1.5px solid var(--border);
color: var(--text); border-radius: var(--radius);
padding: 14px 18px; font-size: 1rem; font-family: var(--font-body);
outline: none; transition: border-color .2s;
}
.url-input::placeholder { color: var(--text3); }
.url-input:focus { border-color: var(--cyan); }
.url-input.error-input { border-color: var(--red); }
.url-input.valid-input { border-color: var(--green); }
.btn {
display: inline-flex; align-items: center; gap: 8px;
padding: 14px 28px; border-radius: var(--radius);
font-size: .95rem; font-weight: 700; font-family: var(--font-head);
cursor: pointer; border: none; transition: all .2s; white-space: nowrap;
}
.btn-primary {
background: linear-gradient(135deg, var(--cyan) 0%, var(--purple) 100%);
color: #fff;
}
.btn-primary:hover { opacity: .88; transform: translateY(-1px); }
.btn-primary:disabled { opacity: .45; cursor: not-allowed; transform: none; }
.input-hint { font-size: .8rem; color: var(--text3); margin-top: 8px; }
.input-hint.err { color: var(--red); }
.input-hint.ok{ color: var(--green); }

/* ── PROGRESS ──────────────────────────────────────── */
.progress-wrap { display: none; margin-top: 24px; }
.progress-wrap.show { display: block; }
.progress-bar-bg { height: 4px; background: var(--bg3); border-radius: 2px; overflow: hidden; }
.progress-bar-fill { height: 100%; width: 0%; background: linear-gradient(90deg, var(--cyan), var(--purple)); border-radius: 2px; transition: width .4s ease; }
.progress-label { font-size: .82rem; color: var(--text2); margin-top: 8px; text-align: center; }

/* ── RESULTS ───────────────────────────────────────── */
.results-wrap { display: none; margin-top: 32px; }
.results-wrap.show { display: block; }

.summary-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
gap: 14px; margin-bottom: 24px;
}
.stat-card {
background: var(--bg3); border: 1px solid var(--border);
border-radius: var(--radius); padding: 18px 14px; text-align: center;
}
.stat-card .stat-num {
font-family: var(--font-head); font-size: 2rem; font-weight: 800;
line-height: 1; margin-bottom: 4px;
}
.stat-card .stat-label { font-size: .75rem; color: var(--text2); text-transform: uppercase; letter-spacing: .05em; }
.stat-num.cyan { color: var(--cyan); }
.stat-num.purple { color: var(--purple); }
.stat-num.amber{ color: var(--amber); }
.stat-num.red{ color: var(--red); }
.stat-num.green{ color: var(--green); }

/* Score Ring */
.score-ring-wrap { display: flex; align-items: center; gap: 20px; background: var(--bg3); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px 20px; margin-bottom: 24px; flex-wrap: wrap; }
.score-ring { position: relative; width: 80px; height: 80px; flex-shrink: 0; }
.score-ring svg { transform: rotate(-90deg); }
.score-ring-text { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.score-ring-text .score-val { font-family: var(--font-head); font-size: 1.3rem; font-weight: 800; }
.score-ring-text .score-lbl { font-size: .6rem; color: var(--text3); text-transform: uppercase; }
.score-info h3 { font-family: var(--font-head); font-size: 1rem; margin-bottom: 4px; }
.score-info p{ font-size: .83rem; color: var(--text2); }

/* CMP / CSP badges */
.badge-row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.badge {
display: inline-flex; align-items: center; gap: 5px;
padding: 4px 12px; border-radius: 99px; font-size: .78rem; font-weight: 600;
border: 1px solid;
}
.badge-green{ background: rgba(34,211,165,.1);border-color: rgba(34,211,165,.3);color: var(--green); }
.badge-amber{ background: rgba(245,158,11,.1);border-color: rgba(245,158,11,.3);color: var(--amber); }
.badge-red{ background: rgba(239,68,68,.1); border-color: rgba(239,68,68,.3); color: var(--red); }
.badge-blue { background: rgba(0,212,255,.08);border-color: rgba(0,212,255,.25);color: var(--cyan); }

/* ── TABS ──────────────────────────────────────────── */
.tabs { display: flex; gap: 4px; margin-bottom: 20px; flex-wrap: wrap; }
.tab-btn {
padding: 8px 18px; border-radius: 8px; font-size: .85rem; font-weight: 600;
background: var(--bg3); border: 1px solid var(--border);
color: var(--text2); cursor: pointer; transition: all .15s;
}
.tab-btn.active { background: var(--cyan); border-color: var(--cyan); color: #0d0f1c; }
.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* ── FILTER BAR ────────────────────────────────────── */
.filter-bar { display: flex; gap: 8px; margin-bottom: 16px; flex-wrap: wrap; align-items: center; }
.filter-bar select, .filter-bar input {
background: var(--bg3); border: 1px solid var(--border); color: var(--text);
padding: 7px 12px; border-radius: var(--radius); font-size: .83rem;
outline: none;
}
.filter-bar select:focus, .filter-bar input:focus { border-color: var(--cyan); }

/* ── SCRIPT TABLE ──────────────────────────────────── */
.script-table-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--border); }
.script-table { width: 100%; border-collapse: collapse; font-size: .82rem; }
.script-table th {
background: var(--bg3); color: var(--text2); font-weight: 600;
padding: 11px 14px; text-align: left; border-bottom: 1px solid var(--border);
white-space: nowrap; position: sticky; top: 0;
}
.script-table td { padding: 10px 14px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.script-table tr:last-child td { border-bottom: none; }
.script-table tr:hover td { background: rgba(255,255,255,.02); }

.pill {
display: inline-block; padding: 2px 10px; border-radius: 99px;
font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em;
}
.pill-high{ background: rgba(239,68,68,.15);color: var(--red); }
.pill-medium{ background: rgba(245,158,11,.12); color: var(--amber); }
.pill-low { background: rgba(34,211,165,.1);color: var(--green); }
.pill-cdn { background: rgba(0,212,255,.08);color: var(--cyan); }
.pill-3p{ background: rgba(239,68,68,.1); color: var(--red); }
.pill-1p{ background: rgba(34,211,165,.08); color: var(--green); }
.pill-inline{ background: rgba(124,92,252,.12); color: var(--purple); }
.pill-yes { background: rgba(239,68,68,.1); color: var(--red); }
.pill-no{ background: rgba(34,211,165,.1);color: var(--green); }

.icon-yes { color: var(--green); }
.icon-no{ color: var(--red); }

.src-cell { max-width: 300px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.src-cell a { color: var(--text2); font-size: .78rem; }
.src-cell a:hover { color: var(--cyan); }

/* ── OUTPUT ACTIONS ────────────────────────────────── */
.output-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 20px; }
.btn-sm {
padding: 9px 18px; border-radius: var(--radius); font-size: .83rem; font-weight: 600;
cursor: pointer; border: 1px solid var(--border); background: var(--bg3);
color: var(--text2); display: inline-flex; align-items: center; gap: 6px; transition: all .15s;
}
.btn-sm:hover { background: var(--bg); color: var(--cyan); border-color: var(--cyan); }
#clearBtn { color: var(--red); border-color: rgba(239,68,68,.3); }
#clearBtn:hover { background: rgba(239,68,68,.08); }

/* ── ERROR BOX ─────────────────────────────────────── */
.error-box {
display: none; background: rgba(239,68,68,.08); border: 1px solid rgba(239,68,68,.3);
border-radius: var(--radius); padding: 14px 18px; margin-top: 20px;
color: var(--red); font-size: .9rem; display: none; align-items: center; gap: 10px;
}
.error-box.show { display: flex; }

/* ── SECTIONS ──────────────────────────────────────── */
.section { padding: 72px 20px; }
.section-inner { max-width: 1100px; margin: 0 auto; }
.section-title {
font-family: var(--font-head); font-size: clamp(1.6rem, 3.5vw, 2.2rem); font-weight: 800;
text-align: center; margin-bottom: 12px; color: #fff;
}
.section-subtitle { text-align: center; color: var(--text2); max-width: 580px; margin: 0 auto 48px; font-size: 1rem; }

/* ── SEO PARAGRAPH ─────────────────────────────────── */
.seo-section { background: var(--bg2); }
.seo-section .section-inner { max-width: 860px; }
.seo-section p { color: var(--text2); margin-bottom: 16px; font-size: .97rem; }
.seo-section p:last-child { margin-bottom: 0; }

/* ── FEATURES GRID ─────────────────────────────────── */
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 24px; }
.feature-card {
background: var(--bg2); border: 1px solid var(--border);
border-radius: var(--radius-lg); padding: 28px 24px;
transition: border-color .2s, transform .2s;
}
.feature-card:hover { border-color: var(--cyan); transform: translateY(-3px); }
.feature-icon {
width: 48px; height: 48px; border-radius: 12px;
background: rgba(0,212,255,.1); border: 1px solid rgba(0,212,255,.2);
display: flex; align-items: center; justify-content: center;
font-size: 1.3rem; margin-bottom: 16px;
}
.feature-card h3 { font-family: var(--font-head); font-size: 1rem; font-weight: 700; margin-bottom: 8px; color: #fff; }
.feature-card p{ font-size: .875rem; color: var(--text2); }

/* ── HOW IT WORKS ──────────────────────────────────── */
.how-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 24px; counter-reset: steps; }
.how-step { background: var(--bg2); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 28px 22px; position: relative; }
.how-step::before {
counter-increment: steps;
content: counter(steps);
position: absolute; top: -14px; left: 20px;
width: 28px; height: 28px; border-radius: 50%;
background: var(--cyan); color: #0d0f1c;
font-family: var(--font-head); font-weight: 800; font-size: .85rem;
display: flex; align-items: center; justify-content: center;
line-height: 28px; text-align: center;
}
.how-step h3 { font-family: var(--font-head); font-size: .95rem; font-weight: 700; margin-bottom: 8px; color: #fff; }
.how-step p{ font-size: .85rem; color: var(--text2); }

/* ── FAQ ───────────────────────────────────────────── */
.faq-section { background: var(--bg2); }
.faq-list { max-width: 780px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.faq-item { background: var(--bg3); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.faq-question {
width: 100%; background: transparent; border: none;
padding: 18px 20px; display: flex; justify-content: space-between; align-items: center;
cursor: pointer; text-align: left; gap: 12px;
}
.faq-question span { font-size: .95rem; font-weight: 600; color: var(--text); }
.faq-icon { color: var(--cyan); font-size: 1.2rem; flex-shrink: 0; transition: transform .25s; }
.faq-item.open .faq-icon { transform: rotate(45deg); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height .3s ease, padding .3s; }
.faq-item.open .faq-answer { max-height: 300px; }
.faq-answer p { padding: 0 20px 18px; color: var(--text2); font-size: .9rem; }

/* ── CTA ───────────────────────────────────────────── */
.cta-section { background: radial-gradient(ellipse 70% 80% at 50% 50%, rgba(124,92,252,.15) 0%, transparent 70%); }
.cta-card {
background: var(--bg2); border: 1px solid var(--border); border-radius: var(--radius-lg);
padding: 52px 36px; text-align: center; max-width: 680px; margin: 0 auto;
}
.cta-card h2 { font-family: var(--font-head); font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 800; margin-bottom: 12px; }
.cta-card p{ color: var(--text2); margin-bottom: 32px; }
.cta-btn-row { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.btn-outline {
background: transparent; border: 1.5px solid var(--border); color: var(--text);
padding: 12px 24px; border-radius: var(--radius);
font-size: .9rem; font-weight: 600; cursor: pointer; transition: all .2s;
display: inline-flex; align-items: center; gap: 6px;
}
.btn-outline:hover { border-color: var(--cyan); color: var(--cyan); }

/* ── RELATED LINKS ─────────────────────────────────── */
.related-section { background: var(--bg2); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.related-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; }
.related-link {
display: flex; align-items: center; gap: 8px;
background: var(--bg3); border: 1px solid var(--border); border-radius: var(--radius);
padding: 10px 14px; font-size: .82rem; color: var(--text2); transition: all .15s;
}
.related-link:hover { border-color: var(--cyan); color: var(--cyan); }
.related-link svg { flex-shrink: 0; color: var(--cyan); }

/* ── FOOTER ────────────────────────────────────────── */
footer { background: var(--bg2); border-top: 1px solid var(--border); padding: 52px 20px 24px; }
.footer-inner { max-width: 1100px; margin: 0 auto; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-brand p { font-size: .85rem; color: var(--text2); margin: 10px 0 16px; }
.footer-col h4 { font-family: var(--font-head); font-size: .9rem; font-weight: 700; color: #fff; margin-bottom: 14px; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.footer-col ul li a { font-size: .82rem; color: var(--text2); transition: color .15s; }
.footer-col ul li a:hover { color: var(--cyan); }
.footer-bottom { border-top: 1px solid var(--border); padding-top: 20px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; }
.footer-bottom p { font-size: .8rem; color: var(--text3); }
.footer-bottom-links { display: flex; gap: 16px; flex-wrap: wrap; }
.footer-bottom-links a { font-size: .8rem; color: var(--text3); }
.footer-bottom-links a:hover { color: var(--cyan); }
.disclaimer { font-size: .78rem; color: var(--text3); margin-top: 16px; line-height: 1.6; }

/* ── COOKIE BANNER ─────────────────────────────────── */
.cookie-banner {
position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%);
background: var(--bg2); border: 1px solid var(--border); border-radius: var(--radius-lg);
padding: 18px 22px; max-width: 560px; width: calc(100% - 40px);
display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
box-shadow: var(--shadow); z-index: 9999;
}
.cookie-banner p { font-size: .83rem; color: var(--text2); flex: 1; min-width: 180px; }
.cookie-banner a { color: var(--cyan); }
.cookie-banner .btn-sm { padding: 8px 18px; }

/* ── RESPONSIVE ────────────────────────────────────── */
@media (max-width: 768px) {
.nav-links { display: none; }
.nav-hamburger { display: flex; }
.footer-grid { grid-template-columns: 1fr; }
.how-step::before { position: static; display: inline-flex; margin-bottom: 14px; }
.tool-card { padding: 22px 16px; }
.cta-card { padding: 36px 20px; }
.summary-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 480px) {
.summary-grid { grid-template-columns: repeat(2, 1fr); }
.input-row { flex-direction: column; }
.btn { width: 100%; justify-content: center; }
}