/* ============================================
   MCP Analytics Website - Main Styles
   Inspired by card-library.css and slide-library.css
   ============================================ */

/* Video Controls Overlay Styles */
.video-controls-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.3);
    z-index: 10;
}

.video-control-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(255, 123, 0, 0.9);
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.video-control-btn:hover {
    background: rgba(255, 123, 0, 1);
    transform: scale(1.1);
}

.video-container-features {
    position: relative;
    overflow: hidden;
    border-radius: 16px;
}

/* Video Footer Controls */
.video-footer-controls {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    padding: 20px 15px 15px;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.video-container-features:hover .video-footer-controls {
    transform: translateY(0);
}

.video-control-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.footer-control-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    width: 36px;
    height: 36px;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    font-size: 14px;
}

.footer-control-btn:hover {
    background: rgba(255, 123, 0, 0.8);
    border-color: var(--primary-orange);
}

.speed-selector {
    margin-left: auto;
    margin-right: 10px;
}

.speed-dropdown {
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    padding: 6px 10px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
}

.speed-dropdown:hover {
    border-color: var(--primary-orange);
}

.video-progress-bar {
    width: 100%;
}

.progress-track {
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
    cursor: pointer;
    position: relative;
}

.progress-fill {
    height: 100%;
    background: var(--primary-orange);
    border-radius: 2px;
    width: 0%;
    transition: width 0.1s linear;
}

:root {
    --primary-orange: #FF7B00;
    --accent-blue: #87CEEB;
    --text-primary: #1a1a1a;
    --text-secondary: #6b7280;
    --text-light: #9ca3af;
    --bg-light: #f9fafb;
    --bg-white: #ffffff;
    --bg-dark: #1a1a1a;
    --border-light: #e5e7eb;
    --border-dark: rgba(255, 255, 255, 0.1);
    
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    
    --container-width: 1200px;
    --border-radius: 16px;
    --border-radius-sm: 8px;
}

/* ============================================
   BASE STYLES
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Geist', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg-white);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    padding-top: 65px; /* Account for fixed header */
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* ============================================
   TYPOGRAPHY
   ============================================ */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-primary);
}

h1 { font-size: 3rem; }
h2 { font-size: 2.5rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

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

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

a:hover {
    color: #e66a00;
}

code, pre {
    font-family: 'Geist Mono', 'Consolas', monospace;
}

/* ============================================
   NAVIGATION - STICKY BANNER STYLE
   ============================================ */
#sticky-banner {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: var(--bg-white);
    box-shadow: var(--shadow-md);
    border-bottom: 2px solid var(--primary-orange);
    z-index: 1000;
    padding: 0;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 65px;
}

#sticky-banner .logo {
    padding: 0.5rem 0;
    margin-left: 15px;
}

#sticky-banner .logo img {
    height: 35px;
    width: auto;
}

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

.nav-items,
.nav-actions {
    display: flex;
    list-style: none;
    align-items: center;
    margin: 0;
    padding: 0;
}

.nav-items {
    gap: 0.25rem;
}

.nav-actions {
    gap: 0.5rem;
}

.nav-item {
    position: relative;
}

/* Navigation link styles */
.nav-link {
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: pointer;
    font-size: 0.9rem;
}

.nav-link:hover {
    color: var(--primary-orange);
}

.sign-in-btn {
    color: var(--primary-orange) !important;
    border: 1px solid transparent;
    border-radius: 6px;
    transition: all 0.3s ease;
    padding: 0.75rem 0.875rem !important;
}

.sign-in-btn:hover {
    background-color: var(--primary-orange);
    color: var(--bg-white) !important;
}

.nav-cta {
    margin-left: 0.25rem;
    padding: 0.75rem 1.25rem !important;
    font-size: 0.85rem;
}

/* Mega Menu Styles */
.has-mega-menu .nav-link::after {
    content: "\25BC";
    font-size: 0.7em;
    margin-left: 0.5em;
    transition: transform 0.3s ease;
}

.has-mega-menu:hover .nav-link::after {
    transform: rotate(180deg);
}

.mega-menu {
    position: fixed;
    top: 65px;
    left: 50%;
    transform: translateX(-50%);
    width: 1100px;
    max-width: calc(100vw - 40px);
    background: var(--bg-white);
    border: none;
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    opacity: 0;
    visibility: hidden;
    transform: translateX(-50%) translateY(-10px);
    transition: all 0.3s ease;
    z-index: 999;
    padding: 2rem;
    backdrop-filter: blur(20px);
}

