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

:root {
    --primary-black: #010101;
    --secondary-black: #181818;
    --tertiary-black: #252526;
    --accent-red: #FF213A;
    --white: #FFFFFF;
    --light-gray: #CCCCCC;
    --font-primary: 'neue-haas-grotesk-display', 'Inter', 'Space Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-secondary: 'Space Grotesk', 'Inter', sans-serif;
}

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

#three-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
}

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

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 1.5rem 2rem;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.4) 70%, transparent 100%);
    height: 100px;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
}

/* Compact header variant for secondary pages */
.site-header.compact {
    height: 60px;
    padding: 0.75rem 1.5rem;
    align-items: center;
}

.site-header.compact .nav-links {
    gap: 1.25rem;
    margin-top: 0;
}

.site-header.compact #prime-logo {
    width: 28px;
    height: 28px;
}

.site-header.compact .logo-text {
    font-size: 0.9rem;
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
    margin-top: 0.5rem;
}

.nav-link {
    color: var(--white);
    text-decoration: none;
    font-family: var(--font-secondary);
    font-size: 0.9rem;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: var(--accent-red);
}

.logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    transition: all 0.3s ease;
}

.logo-link:hover {
    transform: scale(1.05);
}

#prime-logo {
    width: 40px;
    height: 40px;
    fill: var(--white);
    margin-right: 0.8rem;
    transition: fill 0.3s ease;
}

.logo-link:hover #prime-logo {
    fill: var(--accent-red);
}

.logo-text {
    font-family: var(--font-primary);
    font-size: 1rem;
    font-weight: 500;
    color: var(--white);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    transition: color 0.3s ease;
}

/* Adjust hero/title scales when using compact header */
/* Calculator hero typography (compact) */
.site-header.compact ~ .calculator-hero .hero-content h1 {
    font-size: clamp(1.8rem, 4.5vw, 3rem);
}

.site-header.compact ~ .calculator-hero .hero-content .subtitle {
    font-size: clamp(0.9rem, 2.2vw, 1.1rem);
}

.site-header.compact ~ .about-hero h1 {
    font-size: clamp(2rem, 4.5vw, 3rem);
}

.site-header.compact ~ .contact-hero h1 {
    font-size: clamp(1.8rem, 4.5vw, 2.75rem);
}

/* Shorter hero heights on selected secondary pages */
.site-header.compact ~ .about-hero { min-height: 50vh; }
.site-header.compact ~ .contact-hero { min-height: 50vh; }
.site-header.compact ~ .calculator-hero { min-height: 50vh; }

/* Add top clearance under fixed compact header */
.site-header.compact ~ .about-hero,
.site-header.compact ~ .contact-hero,
.site-header.compact ~ .calculator-hero {
    padding-top: 80px; /* ensure content sits comfortably below header */
}

@media (max-width: 768px) {
    .site-header.compact ~ .about-hero,
    .site-header.compact ~ .contact-hero,
    .site-header.compact ~ .calculator-hero {
        padding-top: 70px;
    }
}

.logo-link:hover .logo-text {
    color: var(--accent-red);
}

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    background: url('images/background_hero.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    clip-path: polygon(0 0, 100% 0, 100% 95%, 0 100%);
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0.3) 50%, transparent 100%);
    pointer-events: none;
    z-index: 1;
}

.hero-content {
    max-width: 600px;
    z-index: 10;
    position: relative;
}

.hero h1 {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 300;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
    text-transform: uppercase;
    color: #FFFFFF;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

.hero .subtitle {
    font-size: clamp(1.2rem, 3vw, 1.5rem);
    font-weight: 400;
    margin-bottom: 2rem;
    color: #CCCCCC;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.7);
}

.hero .description {
    font-size: 1.1rem;
    margin-bottom: 3rem;
    line-height: 1.7;
    color: #CCCCCC;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.7);
}

.cta-button {
    display: inline-block;
    background: var(--accent-red);
    color: var(--white);
    padding: 1rem 2.5rem;
    text-decoration: none;
    font-weight: 400;
    font-size: 0.9rem;
    border-radius: 0;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-family: var(--font-secondary);
    position: relative;
    overflow: hidden;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.cta-button:hover::before {
    left: 100%;
}

.cta-button:hover {
    background: #E01E35;
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(255, 33, 58, 0.3);
}

.section {
    padding: 6rem 0;
    position: relative;
}

.section:nth-child(even) {
    background-color: var(--secondary-black);
    clip-path: polygon(0 5%, 100% 0%, 100% 95%, 0 100%);
    margin: 2rem 0;
}

.section:nth-child(odd):not(.hero) {
    clip-path: polygon(0 0%, 100% 5%, 100% 100%, 0 95%);
}

.section h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 300;
    margin-bottom: 3rem;
    text-align: center;
    letter-spacing: -0.02em;
    text-transform: uppercase;
    font-family: var(--font-primary);
}

.section h3 {
    font-size: 1.5rem;
    font-weight: 400;
    margin-bottom: 1.5rem;
    color: var(--accent-red);
}

.section p {
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
    color: var(--light-gray);
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    margin: 3rem 0;
}

.card {
    background: var(--tertiary-black);
    padding: 2.5rem;
    border-left: 3px solid var(--accent-red);
    transition: transform 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
}

.card h4 {
    font-size: 1.3rem;
    font-weight: 500;
    margin-bottom: 1rem;
    color: var(--white);
}

.card p {
    font-size: 1rem;
    color: var(--light-gray);
}

.tech-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.tech-category {
    background: var(--tertiary-black);
    padding: 2rem;
    text-align: center;
}

.tech-category h4 {
    font-size: 1.2rem;
    font-weight: 500;
    margin-bottom: 1rem;
    color: var(--accent-red);
}

.tech-list {
    list-style: none;
    line-height: 1.8;
}

.stats-section {
    background: var(--secondary-black);
    padding: 6rem 0;
    clip-path: polygon(0 5%, 100% 0%, 100% 95%, 0 100%);
    margin: 2rem 0;
}

.stats-section h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 300;
    margin-bottom: 1rem;
    text-align: center;
    letter-spacing: -0.02em;
    text-transform: uppercase;
    font-family: var(--font-primary);
    color: var(--white);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.stat-card {
    background: var(--tertiary-black);
    padding: 2.5rem 2rem;
    text-align: center;
    border: 1px solid transparent;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--accent-red);
    transform: scaleX(0);
    transition: transform 0.5s ease;
}

