/* VARIABLES & RESET */
:root {
    /* Gradient extracted from Cleener Feature Graphic */
    --primary-grad-start: #34D399;
    /* Emerald/Mint */
    --primary-grad-end: #3B82F6;
    /* Royal Blue */

    --bg-white: #FFFFFF;
    --bg-off-white: #F8FAFC;

    --text-dark: #0F172A;
    --text-gray: #64748B;
    --text-white: #FFFFFF;

    --font-heading: 'Poppins', sans-serif;
    --font-body: 'Inter', sans-serif;

    --emerald: #10b981;
}

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

html {
    scroll-behavior: smooth;
}

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

/* Skip link for accessibility */
.skip-link {
    position: absolute;
    top: -100%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary-grad-start);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    z-index: 9999;
    transition: top 0.3s;
}

.skip-link:focus {
    top: 1rem;
}

/* Focus visible styles */
*:focus-visible {
    outline: 2px solid var(--primary-grad-start);
    outline-offset: 3px;
    border-radius: 4px;
}

/* TYPOGRAPHY */
h1,
h2,
h3,
h4 {
    font-family: var(--font-heading);
    line-height: 1.2;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
}

/* NAVBAR */
.navbar {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    padding: 24px 0;
    z-index: 100;
}

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

.logo {
    font-family: var(--font-heading);
    font-size: 24px;
    font-weight: 700;
    color: var(--text-white);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.nav-links a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    margin-left: 32px;
    font-weight: 500;
    font-size: 15px;
    transition: color 0.3s;
}

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

.nav-links a:focus-visible {
    outline-color: var(--text-white);
    outline-offset: 4px;
}

/* HERO SECTION - The "Feature Graphic" Look */
.hero {
    /* The Signature Gradient */
    background: linear-gradient(135deg, var(--primary-grad-start) 0%, var(--primary-grad-end) 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: 80px;
    /* Space for nav */
}

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

.hero-text {
    color: var(--text-white);
}

.hero-text h1 {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.hero-text p {
    font-size: 1.25rem;
    opacity: 0.9;
    margin-bottom: 2.5rem;
    max-width: 480px;
}

/* Hero Typography */
.hero-text h1 {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    line-height: 1.1;
}

.hero-text p {
    font-size: 1.25rem;
    opacity: 0.9;
    margin-bottom: 2.5rem;
    max-width: 480px;
}

.btn-white {
    background: var(--bg-white);
    color: #2563EB;
    /* Blue text */
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.btn-white:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.trust-badges {
    margin-top: 24px;
    font-size: 0.9rem;
    opacity: 0.7;
    font-weight: 500;
}

/* CTA Buttons */
.cta-buttons {
    display: flex;
    gap: 1rem;
}

.cta-buttons .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 32px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: transform 0.2s, box-shadow 0.2s;
}

.cta-buttons .btn:focus-visible {
    outline-color: white;
    outline-offset: 4px;
}

.btn-outline {
    background: transparent;
    border: 1px solid white;
    color: white;
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-3px);
}

/* HERO VISUAL - Phone Mockup */
.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
}

.phone-frame {
    width: 300px;
    height: 600px;
    background: #0f172a;
    /* Dark bezel */
    border-radius: 40px;
    border: 8px solid #0f172a;
    position: relative;
    overflow: hidden;
    z-index: 2;
    box-shadow: 0 50px 100px -20px rgba(0, 0, 0, 0.3);
}

/* Floating Animation */
.floating {
    animation: float 6s ease-in-out infinite;
}

