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

:root {
    --bg: #08090d;
    --bg-soft: #101219;
    --bg-card: #151821;
    --bg-elevated: #1b1f2b;
    --primary: #B11226;
    --primary-strong: #d61932;
    --secondary: #FF4D5E;
    --text: #f7f7f9;
    --muted: #b8becb;
    --muted-2: #8d94a5;
    --border: rgba(255, 255, 255, 0.1);
    --shadow: 0 24px 80px rgba(0, 0, 0, 0.36);
    --radius: 24px;
    --radius-sm: 14px;
    --max: 1180px;
    --space: clamp(64px, 8vw, 112px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background:
        radial-gradient(circle at 12% 8%, rgba(177, 18, 38, 0.24), transparent 28rem),
        radial-gradient(circle at 88% 18%, rgba(255, 77, 94, 0.13), transparent 30rem),
        var(--bg);
    color: var(--text);
    line-height: 1.65;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; }
p { color: var(--muted); margin: 0 0 1rem; }
h1, h2, h3 { line-height: 1.08; margin: 0 0 1rem; letter-spacing: -0.035em; }
h1, .hero-title { font-family: 'Playfair Display', Georgia, serif; font-size: clamp(3rem, 8vw, 6.8rem); }
h2 { font-size: clamp(2rem, 4vw, 3.6rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.7rem); }
strong { color: var(--text); }

.site-alert {
    padding: 0.7rem 1rem;
    text-align: center;
    background: linear-gradient(90deg, rgba(177, 18, 38, 0.92), rgba(95, 8, 20, 0.94));
    color: white;
    font-size: 0.92rem;
    border-bottom: 1px solid rgba(255,255,255,0.14);
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: var(--max);
    margin: 0 auto;
    padding: 1rem 1.25rem;
    backdrop-filter: blur(18px);
}
.site-header::before {
    content: '';
    position: fixed;
    inset: 0 0 auto 0;
    height: 86px;
    background: rgba(8, 9, 13, 0.78);
    border-bottom: 1px solid var(--border);
    z-index: -1;
}
.brand { display: inline-flex; gap: 0.8rem; align-items: center; }
.brand-mark {
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--primary), #510914);
    color: #fff;
    font-weight: 800;
    box-shadow: 0 14px 34px rgba(177,18,38,0.3);
}
.brand strong { display: block; font-size: 1rem; letter-spacing: -0.02em; }
.brand small { display: block; color: var(--muted-2); font-size: 0.76rem; margin-top: -0.1rem; }
.site-nav { display: flex; align-items: center; gap: 0.25rem; }
.site-nav a {
    color: var(--muted);
    padding: 0.65rem 0.8rem;
    border-radius: 999px;
    font-size: 0.94rem;
    transition: 0.22s ease;
}
.site-nav a:hover, .site-nav a.active { color: white; background: rgba(177, 18, 38, 0.22); }
.nav-toggle { display: none; background: transparent; border: 0; width: 44px; height: 44px; }
.nav-toggle span { display: block; height: 2px; background: white; margin: 6px; border-radius: 4px; }

