/* ==========================================================
    Theme tokens (CSS variables)
    ========================================================== */
:root {
    /* Colors */
    --purple-primary: #8B5CF6;
    --purple-dark: #7C3AED;
    --purple-darker: #6D28D9;
    --gold-primary: #FBBF24;
    --gold-dark: #F59E0B;
    --gold-darker: #D97706;
    --bg-dark: rgba(15, 12, 41, 0.95);
    --bg-medium: rgba(48, 43, 99, 0.95);
    --bg-light: rgba(36, 36, 62, 0.95);
    --text-primary: rgba(229, 231, 235, 1);
    --text-secondary: rgba(229, 231, 235, 0.8);
    --text-muted: rgba(229, 231, 235, 0.6);
    
    /* Spacing */
    --container-max: 1200px;
    --section-padding: 3rem 2rem;
    
    /* Effects */
    --glow-purple: 0 0 30px rgba(139, 92, 246, 0.3);
    --glow-gold: 0 0 30px rgba(251, 191, 36, 0.3);
    --shadow-card: 0 4px 20px rgba(0, 0, 0, 0.5);
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    color: var(--text-primary);
    background: linear-gradient(135deg, var(--bg-dark), var(--bg-medium), var(--bg-light));
    background-attachment: fixed;
    line-height: 1.6;
    overflow-x: hidden;
}

/* ==========================================================
    Markdown content (typography + tables)
    ========================================================== */

/* Make markdown tables readable and responsive (Timeline relies on this). */
.markdown-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.25rem 0;
    background: rgba(15, 12, 41, 0.5);
    border: 1px solid rgba(229, 231, 235, 0.14);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
}

/* Horizontal scrolling on small screens. */
.markdown-content table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.markdown-content thead th {
    position: sticky;
    top: 0;
    z-index: 2;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.35), rgba(251, 191, 36, 0.18));
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.8rem;
}

.markdown-content th,
.markdown-content td {
    padding: 0.85rem 1rem;
    text-align: left;
    vertical-align: top;
    border-bottom: 1px solid rgba(229, 231, 235, 0.12);
}

.markdown-content tbody tr:nth-child(odd) {
    background: rgba(48, 43, 99, 0.22);
}

.markdown-content tbody tr:hover {
    background: rgba(139, 92, 246, 0.12);
}

.markdown-content tbody tr:last-child td {
    border-bottom: none;
}

.markdown-content td:first-child,
.markdown-content th:first-child {
    white-space: nowrap;
    min-width: 8ch;
}

/* Chronicles landscape cards: allow description to be omitted and hydrated later */
.landscape-card__description:empty {
    display: none;
}

html {
    scroll-behavior: smooth;
}

/* (debug outline removed) */

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Georgia', 'Times New Roman', serif;
    letter-spacing: 0.05em;
}

/* ==========================================================
    Home page sections
    ========================================================== */

/* Hero */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    background: url('images/vroomfogle-castle.png') center/cover no-repeat;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(15, 12, 41, 0.85),
        rgba(48, 43, 99, 0.75),
        rgba(139, 92, 246, 0.3)
    );
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 2rem;
    animation: fadeInUp 1s ease-out;
}

.hero-title {
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 700;
    background: linear-gradient(135deg, var(--gold-primary), var(--gold-dark), var(--gold-darker));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: var(--glow-gold);
    margin-bottom: 1rem;
    animation: titleGlow 3s ease-in-out infinite alternate;
    line-height: 1.2;
}

.company-line {
    font-size: 0.6em;
    display: block;
}

.hero-subtitle {
    font-size: clamp(1.2rem, 3vw, 1.8rem);
    color: var(--text-secondary);
    font-style: italic;
    margin-bottom: 1.5rem;
    letter-spacing: 0.1em;
}

.hero-description {
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-button {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.4), rgba(124, 58, 237, 0.4));
    border: 2px solid rgba(139, 92, 246, 0.6);
    color: var(--text-primary);
    padding: 1rem 2.5rem;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    overflow: hidden;
    cursor: pointer;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(139, 92, 246, 0.5);
    border-color: rgba(139, 92, 246, 0.8);
}

