/* ── Reset & Variables ─────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --bg-deep:      #0d2135;
    --bg-dark:      #112840;
    --bg-card:      rgba(255,255,255,.04);
    --bg-card-alt:  rgba(255,255,255,.06);
    --bg-light:     #112840;
    --bg-white:     #0d2135;

    --accent:       #76FB92;
    --accent-dim:   rgba(118,251,146,.15);
    --accent-glow:  rgba(118,251,146,.25);

    --pass:         #76FB92;
    --pass-bg:      rgba(118,251,146,.12);
    --warn:         #f59e0b;
    --warn-bg:      rgba(245,158,11,0.12);
    --error:        #ef4444;
    --error-bg:     rgba(239,68,68,0.12);
    --missing:      #6b7280;
    --missing-bg:   rgba(107,114,128,0.12);
    --info-c:       #818cf8;
    --info-bg:      rgba(129,140,248,0.12);

    --text:         #ffffff;
    --text-muted:   rgba(255,255,255,.6);
    --text-dim:     rgba(255,255,255,.5);
    --border:       rgba(255,255,255,.1);
    --border-light: rgba(255,255,255,.08);

    --radius:       12px;
    --radius-sm:    8px;
    --shadow-card:  0 4px 24px rgba(0,0,0,0.35);
    --shadow-btn:   0 0 20px rgba(118,251,146,0.25);

    --font: 'Inter', system-ui, -apple-system, sans-serif;
    --max-w: 1160px;
}

html { scroll-behavior: smooth; }

body {
    font-family: var(--font);
    background: var(--bg-deep);
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
}

a { color: var(--accent); text-decoration: none; }
a:hover { opacity: .85; }
img { display: block; max-width: 100%; }
code { font-family: 'Menlo','Consolas','Courier New',monospace; font-size: 0.82rem; }

.container { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }
.hidden { display: none !important; }

/* ── Announcement Banner ───────────────────────────────────────────────────── */
.announce-bar {
    background: var(--accent-dim);
    border-bottom: 1px solid rgba(118,251,146,.2);
    text-align: center;
    padding: 10px 16px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-muted);
}
.announce-bar a { color: var(--accent); font-weight: 700; text-decoration: underline; }

/* ── Header ───────────────────────────────────────────────────────────────── */
.site-header {
    background: rgba(13,33,53,0.9);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border-light);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 68px;
    gap: 24px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text);
    font-weight: 700;
    font-size: 1.18rem;
    letter-spacing: -0.02em;
    flex-shrink: 0;
}

.logo-mark {
    width: 34px;
    height: 34px;
    background: var(--accent);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 1rem;
    color: #0d2135;
    letter-spacing: -1px;
    flex-shrink: 0;
}

.logo-word span { color: var(--accent); }

.main-nav { display: flex; align-items: center; gap: 6px; }
.main-nav a {
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 500;
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    transition: color 0.2s, background 0.2s;
}
.main-nav a:hover { color: var(--text); background: rgba(255,255,255,0.06); }
.main-nav a.active { color: var(--accent); }

.header-actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }

.btn { display: inline-flex; align-items: center; gap: 8px; padding: 9px 20px; border-radius: var(--radius-sm); font-size: 0.875rem; font-weight: 600; cursor: pointer; border: none; transition: all 0.2s; font-family: var(--font); }
.btn-ghost { background: transparent; color: var(--text-muted); border: 1px solid var(--border-light); }
.btn-ghost:hover { color: var(--text); border-color: var(--border); background: rgba(255,255,255,0.04); }
.btn-primary { background: var(--accent); color: #0d2135; box-shadow: var(--shadow-btn); }
.btn-primary:hover { opacity: .88; transform: translateY(-1px); box-shadow: 0 0 28px rgba(118,251,146,0.35); }
.btn-primary:active { transform: translateY(0); }
.btn-outline { background: transparent; color: var(--accent); border: 1.5px solid var(--accent); }
.btn-outline:hover { background: var(--accent-dim); }
.btn:disabled { opacity: 0.6; cursor: not-allowed; transform: none !important; }

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--text);
    cursor: pointer;
    padding: 4px;
}

