:root {
    --bg: #0a2540;
    --alt: #0d3060;
    --alt2: #1a4a7a;
    --text: #fffbeb;
    --muted: rgba(255,251,235,0.68);
    --accent: #fbbf24;
    --accent2: #f59e0b;
    --font-display: 'Playfair Display', serif;
    --font-body: 'Source Sans Pro', sans-serif;
    --pad: 8vw;
}

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

body {
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-body);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { font-family: var(--font-display); font-weight: 400; line-height: 1.12; }
p { font-size: 1.1rem; line-height: 1.78; color: var(--muted); margin-bottom: 1.5rem; }
a { color: inherit; text-decoration: none; }

/* ── Nav ── */
nav {
    position: fixed; top: 0; width: 100%;
    padding: 1.4rem var(--pad);
    display: flex; justify-content: space-between; align-items: center;
    z-index: 100;
    background: rgba(10, 37, 64, 0.88);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(255,251,235,0.06);
}
.logo { font-family: var(--font-display); font-size: 1.5rem; font-weight: 700; letter-spacing: -0.02em; display: block; }
.logo img { height: 70px; width: auto; display: block; }
.nav-links {
    display: flex; align-items: center; gap: 2.4rem; list-style: none;
}
.nav-links a {
    font-size: 0.78rem; text-transform: uppercase;
    letter-spacing: 0.13em; color: #fff;
    opacity: 0.85; transition: opacity 0.2s;
}
.nav-links a:hover { opacity: 1; }
.nav-cta {
    font-size: 0.78rem; text-transform: uppercase;
    letter-spacing: 0.13em; color: #fff;
    border: 1px solid rgba(255,255,255,0.45);
    padding: 0.5rem 1.3rem; cursor: pointer;
    transition: opacity 0.2s;
}
.nav-cta:hover { opacity: 0.7; }
@media (max-width: 860px) {
    .nav-links { display: none; }
    .nav-cta   { display: none; }
}

/* ── Mobile hamburger nav (injected by script) ── */
.p2p-burger { display: none; }
@media (max-width: 860px) {
    .p2p-nav-hidden { display: none !important; }
    .p2p-burger {
        display: inline-flex !important;
        align-items: center; justify-content: center;
        width: 44px; height: 44px; padding: 0; margin-left: auto;
        background: transparent; border: 1px solid rgba(255,255,255,0.35);
        border-radius: 10px; cursor: pointer; position: relative;
        z-index: 100000; -webkit-tap-highlight-color: transparent;
    }
    .p2p-burger span {
        position: absolute; left: 11px; right: 11px; height: 2px;
        background: currentColor;
        transition: transform 0.25s ease, opacity 0.2s ease;
    }
    .p2p-burger span:nth-child(1) { top: 14px; }
    .p2p-burger span:nth-child(2) { top: 21px; }
    .p2p-burger span:nth-child(3) { top: 28px; }
    .p2p-burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
    .p2p-burger.open span:nth-child(2) { opacity: 0; }
    .p2p-burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
    .p2p-mnav {
        position: fixed; top: 0; left: 0; right: 0; z-index: 99999;
        background: #0c0f16; color: #fff; padding: 72px 22px 28px;
        box-shadow: 0 18px 50px rgba(0,0,0,0.45);
        transform: translateY(-104%); transition: transform 0.3s ease;
        max-height: 90vh; overflow: auto;
    }
    .p2p-mnav.open { transform: translateY(0); }
    .p2p-mnav a {
        display: block; padding: 14px 4px; font-size: 1.18rem; font-weight: 600;
        color: #fff !important; text-decoration: none;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }
    .p2p-mnav a:last-child { border-bottom: 0; }
    .p2p-mnav-back {
        position: fixed; inset: 0; background: rgba(0,0,0,0.5); z-index: 99998;
        opacity: 0; pointer-events: none; transition: opacity 0.3s ease;
    }
    .p2p-mnav-back.open { opacity: 1; pointer-events: auto; }
}

/* ── Hero ── */
.detail-hero {
    position: relative; height: 88vh;
    display: flex; align-items: flex-end; overflow: hidden;
}
.hero-bg {
    position: absolute; inset: 0;
    background-size: cover; background-position: center;
    transform: scale(1.06);
    transition: transform 10s ease;
}
.detail-hero:hover .hero-bg { transform: scale(1.0); }
.hero-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(to top,
        rgba(0,0,0,0.97) 0%,
        rgba(0,0,0,0.55) 45%,
        rgba(0,0,0,0.18) 100%);
}
.hero-text {
    position: relative; z-index: 1;
    padding: 0 var(--pad) 5.5rem;
}
.hero-num {
    display: block;
    font-size: 0.78rem; letter-spacing: 0.2em; text-transform: uppercase;
    color: var(--accent); margin-bottom: 1.1rem;
}
.hero-title {
    font-size: clamp(2.8rem, 6vw, 5.5rem);
    color: var(--text); max-width: 800px;
}
.hero-title em { font-style: italic; color: var(--accent); }

