:root {
    --bg-color: #050505;
    --bg-darker: #000000;
    --primary-color: #e50914;
    --primary-glow: rgba(229, 9, 20, 0.5);
    --text-white: #ffffff;
    --text-gray: #aaaaaa;
    --text-dark-gray: #666666;
    --card-bg: #0d0d0d;
    --card-border: #222222;
    --font-oswald: 'Oswald',
        sans-serif;
    --font-montserrat: 'Montserrat',
        sans-serif;
    --transition-smooth: all 0.5s cubic-bezier(0.19, 1, 0.22, 1);
}

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

html {
    scroll-behavior: smooth;
}

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

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-oswald);
    text-transform: uppercase;
    letter-spacing: 1px;
}

p {
    color: var(--text-gray);
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s;
}

ul {
    list-style: none;
}

section {
    padding: 100px 5%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

/* Background Effects */
.ambient-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    z-index: -1;
    opacity: 0.15;
}

.glow-red {
    background-color: var(--primary-color);
}

/* Typography Utilities */
.text-primary {
    color: var(--primary-color);
}

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

/* Buttons */
.btn {
    display: inline-block;
    padding: 15px 35px;
    border-radius: 4px;
    font-family: var(--font-oswald);
    font-weight: 600;
    letter-spacing: 1px;
    cursor: pointer;
    transition: 0.3s;
    text-transform: uppercase;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--text-white);
    border: none;
}

.btn-primary:hover {
    background-color: #c40812;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(229, 9, 20, 0.4);
}

.btn-outline {
    background-color: transparent;
    border: 1px solid var(--text-white);
    color: var(--text-white);
}

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

/* Navbar */
nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    background: rgba(5, 5, 5, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.logo {
    font-family: var(--font-oswald);
    font-size: 24px;
    font-weight: 700;
}

.logo span {
    color: var(--primary-color);
}

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

.nav-links li a {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-gray);
}

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

.nav-links li a.active {
    border-bottom: 2px solid var(--primary-color);
}

/* Hero Section */
.hero {
    text-align: center;
    position: relative;
    padding-top: 150px;
    background: #000;
    overflow: hidden;
    /* Ensure video doesn't overflow */
}

.hero-video-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-video-bg video {
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    object-fit: cover;
    opacity: 0.6;
    /* Adjust for legibility */
}

.hero .container {
    position: relative;
    z-index: 10;
}

.hero h1 {
    font-size: clamp(40px, 8vw, 84px);
    line-height: 1.1;
    margin-bottom: 20px;
    animation: fadeInUp 1s ease-out;
}

.hero p {
    font-size: clamp(18px, 2vw, 24px);
    max-width: 800px;
    margin: 0 auto 40px;
    animation: fadeInUp 1.2s ease-out;
}

/* Section Header */
.section-header {
    margin-bottom: 60px;
}

.section-label {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

.section-label .bar {
    width: 4px;
    height: 20px;
    background-color: var(--primary-color);
}

.section-label span {
    color: var(--primary-color);
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 3px;
}

.section-title {
    font-size: clamp(30px, 5vw, 52px);
    margin-bottom: 15px;
}

/* Cards with Glassmorphism */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.01) 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 40px;
    border-radius: 12px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(5px);
}

.card:hover {
    border-color: var(--primary-color);
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.02) 100%);
}