.stat-card.animate::before {
    transform: scaleX(1);
}

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

.stat-number {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 300;
    line-height: 1;
    margin-bottom: 1rem;
    font-family: var(--font-primary);
}

.stat-prefix {
    color: var(--white);
    font-size: 0.25em;
    font-weight: 400;
}

.stat-value {
    color: var(--accent-red);
}

.stat-suffix {
    color: var(--accent-red);
    font-size: 0.7em;
}

.stat-label {
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--white);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-family: var(--font-secondary);
}

.stat-description {
    font-size: 0.95rem;
    color: var(--light-gray);
    line-height: 1.4;
}

.white-paper-cta {
    text-align: center;
    margin-top: 4rem;
    padding-top: 3rem;
    border-top: 1px solid var(--tertiary-black);
}

.white-paper-cta p {
    font-size: 1.1rem;
    color: var(--light-gray);
    margin-bottom: 2rem;
}

.white-paper-link {
    display: inline-flex;
    align-items: center;
    background: transparent;
    color: var(--white);
    padding: 1rem 2rem;
    text-decoration: none;
    font-family: var(--font-secondary);
    font-size: 0.9rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border: 2px solid var(--accent-red);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.white-paper-link:hover {
    background: var(--accent-red);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 33, 58, 0.3);
}

.download-icon {
    margin-left: 0.5rem;
    font-size: 1.1em;
    transition: transform 0.3s ease;
}

.white-paper-link:hover .download-icon {
    transform: translateY(2px);
}

.comparison-table-section {
    background: var(--primary-black);
    padding: 6rem 0;
    clip-path: polygon(0 0%, 100% 5%, 100% 100%, 0 95%);
}

.comparison-table-section h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 300;
    margin-bottom: 1rem;
    text-align: center;
    letter-spacing: -0.02em;
    text-transform: uppercase;
    font-family: var(--font-primary);
    color: var(--white);
}

.table-container {
    max-width: 800px;
    margin: 0 auto;
    overflow-x: auto;
    border-radius: 0;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.performance-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--secondary-black);
    font-family: var(--font-secondary);
}

.performance-table thead {
    background: var(--tertiary-black);
}

.performance-table th {
    padding: 1.5rem 1rem;
    text-align: left;
    font-size: 1rem;
    font-weight: 600;
    color: var(--white);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom: 2px solid var(--accent-red);
}

.performance-table tbody tr {
    border-bottom: 1px solid var(--tertiary-black);
    transition: background-color 0.3s ease;
}

.performance-table tbody tr:hover {
    background: var(--tertiary-black);
}

.performance-table td {
    padding: 1.2rem 1rem;
    font-size: 1rem;
}

.metric-name {
    font-weight: 500;
    color: var(--white);
}

.real-only {
    color: var(--light-gray);
    font-weight: 400;
}

.combined-data {
    color: var(--accent-red);
    font-weight: 600;
    position: relative;
}

.combined-data::after {
    content: '↗';
    margin-left: 0.5rem;
    color: var(--accent-red);
    font-size: 0.8em;
}

.table-source {
    text-align: center;
    margin-top: 2rem;
}

.table-source p {
    font-size: 0.9rem;
    color: var(--light-gray);
    font-style: italic;
}

.logos-stripe {
    background: var(--primary-black);
    padding: 3rem 0;
    overflow: hidden;
    position: relative;
}

.logos-container {
    width: 100%;
    overflow: hidden;
}

.logos-scroll {
    display: flex;
    align-items: center;
    gap: 4rem;
    animation: scroll-logos 30s linear infinite;
    width: max-content;
}

.logo {
    height: 50px;
    width: auto;
    max-width: 150px;
    object-fit: contain;
    filter: grayscale(1) brightness(0.8);
    transition: all 0.3s ease;
    opacity: 0.7;
}

.logo:hover {
    filter: grayscale(0) brightness(1);
    opacity: 1;
    transform: scale(1.05);
}

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

.comparison {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin: 3rem 0;
    align-items: center;
}

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

.comparison-image {
    width: 100%;
    height: 300px;
    background: var(--tertiary-black);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: var(--light-gray);
    border: 2px dashed var(--accent-red);
    position: relative;
    overflow: hidden;
}

