/* Core Layout Settings */
:root {
    --bg-dark: #080808; /* The deep near-black from our vignette */
    --accent-green: #4ade80;
    --text-header: 'Exo 2', sans-serif;
    --text-body: 'Merriweather', serif;
}

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

body {
    background-color: var(--bg-dark);
    color: white;
    font-family: var(--text-body);
    overflow-x: hidden;
}

/* The Immersive Hero & Vignette Scaling */
.hero-section {
    position: relative;
    width: 100%;
    min-height: 100vh;
    background-image: url('/imgs/home-background-small.png');
    background-size: cover;
    background-position: center top;
    background-attachment: fixed;
    display: flex;
    flex-direction: column;
}

.vignette-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* This handles the horizontal scaling to ultrawide */
    background: radial-gradient(circle, transparent 40%, var(--bg-dark) 100%),
                linear-gradient(to bottom, transparent 70%, var(--bg-dark) 100%);
    pointer-events: none;
    z-index: 1;
}

/* Navbar Styling */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2px 5%;
    background: rgba(4, 10, 20, 0.50);
    backdrop-filter: blur(8px);
    overflow: visible;
}

.nav-logo {
    height: 80px;
    filter: drop-shadow(0 0 10px rgba(0,0,0,0.5));
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-links a {
    text-decoration: none;
    color: #ccc;
    font-family: var(--text-header);
    font-size: 0.9rem;
    letter-spacing: 1px;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: white;
}

/* Content Positioning */
@keyframes contentFadeIn {
    to { opacity: 1; }
}

.hero-content-wrapper {
    position: relative;
    z-index: 5;
    padding-top: 50vh;
    padding-bottom: 80px;
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
    opacity: 0;
    animation: contentFadeIn 1s ease-out 1.2s forwards;
}

/* Skip animation when session has already seen the fade */
html.no-fade .hero-content-wrapper {
    opacity: 1 !important;
    animation: none !important;
}

.content-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 40px;
    width: 100%;
    padding: 0 5%;
}

/* Stone Tablet Box */
.stone-tablet {
    background-color: rgba(4, 16, 32, 0.92);
    background-image: url('/imgs/stone-tablet-bg.png');
    background-size: cover;
    padding: 40px;
    border: 1px solid rgba(0, 200, 255, 0.40);
    box-shadow:
        0 20px 50px rgba(0, 0, 0, 0.85),
        0 0 35px rgba(0, 200, 255, 0.18),
        inset 0 0 40px rgba(0, 80, 160, 0.06);
}

.headline {
    font-family: var(--text-header);
    font-size: 2.2rem;
    margin-bottom: 20px;
    letter-spacing: 1px;
}

.description {
    line-height: 1.6;
    color: #ddd;
    margin-bottom: 30px;
}

/* Feature List inside stone tablet */
.stone-tablet ul {
    list-style: none;
    margin-bottom: 30px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.stone-tablet ul li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    color: #cde8f5;
    line-height: 1.5;
    font-size: 0.95rem;
}

.stone-tablet ul li::before {
    content: '▶';
    flex-shrink: 0;
    color: rgba(0, 200, 255, 0.85);
    font-size: 0.65rem;
    margin-top: 5px;
    text-shadow: 0 0 8px rgba(0, 200, 255, 0.8);
}

/* Dynamic Button */
.cta-button {
    display: inline-block;
    padding: 15px 45px;
    background: linear-gradient(135deg, #14532d 0%, #064e3b 100%);
    border: 1px solid var(--accent-green);
    border-radius: 4px;
    cursor: pointer;
    box-shadow: 0 0 15px rgba(74, 222, 128, 0.2);
    transition: transform 0.2s;
}

.cta-button span {
    font-family: var(--text-header);
    color: white;
    font-size: 1.2rem;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 25px rgba(74, 222, 128, 0.4);
}

/* Feature Cards (Right Side) */
.feature-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
    justify-content: flex-end;
}

.feature-card {
    background: rgba(4, 16, 32, 0.88);
    backdrop-filter: blur(10px);
    border-left: 4px solid rgba(0, 200, 255, 0.65);
    padding: 20px;
    box-shadow:
        0 4px 20px rgba(0, 0, 0, 0.6),
        0 0 18px rgba(0, 200, 255, 0.10);
    transition: background 0.3s, box-shadow 0.3s;
}

