/* ====================================
   AI DETECT — Light & Dark Themes
   ==================================== */

/* ===== DARK THEME (default) ===== */
[data-theme="dark"] {
    --bg: #08090d; --bg-elevated: #0f1117; --bg-card: #141620;
    --bg-card-hover: #191c2a; --bg-alt: #0c0d13;
    --surface: rgba(255,255,255,0.04); --border: rgba(255,255,255,0.07);
    --border-hover: rgba(255,255,255,0.14);
    --accent: #22d3a7; --accent-dim: rgba(34,211,167,0.12); --accent-glow: rgba(34,211,167,0.25);
    --danger: #ff4466; --warn: #ffc234; --safe: #22d3a7;
    --text: #eaf0f6; --text-secondary: #8892a4; --text-dim: #5a6275;
    --code-bg: #0d0f16;
    --header-bg: rgba(8,9,13,0.8);
    --shadow: rgba(0,0,0,0.4);
}

/* ===== LIGHT THEME ===== */
[data-theme="light"] {
    --bg: #f5f7fa; --bg-elevated: #ffffff; --bg-card: #ffffff;
    --bg-card-hover: #f0f2f5; --bg-alt: #eef1f5;
    --surface: rgba(0,0,0,0.03); --border: rgba(0,0,0,0.09);
    --border-hover: rgba(0,0,0,0.18);
    --accent: #0d9373; --accent-dim: rgba(13,147,115,0.1); --accent-glow: rgba(13,147,115,0.2);
    --danger: #e03050; --warn: #d4a020; --safe: #0d9373;
    --text: #1a1d26; --text-secondary: #555e6e; --text-dim: #8892a4;
    --code-bg: #f0f2f5;
    --header-bg: rgba(245,247,250,0.85);
    --shadow: rgba(0,0,0,0.08);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    background: var(--bg); color: var(--text); font-family: 'DM Sans', -apple-system, sans-serif;
    line-height: 1.6; overflow-x: hidden; -webkit-font-smoothing: antialiased;
    transition: background 0.3s, color 0.3s;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
::selection { background: var(--accent-dim); color: var(--accent); }

.bg-mesh {
    position: fixed; inset: 0; z-index: -2; pointer-events: none;
    background: radial-gradient(ellipse 60% 50% at 20% 10%, var(--accent-glow) 0%, transparent 70%),
                radial-gradient(ellipse 50% 40% at 80% 80%, rgba(99,102,241,0.05) 0%, transparent 70%);
}
[data-theme="light"] .bg-mesh { opacity: 0.5; }
.bg-noise { position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: 0.3;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
}
.container { max-width: 1080px; margin: 0 auto; padding: 0 1.5rem; }
.site-wrapper { min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1; }

/* ===== HEADER ===== */
.site-header {
    position: sticky; top: 0; z-index: 100;
    backdrop-filter: blur(20px) saturate(1.4);
    background: var(--header-bg); border-bottom: 1px solid var(--border);
    transition: background 0.3s;
}
.header-inner { display: flex; justify-content: space-between; align-items: center; height: 64px; }
.logo { display: flex; align-items: center; gap: 0.5rem; font-weight: 700; font-size: 1.15rem; color: var(--text); text-decoration: none; }
.logo-icon { color: var(--accent); font-size: 1.4rem; }
.header-nav { display: flex; align-items: center; gap: 1.25rem; }
.nav-link { color: var(--text-secondary); font-size: 0.85rem; font-weight: 500; text-decoration: none; transition: color 0.2s; }
.nav-link:hover { color: var(--text); text-decoration: none; }

#lang-select {
    background: var(--surface); border: 1px solid var(--border); color: var(--text-secondary);
    padding: 0.4rem 0.75rem; border-radius: 6px; font-family: inherit; font-size: 0.85rem; cursor: pointer; outline: none;
}
#lang-select option { background: var(--bg-card); color: var(--text); }

