/* styles.css */
:root {
    --color-bg: #FAFAFA;
    --color-bg-alt: #F3F4F6;
    --color-surface: #ffffff;
    --color-text: #1a202c;
    --color-text-muted: #4A5568;
    --color-primary: #1A365D;
    --color-primary-light: #2A4A7F;
    --color-accent: #C5A859;
    --color-accent-hover: #D4B86A;
    --color-whatsapp: #25D366;
    --color-whatsapp-hover: #128C7E;
    
    --font-sans: 'Inter', system-ui, sans-serif;
    --font-display: 'Playfair Display', Georgia, serif;

    --radius-sm: 0.5rem;
    --radius-md: 0.75rem;
    --radius-lg: 1rem;
    --radius-full: 9999px;
    
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 30px -5px rgba(26, 54, 93, 0.08); /* Premium soft shadow */
    --shadow-lg: 0 20px 40px -10px rgba(26, 54, 93, 0.12); /* Floating effect */
    
    --transition-fast: 150ms ease-in-out;
    --transition-base: 300ms cubic-bezier(0.25, 1, 0.5, 1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    background-color: var(--color-bg);
    color: var(--color-text);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1.2;
    color: var(--color-primary);
    letter-spacing: -0.01em;
}

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

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Typography Utility */
.text-balance {
    text-wrap: balance;
}
.text-muted {
    color: var(--color-text-muted);
}
.text-center {
    text-align: center;
}
.mt-2 { margin-top: 0.5rem; }
.mt-4 { margin-top: 1.5rem; }
.pt-4 { padding-top: 1.5rem; }

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 1.5rem;
}

/* Layout Utility */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section {
    padding: 7rem 0;
}

/* Components */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    font-size: 1rem;
    border-radius: var(--radius-full);
    font-weight: 600;
    transition: all var(--transition-base);
    cursor: pointer;
    border: none;
}

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

.btn-whatsapp {
    background-color: var(--color-surface);
    color: var(--color-primary);
    border: 1px solid rgba(76, 111, 180, 0.2);
    box-shadow: 0 4px 14px rgba(0,0,0,0.05);
}
.btn-whatsapp:hover {
    background-color: var(--color-surface);
    border-color: var(--color-accent);
    color: var(--color-accent);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(190, 158, 68, 0.3);
}

.btn-outline {
    background-color: transparent;
    color: var(--color-text);
    border: 1px solid rgba(0,0,0,0.1);
}
.btn-outline:hover {
    background-color: var(--color-surface);
    color: var(--color-primary);
    border-color: var(--color-primary);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(76, 111, 180, 0.2);
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1rem 0;
    transition: all var(--transition-base);
    background: rgba(248, 250, 252, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.navbar-grid {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    width: 100%;
}

.nav-brand {
    display: flex;
    justify-content: flex-start;
}

.nav-cta {
    display: flex;
    justify-content: flex-end;
}

.logo {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--color-primary);
    letter-spacing: -0.02em;
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    align-items: center;
    justify-content: center;
}

.nav-links a {
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--color-text-muted);
    transition: color var(--transition-fast);
}

.nav-links a:hover {
    color: var(--color-primary);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 5rem;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -20%;
    left: -10%;
    width: 60%;
    height: 60%;
    background: radial-gradient(circle, rgba(190, 158, 68, 0.15) 0%, rgba(76, 111, 180, 0.05) 50%, transparent 70%);
    z-index: -2;
    filter: blur(60px);
    animation: float 10s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(5%, 10%); }
}

.hero-bg {
    position: absolute;
    top: 0;
    right: 0;
    width: 55%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
    mask-image: linear-gradient(to left, rgba(0,0,0,1) 40%, rgba(0,0,0,0) 100%);
    -webkit-mask-image: linear-gradient(to left, rgba(0,0,0,1) 40%, rgba(0,0,0,0) 100%);
}

.hero-content {
    max-width: 650px;
    animation: fadeUp 1s ease-out;
}

.hero h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    margin-bottom: 1.5rem;
    letter-spacing: -0.01em;
    line-height: 1.1;
    color: var(--color-primary);
}

