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

html, body {
    overflow-x: hidden;
    max-width: 100%;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background: #ffffff;
}

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

/* Responsive media - mobile only */
img {
    max-width: 100%;
    height: auto;
}

.video-container {
    position: relative;
    width: 100%;
    max-width: 560px; /* Preserve original YouTube size */
    margin: 0 auto;
}

.video-container iframe {
    width: 560px;
    height: 315px;
}

/* Navigation */
nav {
    background: #0a2540;
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 0;
    text-decoration: none;
    color: inherit;
}

.logo-placeholder {
    width: 50px;
    height: 50px;
    background: #1e88e5;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.8em;
    text-align: center;
    padding: 5px;
}

.logo-img {
    width: 50px;
    height: 50px;
    object-fit: contain;
    border-radius: 8px;
}

.logo-text {
    color: white;
    font-size: 1.3em;
    font-weight: 700;
}

.logo-text .product-name {
    font-size: 0.75em;
    font-weight: 500;
    display: block;
    opacity: 0.9;
}

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

.nav-links li a {
    color: white;
    text-decoration: none;
    padding: 25px 25px;
    display: block;
    font-weight: 500;
    transition: background 0.3s ease;
}

.nav-links li a:hover,
.nav-links li a.active {
    background: #1e88e5;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 20px;
}

.nav-cta {
    margin-left: 0;
}

.nav-cta .btn {
    padding: 12px 24px;
    font-size: 0.95em;
}

.btn {
    padding: 16px 32px;
    font-size: 1.1em;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
}

.btn-primary {
    background: #16a34a;
    color: white;
}

.btn-primary:hover {
    background: #15803d;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(22, 163, 74, 0.4);
}

.btn-secondary {
    background: white;
    color: #0a2540;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #0a2540 0%, #1565c0 100%);
    color: white;
    padding: 60px 20px;
    text-align: center;
}

.hero h1 {
    font-size: 2.8em;
    margin-bottom: 20px;
    font-weight: 700;
}

.hero p {
    font-size: 1.3em;
    opacity: 0.95;
}

/* Main Content */
.main-content {
    padding: 60px 20px;
    background: #f8fafc;
}

.section-title {
    text-align: center;
    font-size: 2.5em;
    color: #0a2540;
    margin-bottom: 20px;
}

.section-subtitle {
    text-align: center;
    font-size: 1.2em;
    color: #64748b;
    margin-bottom: 40px;
}

/* ROI Table Sections */
.section-label {
    text-align: center;
    font-size: 3em;
    font-weight: 700;
    color: #0a2540;
    margin: 60px 0 30px 0;
    padding: 20px;
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    border-radius: 12px;
    border: 3px solid #1e88e5;
}

.roi-section {
    background: white;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    margin-bottom: 60px;
}

.roi-section h2 {
    color: #0a2540;
    font-size: 2em;
    margin-bottom: 20px;
}

.roi-section h3 {
    color: #1e88e5;
    font-size: 1.3em;
    margin-bottom: 20px;
}

/* Tables */
.table-wrapper {
    overflow-x: auto;
    margin: 20px 0;
    -webkit-overflow-scrolling: touch;
}

table {
    width: 100%;
    border-collapse: collapse;
    min-width: 600px;
}

th, td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid #e2e8f0;
}

th {
    background: #0a2540;
    color: white;
    font-weight: 600;
}

tr:hover {
    background: #f8fafc;
}

.highlight-row {
    background: #eff6ff;
    font-weight: 600;
    color: #1e88e5;
}

.total-row {
    background: #dcfce7;
    font-weight: 700;
    color: #16a34a;
    font-size: 1.1em;
}

