/* =========================================================
   THEME
========================================================= */

/*
Theme Name: LiteWoo Labs
Author: Waseem Shaikh & LiteWoo Lead Architect
Description: Performance-First WooCommerce Infrastructure
Version: 14.3 (Zero-Bloat Zenith Architecture)
*/

/* =========================================================
   RESET & WCAG A11Y ENGINE
========================================================= */

*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px; 
}

body {
    background: #05070a;
    color: #ffffff;
    font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.6;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

:focus-visible {
    outline: 2px solid var(--lw-primary);
    outline-offset: 4px;
    border-radius: 4px;
}

img, picture, video, canvas, svg { display: block; max-width: 100%; }
pre, code { white-space: pre-wrap; overflow-wrap: break-word; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button, input, textarea, select { font: inherit; }

/* =========================================================
   ROOT TOKENS (MATHEMATICAL SCALE)
========================================================= */

:root {
    /* Brand Physics Colors */
    --lw-bg: #05070a;
    --lw-surface: #0a0e17;
    --lw-surface-hover: #0f1523;
    
    --lw-primary: #4f8cff;
    --lw-primary-btn: #1d4ed8;
    --lw-primary-btn-hover: #1e40af;
    
    --lw-text: #ffffff;
    --lw-text-soft: rgba(255, 255, 255, 0.75);
    --lw-text-muted: rgba(255, 255, 255, 0.50);
    
    --lw-border: rgba(255, 255, 255, 0.06);
    --lw-border-hover: rgba(79, 140, 255, 0.25);
    
    --lw-success: #22c55e;
    --lw-danger: #ef4444;

    /* Spatial Dimensions */
    --lw-container: 1220px;
    --lw-section-space: clamp(80px, 8vw, 120px);
    
    /* Unified Radii */
    --lw-radius-lg: 16px;
    --lw-radius-md: 12px;
    --lw-radius-sm: 8px;

    /* GPU-Accelerated Motion */
    --lw-shadow-primary: 0 12px 30px rgba(29, 78, 216, 0.15);
    --lw-shadow-hover: 0 20px 40px rgba(29, 78, 216, 0.25);
    --lw-transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --lw-transition-smooth: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* =========================================================
   GLOBAL LAYOUT & FLUID TYPOGRAPHY
========================================================= */

.site-main {
    flex: 1;
    width: 100%;
    overflow-x: hidden; 
}

.lw-container {
    width: min(100% - 40px, var(--lw-container));
    margin-inline: auto;
}

.lw-global-lock {
    overflow-x: hidden !important;
    width: 100% !important;
    position: relative;
}

.lw-section {
    position: relative;
    padding: var(--lw-section-space) 0;
}

.lw-dark-section {
    background: linear-gradient(180deg, var(--lw-surface) 0%, var(--lw-bg) 100%);
    border-top: 1px solid var(--lw-border);
    border-bottom: 1px solid var(--lw-border);
}

h1, h2, h3, h4, h5, h6 {
    line-height: 1.1;
    letter-spacing: -0.03em;
}

.lw-blue { color: var(--lw-primary); }

.lw-code-block {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--lw-border);
    border-radius: var(--lw-radius-sm);
    padding: 16px;
    font-family: monospace;
    font-size: 0.85rem;
    color: var(--lw-primary);
    overflow-x: auto;
}

/* =========================================================
   HEADER SYSTEM & PURE CSS MOBILE NAV
========================================================= */

.lw-header-wrapper {
    position: sticky;
    top: 0;
    z-index: 9999;
    background: rgba(5, 7, 10, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--lw-border);
}

.master-header-grid {
    width: min(100% - 40px, var(--lw-container));
    margin-inline: auto;
    min-height: 82px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.lw-logo {
    font-size: 1.4rem;
    font-weight: 800;
    letter-spacing: -0.04em;
    color: var(--lw-text);
}

.lw-header-actions {
    display: flex;
    align-items: center;
    gap: 24px;
}

.lw-nav-container { display: flex; align-items: center; }

.lw-menu-items {
    display: flex;
    align-items: center;
    gap: 32px;
}

.lw-menu-items a {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--lw-text-soft);
    transition: color var(--lw-transition-fast);
}

.lw-menu-items a:hover,
.lw-menu-items a:focus-visible { 
    color: var(--lw-primary); 
}

/* Dropdown Engine */
.lw-submenu-parent {
    position: relative;
}

.lw-dropdown-trigger {
    cursor: default;
}

.lw-dropdown-arrow {
    font-size: 0.7em;
    opacity: 0.7;
    margin-left: 4px;
}

.lw-submenu {
    position: absolute;
    top: 100%;
    left: 0;
    background: #07090f;
    border: 1px solid var(--lw-border);
    border-radius: var(--lw-radius-sm);
    padding: 16px;
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all var(--lw-transition-fast);
    z-index: 100;
}

.lw-submenu-parent:hover .lw-submenu,
.lw-submenu-parent:focus-within .lw-submenu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.lw-submenu li {
    margin-bottom: 12px;
}

.lw-submenu li:last-child {
    margin-bottom: 0;
}

.lw-submenu a {
    display: block;
    font-size: 0.9em;
    opacity: 0.8;
    transition: opacity 0.2s;
}

/* Mobile Nav Toggle */
.lw-toggle-checkbox {
    position: absolute;
    width: 1px;
    height: 1px;
    clip: rect(0, 0, 0, 0);
    overflow: hidden;
}

.lw-hamburger {
    display: none;
    width: 48px;
    height: 48px;
    border-radius: var(--lw-radius-md);
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    border: 1px solid var(--lw-border);
    background: transparent;
    cursor: pointer;
    transition: background var(--lw-transition-fast);
}

.lw-hamburger:hover { background: var(--lw-surface); }

.lw-toggle-checkbox:focus-visible + .lw-hamburger {
    outline: 2px solid var(--lw-primary);
    outline-offset: 2px;
}

.lw-hamburger span {
    width: 20px;
    height: 2px;
    border-radius: 2px;
    background: var(--lw-text);
    transition: transform var(--lw-transition-smooth), opacity var(--lw-transition-fast);
}

/* =========================================================
   HERO ENGINE & PROOF ROW
========================================================= */

.lw-hero-section {
    position: relative;
    padding: clamp(100px, 12vw, 160px) 0 clamp(80px, 10vw, 120px);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.lw-hero-section::before {
    content: '';
    position: absolute;
    top: -20%;
    left: 50%;
    transform: translateX(-50%);
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(79, 140, 255, 0.08) 0%, transparent 60%);
    pointer-events: none;
}

.lw-hero-title {
    font-size: clamp(2.5rem, 6vw + 1rem, 5.5rem);
    font-weight: 800;
    max-width: 880px;
    margin: 0 auto;
}

.lw-hero-subtitle {
    font-size: clamp(1.05rem, 2vw, 1.2rem);
    color: var(--lw-text-soft);
    max-width: 680px;
    margin: 24px auto 0;
}

.lw-hero-cta-group {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-top: 40px;
}

.lw-proof-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    margin-top: 60px;
    gap: 40px;
}

.lw-proof-item {
    text-align: center;
}

.lw-proof-value {
    font-size: 1.8rem;
    font-weight: 900;
    color: var(--lw-text);
    line-height: 1;
}

.lw-proof-label {
    font-size: 0.85rem;
    color: var(--lw-text-muted);
    margin-top: 4px;
}

/* =========================================================
   SECTION HEADINGS & LABELS
========================================================= */

.lw-section-heading {
    max-width: 680px;
    margin: 0 auto 64px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.lw-section-heading h2 {
    font-size: clamp(2rem, 4vw + 1rem, 3.5rem);
    font-weight: 800;
    margin-bottom: 16px;
}

.lw-section-heading p {
    color: var(--lw-text-soft);
    font-size: 1.05rem;
    max-width: 65ch;
}

.lw-mini-label {
    display: inline-flex;
    align-items: center;
    height: 32px;
    padding: 0 16px;
    margin-bottom: 24px;
    border-radius: 999px;
    background: rgba(79, 140, 255, 0.08);
    border: 1px solid rgba(79, 140, 255, 0.15);
    color: var(--lw-primary);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

/* =========================================================
   GPU-ACCELERATED BUTTONS
========================================================= */

.lw-btn-primary,
.lw-btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 56px;
    padding: 0 32px;
    border-radius: var(--lw-radius-md);
    font-size: 0.95rem;
    font-weight: 700;
    will-change: transform, box-shadow;
    transition: transform var(--lw-transition-smooth), box-shadow var(--lw-transition-smooth), background var(--lw-transition-fast), border-color var(--lw-transition-fast);
    cursor: pointer;
}

.lw-btn-primary {
    background: var(--lw-primary-btn);
    color: #ffffff;
    box-shadow: var(--lw-shadow-primary);
    border: none;
}

.lw-btn-primary:hover,
.lw-btn-primary:focus-visible {
    transform: translateY(-2px);
    background: var(--lw-primary-btn-hover);
    box-shadow: var(--lw-shadow-hover);
}

.lw-btn-secondary {
    background: transparent;
    color: var(--lw-text);
    border: 1px solid var(--lw-border);
}

.lw-btn-secondary:hover,
.lw-btn-secondary:focus-visible {
    transform: translateY(-2px);
    border-color: var(--lw-primary);
    background: rgba(79, 140, 255, 0.05);
}

/* =========================================================
   GRID & UNBREAKABLE CARD ENGINE
========================================================= */

.lw-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
    gap: 32px;
    align-items: stretch;
}

.lw-price-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
    text-align: center;
}

