@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@400;500;600&family=Inter:wght@300;400;500;600&display=swap');

:root {
    --navy-950: #040817;
    --navy-900: #071029;
    --navy-800: #0b1a42;
    --blue-500: #2f5bd0;
    --gold-300: #f0d795;
    --gold-400: #e2bd6b;
    --gold-500: #cfa24a;
    --cream: #f6efdd;
    --muted: #b9c3de;
    --serif: 'Cormorant Garamond', 'Times New Roman', serif;
    --sans: 'Inter', -apple-system, 'Segoe UI', Helvetica, Arial, sans-serif;
}

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

/* overflow-x only on html: setting it on body too would make body its own
   scroll container and break position: sticky on the nav */
html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    margin: 0;
    padding: 0;
    min-height: 100vh;
    background: var(--navy-950);
    color: var(--cream);
    font-family: var(--sans);
    font-weight: 400;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ---- Layering: background 0, canvas 1, content 2+, nav 100 ---- */

.bg-layer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    background:
        radial-gradient(ellipse 70% 55% at 50% 0%, rgba(47, 91, 208, 0.28), transparent 70%),
        radial-gradient(ellipse 60% 50% at 85% 100%, rgba(207, 162, 74, 0.13), transparent 70%),
        radial-gradient(ellipse 50% 45% at 8% 70%, rgba(30, 64, 160, 0.22), transparent 70%),
        linear-gradient(180deg, var(--navy-900) 0%, var(--navy-950) 100%);
}

#flow {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
    display: block;
}

/* ---- Nav (full width, sticky) ---- */

nav {
    position: sticky;
    top: 0;
    z-index: 100;
    width: 100%;
    padding: 26px 32px;
    background: rgba(7, 16, 41, 0.35);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(226, 189, 107, 0.08);
    box-shadow: 0 0 0 rgba(0, 0, 0, 0);
    transition: padding 250ms ease, background-color 250ms ease, box-shadow 250ms ease, border-color 250ms ease;
}

.nav-inner {
    max-width: 1240px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.logo {
    font-family: var(--serif);
    font-weight: 500;
    font-size: 2rem;
    letter-spacing: 0.04em;
    color: var(--cream);
    text-decoration: none;
    line-height: 1;
    transition: font-size 250ms ease;
}
.logo:hover { color: var(--cream); }
.logo .gold {
    background: linear-gradient(100deg, var(--gold-300), var(--gold-500));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: var(--gold-400);
}
.logo .tld {
    font-family: var(--sans);
    font-size: 0.4em;
    font-weight: 300;
    letter-spacing: 0.18em;
    color: var(--muted);
    margin-left: 2px;
}
.logo:focus-visible { outline: 2px solid var(--gold-300); outline-offset: 6px; border-radius: 2px; }

#buy_now_link {
    display: inline-block;
    padding: 12px 26px;
    font-family: var(--sans);
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    text-decoration: none;
    color: var(--gold-300);
    border: 1px solid rgba(226, 189, 107, 0.55);
    border-radius: 2px;
    background: rgba(226, 189, 107, 0.06);
    white-space: nowrap;
    transition: padding 250ms ease, font-size 250ms ease, background-color 200ms ease, color 200ms ease, border-color 200ms ease, transform 200ms ease;
}
#buy_now_link:hover {
    background: linear-gradient(100deg, var(--gold-300), var(--gold-500));
    color: var(--navy-950);
    border-color: var(--gold-300);
    transform: translateY(-1px);
}
#buy_now_link:focus-visible { outline: 2px solid var(--gold-300); outline-offset: 4px; }

nav.nav-scrolled {
    padding: 12px 32px;
    background: rgba(5, 10, 28, 0.88);
    border-bottom-color: rgba(226, 189, 107, 0.22);
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.45);
}
nav.nav-scrolled .logo { font-size: 1.5rem; }
nav.nav-scrolled #buy_now_link { padding: 8px 18px; font-size: 0.74rem; }

/* ---- Content sections ---- */

main {
    position: relative;
    z-index: 2;
}

.hero,
.cards-section,
.cta,
.signal-line {
    position: relative;
    z-index: 2;
}

/* ---- Hero ---- */

.hero {
    padding: 12vh 24px 9vh;
    text-align: center;
}
.hero::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: min(1100px, 100%);
    height: 130%;
    transform: translate(-50%, -50%);
    background: radial-gradient(ellipse at center, rgba(4, 8, 23, 0.6), transparent 68%);
    pointer-events: none;
    z-index: -1;
}

