/* TRUSTED HYBRID V6 - The Premium Standard */

:root {
    /* Brand Palette */
    --teal-dark: #19505A;
    --teal-deep: #113840;
    --green-neon: #19DE6F;
    --white: #FFFFFF;
    --off-white: #F9FAFA;
    --text-grey: rgba(255, 255, 255, 0.7);
    --text-dark: #19505A;
    
    /* System */
    --font: 'Nunito', sans-serif;
    --radius: 12px;
    --radius-lg: 24px;
    --max-width: 1200px;
    --nav-height: 80px;
}

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

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

/* --- TYPOGRAPHY --- */
h1 {
    font-size: 4rem;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin-bottom: 24px;
}

h2 {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 16px;
}

h3 { font-size: 1.5rem; font-weight: 700; }

p { font-size: 1.1rem; color: var(--text-grey); }

.text-accent { color: var(--green-neon); }
.text-dark { color: var(--text-dark); }
.mobile-only { display: none; }
.eyebrow {
    display: block;
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.15em;
    color: var(--green-neon);
    margin-bottom: 20px;
    text-transform: uppercase;
}

/* --- BUTTONS --- */
.btn {
    display: inline-flex;
    padding: 14px 32px;
    border-radius: 50px;
    font-weight: 700;
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn-primary {
    background: var(--green-neon);
    color: var(--teal-dark);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(25, 222, 111, 0.3);
}

.btn-text {
    color: var(--white);
    margin-left: 20px;
}

/* --- NAVBAR --- */
.notification-bar {
    position: fixed;
    top: 0; left: 0; right: 0;
    height: 40px;
    background: var(--teal-deep);
    z-index: 1001;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-bottom: 1px solid rgba(25, 222, 111, 0.2);
}

.notification-content {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--white);
    animation: fadeSlide 10s infinite;
    text-align: center;
    padding: 0 20px;
}

.notification-content span { color: var(--green-neon); }

@keyframes fadeSlide {
    0%, 45% { opacity: 1; transform: translateY(0); content: attr(data-msg-1); }
    50%, 95% { opacity: 1; transform: translateY(0); content: attr(data-msg-2); }
    46%, 49% { opacity: 0; transform: translateY(10px); }
    96%, 100% { opacity: 0; transform: translateY(10px); }
}

/* JavaScript Rotation Alternative (simpler css structure here, js will swap active class) */
.notification-text {
    position: absolute;
    width: 100%;
    text-align: center;
    opacity: 0;
    transition: opacity 0.5s ease-in-out, transform 0.5s ease-in-out;
    transform: translateY(10px);
}

.notification-text span {
    color: var(--green-neon);
    font-weight: 700;
}

.notification-text.active {
    opacity: 1;
    transform: translateY(0);
}


.navbar {
    position: fixed;
    top: 40px; /* Pushed down by notification bar */
    left: 0; right: 0;
    height: var(--nav-height);
    background: rgba(25, 80, 90, 0.9);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.navbar-container {
    max-width: var(--max-width);
    margin: 0 auto;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 40px;
}

.logo-img { height: 44px; }

.nav-links a {
    color: var(--white);
    text-decoration: none;
    font-weight: 600;
    margin: 0 20px;
    font-size: 0.95rem;
    position: relative;
    transition: color 0.3s ease;
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--green-neon);
    transition: width 0.3s ease;
}

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

.nav-links a:hover::after {
    width: 100%;
}

/* --- HERO --- */
.hero {
    padding-top: 180px;
    padding-bottom: 100px;
    background: radial-gradient(circle at top right, rgba(25, 222, 111, 0.1), transparent 40%);
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 40px;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 60px;
    align-items: center;
}

.hero-actions {
    margin-top: 40px;
}

.hero-cards {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.card {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    padding: 24px;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--white);
    transition: 0.3s;
}

.card:hover {
    background: rgba(255,255,255,0.1);
    transform: translateX(10px);
    border-color: var(--green-neon);
}

