:root {
    --primary: #10b981;
    /* Emerald green - cleaner on white */
    --primary-dark: #059669;
    --bg-main: #ffffff;
    /* White background */
    --bg-secondary: #f8fafc;
    /* Very light slate for contrast */
    --text-main: #0f172a;
    /* Dark slate for primary text */
    --text-muted: #64748b;
    /* Slate for secondary text */
    --white: #ffffff;
    --glass: rgba(255, 255, 255, 0.8);
    --glass-border: rgba(0, 0, 0, 0.05);
    /* Darker border for light mode */
    --shadow: rgba(0, 0, 0, 0.05);
    --transition: all 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}

body::before {
    display: none;
}

/* Fix Reveal Logic */
.reveal {
    opacity: 1;
    transform: none;
    transition: all 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.reveal.hidden-state-disabled {
    opacity: 0;
    transform: translateY(40px);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

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

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-main);
    color: var(--text-main);
    line-height: 1.7;
    overflow-x: hidden;
}

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

/* Premium Header */
.header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.5rem 0;
    transition: var(--transition);
}

.header.scrolled {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--glass-border);
    padding: 1rem 0;
    box-shadow: 0 4px 6px -1px var(--shadow);
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-main);
    text-decoration: none;
    letter-spacing: -0.5px;
    position: relative;
    z-index: 1002;
}

.logo span {
    color: var(--primary);
}

.nav-links {
    display: flex;
    gap: 3rem;
    list-style: none;
    align-items: center;
}

.nav-links a {
    color: var(--text-main);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: var(--transition);
    position: relative;
}

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

.nav-links a:not(.btn-primary)::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 0;
    background-color: var(--primary);
    transition: var(--transition);
}

.nav-links a:not(.btn-primary):hover::after {
    width: 100%;
}

/* Modernized Hero Light */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: 80px;
    overflow: hidden;
    background: radial-gradient(circle at 80% 0%, rgba(16, 185, 129, 0.05), transparent 40%),
        radial-gradient(circle at 20% 100%, rgba(16, 185, 129, 0.05), transparent 40%);
}

/* Quantum Effect Styles */
.quantum-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
    /* Soften the background white to interact with the gradient if needed, or keep transparent */
    background: transparent;
}

.quantum-svg {
    display: block;
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
}

.hero-overlay {
    /* Subtle gradient for depth on light bg */
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.8) 100%);
    z-index: 1;
    pointer-events: none;
}

.hero-content {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 2;
    width: 100%;
}

.hero-text h1 {
    font-size: clamp(3.5rem, 6vw, 5.5rem);
    line-height: 1.05;
    margin-bottom: 2rem;
    font-weight: 800;
    letter-spacing: -2px;
    color: var(--text-main);
}

.hero-text h1 span {
    color: var(--primary);
    background: none;
    -webkit-text-fill-color: initial;
}

.hero-text p {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 3.5rem;
    /* Increased spacing */
    max-width: 560px;
    font-weight: 400;
}

/* Buttons */
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1.1rem 2.8rem;
    background-color: var(--primary);
    color: #ffffff;
    /* White text on green button */
    border-radius: 100px;
    text-decoration: none;
    font-weight: 700;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    box-shadow: 0 10px 20px rgba(16, 185, 129, 0.25);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 30px rgba(16, 185, 129, 0.35);
    background-color: var(--primary-dark);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1.1rem 2.8rem;
    background: transparent;
    border: 1px solid #e2e8f0;
    color: var(--text-main);
    border-radius: 100px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

.btn-secondary:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.hero-btns {
    display: flex;
    gap: 1.5rem;
}

