/* --- VARIABLES & RESET --- */

@import url('https://fonts.googleapis.com/css2?family=Courier+Prime:wght@400;700&family=Inter:wght@400;600&display=swap');

:root {
    --bg-main: #120a0a; /* Deep dark background */
    --bg-secondary: #1a1111; /* Slightly lighter for cards */
    --accent: #ff003c; /* Crimson */
    --accent-hover: #d10032;
    --text-primary: #ffffff;
    --text-secondary: #b3b3b3;
    
    --font-mono: 'Courier Prime', monospace; /* The Star */
    --font-body: 'Inter', sans-serif;        /* The Support */
    
    --section-spacing: 100px;
}

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

html {
    scroll-behavior: smooth;
}

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

/* --- TYPOGRAPHY --- */
h1, h2, h3, .logo, .btn {
    font-family: var(--font-mono);
    font-weight: 700;
}

h1 {
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 20px;
}

h2.section-title {
    font-size: 2.5rem;
    margin-bottom: 40px;
}

h3 {
    font-size: 1.25rem;
    margin-bottom: 10px;
}

p.subhead {
    font-size: 1.2rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin-bottom: 30px;
}

.accent {
    color: var(--accent);
}

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

a { text-decoration: none; color: inherit; }

/* --- UTILITIES --- */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.section-spacer {
    padding: var(--section-spacing) 0;
}

/* --- BUTTONS --- */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 4px;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 2px solid transparent;
}

.btn-primary {
    background-color: var(--accent);
    color: white;
}

.btn-primary:hover {
    background-color: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 0, 60, 0.3);
}

.btn-outline {
    border-color: var(--accent);
    color: var(--accent);
}

.btn-outline:hover {
    background-color: var(--accent);
    color: white;
}

.btn-large {
    padding: 16px 32px;
    font-size: 1.1rem;
}

/* --- NAVBAR --- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px 0;
    z-index: 100;
    background: rgba(18, 10, 10, 0.8); /* Semi-transparent background */
    backdrop-filter: blur(10px); /* Blur effect behind nav */
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    letter-spacing: -1px;
}

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

.nav-links a {
    font-family: var(--font-mono);
    font-size: 0.9rem;
    color: var(--text-secondary);
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--accent);
}

.community-btn {
    border: 1px solid var(--text-secondary);
    padding: 8px 16px;
    border-radius: 4px;
}

.community-btn:hover {
    border-color: var(--accent);
}