.hero h1 {
    margin: 0 auto;
    font-family: var(--serif);
    font-weight: 500;
    font-size: clamp(2rem, 6vw, 5rem);
    line-height: 1.08;
    letter-spacing: 0.005em;
    text-transform: none;
    color: var(--cream);
    text-shadow: 0 2px 30px rgba(4, 8, 23, 0.7);
    animation: rise 1.1s cubic-bezier(0.22, 0.8, 0.28, 1) both;
}
.hero h1 span { display: block; }
.hero h1 .l2 {
    background: linear-gradient(100deg, var(--gold-300) 0%, var(--gold-500) 50%, var(--gold-300) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: var(--gold-400);
    font-style: italic;
    text-shadow: none;
    animation: rise 1.1s 0.15s cubic-bezier(0.22, 0.8, 0.28, 1) both;
}

.divider {
    display: block;
    width: 84px;
    height: 1px;
    margin: 2.2rem auto 1.8rem;
    background: linear-gradient(90deg, transparent, var(--gold-400), transparent);
    animation: rise 1.1s 0.3s ease both;
}

.hero p {
    max-width: 680px;
    margin: 0 auto;
    font-size: clamp(1rem, 1.5vw, 1.2rem);
    font-weight: 300;
    line-height: 1.75;
    color: var(--muted);
    animation: rise 1.1s 0.4s ease both;
}

@keyframes rise {
    from { opacity: 0; transform: translateY(18px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ---- Cards ---- */

.cards-section {
    max-width: 1240px;
    margin: 0 auto;
    padding: 6vh 32px 8vh;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
}

/* .card is also a Bootstrap class, so every relevant property is set explicitly */
.cards-section .card {
    position: relative;
    display: block;
    min-width: 0;
    height: auto;
    padding: 38px;
    border-radius: 4px;
    background: linear-gradient(160deg, rgba(14, 28, 68, 0.9), rgba(7, 14, 38, 0.9));
    border: 1px solid rgba(226, 189, 107, 0.2);
    color: var(--cream);
    text-align: left;
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
    transition: transform 300ms ease, border-color 300ms ease, box-shadow 300ms ease;
    animation: rise 1s ease both;
}
.cards-section .card:nth-child(2) { animation-delay: 0.12s; }
.cards-section .card:nth-child(3) { animation-delay: 0.24s; }
.cards-section .card::before {
    content: "";
    position: absolute;
    left: 38px;
    right: 38px;
    top: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold-400), transparent);
    opacity: 0.6;
}
.cards-section .card:hover {
    transform: translateY(-8px);
    border-color: rgba(240, 215, 149, 0.55);
    box-shadow: 0 26px 54px rgba(0, 0, 0, 0.4), 0 0 32px rgba(226, 189, 107, 0.1);
}
.cards-section .card svg {
    display: block;
    width: 34px;
    height: 34px;
    margin-bottom: 22px;
}
.cards-section .card h3 {
    margin: 0 0 14px;
    font-family: var(--serif);
    font-weight: 600;
    font-size: 1.75rem;
    line-height: 1.15;
    letter-spacing: 0;
    text-transform: none;
    color: var(--cream);
}
.cards-section .card p {
    margin: 0;
    font-size: 0.98rem;
    line-height: 1.75;
    letter-spacing: 0;
    color: var(--muted);
}

/* ---- CTA / signal line ---- */

.signal-line {
    padding: 6vh 24px 14vh;
    text-align: center;
}
.signal-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 22px;
    max-width: 680px;
    margin: 0 auto;
}
.signal-line p { margin: 0; }
.signal-status {
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.34em;
    text-transform: uppercase;
    color: var(--gold-400);
    opacity: 1;
}
.signal-cta {
    display: inline-block;
    padding: 22px 54px;
    font-family: var(--sans);
    font-size: 1.05rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: none;
    text-decoration: none;
    color: var(--navy-950);
    background: linear-gradient(100deg, var(--gold-300), var(--gold-500) 55%, var(--gold-300));
    background-size: 200% 100%;
    border-radius: 2px;
    box-shadow: 0 10px 34px rgba(207, 162, 74, 0.3);
    transition: transform 250ms ease, box-shadow 250ms ease, background-position 500ms ease;
}
.signal-cta:hover {
    color: var(--navy-950);
    transform: translateY(-3px);
    background-position: 100% 0;
    box-shadow: 0 16px 44px rgba(226, 189, 107, 0.5);
}
.signal-cta:focus-visible { outline: 2px solid var(--cream); outline-offset: 5px; }
.signal-sub {
    margin: 0;
    font-size: 0.85rem;
    font-weight: 300;
    letter-spacing: 0.04em;
    text-transform: none;
    color: var(--muted);
    opacity: 1;
}

/* ---- Footer ----
   Markup is injected via SSI; only styling lives here. Solid dark background
   and a z-index above the fixed layers keep it readable over the canvas. */

footer {
    position: relative;
    z-index: 3;
    margin: 0;
    padding: 20px 24px !important;
    text-align: center;
    font-size: 0.85rem;
    line-height: 1.5;
    background: var(--navy-950);
    border-top: 1px solid rgba(226, 189, 107, 0.2);
    color: var(--muted);
}
footer div,
footer p,
footer span,
footer small,
footer .text-muted,
footer .text-secondary,
footer .text-body-secondary {
    color: var(--muted) !important;
}
footer div,
footer p {
    margin: 4px 0;
}
footer > :first-child { margin-top: 0; }
footer > :last-child { margin-bottom: 0; }
footer a,
footer a:visited {
    color: var(--gold-300);
    text-decoration: underline;
    text-underline-offset: 3px;
}
footer a:hover { color: var(--cream); }

/* ---- Responsive ---- */

@media (max-width: 768px) {
    nav { padding: 18px 20px; }
    nav.nav-scrolled { padding: 10px 20px; }
    .cards-section { padding-left: 20px; padding-right: 20px; }
}

@media (max-width: 480px) {
    nav { padding: 14px 16px; }
    nav.nav-scrolled { padding: 8px 16px; }
    .logo { font-size: 1.5rem; }
    nav.nav-scrolled .logo { font-size: 1.25rem; }
    #buy_now_link { padding: 9px 14px; font-size: 0.7rem; letter-spacing: 0.1em; }
    nav.nav-scrolled #buy_now_link { padding: 7px 12px; font-size: 0.66rem; }
    .hero { padding: 11vh 16px 6vh; }
    .cards-section { padding: 4vh 16px 6vh; gap: 20px; }
    .cards-section .card { padding: 32px 26px; }
    .cards-section .card::before { left: 26px; right: 26px; }
    .signal-line { padding: 4vh 16px 12vh; }
    .signal-cta { padding: 18px 28px; font-size: 0.92rem; letter-spacing: 0.08em; }
    .signal-status { letter-spacing: 0.24em; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        animation: none !important;
        transition: none !important;
    }
}