/* ── Mobile Nav ───────────────────────────────────────────────────────────── */
#mobile-nav {
    display: none;
    background: var(--bg-dark);
    border-top: 1px solid var(--border-light);
    padding: 16px 24px 20px;
}
#mobile-nav.open { display: block; }
#mobile-nav a {
    display: block;
    color: var(--text-muted);
    font-size: 0.95rem;
    font-weight: 500;
    padding: 10px 0;
    border-bottom: 1px solid var(--border-light);
}
#mobile-nav a:last-child { border-bottom: none; }

/* ── Hero ─────────────────────────────────────────────────────────────────── */
.hero {
    background: var(--bg-deep);
    padding: 80px 0 90px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -200px; left: 50%;
    transform: translateX(-50%);
    width: 800px; height: 800px;
    background: radial-gradient(ellipse, rgba(118,251,146,0.08) 0%, transparent 65%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 720px;
    margin: 0 auto;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--accent-dim);
    border: 1px solid rgba(118,251,146,.25);
    border-radius: 100px;
    padding: 5px 14px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--accent);
    margin-bottom: 22px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.hero-badge svg { width: 14px; height: 14px; }

.hero h1 {
    font-size: clamp(2rem, 5vw, 3.2rem);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.03em;
    margin-bottom: 18px;
    color: #fff;
}

.hero h1 .grad {
    background: linear-gradient(120deg, var(--accent) 0%, #a5f3c0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-sub {
    font-size: 1.08rem;
    color: var(--text-muted);
    max-width: 560px;
    margin: 0 auto 40px;
    line-height: 1.7;
}

.scan-box {
    background: var(--bg-card);
    border: 1.5px solid var(--border);
    border-radius: 16px;
    padding: 6px 6px 6px 20px;
    display: flex;
    gap: 10px;
    align-items: center;
    max-width: 580px;
    margin: 0 auto;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.scan-box:focus-within {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(118,251,146,0.15);
}

#domain-input {
    flex: 1;
    background: none;
    border: none;
    outline: none;
    font-size: 1rem;
    color: var(--text);
    font-family: var(--font);
    min-width: 0;
}

#domain-input::placeholder { color: rgba(255,255,255,.3); }

#scan-btn {
    background: var(--accent);
    color: #0d2135;
    border: none;
    border-radius: 10px;
    padding: 12px 28px;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s;
    font-family: var(--font);
    flex-shrink: 0;
    box-shadow: 0 4px 16px rgba(118,251,146,0.25);
}

#scan-btn:hover:not(:disabled) {
    opacity: .88;
    transform: translateY(-1px);
    box-shadow: 0 6px 24px rgba(118,251,146,0.35);
}

#scan-btn svg { width: 18px; height: 18px; }

.spinner {
    width: 18px; height: 18px;
    border: 2px solid rgba(13,33,53,0.3);
    border-top-color: #0d2135;
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

.input-error {
    color: var(--error);
    font-size: 0.83rem;
    margin-top: 10px;
    text-align: center;
}

.hero-trust {
    margin-top: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    flex-wrap: wrap;
    font-size: 0.82rem;
    color: rgba(255,255,255,.5);
}

.hero-trust .trust-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.hero-trust svg { width: 14px; height: 14px; color: var(--accent); }

/* ── Breadcrumb ────────────────────────────────────────────────────────────── */
.breadcrumb {
    background: var(--bg-deep);
    border-bottom: 1px solid var(--border-light);
    padding: 10px 0;
    font-size: 0.82rem;
    color: rgba(255,255,255,.3);
}
.breadcrumb a { color: rgba(255,255,255,.5); }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb span { margin: 0 6px; }

/* ── Results Section ──────────────────────────────────────────────────────── */
#results {
    background: var(--bg-deep);
    padding: 56px 0;
    border-bottom: 1px solid var(--border-light);
    animation: fadeUp 0.4s ease;
}

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(16px); }
    to   { opacity: 1; transform: translateY(0); }
}