.card-icon {
    width: 48px;
    height: 48px;
    background: rgba(25, 222, 111, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 20px;
}

.card-icon img { width: 24px; }

.card h3 { font-size: 1.1rem; flex-grow: 1; }
.card-arrow { color: var(--green-neon); font-weight: 800; }

/* --- SECTION LIGHT --- */
.section-light {
    background: var(--off-white);
    color: var(--text-dark);
    padding: 100px 0;
}

.section-light p { color: rgba(25, 80, 90, 0.7); }

.split-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.float-card {
    background: var(--white);
    padding: 40px;
    border-radius: var(--radius-lg);
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
    text-align: center;
    min-height: 200px; /* Prevent jumping */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.stat-content {
    transition: opacity 0.5s ease-in-out;
    opacity: 1;
}

.stat-content.fade-out {
    opacity: 0;
}

.stat-num {
    display: block;
    font-size: 4rem;
    font-weight: 800;
    color: var(--green-neon);
    line-height: 1;
    margin-bottom: 10px;
}

.stat-label {
    font-weight: 700;
    color: var(--text-dark);
    font-size: 1.1rem;
}

/* --- THE SYSTEM --- */
.system { padding: 120px 0; }

.section-header { margin-bottom: 60px; max-width: 600px; }

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

.feature-block {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.05);
    padding: 40px;
    border-radius: var(--radius-lg);
    transition: transform 0.3s, border-color 0.3s;
}

.feature-block-link:hover .feature-block {
    transform: translateY(-5px);
    border-color: var(--green-neon);
}

.feature-icon {
    margin-bottom: 24px;
    filter: brightness(0) invert(1); /* Makes icons white */
}

.feature-icon img { width: 40px; }

.feature-list {
    margin-top: 24px;
    list-style: none;
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 20px;
}

.feature-list li {
    font-size: 0.9rem;
    color: var(--text-grey);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
}

.feature-list li::before {
    content: '';
    width: 6px;
    height: 6px;
    background: var(--green-neon);
    border-radius: 50%;
    margin-right: 10px;
}

/* --- PROOF --- */
.proof { text-align: center; }
.proof-label { font-weight: 800; text-transform: uppercase; font-size: 0.8rem; margin-bottom: 40px; color: var(--teal-dark); letter-spacing: 0.1em; opacity: 1; }

.logos-grid {
    display: flex;
    justify-content: center;
    gap: 40px;
}

.logo-box {
    width: 120px;
    height: 50px;
    background: rgba(0,0,0,0.05);
    border-radius: 8px;
}

/* --- FOUNDERS GRID (Added for About Page) --- */
.founders-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    max-width: 900px;
    margin: 0 auto;
}

.founder-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-lg);
    overflow: hidden;
    text-align: center;
    transition: transform 0.3s ease;
}

.founder-card:hover {
    transform: translateY(-5px);
    border-color: var(--green-neon);
}

.founder-photo {
    height: 350px;
    background: var(--teal-deep);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden; /* Ensure image doesn't spill out */
}

.founder-photo img {
    object-position: top center; /* Focus on faces which are usually at the top */
}

.founder-info {
    padding: 30px;
}

.founder-info h3 {
    color: var(--white);
    font-size: 1.5rem;
    margin-bottom: 5px;
}

.founder-role {
    color: var(--green-neon);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.05em;
    margin-bottom: 20px;
}

.founder-bio {
    color: var(--text-grey);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* --- CTA --- */
.cta-section { padding: 100px 0; }
.cta-box {
    background: var(--teal-deep);
    border-radius: var(--radius-lg);
    padding: 80px;
    text-align: center;
    border: 1px solid rgba(255,255,255,0.1);
}

.cta-box h2 { margin-bottom: 16px; }
.cta-box p { margin-bottom: 32px; }

/* --- FOOTER --- */
footer {
    padding: 60px 0;
    border-top: 1px solid rgba(255,255,255,0.1);
}

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

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: flex-start;
}

.footer-logo {
    height: 32px;
    width: auto;
}

.footer-links a {
    color: var(--white);
    text-decoration: none;
    margin-left: 30px;
    font-size: 1.2rem;
    font-weight: 700;
}