.comparison-image::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent 30%, rgba(255, 33, 58, 0.1) 50%, transparent 70%);
    animation: rotate 8s linear infinite;
}

@keyframes rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Image Viewer Styles */
.image-viewer {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    margin: 3rem 0;
    align-items: flex-start;
}

.main-viewer {
    position: relative;
}

.main-image-container {
    position: relative;
    background: var(--tertiary-black);
    border-radius: 8px;
    overflow: hidden;
    aspect-ratio: 1;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

#main-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.3s ease;
}

.image-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.9));
    padding: 2rem;
    color: var(--white);
}

.image-overlay h4 {
    margin: 0 0 0.5rem 0;
    font-size: 1.2rem;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.image-overlay p {
    margin: 0;
    font-size: 0.95rem;
    opacity: 0.9;
    line-height: 1.4;
}

.thumbnail-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.thumbnail {
    position: relative;
    background: var(--tertiary-black);
    border-radius: 6px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    aspect-ratio: 1;
}

.thumbnail:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 33, 58, 0.2);
    border-color: var(--accent-red);
}

.thumbnail.active {
    border-color: var(--accent-red);
    box-shadow: 0 0 20px rgba(255, 33, 58, 0.3);
}

.thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.3s ease;
}

.thumbnail-label {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.9));
    color: var(--white);
    padding: 1rem 0.75rem;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 500;
}

.industries {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin: 3rem 0;
}

.industry-tag {
    background: var(--tertiary-black);
    padding: 1.5rem 1rem;
    text-align: center;
    border: 1px solid var(--accent-red);
    transition: all 0.3s ease;
}

.industry-tag:hover {
    background: var(--accent-red);
    transform: scale(1.05);
}

.faq {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: var(--tertiary-black);
    margin-bottom: 1rem;
    border-left: 3px solid var(--accent-red);
}

.faq-question {
    padding: 1.5rem;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.3s ease;
}

.faq-question:hover {
    background: var(--secondary-black);
}

.faq-answer {
    padding: 0 1.5rem 1.5rem;
    color: var(--light-gray);
}

.footer {
    background: var(--primary-black);
    text-align: center;
    padding: 4rem 0;
}

.footer h2 {
    font-size: 2.5rem;
    font-weight: 300;
    margin-bottom: 2rem;
}

.footer p {
    font-size: 1.2rem;
    margin-bottom: 3rem;
    color: var(--light-gray);
}

.contact {
    background: var(--secondary-black);
    padding: 4rem 0;
    clip-path: polygon(0 5%, 100% 0%, 100% 100%, 0 100%);
    margin-top: 2rem;
}

.contact h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 300;
    margin-bottom: 3rem;
    text-align: center;
    letter-spacing: -0.02em;
    text-transform: uppercase;
    font-family: var(--font-primary);
}

.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    max-width: 800px;
    margin: 0 auto;
}

.contact-item {
    background: var(--tertiary-black);
    padding: 2.5rem;
    text-align: center;
    border-left: 3px solid var(--accent-red);
}

.contact-item h3 {
    font-size: 1.3rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
    color: var(--accent-red);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.contact-item .address {
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--light-gray);
    margin: 0;
}

.contact-item .phone {
    margin: 0;
}

.contact-item .phone a {
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--white);
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-item .phone a:hover {
    color: var(--accent-red);
}

