/* -------------------------------------------------------------------------- */
/* 1. DESIGN TOKENS (The "ThemeData" of landing page)                    */
/* -------------------------------------------------------------------------- */
:root {
    --bg-color: #0f172a;
    --card-bg: #1e293b;
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --primary: #10b981;
    --primary-hover: #059669;
    --secondary: #334155;
    --secondary-hover: #475569;
    --accent: #6366f1;
}

/* -------------------------------------------------------------------------- */
/* 2. BASE STYLES (Global Resets and Typography)                              */
/* -------------------------------------------------------------------------- */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.6;
    padding: 40px 20px;
    overflow-x: hidden;
}

/* -------------------------------------------------------------------------- */
/* 3. LAYOUT (The main Scaffold container)                                    */
/* -------------------------------------------------------------------------- */
.container {
    max-width: 1100px;
    margin: 0 auto;
    text-align: center;
}

/* -------------------------------------------------------------------------- */
/* 4. HERO SECTION (The Top Branding and Intro)                               */
/* -------------------------------------------------------------------------- */
header {
    margin-bottom: 60px;
    padding: 40px 0;
}

.logo {
    font-size: 3.5rem;
    margin-bottom: 20px;
    display: inline-block;
    animation: float 3s ease-in-out infinite;
}

h1 {
    font-size: 2.8rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 16px;
    background: linear-gradient(to right, #ffffff, #94a3b8);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

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

/* -------------------------------------------------------------------------- */
/* 5. INTERACTIVE BUTTONS                                                     */
/* -------------------------------------------------------------------------- */
.cta-group {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.2s ease;
}

.button.primary {
    background: var(--primary);
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(16, 185, 129, 0.3);
}

.button.primary:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
}

.button.secondary {
    background: var(--secondary);
    color: var(--text-main);
}

.button.secondary:hover {
    background: var(--secondary-hover);
    transform: translateY(-2px);
}

/* -------------------------------------------------------------------------- */
/* 6. VIDEO SHOWCASE (Embedded MP4 Player)                                    */
/* -------------------------------------------------------------------------- */
.video-showcase {
    margin-bottom: 80px;
}

.video-wrapper {
    width: 100%;
    max-width: 800px;
    aspect-ratio: 16 / 9;
    margin: 30px auto 0 auto;
    border-radius: 24px;
    overflow: hidden;
    background-color: #000000;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    border: 4px solid #1e293b;
    display: flex;
    align-items: center;
    justify-content: center;
}

.video-wrapper video {
    width: 100%;
    height: 100%;
    display: block;
    outline: none;
    object-fit: contain;
}

.video-wrapper video:-webkit-full-screen {
    width: 100vw;
    height: 100vh;
    object-fit: contain;
    border-radius: 0;
}

.video-wrapper video:fullscreen {
    width: 100vw;
    height: 100vh;
    object-fit: contain;
    border-radius: 0;
}

/* -------------------------------------------------------------------------- */
/* 7. SECTION TYPOGRAPHY (Headings and Accents)                               */
/* -------------------------------------------------------------------------- */
section {
    margin-bottom: 60px;
}

h2 {
    font-size: 1.8rem;
    margin-bottom: 30px;
    position: relative;
    display: inline-block;
    letter-spacing: -0.01em;
}

h2::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 3px;
    background: var(--accent);
    border-radius: 2px;
}

/* -------------------------------------------------------------------------- */
/* 8. SCREENSHOT GALLERY  */
/* -------------------------------------------------------------------------- */
.gallery-container {
    width: 95%;
    max-width: 1100px;
    margin: 10px auto 40px auto;
    overflow: hidden;
    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);
}

.screenshot-gallery {
    display: flex;
    gap: 40px;
    overflow-x: auto;
    padding: 20px 0;
    cursor: grab;
    scroll-behavior: auto;
    -ms-overflow-style: none;
    scrollbar-width: none;
    will-change: scroll-position;
}

.screenshot-gallery::-webkit-scrollbar {
    display: none;
}

.screenshot-gallery:active {
    cursor: grabbing;
}

.screenshot-gallery img {
    flex: 0 0 auto;
    height: 520px;
    width: auto;
    border-radius: 28px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    user-select: none;
    -webkit-user-drag: none;
    pointer-events: auto;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.screenshot-gallery img:hover {
    transform: scale(1.04) translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
}

/* -------------------------------------------------------------------------- */
/* 9. FEATURES GRID  */
/* -------------------------------------------------------------------------- */
.features-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    text-align: left;
}

.feature-card {
    background: var(--card-bg);
    padding: 24px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: border-color 0.3s ease;
    flex: 1 1 280px;
    max-width: 320px;
}

.feature-card:hover {
    border-color: var(--accent);
}

.feature-icon {
    font-size: 1.5rem;
    margin-bottom: 12px;
}

.feature-card h3 {
    font-size: 1.1rem;
    margin-bottom: 6px;
    font-weight: 600;
}

.feature-card p {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* -------------------------------------------------------------------------- */
/* 10. FOOTER                                                                 */
/* -------------------------------------------------------------------------- */
footer {
    margin-top: 100px;
    padding-bottom: 40px;
    color: var(--text-muted);
    font-size: 1.1rem;
    font-weight: 500;
}

.heart {
    color: #ef4444;
    display: inline-block;
    margin-left: 4px;
    font-size: 1.2rem;
    animation: heartbeat 2s ease-in-out infinite;
}

/* -------------------------------------------------------------------------- */
/* 11. ANIMATION DEFINITIONS                                                  */
/* -------------------------------------------------------------------------- */
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

@keyframes heartbeat {
    0% { transform: scale(1); }
    5% { transform: scale(1.25); }
    10% { transform: scale(1.1); }
    15% { transform: scale(1.25); }
    30% { transform: scale(1); }
    100% { transform: scale(1); }
}