.has-mega-menu:hover .mega-menu,
.mega-menu:hover {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

/* Ensure hover area includes space between nav and dropdown */
.has-mega-menu::before {
    content: '';
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    height: 20px;
    background: transparent;
    z-index: 1000;
}

.mega-menu-content {
    display: grid;
    grid-template-columns: repeat(4, minmax(140px, 1fr)) minmax(180px, 1.2fr);
    gap: 1.25rem;
    align-items: start;
}

.mega-menu-column h4 {
    color: var(--text-primary);
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    padding-bottom: 0.4rem;
    border-bottom: 2px solid var(--primary-orange);
}

.mega-menu-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mega-menu-column li {
    margin-bottom: 0.35rem;
}

.mega-menu-column a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 400;
    transition: all 0.2s ease;
    display: block;
    padding: 0.35rem 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mega-menu-column a:hover {
    color: var(--primary-orange);
    transform: translateX(4px);
}

/* Featured content in mega menus */
.featured-content {
    background: linear-gradient(135deg, var(--bg-light) 0%, #f8f9fa 100%);
    padding: 1.5rem;
    border-radius: 12px;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.featured-content:hover {
    border-color: var(--primary-orange);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.featured-content h5 {
    color: var(--text-primary);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.featured-content p {
    color: var(--text-secondary);
    font-size: 0.85rem;
    margin-bottom: 1rem;
    line-height: 1.4;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.2rem;
    color: var(--text-primary);
    cursor: pointer;
    margin-right: 15px;
    padding: 8px;
}

/* Hide class for narrow screens */
.mega-menu-column.hide-narrow {
    display: block;
}

/* Mobile Responsiveness */
@media (max-width: 1400px) {
    .mega-menu-column.hide-narrow {
        display: none;
    }
    
    .mega-menu-content {
        grid-template-columns: repeat(3, minmax(150px, 1fr)) minmax(180px, 1.3fr);
    }
}

@media (max-width: 1200px) {
    .nav-link {
        padding: 0.75rem 0.85rem;
        font-size: 0.85rem;
    }
    
    .nav-cta {
        padding: 0.75rem 1.1rem !important;
        font-size: 0.8rem;
    }
    
    .sign-in-btn {
        padding: 0.75rem 0.75rem !important;
        font-size: 0.85rem;
    }
    
    .mega-menu {
        width: 900px;
        max-width: calc(100vw - 20px);
        padding: 1.5rem;
    }
    
    .mega-menu-content {
        grid-template-columns: 1fr 1fr 1fr 1.3fr;
        gap: 1.5rem;
    }
}

@media (max-width: 900px) {
    .nav-link {
        padding: 0.75rem 0.625rem;
        font-size: 0.8rem;
    }
    
    .nav-cta {
        padding: 0.75rem 1rem !important;
        font-size: 0.75rem;
    }
    
    .sign-in-btn {
        padding: 0.75rem 0.75rem !important;
        font-size: 0.8rem;
    }
    
    .nav-items {
        gap: 0.125rem;
    }
    
    .nav-actions {
        gap: 0.375rem;
    }
    
    .main-nav {
        padding: 0 8px;
    }
}

@media (max-width: 1150px) {
    .hero-background-right {
        display: none;
    }
}

@media (max-width: 768px) {
    #sticky-banner {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        min-height: 65px;
        padding: 0 15px;
    }
    
    #sticky-banner .logo {
        margin-left: 0;
    }
    
    .main-nav {
        display: none !important;
        position: fixed;
        top: 65px;
        left: 0;
        right: 0;
        width: 100%;
        height: calc(100vh - 65px);
        background: var(--bg-white);
        box-shadow: var(--shadow-lg);
        z-index: 999;
        flex-direction: column;
        padding: 2rem;
        max-width: none;
        margin: 0;
        overflow-y: auto;
    }
    
    .main-nav.active {
        display: flex !important;
    }
    
    .nav-items,
    .nav-actions {
        flex-direction: column;
        width: 100%;
        align-items: stretch;
    }
    
    .nav-item {
        width: 100%;
    }
    
    .nav-link {
        padding: 1rem 0;
        border-bottom: 1px solid var(--bg-light);
        justify-content: space-between;
    }
    
    .mobile-menu-toggle {
        display: block !important;
        margin-right: 0;
    }
    
    .has-mega-menu .nav-link::after {
        content: "+";
        font-size: 1.2em;
        margin-left: auto;
        order: 2;
    }
    
    .has-mega-menu.active .nav-link::after {
        content: "−";
    }
    
    .mega-menu {
        position: static !important;
        top: auto !important;
        left: auto !important;
        right: auto !important;
        width: 100% !important;
        max-width: none !important;
        transform: none !important;
        box-shadow: none;
        background: var(--bg-white);
        margin-top: 1rem;
        padding: 1rem;
    }
    
    .mega-menu-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .mega-menu-column {
        margin-bottom: 1rem;
    }
    
    .mega-menu-column h4 {
        font-size: 0.9rem;
        margin-bottom: 0.75rem;
    }
    
    .mega-menu-column a {
        font-size: 0.85rem;
        padding: 0.4rem 0;
    }
    
    .featured-content {
        grid-column: 1;
        margin-top: 0.5rem;
        padding: 1rem;
    }
    
    .featured-content h5 {
        font-size: 1rem;
    }
    
    .featured-content p {
        font-size: 0.8rem;
    }
    
    .nav-actions {
        margin-top: 2rem;
        padding-top: 2rem;
        border-top: 2px solid var(--bg-light);
    }
    
    .sign-in-btn {
        text-align: center;
        margin-bottom: 0.5rem;
        justify-content: center;
    }
    
    .nav-cta {
        margin-left: 0 !important;
        text-align: center;
        justify-content: center;
    }
    
    body.menu-open {
        overflow: hidden;
        position: fixed;
        width: 100%;
    }
}

/* ============================================
   LOGO ANIMATION SECTION
   ============================================ */
.logo-animation {
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 300px;
    background: transparent;
    position: relative;
    overflow: hidden;
}

.logo-animation::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0%;
    height: 100%;
    background: #FF7B00;
    animation: logoSweepLeftRight 24s ease-in-out infinite;
    animation-delay: 3s;
}

.logo-animation::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0%;
    height: 100%;
    background: #000000;
    animation: logoSweepLeftRightBlack 24s ease-in-out infinite;
    animation-delay: 3s;
}

@keyframes logoSweepLeftRight {
    /* LEFT TO RIGHT SWEEP */
    0% { width: 0%; left: 0; }           /* Start collapsed on left */
    5% { width: 100%; left: 0; }         /* Expand to full width */
    15% { width: 100%; left: 0; }        /* Hold full width */
    20% { width: 0%; left: 100%; }       /* Collapse to right edge */
    
    /* PAUSE */
    25% { width: 0%; left: 100%; }       /* Stay collapsed on right */
    
    /* RIGHT TO LEFT SWEEP */
    30% { width: 0%; left: 100%; }       /* Start collapsed on right */
    35% { width: 100%; left: 0; }        /* Expand to full width (from right) */
    45% { width: 100%; left: 0; }        /* Hold full width */
    50% { width: 0%; left: 0; }          /* Collapse to left edge */
    
    /* PAUSE AND REPEAT */
    75% { width: 0%; left: 0; }          /* Long pause collapsed on left */
    100% { width: 0%; left: 0; }         /* Ready for next cycle */
}

@keyframes logoSweepLeftRightBlack {
    /* STAGGERED START - PAUSE */
    0% { width: 0%; left: 100%; }        /* Start collapsed on right */
    12% { width: 0%; left: 100%; }       /* Stay collapsed */
    
    /* RIGHT TO LEFT SWEEP (OFFSET) */
    17% { width: 0%; left: 100%; }       /* Start collapsed on right */
    22% { width: 100%; left: 0; }        /* Expand to full width (from right) */
    40% { width: 100%; left: 0; }        /* Hold full width LONGER */
    45% { width: 0%; left: 0; }          /* Collapse to left edge */
    
    /* PAUSE */
    48% { width: 0%; left: 0; }          /* Stay collapsed on left */
    
    /* LEFT TO RIGHT SWEEP (OFFSET) */
    50% { width: 0%; left: 0; }          /* Start collapsed on left */
    55% { width: 100%; left: 0; }        /* Expand to full width */
    70% { width: 100%; left: 0; }        /* Hold full width LONGER */
    75% { width: 0%; left: 100%; }       /* Collapse to right edge */
    
    /* LONG PAUSE */
    75% { width: 0%; left: 100%; }       /* Long pause collapsed on right */
    100% { width: 0%; left: 100%; }      /* Ready for next cycle */
}

.logo-container {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    position: relative;
    z-index: 10;
}

.animated-logo {
    height: 200px;
    width: auto;
    object-fit: contain;
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
    padding: 100px 20px;
    background: linear-gradient(135deg, #f3f4f6 0%, #ffffff 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 80vh;
}

.hero {
    padding: 100px 20px;
    background: linear-gradient(135deg, #f3f4f6 0%, #ffffff 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 80vh;
    position: relative;
    overflow: hidden;
}

.hero-background-left {
    position: absolute;
    top: 20%;
    left: -150px;
    transform: rotate(-8deg) scale(0.8);
    opacity: 0.4;
    z-index: 1;
    pointer-events: none;
}

.hero-background-right {
    position: absolute;
    top: 60%;
    right: -120px;
    transform: rotate(5deg) scale(0.85);
    opacity: 0.4;
    z-index: 1;
    pointer-events: none;
}

.terminal-window-bg {
    background: var(--bg-dark);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    min-width: 400px;
}

.video-window-bg {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.4);
    min-width: 400px;
    background: var(--bg-dark);
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.hero-demo-video {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    /* Crop 20px from the top */
    margin-top: -20px;
    /* Ensure the video fills the container */
    min-height: calc(100% + 20px);
    /* Add smooth appearance */
    animation: fadeIn 1s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Features section video styling */
.video-container-features {
    border-radius: 20px;
    overflow: hidden;
    width: 100%;
    height: 450px;
    cursor: pointer;
    position: relative;
    background: #000;
}

.features-demo-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}


.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    z-index: 5;
    gap: 60px;
}

.hero-main {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
}

.hero-details {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
    max-width: 900px;
}

.hero-title {
    font-size: 4.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin: 0;
    color: var(--text-primary);
    text-align: center;
}

.hero-accent {
    background: linear-gradient(135deg, var(--primary-orange), #e66a00);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-description {
    font-size: 1.3rem;
    color: #000000;
    margin: 0;
    line-height: 1.7;
    text-align: center;
    max-width: 100%;
}

.hero-actions {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin: 0;
}

.hero-stats {
    display: flex;
    gap: 80px;
    justify-content: center;
    margin: 0;
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-orange);
    font-family: 'Geist Mono', monospace;
}

.stat-label {
    font-size: 0.875rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}


/* Code Window */
.code-window {
    background: var(--bg-dark);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-xl);
}

.code-header {
    background: #2a2a2a;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.code-dots {
    display: flex;
    gap: 8px;
}

.code-dots span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #4a4a4a;
}