/* =========================================
   MOBILE RESPONSIVENESS (Max-Width: 768px)
   ========================================= */

/* Hamburger Button (Hidden on Desktop) */
.mobile-menu-btn {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 6px;
    z-index: 1002;
}

.mobile-menu-btn span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--white);
    border-radius: 3px;
    transition: 0.3s;
}

/* Hide Nav CTA on small screens if it doesn't fit header */
@media (max-width: 900px) {
    .nav-cta { display: none; } 
    .mobile-only { display: block; }
}

@media screen and (max-width: 768px) {

    /* --- GLOBAL ADJUSTMENTS --- */
    :root {
        --nav-height: 70px; /* Slightly smaller nav */
    }

    /* Prevent horizontal scrolling */
    body {
        width: 100%;
        overflow-x: hidden;
    }

    /* Tighter container padding */
    .container {
        padding: 0 20px;
    }

    /* --- TYPOGRAPHY SCALING --- */
    h1 {
        font-size: 2.5rem; /* Down from 4rem */
        line-height: 1.2;
    }

    h2 {
        font-size: 2rem; /* Down from 2.5rem */
    }

    /* --- LAYOUT GRIDS: STACKING --- */
    /* Force grids to 1 column */
    .hero-grid,
    .features-grid,
    .split-layout,
    .footer-grid, 
    .founders-grid {
        grid-template-columns: 1fr !important;
        display: grid;
        gap: 40px;
    }

    /* Specific adjust for Hero flow */
    .hero-grid {
        display: flex;
        flex-direction: column;
    }

    .hero-content {
        order: 1; /* Text first */
        text-align: center;
    }

    .hero-cards {
        order: 2; /* Cards second */
        width: 100%;
    }

    /* Center align CTA buttons in Hero */
    .hero-actions {
        display: flex;
        flex-direction: column;
        gap: 15px;
        align-items: center;
    }

    .btn-text {
        margin-left: 0; /* Remove left margin when stacked */
    }

    /* --- SECTION ADJUSTMENTS --- */
    .hero {
        padding-top: 130px; /* Reduce top padding */
        padding-bottom: 60px;
    }

    .section-light, .system, .cta-section {
        padding: 60px 0; /* Reduce vertical spacing */
    }

    /* Footer Alignment */
    .footer-grid {
        text-align: center;
        gap: 30px;
    }

    .footer-brand {
        align-items: center;
    }

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

    .footer-links a {
        margin-left: 0;
    }

    /* --- CTA BOX --- */
    .cta-box {
        padding: 40px 20px;
    }

    /* --- NOTIFICATION BAR FIXES --- */
    .notification-bar {
        height: 60px; /* Taller for wrapping text */
        align-items: center;
    }
    
    .notification-text {
        font-size: 0.85rem; /* Increased from 0.75rem */
        line-height: 1.4;   /* Slightly increased for better readability */
        padding: 0 10px; /* Prevent edge touching */
    }

    .notification-text span {
        display: block; /* Force new line */
        margin-top: 2px; /* Slight gap */
    }

    /* Push Navbar down and adjust Hero padding */
    .navbar {
        top: 60px; 
    }
    
    .hero {
        padding-top: 150px; /* 60 (bar) + 70 (nav) + 20 buffer */
    }

    /* Fix anchor scrolling behind fixed header */
    #system, #impact {
        scroll-margin-top: 150px;
    }

    /* Show Hamburger */
    .mobile-menu-btn {
        display: flex;
    }

    /* Resize Logo for Mobile */
    .logo-img {
        height: 32px;
    }

    /* Mobile Menu Overlay */
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%; /* Hidden off-screen */
        width: 80%;
        height: 100vh;
        background: var(--teal-deep); /* Match brand color */
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: 0.4s ease-in-out;
        box-shadow: -5px 0 15px rgba(0,0,0,0.5);
        z-index: 1001;
    }

    .nav-links.active {
        right: 0; /* Slide in */
    }

    .nav-links a {
        font-size: 1.5rem;
        margin: 20px 0;
    }
}
