/* Custom Properties / Tokens */
:root {
    --color-bg: #0a0a0a;
    --color-surface: #141414;
    --color-surface-light: #1f1f1f;
    --color-text: #e0e0e0;
    --color-text-muted: #9e9e9e;
    --color-accent-gold: #c5a059;
    --color-accent-gold-hover: #dfb768;
    --color-accent-copper: #b87333;
    
    --font-heading: 'Cinzel', serif;
    --font-body: 'Inter', sans-serif;
    
    --transition-smooth: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

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

body {
    background-color: var(--color-bg);
    color: var(--color-text);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 500;
    color: #fff;
}

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

/* Typography */
.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
    width: 100%;
}

.section-title::after {
    content: '';
    display: block;
    margin: 10px auto 0;
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, var(--color-accent-gold), transparent);
}

.text-center {
    text-align: center;
}

/* Sections */
.section {
    padding: 6rem 0;
}

/* Hero Section */
.hero {
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background-image: url('assets/hero_bg.png');
    background-size: cover;
    background-position: center;
    text-align: center;
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(10,10,10,0.4) 0%, rgba(10,10,10,0.95) 100%);
    z-index: -1;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    background: linear-gradient(to right, #fff, var(--color-accent-gold));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero .subtitle {
    font-size: 1.2rem;
    color: var(--color-text-muted);
    max-width: 700px;
    margin: 0 auto 3rem auto;
}

.logo-container {
    margin-bottom: 2rem;
}

.brand-logo {
    height: 60px;
    width: auto;
    filter: brightness(0) invert(1) opacity(0.8); /* Make it white/silver to fit the luxury theme */
    transition: var(--transition-smooth);
}

.brand-logo:hover {
    filter: brightness(0) invert(1) opacity(1);
    transform: scale(1.05);
}

/* Buttons */
.cta-button {
    display: inline-block;
    padding: 1rem 2.5rem;
    background-color: transparent;
    color: var(--color-accent-gold);
    border: 1px solid var(--color-accent-gold);
    text-decoration: none;
    font-family: var(--font-heading);
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: var(--transition-smooth);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.cta-button:hover {
    background-color: var(--color-accent-gold);
    color: var(--color-bg);
    box-shadow: 0 0 20px rgba(197, 160, 89, 0.3);
}

.cta-button.gold {
    background-color: var(--color-accent-gold);
    color: var(--color-bg);
}

.cta-button.gold:hover {
    background-color: var(--color-accent-gold-hover);
    border-color: var(--color-accent-gold-hover);
    box-shadow: 0 0 30px rgba(197, 160, 89, 0.4);
}



/* Stages */
.stages {
    background-color: var(--color-bg);
}

.stages-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.stage-card {
    background-color: var(--color-surface);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 8px;
    padding: 2.5rem;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.stage-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--color-accent-gold), transparent);
    opacity: 0;
    transition: var(--transition-smooth);
}

.stage-card:hover {
    transform: translateY(-5px);
    background-color: var(--color-surface-light);
    box-shadow: 0 15px 30px rgba(0,0,0,0.6);
}

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

.stage-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    padding-bottom: 1rem;
}

.stage-header h3 {
    font-size: 1.5rem;
    color: var(--color-accent-gold);
}

.price {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 600;
    color: #fff;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    white-space: nowrap;
    margin-left: 2rem;
}

.price small {
    font-family: var(--font-body);
    font-size: 0.8rem;
    color: var(--color-text-muted);
    font-weight: 400;
}

.stage-body p {
    margin-bottom: 1rem;
    color: #ccc;
}

.stage-body .note {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px dashed rgba(255,255,255,0.1);
}

/* Special Boxes inside Stages */
.ad-spend-box, .bonus-box, .database-explanation {
    background-color: rgba(255,255,255,0.03);
    padding: 1.5rem;
    border-radius: 6px;
    margin-top: 1.5rem;
    border-left: 2px solid var(--color-accent-copper);
}

.ad-spend-box {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}

.drip-icon {
    width: 32px;
    height: 32px;
    color: var(--color-accent-copper);
    flex-shrink: 0;
    margin-top: 0.2rem;
}