.code-dots span:nth-child(1) { background: #ff5f56; }
.code-dots span:nth-child(2) { background: #ffbd2e; }
.code-dots span:nth-child(3) { background: #27c93f; }

.code-title {
    color: #888;
    font-size: 12px;
    font-family: 'Geist Mono', monospace;
}

.code-content {
    padding: 24px;
    color: #e0e0e0;
    font-size: 14px;
    line-height: 1.6;
}

.code-content code {
    color: inherit;
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.2s ease;
    cursor: pointer;
    border: none;
    text-align: center;
}

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

.btn-primary:hover {
    background: #e66a00;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    color: white;
}

.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    border: 2px solid var(--border-light);
}

.btn-secondary:hover {
    background: var(--bg-light);
    border-color: var(--primary-orange);
    color: var(--primary-orange);
}

.btn-lg {
    padding: 16px 32px;
    font-size: 1.125rem;
}

/* ============================================
   SECTIONS
   ============================================ */
section {
    padding: 80px 0;
}

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

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.section-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* ============================================
   FEATURES SECTION
   ============================================ */
.features {
    background: var(--bg-light);
}

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

.feature-card {
    background: var(--bg-white);
    padding: 20px;
    border-radius: var(--border-radius);
    border: 1px solid var(--border-light);
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-orange);
}

.feature-icon {
    margin-bottom: 20px;
}

.icon-badge {
    width: 60px;
    height: 60px;
    background: rgba(255, 123, 0, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
}

.feature-title {
    font-size: 1.25rem;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.feature-description {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ============================================
   TOOLS SECTION
   ============================================ */
.tools {
    background: var(--bg-white);
}

.tools-showcase {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
    gap: 30px;
}

.tool-card {
    background: var(--bg-white);
    border: 2px solid var(--border-light);
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: all 0.3s ease;
}

.tool-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-orange);
}

.tool-header {
    display: flex;
    align-items: center;
    padding: 20px 24px;
    gap: 16px;
    border-bottom: 1px solid var(--border-light);
    background: var(--bg-light);
}

.tool-badge {
    width: 48px;
    height: 48px;
    background: var(--primary-orange);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 20px;
    color: white;
}

.tool-info {
    flex: 1;
}

.tool-title {
    font-size: 1.25rem;
    margin-bottom: 4px;
    color: var(--text-primary);
}

.tool-category {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.tool-content {
    padding: 24px;
}

.tool-description {
    color: var(--text-secondary);
    margin-bottom: 20px;
    line-height: 1.6;
}

.tool-example {
    background: var(--bg-light);
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 20px;
}

.example-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.tool-example pre {
    background: var(--bg-dark);
    color: #e0e0e0;
    padding: 12px;
    border-radius: 6px;
    font-size: 13px;
    overflow-x: auto;
}

.tool-metrics {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.metric-pill {
    padding: 6px 12px;
    background: rgba(135, 206, 235, 0.1);
    color: var(--accent-blue);
    border-radius: 100px;
    font-size: 0.875rem;
    font-weight: 600;
}

/* ============================================
   HOW IT WORKS
   ============================================ */
.how-it-works {
    background: var(--bg-light);
}

.workflow-diagram {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1000px;
    margin: 0 auto;
    padding: 40px 0;
}

.workflow-step {
    flex: 1;
    text-align: center;
}

.step-number {
    width: 60px;
    height: 60px;
    background: var(--primary-orange);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 700;
    margin: 0 auto 20px;
}

.step-content h3 {
    font-size: 1.25rem;
    margin-bottom: 8px;
}

.step-content p {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.workflow-arrow {
    color: var(--primary-orange);
    font-size: 24px;
    margin: 0 20px;
}

/* ============================================
   INSTALLATION SECTION
   ============================================ */
.installation {
    background: var(--bg-white);
}

.install-tabs {
    max-width: 900px;
    margin: 0 auto;
}

.tab-buttons {
    display: flex;
    gap: 8px;
    margin-bottom: 40px;
    border-bottom: 2px solid var(--border-light);
}

.tab-btn {
    padding: 12px 24px;
    background: none;
    border: none;
    color: var(--text-secondary);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

.tab-btn.active {
    color: var(--primary-orange);
}

.tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--primary-orange);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.install-steps {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.install-step {
    background: var(--bg-light);
    padding: 24px;
    border-radius: 12px;
    border-left: 4px solid var(--primary-orange);
}

.install-step h3 {
    margin-bottom: 12px;
    color: var(--text-primary);
}

.install-step p {
    margin-bottom: 0;
}

.install-step pre {
    background: var(--bg-dark);
    color: #e0e0e0;
    padding: 16px;
    border-radius: 8px;
    margin-top: 12px;
    overflow-x: auto;
}

/* Desktop App Specific Styles */
.deployment-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    margin: 32px 0;
}

.deployment-option {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 24px;
    background: var(--bg-light);
    border-radius: 12px;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.deployment-option:hover {
    border-color: var(--primary-orange);
    transform: translateY(-2px);
}

.deployment-icon {
    font-size: 2.5em;
    flex-shrink: 0;
}

.deployment-info h4 {
    margin-bottom: 8px;
    color: var(--text-primary);
    font-weight: 600;
}

.deployment-info p {
    color: var(--text-secondary);
    margin: 0;
}

.deployment-note {
    text-align: center;
    padding: 20px;
    background: linear-gradient(135deg, var(--primary-orange), #FF8C42);
    color: white;
    border-radius: 12px;
    margin-top: 24px;
    font-weight: 500;
}

.install-step.featured {
    background: linear-gradient(135deg, var(--bg-light), #f0f9ff);
    border-left: 4px solid var(--accent-blue);
    position: relative;
    overflow: hidden;
}

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

.beta-badge {
    background: var(--primary-orange);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8em;
    font-weight: 600;
}

.new-badge {
    background: #10B981;
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8em;
    font-weight: 600;
}

.desktop-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    margin-top: 24px;
}

.feature-highlight {
    background: white;
    padding: 20px;
    border-radius: 8px;
    border-left: 3px solid var(--accent-blue);
}

.feature-highlight h4 {
    margin-bottom: 8px;
    color: var(--text-primary);
    font-size: 0.9em;
}

.feature-highlight p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 0.85em;
}

.download-buttons {
    display: flex;
    gap: 16px;
    margin: 16px 0;
    flex-wrap: wrap;
}

.download-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: var(--primary-orange);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    opacity: 0.6;
}

.download-btn:not([disabled]) {
    opacity: 1;
}

.download-btn:not([disabled]):hover,
.download-btn:hover {
    background: #e66900;
    transform: translateY(-2px);
    text-decoration: none;
}

.download-btn {
    text-decoration: none;
    color: white;
}

.download-info {
    margin-top: 20px;
    padding: 16px;
    background: #f0f9ff;
    border-radius: 8px;
    border-left: 3px solid var(--accent-blue);
}

.download-note {
    margin-bottom: 12px;
    color: var(--text-primary);
    font-size: 0.9em;
}

.system-requirements {
    margin: 0;
    color: var(--text-secondary);
    font-size: 0.85em;
}

.download-info a {
    color: var(--primary-orange);
    text-decoration: none;
    font-weight: 600;
}

.download-info a:hover {
    text-decoration: underline;
}

.coming-soon-note {
    font-style: italic;
    color: var(--text-secondary);
    text-align: center;
    margin-top: 16px;
}

.coming-soon-note a {
    color: var(--primary-orange);
    text-decoration: none;
    font-weight: 600;
}

.setup-steps, .desktop-benefits {
    margin: 16px 0;
    padding-left: 20px;
}

.setup-steps li, .desktop-benefits li {
    margin-bottom: 8px;
    color: var(--text-secondary);
}

.comparison-note {
    margin-top: 32px;
    padding: 24px;
    background: white;
    border-radius: 12px;
    border: 1px solid var(--border-light);
}

.comparison-note h4 {
    margin-bottom: 20px;
    text-align: center;
    color: var(--text-primary);
}

.comparison-table {
    display: grid;
    gap: 12px;
}

.comparison-row {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 16px;
    padding: 12px;
    background: var(--bg-light);
    border-radius: 8px;
    align-items: center;
}

.comparison-feature {
    font-weight: 600;
    color: var(--text-primary);
}

.comparison-desktop {
    text-align: center;
    padding: 8px;
    background: linear-gradient(135deg, var(--accent-blue), #69d4f0);
    color: white;
    border-radius: 6px;
    font-weight: 500;
    font-size: 0.9em;
}

.comparison-remote {
    text-align: center;
    padding: 8px;
    background: var(--text-secondary);
    color: white;
    border-radius: 6px;
    font-weight: 500;
    font-size: 0.9em;
}

/* Mobile responsiveness for desktop app content */
@media (max-width: 768px) {
    .deployment-options {
        grid-template-columns: 1fr;
    }
    
    .desktop-features {
        grid-template-columns: 1fr;
    }
    
    .download-buttons {
        flex-direction: column;
    }
    
    /* Hide the Desktop Extension vs Direct Connection comparison on mobile */
    .comparison-note {
        display: none;
    }
}

/* ============================================
   DATA MANAGEMENT SECTION
   ============================================ */
.data-management {
    padding: 80px 0;
    background: var(--bg-white);
}

.management-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    max-width: var(--container-width);
    margin: 0 auto 60px;
    padding: 0 20px;
}

.management-card {
    background: var(--bg-light);
    padding: 40px;
    border-radius: var(--border-radius);
    border: 1px solid var(--border-light);
    transition: all 0.2s ease;
}

.management-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.management-icon {
    font-size: 48px;
    margin-bottom: 20px;
}

.management-card h3 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 16px;
}

.management-description {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-secondary);
    margin-bottom: 24px;
}

.management-features {
    list-style: none;
    padding: 0;
    margin: 0 0 32px 0;
}

.management-features li {
    padding: 8px 0;
    font-size: 0.95rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 12px;
}

.management-features i {
    color: var(--primary-orange);
    font-size: 14px;
}

.management-card .btn-secondary {
    width: 100%;
    text-align: center;
    padding: 12px 24px;
    font-weight: 600;
}

/* Billing Strip */
.billing-strip {
    background: var(--bg-light);
    border-radius: var(--border-radius);
    padding: 40px;
    border: 1px solid var(--border-light);
    transition: all 0.2s ease;
}

.billing-strip:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.billing-strip-content {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 40px;
}

.billing-strip-text h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.billing-strip-text p {
    color: var(--text-secondary);
    font-size: 1rem;
    max-width: 400px;
}

.billing-strip-features {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.billing-strip-features span {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: var(--text-secondary);
    white-space: nowrap;
}

.billing-strip-features i {
    color: var(--primary-orange);
    font-size: 16px;
}

.btn-outline {
    background: transparent;
    color: var(--primary-orange);
    border: 2px solid var(--primary-orange);
    padding: 12px 28px;
    border-radius: var(--border-radius-sm);
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    transition: all 0.2s ease;
    white-space: nowrap;
    min-width: 180px;
    text-align: center;
    justify-self: end;
}

.btn-outline:hover {
    background: var(--primary-orange);
    color: white;
    transform: translateY(-2px);
}

@media (max-width: 1200px) {
    .billing-strip-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 24px;
    }
    
    .billing-strip-text p {
        margin: 0 auto;
    }
    
    .btn-outline {
        justify-self: center;
    }
}

@media (max-width: 1024px) {
    .billing-strip-features {
        flex-direction: column;
        gap: 12px;
    }
}

@media (max-width: 768px) {
    .management-split {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .management-card {
        padding: 30px;
    }
    
    .billing-strip {
        padding: 30px;
    }
    
    .billing-strip-features {
        display: none;
    }
}

/* ============================================
   USE CASES
   ============================================ */
.use-cases {
    background: var(--bg-light);
}

.use-cases-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.use-case-card {
    background: var(--bg-white);
    padding: 32px;
    border-radius: var(--border-radius);
    border: 1px solid var(--border-light);
    text-align: center;
    transition: all 0.3s ease;
}

.use-case-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
}

.use-case-icon {
    font-size: 48px;
    margin-bottom: 20px;
}

.use-case-card h3 {
    margin-bottom: 16px;
    color: var(--text-primary);
}

.use-case-card p {
    color: var(--text-secondary);
    font-style: italic;
    margin-bottom: 20px;
}

.use-case-tools {
    display: flex;
    gap: 8px;
    justify-content: center;
    flex-wrap: wrap;
}

.use-case-tools span {
    padding: 4px 12px;
    background: rgba(255, 123, 0, 0.1);
    color: var(--primary-orange);
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 600;
}

/* ============================================
   DOCUMENTATION
   ============================================ */
.documentation {
    background: var(--bg-white);
}

.docs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

@media (max-width: 768px) {
    .docs-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

@media (max-width: 480px) {
    .docs-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .doc-card {
        padding: 24px 20px;
    }
    
    .doc-icon {
        font-size: 40px;
        margin-bottom: 16px;
    }
}

.doc-card {
    background: var(--bg-white);
    padding: 32px;
    border: 2px solid var(--border-light);
    border-radius: var(--border-radius);
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
}

.doc-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-orange);
}

.doc-icon {
    font-size: 48px;
    margin-bottom: 20px;
}

.doc-card h3 {
    margin-bottom: 12px;
    color: var(--text-primary);
}

.doc-card p {
    color: var(--text-secondary);
    margin: 0;
}

/* ============================================
   PRICING
   ============================================ */
.pricing {
    background: var(--bg-light);
}

/* Stripe Pricing Table */
stripe-pricing-table {
    display: block;
    max-width: 1400px;
    margin: 3rem auto 0;
    padding: 0 1rem;
}

/* Fallback pricing styles */
.fallback-pricing-message {
    text-align: center;
    padding: 2rem;
}

.pricing-fallback-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    max-width: 1400px;
    margin: 2rem auto 0;
}

.pricing-fallback-card {
    background: var(--bg-white);
    padding: 30px;
    border-radius: var(--border-radius);
    border: 2px solid var(--border-light);
    text-align: center;
}

.pricing-fallback-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.pricing-fallback-card .price {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-orange);
    margin-bottom: 1.5rem;
}

