:root {
    --gold: #c8a46a;
    --gold-light: #e0c891;
    --bg: #0a1018;
    --panel: rgba(12, 18, 26, .78);
}

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

body {
    min-height: 100vh;
    color: #d9c19a;
    background:
        linear-gradient(#071019, #1c4368),
        url("../assets/images/hero-background.webp");
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    font-family: Georgia, "Times New Roman", serif;
}

.background-overlay {
    position: fixed;
    inset: 0;
    background:
        radial-gradient(
            circle at center,
            transparent 20%,
            rgba(0, 0, 0, .45) 100%
        );
    pointer-events: none;
}

/* ── Navigation ───────────────────────────────── */

/* TODO: .nav-frame and .nav-ornament are in the HTML but have no styles */

.top-nav {
    width: 100%;
    padding: 30px 60px;
}

.top-nav nav {
    display: flex;
    border: 1px solid rgba(200, 164, 106, .5);
    background: rgba(0, 0, 0, .35);
    backdrop-filter: blur(6px);
}

.top-nav a {
    flex: 1;
    text-align: center;
    padding: 18px 8px;
    border-right: 1px solid rgba(200, 164, 106, .4);
    text-decoration: none;
    color: var(--gold);
    letter-spacing: 2px;
    text-transform: uppercase;
    font-size: .85rem;
    transition: .25s;
    position: relative;
}

.top-nav a:last-child {
    border-right: none;
}

.top-nav a:hover {
    color: var(--gold-light);
    text-shadow: 0 0 10px rgba(224, 200, 145, .5);
}

.top-nav a.active {
    color: var(--gold-light);
    background: rgba(200, 164, 106, .12);
    text-shadow: 0 0 10px rgba(224, 200, 145, .4);
}

/* ── Hero ─────────────────────────────────────── */

.hero {
    display: flex;
    align-items: center;
    min-height: 70vh;
    padding: 0 8%;
}

.hero-content {
    max-width: 600px;
}

.eyebrow {
    display: block;
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: 4px;
    margin-bottom: 20px;
}

/* Merged from two duplicate .hero h1 declarations */
.hero h1 {
    font-size: 5rem;
    letter-spacing: 10px;
    margin-bottom: 20px;
    color: #f2e0b7;
    text-shadow:
        0 0 10px rgba(242, 224, 183, .25),
        0 0 30px rgba(200, 164, 106, .15);
}

.hero p {
    font-size: 1.15rem;
    line-height: 1.8;
    color: #d5d5d5;
    margin-bottom: 40px;
}

.hero-buttons {
    display: flex;
    gap: 20px;
}

.btn-primary,
.btn-secondary {
    padding: 14px 32px;
    border: 1px solid var(--gold);
    color: white;
    text-decoration: none;
    transition: .25s;
}

.btn-primary {
    background: rgba(200, 164, 106, .15);
}

.btn-primary:hover,
.btn-secondary:hover {
    background: rgba(200, 164, 106, .25);
    box-shadow: 0 0 20px rgba(200, 164, 106, .25);
}

/* ── Cards ────────────────────────────────────── */

.cards {
    width: min(1400px, 90%);
    margin: auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

.card {
    position: relative;
    background: var(--panel);
    border: 1px solid rgba(200, 164, 106, .45);
    backdrop-filter: blur(8px);
    padding: 30px;
    transition: .3s;
    text-align: center;
    overflow: hidden;
}

/* Merged from two duplicate .card:hover declarations */
.card:hover {
    transform: translateY(-6px);
    border-color: var(--gold);
    box-shadow:
        0 0 30px rgba(200, 164, 106, .15),
        inset 0 0 20px rgba(200, 164, 106, .05);
}

.card-icon {
    position: relative;
    width: 72px;
    height: 72px;
    margin: 0 auto 25px auto;
}

.card-icon::before {
    content: "";
    position: absolute;
    top: -8px;
    left: 50%;
    width: 30px;
    height: 30px;
    border-top: 1px solid var(--gold);
    border-left: 1px solid var(--gold);
    transform: translateX(-50%) rotate(45deg);
    opacity: .6;
}

.card:hover .card-icon {
    transform: scale(1.08);
    filter: drop-shadow(0 0 10px rgba(200, 164, 106, .45));
}

.card::before,
.card::after {
    content: "";
    position: absolute;
    width: 40px;
    height: 40px;
    pointer-events: none;
}

.card::before {
    top: 10px;
    left: 10px;
    border-top: 2px solid var(--gold);
    border-left: 2px solid var(--gold);
}

.card::after {
    bottom: 10px;
    right: 10px;
    border-bottom: 2px solid var(--gold);
    border-right: 2px solid var(--gold);
}

.card h3 {
    position: relative;
    margin-bottom: 20px;
    color: var(--gold-light);
}

.card h3::before,
.card h3::after {
    content: "◆";
    position: absolute;
    color: var(--gold);
    font-size: .7rem;
    top: 50%;
    transform: translateY(-50%);
}

.card h3::before { left: -18px; }
.card h3::after  { right: -18px; }

.card p {
    color: #cfcfcf;
    line-height: 1.6;
}

/* ── Feature Grid (unused — no matching HTML yet) ─ */

.feature-grid {
    width: min(1400px, 90%);
    margin: 50px auto 100px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.feature-box {
    text-align: center;
    padding: 35px;
    background: var(--panel);
    border: 1px solid rgba(200, 164, 106, .35);
    backdrop-filter: blur(8px);
}

.feature-box h4 {
    color: var(--gold);
    letter-spacing: 2px;
}

/* ── Particles ────────────────────────────────── */

.particles {
    position: fixed;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
}

.particles span {
    position: absolute;
    display: block;
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: rgba(224, 200, 145, .8);
    box-shadow: 0 0 8px rgba(224, 200, 145, .8);
    animation: floatParticle 15s linear infinite;
}

.particles span:nth-child(1) { left: 10%; animation-delay: 0s; }
.particles span:nth-child(2) { left: 20%; animation-delay: 2s; }
.particles span:nth-child(3) { left: 35%; animation-delay: 4s; }
.particles span:nth-child(4) { left: 50%; animation-delay: 6s; }
.particles span:nth-child(5) { left: 65%; animation-delay: 1s; }
.particles span:nth-child(6) { left: 75%; animation-delay: 3s; }
.particles span:nth-child(7) { left: 85%; animation-delay: 5s; }
.particles span:nth-child(8) { left: 95%; animation-delay: 7s; }

@keyframes floatParticle {
    0%   { transform: translateY(100vh) translateX(0);   opacity: 0; }
    10%  { opacity: .7; }
    50%  { transform: translateY(50vh)  translateX(20px); }
    100% { transform: translateY(-20vh) translateX(-20px); opacity: 0; }
}

/* ── Responsive ───────────────────────────────── */

@media (max-width: 1200px) {
    .cards,
    .feature-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .top-nav nav {
        flex-wrap: wrap;
        gap: 15px;
    }

    .hero h1 {
        font-size: 3rem;
    }

    .cards,
    .feature-grid {
        grid-template-columns: 1fr;
    }
}