@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=DM+Serif+Display&family=JetBrains+Mono:wght@400;500&display=swap');

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --ink: #0f1419;
    --ink-soft: #536471;
    --ink-muted: #8899a6;
    --surface: #f7f5f2;
    --surface-raised: #ffffff;
    --accent: #e85d04;
    --accent-soft: #fef0e6;
    --danger: #c1121f;
    --danger-soft: #fde8ea;
    --warn: #e09f3e;
    --warn-soft: #fdf6e9;
    --safe: #2d6a4f;
    --safe-soft: #eaf5ef;
    --border: #e8e4df;
    --radius: 12px;
}

html { scroll-behavior: smooth; }

body {
    font-family: 'Space Grotesk', sans-serif;
    color: var(--ink);
    background: var(--surface);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

.container { max-width: 860px; margin: 0 auto; padding: 0 28px; }

/* ─── NAV ─── */
nav {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(247, 245, 242, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
    padding: 18px 0;
}
nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
nav .logo {
    font-family: 'DM Serif Display', serif;
    font-size: 22px;
    color: var(--ink);
    text-decoration: none;
    letter-spacing: -0.5px;
}
nav .logo span {
    color: var(--accent);
}
nav .links { display: flex; gap: 28px; }
nav .links a {
    text-decoration: none;
    color: var(--ink-soft);
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.3px;
    text-transform: uppercase;
    transition: color 0.2s;
}
nav .links a:hover { color: var(--accent); }

/* ─── HERO ─── */
.hero {
    padding: 100px 0 48px;
    max-width: 680px;
}
.hero .badge {
    display: inline-block;
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--accent);
    background: var(--accent-soft);
    padding: 6px 14px;
    border-radius: 100px;
    margin-bottom: 28px;
}
.hero h1 {
    font-family: 'DM Serif Display', serif;
    font-size: 52px;
    font-weight: 400;
    line-height: 1.12;
    letter-spacing: -1px;
    margin-bottom: 20px;
    color: var(--ink);
}
.hero h1 em {
    font-style: normal;
    color: var(--accent);
    position: relative;
}
.hero h1 em::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--accent);
    opacity: 0.3;
    border-radius: 2px;
}
.hero p {
    font-size: 18px;
    color: var(--ink-soft);
    max-width: 520px;
    line-height: 1.7;
}

/* ─── UPLOAD AREA ─── */
.upload-area {
    background: var(--surface-raised);
    border: 2px dashed var(--border);
    border-radius: var(--radius);
    padding: 56px 40px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    margin: 40px 0 28px;
    position: relative;
    overflow: hidden;
}
.upload-area::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 50%, var(--accent-soft), transparent 70%);
    opacity: 0;
    transition: opacity 0.4s;
}
.upload-area:hover::before, .upload-area.dragover::before { opacity: 1; }
.upload-area:hover, .upload-area.dragover {
    border-color: var(--accent);
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(232, 93, 4, 0.08);
}
.upload-area .icon {
    font-size: 40px;
    margin-bottom: 16px;
    position: relative;
    z-index: 1;
}
.upload-area p {
    color: var(--ink-muted);
    font-size: 15px;
    position: relative;
    z-index: 1;
}
.upload-area .filename {
    margin-top: 14px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 13px;
    font-weight: 500;
    color: var(--accent);
    position: relative;
    z-index: 1;
}

/* ─── BUTTON ─── */
.btn {
    display: inline-block;
    background: var(--ink);
    color: #fff;
    border: none;
    padding: 16px 44px;
    border-radius: var(--radius);
    font-family: 'Space Grotesk', sans-serif;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.3px;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}
.btn:hover {
    background: var(--accent);
    transform: translateY(-1px);
    box-shadow: 0 4px 20px rgba(232, 93, 4, 0.25);
}
.btn:disabled {
    background: var(--border);
    color: var(--ink-muted);
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}
.btn-outline {
    background: transparent;
    color: var(--ink);
    border: 2px solid var(--border);
}
.btn-outline:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: var(--accent-soft);
    box-shadow: none;
}