.button-glow {
    position: absolute;
    inset: -2px;
    background: linear-gradient(45deg, transparent, rgba(139, 92, 246, 0.6), transparent);
    border-radius: 12px;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.cta-button:hover .button-glow {
    opacity: 1;
    animation: buttonShine 1.5s ease infinite;
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-muted);
    font-size: 0.9rem;
    animation: bounce 2s ease-in-out infinite;
}

.scroll-indicator svg {
    opacity: 0.6;
}

/* ==========================================================
    Layout
    ========================================================== */

/* Layout: container */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 2rem;
}

/* Layout: sections */
.section {
    padding: var(--section-padding);
    position: relative;
}

/* ==========================================================
    Components
    ========================================================== */

/* Home: paired feature cards (Nomikos + Andraax) */
.home-feature-pair {
    padding-top: 4rem;
    padding-bottom: 4rem;
}

.home-feature-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2rem;
    align-items: stretch;
}

/* Home: keep the CTA buttons aligned at the bottom inside the paired cards */
.home-feature-grid .feature-card {
    display: flex;
    flex-direction: column;
}

/* Align portrait-card images in the homepage pair so mixed aspect ratios don't break alignment */
.home-feature-grid .feature-image-small {
    width: 100%;
    max-width: none;
    height: 220px;
    object-fit: cover;
    object-position: center;
}

@media (max-width: 900px) {
    .home-feature-grid {
        grid-template-columns: 1fr;
    }
}

/* Home: parallax */
.parallax-section {
    position: relative;
    height: 42vh;
    min-height: 320px;
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    overflow: hidden;
}

.library-parallax {
    background-image: url('images/vroomfogle-and-company.png');
}

.company-parallax {
    background-image: url('images/vroomfogle-pajamas.png');
}

.andraax-parallax {
    background-image: url('images/vroomfogle-library.png');
}

.parallax-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(15, 12, 41, 0.3),
        rgba(15, 12, 41, 0.2),
        rgba(15, 12, 41, 0.3)
    );
}

/* ==========================================================
    Typography helpers
    ========================================================== */

.section-title {
    font-size: clamp(1.5rem, 4vw, 2rem);
    text-align: center;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--gold-primary), var(--gold-dark));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-subtitle {
    text-align: center;
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 3rem;
    font-style: italic;
}

/* ==========================================================
    Home page: Vroomfogle/about section
    ========================================================== */
.vroomfogle-section {
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.08), rgba(245, 158, 11, 0.05));
    border-top: 1px solid rgba(251, 191, 36, 0.2);
    border-bottom: 1px solid rgba(251, 191, 36, 0.2);
}

.vroomfogle-content {
    max-width: 800px;
    margin: 0 auto;
}

.vroomfogle-text {
    background: rgba(30, 20, 60, 0.4);
    border: 1px solid rgba(251, 191, 36, 0.3);
    border-radius: 12px;
    padding: 2rem;
    backdrop-filter: blur(10px);
}

/* ==========================================================
    Chronicles pages (Legacy of the Y'kin)
    ========================================================== */

.page-header {
    position: relative;
    padding: 6rem 0 4.5rem;
    /* Standard header hero:
       - Image comes from --header-bg (e.g. url('...')).
       - We use a single background (cover) and readability overlays.
       - This avoids the “extra band” artifact caused by layered pseudo-elements.
    */
    background:
        linear-gradient(135deg, rgba(15, 12, 41, 0.88), rgba(48, 43, 99, 0.78), rgba(139, 92, 246, 0.38)),
        var(--header-bg, none) center / cover no-repeat;
    background-color: rgba(15, 12, 41, 0.92);
    background-attachment: fixed;
    border-bottom: 1px solid rgba(251, 191, 36, 0.2);
}