.container { width: min(var(--max), calc(100% - 2rem)); margin: 0 auto; }
.section { padding: var(--space) 0; }
.section-tight { padding: 54px 0; }
.eyebrow { color: var(--secondary); text-transform: uppercase; letter-spacing: 0.14em; font-weight: 800; font-size: 0.8rem; margin-bottom: 1rem; }
.lead { font-size: clamp(1.08rem, 2vw, 1.35rem); color: #d7dbe4; max-width: 780px; }

.hero {
    position: relative;
    overflow: hidden;
    padding: clamp(76px, 10vw, 142px) 0 72px;
}
.hero::after {
    content: '';
    position: absolute;
    inset: 12% -8% auto auto;
    width: 42vw;
    height: 42vw;
    min-width: 320px;
    min-height: 320px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(177,18,38,0.32), transparent 68%);
    pointer-events: none;
}
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr); gap: clamp(2rem, 5vw, 5rem); align-items: center; position: relative; z-index: 1; }
.hero-title span { color: var(--secondary); }
.hero-copy { margin-top: 1.5rem; }
.hero-actions, .button-row { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-top: 2rem; }
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-height: 48px;
    padding: 0.85rem 1.15rem;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--primary-strong), #7d0d1d);
    color: #fff;
    font-weight: 800;
    box-shadow: 0 18px 40px rgba(177,18,38,0.28);
    transition: 0.24s ease;
    border: 1px solid rgba(255,255,255,0.12);
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 22px 52px rgba(177,18,38,0.36); }
.btn.secondary { background: rgba(255,255,255,0.06); color: #fff; box-shadow: none; }
.btn.secondary:hover { background: rgba(255,255,255,0.1); }
.text-link { color: var(--secondary); font-weight: 800; border-bottom: 1px solid rgba(255,77,94,0.45); }

.hero-panel, .card, .tool-card, .article-card, .notice, .content-panel {
    background: linear-gradient(180deg, rgba(255,255,255,0.065), rgba(255,255,255,0.032));
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}
.hero-panel { padding: 1.25rem; transform: rotate(1deg); }
.brief-card { padding: 1.4rem; border-radius: 20px; background: rgba(8, 9, 13, 0.74); border: 1px solid var(--border); }
.brief-card + .brief-card { margin-top: 1rem; }
.brief-card .tag { display: inline-flex; color: var(--secondary); font-weight: 800; margin-bottom: 0.7rem; }
.stat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.8rem; margin-top: 1rem; }
.stat { padding: 1rem; background: rgba(177,18,38,0.12); border: 1px solid rgba(255,77,94,0.16); border-radius: 16px; }
.stat strong { display: block; font-size: 1.45rem; }
.stat span { color: var(--muted-2); font-size: 0.82rem; }

.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; align-items: start; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; }
.card { padding: 1.35rem; }
.card i, .tool-card i { color: var(--secondary); width: 28px; height: 28px; margin-bottom: 1rem; }
.card:hover, .article-card:hover { border-color: rgba(255,77,94,0.34); transform: translateY(-3px); }
.card, .article-card { transition: 0.24s ease; }

.split { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.red-panel { padding: clamp(1.5rem, 4vw, 2.5rem); border-radius: var(--radius); background: linear-gradient(145deg, rgba(177,18,38,0.95), rgba(66,8,15,0.92)); box-shadow: var(--shadow); }
.red-panel p { color: rgba(255,255,255,0.84); }
.timeline { border-left: 2px solid rgba(255,77,94,0.35); padding-left: 1.4rem; }
.timeline article { position: relative; padding-bottom: 1.35rem; }
.timeline article::before { content: ''; position: absolute; left: -1.78rem; top: 0.2rem; width: 12px; height: 12px; border-radius: 50%; background: var(--secondary); box-shadow: 0 0 0 6px rgba(255,77,94,0.12); }
.timeline time { color: var(--secondary); font-weight: 800; }

.page-hero { padding: 76px 0 42px; }
.page-hero .lead { max-width: 860px; }
.breadcrumbs { color: var(--muted-2); font-size: 0.9rem; margin-bottom: 1rem; }
.breadcrumbs a { color: var(--secondary); }
.content-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 2rem; align-items: start; }
.prose { background: rgba(255,255,255,0.035); border: 1px solid var(--border); border-radius: var(--radius); padding: clamp(1.25rem, 4vw, 2.4rem); }
.prose h2 { margin-top: 2rem; font-size: clamp(1.7rem, 3vw, 2.55rem); }
.prose h2:first-child { margin-top: 0; }
.prose ul, .prose ol { color: var(--muted); padding-left: 1.25rem; }
.prose li { margin: 0.55rem 0; }
.sidebar { position: sticky; top: 116px; }
.notice { padding: 1.1rem; background: rgba(177,18,38,0.13); }
.notice h3 { font-size: 1.15rem; }
.notice + .notice { margin-top: 1rem; }

