:root {
    --gold: #c9a24d;
    --gold-light: #d4b366;
    --gold-dark: #b8923d;
    --dark: #0b0b0b;
    --dark-light: #1a1a1a;
    --dark-card: #0f0f0f;
    --gray: #b5b5b5;
    --gray-dark: #7a7a7a;
    --border: #1f1f1f;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--dark);
    color: var(--gray);
    line-height: 1.7;
    overflow-x: hidden;
}

a {
    color: var(--gold);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--gold-light);
}

img {
    max-width: 100%;
}

/* ─── Navigation ─── */

.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(11, 11, 11, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    padding: 0 2rem;
}

.nav-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.nav-logo img {
    height: 36px;
    filter: drop-shadow(0 0 10px rgba(201, 162, 77, 0.3));
}

.nav-logo span {
    font-family: 'Cinzel', serif;
    color: var(--gold);
    font-size: 1rem;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
    list-style: none;
}

.nav-links a {
    color: var(--gray);
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    transition: color 0.3s ease;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--gold);
}

.nav-cta {
    background: var(--gold);
    color: var(--dark) !important;
    padding: 0.5rem 1.2rem;
    font-weight: 600 !important;
    font-size: 0.85rem !important;
    letter-spacing: 0.5px;
    transition: background 0.3s ease !important;
}

.nav-cta:hover {
    background: var(--gold-light) !important;
    color: var(--dark) !important;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 4px;
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--gray);
    transition: all 0.3s ease;
}

/* ─── Layout ─── */

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 2rem;
}

.page-content {
    padding-top: 64px;
}