/* Interactive Calculator */
.calculator-inputs {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.input-group {
    display: flex;
    flex-direction: column;
}

.input-group label {
    font-weight: 600;
    color: #0a2540;
    margin-bottom: 8px;
}

.input-group input {
    padding: 12px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 1em;
    transition: border 0.3s ease;
}

.input-group input:focus {
    outline: none;
    border-color: #1e88e5;
}

.calculate-btn {
    padding: 16px 40px;
    background: #1e88e5;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1.2em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin: 20px 0;
}

.calculate-btn:hover {
    background: #1565c0;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(30, 136, 229, 0.4);
}

.results-hidden {
    display: none;
}

.footnote {
    background: #fef3c7;
    padding: 20px;
    border-left: 4px solid #f59e0b;
    margin-top: 20px;
    border-radius: 8px;
}

.footnote p {
    color: #92400e;
    margin: 5px 0;
}

/* Footer */
footer {
    background: #0a2540;
    color: white;
    padding: 60px 20px 20px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
}

.footer-cta {
    display: flex;
    gap: 20px;
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;
}

.footer-logo-placeholder {
    width: 60px;
    height: 60px;
    background: #e4e4e4;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #0a2540;
    font-size: 0.8em;
    text-align: center;
    padding: 5px;
}

.footer-logo {
    width: 60px;
    height: 60px;
    object-fit: contain;
    border-radius: 8px;
}

.footer-links {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
    justify-content: center;
}

.footer-links a {
    color: #e4e4e4;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #1e88e5;
}

.footer-bottom {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid rgba(228, 228, 228, 0.2);
    text-align: center;
    color: #e4e4e4;
    font-size: 0.9em;
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    width: 40px;
    height: 40px;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: visible;
}

.mobile-menu-btn span {
    width: 24px;
    height: 3px;
    background: white;
    transition: all 0.3s ease;
    transform-origin: center;
    position: absolute;
}

.mobile-menu-btn span:nth-child(1) {
    top: 12px;
}

.mobile-menu-btn span:nth-child(2) {
    top: 18px;
}

.mobile-menu-btn span:nth-child(3) {
    top: 24px;
}

.mobile-menu-btn.active span:nth-child(1) {
    transform: rotate(45deg);
    top: 18px;
}

.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
    transform: rotate(-45deg);
    top: 18px;
}

@media (max-width: 818px) {
    .mobile-menu-btn {
        display: flex;
    }
    
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: #0a2540;
        flex-direction: column;
        box-shadow: 0 2px 8px rgba(0,0,0,0.1);
        z-index: 1000;
    }
    
    .nav-menu.active {
        display: flex;
    }
    
    .nav-links {
        flex-direction: column;
        margin: 0;
        padding: 0;
    }
    
    .nav-links li {
        width: 100%;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }
    
    .nav-links li:last-child {
        border-bottom: none;
    }
    
    .nav-links li a {
        display: block;
        padding: 15px 20px;
        width: 100%;
        text-align: left;
    }
    
    .nav-cta {
        padding: 15px 20px;
        border-top: 1px solid rgba(255,255,255,0.1);
    }
    
    .nav-cta .btn {
        width: 100%;
        text-align: center;
    }
    .nav-container {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        position: relative;
    }
    
    /* Mobile video responsiveness */
    .video-container {
        max-width: 100%;
    }
    
    .video-container iframe {
        width: 100%;
        height: auto;
        aspect-ratio: 16/9;
    }
    
    .logo {
        padding: 15px 0;
    }
    
    .nav-links {
        width: 100%;
    }
    
    .nav-links li a {
        padding: 15px 20px;
    }
    
    .nav-cta {
        width: 100%;
        margin-left: 0;
        padding: 15px 20px;
    }
    
    .nav-cta .btn {
        width: 100%;
    }
    
    .hero h1 {
        font-size: 2em;
    }
    
    .section-title {
        font-size: 2em;
    }
    
    .section-label {
        font-size: 2em;
        margin: 40px 0 20px 0;
    }
    
    .roi-section {
        padding: 20px;
    }
    
    /* Mobile table improvements */
    .roi-section {
        overflow-x: auto;
        margin: 20px -15px;
        padding: 20px 15px;
    }
    
    table {
        font-size: 0.8em;
        min-width: 600px;
    }
    
    th, td {
        padding: 8px 4px;
        white-space: nowrap;
    }
    
    /* Mobile calculator improvements */
    .calculator-inputs {
        grid-template-columns: 1fr;
        gap: 15px;
        margin: 20px 0;
    }
    
    .input-group input {
        font-size: 16px; /* Prevents zoom on iOS */
        padding: 15px 12px;
    }
    
    .calculate-btn {
        width: 100%;
        padding: 15px;
        font-size: 16px;
        margin: 20px 0 !important;
    }
    
    #resultsTable table {
        font-size: 0.75em;
    }
    
    #resultsTable th,
    #resultsTable td {
        padding: 6px 3px;
    }
}