/* Chronicles landing page: more static hero, centered best-fit image.
   This is intentionally scoped so other legacy headers keep their current look. */
.page-header.page-header--chronicles {
    background-attachment: scroll;
    background:
        linear-gradient(135deg, rgba(15, 12, 41, 0.92), rgba(48, 43, 99, 0.82), rgba(139, 92, 246, 0.42)),
        var(--header-bg, none) center / 100% auto no-repeat;
    background-color: rgba(15, 12, 41, 0.95);
}

/* Setting landing page: match Chronicles header centering behavior. */
.page-header.page-header--setting {
    background-attachment: scroll;
    background:
        linear-gradient(135deg, rgba(15, 12, 41, 0.92), rgba(48, 43, 99, 0.82), rgba(139, 92, 246, 0.42)),
        var(--header-bg, none) center / 100% auto no-repeat;
    background-color: rgba(15, 12, 41, 0.95);
}

.page-header__overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 20% 20%, rgba(251, 191, 36, 0.12), transparent 50%),
                radial-gradient(circle at 70% 30%, rgba(139, 92, 246, 0.18), transparent 55%);
}

.page-header .container {
    position: relative;
    z-index: 1;
}

@media (max-width: 900px) {
    .page-header {
        /* Mobile browsers often ignore fixed backgrounds or render them poorly. */
        padding: 4.5rem 0 3.5rem;
        background-attachment: scroll;
    }
}

.back-link {
    display: inline-block;
    color: var(--text-secondary);
    text-decoration: none;
    margin-bottom: 1rem;
    border-bottom: 1px solid rgba(251, 191, 36, 0.0);
    transition: all 0.2s ease;
}

.back-link:hover {
    color: var(--gold-primary);
    border-bottom-color: rgba(251, 191, 36, 0.35);
}

.page-title {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, var(--gold-primary), var(--gold-dark));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.page-subtitle {
    color: var(--text-secondary);
    max-width: 900px;
    font-size: clamp(1.1rem, 2.2vw, 1.45rem);
    line-height: 1.5;
}

.landscape-cards {
    display: grid;
    gap: 1.5rem;
}

.landscape-card {
    position: relative;
    min-height: 220px;
    border-radius: 16px;
    border: 2px solid var(--purple-primary);
    overflow: hidden;
    text-decoration: none;
    color: var(--text-primary);
    background: center/cover no-repeat var(--card-bg);
    box-shadow: var(--shadow-card);
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.landscape-card:hover {
    transform: translateY(-3px);
    border-color: var(--purple-primary);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.65), 0 0 40px rgba(139, 92, 246, 0.35);
}

.landscape-card__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        90deg,
        rgba(15, 12, 41, 0.92) 0%,
        rgba(15, 12, 41, 0.75) 50%,
        rgba(15, 12, 41, 0.35) 100%
    );
}

.landscape-card__content {
    position: relative;
    z-index: 1;
    padding: 1.75rem;
    max-width: 820px;
}

.landscape-card__title {
    font-size: 1.6rem;
    margin-bottom: 0.5rem;
}

.landscape-card__subtitle {
    color: var(--text-secondary);
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 0.9rem;
}

.landscape-card__description {
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.landscape-card__cta {
    display: inline-block;
    padding: 0.6rem 1rem;
    border-radius: 10px;
    border: 1px solid var(--purple-primary);
    background: rgba(139, 92, 246, 0.18);
    color: var(--text-primary);
    font-weight: 600;
    transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.landscape-card:hover .landscape-card__cta,
.landscape-card:focus-visible .landscape-card__cta {
    transform: translateX(4px);
    background: rgba(139, 92, 246, 0.24);
    border-color: rgba(139, 92, 246, 0.65);
}

.link-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.25rem;
}

.link-card {
    position: relative;
    min-height: 140px;
    border-radius: 14px;
    border: 2px solid var(--purple-primary);
    overflow: hidden;
    text-decoration: none;
    color: var(--text-primary);
    background: center/cover no-repeat var(--card-bg);
    box-shadow: var(--shadow-card);
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.link-card:hover {
    transform: translateY(-3px);
    border-color: var(--purple-primary);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.65), 0 0 40px rgba(139, 92, 246, 0.35);
}

.link-card__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(15, 12, 41, 0.9), rgba(15, 12, 41, 0.55));
}