section {
    padding: 5rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

/* ─── Typography ─── */

h1 {
    font-family: 'Cinzel', serif;
    font-size: 3rem;
    color: var(--gold);
    letter-spacing: 4px;
    text-transform: uppercase;
    text-shadow: 0 0 20px rgba(201, 162, 77, 0.4);
    line-height: 1.3;
}

h2 {
    font-family: 'Cinzel', serif;
    font-size: 2.2rem;
    color: var(--gold);
    letter-spacing: 2px;
}

h3 {
    font-family: 'Cinzel', serif;
    color: var(--gold);
    font-size: 1.4rem;
    letter-spacing: 1px;
}

.subtitle {
    font-size: 1.05rem;
    max-width: 700px;
    margin: 1rem auto 0;
}

.decorative-line {
    width: 80px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
    margin: 1.5rem auto;
    opacity: 0.6;
}

/* ─── Hero ─── */

.hero {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 6rem 2rem 4rem;
    background: radial-gradient(ellipse at top, #1a1a1a 0%, #000 100%);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(201, 162, 77, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: gridMove 60s linear infinite;
    pointer-events: none;
}

@keyframes gridMove {
    0% { transform: translate(0, 0); }
    100% { transform: translate(50px, 50px); }
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero .logo-img {
    width: 300px;
    max-width: 70vw;
    margin: 0 auto 2rem;
    filter: drop-shadow(0 0 30px rgba(201, 162, 77, 0.3));
}

.hero p {
    max-width: 650px;
    margin: 0 auto;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2.5rem;
    flex-wrap: wrap;
}

/* ─── Buttons ─── */

.btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    font-family: 'Inter', sans-serif;
}

.btn-primary {
    background: var(--gold);
    color: var(--dark);
}

.btn-primary:hover {
    background: var(--gold-light);
    color: var(--dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(201, 162, 77, 0.3);
}

.btn-outline {
    background: transparent;
    color: var(--gold);
    border: 1px solid var(--gold);
}

.btn-outline:hover {
    background: rgba(201, 162, 77, 0.1);
    color: var(--gold-light);
    transform: translateY(-2px);
}

/* ─── Cards ─── */

.card {
    background: linear-gradient(135deg, var(--dark-card) 0%, var(--dark-light) 100%);
    border: 1px solid var(--border);
    padding: 2rem;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(201, 162, 77, 0.05) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.card:hover {
    border-color: var(--gold-dark);
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(201, 162, 77, 0.12);
}

.card:hover::before {
    opacity: 1;
}

.card > * {
    position: relative;
    z-index: 1;
}

/* ─── Grid Layouts ─── */

.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

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

.blog-card {
    display: flex;
    flex-direction: column;
    padding: 0;
    overflow: hidden;
}

.blog-card .card-cover {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    display: block;
}

.blog-card .card-body {
    padding: 1.5rem 2rem 2rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.blog-card .card-tag {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--gold-dark);
    font-weight: 600;
    margin-bottom: 0.6rem;
}

.blog-card h3 {
    font-size: 1.2rem;
    margin-bottom: 0.8rem;
    line-height: 1.4;
}

.blog-card h3 a {
    color: var(--gold);
}

.blog-card h3 a:hover {
    color: var(--gold-light);
}

.blog-card .card-excerpt {
    font-size: 0.92rem;
    color: var(--gray-dark);
    flex: 1;
    margin-bottom: 1rem;
}

.blog-card .card-meta {
    font-size: 0.8rem;
    color: var(--gray-dark);
    border-top: 1px solid var(--border);
    padding-top: 0.8rem;
    display: flex;
    justify-content: space-between;
}

/* ─── Store / Ebook Cards ─── */

.ebook-card {
    text-align: center;
    padding: 2.5rem 2rem;
}

.ebook-card .ebook-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.ebook-card h3 {
    font-size: 1.15rem;
    margin-bottom: 0.8rem;
}

.ebook-card .ebook-desc {
    font-size: 0.9rem;
    color: var(--gray-dark);
    margin-bottom: 1.5rem;
}

.ebook-card .ebook-price {
    font-family: 'Cinzel', serif;
    font-size: 1.6rem;
    color: var(--gold);
    font-weight: 700;
    margin-bottom: 1.2rem;
}

.ebook-card .ebook-price .price-from {
    font-size: 0.8rem;
    color: var(--gray-dark);
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    display: block;
}

/* ─── Newsletter ─── */

.newsletter-section {
    background: linear-gradient(135deg, var(--dark-light) 0%, #111 100%);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    text-align: center;
}

.newsletter-form {
    display: flex;
    gap: 0.8rem;
    max-width: 480px;
    margin: 2rem auto 0;
}

.newsletter-form input[type="email"] {
    flex: 1;
    padding: 0.8rem 1.2rem;
    background: var(--dark);
    border: 1px solid var(--border);
    color: var(--gray);
    font-size: 0.95rem;
    font-family: 'Inter', sans-serif;
    outline: none;
    transition: border-color 0.3s ease;
}

.newsletter-form input[type="email"]:focus {
    border-color: var(--gold-dark);
}

.newsletter-form input[type="email"]::placeholder {
    color: var(--gray-dark);
}

.newsletter-form button {
    white-space: nowrap;
}

/* ─── Reading Progress Bar ─── */

.reading-progress {
    position: fixed;
    top: 64px;
    left: 0;
    width: 0%;
    height: 3px;
    background: linear-gradient(90deg, var(--gold-dark), var(--gold), var(--gold-light));
    z-index: 101;
    transition: width 0.1s linear;
}

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

.article-hero {
    width: 100%;
    max-height: 420px;
    overflow: hidden;
    position: relative;
}

.article-hero img {
    width: 100%;
    height: 420px;
    object-fit: cover;
    display: block;
    filter: brightness(0.7);
}

.article-hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 120px;
    background: linear-gradient(transparent, var(--dark));
}

/* ─── Video Embed ─── */

.video-embed {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    margin: 2rem 0 2.5rem;
    border: 1px solid var(--border);
}

.video-embed iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* ─── Blog Post (article page) ─── */

.article {
    max-width: 760px;
    margin: 0 auto;
    padding: 3rem 2rem 5rem;
}

.article-header {
    text-align: center;
    margin-bottom: 3rem;
    padding-top: 2rem;
}

.article-header h1 {
    font-size: 2.2rem;
    letter-spacing: 2px;
}

.article-meta {
    font-size: 0.85rem;
    color: var(--gray-dark);
    margin-top: 1rem;
}

.article-body h2 {
    font-size: 1.6rem;
    margin: 2.5rem 0 1rem;
}

.article-body h3 {
    font-size: 1.2rem;
    margin: 2rem 0 0.8rem;
}

.article-body p {
    margin-bottom: 1.2rem;
    font-size: 1.02rem;
}

.article-body blockquote {
    border-left: 3px solid var(--gold);
    padding: 1rem 1.5rem;
    margin: 2rem 0;
    background: rgba(201, 162, 77, 0.05);
    font-style: italic;
    color: var(--gold-light);
}

.article-body strong {
    color: var(--gold-light);
}

.article-cta {
    margin-top: 3rem;
    padding: 2rem;
    background: linear-gradient(135deg, var(--dark-card) 0%, var(--dark-light) 100%);
    border: 1px solid var(--border);
    text-align: center;
}

.article-cta h3 {
    margin-bottom: 0.8rem;
}

.article-cta p {
    font-size: 0.92rem;
    color: var(--gray-dark);
    margin-bottom: 1.2rem;
}

/* ─── Page Header (blog listing, store) ─── */

.page-header {
    text-align: center;
    padding: 5rem 2rem 3rem;
    background: radial-gradient(ellipse at top, #1a1a1a 0%, var(--dark) 100%);
    border-bottom: 1px solid var(--border);
}

.page-header h1 {
    font-size: 2.5rem;
}

/* ─── Footer ─── */

.footer {
    text-align: center;
    padding: 4rem 1rem;
    border-top: 1px solid var(--border);
    background: linear-gradient(180deg, var(--dark) 0%, #000 100%);
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.footer-links a {
    color: var(--gray-dark);
    font-size: 0.85rem;
}

.footer-links a:hover {
    color: var(--gold);
}

.footer p {
    font-size: 0.85rem;
    color: var(--gray-dark);
}

/* ─── Scroll Reveal ─── */

.reveal {
    opacity: 0;
    transform: translateY(25px);
    transition: all 0.7s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* ─── Featured section ─── */

.featured-label {
    display: inline-block;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--gold-dark);
    border: 1px solid var(--gold-dark);
    padding: 0.2rem 0.6rem;
    margin-bottom: 0.5rem;
}

/* ─── Inline Ebook CTA ─── */

.inline-ebook-cta {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.5rem;
    margin: 2.5rem 0;
    background: linear-gradient(135deg, rgba(201, 162, 77, 0.08) 0%, rgba(201, 162, 77, 0.03) 100%);
    border: 1px solid rgba(201, 162, 77, 0.25);
    border-left: 3px solid var(--gold);
}

.inline-ebook-cta img {
    width: 80px;
    height: auto;
    flex-shrink: 0;
    border: 1px solid var(--border);
}

.inline-ebook-cta .cta-text {
    flex: 1;
}

.inline-ebook-cta .cta-label {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--gold-dark);
    margin-bottom: 0.3rem;
}

.inline-ebook-cta h4 {
    font-family: 'Cinzel', serif;
    font-size: 1rem;
    color: #fff;
    margin-bottom: 0.3rem;
}

.inline-ebook-cta p {
    font-size: 0.85rem;
    color: var(--gray-dark);
    margin-bottom: 0.6rem !important;
}

.inline-ebook-cta .btn {
    padding: 0.4rem 1rem;
    font-size: 0.8rem;
}

/* ─── Share Buttons ─── */

.share-section {
    margin-top: 2.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
    text-align: center;
}

.share-section h4 {
    font-family: 'Cinzel', serif;
    font-size: 0.9rem;
    color: var(--gray);
    margin-bottom: 1rem;
    letter-spacing: 1px;
}

.share-buttons {
    display: flex;
    justify-content: center;
    gap: 0.8rem;
    flex-wrap: wrap;
}

.share-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
    font-family: 'Inter', sans-serif;
    color: var(--gray);
    background: var(--dark-card);
    border: 1px solid var(--border);
    text-decoration: none;
    transition: all 0.3s ease;
    letter-spacing: 0.5px;
}

.share-btn:hover {
    color: var(--gold);
    border-color: var(--gold-dark);
}

.share-btn svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

/* ─── Related Articles ─── */

.related-section {
    max-width: 760px;
    margin: 0 auto;
    padding: 0 2rem 3rem;
}

.related-section h3 {
    font-family: 'Cinzel', serif;
    text-align: center;
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.2rem;
    margin-top: 1.5rem;
}

.related-grid .card {
    padding: 0;
}

.related-grid .card-cover {
    height: 140px;
}

.related-grid .card-body {
    padding: 1rem;
}

.related-grid .card-body h4 {
    font-family: 'Cinzel', serif;
    font-size: 0.85rem;
    line-height: 1.4;
}

.related-grid .card-body h4 a {
    color: #fff;
    text-decoration: none;
}

.related-grid .card-body h4 a:hover {
    color: var(--gold);
}

/* ─── Responsive ─── */

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

@media (max-width: 700px) {
    h1 { font-size: 2rem; letter-spacing: 2px; }
    h2 { font-size: 1.6rem; }

    .hero { min-height: 70vh; padding: 5rem 1.5rem 3rem; }

    .grid-2, .grid-3 {
        grid-template-columns: 1fr;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 64px;
        left: 0;
        right: 0;
        background: rgba(11, 11, 11, 0.98);
        flex-direction: column;
        padding: 1.5rem 2rem;
        gap: 1.2rem;
        border-bottom: 1px solid var(--border);
    }

    .nav-links.open {
        display: flex;
    }

    .nav-toggle {
        display: flex;
    }

    .newsletter-form {
        flex-direction: column;
    }

    .hero-actions {
        flex-direction: column;
        align-items: center;
    }

    .page-header { padding: 4rem 1.5rem 2rem; }
    .page-header h1 { font-size: 2rem; }
    .article-header h1 { font-size: 1.8rem; }

    .related-grid {
        grid-template-columns: 1fr;
    }

    .inline-ebook-cta {
        flex-direction: column;
        text-align: center;
    }
}