/* ── Body ── */
.detail-body {
    padding: 7rem var(--pad) 5rem;
    max-width: 100%;
}

/* Two-column layout on large screens */
.detail-body-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6rem;
    align-items: start;
    max-width: 1400px;
}

.detail-body-text {
    min-width: 0;
}

.detail-body-image {
    position: sticky;
    top: 100px;
}

.detail-body-image img {
    width: 100%;
    height: 600px;
    display: block;
    border: 1px solid rgba(255,251,235,0.08);
    border-radius: 4px;
    object-fit: cover;
    filter: brightness(0.92) saturate(1.1);
    transition: filter 0.4s ease, transform 0.4s ease;
}

.detail-body-image img:hover {
    filter: brightness(1) saturate(1.2);
    transform: scale(1.01);
}

@media (max-width: 1024px) {
    .detail-body-inner {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    .detail-body-image {
        position: static;
        order: -1;
    }
}
.detail-body > h2 {
    font-size: clamp(1.55rem, 2.8vw, 2.1rem);
    color: var(--text); margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(255,251,235,0.08);
}
.detail-body p:last-child { margin-bottom: 0; }

/* ── Feature list ── */
.feature-list {
    list-style: none;
    margin: 2.5rem 0 3rem;
    display: grid; gap: 0.85rem;
}
.feature-list li {
    padding: 1.4rem 1.8rem;
    background: var(--alt);
    border: 1px solid rgba(255,251,235,0.05);
    border-left: 3px solid var(--accent);
    transition: background 0.25s, border-left-color 0.25s;
}
.feature-list li:hover { background: var(--alt2); border-left-color: var(--accent2); }
.feature-list li strong {
    display: block; color: var(--text);
    font-family: var(--font-display); font-size: 1.08rem; font-weight: 600;
    margin-bottom: 0.35rem;
}
.feature-list li span { font-size: 0.97rem; color: var(--muted); line-height: 1.65; }

/* ── FAQs ── */
.detail-faqs {
    padding: 6rem var(--pad);
    background: var(--alt);
    border-top: 1px solid rgba(255,251,235,0.05);
}
.detail-faqs > h2 { font-size: clamp(1.8rem, 3vw, 2.4rem); margin-bottom: 3rem; }
.faq-item { border-bottom: 1px solid rgba(255,251,235,0.07); }
.faq-q {
    width: 100%; text-align: left; background: none; border: none;
    color: var(--text); font-family: var(--font-body);
    font-size: 1.03rem; font-weight: 600;
    padding: 1.6rem 0; cursor: pointer;
    display: flex; justify-content: space-between; align-items: flex-start; gap: 2rem;
    transition: color 0.2s;
}
.faq-q:hover { color: var(--accent); }
.faq-q::after {
    content: '+'; font-size: 1.5rem; color: var(--accent);
    flex-shrink: 0; line-height: 1; margin-top: 0.1rem;
    transition: transform 0.3s var(--ease, ease);
}
.faq-item.open .faq-q::after { transform: rotate(45deg); }
.faq-a { overflow: hidden; max-height: 0; transition: max-height 0.4s ease; }
.faq-a p { padding: 0 0 1.6rem; margin: 0; }

/* ── CTA band ── */
.detail-cta {
    padding: 8rem var(--pad);
    text-align: center;
    background: var(--bg);
    border-top: 1px solid rgba(255,251,235,0.05);
}
.detail-cta h2 { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 1rem; }
.detail-cta p { max-width: 480px; margin: 0 auto 2.5rem; }
.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: var(--accent); color: #000;
    font-size: 0.86rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.1em;
    transition: background 0.2s, transform 0.2s;
}
.btn:hover { background: var(--accent2); transform: translateY(-2px); }
.btn-ghost {
    background: transparent;
    border: 1px solid rgba(255,251,235,0.22); color: var(--text);
    margin-left: 1rem;
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); }

/* ── Footer ── */
.detail-footer {
    padding: 2rem var(--pad);
    background: var(--alt);
    display: flex; justify-content: space-between; align-items: center;
    border-top: 1px solid rgba(255,251,235,0.05);
    font-size: 0.84rem; color: var(--muted);
}
.detail-footer a:hover { color: var(--accent); }

/* ── Responsive ── */
@media (max-width: 768px) {
    :root { --pad: 6vw; }
    .detail-hero { height: 72vh; }
    .hero-title { font-size: clamp(2.2rem, 9vw, 3.2rem); }
    .detail-body { padding: 5rem var(--pad) 3rem; }
    .detail-faqs, .detail-cta { padding: 4rem var(--pad); }
    .btn-ghost { margin-left: 0; margin-top: 0.8rem; display: block; text-align: center; }
    .detail-footer { flex-direction: column; gap: 0.6rem; text-align: center; }
}
