:root {
    --bg-dark: #0f111a;
    --bg-card: rgba(25, 27, 42, 0.6);
    --bg-card-highlight: rgba(30, 32, 55, 0.8);
    --border-color: rgba(255, 255, 255, 0.1);
    --primary: #6366f1;
    --primary-hover: #4f46e5;
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --accent-glow: rgba(99, 102, 241, 0.4);
}

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

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

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

.orb-1 {
    width: 600px;
    height: 600px;
    background: rgba(99, 102, 241, 0.15);
    top: -200px;
    left: -100px;
}

.orb-2 {
    width: 500px;
    height: 500px;
    background: rgba(139, 92, 246, 0.1);
    bottom: 20%;
    right: -100px;
}

/* Typography & Utilities */
h1,
h2,
h3 {
    line-height: 1.2;
    margin-bottom: 1rem;
    font-weight: 600;
}

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

.glass-panel {
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-color);
    border-radius: 16px;
}

.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 500;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

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

.btn-primary:hover {
    background-color: var(--primary-hover);
    box-shadow: 0 4px 20px var(--accent-glow);
}

.btn-secondary {
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
}

.btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.15);
}

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

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.4);
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

.btn-full {
    width: 100%;
}

/* Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 1200px;
    z-index: 100;
}

.nav-brand,
.brand-footer {
    display: flex;
    align-items: center;
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.brand-logo {
    height: 32px;
    width: 32px;
    margin-right: 8px;
}

.footer-logo {
    height: 24px;
    width: 24px;
}

.brand-check {
    color: #10B981;
}

.brand-mate {
    color: #ffffff;
}

.brand-footer {
    justify-content: center;
    font-size: 1.25rem;
    margin-bottom: 10px;
}

.nav-links a {
    margin: 0 1rem;
    color: var(--text-muted);
    transition: color 0.3s;
}

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

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 20px;
    padding-top: 80px;
}

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

.hero h1 {
    font-size: 4rem;
    letter-spacing: -1px;
    background: linear-gradient(to right, #fff, #a5b4fc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.hero-ctas {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

/* Features Section */
.features-section,
.pricing-section {
    padding: 100px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 2.5rem;
}

.section-header p {
    color: var(--text-muted);
    font-size: 1.1rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
}

.feature-card {
    padding: 30px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    border-color: rgba(255, 255, 255, 0.2);
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: var(--primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.feature-icon svg {
    width: 2.5rem;
    height: 2.5rem;
    stroke-width: 1.5;
}

.feature-card h3 {
    font-size: 1.25rem;
}

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

/* Marquee Section */
.marquee-container {
    width: 100%;
    overflow: hidden;
    background: rgba(15, 23, 42, 0.5);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    padding: 1.5rem 0;
    margin: 40px 0;
    display: flex;
    white-space: nowrap;
}

.marquee-content {
    display: flex;
    animation: scroll-marquee 25s linear infinite;
}

.marquee-content span {
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--text-muted);
    margin: 0 2rem;
    letter-spacing: 1px;
    text-transform: uppercase;
}

@keyframes scroll-marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* Pricing Section */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    align-items: center;
}

.pricing-card {
    padding: 40px 30px;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.pricing-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.pricing-header h3 {
    margin: 0;
    font-size: 1.5rem;
}

.badge {
    font-size: 0.7rem;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 4px;
    letter-spacing: 1px;
}

.badge-gray {
    background: rgba(255, 255, 255, 0.1);
    color: #cbd5e1;
}

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

.badge-purple {
    background: rgba(139, 92, 246, 0.2);
    color: #c4b5fd;
}

.pricing-desc {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 30px;
    min-height: 44px;
}

.pricing-features {
    list-style: none;
    margin-bottom: 40px;
    flex-grow: 1;
}

.pricing-features li {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    font-size: 0.95rem;
    color: #e2e8f0;
}

.pricing-features li.bold {
    font-weight: 600;
    color: white;
}

.check {
    color: #94a3b8;
    margin-right: 10px;
    font-size: 1.1rem;
}

.star {
    color: #a78bfa;
    margin-right: 10px;
    font-size: 1.2rem;
}

.pricing-card.highlight {
    border-color: rgba(99, 102, 241, 0.5);
    background: var(--bg-card-highlight);
    box-shadow: 0 0 40px rgba(99, 102, 241, 0.15);
    position: relative;
    transform: scale(1.05);
    z-index: 10;
}

.pricing-card.highlight::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
    border-top-left-radius: 16px;
    border-top-right-radius: 16px;
}

/* CTA Bottom */
.cta-bottom {
    padding: 100px 20px;
}

.cta-panel {
    max-width: 800px;
    margin: 0 auto;
    padding: 60px 40px;
    text-align: center;
    background: linear-gradient(135deg, rgba(30, 32, 55, 0.8), rgba(25, 27, 42, 0.6));
}