/* ─── LOADING ─── */
.loading {
    display: none;
    text-align: center;
    padding: 48px 0;
}
.loading.active { display: block; }
.loading p {
    color: var(--ink-soft);
    font-size: 15px;
    margin-top: 20px;
}
.scanner {
    width: 48px;
    height: 48px;
    border: 3px solid var(--border);
    border-radius: 50%;
    position: relative;
    margin: 0 auto;
    animation: pulse-ring 2s ease-in-out infinite;
}
.scanner::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 16px;
    height: 16px;
    margin: -8px 0 0 -8px;
    background: var(--accent);
    border-radius: 50%;
    animation: pulse-dot 2s ease-in-out infinite;
}
@keyframes pulse-ring {
    0%, 100% { border-color: var(--border); transform: scale(1); }
    50% { border-color: var(--accent); transform: scale(1.08); }
}
@keyframes pulse-dot {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(0.7); opacity: 0.6; }
}

/* ─── ERROR ─── */
.error-msg {
    background: var(--danger-soft);
    color: var(--danger);
    padding: 16px 20px;
    border-radius: var(--radius);
    margin-top: 20px;
    display: none;
    font-size: 14px;
    font-weight: 500;
    border-left: 3px solid var(--danger);
}

/* ─── REPORT ─── */
.report { padding: 60px 0 100px; }
.report-header {
    margin-bottom: 40px;
}
.report-header h1 {
    font-family: 'DM Serif Display', serif;
    font-size: 32px;
    font-weight: 400;
    margin-bottom: 8px;
}
.report-header .meta {
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
    color: var(--ink-muted);
    letter-spacing: 0.5px;
}

.verdict {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 24px;
    border-radius: var(--radius);
    font-family: 'JetBrains Mono', monospace;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 32px;
}
.verdict::before {
    content: '';
    width: 10px;
    height: 10px;
    border-radius: 50%;
}
.verdict.SAFE { background: var(--safe-soft); color: var(--safe); }
.verdict.SAFE::before { background: var(--safe); }
.verdict.RISKY { background: var(--warn-soft); color: #92400e; }
.verdict.RISKY::before { background: var(--warn); }
.verdict.DANGEROUS { background: var(--danger-soft); color: var(--danger); }
.verdict.DANGEROUS::before { background: var(--danger); }

.summary-box {
    background: var(--surface-raised);
    border-radius: var(--radius);
    padding: 28px 32px;
    margin-bottom: 40px;
    border: 1px solid var(--border);
    position: relative;
}
.summary-box::before {
    content: 'SUMMARY';
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 2px;
    color: var(--ink-muted);
    position: absolute;
    top: -8px;
    left: 24px;
    background: var(--surface);
    padding: 0 8px;
}
.summary-box p {
    font-size: 16px;
    line-height: 1.75;
    color: var(--ink-soft);
}

.section-label {
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--ink-muted);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
}
.section-label::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border);
}