/* Legacy pricing grid (kept for backward compatibility) */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    max-width: 1400px;
    margin: 0 auto;
}

.pricing-card {
    background: var(--bg-white);
    padding: 30px;
    border-radius: var(--border-radius);
    border: 2px solid var(--border-light);
    text-align: center;
    position: relative;
    transition: all 0.3s ease;
}

.pricing-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
}

.pricing-card.featured {
    border-color: var(--primary-orange);
    transform: scale(1.05);
}

.pricing-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary-orange);
    color: white;
    padding: 4px 16px;
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.pricing-tier {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--text-primary);
}

.pricing-price {
    display: flex;
    align-items: baseline;
    justify-content: center;
    margin-bottom: 30px;
}

.price-currency {
    font-size: 1.5rem;
    color: var(--text-secondary);
}

.price-amount {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-orange);
    margin: 0 4px;
}

.price-period {
    color: var(--text-secondary);
}

.pricing-features {
    margin-bottom: 30px;
}

.pricing-feature {
    padding: 12px 0;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border-light);
}

.pricing-feature:last-child {
    border-bottom: none;
}

/* Demo Option */
.demo-option {
    margin-top: 40px;
    display: flex;
    justify-content: center;
}

.demo-card {
    background: var(--bg-white);
    border: 2px solid var(--primary-orange);
    border-radius: var(--border-radius);
    padding: 30px;
    text-align: center;
    max-width: 400px;
    width: 100%;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
}