@media (max-width: 768px) {
    .container {
        padding: 0 1.5rem;
    }

    .section {
        padding: 3rem 0;
    }

    .section:nth-child(even) {
        margin: 1rem 0;
        clip-path: polygon(0 3%, 100% 0%, 100% 97%, 0 100%);
    }

    .section:nth-child(odd):not(.hero) {
        clip-path: polygon(0 0%, 100% 3%, 100% 100%, 0 97%);
    }

    .hero {
        min-height: 100vh;
        padding: 2rem 0;
        clip-path: polygon(0 0, 100% 0, 100% 97%, 0 100%);
    }

    .hero h1 {
        font-size: clamp(2rem, 8vw, 2.8rem);
        line-height: 1.2;
        margin-bottom: 1rem;
        letter-spacing: -0.01em;
    }

    .hero .subtitle {
        font-size: clamp(1rem, 4vw, 1.3rem);
        margin-bottom: 1.5rem;
        line-height: 1.4;
    }

    .hero .description {
        font-size: 1rem;
        margin-bottom: 2rem;
        line-height: 1.6;
    }

    .section h2 {
        font-size: clamp(1.5rem, 6vw, 2.2rem);
        margin-bottom: 2rem;
        line-height: 1.3;
    }

    .section p {
        font-size: 1rem;
        line-height: 1.6;
        margin-bottom: 1.5rem;
    }

    .grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        margin: 2rem 0;
    }

    .card {
        padding: 1.5rem;
    }

    .card h4 {
        font-size: 1.1rem;
        margin-bottom: 0.8rem;
    }

    .card p {
        font-size: 0.95rem;
        line-height: 1.5;
    }

    .tech-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        margin: 2rem 0;
    }

    .tech-category {
        padding: 1.5rem;
    }

    .tech-category h4 {
        font-size: 1.1rem;
    }

    .comparison {
        grid-template-columns: 1fr;
        gap: 2rem;
        margin: 2rem 0;
    }

    .comparison-image {
        height: 200px;
        font-size: 0.9rem;
    }

    /* Mobile Image Viewer */
    .image-viewer {
        grid-template-columns: 1fr;
        gap: 2rem;
        margin: 2rem 0;
    }

    .thumbnail-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.75rem;
        order: 2;
    }

    .main-viewer {
        order: 1;
    }

    .image-overlay {
        padding: 1.5rem;
    }

    .image-overlay h4 {
        font-size: 1rem;
    }

    .image-overlay p {
        font-size: 0.85rem;
    }

    .thumbnail-label {
        padding: 0.75rem 0.5rem;
        font-size: 0.7rem;
    }

    .industries {
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem;
        margin: 2rem 0;
    }

    .industry-tag {
        padding: 1.2rem 1rem;
    }

    .industry-tag h4 {
        font-size: 1rem;
        margin-bottom: 0.5rem;
    }

    .industry-tag p {
        font-size: 0.9rem;
    }

    .faq {
        margin: 2rem 0;
    }

    .faq-question {
        padding: 1.2rem;
        font-size: 1rem;
    }

    .faq-answer {
        padding: 0 1.2rem 1.2rem;
        font-size: 0.95rem;
        line-height: 1.5;
    }

    .footer {
        padding: 3rem 0;
    }

    .footer h2 {
        font-size: clamp(1.8rem, 6vw, 2.2rem);
        margin-bottom: 1.5rem;
    }

    .footer p {
        font-size: 1rem;
        margin-bottom: 2rem;
        line-height: 1.5;
    }

    .contact {
        padding: 3rem 0;
        margin-top: 1rem;
        clip-path: polygon(0 3%, 100% 0%, 100% 100%, 0 100%);
    }

    .contact h2 {
        font-size: clamp(1.5rem, 6vw, 2rem);
        margin-bottom: 2rem;
    }

    .contact-info {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .contact-item {
        padding: 1.5rem;
    }

    .contact-item h3 {
        font-size: 1.1rem;
        margin-bottom: 1rem;
    }

    .contact-item .address {
        font-size: 1rem;
    }

    .contact-item .phone a {
        font-size: 1.1rem;
    }

    .cta-button {
        padding: 0.8rem 2rem;
        font-size: 0.8rem;
        letter-spacing: 0.08em;
    }

    .site-header {
        padding: 1rem 1.5rem;
        height: 80px;
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .nav-links {
        gap: 1.5rem;
        margin-top: 0;
    }

    .nav-link {
        font-size: 0.8rem;
    }

    #prime-logo {
        width: 35px;
        height: 35px;
        margin-right: 0.6rem;
    }

    .logo-text {
        font-size: 0.9rem;
    }

    .logos-stripe {
        padding: 2rem 0;
    }

    .logos-scroll {
        gap: 2.5rem;
        animation: scroll-logos 25s linear infinite;
    }

    .logo {
        height: 40px;
        max-width: 120px;
    }

    .stats-section {
        padding: 4rem 0;
        margin: 1rem 0;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
        margin: 2rem 0;
    }

    .stat-card {
        padding: 2rem 1.5rem;
    }

    .stat-number {
        font-size: clamp(2rem, 8vw, 3rem);
    }

    .stat-label {
        font-size: 1rem;
    }

    .stat-description {
        font-size: 0.9rem;
    }

    .comparison-table-section {
        padding: 4rem 0;
    }

    .table-container {
        margin: 0 1rem;
    }

    .performance-table th,
    .performance-table td {
        padding: 1rem 0.5rem;
        font-size: 0.9rem;
    }

    .performance-table th {
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }

    .section {
        padding: 2.5rem 0;
    }

    .hero {
        padding: 1.5rem 0;
    }

    .hero h1 {
        font-size: clamp(1.8rem, 9vw, 2.5rem);
        margin-bottom: 0.8rem;
    }

    .hero .subtitle {
        font-size: clamp(0.9rem, 5vw, 1.2rem);
        margin-bottom: 1.2rem;
    }

    .hero .description {
        font-size: 0.95rem;
        margin-bottom: 1.5rem;
    }

    .section h2 {
        font-size: clamp(1.3rem, 7vw, 2rem);
        margin-bottom: 1.5rem;
    }

    .card {
        padding: 1.2rem;
    }

    .card h4 {
        font-size: 1rem;
    }

    .card p {
        font-size: 0.9rem;
    }

    .cta-button {
        padding: 0.7rem 1.5rem;
        font-size: 0.75rem;
    }

    .contact-item {
        padding: 1.2rem;
    }

    .faq-question {
        padding: 1rem;
        font-size: 0.95rem;
    }

    .faq-answer {
        padding: 0 1rem 1rem;
        font-size: 0.9rem;
    }

    .industries {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.8rem;
    }

    .industry-tag {
        padding: 1rem 0.5rem;
    }

    .industry-tag h4 {
        font-size: 0.9rem;
        margin-bottom: 0.3rem;
    }

    .industry-tag p {
        font-size: 0.8rem;
        line-height: 1.3;
    }

    .logos-stripe {
        padding: 1.5rem 0;
    }

    .logos-scroll {
        gap: 2rem;
        animation: scroll-logos 20s linear infinite;
    }

    .logo {
        height: 35px;
        max-width: 100px;
    }

    /* Small Mobile Image Viewer */
    .thumbnail-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
    }

    .image-overlay {
        padding: 1rem;
    }

    .image-overlay h4 {
        font-size: 0.9rem;
    }

    .image-overlay p {
        font-size: 0.8rem;
    }

    .thumbnail-label {
        padding: 0.5rem 0.3rem;
        font-size: 0.65rem;
    }
}

