/*
Theme Name: Streamline
Theme URI: https://example.com/streamline
Author: Antigravity
Author URI: https://google.com
Description: A clean, high-performance SaaS landing page theme.
Version: 1.2 (Updated Header/Footer Design)
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: streamline
tags: one-column, custom-colors, custom-menu, featured-images
*/

/* Reset & Base Styles are enqueued from the main css file to keep this clean, 
   but we can also paste them here if we want a single file. 
   For this build, I'll paste the previous CSS here to ensure it works standalone.
*/

:root {
    /* Color Palette */
    --color-bg: #FFFFFF;
    --color-bg-alt: #F8FAFC;
    /* Slate 50 */
    --color-text-main: #0F172A;
    /* Slate 900 */
    --color-text-muted: #64748B;
    /* Slate 500 */
    --color-primary: #0EA5E9;
    /* Sky 500 */
    --color-primary-hover: #0284C7;
    /* Sky 600 */
    --color-secondary: #0F172A;
    /* Slate 900 */
    --color-accent: #38BDF8;
    /* Sky 400 */
    --color-border: #E2E8F0;
    /* Slate 200 */
    --color-white: #FFFFFF;

    /* Spacing */
    --container-width: 1200px;
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 6rem;

    /* Typography */
    --font-family: 'Inter', sans-serif;
    --fs-h1: 3.5rem;
    --fs-h2: 2.25rem;
    --fs-h3: 1.25rem;
    --fs-body: 1rem;
    --fs-small: 0.875rem;

    /* Effects */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --radius-md: 0.5rem;
    --radius-lg: 1rem;
    --radius-full: 9999px;
    --transition: all 0.2s ease-in-out;
}

/* Reset & Base */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-family);
    font-size: var(--fs-body);
    line-height: 1.6;
    color: var(--color-text-main);
    background-color: var(--color-bg);
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

img {
    max-width: 100%;
    display: block;
    height: auto;
}

/* Utilities */
.container {
    width: 90%;
    max-width: var(--container-width);
    margin: 0 auto;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    font-weight: 500;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition);
    border: none;
}

.btn-primary {
    background-color: var(--color-primary);
    color: var(--color-white);
}

.btn-primary:hover {
    background-color: var(--color-primary-hover);
    color: var(--color-white);
    transform: translateY(-1px);
}

.btn-secondary {
    background-color: transparent;
    color: var(--color-text-main);
}

.btn-secondary:hover {
    background-color: var(--color-bg-alt);
    color: var(--color-text-main);
}

.btn-outline {
    background-color: transparent;
    border: 1px solid var(--color-border);
    color: var(--color-text-main);
}

.btn-outline:hover {
    border-color: var(--color-text-main);
    background-color: var(--color-bg-alt);
    color: var(--color-text-main);
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.125rem;
}

.btn-block {
    display: flex;
    width: 100%;
}

.section-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto var(--spacing-lg);
}

.section-header h2 {
    font-size: var(--fs-h2);
    font-weight: 700;
    margin-bottom: var(--spacing-sm);
    letter-spacing: -0.025em;
    line-height: 1.2;
}

.section-header p {
    color: var(--color-text-muted);
    font-size: 1.125rem;
}

/* Header */
/* Header Base Styles */
.site-header {
    padding: 10px 0;
    /* Reduced padding */
    border-bottom: none;
    /* Removed Line */

    position: fixed;
    /* Fix: Overlays content */
    width: 100%;
    top: 0;
    left: 0;

    background-color: transparent;
    /* Transparent Init */
    z-index: 1000;

    transition: all 0.3s ease;
}

.site-header .container {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    /* 3-Column Grid for Centering */
    align-items: center;
    width: 90%;
    max-width: var(--container-width);
}

/* CENTER LOGO (INITIAL STATE) */
.logo-center {
    grid-column: 2;
    /* Center column */
    display: flex;
    justify-content: center;
    transition: opacity 0.3s ease, transform 0.3s ease;
    opacity: 1;
    transform: translateY(0);
}

/* LEFT LOGO (SCROLLED STATE - HIDDEN INITIALLY) */
.logo-left {
    grid-column: 1;
    /* Left column */
    display: flex;
    justify-content: flex-start;
    opacity: 0;
    /* Hidden */
    transform: translateY(-10px);
    pointer-events: none;
    /* Non-clickable when hidden */
    transition: opacity 0.3s ease, transform 0.3s ease;
}

