/* --- Base Variables --- */
:root {
    --bg-main: #09090f;
    --bg-secondary: #0f1219;
    --bg-card: #131720;
    --text-main: #e2e8f0;
    --text-muted: #8896a8;
    --accent-color: #3b82f6;
    --accent-hover: #60a5fa;
    --accent-glow: rgba(59, 130, 246, 0.25);
    --border-color: #1d2535;
    --border-hover: #2d3a50;
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* --- Reset & Global --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    background-color: var(--bg-main);
    color: var(--text-main);
    line-height: 1.7;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4 {
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.15;
    letter-spacing: -0.02em;
}

h1, h2 {
    color: #ffffff;
}

h3, h4 {
    color: #ffffff;
}

p {
    color: var(--text-muted);
    margin-bottom: 1rem;
}

a {
    color: var(--accent-color);
    text-decoration: none;
    transition: color 0.2s ease;
}

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

strong {
    color: var(--text-main);
    font-weight: 600;
}

/* --- Layout Helpers --- */
.section-padding {
    padding: 6rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.section-padding > h2 {
    text-align: center;
    margin-bottom: 2rem;
}

.section-intro {
    text-align: center;
    max-width: 780px;
    margin: 0 auto 3rem;
    font-size: 1.05rem;
    line-height: 1.75;
}

.text-content {
    max-width: 780px;
    margin: 0 auto;
}

/* --- Header & Navigation --- */
header {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: rgba(9, 9, 15, 0.75);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    z-index: 1000;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo {
    width: 36px;
    height: 36px;
    object-fit: contain;
}

.brand-text {
    font-size: 1.35rem;
    font-weight: 700;
    background: linear-gradient(135deg, #ffffff 0%, #94a3b8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

.nav-links a {
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.2s ease;
}

.nav-links a:hover {
    color: #ffffff;
}

/* --- Buttons --- */
.btn-primary {
    background: linear-gradient(135deg, #3b82f6 0%, #6366f1 100%);
    color: #ffffff !important;
    padding: 0.55rem 1.4rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    border: none;
    cursor: pointer;
    display: inline-block;
    transition: box-shadow 0.25s ease, transform 0.25s ease, filter 0.25s ease;
}

.btn-primary:hover {
    filter: brightness(1.15);
    box-shadow: 0 8px 30px rgba(99, 102, 241, 0.45);
    transform: translateY(-1px);
    color: #ffffff !important;
}

.btn-large {
    padding: 0.9rem 2.5rem;
    font-size: 1rem;
    border-radius: 10px;
}

/* --- Hero Section --- */
#hero {
    position: relative;
    padding: 15rem 2rem 10rem;
    text-align: center;
    background-image: radial-gradient(circle, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
    background-size: 28px 28px;
    overflow: hidden;
}

/* Radial blue glow behind the heading */
#hero::before {
    content: '';
    position: absolute;
    top: 55%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 900px;
    height: 600px;
    background: radial-gradient(ellipse, rgba(59, 130, 246, 0.13) 0%, transparent 70%);
    pointer-events: none;
}

.hero-inner {
    position: relative;
    z-index: 1;
    max-width: 900px;
    margin: 0 auto;
}

.hero-tag {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--accent-color);
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.28);
    padding: 0.35rem 1.1rem;
    border-radius: 100px;
    margin-bottom: 2rem;
}

#hero h1 {
    font-size: 4.25rem;
    font-weight: 800;
    letter-spacing: -0.035em;
    line-height: 1.05;
    margin-bottom: 1.5rem;
    background: linear-gradient(160deg, #ffffff 30%, #94a3b8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

#hero .lead {
    font-size: 1.2rem;
    color: var(--text-muted);
    max-width: 620px;
    margin: 0 auto 2.5rem;
    line-height: 1.75;
}

/* --- Grids & Cards --- */
.grid-2-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.grid-3-col {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.card, .feature-box {
    background-color: var(--bg-card);
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
    transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}

/* Gradient top-line that appears on hover */
.card::before, .feature-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.7), transparent);
    opacity: 0;
    transition: opacity 0.35s ease;
}

.card:hover, .feature-box:hover {
    border-color: var(--border-hover);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(59, 130, 246, 0.08);
    transform: translateY(-3px);
}

.card:hover::before, .feature-box:hover::before {
    opacity: 1;
}

.custom-list {
    list-style: none;
}

.custom-list li {
    margin-bottom: 0.85rem;
    color: var(--text-muted);
    position: relative;
    padding-left: 1.5rem;
    line-height: 1.65;
}

.custom-list li::before {
    content: "▹";
    position: absolute;
    left: 0;
    color: var(--accent-color);
}

/* Feature Numbers (Value Proposition) */
.feature-number {
    font-size: 2.75rem;
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 1;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #3b82f6 0%, #818cf8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.feature-box h4 {
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 0.65rem;
    letter-spacing: -0.01em;
}

/* --- Media --- */
.media-container {
    text-align: center;
    margin: 2.5rem 0;
}

.responsive-img {
    max-width: 100%;
    height: auto;
    border-radius: 16px;
    border: 1px solid var(--border-color);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
}

/* --- Filmstrip Video Player --- */
.filmstrip-layout {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 960px;
    margin: 0 auto;
}

.main-player {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.main-player-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem 1.5rem 0.75rem;
}

.slide-counter {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--accent-color);
    background: rgba(59, 130, 246, 0.12);
    padding: 0.25rem 0.65rem;
    border-radius: 4px;
    white-space: nowrap;
}

