:root {
    --bg-dark: #050508;
    --bg-card: rgba(20, 20, 30, 0.4);
    --border-color: rgba(255, 0, 0, 0.3);
    --border-color2: rgba(255, 255, 255, 0.3);
    --border-color3: rgba(3, 99, 255, 0.4);
    --text-primary: #ffffff;
    --text-secondary: #b3b3b3;
    --accent-purple: #a855f7;
    --accent-blue: #0ea5e9;
    --accent-orange: #f97316;
    --accent-pink: #ec4899;
    --gradient-purple-blue: linear-gradient(90deg, #a855f7, #3b82f6);
    --gradient-blue-teal: linear-gradient(90deg, #3b82f6, #06b6d4);
    --font-main: 'Inter', sans-serif;
}

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

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

    /* NEW: Full Page Background Gradient */
    background-image:
        /* Purple glow top-left/center */
        radial-gradient(circle at 20% 0%, rgba(120, 40, 200, 0.25) 0%, transparent 50%),
        /* Blue/Teal glow center-right */
        radial-gradient(circle at 80% 50%, rgba(6, 182, 212, 0.15) 0%, transparent 50%),
        /* Deep purple subtle glow bottom-left */
        radial-gradient(circle at 0% 100%, rgba(100, 20, 160, 0.1) 0%, transparent 50%);

    background-attachment: fixed;
    /* This makes the background stay still while you scroll */
    background-size: cover;
    min-height: 100vh;
}

/* Typography & Utilities */
h1 {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

h3 {
    font-size: 1.5rem;
    font-weight: 600;
}

h4 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

p {
    color: var(--text-secondary);
    font-size: 1rem;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

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

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

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

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

.text-white {
    color: white;
}

.gradient-text-blue {
    background: var(--gradient-blue-teal);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.gradient-text-purple {
    background: var(--gradient-purple-blue);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Navbar */
.navbar {
    display: flex;
    background-color: black;
    justify-content: space-between;
    align-items: center;
    padding: 10px 10px;
    position: sticky;
    top: 0px;
    width: 100%;
    z-index: 100;
}

.logo {
    font-weight: 800;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-icon {
    border: 2px solid white;
    padding: 2px 6px;
    font-size: 0.8rem;
}

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

.nav-links a {
    color: white;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
}

.mobile-menu-btn {
    display: none;
    cursor: pointer;
}

/* Hero Section */
.hero {
    min-height: 60vh;
    /* changed from height to min-height for safety */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    /* Removed overflow: hidden so it doesn't clip the page background */
}

/* The background glow effect */
.glow-bg {
    display: none;
}

.hero-content {
    max-width: 800px;
    z-index: 1;
}

.tagline {
    color: var(--accent-blue);
    font-weight: 600;
    margin: 20px 0;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-size: 0.9rem;
}

.hero-desc {
    margin-bottom: 40px;
    font-size: 1.1rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.btn {
    padding: 12px 30px;
    border-radius: 4px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s;
    display: inline-block;
}

.btn-outline {
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    background: rgba(255, 255, 255, 0.05);
}

.btn-outline:hover {
    border-color: var(--accent-purple);
    background: rgba(255, 255, 255, 0.1);
}

.btn-gradient {
    background: var(--gradient-blue-teal);
    color: white;
    border: none;
}

.btn-full {
    width: 100%;
    text-align: center;
    margin-top: 20px;
}

/* Sections General */
.section {
    padding: 80px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.sub-header {
    font-size: 0.9rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-top: 10px;
}

.sub-header-text {
    margin-top: 15px;
}

/* Grids */
.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

/* Cards */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 30px;
    border-radius: 8px;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.card2 {
    background: var(--bg-card);
    border: 1px solid var(--border-color2);
    padding: 30px;
    border-radius: 8px;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.card3 {
    background: var(--bg-card);
    border: 1px solid var(--border-color3);
    padding: 30px;
    border-radius: 8px;
    transition: transform 0.3s ease, border-color 0.3s ease;
}


.card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-purple);
}

/* Stats Cards */
.stat-val {
    font-size: 3rem;
    font-weight: 800;
    color: white;
}

.stat-card .stat-num {
    font-size: 2.5rem;
    color: var(--accent-orange);
    margin-bottom: 10px;
}

.stat-card .stat-label {
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: white;
    letter-spacing: 1px;
}

/* Flow Chart */
.flow-chart {
    margin-top: 80px;
    text-align: center;
}

.flow-chart h3 {
    margin-bottom: 40px;
}

.flow-steps {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
}

.step {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color2);
    padding: 30px;
    border-radius: 8px;
    width: 250px;
}

.step-icon {
    width: 50px;
    height: 50px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
}

.purple-box {
    background: rgba(168, 85, 247, 0.2);
    color: var(--accent-purple);
}

.red-box {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
}

.orange-box {
    background: rgba(249, 115, 22, 0.2);
    color: var(--accent-orange);
}

.arrow {
    font-size: 1.5rem;
    color: var(--accent-orange);
}

/* Feature & Detail Cards */
.card-icon {
    margin-bottom: 20px;
    width: 28px;
    height: 28px;
}

.detail-card {
    min-height: 350px;
}

.detail-icon {
    width: 40px;
    height: 40px;
    margin-bottom: 20px;
}

/* Lists inside cards */
.check-list {
    list-style: none;
    margin-top: 20px;
    text-align: left;
}

.check-list li {
    margin-bottom: 12px;
    display: flex;
    align-items: start;
    gap: 10px;
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.check-list li::before {
    content: "✓";
    color: var(--accent-purple);
    font-weight: bold;
}

.check-list.small li {
    font-size: 0.85rem;
    margin-bottom: 8px;
}

/* Media Tabs */
.media-tabs {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 50px;
}

.tab {
    border: 1px solid var(--border-color);
    padding: 10px 20px;
    border-radius: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    transition: all 0.3s;
}

.tab:hover,
.tab.active {
    border-color: var(--accent-purple);
    background: rgba(168, 85, 247, 0.1);
}

.tab i {
    width: 16px;
    height: 16px;
}

/* Why Join Specifics */
.list-card h3 {
    margin: 15px 0 20px;
}

.large-icon {
    width: 48px;
    height: 48px;
    margin-bottom: 10px;
    display: block;
}

/* Form */
.form-container {
    max-width: 600px;
    margin: 0 auto;
    background: var(--bg-card);
    padding: 40px;
    border: 1px solid var(--border-color3);
    border-radius: 8px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    margin-bottom: 20px;
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.85rem;
    font-weight: 600;
}

input,
select,
textarea {
    width: 100%;
    background: #0b0b10;
    border: 1px solid var(--border-color2);
    padding: 12px;
    color: white;
    border-radius: 4px;
    font-family: var(--font-main);
}

textarea {
    resize: vertical;
    height: 100px;
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--accent-blue);
}

/* Footer */
.footer {
    border-top: 1px solid var(--border-color2);
    padding: 60px 0 30px;
    margin-top: 50px;
}

.footer-content {
    text-align: center;
    margin-bottom: 40px;
}

.footer-logo {
    font-weight: 800;
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.footer-links {
    display: flex;
    justify-content: space-between;
    border-top: 1px solid var(--border-color2);
    padding-top: 20px;
    font-size: 0.8rem;
    color: #666;
}

.links a {
    color: #666;
    text-decoration: none;
    margin-left: 20px;
}

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

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

/* Responsive Media Queries */
@media (max-width: 1024px) {

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

    h1 {
        font-size: 2.8rem;
    }
}

@media (max-width: 768px) {
    .navbar {
        padding: 20px;
        background-color: black;
        position: fixed;
        top: 0px;
    }

    .nav-links {
        display: none;
    }

    /* Simplified for demo */
    .mobile-menu-btn {
        display: block;
    }

    .hero {
        height: auto;
        padding: 150px 0 100px;
    }

    h1 {
        font-size: 2.2rem;
    }

    .grid-4,
    .grid-3,
    .grid-2,
    .form-row {
        grid-template-columns: 1fr;
    }

    .flow-steps {
        flex-direction: column;
    }

    .arrow {
        transform: rotate(90deg);
        margin: 10px 0;
    }

    .step {
        width: 100%;
    }

    .footer-links {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }

    .links {
        margin-left: 0;
    }
}

/* --- UPDATES FOR PUBLISHERS PAGE --- */

/* Badge Styles for Hero */
.pill-badge {
    display: inline-block;
    padding: 8px 16px;
    border-radius: 50px;
    background: rgba(168, 85, 247, 0.1);
    /* Purple tint */
    border: 1px solid var(--accent-purple);
    color: var(--accent-purple);
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 24px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

/* Active Nav Link State */
.active-link {
    color: var(--accent-blue) !important;
    /* Highlights current page */
}

/* Ensure grid gaps look good on the 6-item section */
.grid-3 {
    row-gap: 30px;
    /* Ensures vertical spacing when items wrap or stack */
}

/* --- UPDATES FOR BUYERS PAGE --- */

/* Blue Variant for the Pill Badge */
.pill-badge.blue {
    background: rgba(6, 182, 212, 0.1);
    /* Cyan tint */
    border-color: #06b6d4;
    color: #06b6d4;
}

/* Specific fix for the 'risk' section header text color */
.sub-header-text {
    color: var(--text-secondary);
    /* Default */
}

/* --- UPDATES FOR SCORING VISUAL --- */

.video-analysis-ui {
    padding: 20px !important;
    background: #0f0f16;
}

/* The Fake Video Player */
.video-frame {
    width: 100%;
    aspect-ratio: 16/9;
    background: linear-gradient(45deg, #1a1a2e, #2d2d44);
    border-radius: 6px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 20px;
    overflow: hidden;
}

/* Background element to simulate video content */
.video-frame::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('background.png') center/cover;
    opacity: 0.4;
}

.play-btn {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.video-overlay {
    position: absolute;
    top: 15px;
    right: 15px;
    z-index: 2;
}

.video-overlay .badge {
    background: rgba(6, 182, 212, 0.2);
    color: #06b6d4;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.75rem;
    border: 1px solid rgba(6, 182, 212, 0.3);
}

/* The Stats Grid below video */
.analysis-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 10px;
}

.analysis-col {
    background: rgba(255, 255, 255, 0.03);
    padding: 10px;
    border-radius: 4px;
}

.analysis-col .label {
    font-size: 0.75rem;
    font-weight: 700;
    display: block;
    margin-bottom: 8px;
    text-transform: uppercase;
}

.stat-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-bottom: 4px;
}

.stat-row b {
    color: white;
}

/* --- UPDATES FOR CLASSIFICATION PAGE --- */

/* Tag Cloud Pills */
.tags-container {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
}

.tag-pill {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color2);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    color: var(--text-primary);
    transition: all 0.3s ease;
    cursor: default;
}

.tag-pill:hover {
    border-color: var(--accent-orange);
    background: rgba(249, 115, 22, 0.1);
    transform: translateY(-2px);
}

/* Simple CSS Bar Chart */
.simple-chart {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    height: 200px;
    gap: 10px;
    padding: 0 10px;
    border-bottom: 1px solid var(--border-color2);
}

.chart-col {
    width: 14%;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px 4px 0 0;
    transition: height 1s ease-out;
}

.chart-col.active {
    background: linear-gradient(0deg, var(--accent-blue), var(--accent-purple));
    box-shadow: 0 0 15px rgba(168, 85, 247, 0.4);
}