.hero p {
    font-size: 1.25rem;
    color: var(--color-text-muted);
    margin-bottom: 3rem;
    max-width: 550px;
    line-height: 1.7;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Problem Section */
.problem {
    background-color: var(--color-surface);
}

.problem-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.problem-image {
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

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

.value-card {
    background: var(--color-surface);
    padding: 2.5rem;
    border-radius: var(--radius-lg);
    box-shadow: 0 4px 20px rgba(0,0,0,0.03);
    border: 1px solid rgba(214, 158, 46, 0.2);
    transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.value-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.value-icon {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

/* Target Audience */
.audience {
    background-color: var(--color-primary);
    color: white;
}

.audience h2 {
    color: white;
}

.audience-list {
    margin-top: 3rem;
    display: grid;
    gap: 1.5rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.audience-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    font-size: 1.125rem;
}

.audience-check {
    color: var(--color-accent);
    font-size: 1.5rem;
    flex-shrink: 0;
}

/* Procedures Section */
.procedures-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.procedure-card {
    background: var(--color-surface);
    border: 1px solid rgba(0,0,0,0.05);
    padding: 2.5rem;
    border-radius: var(--radius-lg);
}

/* Locations Section */
.locations {
    background-color: var(--color-bg);
    text-align: center;
}

/* About Section */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 4rem;
    align-items: center;
}

.about-img {
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

/* CTA Footer Section */
.cta-footer {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
    color: white;
    text-align: center;
    padding: 6rem 0;
}

.cta-footer h2 {
    color: white;
    margin-bottom: 1.5rem;
}

/* Simulator Component */
.simulator-container {
    background: white;
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow: 0 10px 40px rgba(0,0,0,0.05);
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    max-width: 1000px;
    margin: 0 auto;
}

.simulator-view {
    position: relative;
    width: 100%;
    aspect-ratio: 16/9;
    border-radius: var(--radius-md);
    overflow: hidden;
    background: #000;
}

.simulator-view img, .simulator-cataract-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.8s ease;
}

.simulator-blur-layer {
    filter: blur(8px);
    mask-image: linear-gradient(to top, black 0%, black 30%, transparent 60%, transparent 100%);
    -webkit-mask-image: linear-gradient(to top, black 0%, black 30%, transparent 60%, transparent 100%);
    opacity: 0;
}

.simulator-cataract-layer {
    backdrop-filter: blur(5px) sepia(0.6) brightness(0.9);
    -webkit-backdrop-filter: blur(5px) sepia(0.6) brightness(0.9);
    background: rgba(180, 150, 50, 0.15);
    opacity: 1; /* Default to Cataract view */
}

.simulator-controls {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.sim-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1rem;
    background: var(--color-bg);
    border: 2px solid transparent;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.sim-btn strong {
    font-size: 1.1rem;
    color: var(--color-primary);
    margin-bottom: 0.25rem;
}

.sim-btn span {
    font-size: 0.85rem;
    color: var(--color-text-muted);
}

.sim-btn:hover {
    background: white;
    border-color: rgba(76, 111, 180, 0.2);
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.sim-btn.active {
    background: white;
    border-color: var(--color-primary);
    box-shadow: 0 4px 15px rgba(76, 111, 180, 0.1);
}

.sim-btn.premium.active {
    border-color: var(--color-accent);
    box-shadow: 0 4px 20px rgba(190, 158, 68, 0.2);
}
.sim-btn.premium strong {
    color: var(--color-accent);
}

/* Stats Bar */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    text-align: center;
}
.stat-number {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--color-primary);
    font-family: var(--font-display);
    line-height: 1;
    margin-bottom: 0.5rem;
}
.stat-label {
    font-size: 1rem;
    color: var(--color-text-muted);
    font-weight: 500;
}

/* Logos Ribbon */
.logos-container {
    display: flex;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
    align-items: center;
    opacity: 0.6;
    filter: grayscale(100%);
    transition: filter 0.3s ease, opacity 0.3s ease;
}
.logos-container:hover {
    opacity: 0.9;
    filter: grayscale(50%);
}
.trust-logo {
    font-size: 1.25rem;
    font-weight: 700;
    font-family: var(--font-display);
    color: var(--color-text-muted);
}

/* Timeline */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 0;
}
.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 2rem;
    width: 2px;
    background: rgba(76, 111, 180, 0.2);
}
.timeline-step {
    position: relative;
    margin-bottom: 3rem;
    padding-left: 5rem;
}
.timeline-step:last-child {
    margin-bottom: 0;
}
.step-number {
    position: absolute;
    left: 0;
    top: 0;
    width: 4rem;
    height: 4rem;
    background: var(--color-surface);
    border: 2px solid var(--color-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--color-primary);
    font-family: var(--font-display);
    z-index: 2;
    box-shadow: 0 4px 10px rgba(76, 111, 180, 0.1);
}
.step-content h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    padding-top: 0.5rem;
}
.step-content p {
    color: var(--color-text-muted);
    font-size: 1.1rem;
}