.lw-problem-grid,
.lw-solutions-grid {
    display: grid;
    gap: 32px;
    align-items: stretch;
}

.lw-problem-grid { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.lw-solutions-grid { grid-template-columns: repeat(auto-fit, minmax(400px, 1fr)); }

.lw-problem-card,
.lw-solution-card {
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 40px;
    background: var(--lw-surface);
    border: 1px solid var(--lw-border);
    border-radius: var(--lw-radius-lg);
    text-align: left;
    will-change: transform;
    transition: transform var(--lw-transition-smooth), border-color var(--lw-transition-fast), background var(--lw-transition-fast);
}

.lw-transparent-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--lw-border);
    padding: 32px;
    border-radius: var(--lw-radius-md);
}

.lw-problem-card:hover,
.lw-solution-card:hover {
    transform: translateY(-4px);
    border-color: var(--lw-border-hover);
    background: var(--lw-surface-hover);
}

.lw-card-badge {
    display: inline-flex;
    align-items: center;
    height: 30px;
    padding: 0 12px;
    margin-bottom: 24px;
    border-radius: 4px;
    background: rgba(79, 140, 255, 0.1);
    color: var(--lw-primary);
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.lw-problem-card h3,
.lw-solution-card h3 {
    font-size: 1.4rem;
    font-weight: 800;
    margin-bottom: 12px;
}

.lw-problem-card p,
.lw-card-description {
    color: var(--lw-text-soft);
    font-size: 1rem;
    line-height: 1.6;
}

.lw-feature-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin: 32px 0;
}