.feature-card:hover {
    background: rgba(0, 30, 55, 0.92);
    box-shadow:
        0 4px 20px rgba(0, 0, 0, 0.6),
        0 0 28px rgba(0, 200, 255, 0.22);
}

.feature-card h3 {
    font-family: var(--text-header);
    font-size: 1rem;
    letter-spacing: 1px;
}

/* How It Works Section */
.how-it-works {
    background: #060e1a;
    padding: 80px 5%;
    border-top: 1px solid rgba(0, 200, 255, 0.10);
}

.how-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: start;
}

.how-col {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.how-col .how-title {
    padding-left: 20px;
}

.how-title {
    font-family: var(--text-header);
    font-size: 1.2rem;
    letter-spacing: 3px;
    color: rgba(0, 200, 255, 0.90);
    text-shadow: 0 0 20px rgba(0, 200, 255, 0.35);
}

.video-frame {
    width: 100%;
    aspect-ratio: 16 / 9;
    border: 1px solid rgba(0, 200, 255, 0.30);
    box-shadow:
        0 0 40px rgba(0, 200, 255, 0.15),
        0 20px 60px rgba(0, 0, 0, 0.7);
    background: #000;
}

.video-frame iframe {
    width: 100%;
    height: 100%;
    display: block;
}

.needs-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.needs-list li {
    display: flex;
    align-items: center;
    gap: 14px;
    font-family: var(--text-header);
    font-size: 1rem;
    letter-spacing: 0.5px;
    color: #cde8f5;
    padding: 16px 20px;
    background: rgba(4, 16, 32, 0.80);
    border: 1px solid rgba(0, 200, 255, 0.18);
    box-shadow: 0 0 14px rgba(0, 200, 255, 0.06);
    transition: background 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.needs-list li:hover {
    background: rgba(0, 30, 55, 0.92);
    border-color: rgba(0, 200, 255, 0.50);
    box-shadow: 0 0 22px rgba(0, 200, 255, 0.20);
}

.needs-list a {
    color: inherit;
    text-decoration: none;
}

.needs-list li::before {
    content: '◆';
    flex-shrink: 0;
    color: rgba(0, 200, 255, 0.80);
    font-size: 0.55rem;
    text-shadow: 0 0 8px rgba(0, 200, 255, 0.9);
}

@media (max-width: 768px) {
    .how-inner {
        grid-template-columns: 1fr;
    }
}

/* Footer */
.site-footer {
    background: rgba(4, 10, 20, 0.95);
    border-top: 1px solid rgba(0, 200, 255, 0.12);
    padding: 28px 5%;
}

.footer-inner {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 8px;
}

.footer-links {
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-links a {
    color: #aaa;
    text-decoration: none;
    font-family: var(--text-header);
    font-size: 0.82rem;
    letter-spacing: 1px;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: rgba(0, 200, 255, 0.9);
}

.footer-sep {
    color: #444;
}

.footer-copy {
    color: #555;
    font-family: var(--text-header);
    font-size: 0.78rem;
    letter-spacing: 0.5px;
}


/* Hamburger Button */
.hamburger-btn {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
}

.hamburger-btn span {
    display: block;
    width: 24px;
    height: 2px;
    background: #ccc;
    border-radius: 2px;
    transition: transform 0.25s, opacity 0.25s;
}

/* Animate to X when open */
.navbar.nav-open .hamburger-btn span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.navbar.nav-open .hamburger-btn span:nth-child(2) { opacity: 0; }
.navbar.nav-open .hamburger-btn span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── RESPONSIVE ──────────────────────────────────────────────── */
@media (max-width: 768px) {

    /* Switch nav to hamburger */
    .hamburger-btn {
        display: flex;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        gap: 0;
        background: rgba(4, 10, 20, 0.95);
        backdrop-filter: blur(10px);
        border-top: 1px solid rgba(0, 200, 255, 0.15);
        padding: 8px 0;
    }

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

    .nav-links li {
        width: 100%;
    }

    .nav-links a {
        display: block;
        padding: 12px 5%;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }

    /* Single-column content grid */
    .content-grid {
        grid-template-columns: 1fr;
    }

    .feature-list {
        justify-content: flex-start;
    }
}