.risk-card {
    background: var(--surface-raised);
    border-radius: var(--radius);
    padding: 24px 28px;
    margin-bottom: 12px;
    border: 1px solid var(--border);
    transition: transform 0.2s, box-shadow 0.2s;
    position: relative;
    padding-left: 36px;
}
.risk-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    border-radius: var(--radius) 0 0 var(--radius);
}
.risk-card:hover {
    transform: translateX(4px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.04);
}
.risk-card.high::before { background: var(--danger); }
.risk-card.medium::before { background: var(--warn); }
.risk-card.low::before { background: var(--safe); }
.risk-card h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 6px;
}
.risk-card .severity {
    display: inline-block;
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    padding: 3px 10px;
    border-radius: 100px;
    margin-bottom: 10px;
}
.severity.high { background: var(--danger-soft); color: var(--danger); }
.severity.medium { background: var(--warn-soft); color: #92400e; }
.severity.low { background: var(--safe-soft); color: var(--safe); }
.risk-card p { color: var(--ink-soft); font-size: 14px; line-height: 1.7; }
.financial-impact {
    margin-top: 10px;
    padding: 10px 14px;
    background: #fef6e9;
    border-radius: 8px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
    line-height: 1.6;
    color: #92400e;
    border-left: 3px solid var(--warn);
}

.fixes { margin-top: 44px; }
.fixes h2 { display: none; }
.fixes ul { list-style: none; }
.fixes li {
    background: var(--safe-soft);
    padding: 16px 20px 16px 44px;
    border-radius: var(--radius);
    margin-bottom: 8px;
    font-size: 14px;
    color: var(--safe);
    line-height: 1.6;
    position: relative;
    border: 1px solid rgba(45, 106, 79, 0.1);
}
.fixes li::before {
    content: '\2192';
    position: absolute;
    left: 18px;
    font-weight: 700;
    font-size: 16px;
}

/* ─── PRICING ─── */
.pricing {
    padding: 80px 0;
}
.pricing-header {
    text-align: center;
    margin-bottom: 56px;
}
.pricing-header h1 {
    font-family: 'DM Serif Display', serif;
    font-size: 40px;
    font-weight: 400;
    margin-bottom: 12px;
}
.pricing-header p {
    color: var(--ink-soft);
    font-size: 16px;
}
.plans {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    align-items: start;
}
.plan {
    background: var(--surface-raised);
    border-radius: var(--radius);
    padding: 36px 28px;
    border: 1px solid var(--border);
    transition: all 0.3s;
    position: relative;
}
.plan:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.06);
}
.plan.featured {
    border-color: var(--accent);
    box-shadow: 0 0 0 1px var(--accent);
}
.plan.featured::before {
    content: 'POPULAR';
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 1.5px;
    color: #fff;
    background: var(--accent);
    padding: 3px 14px;
    border-radius: 100px;
}
.plan h3 {
    font-size: 16px;
    font-weight: 600;
    color: var(--ink-soft);
    margin-bottom: 16px;
}
.plan .price {
    font-family: 'DM Serif Display', serif;
    font-size: 44px;
    color: var(--ink);
    line-height: 1;
    margin-bottom: 4px;
}
.plan .price small {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 14px;
    color: var(--ink-muted);
    font-weight: 400;
}
.plan .desc {
    color: var(--ink-muted);
    font-size: 14px;
    margin: 8px 0 28px;
    line-height: 1.5;
}

/* ─── PAYWALL ─── */
.paywall {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(15, 20, 25, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 100;
    justify-content: center;
    align-items: center;
}
.paywall.active { display: flex; }
.paywall-box {
    background: var(--surface-raised);
    border-radius: var(--radius);
    padding: 52px 48px;
    text-align: center;
    max-width: 440px;
    box-shadow: 0 24px 80px rgba(0,0,0,0.15);
}
.paywall-box h2 {
    font-family: 'DM Serif Display', serif;
    font-size: 28px;
    font-weight: 400;
    margin-bottom: 12px;
}
.paywall-box p {
    color: var(--ink-soft);
    margin-bottom: 28px;
    font-size: 15px;
    line-height: 1.7;
}

/* ─── LEGAL ─── */
.legal {
    padding: 80px 0;
    max-width: 640px;
}
.legal h1 {
    font-family: 'DM Serif Display', serif;
    font-size: 32px;
    font-weight: 400;
    margin-bottom: 8px;
}
.legal .updated {
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
    color: var(--ink-muted);
    letter-spacing: 0.5px;
    margin-bottom: 36px;
    display: block;
}
.legal p, .legal li {
    color: var(--ink-soft);
    margin-bottom: 16px;
    font-size: 15px;
    line-height: 1.8;
}

/* ─── FOOTER ─── */
footer {
    padding: 36px 0;
    border-top: 1px solid var(--border);
}
footer .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
footer .copy {
    font-size: 13px;
    color: var(--ink-muted);
}
footer .footer-links a {
    color: var(--ink-muted);
    text-decoration: none;
    font-size: 13px;
    margin-left: 24px;
    transition: color 0.2s;
}
footer .footer-links a:hover { color: var(--accent); }

/* ─── REPORT DISCLAIMER ─── */
.report-disclaimer {
    margin-top: 40px;
    padding: 16px;
    font-size: 12px;
    color: var(--ink-muted);
    text-align: center;
    border-top: 1px solid var(--border);
}

/* ─── UPLOAD DISCLAIMER ─── */
.upload-disclaimer {
    text-align: center;
    margin-top: 16px;
    font-size: 12px;
    color: var(--ink-muted);
}

/* ─── REVIEW PRIORITY BADGE ─── */
.review-priority {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 24px;
    border-radius: var(--radius);
    font-family: 'JetBrains Mono', monospace;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}
.review-priority::before {
    content: '';
    width: 10px;
    height: 10px;
    border-radius: 50%;
}
.review-priority.SAFE { background: var(--safe-soft); color: var(--safe); }
.review-priority.SAFE::before { background: var(--safe); }
.review-priority.RISKY { background: var(--warn-soft); color: #92400e; }
.review-priority.RISKY::before { background: var(--warn); }
.review-priority.DANGEROUS { background: var(--danger-soft); color: var(--danger); }
.review-priority.DANGEROUS::before { background: var(--danger); }

/* ─── PRICING FEATURES ─── */
.pricing-features {
    display: flex;
    justify-content: center;
    gap: 24px;
    flex-wrap: wrap;
    margin-bottom: 40px;
}
.pricing-features span {
    font-size: 13px;
    color: var(--ink-soft);
    padding: 6px 14px;
    background: var(--surface-raised);
    border: 1px solid var(--border);
    border-radius: 100px;
}

/* ─── FREE NOTE ─── */
.free-note {
    margin-top: 12px;
    font-size: 13px;
    color: var(--ink-muted);
    font-weight: 500;
}

/* ─── UPLOAD AREA COPY ─── */
.upload-area .upload-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--ink);
    margin-bottom: 4px;
}
.upload-area .upload-hint {
    font-size: 13px;
    color: var(--ink-muted);
}