.link-card__content {
    position: relative;
    z-index: 1;
    padding: 1.25rem;
}

.link-card__title {
    font-size: 1.25rem;
    margin-bottom: 0.25rem;
}

.link-card__meta {
    color: var(--text-muted);
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    font-size: 0.9rem;
}

.markdown-content {
    background: rgba(30, 20, 60, 0.35);
    border: 1px solid rgba(139, 92, 246, 0.25);
    border-radius: 12px;
    padding: 2rem;
    backdrop-filter: blur(10px);
}

.markdown-content h1,
.markdown-content h2,
.markdown-content h3 {
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

.markdown-content h1:first-child,
.markdown-content h2:first-child,
.markdown-content h3:first-child {
    margin-top: 0;
}

.markdown-content p {
    margin: 0.75rem 0;
    color: var(--text-secondary);
}

.markdown-content strong {
    color: var(--text-primary);
    font-weight: 700;
}

.markdown-content em {
    color: var(--text-secondary);
    font-style: italic;
}

.markdown-content hr {
    border: 0;
    border-top: 1px solid rgba(139, 92, 246, 0.25);
    margin: 1.5rem 0;
}

.markdown-content a {
    color: var(--gold-primary);
}

.markdown-content ul,
.markdown-content ol {
    margin: 0.75rem 0 0.75rem 1.25rem;
    color: var(--text-secondary);
}

.markdown-content blockquote {
    margin: 1rem 0;
    padding: 0.75rem 1rem;
    border-left: 3px solid rgba(251, 191, 36, 0.55);
    background: rgba(15, 12, 41, 0.35);
}

.markdown-content pre {
    margin: 1rem 0;
    padding: 1rem;
    overflow: auto;
    border-radius: 10px;
    background: rgba(15, 12, 41, 0.7);
    border: 1px solid rgba(251, 191, 36, 0.15);
}

.markdown-content code {
    background: rgba(15, 12, 41, 0.55);
    padding: 0.15rem 0.35rem;
    border-radius: 6px;
    border: 1px solid rgba(139, 92, 246, 0.2);
}

.markdown-content pre code {
    background: transparent;
    padding: 0;
    border: 0;
}

/* Parallax divider shown between markdown sections (inserted by chronicles.js) */
.markdown-parallax-divider {
    height: 160px;
    margin: 1.75rem 0;
    border-radius: 14px;
    background:
        linear-gradient(180deg, rgba(15, 12, 41, 0.65), rgba(15, 12, 41, 0.2), rgba(15, 12, 41, 0.65)),
        var(--divider-bg, var(--header-bg, none));
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    border: 1px solid rgba(251, 191, 36, 0.18);
    box-shadow: var(--shadow-card);
}

@media (max-width: 900px) {
    .markdown-parallax-divider {
        height: 120px;
        background-attachment: scroll;
    }
}

.content-loading {
    color: var(--text-muted);
}

.content-error {
    padding: 1rem;
    border-radius: 10px;
    border: 1px solid rgba(239, 68, 68, 0.35);
    background: rgba(239, 68, 68, 0.08);
    color: var(--text-secondary);
}

.writings-grid {
    /* Writings page now renders as stacked, full-width sections. */
    display: block;
}

.writing-card {
    background: rgba(30, 20, 60, 0.35);
    border: 1px solid rgba(251, 191, 36, 0.2);
    border-radius: 12px;
    padding: 1.5rem;
    backdrop-filter: blur(10px);
}

/* New stacked/full-width writings layout */
.writing-section {
    margin: 0;
}

/*
  Writings page: make the stacked layout match our standard markdown rhythm.
  The parallax divider already creates a big visual break, so we keep the
  spacing between sections tight.
*/
.writings-grid .markdown-parallax-divider {
    margin: 1.25rem 0;
}

/* Ensure the title doesn't add extra perceived "double" spacing before the first paragraph. */
.writing-section__inner .writing-title {
    margin-bottom: 0.5rem;
}

/* Keep body typography identical to other pages (.markdown-content), but avoid an extra top gap. */
.writing-section__inner .writing-body > p:first-child {
    margin-top: 0;
}

/*
  Writings page: aggressively match the visual rhythm of other markdown pages.
  If the page *still* feels double-spaced after this, the remaining difference
  is likely panel padding (not paragraph spacing).
*/
.writings-grid {
    font-size: 1rem;
    line-height: 1.6;
}

.writings-grid .writing-body {
    line-height: inherit;
}

/* Guard rails: prevent any accidental extra per-paragraph spacing inside writings. */
.writings-grid .writing-body p {
    margin: 0.75rem 0;
}

.writing-section__inner {
    background: rgba(30, 20, 60, 0.35);
    border: 1px solid rgba(251, 191, 36, 0.2);
    border-radius: 12px;
    padding: 1.25rem;
    backdrop-filter: blur(10px);
}

@media (max-width: 900px) {
    .writing-section__inner {
        padding: 1rem;
    }
}

.writing-title {
    margin-bottom: 0.75rem;
    font-size: 1.25rem;
}

.writing-body {
    color: var(--text-secondary);
    line-height: 1.6;
}

/*
  Writings markdown typography:
  `chronicles.js` already applies `.markdown-content` to the writing body.
  Avoid duplicate rules here, because the cascade can make spacing feel "too much"
  compared to other markdown pages.
*/

.writing-attribution {
    margin-top: 1rem;
    padding-top: 0.75rem;
    border-top: 1px solid rgba(251, 191, 36, 0.2);
    color: var(--text-muted);
    font-style: italic;
    font-size: 0.95rem;
}

.vroomfogle-text p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.8;
    font-style: italic;
}

