@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,400;9..144,600;9..144,700&family=Manrope:wght@400;500;600;700&display=swap');

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

:root {
    --bg: #051009;
    --bg-2: #0a1f14;
    --gold: #e9b93b;
    --gold-soft: #f6d976;
    --green: #2ecc85;
    --green-deep: #1a8f5a;
    --text: #f6f1df;
    --muted: #bcc7b8;
    --line: rgba(233, 185, 59, 0.22);
}

/* overflow-x lives on html only; on both html and body it breaks position: sticky */
html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    margin: 0;
    font-family: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Layering: background 0, animation 1, content 2, nav 100 */
.bg {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: 0;
    pointer-events: none;
    background:
        radial-gradient(ellipse 80% 60% at 50% 0%, rgba(46, 204, 133, 0.16), transparent 70%),
        radial-gradient(ellipse 70% 50% at 100% 100%, rgba(233, 185, 59, 0.13), transparent 70%),
        radial-gradient(ellipse 60% 50% at 0% 90%, rgba(26, 143, 90, 0.18), transparent 70%),
        linear-gradient(180deg, var(--bg-2), var(--bg) 70%);
}

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

/* ---- Nav ---- */
/* Direct child of the content area, full viewport width; max-width lives on .nav-inner */

.site-nav {
    position: sticky;
    top: 0;
    z-index: 100;
    width: 100%;
    padding: 26px 32px;
    background: rgba(5, 16, 9, 0.35);
    -webkit-backdrop-filter: blur(10px) saturate(140%);
    backdrop-filter: blur(10px) saturate(140%);
    border-bottom: 1px solid transparent;
    transition: padding 250ms ease, background-color 250ms ease, box-shadow 250ms ease, border-color 250ms ease;
}

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

.wordmark {
    font-family: 'Fraunces', Georgia, serif;
    font-weight: 700;
    font-size: 2rem;
    letter-spacing: -0.02em;
    line-height: 1;
    text-decoration: none;
    color: var(--text);
    transition: font-size 250ms ease;
}

.wordmark:hover { color: var(--text); }

.wordmark .name {
    background: linear-gradient(100deg, var(--gold-soft), var(--gold) 45%, var(--green) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.wordmark .tld {
    font-weight: 400;
    color: var(--muted);
    font-size: 0.6em;
    letter-spacing: 0.02em;
}

#buy_now_link {
    display: inline-block;
    padding: 12px 26px;
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-decoration: none;
    color: #1a1405;
    background: linear-gradient(135deg, var(--gold-soft), var(--gold));
    border-radius: 999px;
    box-shadow: 0 4px 18px rgba(233, 185, 59, 0.28);
    white-space: nowrap;
    transition: padding 250ms ease, font-size 250ms ease, transform 200ms ease, box-shadow 200ms ease, filter 200ms ease;
}

#buy_now_link:hover {
    color: #1a1405;
    transform: translateY(-2px);
    filter: brightness(1.06);
    box-shadow: 0 8px 26px rgba(233, 185, 59, 0.45);
}

#buy_now_link:focus-visible,
#buy_now_bottom:focus-visible {
    outline: 3px solid var(--green);
    outline-offset: 4px;
}

.site-nav.nav-scrolled {
    padding: 10px 32px;
    background: rgba(5, 16, 9, 0.88);
    border-bottom-color: var(--line);
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.45);
}

.site-nav.nav-scrolled .wordmark { font-size: 1.45rem; }

.site-nav.nav-scrolled #buy_now_link {
    padding: 8px 18px;
    font-size: 0.85rem;
}

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

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

.hero {
    max-width: 1300px;
    margin: 0 auto;
    padding: 12vh 24px 8vh;
    text-align: center;
}

.hero h1 {
    margin: 0;
    font-family: 'Fraunces', Georgia, serif;
    font-weight: 600;
    font-size: clamp(2rem, 6vw, 5rem);
    line-height: 1.08;
    letter-spacing: -0.025em;
    color: var(--text);
    text-shadow: 0 2px 30px rgba(5, 16, 9, 0.85);
}

.hero h1 .line { display: block; }

.hero h1 em {
    font-style: normal;
    background: linear-gradient(100deg, var(--gold-soft) 0%, var(--gold) 40%, var(--green) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero-sub {
    max-width: 680px;
    margin: 28px auto 0;
    font-size: 1.15rem;
    font-weight: 500;
    letter-spacing: 0.32em;
    text-transform: uppercase;
    color: var(--muted);
    text-shadow: 0 1px 16px rgba(5, 16, 9, 0.9);
}

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

.cards-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 4vh 24px 10vh;
}

.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
    counter-reset: card;
}