.demo-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
}

.demo-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.demo-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.demo-description {
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.btn-demo {
    background: var(--primary-orange);
    color: white;
    border: 2px solid var(--primary-orange);
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    padding: 14px 28px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.btn-demo:hover {
    background: transparent;
    color: var(--primary-orange);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* ============================================
   CTA SECTION
   ============================================ */
.cta {
    background: linear-gradient(135deg, var(--primary-orange), #e66a00);
    padding: 100px 20px;
    color: white;
}

.cta-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.cta-title {
    font-size: 2.5rem;
    margin-bottom: 16px;
    color: white;
}

.cta-description {
    font-size: 1.25rem;
    margin-bottom: 32px;
    color: rgba(255, 255, 255, 0.9);
}

.cta-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
}

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

.cta .btn-primary:hover {
    background: var(--bg-light);
}

.cta .btn-secondary {
    color: white;
    border-color: white;
}

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

/* ============================================
   FOOTER
   ============================================ */
.footer {
    background: var(--bg-dark);
    color: white;
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h4 {
    color: white;
    margin-bottom: 16px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.footer-brand .brand-text {
    color: white;
}

.footer-description {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
}

.footer-section ul {
    list-style: none;
}

.footer-section li {
    margin-bottom: 12px;
}

.footer-section a {
    color: rgba(255, 255, 255, 0.7);
    transition: color 0.2s ease;
}

.footer-section a:hover {
    color: var(--primary-orange);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.5);
    margin: 0;
}

.footer-links {
    display: flex;
    gap: 24px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.5);
}

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

/* ============================================
   SAMPLE REPORTS SECTION - MOBILE OPTIMIZATION
   ============================================ */
@media (max-width: 768px) {
    #sample-reports {
        display: none; /* Hidden on mobile for faster loading */
    }
}

/* Desktop and tablet - always visible */
@media (min-width: 769px) {
    #sample-reports {
        display: block; /* Always visible on desktop */
    }
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 1024px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-visual {
        display: none;
    }
    
    .hero-actions {
        justify-content: center;
    }
    
    .hero-stats {
        justify-content: center;
    }
    
    .workflow-diagram {
        flex-direction: column;
        gap: 40px;
    }
    
    .workflow-arrow {
        transform: rotate(90deg);
    }
}

@media (max-width: 768px) {
    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(10px);
        flex-direction: column;
        padding: 20px;
        border-bottom: 1px solid var(--border-light);
        box-shadow: var(--shadow-lg);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        z-index: 1000;
    }
    
    .nav-links.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    
    .nav-mobile-toggle {
        display: flex;
    }
    
    .nav-mobile-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .nav-mobile-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .nav-mobile-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }
    
    .nav-link {
        padding: 12px 0;
        display: block;
        border-bottom: 1px solid var(--border-light);
        min-height: 44px;
        display: flex;
        align-items: center;
    }
    
    .nav-link:last-child {
        border-bottom: none;
    }
    
    .nav-dropdown {
        position: static;
        width: 100%;
    }
    
    .dropdown-toggle {
        justify-content: space-between;
        width: 100%;
    }
    
    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border: none;
        background: rgba(248, 249, 250, 0.6);
        padding: 8px 0;
        margin: 8px 0;
        border-radius: 8px;
    }
    
    .dropdown-item {
        padding: 10px 20px;
        border-bottom: none;
        font-size: 14px;
        font-weight: 500;
        color: var(--text-secondary);
    }
    
    .dropdown-item:hover {
        background: rgba(255, 123, 0, 0.1);
        transform: none;
    }
    
    h1, .hero-title {
        font-size: 2rem;
    }
    
    h2, .section-title {
        font-size: 1.75rem;
    }
    
    .features-grid,
    .use-cases-grid,
    .pricing-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .docs-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .tools-showcase {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 20px;
    }
    
    .cta-actions {
        flex-direction: column;
    }
    
    .tab-buttons {
        overflow-x: auto;
        border-bottom: none;
    }
    
    .pricing-card.featured {
        transform: none;
    }
}