.highlight {
    color: var(--accent-red);
    font-weight: 500;
}

.animate-fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease;
}

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

/* Control Section Styles */
.control-section {
    background: var(--secondary-black);
    padding: 6rem 0;
    clip-path: polygon(0 3%, 100% 0%, 100% 97%, 0 100%);
}

.before-after-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
}


.before-after-container {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    background: var(--tertiary-black);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    cursor: col-resize;
    user-select: none;
}

.before-after-wrapper {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 100%; /* 1:1 aspect ratio for square images */
    overflow: hidden;
}

.before-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
}

.after-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
}

.after-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    clip-path: polygon(50% 0%, 100% 0%, 100% 100%, 50% 100%);
    transition: clip-path 0.1s ease;
}

.after-overlay .after-image {
    /* Image stays exactly the same size and position as before-image */
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
}

.slider-handle {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    height: 100%;
    width: 4px;
    cursor: col-resize;
    z-index: 10;
}

.slider-line {
    width: 100%;
    height: 100%;
    background: var(--accent-red);
    box-shadow: 0 0 8px rgba(255, 33, 58, 0.5);
}

.slider-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 48px;
    height: 48px;
    background: var(--accent-red);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: 0 4px 16px rgba(255, 33, 58, 0.3);
    transition: all 0.2s ease;
}

.slider-button:hover {
    transform: translate(-50%, -50%) scale(1.1);
    box-shadow: 0 6px 20px rgba(255, 33, 58, 0.4);
}

.slider-button svg {
    width: 24px;
    height: 24px;
}

/* Active state for dragging */
.before-after-container.dragging {
    cursor: col-resize;
}

.before-after-container.dragging .slider-button {
    transform: translate(-50%, -50%) scale(1.1);
    box-shadow: 0 6px 20px rgba(255, 33, 58, 0.5);
}

/* Mobile-specific optimizations */
@media (max-width: 768px) {
    #three-container canvas {
        opacity: 0.3;
    }

    .hero::before {
        background: linear-gradient(90deg, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0.3) 50%, transparent 100%);
    }

    .control-section {
        padding: 3rem 0;
    }

    .before-after-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    /* Make vial images smaller on mobile for touch space */
    .before-after-container {
        max-width: 80%;
        margin: 0 auto;
    }


    .slider-button {
        width: 40px;
        height: 40px;
    }

    .slider-button svg {
        width: 20px;
        height: 20px;
    }

    /* Larger touch target on mobile */
    .slider-handle {
        width: 20px;
        margin-left: -8px;
    }
}

@media (max-width: 480px) {
    .control-section {
        padding: 2.5rem 0;
    }

    .before-after-grid {
        gap: 1.5rem;
    }
}

/* Download Links Styles */
.download-links {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 1rem;
    padding: 0 1rem;
}

.download-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: var(--tertiary-black);
    color: var(--white);
    text-decoration: none;
    border-radius: 50%;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    border: 1px solid var(--secondary-black);
    opacity: 0.7;
}

.download-link:hover {
    background: var(--accent-red);
    border-color: var(--accent-red);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 33, 58, 0.3);
    opacity: 1;
}

.download-link .zoom-icon {
    transition: all 0.3s ease;
}

@media (max-width: 768px) {
    .download-links {
        gap: 0.8rem;
        margin-top: 1.5rem;
    }

    .download-link {
        width: 36px;
        height: 36px;
        font-size: 1rem;
    }
}

/* GenAI vs CG Page Styles */
.comparison-hero {
    background: linear-gradient(135deg, var(--primary-black) 0%, var(--secondary-black) 100%);
    padding: 8rem 0 6rem;
    text-align: center;
}

.comparison-hero h1 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, var(--white) 0%, var(--light-gray) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.3rem;
    color: var(--light-gray);
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.6;
}

.intro-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

/* Comparison Cards using existing card system */
.comparison-cards {
    display: grid;
    gap: 2rem;
    margin-top: 3rem;
}

.comparison-card {
    background: var(--tertiary-black);
    padding: 2.5rem;
    border-left: 3px solid var(--accent-red);
    transition: transform 0.3s ease;
}

.comparison-card:hover {
    transform: translateY(-5px);
}

.comparison-card h4 {
    color: var(--accent-red);
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.comparison-content {
    display: grid;
    gap: 1.5rem;
}

.genai-option,
.cg-option {
    padding: 1.5rem;
    border-radius: 8px;
}

.genai-option {
    background: var(--secondary-black);
    border: 1px solid var(--tertiary-black);
}

.cg-option {
    background: var(--primary-black);
    border: 2px solid var(--accent-red);
}

.genai-option h5,
.cg-option h5 {
    color: var(--white);
    font-size: 1.1rem;
    margin-bottom: 0.8rem;
    font-weight: 600;
}

.genai-option p {
    color: var(--light-gray);
    line-height: 1.6;
    margin: 0;
}

.cg-option p {
    color: var(--white);
    line-height: 1.6;
    margin: 0;
    font-weight: 500;
}

.premium-badge {
    display: inline-block;
    background: var(--accent-red);
    color: var(--white);
    padding: 0.2rem 0.6rem;
    border-radius: 15px;
    font-size: 0.7rem;
    font-weight: 600;
    margin-left: 0.5rem;
    text-transform: uppercase;
}

/* Choice cards using existing card system */
.choice-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 3rem;
    margin-top: 3rem;
}