/* SCROLLED STATE TOGGLES */
/* When header is scrolled */
.site-header.scrolled .logo-center {
    opacity: 0;
    pointer-events: none;
    transform: translateY(-10px);
}

.site-header.scrolled .logo-left {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}


.logo-center img {
    max-height: 40px;
    /* Long logo height */
    width: auto;
}

.logo-left img {
    max-height: 35px;
    /* Short logo height */
    width: auto;
}


/* Navigation: Right */
.main-nav {
    grid-column: 3;
    /* Right column */
    margin-left: auto;
}

.main-nav ul {
    display: flex;
    gap: var(--spacing-md);
    align-items: center;
}

.main-nav a {
    color: var(--color-text-muted);
    font-weight: 500;
}

.main-nav a:hover {
    color: var(--color-primary);
}

.header-actions {
    display: flex;
    gap: var(--spacing-sm);
}

/* Hero Section */
.hero {
    padding: var(--spacing-xl) 0;
    text-align: center;
    overflow: hidden;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto var(--spacing-lg);
}

.badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background-color: #F0F9FF;
    color: var(--color-primary);
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: var(--radius-full);
    margin-bottom: var(--spacing-md);
    border: 1px solid #BAE6FD;
}

.hero h1 {
    font-size: var(--fs-h1);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.04em;
    margin-bottom: var(--spacing-md);
}

.hero-subhead {
    font-size: 1.25rem;
    color: var(--color-text-muted);
    margin-bottom: var(--spacing-md);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    gap: var(--spacing-sm);
    justify-content: center;
    margin-bottom: var(--spacing-lg);
}

.hero-trust {
    font-size: 0.875rem;
    color: var(--color-text-muted);
    opacity: 0.8;
}

/* UI Visualization */
.hero-visual {
    margin-top: var(--spacing-md);
    perspective: 1000px;
}

.ui-window {
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
    max-width: 900px;
    margin: 0 auto;
    height: 400px;
    transform: rotateX(2deg);
    overflow: hidden;
    position: relative;
}

.ui-header {
    background: var(--color-bg-alt);
    padding: 12px 20px;
    display: flex;
    gap: 8px;
    border-bottom: 1px solid var(--color-border);
}

.ui-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.ui-dot.stop {
    background-color: #EF4444;
}

.ui-dot.caution {
    background-color: #F59E0B;
}

.ui-dot.go {
    background-color: #10B981;
}

.ui-body {
    display: flex;
    height: 100%;
}

.ui-sidebar {
    width: 200px;
    background-color: #F8FAFC;
    border-right: 1px solid var(--color-border);
}

.ui-content {
    flex: 1;
    padding: 30px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.ui-skeleton-header {
    height: 40px;
    width: 40%;
    background-color: #F1F5F9;
    border-radius: var(--radius-md);
}

.ui-skeleton-graph {
    flex: 1;
    display: flex;
    align-items: flex-end;
    gap: 20px;
    padding: 20px 0;
}

.bar {
    width: 100%;
    background-color: var(--color-primary);
    border-radius: 4px 4px 0 0;
    opacity: 0.8;
}

.ui-skeleton-list .line {
    height: 12px;
    background-color: #F1F5F9;
    margin-bottom: 10px;
    border-radius: 4px;
}

.ui-skeleton-list .line:last-child {
    width: 80%;
}

/* Features */
.features {
    padding: var(--spacing-xl) 0;
    background-color: var(--color-bg);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-md);
}

.feature-card {
    padding: var(--spacing-md);
    border-radius: var(--radius-lg);
    transition: var(--transition);
}

.feature-card:hover {
    background-color: var(--color-bg-alt);
}

.icon-box {
    width: 48px;
    height: 48px;
    background-color: #E0F2FE;
    color: var(--color-primary);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--spacing-sm);
}

.icon-box svg {
    width: 24px;
    height: 24px;
}

.feature-card h3 {
    font-size: 1.25rem;
    margin-bottom: var(--spacing-xs);
    font-weight: 600;
}

.feature-card p {
    color: var(--color-text-muted);
}

/* Pricing */
.pricing {
    padding: var(--spacing-xl) 0;
    background-color: var(--color-bg-alt);
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-md);
    align-items: center;
}

.pricing-card {
    background: var(--color-white);
    padding: 2.5rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    position: relative;
    border: 1px solid var(--color-border);
}

