/* --- CSS Variables & Reset --- */
:root {
    /* Brand Colors based on Logo Gradient */
    --color-primary-start: #005bea; /* Deep Blue */
    --color-primary-end: #00c6fb;   /* Aqua Teal */
    --color-secondary: #0f172a;     /* Dark Slate / Text Color */
    --color-text-muted: #64748b;    /* muted text */
    --color-bg-light: #f8fafc;      /* Light Gray BG */
    --color-white: #ffffff;
    --color-dark-bg: #1e293b;       /* Dark section BG */
    --color-border: #e2e8f0;        /* Light border color */

    /* Fonts */
    --font-heading: 'Inter', sans-serif;
    --font-body: 'Open Sans', sans-serif;

    /* Spacing etc */
    --container-width: 1100px;
    --nav-height: 80px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    height: 100%;
}

body {
    font-family: var(--font-body);
    color: var(--color-secondary);
    line-height: 1.6;
    background-color: var(--color-white);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Main Content Wrapper */
.main-content {
    flex: 1 0 auto;
    width: 100%;
    padding-top: var(--nav-height);
}

h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.25rem; }

p { margin-bottom: 1rem; }
a { text-decoration: none; color: inherit; transition: color 0.3s ease; }
a:hover { color: var(--color-primary-start); }

/* --- Utilities --- */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

.narrow-container { max-width: 700px; }

.text-center { text-align: center; }
.text-white { color: var(--color-white); }
.text-white-muted { color: rgba(255,255,255,0.8); }
.text-muted { color: var(--color-text-muted); }
.text-small { font-size: 0.9rem; }

.mt-2 { margin-top: 2rem; }
.mb-2 { margin-bottom: 2rem; }

/* Grid System */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 50px;
    font-weight: 600;
    font-family: var(--font-heading);
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    text-align: center;
}

.btn-sm {
    padding: 8px 20px;
    font-size: 0.9rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--color-primary-start), var(--color-primary-end));
    color: var(--color-white) !important;
    box-shadow: 0 4px 14px rgba(0, 198, 251, 0.3);
}

.btn-primary:hover {
    box-shadow: 0 6px 20px rgba(0, 198, 251, 0.4);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--color-primary-start);
    color: var(--color-primary-start);
}
.btn-outline:hover {
    background: var(--color-primary-start);
    color: var(--color-white) !important;
}


/* --- Navigation --- */
.navbar {
    height: var(--nav-height);
    display: flex;
    align-items: center;
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid var(--color-border);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.nav-actions {
    display: flex;
    gap: 1rem;
}

.logo img {
    height: 55px;
    width: auto;
}

/* --- Hero Section --- */
.hero-section {
    padding-top: 60px;
    padding-bottom: 80px;
}

.hero-container {
    display: flex;
    align-items: center;
    gap: 4rem;
}

.hero-content { flex: 1; }

.hero-subhead {
    font-size: 1.25rem;
    color: var(--color-text-muted);
    margin: 1.5rem 0 1rem;
}

.hero-hook {
    font-weight: 600;
    color: var(--color-primary-start);
    margin-bottom: 2rem;
}

.hero-image-container { flex: 1; }

/* --- Signup Forms --- */
.signup-form-container { max-width: 450px; }
.center-form { margin: 0 auto; }

.inline-form {
    display: flex;
    gap: 10px;
    width: 100%;
    align-items: center;
}

.form-disclaimer {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    margin-top: 0.5rem;
    margin-left: 1rem;
}

/* --- General Sections --- */
.section {
    padding: 80px 0;
}

.section-light { background-color: var(--color-bg-light); }
.section-dark { background-color: var(--color-dark-bg); }

.section-title { margin-bottom: 1rem; }
.section-lead {
    font-size: 1.15rem;
    color: var(--color-text-muted);
    max-width: 700px;
    margin: 0 auto 3rem;
}

/* Feature Cards */
.feature-card {
    background: var(--color-white);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    border-top: 4px solid transparent;
    transition: transform 0.3s ease;
}

/* --- Split Layout (Desktop Defaults) --- */
.split-layout {
    display: flex;
    align-items: center;
    gap: 6rem;
}

.split-image, .split-text {
    flex: 1;
    max-width: 50%;
}

.split-reversed {
    flex-direction: row-reverse;
}

/* Lists */
.benefit-list {
    list-style: none;
    margin-top: 1.5rem;
}

.benefit-list li {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
    position: relative;
}

.benefit-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--color-primary-start);
    font-weight: bold;
}