.choice-card {
    background: var(--tertiary-black);
    padding: 2.5rem;
    border-left: 3px solid var(--accent-red);
    transition: transform 0.3s ease;
}

.choice-card:hover {
    transform: translateY(-5px);
}

.genai-card {
    border-left-color: var(--light-gray);
}

.cg-card {
    border-left-color: var(--accent-red);
}

.choice-card h3 {
    color: var(--white);
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
}

.choice-card ul {
    list-style: none;
    padding: 0;
}

.choice-card li {
    padding: 0.8rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--light-gray);
    line-height: 1.5;
}

.choice-card li:last-child {
    border-bottom: none;
}

.cg-card li {
    color: var(--white);
}

.cg-card strong {
    color: var(--accent-red);
}

/* Mobile responsive styles */
@media (max-width: 768px) {
    .comparison-hero {
        padding: 6rem 0 4rem;
    }

    .comparison-hero h1 {
        font-size: 2.2rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .intro-grid,
    .comparison-cards {
        gap: 1.5rem;
    }

    .comparison-card,
    .choice-card {
        padding: 2rem;
    }

    .comparison-card h4 {
        font-size: 1.3rem;
    }

    .genai-option,
    .cg-option {
        padding: 1.2rem;
    }

    .choice-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

/* Site Footer Styles */
.site-footer {
    background: var(--primary-black);
    border-top: 1px solid var(--secondary-black);
    padding: 2rem 0;
    margin-top: 2rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-left {
    color: var(--light-gray);
    font-size: 0.9rem;
}

.footer-right {
    display: flex;
    gap: 2rem;
}

.footer-link {
    color: var(--light-gray);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

/* Mobile responsive footer */
@media (max-width: 768px) {
    .site-footer {
        padding: 1.5rem 0;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 0.8rem;
    }

    .footer-right {
        gap: 1.5rem;
    }
}

/* Legal Pages Content Styles */
.legal-content {
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.7;
}

.legal-content h2 {
    color: var(--accent-red);
    font-size: 1.5rem;
    margin: 3rem 0 1rem 0;
    font-weight: 600;
}

.legal-content h3 {
    color: var(--white);
    font-size: 1.2rem;
    margin: 2rem 0 1rem 0;
    font-weight: 500;
}

.legal-content p {
    color: var(--light-gray);
    margin-bottom: 1.2rem;
}

.legal-content ul {
    color: var(--light-gray);
    margin: 1rem 0 1.5rem 2rem;
}

.legal-content li {
    margin-bottom: 0.5rem;
}

.legal-content a {
    color: var(--accent-red);
    text-decoration: none;
}

.legal-content a:hover {
    text-decoration: underline;
}

.legal-content strong {
    color: var(--white);
}

.legal-content em {
    color: var(--light-gray);
    font-size: 0.9rem;
}

/* Mobile responsive for legal content */
@media (max-width: 768px) {
    .legal-content {
        padding: 0 1rem;
    }

    .legal-content h2 {
        font-size: 1.3rem;
        margin: 2rem 0 1rem 0;
    }

    .legal-content h3 {
        font-size: 1.1rem;
        margin: 1.5rem 0 0.8rem 0;
    }

    .legal-content ul {
        margin-left: 1rem;
    }
}

/* Comparison Table Styles */
.comparison-table-container {
    max-width: 900px;
    margin: 0 auto;
    overflow-x: auto;
    border-radius: 0;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--secondary-black);
    font-family: var(--font-secondary);
}

.comparison-table thead {
    background: var(--tertiary-black);
}

.comparison-table th {
    padding: 1.5rem 1rem;
    text-align: left;
    font-size: 1rem;
    font-weight: 600;
    color: var(--white);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom: 2px solid var(--accent-red);
}

.comparison-table .premium-column {
    background: linear-gradient(135deg, var(--tertiary-black) 0%, var(--secondary-black) 100%);
    border-left: 3px solid var(--accent-red);
    color: var(--accent-red);
}

.comparison-table tbody tr {
    border-bottom: 1px solid var(--tertiary-black);
    transition: background-color 0.3s ease;
}

.comparison-table tbody tr:hover {
    background: var(--tertiary-black);
}

.comparison-table td {
    padding: 1.2rem 1rem;
    font-size: 1rem;
}

.comparison-table .attribute-cell {
    font-weight: 500;
    color: var(--white);
    background: var(--tertiary-black);
}

.comparison-table .premium-cell {
    color: var(--accent-red);
    font-weight: 600;
    background: linear-gradient(135deg, var(--secondary-black) 0%, var(--tertiary-black) 100%);
    border-left: 3px solid var(--accent-red);
}

.comparison-table tbody tr:nth-child(odd) .premium-cell {
    background: linear-gradient(135deg, var(--tertiary-black) 0%, var(--secondary-black) 100%);
}

.comparison-table td:nth-child(2) {
    color: var(--light-gray);
    font-weight: 400;
}

/* Mobile responsive for comparison table */
@media (max-width: 768px) {
    .comparison-table-container {
        margin: 0 1rem;
    }

    .comparison-table th,
    .comparison-table td {
        padding: 1rem 0.5rem;
        font-size: 0.9rem;
    }

    .comparison-table th {
        font-size: 0.8rem;
    }
}

/* ============================================
   CALCULATOR PAGE STYLES
   ============================================ */

/* Calculator Layout */
.calculator-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    max-width: 1000px;
    margin: 0 auto;
}

/* Calculator Card */
.calculator-card {
    background: var(--secondary-black);
    border: 1px solid var(--tertiary-black);
    border-radius: 8px;
    padding: 3rem;
}

.calculator-card h2 {
    color: var(--white);
    font-size: 2rem;
    font-weight: 300;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
}

.card-description {
    color: var(--light-gray);
    font-size: 1.1rem;
    margin-bottom: 2.5rem;
    line-height: 1.6;
}

/* Form Styles */
.form-group {
    margin-bottom: 2.5rem;
}

.form-group label {
    display: block;
    color: var(--white);
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: 1rem;
    letter-spacing: 0.02em;
}

.form-group select {
    width: 100%;
    padding: 1rem;
    background: var(--tertiary-black);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    color: var(--white);
    font-size: 1rem;
    font-family: var(--font-secondary);
    cursor: pointer;
    transition: all 0.3s ease;
}

.form-group select:hover {
    border-color: var(--accent-red);
}

.form-group select:focus {
    outline: none;
    border-color: var(--accent-red);
    background: var(--secondary-black);
}

.form-group select option {
    background: var(--tertiary-black);
    color: var(--white);
    padding: 1rem;
}

.help-text {
    display: block;
    color: var(--light-gray);
    font-size: 0.85rem;
    margin-top: 0.75rem;
    font-style: italic;
    opacity: 0.8;
}

/* Slider Styles */
.slider-group label {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.slider-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent-red);
    font-family: var(--font-secondary);
    min-width: 40px;
    text-align: right;
}

.slider {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 8px;
    background: linear-gradient(to right, var(--accent-red) 0%, var(--accent-red) 50%, var(--tertiary-black) 50%, var(--tertiary-black) 100%);
    border-radius: 5px;
    outline: none;
    transition: background 0.3s;
    margin: 1rem 0 0.5rem 0;
}

.slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 24px;
    height: 24px;
    background: var(--accent-red);
    cursor: pointer;
    border-radius: 50%;
    border: 3px solid var(--white);
    box-shadow: 0 2px 8px rgba(255, 33, 58, 0.4);
    transition: all 0.2s ease;
}