.card i {
    font-size: 40px;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.card h3 {
    margin-bottom: 15px;
    font-size: 24px;
}

/* Features List */
.feature-list {
    margin-top: 30px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.feature-item i {
    color: var(--primary-color);
    font-size: 18px;
}

/* Mockup Layouts */
.mockup-row {
    display: flex;
    align-items: center;
    gap: 60px;
    margin-top: 40px;
    padding-bottom: 60px;
}

.mockup-image {
    flex: 1;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.8);
    overflow: hidden;
    background: #000;
    transition: 0.5s;
}

.mockup-image:hover {
    transform: scale(1.03) rotateX(2deg) rotateY(-2deg);
}

.mockup-image img {
    width: 100%;
    display: block;
}

.mockup-content {
    flex: 1;
}

/* Pricing Section */
.pricing-card {
    border-top: 6px solid var(--primary-color);
}

.price {
    font-size: 48px;
    font-family: var(--font-oswald);
    margin: 20px 0;
    color: var(--text-white);
}

.price span {
    font-size: 18px;
    color: var(--text-gray);
    font-weight: normal;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Scroll Animations */
.reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: 1s all ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Funnel Graphic */
.funnel-container {
    max-width: 600px;
    margin: 40px auto;
}

.funnel-step {
    background: linear-gradient(90deg, var(--primary-color), transparent);
    margin-bottom: 5px;
    padding: 15px 30px;
    clip-path: polygon(0% 0%, 100% 0%, 95% 100%, 5% 100%);
    text-align: center;
    font-family: var(--font-oswald);
    font-weight: 700;
    text-transform: uppercase;
}

/* Investment Table */
.investment-table {
    width: 100%;
    border-collapse: collapse;
}

.investment-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid var(--card-border);
}

.price-box {
    background: #fff;
    color: #000;
    padding: 5px 15px;
    font-family: var(--font-oswald);
    font-weight: 700;
    border-radius: 2px;
}

.total-block {
    background: var(--primary-color);
    padding: 20px;
    margin-top: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.total-block h2 {
    margin: 0;
    font-size: 32px;
}

/* Chart Placeholder */
.chart-container {
    height: 300px;
    width: 100%;
    position: relative;
    border-left: 2px solid var(--text-gray);
    border-bottom: 2px solid var(--text-gray);
    padding: 20px;
    display: flex;
    align-items: flex-end;
    gap: 15px;
}

.chart-bar {
    flex: 1;
    background: var(--primary-color);
    position: relative;
    transition: var(--transition-smooth);
}

.chart-bar::after {
    content: attr(data-label);
    position: absolute;
    bottom: -30px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 10px;
    white-space: nowrap;
}

/* Before/After Bg */
.bg-before-after {
    background: linear-gradient(90deg, rgba(5, 5, 5, 0.9) 50%, rgba(5, 5, 5, 0.7) 50%), url('JMD FINAL/Gemini_Generated_Image_2tltsw2tltsw2tlt.png');
    background-size: cover;
    background-position: center;
}

/* Layout Utilities */
.diamond-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    position: relative;
}

.diamond-item {
    padding: 30px;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    transition: var(--transition-smooth);
}

.diamond-item:hover {
    border-color: var(--primary-color);
    transform: translateY(-5px);
}

/* Creative & Reel Assets */
.asset-card {
    padding: 0;
    cursor: pointer;
    overflow: hidden;
}

.asset-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: 0.5s;
}

.asset-card:hover img {
    transform: scale(1.1);
}

.reel-card video {
    aspect-ratio: 9/16;
    object-fit: cover;
    background: #000;
}

/* Cinematic Reel Ticker */
.ticker-wrap {
    width: 100%;
    overflow: hidden;
    padding: 40px 0;
}

.ticker-track {
    display: flex;
    width: fit-content;
    animation: marquee 40s linear infinite;
    gap: 20px;
}

@keyframes marquee {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(calc(-50% - 10px));
    }
}

.ticker-item {
    flex: 0 0 280px;
    height: 497px;
    /* 9:16 equivalent */
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--card-border);
    background: #000;
}

.ticker-item video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ticker-wrap:hover .ticker-track {
    animation-play-state: paused;
}

/* Responsive */
@media (max-width: 768px) {
    .mockup-row {
        flex-direction: column;
    }

    .nav-links {
        display: none;
    }

    section {
        padding: 60px 5%;
    }

    .diamond-grid {
        grid-template-columns: 1fr;
    }
}