.slide-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0;
    color: #ffffff;
    letter-spacing: -0.01em;
}

.main-video {
    width: 100%;
    height: auto;
    display: block;
}

.filmstrip {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.75rem;
}

.filmstrip-item {
    cursor: pointer;
    border-radius: 10px;
    border: 2px solid var(--border-color);
    overflow: hidden;
    background: var(--bg-card);
    transition: border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.filmstrip-item:hover {
    border-color: var(--accent-hover);
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
}

.filmstrip-item.active {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 1px var(--accent-color), 0 10px 30px rgba(59, 130, 246, 0.2);
}

.filmstrip-thumb-wrap {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #000;
}

.filmstrip-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    pointer-events: none;
}

.filmstrip-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.35);
    opacity: 0;
    transition: opacity 0.2s ease;
}

.filmstrip-item:not(.active):hover .filmstrip-overlay {
    opacity: 1;
}

.filmstrip-item.active .filmstrip-overlay {
    opacity: 1;
    background: rgba(59, 130, 246, 0.18);
}

.play-icon {
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.92);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--bg-main);
}

.filmstrip-item.active .play-icon {
    background: var(--accent-color);
    color: #fff;
}

.filmstrip-label-wrap {
    padding: 0.5rem 0.65rem;
}

.filmstrip-label {
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--text-muted);
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: color 0.2s ease;
}

.filmstrip-item.active .filmstrip-label {
    color: var(--accent-color);
}

/* --- Footer --- */
footer {
    position: relative;
    text-align: center;
    padding: 7rem 2rem 4rem;
    background-color: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
}

/* Centered accent line at top of footer */
footer::before {
    content: '';
    position: absolute;
    top: -1px;
    left: 50%;
    transform: translateX(-50%);
    width: 280px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent-color), transparent);
}

footer h2 {
    font-size: 2.5rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    margin-bottom: 0.75rem;
}

.copyright {
    margin-top: 4rem;
    font-size: 0.82rem;
    color: #384555;
}

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

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

/* --- Media Queries --- */
@media (max-width: 900px) {
    .grid-2-col, .grid-3-col {
        grid-template-columns: 1fr;
    }

    #hero h1 {
        font-size: 2.75rem;
    }

    .nav-links {
        display: none;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
        margin-top: 1rem;
        font-size: 0.85rem;
    }

    .nav-container {
        flex-direction: column;
        padding: 1rem;
    }

    header {
        position: static;
    }

    #hero {
        padding-top: 4rem;
        padding-bottom: 6rem;
    }

    .filmstrip {
        grid-template-columns: repeat(2, 1fr);
    }

    footer h2 {
        font-size: 1.85rem;
    }
}