.cards-section .card {
    position: relative;
    display: block;
    padding: 38px;
    border-radius: 20px;
    background: linear-gradient(160deg, rgba(14, 40, 26, 0.92), rgba(7, 22, 14, 0.95));
    border: 1px solid var(--line);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.35);
    transition: transform 300ms ease, border-color 300ms ease, box-shadow 300ms ease;
    counter-increment: card;
}

.cards-section .card::before {
    content: "0" counter(card);
    display: block;
    margin-bottom: 20px;
    font-family: 'Fraunces', Georgia, serif;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    color: var(--gold);
}

.cards-section .card::after {
    content: "";
    position: absolute;
    left: 38px;
    right: 38px;
    top: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--gold), var(--green));
    opacity: 0.7;
    transform-origin: left;
    transform: scaleX(0.25);
    transition: transform 400ms ease;
}

.cards-section .card:hover {
    transform: translateY(-8px);
    border-color: rgba(233, 185, 59, 0.55);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45), 0 0 40px rgba(46, 204, 133, 0.14);
}

.cards-section .card:hover::after { transform: scaleX(1); }

.cards-section .card h2 {
    margin: 0 0 14px;
    font-family: 'Fraunces', Georgia, serif;
    font-size: 1.55rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    color: var(--gold-soft);
}

.cards-section .card p {
    margin: 0;
    font-size: 1rem;
    line-height: 1.7;
    color: #d3dccf;
}

/* ---- Signal Line / CTA ---- */

.cta {
    max-width: 800px;
    margin: 0 auto;
    padding: 6vh 24px 16vh;
    text-align: center;
}

.signal-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 22px;
}

.signal-status {
    margin: 0;
    padding: 8px 20px;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.28em;
    color: var(--green);
    border: 1px solid rgba(46, 204, 133, 0.45);
    border-radius: 999px;
    background: rgba(5, 16, 9, 0.7);
}

.signal-cta {
    display: inline-block;
    padding: 22px 56px;
    font-size: 1.3rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-decoration: none;
    color: #1a1405;
    background: linear-gradient(135deg, var(--gold-soft) 0%, var(--gold) 55%, #c9962a 100%);
    border-radius: 999px;
    box-shadow: 0 10px 40px rgba(233, 185, 59, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.4);
    transition: transform 220ms ease, box-shadow 220ms ease, filter 220ms ease;
}

.signal-cta:hover {
    color: #1a1405;
    transform: translateY(-3px) scale(1.02);
    filter: brightness(1.07);
    box-shadow: 0 16px 56px rgba(233, 185, 59, 0.55), 0 0 60px rgba(46, 204, 133, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.signal-cta:active { transform: translateY(0) scale(0.99); }

.signal-sub {
    margin: 0;
    font-size: 0.9rem;
    color: var(--muted);
    text-shadow: 0 1px 14px rgba(5, 16, 9, 0.9);
}

/* ---- Footer ---- */
/* Footer markup is injected via SSI and shouldn't be edited per-domain -
   spacing, background and layering live here instead. */

footer {
    position: relative;
    z-index: 2;
    padding: 20px;
    text-align: center;
    font-size: 0.85rem;
    color: var(--text);
    background: rgba(5, 16, 9, 0.96);
    border-top: 1px solid var(--line);
}

footer div {
    margin: 4px 0;
    color: var(--text);
}

footer a {
    color: var(--gold-soft);
}

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

@media (max-width: 768px) {
    .site-nav { padding: 18px 20px; }
    .site-nav.nav-scrolled { padding: 10px 20px; }
    .hero { padding-top: 10vh; }
}

@media (max-width: 480px) {
    .site-nav { padding: 14px 16px; }
    .site-nav.nav-scrolled { padding: 8px 16px; }
    .wordmark { font-size: 1.5rem; }
    .site-nav.nav-scrolled .wordmark { font-size: 1.25rem; }
    #buy_now_link { padding: 9px 16px; font-size: 0.85rem; }
    .site-nav.nav-scrolled #buy_now_link { padding: 7px 14px; font-size: 0.8rem; }
    .hero { padding: 10vh 16px 6vh; }
    .hero-sub { font-size: 0.95rem; letter-spacing: 0.22em; }
    .cards-section { padding: 2vh 16px 8vh; }
    .cards-section .card { padding: 30px 26px; }
    .cards-section .card::after { left: 26px; right: 26px; }
    .cta { padding: 4vh 16px 14vh; }
    .signal-cta { padding: 18px 32px; font-size: 1.1rem; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { transition: none !important; }
    .cards-section .card:hover, #buy_now_link:hover, .signal-cta:hover { transform: none; }
}