.vroomfogle-text p:last-child {
    margin-bottom: 0;
}

/* ==========================================================
    Home page: section backgrounds (Nomikos / Andraax / Coming Soon)
    ========================================================== */

/* Nomikos */
.nomikos {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.1), rgba(124, 58, 237, 0.05));
}

/* Andraax */
.andraax {
    background: linear-gradient(135deg, rgba(109, 40, 217, 0.15), rgba(88, 28, 135, 0.1));
}

.andraax-card {
    background: linear-gradient(135deg, rgba(109, 40, 217, 0.25), rgba(88, 28, 135, 0.15)) !important;
    border-color: rgba(109, 40, 217, 0.6) !important;
}

/* ==========================================================
    Cards
    ========================================================== */

/* Feature cards */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

/* Home: Legacy cards should match Future Wonders card styling, but without extra top margin */
.legacy-features-grid {
    margin-top: 2rem;
}

/* Home: Legacy card images should be visually consistent */
.legacy-features-grid .feature-image-small {
    width: 100%;
    max-width: none;
    height: 180px;
    object-fit: cover;
    object-position: center;

    /* Hint for better downscaling */
    image-rendering: auto;
    -ms-interpolation-mode: bicubic;
}

.feature-card {
    background: rgba(30, 20, 60, 0.6);
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    backdrop-filter: blur(10px);
}

/* Allow feature cards to be either <div> or <a> */
a.feature-card {
    display: block;
    color: inherit;
    text-decoration: none;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-card), var(--glow-purple);
    border-color: rgba(139, 92, 246, 0.5);
}

/* Link affordance for cards that are actual links (<a>) */
a.feature-card::after {
    content: '↗';
    position: absolute;
    top: 14px;
    right: 14px;
    width: 32px;
    height: 32px;
    display: grid;
    place-items: center;
    border-radius: 10px;
    border: 1px solid rgba(251, 191, 36, 0.25);
    background: rgba(15, 12, 41, 0.15);
    color: rgba(251, 191, 36, 0.75);
    font-size: 1rem;
    line-height: 1;
    opacity: 0;
    transform: translateY(2px);
    transition: opacity 0.2s ease, transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
    pointer-events: none;
}