/* --- Getting Started Steps --- */
.step-block {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
    padding-bottom: 2.5rem;
    border-bottom: 1px solid var(--color-border);
}
.step-block:last-child {
    border-bottom: none;
}
.step-number {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    background: var(--color-bg-light);
    color: var(--color-primary-start);
    font-weight: 800;
    font-size: 1.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--color-border);
}

/* --- CTA Section --- */
.section-cta {
    background: linear-gradient(135deg, #f0f7ff, #ffffff);
    border-top: 1px solid var(--color-border);
}
.cta-subhead {
    font-size: 1.25rem;
    color: var(--color-text-muted);
    margin-bottom: 2rem;
}

/* --- Footer --- */
.footer {
    flex-shrink: 0;
    background: var(--color-white);
    padding: 3rem 0;
    color: var(--color-text-muted);
    font-size: 0.9rem;
    border-top: 1px solid var(--color-border);
}

.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-links a {
    color: var(--color-secondary);
    font-weight: 600;
}

.footer-links a:hover {
    color: var(--color-primary-start);
    text-decoration: none;
}

/* --- App Screenshot Styles & Lightbox Zoom --- */
.hero-img, .solution-img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    border: 1px solid rgba(0,0,0,0.1);
    cursor: zoom-in; /* Indicates it can be clicked */
    transition: transform 0.2s ease;
}

.hero-img:hover, .solution-img:hover {
    transform: scale(1.02); /* Subtle feedback on hover */
}

.img-shadow {
    box-shadow: 0 20px 40px -15px rgba(0,0,0,0.15), 0 0 0 1px rgba(0,0,0,0.02);
}

/* --- LIGHTBOX OVERLAY (Hidden by default) --- */
.lightbox-overlay {
    display: none;
    position: fixed;
    z-index: 9999;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(15, 23, 42, 0.95); /* Dark background */
    align-items: center;
    justify-content: center;
    padding: 20px;
    backdrop-filter: blur(5px);
}

.lightbox-overlay.active {
    display: flex;
    animation: fadeIn 0.2s ease;
}

.lightbox-img {
    max-width: 95%;
    max-height: 95vh;
    border-radius: 8px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 3rem;
    font-weight: bold;
    cursor: pointer;
    line-height: 1;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* --- Mobile Responsiveness (Brilliant Mobile) --- */
@media (max-width: 768px) {
    
    /* Layout Reset - Force Stacking */
    .hero-container, .split-layout, .split-reversed {
        flex-direction: column;
        gap: 2.5rem;
    }

    /* Reset Widths */
    .hero-content, .hero-image-container, .split-image, .split-text {
        width: 100%;
        max-width: 100%;
        flex: auto;
    }

    /* Visual Order: Image ALWAYS first on mobile for visual impact */
    .hero-image-container { order: -1; }
    .split-image { order: -1; } /* Image on top */
    .split-text { order: 1; }   /* Text below */

    /* Typography Tweaks for readability */
    h1 { font-size: 2.2rem; line-height: 1.1; text-align: center; }
    h2 { font-size: 1.75rem; text-align: center; }
    .hero-subhead { text-align: center; font-size: 1.1rem; }
    .section-lead { font-size: 1.1rem; text-align: center; }
    .hero-hook { text-align: center; }
    .section-title { text-align: center; }
    
    /* Center Buttons on Mobile */
    .hero-content .btn {
        display: block;
        width: 100%;
        margin-top: 1rem;
    }
    .split-text .btn {
        display: block;
        width: 100%;
        text-align: center;
        margin-top: 1rem;
    }

    /* Grid Stacking */
    .grid-3, .grid-2 {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    /* Footer Vertical Stack */
    .footer-container {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
    }
    .footer-links {
        flex-direction: column;
        gap: 1.2rem;
    }
    
    /* Header padding adjustments */
    .hero-section {
        padding-top: 40px;
        padding-bottom: 60px;
    }
    .section {
        padding: 60px 0;
    }
}