/* ─── TRUST STRIP ─── */
.trust-strip {
    display: flex;
    justify-content: center;
    gap: 28px;
    flex-wrap: wrap;
    padding: 28px 0 0;
    margin-top: 20px;
}
.trust-strip span {
    font-size: 12px;
    color: var(--ink-muted);
    letter-spacing: 0.3px;
}

/* ─── HOW IT WORKS ─── */
.how-it-works {
    padding: 60px 0 40px;
}
.steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
.step {
    background: var(--surface-raised);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
}
.step-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--ink);
    color: #fff;
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 12px;
}
.step p {
    font-size: 14px;
    color: var(--ink-soft);
    line-height: 1.6;
}

/* ─── EXAMPLE REPORT ─── */
.example-report {
    padding: 0 0 40px;
}
.example-card {
    background: var(--surface-raised);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px;
}
.example-summary {
    margin-top: 20px;
    padding: 16px;
    background: var(--surface);
    border-radius: 8px;
    font-size: 14px;
    color: var(--ink-soft);
    line-height: 1.7;
    font-style: italic;
}

/* ─── WHY USE ─── */
.why-use {
    padding: 0 0 60px;
}
.why-list {
    list-style: none;
}
.why-list li {
    padding: 12px 0 12px 28px;
    font-size: 15px;
    color: var(--ink-soft);
    position: relative;
    border-bottom: 1px solid var(--border);
}
.why-list li:last-child { border-bottom: none; }
.why-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent);
}

/* ─── PAYWALL FORM ─── */
.paywall-form {
    display: flex;
    gap: 10px;
}
.paywall-input {
    flex: 1;
    padding: 14px 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-family: 'Space Grotesk', sans-serif;
    font-size: 15px;
    outline: none;
}
.paywall-input:focus { border-color: var(--accent); }

/* ─── RESPONSIVE ─── */
@media (max-width: 640px) {
    .hero { padding: 60px 0 32px; }
    .hero h1 { font-size: 34px; }
    .plans { grid-template-columns: 1fr; }
    .steps { grid-template-columns: 1fr; }
    .upload-area { padding: 40px 20px; }
    .trust-strip { flex-direction: column; align-items: center; gap: 8px; }
    footer .container { flex-direction: column; gap: 12px; }
    .paywall-box { margin: 20px; padding: 36px 28px; }
    .paywall-form { flex-direction: column; }
}