@media (max-width: 992px) {
    .pricing-grid,
    .pricing-fallback-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .pricing-grid,
    .pricing-fallback-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .pricing-card,
    .pricing-fallback-card {
        padding: 25px;
    }
    
    #stripe-pricing-table-container {
        padding: 0 0.5rem;
    }
    
    .demo-card {
        margin: 0 1rem;
        padding: 25px;
    }
    
    .demo-title {
        font-size: 1.25rem;
    }
}

@media (max-width: 480px) {
    section {
        padding: 60px 0;
    }
    
    .hero {
        padding: 60px 20px;
    }
    
    .container {
        padding: 0 16px;
    }
    
    .logo-animation {
        height: 150px;
    }
    
    .animated-logo {
        height: 100px;
    }
    
    .hero-title {
        font-size: 1.75rem;
    }
    
    .hero-stats {
        gap: 40px;
    }
    
    .hero-background-left,
    .hero-background-right {
        display: none;
    }
    
    .video-window-bg {
        min-width: unset;
        width: 100%;
        max-width: 500px;
        margin: 0 auto;
    }
}

/* Tablet adjustments */
@media (max-width: 1024px) {
    .video-window-bg {
        min-width: 350px;
    }
    
    .hero-background-right {
        right: -80px;
        transform: rotate(5deg) scale(0.75);
    }
}