.theme-toggle {
    background: var(--surface); border: 1px solid var(--border); border-radius: 8px;
    width: 38px; height: 38px; cursor: pointer; display: flex; align-items: center; justify-content: center;
    font-size: 1.1rem; transition: border-color 0.2s;
}
.theme-toggle:hover { border-color: var(--border-hover); }
[data-theme="dark"] .theme-icon-light { display: none; }
[data-theme="light"] .theme-icon-dark { display: none; }

.mobile-menu-btn { display: none; background: none; border: none; cursor: pointer; width: 28px; height: 20px; position: relative; flex-direction: column; justify-content: space-between; }
.mobile-menu-btn span { display: block; height: 2px; background: var(--text-secondary); border-radius: 2px; transition: 0.3s; width: 100%; }

/* ===== HERO ===== */
.hero { padding: 5rem 0 3rem; text-align: center; }
.hero-badge { display: inline-flex; align-items: center; gap: 0.5rem; background: var(--accent-dim); color: var(--accent); font-size: 0.8rem; font-weight: 600; padding: 0.4rem 1rem; border-radius: 50px; margin-bottom: 2rem; animation: fadeInDown 0.6s; }
.badge-dot { width: 7px; height: 7px; background: var(--accent); border-radius: 50%; animation: pulse-dot 2s infinite; }
.hero-title { font-size: clamp(2.2rem, 5vw, 3.5rem); font-weight: 700; line-height: 1.12; letter-spacing: -0.03em; margin-bottom: 1.25rem; animation: fadeInUp 0.7s; }
.hero-accent { background: linear-gradient(135deg, var(--accent), #6ee7b7, #34d399); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.hero-subtitle { font-size: 1.05rem; color: var(--text-secondary); max-width: 640px; margin: 0 auto 3rem; line-height: 1.65; animation: fadeInUp 0.8s; }

/* ===== WIDGET ===== */
.detector-widget {
    background: var(--bg-card); border: 1px solid var(--border); border-radius: 14px;
    overflow: hidden; max-width: 720px; margin: 0 auto; animation: fadeInUp 0.9s;
    box-shadow: 0 20px 60px var(--shadow), 0 0 80px var(--accent-dim);
    transition: border-color 0.3s, box-shadow 0.3s, background 0.3s;
}
.detector-widget:focus-within { border-color: var(--accent-glow); }
.widget-header { display: flex; align-items: center; gap: 0.75rem; padding: 0.75rem 1.25rem; border-bottom: 1px solid var(--border); background: var(--surface); }
.widget-dots { display: flex; gap: 5px; }
.widget-dots span { width: 10px; height: 10px; border-radius: 50%; }
.widget-dots span:nth-child(1) { background: #ff5f57; }
.widget-dots span:nth-child(2) { background: #ffbd2e; }
.widget-dots span:nth-child(3) { background: #28c840; }
.widget-label { font-family: 'JetBrains Mono', monospace; font-size: 0.78rem; color: var(--text-dim); }

.widget-tabs { margin-left: auto; display: flex; gap: 0.25rem; }
.tab-btn { background: transparent; border: 1px solid var(--border); color: var(--text-dim); padding: 0.3rem 0.9rem; border-radius: 6px; font-size: 0.78rem; font-family: inherit; font-weight: 600; cursor: pointer; transition: 0.2s; }
.tab-btn.active { background: var(--accent-dim); color: var(--accent); border-color: var(--accent); }

.widget-body { padding: 1.25rem; }
.tab-content { display: none; }
.tab-content.active { display: block; }
.widget-body textarea { width: 100%; height: 180px; background: transparent; border: none; color: var(--text); font-family: inherit; font-size: 1rem; line-height: 1.7; resize: none; outline: none; }
.widget-body textarea::placeholder { color: var(--text-dim); }
.widget-footer { display: flex; justify-content: space-between; align-items: center; padding-top: 1rem; border-top: 1px solid var(--border); }
.char-info { font-size: 0.82rem; color: var(--text-dim); font-family: 'JetBrains Mono', monospace; display: flex; gap: 0.35rem; }

/* Upload zone */
.upload-zone { border: 2px dashed var(--border); border-radius: 10px; padding: 1.5rem; text-align: center; cursor: pointer; transition: border-color 0.2s, background 0.2s; }
.upload-zone:hover, .upload-zone.drag-over { border-color: var(--accent); background: var(--accent-dim); }
.upload-zone p { color: var(--text-secondary); font-size: 0.95rem; margin-bottom: 0.35rem; }
.upload-formats { font-size: 0.78rem; color: var(--text-dim); }

/* Scan demos - 3 animated cards */
.scan-demos { display: flex; gap: 1.25rem; justify-content: center; margin-bottom: 1.25rem; }
.scan-demo { display: flex; flex-direction: column; align-items: center; gap: 0.5rem; }
.scan-demo span { font-size: 0.72rem; color: var(--text-dim); text-transform: uppercase; letter-spacing: 1px; font-weight: 600; }
.scan-card {
    width: 80px; height: 80px; border-radius: 12px; background: var(--surface);
    border: 1px solid var(--border); display: flex; align-items: center; justify-content: center;
    position: relative; overflow: hidden; transition: border-color 0.3s, transform 0.3s;
}
.upload-zone:hover .scan-card { border-color: var(--accent); transform: translateY(-2px); }
.scan-svg { width: 44px; height: 44px; color: var(--text-dim); transition: color 0.3s; }
.upload-zone:hover .scan-svg { color: var(--accent); }

/* Face scan — green line moving top to bottom */
.scan-line {
    position: absolute; left: 10%; right: 10%; height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    box-shadow: 0 0 10px var(--accent), 0 0 30px var(--accent-dim);
    animation: scanMove 2.5s ease-in-out infinite;
    opacity: 0.8;
}
@keyframes scanMove {
    0%, 100% { top: 12%; }
    50% { top: 82%; }
}

/* Doc magnify — orbiting magnifying glass */
.scan-magnify {
    position: absolute; width: 22px; height: 22px; color: var(--accent);
    animation: magnifyOrbit 3s ease-in-out infinite;
    filter: drop-shadow(0 0 4px var(--accent-glow));
}
@keyframes magnifyOrbit {
    0% { bottom: 8px; right: 8px; transform: scale(1); }
    25% { bottom: 20px; right: 16px; transform: scale(1.15); }
    50% { bottom: 32px; right: 8px; transform: scale(1); }
    75% { bottom: 20px; right: 2px; transform: scale(1.15); }
    100% { bottom: 8px; right: 8px; transform: scale(1); }
}

/* Code scan — pulsing rings */
.scan-pulse {
    position: absolute; width: 30px; height: 30px; border-radius: 50%;
    border: 2px solid var(--accent); opacity: 0;
    animation: scanPulse 2s ease-out infinite;
}
.scan-pulse::before {
    content: ''; position: absolute; inset: -8px; border-radius: 50%;
    border: 1.5px solid var(--accent); opacity: 0;
    animation: scanPulse 2s ease-out 0.4s infinite;
}
@keyframes scanPulse {
    0% { transform: scale(0.6); opacity: 0.7; }
    100% { transform: scale(2.2); opacity: 0; }
}

.upload-preview { display: flex; align-items: center; gap: 0.5rem; margin-top: 1rem; padding: 0.6rem 1rem; background: var(--accent-dim); border-radius: 8px; font-size: 0.88rem; color: var(--accent); font-weight: 600; }
.upload-remove { background: none; border: none; color: var(--danger); cursor: pointer; font-size: 1.1rem; margin-left: auto; }

.btn-analyze { display: inline-flex; align-items: center; gap: 0.5rem; background: linear-gradient(135deg, var(--accent), #16a085); color: #fff; border: none; padding: 0.7rem 1.8rem; border-radius: 50px; font-family: inherit; font-size: 0.92rem; font-weight: 700; cursor: pointer; transition: 0.25s; box-shadow: 0 4px 20px var(--accent-dim); }
[data-theme="dark"] .btn-analyze { color: #08090d; }
.btn-analyze:hover:not(:disabled) { transform: translateY(-1px); box-shadow: 0 8px 30px var(--accent-glow); }
.btn-analyze:disabled { opacity: 0.5; cursor: wait; }

.widget-view { padding: 2.5rem 1.5rem; min-height: 280px; display: flex; align-items: center; justify-content: center; }
.loading-state { display: flex; flex-direction: column; align-items: center; gap: 1rem; color: var(--text-secondary); }
.loader-ring { width: 56px; height: 56px; border: 3px solid var(--border); border-top-color: var(--accent); border-radius: 50%; animation: spin 0.8s linear infinite; }

.result-content { display: flex; flex-direction: column; align-items: center; text-align: center; animation: fadeIn 0.4s; width: 100%; }
.score-ring { position: relative; width: 150px; height: 150px; margin-bottom: 1.5rem; }
.score-ring svg { width: 100%; height: 100%; }
.score-inner { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.score-number { font-size: 2.6rem; font-weight: 700; letter-spacing: -0.03em; line-height: 1; }
.score-label { font-size: 0.72rem; color: var(--text-dim); text-transform: uppercase; letter-spacing: 1.5px; margin-top: 0.3rem; }
.verdict-badge { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.5rem 1.25rem; border-radius: 50px; background: var(--surface); border: 1px solid var(--border); font-weight: 600; font-size: 0.92rem; margin-bottom: 1rem; }
.verdict-dot { width: 8px; height: 8px; border-radius: 50%; }
.result-explanation { color: var(--text-secondary); font-size: 0.9rem; max-width: 480px; line-height: 1.6; margin-bottom: 1.5rem; }

.btn-retry { background: transparent; border: 1px solid var(--border); color: var(--text-secondary); padding: 0.65rem 1.6rem; border-radius: 50px; font-family: inherit; font-size: 0.9rem; font-weight: 600; cursor: pointer; transition: 0.2s; }
.btn-retry:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-dim); }

/* Paywall */
.paywall-content { text-align: center; animation: fadeIn 0.4s; }
.paywall-icon { font-size: 3rem; margin-bottom: 1rem; }
.paywall-content h3 { font-size: 1.3rem; margin-bottom: 0.5rem; }
.paywall-content p { color: var(--text-secondary); margin-bottom: 1.5rem; max-width: 400px; }

/* Trust */
.trust-row { display: flex; align-items: center; justify-content: center; gap: 2rem; margin-top: 3rem; animation: fadeInUp 1s; flex-wrap: wrap; }
.trust-item { display: flex; flex-direction: column; align-items: center; gap: 0.15rem; }
.trust-item strong { font-size: 1.5rem; font-weight: 700; }
.trust-item span { font-size: 0.75rem; color: var(--text-dim); text-transform: uppercase; letter-spacing: 1px; }
.trust-divider { width: 1px; height: 36px; background: var(--border); }

/* ===== SECTIONS ===== */
.content-section { padding: 5rem 0; }
.content-section.alt-bg { background: var(--bg-alt); }
.section-title { font-size: 1.8rem; font-weight: 700; text-align: center; margin-bottom: 1rem; letter-spacing: -0.02em; }
.section-lead { text-align: center; color: var(--text-secondary); font-size: 1.05rem; max-width: 660px; margin: 0 auto 3rem; line-height: 1.65; }

/* Info/Tech cards */
.info-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.25rem; }
.info-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: 14px; padding: 2rem; transition: transform 0.3s, border-color 0.3s; }
.info-card:hover { transform: translateY(-3px); border-color: var(--border-hover); }
.info-num { font-family: 'JetBrains Mono', monospace; font-size: 2rem; font-weight: 700; color: var(--accent); opacity: 0.6; margin-bottom: 0.75rem; }
.info-card h3 { font-size: 1.05rem; margin-bottom: 0.75rem; }
.info-card p { color: var(--text-secondary); font-size: 0.88rem; line-height: 1.6; }

/* Features */
.features-section { padding: 5rem 0; }
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.25rem; }
.feature-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: 14px; padding: 1.75rem; transition: transform 0.3s, border-color 0.3s; }
.feature-card:hover { transform: translateY(-4px); border-color: var(--border-hover); }
.feature-icon { font-size: 1.8rem; margin-bottom: 1rem; }
.feature-card h3 { font-size: 1rem; font-weight: 600; margin-bottom: 0.5rem; }
.feature-card p { color: var(--text-secondary); font-size: 0.88rem; line-height: 1.6; }

/* ===== PRICING ===== */
.pricing-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.5rem; max-width: 900px; margin: 0 auto; }
.pricing-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: 14px; padding: 2.5rem 2rem; text-align: center; position: relative; transition: transform 0.3s; }
.pricing-card:hover { transform: translateY(-4px); }
.pricing-card.featured { border-color: var(--accent); box-shadow: 0 0 40px var(--accent-dim); }
.pricing-popular { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); background: var(--accent); color: #08090d; font-size: 0.72rem; font-weight: 700; padding: 0.25rem 1rem; border-radius: 50px; text-transform: uppercase; letter-spacing: 0.5px; }
.pricing-tag { font-size: 0.85rem; font-weight: 700; color: var(--text-dim); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 1rem; }
.pricing-price { margin-bottom: 1.5rem; }
.price-amount { font-size: 2.8rem; font-weight: 700; letter-spacing: -0.03em; }
.price-cents { font-size: 1.4rem; }
.price-period { font-size: 0.9rem; color: var(--text-dim); }
.pricing-features { list-style: none; text-align: left; margin-bottom: 2rem; }
.pricing-features li { padding: 0.5rem 0 0.5rem 1.5rem; position: relative; color: var(--text-secondary); font-size: 0.9rem; }
.pricing-features li::before { content: '✓'; position: absolute; left: 0; color: var(--accent); font-weight: 700; }
.pricing-features li.disabled { color: var(--text-dim); }
.pricing-features li.disabled::before { content: '—'; color: var(--text-dim); }
.btn-plan { width: 100%; padding: 0.75rem; border-radius: 50px; font-family: inherit; font-size: 0.92rem; font-weight: 600; cursor: pointer; border: 1px solid var(--border); background: transparent; color: var(--text-secondary); transition: 0.2s; }
.btn-plan-primary { background: linear-gradient(135deg, var(--accent), #16a085); color: #fff; border: none; box-shadow: 0 4px 20px var(--accent-dim); }
[data-theme="dark"] .btn-plan-primary { color: #08090d; }
.btn-plan-primary:hover { transform: translateY(-1px); box-shadow: 0 8px 30px var(--accent-glow); }

/* ===== REFERRAL ===== */
.referral-box { display: flex; gap: 3rem; align-items: center; flex-wrap: wrap; }
.referral-info { flex: 1; min-width: 280px; }
.referral-info h2 { font-size: 1.5rem; margin-bottom: 0.75rem; }
.referral-info p { color: var(--text-secondary); font-size: 0.95rem; line-height: 1.6; margin-bottom: 1.25rem; }
.referral-steps { display: flex; flex-wrap: wrap; gap: 1rem; }
.referral-steps span { background: var(--surface); border: 1px solid var(--border); padding: 0.4rem 1rem; border-radius: 50px; font-size: 0.85rem; color: var(--text-secondary); }
.referral-demo { flex: 1; min-width: 260px; }
.ref-link-box { display: flex; align-items: center; gap: 0.75rem; background: var(--bg-card); border: 1px solid var(--border); border-radius: 10px; padding: 0.85rem 1.25rem; }
.ref-url { font-family: 'JetBrains Mono', monospace; font-size: 0.88rem; color: var(--text-secondary); }
.btn-copy { background: var(--accent-dim); color: var(--accent); border: 1px solid var(--accent); padding: 0.35rem 0.9rem; border-radius: 6px; font-size: 0.8rem; font-weight: 600; cursor: pointer; margin-left: auto; }
.ref-note { font-size: 0.8rem; color: var(--text-dim); margin-top: 0.75rem; }

/* ===== API DOCS ===== */
.api-demo { max-width: 700px; margin: 0 auto; }
.api-example { margin-bottom: 1.5rem; }
.code-header { font-family: 'JetBrains Mono', monospace; font-size: 0.78rem; color: var(--text-dim); padding: 0.5rem 1rem; background: var(--surface); border: 1px solid var(--border); border-bottom: none; border-radius: 10px 10px 0 0; }
.code-block { background: var(--code-bg); border: 1px solid var(--border); border-radius: 0 0 10px 10px; padding: 1.25rem; overflow-x: auto; margin: 0; }
.code-block code { font-family: 'JetBrains Mono', monospace; font-size: 0.82rem; color: var(--accent); line-height: 1.6; white-space: pre; }
.api-features-list { display: flex; flex-direction: column; gap: 0.5rem; margin-top: 1.5rem; }
.api-feat { padding: 0.65rem 1rem; background: var(--surface); border: 1px solid var(--border); border-radius: 8px; font-size: 0.88rem; color: var(--text-secondary); }
.api-feat strong { color: var(--text); font-family: 'JetBrains Mono', monospace; font-size: 0.82rem; }

/* ===== COMPARISON ===== */
.table-wrapper { overflow-x: auto; border-radius: 14px; border: 1px solid var(--border); }
.compare-table { width: 100%; border-collapse: collapse; font-size: 0.88rem; background: var(--bg-card); }
.compare-table th, .compare-table td { padding: 0.85rem 1.1rem; text-align: left; border-bottom: 1px solid var(--border); }
.compare-table th { font-weight: 600; background: var(--surface); font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.5px; }
.compare-table td { color: var(--text-secondary); }
.compare-table .highlight-col { background: var(--accent-dim); color: var(--text); }
.compare-table thead .highlight-col { color: var(--accent); }
.compare-table tbody tr:last-child td { border-bottom: none; }
.check { color: var(--safe); font-weight: 600; }
.partial { color: var(--warn); }
.cross { color: var(--danger); }

/* ===== USE CASES ===== */
.use-cases-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.25rem; }
.use-case-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: 14px; padding: 2rem; transition: transform 0.3s; }
.use-case-card:hover { transform: translateY(-3px); }
.use-case-icon { font-size: 2rem; margin-bottom: 1rem; }
.use-case-card h3 { font-size: 1.05rem; margin-bottom: 0.5rem; }
.use-case-card p { color: var(--text-secondary); font-size: 0.88rem; line-height: 1.6; }

/* ===== FAQ ===== */
.faq-section { padding: 4rem 0 5rem; }
.faq-list { max-width: 680px; margin: 0 auto; display: flex; flex-direction: column; gap: 0.75rem; }
.faq-item { background: var(--bg-card); border: 1px solid var(--border); border-radius: 8px; overflow: hidden; transition: border-color 0.2s; }
.faq-item[open] { border-color: var(--border-hover); }
.faq-item summary { padding: 1rem 1.5rem; font-weight: 600; font-size: 0.95rem; cursor: pointer; list-style: none; display: flex; justify-content: space-between; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; font-size: 1.3rem; color: var(--text-dim); font-weight: 300; }
.faq-item[open] summary::after { content: '−'; color: var(--accent); }
.faq-item p { padding: 0 1.5rem 1.25rem; color: var(--text-secondary); font-size: 0.9rem; line-height: 1.65; }

/* ===== CTA ===== */
.cta-section { padding: 3rem 0 5rem; }
.cta-box { background: linear-gradient(135deg, var(--accent-dim), rgba(99,102,241,0.06)); border: 1px solid var(--border); border-radius: 14px; padding: 3.5rem 2rem; text-align: center; }
.cta-box h2 { font-size: 1.5rem; margin-bottom: 0.75rem; }
.cta-box p { color: var(--text-secondary); margin-bottom: 1.5rem; }
.btn-cta { display: inline-flex; align-items: center; gap: 0.5rem; background: linear-gradient(135deg, var(--accent), #16a085); color: #fff; padding: 0.75rem 2rem; border-radius: 50px; font-weight: 700; font-size: 0.95rem; text-decoration: none; transition: 0.25s; box-shadow: 0 4px 20px var(--accent-dim); }
[data-theme="dark"] .btn-cta { color: #08090d; }
.btn-cta:hover { transform: translateY(-2px); box-shadow: 0 8px 30px var(--accent-glow); text-decoration: none; }

/* ===== FOOTER ===== */
.site-footer { border-top: 1px solid var(--border); padding: 3rem 0 2rem; margin-top: 2rem; }
.footer-top { display: flex; justify-content: space-between; gap: 3rem; margin-bottom: 3rem; flex-wrap: wrap; }
.footer-brand { max-width: 260px; font-weight: 700; display: flex; flex-direction: column; gap: 0.5rem; }
.footer-tagline { font-size: 0.85rem; color: var(--text-dim); font-weight: 400; }
.footer-columns { display: flex; gap: 3rem; flex-wrap: wrap; }
.footer-col { display: flex; flex-direction: column; gap: 0.5rem; }
.footer-col h4 { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 1px; color: var(--text-dim); margin-bottom: 0.25rem; }
.footer-col a { font-size: 0.85rem; color: var(--text-secondary); text-decoration: none; }
.footer-col a:hover { color: var(--text); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; border-top: 1px solid var(--border); padding-top: 1.5rem; flex-wrap: wrap; gap: 1rem; }
.footer-bottom p { font-size: 0.82rem; color: var(--text-dim); }
.footer-links { display: flex; gap: 1.5rem; }
.footer-links a { font-size: 0.82rem; color: var(--text-dim); }

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeInDown { from { opacity: 0; transform: translateY(-12px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pulse-dot { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .hero { padding: 3.5rem 0 2rem; }
    .header-nav { display: none; flex-direction: column; position: absolute; top: 64px; left: 0; right: 0; background: var(--header-bg); backdrop-filter: blur(20px); border-bottom: 1px solid var(--border); padding: 1rem; gap: 0.75rem; }
    .header-nav.open { display: flex; }
    .mobile-menu-btn { display: flex; }
    .features-grid, .info-cards, .use-cases-grid { grid-template-columns: 1fr; }
    .scan-demos { gap: 0.75rem; }
    .scan-card { width: 65px; height: 65px; }
    .scan-svg { width: 34px; height: 34px; }
    .scan-demo span { font-size: 0.65rem; }
    .pricing-grid { grid-template-columns: 1fr; max-width: 340px; }
    .referral-box { flex-direction: column; }
    .trust-row { gap: 1rem; }
    .section-title { font-size: 1.4rem; }
    .compare-table { font-size: 0.78rem; }
    .compare-table th, .compare-table td { padding: 0.6rem 0.7rem; }
    .footer-top { flex-direction: column; }
    .footer-bottom { flex-direction: column; text-align: center; }
}
@media (max-width: 480px) {
    .container { padding: 0 1rem; }
    .widget-footer { flex-direction: column; gap: 0.75rem; }
    .btn-analyze { width: 100%; justify-content: center; }
    .widget-tabs { flex-wrap: wrap; }
}

/* ================================================
   AUTH & PAYMENT UI — AI DETect  
   ================================================ */

/* Logo accent "ect" */
.logo-accent { color: var(--accent); font-weight: 300; }
.logo strong { font-weight: 800; }

/* Sign-in button */
.btn-signin {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 8px 18px; border-radius: 999px;
    background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.15);
    color: var(--text); font-size: 0.9rem; font-weight: 500;
    text-decoration: none; transition: all 0.3s ease; cursor: pointer;
}
.btn-signin:hover { background: rgba(255,255,255,0.14); border-color: rgba(255,255,255,0.3); }
[data-theme="light"] .btn-signin { background: rgba(0,0,0,0.04); border-color: rgba(0,0,0,0.12); color: var(--text); }
[data-theme="light"] .btn-signin:hover { background: rgba(0,0,0,0.08); }

/* User menu */
.user-menu { position: relative; }
.user-avatar-btn {
    display: flex; align-items: center; gap: 8px;
    background: none; border: none; cursor: pointer; padding: 4px;
    border-radius: 999px; transition: background 0.2s;
}
.user-avatar-btn:hover { background: rgba(255,255,255,0.08); }
.user-avatar-img { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; border: 2px solid var(--accent); }
.user-plan-badge {
    font-size: 0.65rem; font-weight: 700; letter-spacing: 0.05em;
    padding: 2px 8px; border-radius: 999px;
    background: var(--accent); color: #000;
}

.user-dropdown {
    position: absolute; right: 0; top: calc(100% + 8px); z-index: 100;
    min-width: 260px; padding: 16px;
    background: var(--surface); border: 1px solid var(--border);
    border-radius: 12px; box-shadow: 0 12px 40px rgba(0,0,0,0.3);
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: all 0.2s ease;
}
.user-dropdown.open { opacity: 1; visibility: visible; transform: translateY(0); }

.user-dropdown-header { margin-bottom: 12px; padding-bottom: 12px; border-bottom: 1px solid var(--border); }
.user-dropdown-header strong { display: block; color: var(--text); font-size: 0.95rem; }
.user-dropdown-plan { font-size: 0.8rem; color: var(--accent); }

.user-dropdown-item {
    display: flex; align-items: center; gap: 8px; padding: 6px 0;
    font-size: 0.85rem; color: var(--text-dim);
}
.user-dropdown-item code { font-size: 0.78rem; background: rgba(255,255,255,0.06); padding: 2px 8px; border-radius: 6px; }
.btn-copy-small {
    font-size: 0.7rem; padding: 2px 10px; border: 1px solid var(--border);
    background: transparent; color: var(--accent); border-radius: 6px; cursor: pointer;
    transition: all 0.2s;
}
.btn-copy-small:hover { background: var(--accent); color: #000; }

.user-dropdown-logout {
    display: block; text-align: center; margin-top: 12px; padding: 8px;
    border-radius: 8px; background: rgba(255,60,60,0.1); color: #f66;
    text-decoration: none; font-size: 0.85rem; transition: background 0.2s;
}
.user-dropdown-logout:hover { background: rgba(255,60,60,0.2); }

/* Subscribe buttons */
.btn-subscribe {
    cursor: pointer; font-family: inherit;
}
.btn-subscribe:disabled {
    opacity: 0.6; cursor: wait;
}

/* Payment success banner */
.payment-success-notice {
    position: fixed; top: 0; left: 0; right: 0; z-index: 10000;
    padding: 14px 24px; text-align: center;
    background: linear-gradient(135deg, #00c853, #00e676);
    color: #003300; font-weight: 600; font-size: 0.95rem;
    animation: slideDown 0.4s ease;
}
@keyframes slideDown { from { transform: translateY(-100%); } to { transform: translateY(0); } }

/* Mobile nav fix */
@media (max-width: 768px) {
    .btn-signin { padding: 6px 14px; font-size: 0.85rem; }
    .user-menu { order: -1; }
    .user-dropdown { right: -20px; min-width: 240px; }
}