.badge {
    display: inline-block;
    padding: 0.6rem 1.4rem;
    background: rgba(16, 185, 129, 0.1);
    color: var(--primary-dark);
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 2rem;
    border: none;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Header Button Specifics */
.nav-links .btn-primary {
    padding: 0.7rem 1.8rem;
    font-size: 0.9rem;
    color: #ffffff !important;
    /* Force white text */
}

/* Stats Floating Cards - Restyled */
/* Stats Floating Cards - Restyled */
.hero-visual {
    position: relative;
    height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.stat-card {
    position: absolute;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    padding: 1.5rem 2rem;
    border-radius: 20px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
    min-width: 160px;
    text-align: center;
    z-index: 10;
}

.stat-card:nth-child(1) {
    top: 10%;
    right: 5%;
    animation: float 6s ease-in-out infinite;
}

.stat-card:nth-child(2) {
    bottom: 20%;
    left: 5%;
    animation: float 8s ease-in-out infinite reverse;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-20px);
    }
}

.stat-card h4 {
    font-size: 2rem;
    line-height: 1;
    margin-bottom: 0.25rem;
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 800;
}

.stat-card p {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 600;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Sections General */
section {
    position: relative;
    z-index: 2;
}

/* About Section */
.about {
    padding: 8rem 0;
    background: var(--bg-secondary);
}

.section-header {
    text-align: center;
    margin-bottom: 6rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.section-header h2 {
    font-size: clamp(2.5rem, 4vw, 3.5rem);
    margin-bottom: 1.5rem;
    color: var(--text-main);
    letter-spacing: -1px;
    line-height: 1.1;
    /* Fix: Reduced from inherited 1.7 to 1.1 */
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
}

.feature-card {
    background: var(--bg-main);
    padding: 3rem 2.5rem;
    border-radius: 30px;
    border: 1px solid var(--glass-border);
    transition: var(--transition);
    box-shadow: 0 4px 6px -1px var(--shadow);
}

.feature-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary);
    box-shadow: 0 20px 40px rgba(16, 185, 129, 0.1);
}

.feature-card .icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    background: transparent;
}

.feature-card h3 {
    font-size: 1.75rem;
    margin-bottom: 1rem;
    color: var(--text-main);
}

.feature-card p {
    color: var(--text-muted);
}

/* Tech Sections */
.tech-section {
    padding: 8rem 0;
    border-bottom: 1px solid var(--glass-border);
}

.tech-grid {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 6rem;
    align-items: center;
}

.tech-section.reversed .tech-grid {
    grid-template-columns: 1fr 1.1fr;
}

.tech-image {
    position: relative;
    border-radius: 40px;
    overflow: hidden;
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--glass-border);
}

.tech-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.7s ease;
}

.tech-image:hover img {
    transform: scale(1.03);
}


/* Fix Spacing for Buttons */
.tech-content h2 {
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 2rem;
    color: var(--text-main);
    letter-spacing: -1px;
}

.tech-content p {
    color: var(--text-muted);
    font-size: 1.2rem;
    margin-bottom: 3.5rem;
    /* Balanced spacing */
    max-width: 90%;
}

/* Benefits Grid - Redesigned Premium */
/* Benefits Grid - Fixed 2x2/4x1 Layout */
.benefits-grid {
    display: grid;
    /* Default to 1 column on mobile (will be handled by auto-placement if not specified, but let's be explicit in media queries) */
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-top: 6rem;
    padding-top: 6rem;
    border-top: 1px solid var(--glass-border);
}

@media (min-width: 640px) {
    .benefits-grid {
        grid-template-columns: repeat(2, 1fr);
        /* 2x2 on tablets/small laptops */
    }
}

@media (min-width: 1280px) {
    .benefits-grid {
        grid-template-columns: repeat(4, 1fr);
        /* 4 in a row on large screens */
    }
}

.benefit-card {
    background: #ffffff;
    padding: 2.5rem;
    border-radius: 24px;
    border: 1px solid var(--glass-border);
    transition: var(--transition);
    box-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.05);
    /* Softer base shadow */
    display: flex;
    flex-direction: column;
    height: 100%;
}

.benefit-card:hover {
    transform: translateY(-8px);
    border-color: rgba(16, 185, 129, 0.3);
    /* Subtle primary border on hover */
    box-shadow: 0 20px 50px -10px rgba(16, 185, 129, 0.15);
    /* Coloured glow */
}

.benefit-card .icon {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-secondary);
    border-radius: 50%;
    border: 1px solid var(--glass-border);
    transition: var(--transition);
}