.slider::-webkit-slider-thumb:hover {
    transform: scale(1.2);
    box-shadow: 0 4px 12px rgba(255, 33, 58, 0.6);
}

.slider::-moz-range-thumb {
    width: 24px;
    height: 24px;
    background: var(--accent-red);
    cursor: pointer;
    border-radius: 50%;
    border: 3px solid var(--white);
    box-shadow: 0 2px 8px rgba(255, 33, 58, 0.4);
    transition: all 0.2s ease;
}

.slider::-moz-range-thumb:hover {
    transform: scale(1.2);
    box-shadow: 0 4px 12px rgba(255, 33, 58, 0.6);
}

.slider-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    color: var(--light-gray);
    margin-top: 0.5rem;
}

/* Form Section Divider */
.form-section-divider {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 3rem 0 2rem 0;
}

.divider-line {
    flex: 1;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--accent-red), transparent);
}

.divider-text {
    color: var(--accent-red);
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    white-space: nowrap;
}

/* Button Options */
.button-options {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 0.5rem;
}

.option-button {
    background: var(--tertiary-black);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.option-button:hover {
    border-color: var(--accent-red);
    background: var(--secondary-black);
    transform: translateY(-2px);
}

.option-button.active {
    border-color: var(--accent-red);
    background: linear-gradient(135deg, var(--secondary-black) 0%, var(--tertiary-black) 100%);
    box-shadow: 0 0 15px rgba(255, 33, 58, 0.3);
}

.option-label {
    color: var(--white);
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.option-button.active .option-label {
    color: var(--accent-red);
}

.option-desc {
    color: var(--light-gray);
    font-size: 0.85rem;
    line-height: 1.3;
}

/* Results Card */
.results-card {
    border: 2px solid var(--accent-red);
    background: linear-gradient(135deg, var(--secondary-black) 0%, var(--tertiary-black) 100%);
}

/* Disclaimer Box */
.disclaimer-box {
    background: rgba(255, 33, 58, 0.1);
    border-left: 4px solid var(--accent-red);
    padding: 1.25rem 1.5rem;
    margin: 1.5rem 0 2.5rem 0;
    border-radius: 4px;
    color: var(--light-gray);
    font-size: 0.95rem;
    line-height: 1.6;
}

.disclaimer-box strong {
    color: var(--accent-red);
    display: block;
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

/* Results Summary */
.results-summary {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    margin: 2rem 0 3rem 0;
    padding: 2.5rem;
    background: var(--primary-black);
    border-radius: 8px;
}

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

.stat-value {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--accent-red);
    margin-bottom: 0.5rem;
    font-family: var(--font-secondary);
}

.stat-label {
    font-size: 0.9rem;
    color: var(--light-gray);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Breakdown Section */
.results-breakdown {
    margin: 2rem 0;
    padding: 2rem;
    background: rgba(255, 33, 58, 0.05);
    border-left: 3px solid var(--accent-red);
    border-radius: 4px;
}

.results-breakdown h3 {
    color: var(--white);
    font-size: 1.2rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1.5rem;
}

.breakdown-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.breakdown-item:last-child {
    border-bottom: none;
}

.breakdown-subheader {
    color: var(--accent-red);
    font-size: 0.95rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin: 1.5rem 0 1rem 0;
}

.breakdown-subheader:first-child {
    margin-top: 0;
}

.breakdown-label {
    color: var(--light-gray);
    font-size: 1rem;
}

.breakdown-value {
    color: var(--white);
    font-size: 1.1rem;
    font-weight: 600;
    font-family: var(--font-secondary);
}

.breakdown-item.total-row {
    margin-top: 0.5rem;
    padding-top: 1rem;
    border-top: 2px solid rgba(255, 33, 58, 0.3);
    border-bottom: 2px solid rgba(255, 33, 58, 0.3);
}

.breakdown-item.total-row .breakdown-label,
.breakdown-item.total-row .breakdown-value {
    font-weight: 700;
    font-size: 1.05rem;
}

.breakdown-item.grand-total {
    margin-top: 1.5rem;
    padding: 1.25rem;
    background: rgba(255, 33, 58, 0.1);
    border: 2px solid var(--accent-red);
    border-radius: 4px;
}

.breakdown-item.grand-total .breakdown-label {
    color: var(--accent-red);
    font-weight: 700;
    font-size: 1.1rem;
    text-transform: uppercase;
}

.breakdown-item.grand-total .breakdown-value {
    color: var(--accent-red);
    font-size: 1.5rem;
    font-weight: 700;
}

/* Info Box */
.info-box {
    margin: 2rem 0;
    padding: 2rem;
    background: var(--tertiary-black);
    border-radius: 8px;
    border: 1px solid rgba(255, 33, 58, 0.3);
}

.info-box h4 {
    color: var(--accent-red);
    font-size: 1.2rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
}

.info-box p {
    color: var(--light-gray);
    margin-bottom: 1rem;
    line-height: 1.6;
}

.info-box .note {
    font-size: 0.9rem;
    font-style: italic;
    opacity: 0.8;
    margin-top: 1rem;
}

/* Recommendations Section */
.recommendations {
    margin: 2rem 0;
}

.recommendations h3 {
    color: var(--white);
    font-size: 1.2rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
}

#recommendations-list {
    list-style: none;
    padding: 0;
}

#recommendations-list li {
    padding: 1rem 1.5rem;
    margin-bottom: 1rem;
    background: var(--tertiary-black);
    border-left: 3px solid var(--accent-red);
    border-radius: 4px;
    color: var(--light-gray);
    line-height: 1.6;
}

#recommendations-list li:before {
    content: "→ ";
    color: var(--accent-red);
    font-weight: bold;
    margin-right: 0.5rem;
}