.lw-feature-list li {
    position: relative;
    padding-left: 28px;
    color: var(--lw-text-soft);
    font-size: 0.95rem;
}

.lw-feature-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--lw-primary);
    box-shadow: 0 0 10px var(--lw-primary);
}

.lw-solution-card .lw-btn-primary,
.lw-solution-card .lw-btn-secondary {
    margin-top: auto;
    width: 100%;
}

.lw-card-footer {
    margin-top: auto;
    padding-top: 24px;
    border-top: 1px solid var(--lw-border);
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.lw-system-meta {
    display: flex;
    justify-content: space-between;
    font-family: monospace;
    font-size: 0.75rem;
    color: var(--lw-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.lw-meta-value {
    color: var(--lw-text-soft);
    font-weight: 700;
}

/* Pricing Elements */
.lw-pricing-card {
    background: var(--lw-surface);
    border: 1px solid var(--lw-border);
    border-radius: var(--lw-radius-lg);
    padding: 40px;
    text-align: center;
}

.lw-pricing-featured {
    max-width: 480px;
    width: 100%;
    margin-inline: auto;
    border-color: var(--lw-primary);
    box-shadow: 0 0 40px rgba(79, 140, 255, 0.1);
}

.lw-price-wrapper {
    margin: 24px 0;
}

.lw-price-main {
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--lw-primary);
    line-height: 1;
}

.lw-price-suffix {
    font-size: 1rem;
    color: var(--lw-text-muted);
}

.lw-price-sub {
    font-size: 0.85rem;
    color: var(--lw-text-muted);
    margin-top: 8px;
}

/* =========================================================
   CONTACT ARCHITECTURE & FORM ENGINE
========================================================= */

.lw-contact-layout {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: clamp(40px, 6vw, 80px);
    align-items: start;
}

.lw-form-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 24px;
}

.lw-form-group label {
    margin-bottom: 10px;
    color: var(--lw-text-muted);
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.lw-form-group input,
.lw-form-group textarea,
.lw-form-group select {
    width: 100%;
    padding: 16px 20px;
    border-radius: var(--lw-radius-md);
    border: 1px solid var(--lw-border);
    background: rgba(255, 255, 255, 0.02);
    color: var(--lw-text);
    font-size: 1rem;
    font-family: inherit;
    transition: border-color var(--lw-transition-fast), background var(--lw-transition-fast), box-shadow var(--lw-transition-fast);
}

.lw-form-group textarea {
    min-height: 160px;
    resize: vertical;
}

.lw-form-group input:focus,
.lw-form-group textarea:focus,
.lw-form-group select:focus {
    outline: none;
    border-color: var(--lw-primary);
    background: rgba(79, 140, 255, 0.05);
    box-shadow: 0 0 0 3px rgba(79, 140, 255, 0.1);
}

.lw-lead-form {
    width: 100%;
    max-width: 480px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.lw-lead-input {
    width: 100%;
    height: 56px;
    padding: 0 20px;
    border-radius: var(--lw-radius-md);
    border: 1px solid var(--lw-border);
    background: rgba(255, 255, 255, 0.02);
    color: var(--lw-text);
    font-size: 1rem;
    transition: border-color var(--lw-transition-fast), background var(--lw-transition-fast);
}

.lw-lead-input:focus {
    outline: none;
    border-color: var(--lw-primary);
    background: rgba(79, 140, 255, 0.05);
}

.lw-alert {
    margin-top: 24px;
    font-weight: 700;
    max-width: 480px;
    width: 100%;
    text-align: center;
}

.lw-alert-success { color: var(--lw-success); }
.lw-alert-danger { color: var(--lw-danger); }

/* =========================================================
   FOOTER ENGINE 
========================================================= */

.lw-footer {
    background: var(--lw-bg); 
    border-top: 1px solid var(--lw-border);
    padding-top: clamp(60px, 8vw, 100px);
}

.lw-footer-layout {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr;
    gap: clamp(32px, 5vw, 64px);
    padding-bottom: 60px;
}

.lw-footer-logo {
    font-size: 1.25rem;
    font-weight: 800;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

.lw-footer-description {
    color: var(--lw-text-soft);
    font-size: 0.95rem;
    max-width: 380px;
    line-height: 1.6;
    margin-bottom: 24px;
}

.lw-footer-heading {
    color: var(--lw-text);
    font-size: 1.05rem;
    font-weight: 800;
    margin-bottom: 20px;
}

.lw-footer-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.lw-footer-links a,
.lw-footer-links span {
    color: var(--lw-text-soft);
    font-size: 0.95rem;
    transition: color var(--lw-transition-fast);
}

.lw-footer-links a:hover,
.lw-footer-links a:focus-visible {
    color: var(--lw-primary);
}

.lw-footer-bottom {
    padding: 24px 0;
    border-top: 1px solid var(--lw-border);
    text-align: center;
    color: var(--lw-text-muted);
    font-size: 0.85rem;
    letter-spacing: 0.05em;
}

.lw-footer-founder {
    color: var(--lw-text);
    font-weight: 700;
    transition: color var(--lw-transition-fast);
}

.lw-footer-founder:hover {
    color: var(--lw-primary);
}

/* =========================================================
   DYNAMIC SIZE ENGINE PHYSICS
========================================================= */

.lw-size-trigger:hover { 
    color: var(--lw-text) !important; 
}

.lw-size-checkbox:checked ~ .lw-size-matrix { 
    max-height: 400px !important; 
    opacity: 1 !important; 
    margin-top: 16px !important; 
}

/* =========================================================
   RESPONSIVE MATRIX
========================================================= */

@media (max-width: 980px) {
    .lw-hamburger { display: flex; position: relative; z-index: 10001; }

    .lw-nav-container {
        position: fixed;
        inset: 0;
        width: 100%;
        height: 100vh;
        background: rgba(5, 7, 10, 0.98);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transition: opacity var(--lw-transition-smooth), visibility var(--lw-transition-smooth);
    }

    .lw-menu-items {
        flex-direction: column;
        justify-content: center;
        width: 100%;
        height: 100%;
        gap: 32px;
    }

    .lw-menu-items a {
        font-size: 2rem;
        font-weight: 800;
        color: var(--lw-text);
    }

    .lw-toggle-checkbox:checked ~ .lw-nav-container {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }

    .lw-toggle-checkbox:checked + .lw-hamburger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
    .lw-toggle-checkbox:checked + .lw-hamburger span:nth-child(2) { opacity: 0; }
    .lw-toggle-checkbox:checked + .lw-hamburger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
    
    .lw-contact-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .lw-problem-card, .lw-solution-card { padding: 32px 24px; }
    .lw-hero-cta-group { flex-direction: column; align-items: stretch; width: 100%; max-width: 400px; margin-inline: auto; }
    .lw-btn-primary, .lw-btn-secondary { width: 100%; }
    
    .lw-footer-layout {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .lw-footer-description {
        margin-inline: auto;
    }
}

@media (max-width: 480px) {
    .lw-menu-items a {
        font-size: 1.8rem;
    }
}