.article-card { padding: 1.2rem; min-height: 100%; display: flex; flex-direction: column; }
.article-card .meta { color: var(--secondary); font-weight: 800; font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.08em; }
.article-card h2, .article-card h3 { margin-top: 0.7rem; }
.article-card p { flex: 1; }
.pill-list { display: flex; flex-wrap: wrap; gap: 0.55rem; margin-top: 1rem; }
.pill { display: inline-flex; padding: 0.45rem 0.7rem; background: rgba(255,255,255,0.06); border: 1px solid var(--border); color: #dde1eb; border-radius: 999px; font-size: 0.88rem; }

.tool-card { padding: 1.3rem; margin-bottom: 1.25rem; }
.tool-form { display: grid; gap: 0.9rem; margin-top: 1rem; }
label { color: #eef0f5; font-weight: 700; }
input, select, textarea {
    width: 100%;
    border: 1px solid rgba(255,255,255,0.14);
    border-radius: 14px;
    background: rgba(0,0,0,0.24);
    color: var(--text);
    padding: 0.9rem 1rem;
    font: inherit;
}
textarea { min-height: 150px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 2px solid rgba(255,77,94,0.5); border-color: var(--secondary); }
.result-box { display: none; margin-top: 1rem; padding: 1rem; border-radius: 16px; background: rgba(255,77,94,0.11); border: 1px solid rgba(255,77,94,0.28); }
.result-box.show { display: block; }
.checklist { display: grid; gap: 0.65rem; margin-top: 1rem; }
.checklist label { display: flex; gap: 0.7rem; align-items: flex-start; padding: 0.75rem; background: rgba(255,255,255,0.045); border: 1px solid var(--border); border-radius: 14px; color: var(--muted); font-weight: 500; }
.checklist input { width: auto; margin-top: 0.28rem; accent-color: var(--secondary); }
.progress-bar { height: 12px; border-radius: 999px; background: rgba(255,255,255,0.08); overflow: hidden; margin-top: 1rem; }
.progress-bar span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--primary), var(--secondary)); transition: width 0.25s ease; }

.contact-card { padding: clamp(1.3rem, 4vw, 2.3rem); }
.email-box { display: inline-flex; align-items: center; gap: 0.75rem; padding: 1rem 1.1rem; border-radius: 16px; background: rgba(177,18,38,0.18); border: 1px solid rgba(255,77,94,0.25); color: white; font-weight: 800; margin: 0.6rem 0 1.5rem; word-break: break-word; }

.site-footer { margin-top: var(--space); border-top: 1px solid var(--border); background: rgba(0,0,0,0.22); padding: 54px 1rem 28px; }
.footer-grid { width: min(var(--max), 100%); margin: 0 auto; display: grid; grid-template-columns: 1.25fr 0.8fr 0.8fr 1.1fr; gap: 2rem; }
.footer-grid h2 { font-family: Inter, sans-serif; font-size: 1rem; letter-spacing: 0; }
.footer-grid a:not(.brand):not(.text-link) { display: block; color: var(--muted); margin: 0.45rem 0; }
.footer-grid a:hover { color: var(--secondary); }
.footer-disclaimer { padding: 1rem; border-radius: 18px; background: rgba(177,18,38,0.1); border: 1px solid rgba(255,77,94,0.2); }
.footer-bottom { width: min(var(--max), 100%); margin: 2rem auto 0; padding-top: 1rem; border-top: 1px solid var(--border); display: flex; justify-content: space-between; gap: 1rem; color: var(--muted-2); font-size: 0.9rem; }

.reveal-on-scroll { opacity: 0; transform: translateY(22px); transition: opacity 0.65s ease, transform 0.65s ease; }
.reveal-on-scroll.revealed { opacity: 1; transform: translateY(0); }

@media (max-width: 920px) {
    .hero-grid, .split, .content-layout { grid-template-columns: 1fr; }
    .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .sidebar { position: static; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .site-nav {
        position: absolute;
        top: 78px;
        left: 1rem;
        right: 1rem;
        display: none;
        flex-direction: column;
        align-items: stretch;
        padding: 1rem;
        background: rgba(16,18,25,0.98);
        border: 1px solid var(--border);
        border-radius: 22px;
        box-shadow: var(--shadow);
    }
    .site-nav.open { display: flex; }
    .nav-toggle { display: block; }
}

@media (max-width: 640px) {
    .grid-2, .grid-3, .stat-grid { grid-template-columns: 1fr; }
    .hero { padding-top: 54px; }
    .hero-panel { transform: none; }
    .footer-grid { grid-template-columns: 1fr; }
    .footer-bottom { flex-direction: column; }
    .brand small { display: none; }
    .site-alert { font-size: 0.78rem; }
}