@keyframes float {

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

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

.notch {
    width: 90px;
    height: 12px;
    background: #0f172a;
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    border-bottom-left-radius: 12px;
    border-bottom-right-radius: 12px;
    z-index: 10;
}

.screen {
    background: #F8FAFC;
    width: 100%;
    height: 100%;
    padding: 40px 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* Mockup UI Elements */
.app-header {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

.app-score-circle {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    border: 8px solid var(--primary-grad-start);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--text-dark);
}

.app-score-circle span {
    font-size: 32px;
    font-weight: 700;
    font-family: var(--font-heading);
}

.app-score-circle small {
    color: var(--text-gray);
    font-size: 14px;
    text-transform: uppercase;
}

.app-card {
    background: white;
    padding: 16px;
    border-radius: 16px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.bar-label {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-gray);
}

.progress-bar {
    height: 8px;
    background: #E2E8F0;
    border-radius: 4px;
    overflow: hidden;
}

.fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-grad-start), var(--primary-grad-end));
}

.glow {
    position: absolute;
    width: 100%;
    height: 100%;
    background: white;
    filter: blur(80px);
    opacity: 0.2;
    z-index: 1;
}

/* FEATURES SECTION */
.features {
    padding: 100px 0;
    background: var(--bg-off-white);
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 2.5rem;
    color: var(--text-dark);
    margin-bottom: 16px;
}

.section-header p {
    font-size: 1.1rem;
    color: var(--text-gray);
}

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

.card {
    background: white;
    padding: 32px;
    border-radius: 24px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s;
}

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

.card:focus-within {
    border-color: var(--primary-grad-start);
    box-shadow: 0 4px 20px rgba(52, 211, 153, 0.2);
}

.icon-box {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
}

.icon-box.green {
    background: #DCFCE7;
    color: #16A34A;
}

.icon-box.blue {
    background: #DBEAFE;
    color: #2563EB;
}

.icon-box.teal {
    background: #CCFBF1;
    color: #0D9488;
}

.card h3 {
    font-size: 1.25rem;
    margin-bottom: 12px;
}

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

/* MODES SECTION */
.modes {
    padding: 100px 0;
    background: var(--bg-white);
}

.mode-layout {
    display: flex;
    align-items: center;
    gap: 60px;
}

.badge {
    background: #EFF6FF;
    color: #2563EB;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
    display: inline-block;
}

.mode-text h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.mode-text p {
    font-size: 1.1rem;
    color: var(--text-gray);
    margin-bottom: 40px;
}

.mode-toggle {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.mode-item {
    padding: 24px;
    border-radius: 16px;
    border: 1px solid #E2E8F0;
    transition: all 0.3s;
    cursor: default;
}

.mode-item:hover,
.mode-item.active {
    border-color: var(--primary-grad-start);
    background: #F0FDF4;
    /* Very light green */
    transform: translateX(10px);
}

.mode-item h4 {
    font-size: 1.1rem;
    margin-bottom: 8px;
}

.mode-item p {
    margin-bottom: 0;
    font-size: 0.9rem;
}

.mode-visual {
    flex: 1;
    display: flex;
    justify-content: center;
}

.visual-card {
    width: 300px;
    height: 350px;
    background: white;
    border-radius: 24px;
    padding: 32px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 24px;
    position: relative;
    overflow: hidden;
}

.visual-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 6px;
    height: 100%;
    background: linear-gradient(to bottom, var(--primary-grad-start), var(--primary-grad-end));
}

.stat-row {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.stat-row span {
    font-weight: 600;
    font-size: 14px;
}

.live-bar {
    height: 10px;
    background: #F1F5F9;
    border-radius: 5px;
    position: relative;
    overflow: hidden;
}

.live-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background: var(--primary-grad-start);
    width: 0%;
    animation: fillBar 2s ease-out forwards;
}

.delayed::after {
    animation-delay: 0.5s;
}

.delayed-2::after {
    animation-delay: 1s;
}

@keyframes fillBar {
    to {
        width: 70%;
    }
}

/* FOOTER */
footer {
    padding: 60px 0 20px;
    background: var(--text-dark);
    color: var(--text-gray);
}

.footer-content-center {
    text-align: center;
    padding: 2rem 0;
    padding-bottom: 4rem;
}

.footer-brand {
    margin-bottom: 1rem;
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--text-dark);
    font-size: 1.2rem;
}

.footer-links-center {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2rem;
    color: var(--text-gray);
    font-size: 0.9rem;
}

