:root {
    --bg: #09111d;
    --bg-soft: rgba(10, 20, 34, 0.78);
    --panel: rgba(13, 24, 41, 0.82);
    --panel-2: rgba(18, 31, 52, 0.92);
    --text: #ecf3ff;
    --muted: #b7c4da;
    --line: rgba(174, 193, 225, 0.14);
    --accent: #c7a45a;
    --accent-soft: rgba(199, 164, 90, 0.14);
    --shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
    --radius: 22px;
    --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: Inter, "Segoe UI", system-ui, sans-serif;
    background: radial-gradient(circle at top, #12243e 0%, #09111d 45%, #060c15 100%);
    color: var(--text);
    min-height: 100vh;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.container {
    width: min(calc(100% - 32px), var(--max));
    margin: 0 auto;
}

.site-backdrop { position: fixed; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }
.backdrop-orb {
    position: absolute; border-radius: 999px; filter: blur(60px); opacity: 0.25;
}
.orb-a { width: 360px; height: 360px; left: -100px; top: 120px; background: #2b65d8; }
.orb-b { width: 280px; height: 280px; right: 40px; top: 120px; background: #c7a45a; }
.backdrop-grid {
    position: absolute; inset: 0;
    background-image: linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
    background-size: 32px 32px;
    mask-image: linear-gradient(to bottom, rgba(0,0,0,0.7), transparent 75%);
}

.site-header, .site-footer, .page-shell { position: relative; z-index: 1; }
.site-header {
    position: sticky; top: 0; z-index: 20;
    backdrop-filter: blur(16px);
    background: rgba(6, 12, 21, 0.72);
    border-bottom: 1px solid var(--line);
}
.header-inner {
    display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 16px 0;
}
.brand { display: flex; align-items: center; gap: 14px; }
.brand-logo {
    width: 54px; height: 54px; object-fit: contain;
    border-radius: 16px; padding: 8px; background: rgba(255,255,255,0.04); border: 1px solid var(--line);
}
.brand-copy { display: flex; flex-direction: column; gap: 2px; }
.brand-name { font-size: 1.15rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.brand-tagline { color: var(--muted); font-size: 0.88rem; }
.main-nav { display: flex; flex-wrap: wrap; gap: 10px; }
.nav-link {
    padding: 10px 14px; border-radius: 999px; color: var(--muted); border: 1px solid transparent; transition: 0.18s ease;
}
.nav-link:hover, .nav-link.active {
    color: var(--text); background: rgba(255,255,255,0.04); border-color: var(--line);
}

.page-shell { padding: 34px 0 72px; display: grid; gap: 22px; }
.page-shell.narrow { max-width: 900px; }
.panel {
    background: linear-gradient(180deg, var(--panel), var(--panel-2));
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 28px;
}
.hero-panel {
    display: grid; grid-template-columns: 1.5fr 0.9fr; align-items: center; gap: 28px;
    padding: 38px;
}
.hero-panel.compact { grid-template-columns: 1fr; }
.hero-copy h1, .hero-panel h1 { margin: 10px 0 14px; font-size: clamp(2rem, 4vw, 3.5rem); line-height: 1.02; }
.lead { color: var(--muted); font-size: 1.08rem; line-height: 1.7; max-width: 65ch; }
.eyebrow, .section-kicker {
    color: var(--accent); text-transform: uppercase; letter-spacing: 0.16em; font-size: 0.76rem; font-weight: 700;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.button {
    display: inline-flex; align-items: center; justify-content: center; padding: 12px 18px; border-radius: 999px;
    background: linear-gradient(180deg, #dfbe76, #b58c39); color: #1c1507; font-weight: 700; min-width: 160px;
}
.button-secondary { background: rgba(255,255,255,0.05); color: var(--text); border: 1px solid var(--line); }
.hero-emblem {
    display: grid; place-items: center; min-height: 260px;
    background: radial-gradient(circle at center, rgba(199,164,90,0.14), transparent 70%);
    border: 1px solid var(--line); border-radius: 24px;
}
.hero-emblem img { width: min(230px, 60%); }

.info-grid, .card-grid, .two-col {
    display: grid; gap: 18px;
}
.info-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.methods-grid-full { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.two-col { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.info-card h2, .text-panel h2, .split-panel h2, .method-detail-card h2, .rank-panel h2 { margin: 8px 0 12px; }
.info-card p, .text-panel p, .split-panel p, .method-detail-card p, .rank-panel p, .site-footer p { color: var(--muted); line-height: 1.75; }

.split-panel {
    display: grid; grid-template-columns: 1.1fr 1fr; gap: 24px; align-items: start;
}
.principle-list, .timeline, .rank-strip, .rank-stack { display: grid; gap: 14px; }
.mini-card, .timeline-item, .rank-chip, .method-card {
    padding: 16px 18px; border-radius: 18px; background: rgba(255,255,255,0.04); border: 1px solid var(--line);
}
.mini-card span, .timeline-item span, .rank-chip span, .method-card p { color: var(--muted); display: block; line-height: 1.6; }
.rank-strip { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.rank-chip strong { display: block; margin: 8px 0 6px; }
.rank-level { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.14em; color: var(--accent); }

.section-head {
    display: flex; justify-content: space-between; align-items: end; gap: 18px; margin-bottom: 18px;
}
.text-link { color: var(--accent); font-weight: 600; }
.badge {
    display: inline-flex; align-items: center; gap: 8px; width: fit-content;
    border-radius: 999px; padding: 8px 12px; background: var(--accent-soft); color: #f6dca3; font-size: 0.82rem; border: 1px solid rgba(199,164,90,0.2);
}
.method-card h3, .rank-panel h2 { margin: 12px 0 10px; }
.method-detail-card { display: grid; gap: 16px; }
.method-summary { color: var(--text) !important; font-weight: 600; }
.method-block strong, .rank-header small { color: var(--text); }
.method-block p { margin: 8px 0 0; }
.rank-panel { display: grid; gap: 18px; }
.rank-header { display: flex; justify-content: space-between; align-items: start; gap: 14px; }
.rank-header h2 small { color: var(--muted); font-size: 0.8em; font-weight: 500; }

.site-footer {
    border-top: 1px solid var(--line);
    background: rgba(6, 12, 21, 0.82);
    backdrop-filter: blur(16px);
}
.footer-inner {
    display: flex; justify-content: space-between; gap: 24px; align-items: center; padding: 24px 0 34px;
}
.footer-inner p { margin: 6px 0 0; max-width: 60ch; }
.footer-meta { color: var(--accent); font-weight: 600; }

@media (max-width: 980px) {
    .hero-panel, .info-grid, .card-grid, .methods-grid-full, .split-panel, .two-col, .rank-strip {
        grid-template-columns: 1fr;
    }
    .header-inner, .footer-inner, .section-head {
        flex-direction: column; align-items: start;
    }
}

@media (max-width: 640px) {
    .panel { padding: 22px; border-radius: 20px; }
    .hero-panel { padding: 24px; }
    .brand-copy { display: none; }
    .main-nav { gap: 6px; }
    .nav-link { padding: 9px 12px; font-size: 0.92rem; }
}


.flow-box {
    margin: 18px 0;
    padding: 16px 18px;
    border-radius: 18px;
    border: 1px solid rgba(199,164,90,0.28);
    background: linear-gradient(180deg, rgba(199,164,90,0.12), rgba(255,255,255,0.03));
    color: #f6dca3;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-align: center;
}

.bullet-panel {
    display: grid;
    gap: 14px;
    margin-top: 20px;
}

.bullet-item {
    padding: 16px 18px;
    border-radius: 18px;
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--line);
}

.bullet-item strong {
    display: block;
    margin-bottom: 6px;
}

.bullet-item span {
    display: block;
    color: var(--muted);
    line-height: 1.65;
}