/* FAQ Component */
.faq-container {
    max-width: 800px;
    margin: 0 auto;
}
.faq-item {
    border-bottom: 1px solid rgba(0,0,0,0.1);
}
.faq-question {
    width: 100%;
    background: none;
    border: none;
    padding: 1.5rem 0;
    font-size: 1.15rem;
    font-family: var(--font-display);
    font-weight: 600;
    color: var(--color-primary);
    text-align: left;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: color 0.3s ease;
}
.faq-question:hover {
    color: var(--color-accent);
}
.faq-icon {
    font-size: 1.5rem;
    font-weight: 300;
    transition: transform 0.3s ease;
}
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
}
.faq-answer p {
    padding-bottom: 1.5rem;
    color: var(--color-text-muted);
}
.faq-item.active .faq-answer {
    max-height: 500px;
}
.faq-item.active .faq-icon {
    transform: rotate(45deg);
}

/* Smart Evaluator */
.evaluator-card {
    background: white;
    padding: 3rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    max-width: 700px;
    margin: 0 auto;
    border-top: 4px solid var(--color-primary);
}
.form-progress {
    height: 6px;
    background: var(--color-bg);
    border-radius: var(--radius-full);
    margin-bottom: 2rem;
    overflow: hidden;
}
.progress-bar {
    height: 100%;
    background: var(--color-primary);
    transition: width 0.4s ease;
}
.form-step {
    display: none;
    animation: fadeUp 0.4s ease;
}
.form-step.active {
    display: block;
}
.form-step h3 {
    margin-bottom: 1.5rem;
    font-size: 1.25rem;
    color: var(--color-text);
}
.form-options {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.form-option-btn {
    padding: 1.25rem;
    background: var(--color-bg);
    border: 2px solid transparent;
    border-radius: var(--radius-md);
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--color-text);
    cursor: pointer;
    text-align: left;
    transition: all 0.2s ease;
}
.form-option-btn:hover {
    border-color: var(--color-primary);
    background: rgba(76, 111, 180, 0.05);
}

/* Animations */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1s cubic-bezier(0.25, 1, 0.5, 1), transform 1s cubic-bezier(0.25, 1, 0.5, 1);
}

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

/* Responsive */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    padding: 0.5rem;
    z-index: 1001;
}

@media (max-width: 768px) {
    .mobile-menu-btn {
        display: flex;
    }
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        height: 100vh;
        background: white;
        flex-direction: column;
        justify-content: flex-start;
        padding-top: 6rem;
        box-shadow: -5px 0 15px rgba(0,0,0,0.05);
        transition: right 0.3s ease;
        z-index: 999;
    }
    .nav-links.active {
        right: 0;
    }
    .nav-links a {
        font-size: 1.25rem;
        padding: 1rem 0;
    }
    .nav-cta {
        display: none;
    }
    .nav-brand {
        z-index: 1001;
    }
    
    .hero {
        min-height: auto;
        padding: 10rem 0 3rem;
        text-align: center;
    }

    .hero-bg {
        width: 100%;
        height: 100%;
        opacity: 0.12;
        mask-image: none;
        -webkit-mask-image: none;
    }

    .hero-content {
        margin: 0 auto;
        max-width: 100%;
    }

    .hero h1 {
        font-size: 2rem;
        line-height: 1.15;
        margin-bottom: 1rem;
    }
    
    .hero p {
        font-size: 1.05rem;
        margin-bottom: 1.5rem;
        line-height: 1.6;
    }

    .hero-buttons {
        justify-content: center;
        flex-direction: column;
        align-items: center;
    }

    .hero-buttons .btn {
        width: 100%;
        text-align: center;
        justify-content: center;
    }
    
    .problem-grid, .about-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .section {
        padding: 4rem 0;
    }

    .section-title {
        font-size: 1.75rem;
    }

    .values-grid, .procedures-grid {
        grid-template-columns: 1fr;
    }

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

    .stat-number {
        font-size: 2.5rem;
    }

    .timeline {
        padding-left: 1rem;
    }
}