/* Reference List */
.reference-list {
    list-style: none;
    padding: 0;
}

.reference-list li {
    padding: 0.75rem 0;
    color: var(--light-gray);
    line-height: 1.6;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.reference-list li:last-child {
    border-bottom: none;
}

.reference-list strong {
    color: var(--white);
    font-weight: 600;
}

/* Legal Disclaimer (Calculator) */
.legal-disclaimer {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 1.5rem 0;
    background: var(--primary-black);
}

.legal-disclaimer p {
    color: var(--light-gray);
    font-size: 0.85rem;
    line-height: 1.6;
    text-align: center;
    max-width: 1000px;
    margin: 0 auto;
}

/* Active Navigation Link */
.nav-link.active {
    color: var(--accent-red);
    position: relative;
}

.nav-link.active:after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--accent-red);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .calculator-card {
        padding: 2rem 1.5rem;
    }

    .button-options {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }

    .option-button {
        padding: 0.875rem;
    }

    .option-label {
        font-size: 0.95rem;
    }

    .option-desc {
        font-size: 0.8rem;
    }

    .slider-value {
        font-size: 1.25rem;
    }

    .results-summary {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 1.5rem;
    }

    .stat-value {
        font-size: 2rem;
    }

    .results-breakdown {
        padding: 1.5rem;
    }

    .breakdown-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .info-box {
        padding: 1.5rem;
    }

    #recommendations-list li {
        padding: 1rem;
        font-size: 0.95rem;
    }

    .reference-list li {
        font-size: 0.95rem;
    }
}

@media (max-width: 480px) {
    .calculator-card {
        padding: 1.5rem 1rem;
    }

    .calculator-card h2 {
        font-size: 1.5rem;
    }

    .card-description {
        font-size: 1rem;
    }

    .form-group select {
        padding: 0.875rem;
        font-size: 0.95rem;
    }

    .stat-value {
        font-size: 1.75rem;
    }

    .stat-label {
        font-size: 0.8rem;
    }
}