.benefit-card:hover .icon {
    background: var(--primary);
    color: white;
    transform: scale(1.1) rotate(5deg);
    border-color: var(--primary);
    box-shadow: 0 10px 20px rgba(16, 185, 129, 0.3);
}

.benefit-card h4 {
    font-size: 1.6rem;
    /* Significantly larger */
    margin-bottom: 1rem;
    color: var(--text-main);
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: -0.5px;
}

.benefit-card p {
    font-size: 1.15rem;
    /* Larger body text */
    color: #475569;
    /* Darker slate for better readability */
    line-height: 1.7;
    font-weight: 400;
    margin-bottom: 0;
    flex-grow: 1;
    /* Pushes content to fill height if needed */
}

/* Contact - Redesigned Premium */
.contact {
    padding: 8rem 0;
    background: var(--bg-secondary);
}

.contact-card {
    background: var(--bg-main);
    border-radius: 40px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    overflow: hidden;
    border: 1px solid var(--glass-border);
    box-shadow: 0 30px 60px -10px rgba(0, 0, 0, 0.08);
}

.contact-info {
    padding: 5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.contact-info h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--text-main);
    line-height: 1.1;
}

.contact-info>p {
    color: var(--text-muted);
    margin-bottom: 4rem;
    font-size: 1.1rem;
}

.contact-details-grid {
    display: grid;
    gap: 2rem;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.5rem;
    border-radius: 20px;
    background: var(--bg-secondary);
    border: 1px solid rgba(0, 0, 0, 0.03);
    transition: var(--transition);
}

.info-item:hover {
    background: #ffffff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transform: translateY(-2px);
    border-color: rgba(16, 185, 129, 0.2);
}

.info-item .icon {
    font-size: 1.5rem;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: #ffffff;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.info-item div {
    flex: 1;
}

.info-item h4 {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    margin-bottom: 0.2rem;
    font-weight: 700;
}

.info-item p {
    margin-bottom: 0;
    color: var(--text-main);
    font-size: 1.1rem;
    font-weight: 600;
}

.info-item a {
    color: var(--primary-dark);
    text-decoration: none;
    transition: var(--transition);
}

.info-item a:hover {
    color: var(--primary);
}

.contact-form-placeholder {
    height: 100%;
    min-height: 500px;
}

.contact-form-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Footer & Mobile */
.footer {
    padding: 4rem 0;
    border-top: 1px solid var(--glass-border);
    text-align: center;
    background: var(--bg-main);
    color: var(--text-muted);
}

.mobile-nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1002;
}

.mobile-nav-toggle span {
    display: block;
    width: 30px;
    height: 2px;
    background: var(--white);
    margin: 6px 0;
    transition: var(--transition);
    background: var(--text-main);
    /* Fix: Make toggle visible on white */
}

/* Media Queries */
@media (max-width: 1024px) {

    .tech-grid,
    .tech-section.reversed .tech-grid {
        grid-template-columns: 1fr;
        gap: 4rem;
        text-align: center;
    }

    .tech-image {
        max-width: 700px;
        margin: 0 auto;
    }

    /* FIX: Center paragraphs in tech sections */
    .tech-content p {
        margin-left: auto;
        margin-right: auto;
    }

    /* .benefits-grid handled by auto-fit */
}