/* ============================================
   FEATURES SPLIT LAYOUT
   ============================================ */
.features-split {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 40px;
    align-items: stretch;
    margin-top: 60px;
    position: relative;
}

.features-left {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: repeat(4, auto);
    gap: 20px;
    height: fit-content;
}

.features-right {
    position: sticky;
    top: 100px;
    height: fit-content;
    max-height: calc(100vh - 120px);
    display: flex;
    justify-content: center;
    align-items: center;
    min-width: 0;
    overflow: visible;
}

/* Terminal Styles for Features Section */
.terminal-container {
    background: #1e1e1e;
    border-radius: 12px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    overflow: hidden;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    height: 500px; /* Fixed height to prevent jumping */
    min-height: 500px;
    max-height: calc(100vh - 200px);
    display: flex;
    flex-direction: column;
    position: relative;
}

.terminal-header {
    background: linear-gradient(180deg, #2d2d2d 0%, #252525 100%);
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.terminal-controls {
    display: flex;
    gap: 8px;
}

.terminal-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    cursor: pointer;
    transition: transform 0.2s;
}

.terminal-dot:hover {
    transform: scale(1.1);
}

.terminal-dot.red { background: #ff5f56; }
.terminal-dot.yellow { background: #ffbd2e; }
.terminal-dot.green { background: #27c93f; }

.terminal-title {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.875rem;
    font-family: 'Geist Mono', monospace;
}

.terminal-actions {
    display: flex;
    gap: 12px;
}

.terminal-action {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.7);
    padding: 4px 12px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-family: 'Geist Mono', monospace;
    cursor: pointer;
    transition: all 0.2s;
}

.terminal-action:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.terminal-action.active {
    background: #667eea;
    border-color: #667eea;
    color: white;
}

.terminal-content {
    padding: 24px;
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    font-family: 'Geist Mono', monospace;
    font-size: 14px;
    line-height: 1.6;
    min-height: 0;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.terminal-line {
    margin-bottom: 12px;
    opacity: 0;
    animation: fadeInUp 0.3s ease forwards;
    min-width: 0;
    max-width: 100%;
    overflow-wrap: break-word;
    word-wrap: break-word;
}

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

.terminal-prompt {
    color: #27c93f;
    margin-right: 8px;
    user-select: none;
}

.terminal-command {
    color: #ffffff;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.terminal-output {
    color: #a0a0a0;
    margin-left: 0;
    white-space: pre-wrap;
    font-size: 13px;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.terminal-success {
    color: #27c93f;
}

.terminal-json {
    color: #87ceeb;
    display: block;
    margin-left: 20px;
    white-space: pre-wrap;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.terminal-content a,
.terminal-line a,
.terminal-json a,
.terminal-output a {
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
    max-width: 100%;
    display: inline-block;
}

.typing-cursor {
    display: inline-block;
    width: 8px;
    height: 16px;
    background: #ffffff;
    animation: blink 1s infinite;
    vertical-align: text-bottom;
    margin-left: 2px;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

/* Terminal scrollbar */
.terminal-content::-webkit-scrollbar {
    width: 8px;
}

.terminal-content::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
}

.terminal-content::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
}

.terminal-content::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* Responsive adjustments for features split */
@media (max-width: 1024px) {
    .features-split {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .features-left {
        grid-template-columns: 1fr 1fr;
        order: 2;
    }
    
    .features-right {
        position: relative;
        top: auto;
        max-height: none;
        overflow: visible;
        order: 1;
    }
}

@media (max-width: 768px) {
    .features-left {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .terminal-container {
        height: 400px; /* Fixed height for mobile */
    }
    
    .video-container-features {
        height: 350px; /* Slightly smaller on mobile */
        border-radius: 16px;
    }
    
    .terminal-content {
        padding: 16px;
        font-size: 12px;
        flex: 1;
        overflow-y: auto;
    }
    
    .features-split {
        gap: 30px;
        margin-top: 40px;
    }
}

/* ============================================
   SECURITY BADGE
   ============================================ */
.security-badge-hero {
    margin: 2rem 0;
    display: flex;
    justify-content: center;
}

.security-badge {
    display: inline-flex;
    align-items: center;
    background: linear-gradient(135deg, rgba(249, 115, 22, 0.1) 0%, rgba(249, 115, 22, 0.05) 100%);
    border: 2px solid var(--primary-orange);
    border-radius: 50px;
    padding: 1rem 1.5rem;
    box-shadow: 0 4px 20px rgba(249, 115, 22, 0.1);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

.security-badge:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(249, 115, 22, 0.2);
    text-decoration: none;
    color: inherit;
}

.security-icon {
    font-size: 1.5rem;
    margin-right: 0.75rem;
}

.security-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.security-text strong {
    color: var(--primary-orange);
    font-weight: 700;
    font-size: 0.9rem;
}

.security-text span {
    color: var(--text-secondary);
    font-size: 0.8rem;
    margin-top: 0.25rem;
}

@media (max-width: 768px) {
    .security-badge-hero {
        margin: 1.5rem 0;
        padding: 0 1rem;
    }
    
    .security-badge {
        padding: 0.75rem 1.25rem;
        flex-direction: row; /* Keep horizontal layout */
        text-align: left;
        width: 100%;
        max-width: none;
        border-radius: 12px; /* Less rounded for mobile */
    }
    
    .security-icon {
        margin-right: 0.5rem;
        font-size: 1.25rem; /* Slightly smaller on mobile */
    }
    
    .security-text strong {
        font-size: 0.85rem;
    }
    
    .security-text span {
        font-size: 0.75rem;
    }
}

@media (max-width: 480px) {
    .security-badge {
        padding: 0.6rem 1rem;
        flex-direction: column;
        text-align: center;
    }
    
    .security-icon {
        margin-right: 0;
        margin-bottom: 0.4rem;
        font-size: 1.1rem;
    }
}

/* Simple Installation Section */
.simple-installation {
    padding: 80px 0;
    background: var(--bg-light);
    position: relative;
}

.installation-content {
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.installation-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-orange);
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.installation-subtitle {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.6;
    font-weight: 400;
}

.installation-cta-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 14px 28px;
    background: var(--primary-orange);
    color: white;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.2s ease;
    border: 2px solid var(--primary-orange);
}

.installation-cta-button:hover {
    background: transparent;
    border-color: var(--primary-orange);
    color: var(--primary-orange);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.installation-cta-button span,
.installation-cta-button svg {
    position: relative;
    z-index: 1;
}

.button-arrow {
    transition: transform 0.2s ease;
}

.installation-cta-button:hover .button-arrow {
    transform: translateX(3px);
}

.installation-note {
    margin-top: 1.5rem;
    font-size: 0.875rem;
    color: var(--text-light);
    font-weight: 400;
}

/* Responsive Design */
@media (max-width: 768px) {
    .simple-installation {
        padding: 60px 20px;
    }
    
    .installation-title {
        font-size: 2rem;
    }
    
    .installation-subtitle {
        font-size: 1.1rem;
    }
    
    .installation-cta-button {
        padding: 0.875rem 2rem;
        font-size: 1rem;
    }
}