a.feature-card:hover::after,
a.feature-card:focus-visible::after {
    opacity: 1;
    transform: translateY(0);
    background: rgba(15, 12, 41, 0.35);
    border-color: rgba(251, 191, 36, 0.45);
}

.feature-card.featured {
    grid-column: 1 / -1;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.2), rgba(124, 58, 237, 0.1));
    border-color: rgba(139, 92, 246, 0.5);
    box-shadow: var(--shadow-card);
}

.feature-image {
    max-width: 300px;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.6), 0 0 40px rgba(139, 92, 246, 0.3);
    border: 2px solid rgba(139, 92, 246, 0.4);
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
}

.feature-image:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 30px rgba(0, 0, 0, 0.8), 0 0 60px rgba(139, 92, 246, 0.5);
}

.feature-image-small {
    max-width: 200px;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.6), 0 0 40px rgba(139, 92, 246, 0.3);
    border: 2px solid rgba(139, 92, 246, 0.4);
    margin-bottom: 1rem;
    transition: all 0.3s ease;

    image-rendering: auto;
    -ms-interpolation-mode: bicubic;
}

.feature-image-small:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 30px rgba(0, 0, 0, 0.8), 0 0 60px rgba(139, 92, 246, 0.5);
}

.pajamas-image {
    max-width: 250px;
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    filter: drop-shadow(var(--glow-purple));
}

.feature-title {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--gold-primary), var(--gold-dark));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.feature-description {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.8;
}


.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1rem;
    padding: 0.5rem 1rem;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
}

.status-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.status-indicator.active {
    background: #10B981;
    box-shadow: 0 0 10px #10B981;
    animation: pulse 2s ease-in-out infinite;
}

.status-indicator.coming {
    background: var(--gold-primary);
    box-shadow: 0 0 10px var(--gold-primary);
}

/* Coming Soon */
.coming-soon {
    background: rgba(36, 36, 62, 0.3);
}

/* ==========================================================
    Footer
    ========================================================== */
.footer {
    background: rgba(15, 12, 41, 0.9);
    border-top: 2px solid rgba(139, 92, 246, 0.3);
    padding: 2rem;
    text-align: center;
}

.footer-content p {
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.footer-note {
    font-style: italic;
    font-size: 0.9rem;
}

/* ==========================================================
    Animations
    ========================================================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes titleGlow {
    from {
        filter: drop-shadow(0 0 20px rgba(251, 191, 36, 0.3));
    }
    to {
        filter: drop-shadow(0 0 40px rgba(251, 191, 36, 0.6));
    }
}

@keyframes bounce {
    0%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    50% {
        transform: translateX(-50%) translateY(10px);
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.7;
        transform: scale(1.2);
    }
}

@keyframes buttonShine {
    0% {
        transform: translateX(-100%) rotate(45deg);
    }
    100% {
        transform: translateX(200%) rotate(45deg);
    }
}

/* ==========================================================
    Responsive
    ========================================================== */
@media (max-width: 768px) {
    :root {
        --section-padding: 3rem 1.5rem;
    }
    
    .hero {
        min-height: 100vh;
        min-height: 100dvh;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .feature-card.featured {
        grid-column: 1;
    }
    
    .scroll-indicator {
        bottom: 1rem;
    }
}

@media (max-width: 480px) {
    .hero-content {
        padding: 1rem;
    }
    
    .cta-button {
        padding: 0.8rem 1.5rem;
        font-size: 1rem;
    }
    
    .section {
        padding: 2rem 1rem;
    }
}

/* ==========================================================
    Print
    ========================================================== */
@media print {
    .hero-overlay {
        opacity: 0.3;
    }
    
    .scroll-indicator {
        display: none;
    }
}