@media (max-width: 768px) {
    .mobile-nav-toggle {
        display: block;
    }

    .nav-links {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: #ffffff;
        /* Solid white - no blur for performance */
        flex-direction: column;
        justify-content: center;
        padding: 2rem;
        transform: translateX(100%);
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        will-change: transform;
        z-index: 1001;
    }

    .nav-links a {
        font-size: 2rem;
        color: var(--text-main);
    }

    .nav-links.active {
        transform: translateX(0);
    }

    .nav-links a {
        font-size: 2rem;
    }

    .hero {
        min-height: auto;
        padding-top: 100px;
        padding-bottom: 4rem;
        position: relative;
        overflow: hidden;
        /* FIX: Clip particles within hero */
    }

    .quantum-container {
        /* FIX: Match hero height instead of creating extra space */
        height: 100%;
        max-height: 100%;
        min-height: unset;
    }

    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        padding-top: 0;
        gap: 0;
        /* FIX: Remove gap since hero-visual is hidden */
    }

    /* FIX: Hide the empty hero-visual that was creating 600px whitespace */
    .hero-visual {
        display: none;
    }

    /* Fix Features Grid on Mobile */
    .features-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    /* Fix Contact Card on Mobile */
    .contact-card {
        grid-template-columns: 1fr;
        border-radius: 24px;
        padding: 0;
    }

    .contact-info {
        padding: 2.5rem 1.5rem;
        text-align: center;
    }

    .contact-info h2 {
        font-size: 2rem;
        margin-bottom: 0.75rem;
    }

    .contact-info>p {
        margin-bottom: 2.5rem;
        font-size: 1.05rem;
        color: var(--text-muted);
    }

    .contact-details-grid {
        display: flex;
        flex-direction: column;
        gap: 1rem;
    }

    .info-item {
        padding: 1.25rem;
        background: var(--bg-secondary);
        border: 1px solid rgba(0, 0, 0, 0.03);
        border-radius: 16px;
        box-shadow: none;
        margin-bottom: 0;
        flex-direction: row;
        align-items: center;
        gap: 1.25rem;
        text-align: left;
    }

    .info-item:hover {
        background: var(--bg-secondary);
        transform: none;
    }

    /* Refined Icons */
    .info-item .icon {
        background: #ffffff;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.03);
        border: 1px solid rgba(0, 0, 0, 0.02);
        width: 48px;
        height: 48px;
        padding: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 1.5rem;
        min-width: 48px;
        border-radius: 12px;
        flex-shrink: 0;
    }

    .info-item div {
        text-align: left;
        flex: 1;
    }

    .info-item h4 {
        margin-bottom: 0.2rem;
        font-size: 0.75rem;
        margin-top: 0;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        color: var(--text-muted);
        font-weight: 700;
    }

    .info-item p {
        font-size: 1rem;
        margin: 0;
        color: var(--text-main);
        font-weight: 600;
        line-height: 1.4;
    }

    .info-item p a {
        color: var(--text-main);
    }

    .contact-form-placeholder {
        display: none;
    }
}

/* Premium GDPR Cookie Modal */
.cookie-overlay {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    max-width: 400px;
    width: calc(100% - 4rem);
    z-index: 9999;
    opacity: 0;
    pointer-events: none;
    transform: translateY(20px);
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.cookie-overlay.active {
    opacity: 1;
    pointer-events: all;
    transform: translateY(0);
}

.cookie-modal {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 2rem;
    border-radius: 24px;
    box-shadow:
        0 20px 40px -10px rgba(0, 0, 0, 0.1),
        0 0 0 1px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.cookie-header {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.cookie-icon {
    font-size: 1.8rem;
    background: var(--bg-secondary);
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
}

.cookie-title h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.2rem;
    color: var(--text-main);
}

.cookie-title p {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin: 0;
}

.cookie-body {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.6;
}

.cookie-body a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
}

.cookie-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.8rem;
}

.btn-cookie-accept {
    grid-column: 1 / -1;
    background: var(--primary);
    color: white;
    border: none;
    padding: 0.9rem;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: var(--transition);
}

.btn-cookie-accept:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
}

.btn-cookie-reject {
    background: transparent;
    color: var(--text-muted);
    border: 1px solid var(--glass-border);
    padding: 0.9rem;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition);
}

.btn-cookie-reject:hover {
    background: var(--bg-secondary);
    color: var(--text-main);
}

.btn-cookie-settings {
    background: transparent;
    color: var(--text-main);
    border: 1px solid var(--glass-border);
    padding: 0.9rem;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition);
}

.btn-cookie-settings:hover {
    background: var(--bg-secondary);
}

@media (max-width: 480px) {
    .cookie-overlay {
        bottom: 0;
        right: 0;
        width: 100%;
        max-width: none;
        border-radius: 20px 20px 0 0;
        padding: 0;
    }

    .cookie-modal {
        border-radius: 20px 20px 0 0;
        padding: 1.5rem;
    }
}