/* Resonance Dynamics - Molecular Optimizer Technology */

@font-face {
    font-family: 'Apercu Mono Pro';
    src: url('FONTS/Apercu Mono Pro Bold.otf') format('opentype');
    font-weight: bold;
    font-style: normal;
}

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

:root {
    --white: #ffffff;
    --glass-light: rgba(255, 255, 255, 0.12);
    --glass-border: rgba(255, 255, 255, 0.18);
    --blur-amount: 30px;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
    color: var(--white);
    overflow-x: hidden;
    background: #000;
}

h1, h2, h3, h4 {
    font-family: 'Apercu Mono Pro', 'Courier New', monospace;
    font-weight: bold;
}

/* Fixed Background */
.background-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    transition: filter 0.6s ease-out;
    transform: none !important;
}

.background-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.background-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    transition: background 0.6s ease-out;
}

/* Fixed UI Elements */
.wordmark {
    position: fixed;
    top: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 100;
    font-family: 'Apercu Mono Pro', monospace;
    font-size: clamp(0.7rem, 1.2vw, 0.85rem);
    letter-spacing: 0.25em;
    color: var(--white);
    text-align: center;
    white-space: nowrap;
}

.bottom-nav {
    position: fixed;
    bottom: 40px;
    left: 40px;
    z-index: 100;
    display: flex;
    gap: 40px;
}

.bottom-nav a {
    font-family: 'Apercu Mono Pro', monospace;
    font-size: 0.7rem;
    color: var(--white);
    text-decoration: none;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    transition: opacity 0.3s ease;
    opacity: 0.85;
}

.bottom-nav a:hover {
    opacity: 1;
}

.contact-button {
    position: fixed;
    bottom: 40px;
    right: 60px;
    z-index: 100;
    font-family: 'Apercu Mono Pro', monospace;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 50px;
    color: var(--white);
    padding: 13px 32px;
    font-size: 0.7rem;
    letter-spacing: 0.15em;
    cursor: pointer;
    transition: all 0.4s ease;
    text-transform: capitalize;
    opacity: 1;
}

.contact-button.hidden {
    opacity: 0;
    pointer-events: none;
}

.contact-button:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

/* Main Content Container */
.content-container {
    position: relative;
    z-index: 1;
}

/* Hero Section (HOME 1-3) */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: flex-start;
    padding: 140px 8% 0 8%;
    position: relative;
}

.hero-content {
    max-width: 1100px;
    width: 100%;
}

.hero-title {
    font-size: clamp(2.2rem, 5vw, 4.5rem);
    line-height: 1.15;
    margin-bottom: 50px;
    opacity: 0;
    font-weight: 400;
    animation: fadeIn 1.2s ease-out 1.5s forwards;
}

.hero-copy {
    max-width: 650px;
    opacity: 0;
    animation: fadeIn 1.2s ease-out 3s forwards;
}

.hero-copy p {
    font-size: clamp(0.95rem, 1.3vw, 1.05rem);
    line-height: 1.75;
    margin-bottom: 25px;
    font-weight: 300;
}

/* Replacement Section (HOME 4 - scroll triggered) */
.replacement-section {
    min-height: 100vh;
    display: flex;
    align-items: flex-start;
    padding: 140px 8% 0 8%;
    position: relative;
    opacity: 0;
    transition: opacity 0.8s ease-out;
}

.replacement-section.active {
    opacity: 1;
}

.replacement-content {
    max-width: 1100px;
    width: 100%;
}

.replacement-title {
    font-size: clamp(2rem, 4.5vw, 3.8rem);
    line-height: 1.2;
    margin-bottom: 40px;
    font-weight: 400;
    opacity: 0;
    transition: opacity 0.8s ease-out;
}

.replacement-section.active .replacement-title {
    opacity: 1;
}

.replacement-copy {
    max-width: 650px;
    font-size: clamp(0.95rem, 1.3vw, 1.05rem);
    line-height: 1.75;
    font-weight: 300;
    opacity: 0;
    transition: opacity 0.8s ease-out 0.2s;
}

.replacement-section.active .replacement-copy {
    opacity: 1;
}

/* Features Section (HOME 6 - scroll up with cards) */
.features-section {
    min-height: 100vh;
    padding: 100px 8%;
    position: relative;
}