.results-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 36px;
    gap: 20px;
    flex-wrap: wrap;
}

.results-domain-info h2 {
    font-size: 1.4rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 4px;
}

.results-domain-info h2 span { color: var(--accent); }
.results-domain-info p { font-size: 0.85rem; color: var(--text-muted); }

.score-wrap { display: flex; align-items: center; gap: 16px; }
.score-svg { width: 120px; height: 120px; }
.score-legend { font-size: 0.82rem; color: var(--text-muted); }
.score-legend strong { display: block; color: var(--text); font-size: 0.9rem; margin-bottom: 4px; }

.results-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 18px;
}

/* ── Protocol Card ────────────────────────────────────────────────────────── */
.protocol-card {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
    overflow: hidden;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.protocol-card:hover { border-color: var(--border); box-shadow: var(--shadow-card); }
.protocol-card.status-pass    { border-top: 3px solid var(--pass); }
.protocol-card.status-warning { border-top: 3px solid var(--warn); }
.protocol-card.status-error   { border-top: 3px solid var(--error); }
.protocol-card.status-missing { border-top: 3px solid var(--missing); }
.protocol-card.status-info    { border-top: 3px solid var(--info-c); }

.card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 18px 14px;
    border-bottom: 1px solid var(--border-light);
}

.card-title-group { display: flex; align-items: center; gap: 10px; }

.proto-icon {
    width: 36px; height: 36px;
    background: var(--accent-dim);
    border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    color: var(--accent);
    flex-shrink: 0;
}
.proto-icon svg { width: 18px; height: 18px; }

.card-title { font-size: 0.95rem; font-weight: 700; color: var(--text); }

.status-badge {
    display: inline-flex; align-items: center; gap: 5px;
    padding: 4px 10px; border-radius: 100px;
    font-size: 0.75rem; font-weight: 700; letter-spacing: 0.03em; flex-shrink: 0;
}
.status-badge svg { width: 14px; height: 14px; }
.status-badge.status-pass    { background: var(--pass-bg);    color: var(--pass); }
.status-badge.status-warning { background: var(--warn-bg);    color: var(--warn); }
.status-badge.status-error   { background: var(--error-bg);   color: var(--error); }
.status-badge.status-missing { background: var(--missing-bg); color: var(--missing); }
.status-badge.status-info    { background: var(--info-bg);    color: var(--info-c); }

.card-body { padding: 16px 18px; }

.record-block {
    background: rgba(0,0,0,0.3);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-sm);
    padding: 10px 12px;
    margin-bottom: 12px;
}
.record-label {
    display: block; font-size: 0.72rem; font-weight: 700;
    color: rgba(255,255,255,.5); letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 5px;
}
.record-block code { color: var(--accent); word-break: break-all; white-space: pre-wrap; line-height: 1.5; }

.mx-list { margin-bottom: 12px; }
.mx-item {
    display: flex; gap: 12px; padding: 7px 0;
    border-bottom: 1px solid var(--border-light); font-size: 0.85rem;
}
.mx-item:last-child { border-bottom: none; }
.mx-priority {
    background: var(--bg-card-alt); border-radius: 4px; padding: 1px 7px;
    font-size: 0.72rem; font-weight: 700; color: var(--text-muted);
    white-space: nowrap; flex-shrink: 0; display: flex; align-items: center;
}