.cta-panel h2 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.cta-panel p {
    color: var(--text-muted);
    margin-bottom: 30px;
    font-size: 1.1rem;
}

/* Footer */
footer {
    padding: 40px 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    text-align: center;
}



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

/* Animations */
.fade-in-up {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s ease forwards;
}

.delay-1 {
    animation-delay: 0.2s;
}

.delay-2 {
    animation-delay: 0.4s;
}

.delay-3 {
    animation-delay: 0.6s;
}

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

.fade-in-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

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

/* Responsive */
@media (max-width: 992px) {
    .pricing-grid {
        grid-template-columns: 1fr;
    }

    .pricing-card.highlight {
        transform: scale(1);
    }

    .hero h1 {
        font-size: 3rem;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .hero-ctas {
        flex-direction: column;
    }
}

/* ==========================================================================
   Double Five Technology V2 Dark Mode Overrides
   ========================================================================== */

/* Scoped overrides for V2 header on CheckMate page */
.header {
    background-color: transparent !important;
}

.header-scrolled {
    background-color: rgba(15, 17, 26, 0.8) !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.2) !important;
}

.header .logo img {
    filter: invert(1) !important;
}

.header .nav-links a {
    color: rgba(248, 250, 252, 0.7) !important;
    transition: color 0.3s ease;
}

.header .nav-links a:hover,
.header .nav-links a.active {
    color: #f8fafc !important;
}

.header .mobile-menu-toggle {
    color: #f8fafc !important;
}

/* Mobile menu overlay adjustments */
.mobile-menu-overlay {
    background-color: #0f111a !important;
}

.mobile-menu-header .logo img {
    filter: invert(1) !important;
}

.mobile-menu-close {
    color: #f8fafc !important;
}

.mobile-nav-links a {
    color: rgba(248, 250, 252, 0.7) !important;
}

.mobile-nav-links a:hover {
    color: #f8fafc !important;
}

/* Scoped overrides for V2 footer on CheckMate page */
.footer {
    background-color: #0b0c13 !important; /* Slightly darker than body bg */
    color: #f8fafc !important;
    border-top: 1px solid rgba(255, 255, 255, 0.05) !important;
    padding-top: var(--spacing-xl) !important;
    padding-bottom: var(--spacing-lg) !important;
}

.footer-about p {
    color: #94a3b8 !important;
}

.footer-about .social-links a {
    color: #f8fafc !important;
    background-color: rgba(255, 255, 255, 0.05) !important;
}

.footer-about .social-links a:hover {
    background-color: var(--primary) !important;
    color: white !important;
}

.footer-links h4 {
    color: #f8fafc !important;
}

.footer-links a {
    color: #94a3b8 !important;
}

.footer-links a:hover {
    color: var(--primary) !important;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.05) !important;
}

.footer-bottom-left .logo img {
    filter: invert(1) !important;
}

.footer-bottom-left .company-name {
    color: #f8fafc !important;
}

.footer-bottom-left .copyright {
    color: #94a3b8 !important;
}

.footer-bottom-left .copyright a {
    color: #94a3b8 !important;
}

.footer-bottom-left .copyright a:hover {
    color: var(--primary) !important;
}

.footer-bottom-right a {
    color: #94a3b8 !important;
}

.footer-bottom-right a:hover {
    color: var(--primary) !important;
}

/* ==========================================================================
   Contrast & Background Color Fixes for V2 Integration
   ========================================================================== */

/* Prevent white background leaks from main.css */
.features-section {
    background-color: transparent !important;
    background: transparent !important;
}

/* Global headings on Checkmate landing page must be white/light */
h1, h2, h3, h4, h5, h6,
.section-header h2,
.feature-card h3,
.pricing-card h3,
.pricing-header h3,
.cta-panel h2,
.cta-bottom h2 {
    color: #f8fafc !important;
}

/* Paragraphs and secondary texts must be muted light grey for readability */
.section-header p,
.feature-card p,
.pricing-card .pricing-desc,
.pricing-features li,
.cta-panel p,
.cta-bottom p {
    color: #94a3b8 !important;
}

/* ==========================================================================
   Mobile Friendly Layout & Overflow Prevention
   ========================================================================== */
html, body {
    max-width: 100%;
    overflow-x: hidden !important;
}

@media (max-width: 768px) {
    .cta-panel {
        padding: 40px 20px !important;
    }
    .cta-panel h2 {
        font-size: 1.8rem !important;
    }
    .features-section,
    .pricing-section {
        padding: 60px 15px !important;
    }
    .hero {
        padding-top: 100px !important;
    }
    .hero h1 {
        font-size: 2.2rem !important;
    }
}