.pricing-card.featured {
    box-shadow: var(--shadow-lg);
    border-color: var(--color-primary);
    transform: scale(1.05);
    z-index: 10;
}

.badge-popular {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: var(--color-primary);
    color: var(--color-white);
    padding: 0.25rem 1rem;
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    font-weight: 600;
}

.pricing-header {
    text-align: center;
    margin-bottom: var(--spacing-md);
}

.pricing-header h3 {
    font-size: 1.25rem;
    color: var(--color-text-main);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.pricing-header .price {
    font-size: 3rem;
    font-weight: 800;
    color: var(--color-text-main);
}

.pricing-header .price span {
    font-size: 1rem;
    font-weight: 500;
    color: var(--color-text-muted);
}

.pricing-features {
    margin-bottom: 2rem;
}

.pricing-features li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
    color: var(--color-text-muted);
}

.pricing-features li::before {
    content: "✓";
    color: var(--color-primary);
    font-weight: 700;
}

/* Testimonials */
.testimonials {
    padding: var(--spacing-xl) 0;
}

.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-md);
}

.testimonial-card {
    background-color: var(--color-bg-alt);
    padding: 2rem;
    border-radius: var(--radius-lg);
}

.testimonial-card .quote {
    font-size: 1.125rem;
    font-style: italic;
    color: var(--color-text-main);
    margin-bottom: 1.5rem;
}

.testimonial-card .author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.avatar-circle {
    width: 48px;
    height: 48px;
    background-color: var(--color-primary);
    color: var(--color-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

.author-info strong {
    display: block;
    color: var(--color-text-main);
}

.author-info span {
    color: var(--color-text-muted);
    font-size: 0.875rem;
}

/* CTA Section */
.cta-section {
    padding: var(--spacing-xl) 0;
    text-align: center;
    background-color: var(--color-secondary);
    color: var(--color-white);
}

.cta-section h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--color-white);
}

.cta-section p {
    color: #94A3B8;
    margin-bottom: 2rem;
    font-size: 1.25rem;
}

/* Footer (Deprecated default styles, overridden inline/above) */
.site-footer {
    padding: var(--spacing-xl) 0 var(--spacing-lg);
    background-color: var(--color-bg);
    border-top: 1px solid var(--color-border);
}


/* Scroll Sequence Styles */
.zarofolia-scroll-container {
    position: relative;
    height: 400vh;
    background-color: var(--color-bg);
}

.zarofolia-canvas {
    position: sticky;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    object-fit: cover;
    display: block;
    z-index: 1;
}

.scroll-overlay-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.scroll-text-overlay {
    position: absolute;
    width: 100%;
    padding: 0 1.5rem;
    opacity: 0;
    transition: opacity 0.5s ease-out, transform 0.5s ease-out;
    display: flex;
    align-items: center;
    left: 0;
    right: 0;
}

.scroll-text-overlay.video-overlay-center {
    justify-content: center;
    text-align: center;
}

.scroll-text-overlay.video-overlay-left {
    justify-content: flex-start;
    padding-left: 10%;
}

.scroll-text-overlay.video-overlay-right {
    justify-content: flex-end;
    padding-right: 10%;
    text-align: right;
}

.scroll-text-content {
    max-width: 600px;
}

.scroll-text-content h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    /* Default Black Text */
    color: rgba(0, 0, 0, 0.9);
    letter-spacing: -0.05em;
}

/* TARGET THE LAST TEXT OVERLAY TO BE WHITE */
.scroll-text-overlay:last-child .scroll-text-content h2,
.scroll-text-overlay:last-child .scroll-text-content p {
    color: #FFFFFF !important;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    /* Readable against any image */
}

@media (min-width: 768px) {
    .scroll-text-content h2 {
        font-size: 4rem;
    }
}

.scroll-text-content p {
    font-size: 1.25rem;
    color: rgba(0, 0, 0, 0.6);
}

/* Loading Overlay */
.loading-overlay {
    position: fixed;
    inset: 0;
    z-index: 50;
    background-color: var(--color-bg);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: opacity 0.5s;
}

.spinner {
    width: 3rem;
    height: 3rem;
    border: 4px solid rgba(0, 0, 0, 0.1);
    border-top-color: rgba(0, 0, 0, 0.6);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 1rem;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Header States */
.site-header {
    transition: all 0.3s ease;
}

/* Force transparent at all times */
.site-header.scrolled {
    background-color: transparent !important;
    box-shadow: none !important;
}