.features-top {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 40px;
    opacity: 0;
    transform: translateY(60px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.features-section.active .features-top {
    opacity: 1;
    transform: translateY(0);
}

.feature-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(var(--blur-amount));
    -webkit-backdrop-filter: blur(var(--blur-amount));
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 16px;
    padding: 40px 35px;
}

.feature-card h3 {
    font-size: 1rem;
    margin-bottom: 20px;
    letter-spacing: 0.08em;
    line-height: 1.4;
    text-transform: uppercase;
    font-weight: 400;
}

.feature-card p {
    font-size: 0.92rem;
    line-height: 1.7;
    font-weight: 300;
    opacity: 0.95;
}

.features-bottom {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    opacity: 0;
    transform: translateY(60px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.2s;
}

.features-section.active .features-bottom {
    opacity: 1;
    transform: translateY(0);
}

.product-card {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(var(--blur-amount));
    -webkit-backdrop-filter: blur(var(--blur-amount));
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 16px;
    overflow: hidden;
}

.product-image {
    width: 100%;
    aspect-ratio: 16/10;
    background: linear-gradient(135deg, rgba(200,200,200,0.3), rgba(180,180,180,0.2));
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px;
}

.product-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.product-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-info {
    padding: 30px;
}

.product-info h4 {
    font-size: 0.9rem;
    margin-bottom: 15px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-weight: 400;
}

.product-info p {
    font-size: 0.88rem;
    line-height: 1.7;
    font-weight: 300;
    opacity: 0.92;
}

/* Results Section (HOME 7 - scroll up) */
.results-section {
    min-height: 100vh;
    padding: 100px 8%;
    position: relative;
    opacity: 0;
    transform: translateY(80px);
    transition: all 0.9s cubic-bezier(0.4, 0, 0.2, 1);
}

.results-section.active {
    opacity: 1;
    transform: translateY(0);
}

.results-content {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(40px);
    -webkit-backdrop-filter: blur(40px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 20px;
    padding: 60px 70px;
    max-width: 1400px;
    margin: 0 auto;
}

.section-label {
    font-family: 'Apercu Mono Pro', monospace;
    font-size: 0.72rem;
    letter-spacing: 0.15em;
    margin-bottom: 30px;
    text-transform: uppercase;
    opacity: 0.85;
}

.results-title {
    font-size: clamp(2rem, 3.5vw, 3.2rem);
    line-height: 1.2;
    margin-bottom: 35px;
    font-weight: 400;
}

.results-subtitle {
    margin: 35px 0;
    padding: 18px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.results-subtitle span {
    font-family: 'Apercu Mono Pro', monospace;
    font-size: 0.75rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    opacity: 0.9;
}

.results-intro {
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: 50px;
    font-weight: 300;
    opacity: 0.95;
}

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

.result-column {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.result-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 16px;
    padding: 32px 25px;
    text-align: center;
    transition: all 0.3s ease;
}

.result-card:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-3px);
}

.result-number {
    font-family: 'Apercu Mono Pro', monospace;
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.result-label {
    font-size: 0.72rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    opacity: 0.9;
}

.column-label {
    font-family: 'Apercu Mono Pro', monospace;
    font-size: 0.82rem;
    letter-spacing: 0.15em;
    text-align: center;
    margin-top: 8px;
    text-transform: uppercase;
}

/* Contact Section (CTA) */
.contact-section {
    min-height: 100vh;
    padding: 120px 8%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    opacity: 0;
    transform: translateY(80px);
    transition: all 0.9s cubic-bezier(0.4, 0, 0.2, 1);
}

.contact-section.active {
    opacity: 1;
    transform: translateY(0);
}

.contact-content {
    background: rgba(255, 255, 255, 0.09);
    backdrop-filter: blur(40px);
    -webkit-backdrop-filter: blur(40px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 24px;
    padding: 80px 90px;
    max-width: 900px;
    text-align: center;
}

.contact-title {
    font-size: clamp(2rem, 3.8vw, 3.5rem);
    line-height: 1.2;
    margin-bottom: 30px;
    font-weight: 400;
    letter-spacing: 0.02em;
}

.contact-intro {
    font-size: clamp(1rem, 1.4vw, 1.15rem);
    line-height: 1.7;
    margin-bottom: 50px;
    font-weight: 300;
    opacity: 0.95;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.contact-actions {
    display: flex;
    justify-content: center;
    margin-bottom: 50px;
}

.action-button {
    font-family: 'Apercu Mono Pro', monospace;
    padding: 16px 50px;
    font-size: 0.8rem;
    letter-spacing: 0.12em;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-transform: uppercase;
    text-decoration: none;
    display: inline-block;
}

.primary-action {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: var(--white);
}

.primary-action:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.contact-details {
    padding-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
}

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

.contact-value {
    font-size: 1.05rem;
    letter-spacing: 0.02em;
    opacity: 0.9;
}

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

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

/* Responsive Design */
@media (max-width: 1200px) {
    .features-top {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .results-grid {
        grid-template-columns: 1fr;
        gap: 35px;
    }
}

@media (max-width: 768px) {
    .wordmark {
        font-size: 0.65rem;
        top: 30px;
    }
    
    .bottom-nav {
        bottom: 25px;
        left: 25px;
        gap: 25px;
    }
    
    .bottom-nav a {
        font-size: 0.65rem;
    }
    
    .contact-button {
        bottom: 25px;
        right: 25px;
        padding: 11px 26px;
        font-size: 0.65rem;
    }
    
    .hero-section,
    .replacement-section {
        padding: 120px 6% 0 6%;
    }
    
    .features-section,
    .results-section,
    .contact-section {
        padding: 80px 6%;
    }
    
    .features-bottom {
        grid-template-columns: 1fr;
    }
    
    .results-content {
        padding: 40px 35px;
    }
    
    .contact-content {
        padding: 50px 40px;
    }
    
    .action-button {
        padding: 14px 40px;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .replacement-title {
        font-size: 1.8rem;
    }
}

@media (max-width: 480px) {
    .wordmark {
        font-size: 0.6rem;
        letter-spacing: 0.2em;
    }
    
    .hero-title {
        font-size: 1.6rem;
    }
    
    .replacement-title {
        font-size: 1.5rem;
    }
    
    .results-content {
        padding: 30px 25px;
    }
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.5);
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.25);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.4);
}