.footer-links-center a {
    color: var(--text-gray);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links-center a:hover {
    color: white;
}

.footer-links-center a:focus-visible {
    outline-color: var(--primary-grad-start);
    outline-offset: 4px;
}

.footer-copyright {
    opacity: 0.5;
    font-size: 0.8rem;
    color: var(--text-gray);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    border-bottom: 1px solid #1E293B;
    padding-bottom: 40px;
}

.footer-brand .footer-logo {
    font-family: var(--font-heading);
    font-size: 24px;
    color: white;
    font-weight: 700;
    display: block;
    margin-bottom: 12px;
}

.footer-links a {
    color: var(--text-gray);
    text-decoration: none;
    margin-left: 24px;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: white;
}

.copyright {
    text-align: center;
    padding-top: 20px;
    font-size: 14px;
}

/* ANIMATIONS */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

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

.delay-100 {
    transition-delay: 0.1s;
}

.delay-200 {
    transition-delay: 0.2s;
}

/* MODAL */
.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.9);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    backdrop-filter: blur(8px);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.modal-overlay.active {
    display: flex;
    opacity: 1;
    pointer-events: auto;
}

.modal-content {
    background: #111;
    border: 1px solid var(--emerald);
    padding: 3rem;
    border-radius: 24px;
    max-width: 500px;
    text-align: center;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.modal-overlay.active .modal-content {
    transform: scale(1);
}

.modal-icon {
    color: var(--emerald);
    margin-bottom: 1.5rem;
}

.modal-title {
    color: white;
    margin-bottom: 1rem;
    font-size: 1.8rem;
    font-family: var(--font-heading);
}

.modal-text {
    color: #888;
    margin-bottom: 2rem;
    line-height: 1.6;
    font-family: var(--font-body);
}

.modal-actions {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.btn-full-width {
    margin: 0;
    width: 100%;
    text-align: center;
    padding: 1rem;
}

.modal-close {
    background: transparent;
    border: none;
    color: #555;
    cursor: pointer;
    font-size: 0.9rem;
    text-decoration: underline;
    padding: 0.5rem;
}

.modal-close:focus-visible {
    outline-color: var(--emerald);
    outline-offset: 2px;
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    .floating {
        animation: none !important;
    }

    .live-bar::after {
        animation: none !important;
        width: 70% !important;
    }
}

/* RESPONSIVE */
@media (max-width: 900px) {

    .hero-grid,
    .mode-layout {
        display: flex;
        flex-direction: column-reverse;
        text-align: center;
        gap: 3rem;
    }

    .hero-text {
        margin-bottom: 2rem;
        padding: 0 16px;
    }

    .hero-text h1 {
        font-size: 2.5rem;
    }

    .hero-visual,
    .mode-visual {
        display: flex;
        justify-content: center;
        width: 100%;
    }

    .phone-frame {
        width: 280px;
        height: auto;
        aspect-ratio: 9/19;
        max-width: 100%;
    }

    .grid-3 {
        grid-template-columns: 1fr;
    }

    .nav-links {
        display: none;
    }

    /* Keeping simplified for now */

    .navbar {
        padding: 15px 0;
    }

    .mode-item {
        text-align: left;
    }

    .mode-item:hover,
    .mode-item.active {
        transform: translateY(-5px);
    }

    .nav-content {
        justify-content: center;
    }
}

@media (max-width: 900px) {
    .cta-buttons {
        justify-content: center;
        flex-direction: column;
        align-items: center;
    }

    .cta-buttons .btn {
        width: auto;
        min-width: 220px;
    }
}

/* Add this to style.css */
.app-screenshot {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Ensures image covers the whole screen area */
    display: block;
    background: #0f172a;
    /* Fallback color while loading */
}

/* Update .phone-frame to ensure the image sits behind the notch */
.phone-frame {
    /* Existing styles remain... */
    position: relative;
    z-index: 2;
    /* Ensure notch stays on top */
}