.result-list { list-style: none; display: flex; flex-direction: column; gap: 7px; }
.result-issue, .result-info, .result-rec {
    display: flex; gap: 8px; font-size: 0.83rem; line-height: 1.5; align-items: flex-start;
}
.result-issue { color: #fca5a5; }
.result-info  { color: var(--text-muted); }
.result-rec   { color: #86efac; }
.issue-icon, .info-icon { flex-shrink: 0; margin-top: 1px; }
.issue-icon svg { width: 15px; height: 15px; color: var(--error); }
.info-icon  svg { width: 15px; height: 15px; color: var(--info-c); }
.rec-icon { flex-shrink: 0; color: var(--pass); font-weight: 700; margin-top: 1px; }

/* ── Content Sections ─────────────────────────────────────────────────────── */
.section-light { background: var(--bg-dark); }
.section-dark  { background: var(--bg-deep); }
.section       { padding: 80px 0; }

.section-label {
    display: inline-block; font-size: 0.75rem; font-weight: 700;
    letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); margin-bottom: 12px;
}
.section-title {
    font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 800;
    letter-spacing: -0.02em; line-height: 1.25; margin-bottom: 16px;
}
.section-title-dark  { color: #fff; }
.section-title-light { color: #fff; }
.section-desc { font-size: 1rem; line-height: 1.75; max-width: 640px; }
.section-desc-dark  { color: var(--text-muted); }
.section-desc-light { color: var(--text-muted); }
.text-center { text-align: center; }
.mx-auto { margin-left: auto; margin-right: auto; }

/* ── About ────────────────────────────────────────────────────────────────── */
.about-grid {
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 56px; align-items: center; margin-top: 48px;
}
.about-protocols { display: flex; flex-direction: column; gap: 16px; }
.proto-badge {
    display: flex; align-items: flex-start; gap: 14px;
    background: var(--bg-card); border: 1px solid var(--border-light);
    border-radius: var(--radius); padding: 16px; transition: border-color 0.2s;
}
.proto-badge:hover { border-color: var(--border); }
.proto-badge-icon {
    width: 38px; height: 38px; background: var(--accent-dim);
    border-radius: 8px; display: flex; align-items: center; justify-content: center;
    color: var(--accent); flex-shrink: 0;
}
.proto-badge-icon svg { width: 18px; height: 18px; }
.proto-badge-text h4 { font-size: 0.9rem; font-weight: 700; color: #fff; margin-bottom: 3px; }
.proto-badge-text p  { font-size: 0.82rem; color: var(--text-muted); line-height: 1.55; }

/* ── Feature Cards ────────────────────────────────────────────────────────── */
.features-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 20px; margin-top: 48px;
}
.feature-card {
    background: var(--bg-card); border: 1px solid var(--border-light); border-radius: var(--radius);
    padding: 28px 24px; transition: box-shadow 0.2s, transform 0.2s, border-color 0.2s;
}
.feature-card:hover { border-color: rgba(118,251,146,.2); box-shadow: 0 8px 32px rgba(0,0,0,0.2); transform: translateY(-2px); }
.feature-icon {
    width: 48px; height: 48px; background: var(--accent-dim); border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    color: var(--accent); margin-bottom: 16px;
}
.feature-icon svg { width: 22px; height: 22px; }
.feature-card h3 { font-size: 1rem; font-weight: 700; color: #fff; margin-bottom: 8px; }
.feature-card p  { font-size: 0.85rem; color: var(--text-muted); line-height: 1.65; }

/* ── FAQ ──────────────────────────────────────────────────────────────────── */
.faq-list { max-width: 760px; margin: 48px auto 0; display: flex; flex-direction: column; gap: 12px; }
.faq-item {
    background: var(--bg-card); border: 1px solid var(--border-light);
    border-radius: var(--radius); overflow: hidden; transition: border-color 0.2s;
}
.faq-item.open { border-color: var(--border); }
.faq-question {
    width: 100%; background: none; border: none; padding: 20px 22px;
    display: flex; justify-content: space-between; align-items: center; gap: 16px;
    cursor: pointer; color: var(--text); font-size: 0.95rem; font-weight: 600;
    text-align: left; font-family: var(--font); transition: background 0.15s;
}
.faq-question:hover { background: rgba(255,255,255,0.03); color: var(--accent); }
.faq-chevron {
    width: 20px; height: 20px; color: var(--text-muted);
    flex-shrink: 0; transition: transform 0.25s;
}
.faq-item.open .faq-chevron { transform: rotate(180deg); color: var(--accent); }
.faq-answer {
    display: none; padding: 16px 22px 20px; font-size: 0.88rem;
    color: var(--text-muted); line-height: 1.75; border-top: 1px solid var(--border-light);
}
.faq-item.open .faq-answer { display: block; }

/* ── CTA ──────────────────────────────────────────────────────────────────── */
.cta-section {
    background: linear-gradient(135deg, #0f2e47 0%, #0d2135 100%);
    border-top: 1px solid var(--border-light); border-bottom: 1px solid var(--border-light);
    padding: 64px 0; text-align: center;
    position: relative; overflow: hidden;
}
.cta-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 50% 0%, rgba(118,251,146,.07) 0%, transparent 65%);
    pointer-events: none;
}
.cta-section h2 {
    font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 800; color: #fff;
    margin-bottom: 12px; letter-spacing: -0.02em;
}
.cta-section p { color: var(--text-muted); font-size: 1rem; margin-bottom: 28px; }
.cta-buttons { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ── Footer ───────────────────────────────────────────────────────────────── */
.site-footer { background: #091c2c; border-top: 1px solid var(--border-light); padding: 56px 0 32px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 48px; }
.footer-brand p { font-size: 0.85rem; color: rgba(255,255,255,.5); margin-top: 14px; line-height: 1.7; max-width: 280px; }
.footer-col h4 { font-size: 0.8rem; font-weight: 700; color: rgba(255,255,255,.3); letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 16px; }
.footer-col a { display: block; color: rgba(255,255,255,.5); font-size: 0.85rem; margin-bottom: 10px; transition: color 0.15s; }
.footer-col a:hover { color: var(--accent); }
.footer-divider { border: none; border-top: 1px solid var(--border-light); margin-bottom: 24px; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; font-size: 0.8rem; color: rgba(255,255,255,.3); }
.social-links { display: flex; gap: 12px; }
.social-links a {
    width: 32px; height: 32px; border: 1px solid var(--border-light); border-radius: 6px;
    display: flex; align-items: center; justify-content: center;
    color: rgba(255,255,255,.5); transition: all 0.2s;
}
.social-links a:hover { color: var(--accent); border-color: rgba(118,251,146,.3); }
.social-links svg { width: 14px; height: 14px; }

/* ── Cookie Banner ────────────────────────────────────────────────────────── */
#cookie-banner {
    position: fixed; bottom: 0; left: 0; right: 0;
    background: rgba(13,33,53,0.96); backdrop-filter: blur(8px);
    border-top: 1px solid var(--border-light); padding: 16px 24px;
    display: flex; align-items: center; justify-content: space-between;
    gap: 16px; z-index: 999; flex-wrap: wrap;
}
#cookie-banner p { font-size: 0.83rem; color: var(--text-muted); flex: 1; min-width: 200px; }
#cookie-banner a { color: var(--accent); }
#cookie-accept {
    background: var(--accent); color: #0d2135; border: none; border-radius: var(--radius-sm);
    padding: 9px 20px; font-size: 0.85rem; font-weight: 600; cursor: pointer;
    font-family: var(--font); white-space: nowrap; transition: opacity 0.2s;
}
#cookie-accept:hover { opacity: .85; }

/* ── Responsive ───────────────────────────────────────────────────────────── */
@media (max-width: 900px) {
    .main-nav, .header-actions { display: none; }
    .mobile-menu-btn { display: block; }
    .about-grid { grid-template-columns: 1fr; gap: 36px; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .results-header { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 600px) {
    .hero { padding: 56px 0 64px; }
    .scan-box { flex-direction: column; padding: 14px; border-radius: 12px; gap: 8px; }
    #scan-btn { width: 100%; justify-content: center; }
    .footer-grid { grid-template-columns: 1fr; }
    .footer-bottom { flex-direction: column; text-align: center; }
    .results-cards { grid-template-columns: 1fr; }
    .hero-trust { flex-direction: column; gap: 10px; }
    .features-grid { grid-template-columns: 1fr; }
    .section { padding: 56px 0; }
}