/* --- HERO SECTION --- */
.hero {
    padding-top: 180px; /* Space for fixed nav */
    padding-bottom: 100px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-cta {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    margin-bottom: 60px;
}

.app-store-links {
    display: flex;
    gap: 15px;
    font-size: 0.9rem;
    color: var(--text-secondary);
    align-items: center;
}

.store-link:hover {
    text-decoration: underline;
    color: var(--text-primary);
}

/* --- ABOUT US GRID --- */
.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.about-card {
    background: var(--bg-secondary);
    padding: 40px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: 0.3s;
}

.about-card:hover {
    border-color: var(--accent);
    transform: translateY(-5px);
}
.about-card p { color: var(--text-secondary); }

/* --- RSVP DEMO PLAYER --- */
.demo-container {
    display: flex;
    justify-content: center;
    width: 100%;
    margin-top: 40px;
}

.rsvp-player {
    position: relative;
    width: 100%;
    max-width: 800px;
    aspect-ratio: 16/9;
    background-color: transparent;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

/* Faint Lines */
.guide-line {
    position: absolute;
    left: 0; right: 0;
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
    width: 100%;
    z-index: 1;
}
.guide-line.top { top: 35%; }
.guide-line.bottom { bottom: 35%; }

/* The Word Display */
.reader-display {
    position: relative;
    z-index: 10;
    width: 100%;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Courier Prime', monospace;
    font-size: 4rem; 
    color: #ffffff;
}

/* THE MAGIC TRICK: Center Alignment */
.word-container {
    display: flex;
    align-items: baseline;
    white-space: pre;
}

#word-left { text-align: right; min-width: 300px; }
#word-center { display: inline-block; width: 1ch; text-align: center; color: var(--accent); font-weight: 700; }
#word-right { text-align: left; min-width: 300px; }

/* Controls Bar */
.controls {
    position: absolute;
    bottom: 30px;
    display: flex;
    gap: 20px;
    align-items: center;
    z-index: 20;
}

.ctrl-btn {
    background: none;
    border: none;
    color: #666;
    cursor: pointer;
    width: 24px; height: 24px;
    transition: 0.2s;
}

.ctrl-btn.play-btn {
    color: var(--accent);
    width: 48px; height: 48px;
    background: rgba(255, 0, 60, 0.1);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
}

.ctrl-btn.play-btn:hover {
    background: var(--accent);
    color: white;
    transform: scale(1.1);
}

.ctrl-btn.disabled { cursor: not-allowed; opacity: 0.5; }
.heart-icon { position: absolute; bottom: 42px; right: 40px; color: #333; width: 20px; }
.hidden { display: none; }

@media (max-width: 600px) {
    .reader-display { font-size: 2.5rem; }
    #word-left, #word-right { min-width: 120px; }
}

/* --- FEATURES INTERACTIVE SECTION --- */
.feature-container {
    display: flex;
    gap: 50px;
    align-items: flex-start;
}

.feature-controls {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.feature-btn {
    padding: 25px;
    background: var(--bg-secondary);
    border-radius: 12px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.3s;
}
/* Hover state for non-active buttons */
.feature-btn:hover:not(.active) {
    border-color: rgba(255, 0, 60, 0.3);
    background: #251515;
}

/* Active state */
.feature-btn.active {
    border-color: var(--accent);
    background: #2a1215; /* Subtle red tint */
    box-shadow: 0 0 20px rgba(255, 0, 60, 0.1);
}

.feature-btn h3 { color: var(--text-primary); }
.feature-btn p { color: var(--text-secondary); font-size: 0.95rem; margin-top: 8px;}

.feature-display {
    flex: 1.5;
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    background: var(--bg-secondary);
    aspect-ratio: 16/9;
    border: 2px solid rgba(255, 255, 255, 0.05);
}

/* Stacking videos on top of each other */
.video-stack {
    position: relative;
    width: 100%;
    height: 100%;
}

.feature-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0; /* Hidden by default */
    transition: opacity 0.4s ease-in-out;
}

.feature-video.active {
    opacity: 1; /* Show only the active one */
    z-index: 2;
}


/* --- DOWNLOAD STEPS (Redesigned) --- */
.download-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 60px;
}

.steps-container {
    max-width: 800px;
    margin: 0 auto;
}

.step-item {
    display: flex;
    gap: 30px;
    margin-bottom: 50px;
    position: relative;
}

/* The vertical line connecting steps */
.step-item:not(:last-child)::after {
    content: '';
    position: absolute;
    left: 25px; /* Center of the circle */
    top: 60px; /* Below circle */
    bottom: -30px;
    width: 2px;
    background: rgba(255, 0, 60, 0.3);
    z-index: 0;
}

.step-number {
    width: 50px;
    height: 50px;
    background: var(--accent);
    color: white;
    font-family: var(--font-mono);
    font-weight: 700;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    flex-shrink: 0;
    z-index: 1;
    box-shadow: 0 0 20px rgba(255, 0, 60, 0.4);
}

.step-content h3 { font-size: 1.5rem; margin-bottom: 15px; }
.step-content p { color: var(--text-secondary); margin-bottom: 15px; }

.step-image {
    width: 100%;
    max-width: 500px;
    border-radius: 8px;
    border: 2px solid rgba(255, 0, 60, 0.3);
    margin-top: 20px;
}


/* --- FOOTER --- */
footer {
    padding: 50px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--text-secondary);
}
footer .logo { margin-bottom: 20px; display: inline-block;}


/* --- MEDIA QUERIES (RESPONSIVENESS) --- */
@media (max-width: 900px) {
    h1 { font-size: 2.5rem; }
    
    /* Nav becomes simpler on mobile */
    .nav-links { display: none; } /* Hiding for simplicity in this demo, would usually use a hamburger menu */
    .navbar { justify-content: center; }
    
    /* Stack features */
    .feature-container { flex-direction: column; }
    .feature-display { width: 100%; aspect-ratio: 16/9; }
}

@media (max-width: 600px) {
    /* Disable complex MacBook frame on small screens */
    .macbook { animation: none; }
    .screen { border: 5px solid #222; border-radius: 10px; }
    .base, .camera { display: none; }
    
    .hero-cta { width: 100%; }
    .btn-large { width: 100%; text-align: center; }
}

/* --- 3-BUTTON GRID --- */
.button-grid {
    display: flex;
    justify-content: center; /* Enforces centering */
    gap: 20px;
    flex-wrap: wrap; /* Stacks them on mobile */
    margin-bottom: 15px;
}

.btn-primary {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 160px; /* Makes them all the same width */
    justify-content: center;
    font-family: var(--font-mono); /* Courier Prime for buttons */
    font-weight: 700;
}

.icon {
    font-size: 1.2rem;
}

.small-text {
    font-size: 0.8rem;
    color: var(--text-secondary);
    font-family: var(--font-mono);
}

/* Force center alignment for the whole hero section */
.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center; /* Horizontal Center */
    text-align: center;
}