.system-gallery {
    width: 100%;
    overflow: hidden;
    padding: 2rem 0;
    margin: 1rem 0;
    position: relative;
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.gallery-track {
    display: flex;
    gap: 1.5rem;
    width: max-content;
    animation: scroll 40s linear infinite;
}

.system-gallery:hover .gallery-track {
    animation-play-state: paused;
}

.gallery-item {
    flex: 0 0 88vw; /* Much larger on mobile */
    max-width: 500px;
    background-color: #0f0f0f;
    border: 1px solid rgba(197, 160, 89, 0.2);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    transition: var(--transition-smooth);
}

.gallery-item img {
    width: 100%;
    height: auto;
    display: block;
    filter: brightness(0.85);
    transition: var(--transition-smooth);
}

.gallery-item:hover {
    border-color: var(--color-accent-gold);
    transform: translateY(-5px) scale(1.02);
    z-index: 2;
}

.gallery-item:hover img {
    filter: brightness(1.1);
}

@keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(calc(-500px * 6 - 1.5rem * 6)); } /* Adjust based on item width + gap */
}

/* Adjust scroll for mobile since items are wider */
@media (max-width: 768px) {
    .gallery-item {
        flex: 0 0 88vw;
    }
    @keyframes scroll {
        0% { transform: translateX(0); }
        100% { transform: translateX(calc(-88vw * 6 - 1.5rem * 6)); }
    }
}

@media (min-width: 769px) {
    .gallery-item {
        flex: 0 0 500px;
    }
}

/* Summary Section */
.dark-section {
    background-color: #050505;
    border-top: 1px solid rgba(255,255,255,0.05);
}

.summary-subtitle {
    text-align: center;
    color: var(--color-text-muted);
    margin-top: -2rem;
    margin-bottom: 3rem;
}

.summary-table {
    background-color: var(--color-surface);
    max-width: 600px;
    margin: 0 auto;
    padding: 2.5rem;
    border-radius: 8px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.8);
    border: 1px solid rgba(197, 160, 89, 0.2);
}

.summary-row {
    display: flex;
    justify-content: space-between;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.summary-row:last-child {
    border-bottom: none;
}

.separator {
    border-bottom: 2px solid rgba(255,255,255,0.1);
    margin-bottom: 1rem;
    padding-bottom: 1.5rem;
}

.mt-4 {
    margin-top: 1.5rem;
}

.highlight-row {
    color: var(--color-accent-gold);
}

.total-row {
    font-size: 1.5rem;
    font-family: var(--font-heading);
    color: #fff;
    margin-top: 1rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--color-accent-gold);
}

/* Summary Notes */
.summary-notes {
    max-width: 800px;
    margin: 3rem auto 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.note-box {
    background-color: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 1.5rem;
    border-radius: 8px;
    transition: var(--transition-smooth);
}

.note-box:hover {
    background-color: rgba(255, 255, 255, 0.04);
    border-color: rgba(197, 160, 89, 0.3);
}

.note-box h4 {
    color: var(--color-accent-gold);
    font-family: var(--font-body);
    font-size: 1.05rem;
    margin-bottom: 0.5rem;
}

.note-box p {
    font-size: 0.95rem;
    color: var(--color-text-muted);
}

.note-box strong {
    color: #fff;
    font-weight: 500;
}

.cm-note {
    grid-column: 1 / -1;
    border-left: 3px solid var(--color-accent-copper);
}

/* CTA Section */
.cta {
    padding: 8rem 0;
    background: linear-gradient(to top, rgba(197, 160, 89, 0.05), var(--color-bg));
}

.cta h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.cta p {
    font-size: 1.25rem;
    color: var(--color-text-muted);
    margin-bottom: 3rem;
}

/* Animations */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 { transition-delay: 0.2s; }
.delay-2 { transition-delay: 0.4s; }
.delay-3 { transition-delay: 0.6s; }

/* Responsive */
@media (max-width: 768px) {
    .section-title {
        font-size: 1.8rem;
    }

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

    .hero .subtitle {
        font-size: 1rem;
    }
    
    .stage-header {
        flex-direction: column;
    }
    
    .price {
        margin-left: 0;
        margin-top: 0.5rem;
        align-items: flex-start;
    }

    .ad-spend-box {
        flex-direction: column;
        gap: 1rem;
    }

    .cm-note {
        grid-column: auto;
    }
}
