:root {
    --bg-dark: #0F172A;
    --bg-darker: #0B0F19;
    --bg-panel: #1E293B;
    --bg-light: #F8FAFC;
    --bg-card: #FFFFFF;

    --text-main: #F1F5F9;
    --text-muted: #555555;
    --text-dark: #0F172A;
    --text-dark-muted: #475569;

    --neon-blue: #3B82F6;
    --neon-blue-glow: rgba(59, 130, 246, 0.5);
    --neon-green: #10B981;
    --neon-green-glow: rgba(16, 185, 129, 0.4);
    --accent-purple: #8B5CF6;

    --border-light: rgba(255, 255, 255, 0.08);
    --border-dark: #E2E8F0;

    --font-base: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --layout-max: 1200px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
}

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

body {
    font-family: var(--font-base);
    background-color: var(--bg-darker);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* Light Mode Overrides for Specific Sections */
.theme-light {
    background-color: var(--bg-light);
    color: var(--text-dark);
}

ul {
    list-style: none;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1.5rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    background: transparent;
    transition: var(--transition);
    border-bottom: 1px solid transparent;
}

.navbar.scrolled {
    padding: 1rem 5%;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-light);
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.5px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo::before {
    content: '';
    display: inline-block;
    width: 24px;
    height: 24px;
    background: linear-gradient(135deg, var(--neon-blue), var(--neon-green));
    border-radius: 6px;
}

.nav-links {
    display: flex;
    gap: 2.5rem;
}

.nav-links a {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-muted);
    position: relative;
    padding-bottom: 5px;
}

.nav-links a:hover,
.nav-links a.active {
    color: #fff;
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background: var(--neon-blue);
    transition: var(--transition);
    box-shadow: 0 0 10px var(--neon-blue-glow);
}

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

.nav-icons {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.btn-nav-login {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-muted);
}

.btn-nav-login:hover {
    color: #fff;
}

.cart-icon-container {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--bg-panel);
    border: 1px solid var(--border-light);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    font-weight: 600;
}

.cart-icon-container:hover {
    border-color: var(--neon-blue);
    box-shadow: 0 0 15px var(--neon-blue-glow);
}

.cart-count {
    background: var(--neon-blue);
    color: #fff;
    padding: 0.15rem 0.5rem;
    border-radius: 4px;
    font-size: 0.8rem;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.8rem 1.8rem;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    border-radius: var(--radius-sm);
    transition: var(--transition);
    border: 1px solid transparent;
    text-align: center;
}

.btn-solid {
    background: var(--neon-blue);
    color: #fff;
    box-shadow: 0 4px 15px var(--neon-blue-glow);
}

.btn-solid:hover {
    background: #2563EB;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px var(--neon-blue-glow);
}

.btn-outline {
    background: transparent;
    border-color: var(--border-light);
    color: #fff;
}

.btn-outline:hover {
    border-color: var(--neon-blue);
    color: var(--neon-blue);
}

/* Hero Section / SaaS Dashboard Vibe */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 8rem 5% 4rem;
    position: relative;
    background: radial-gradient(circle at 80% 20%, rgba(59, 130, 246, 0.15), transparent 40%),
        radial-gradient(circle at 20% 80%, rgba(16, 185, 129, 0.1), transparent 40%);
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    max-width: var(--layout-max);
    margin: 0 auto;
    align-items: center;
}

.hero-content h1 {
    font-size: 4.5rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    background: linear-gradient(to right, #fff, var(--text-muted));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-content p {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    max-width: 500px;
}

/* Mock Dashboard Graph Widget */
.hero-dashboard {
    background: var(--bg-panel);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 2rem;
    position: relative;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.hero-dashboard::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, var(--neon-blue), var(--neon-green));
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.dash-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 2rem;
    border-bottom: 1px solid var(--border-light);
    padding-bottom: 1rem;
}

.dash-stat {
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.stat-val {
    font-size: 2.5rem;
    font-weight: 700;
    color: #fff;
}

.stat-grow {
    color: var(--neon-green);
    font-size: 0.9rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 5px;
}

.stat-grow::before {
    content: '↑';
    font-weight: bold;
}

.graph-lines {
    display: flex;
    align-items: flex-end;
    gap: 10px;
    height: 150px;
    padding-top: 2rem;
}

.graph-bar {
    flex: 1;
    background: var(--neon-blue);
    border-radius: 4px 4px 0 0;
    opacity: 0.8;
    transition: var(--transition);
    position: relative;
    animation: growBar 1.5s cubic-bezier(0.1, 0.8, 0.2, 1) forwards;
    transform-origin: bottom;
    transform: scaleY(0);
}

.graph-bar.green {
    background: var(--neon-green);
}

.graph-bar:hover {
    opacity: 1;
    filter: brightness(1.2);
}

@keyframes growBar {
    to {
        transform: scaleY(1);
    }
}

/* Sections */
.section {
    padding: 8rem 5%;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    text-align: center;
    color: inherit;
}

.section-subtitle {
    text-align: center;
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 4rem;
}

/* Products Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2.5rem;
    max-width: var(--layout-max);
    margin: 0 auto;
}

.product-card {
    background: var(--bg-panel);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.theme-light .product-card {
    background: var(--bg-card);
    border-color: var(--border-dark);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.product-card:hover {
    transform: translateY(-5px);
    border-color: var(--neon-blue);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.theme-light .product-card:hover {
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    border-color: rgba(59, 130, 246, 0.3);
}

.product-img-wrapper {
    position: relative;
    aspect-ratio: 16/9;
    overflow: hidden;
    border-bottom: 1px solid var(--border-light);
}

.theme-light .product-img-wrapper {
    border-color: var(--border-dark);
}

.product-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
    filter: grayscale(20%);
}

.product-card:hover .product-img {
    transform: scale(1.05);
    filter: grayscale(0%);
}

.product-category {
    position: absolute;
    top: 1rem;
    left: 1rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    color: #1A1A1A;
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(4px);
    padding: 0.3rem 0.8rem;
    border-radius: 4px;
    border: 1px solid var(--border-light);
    z-index: 2;
}

.product-info {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.product-title {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.product-desc {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.theme-light .product-desc {
    color: var(--text-dark-muted);
}

.price-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-top: 1rem;
    border-top: 1px dashed var(--border-light);
}

.theme-light .price-row {
    border-color: var(--border-dark);
}

.product-price {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--neon-green);
}

.theme-light .product-price {
    color: #059669;
}

/* Darker green for light theme */

/* Page Headers */
.page-header {
    padding: 10rem 5% 4rem;
    text-align: center;
    border-bottom: 1px solid var(--border-light);
    background: var(--bg-dark);
}

.theme-light .page-header {
    background: var(--bg-light);
    border-color: var(--border-dark);
}

.page-header h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

/* Forms */
.form-container {
    max-width: 600px;
    margin: 0 auto;
    background: var(--bg-panel);
    padding: 3rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-light);
}

.theme-light .form-container {
    background: var(--bg-card);
    border-color: var(--border-dark);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.form-control {
    width: 100%;
    padding: 1rem;
    background: var(--bg-dark);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-sm);
    color: #fff;
    font-family: var(--font-base);
    font-size: 1rem;
    transition: var(--transition);
}

.theme-light .form-control {
    background: #fff;
    border-color: #cbd5e1;
    color: var(--text-dark);
}

.form-control:focus {
    outline: none;
    border-color: var(--neon-blue);
    box-shadow: 0 0 0 1px var(--neon-blue);
}

.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin: 2rem 0;
    padding: 1.2rem;
    background: rgba(59, 130, 246, 0.05);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: var(--radius-sm);
}

.checkbox-group input {
    margin-top: 4px;
}

.checkbox-group label {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.5;
}

/* Dashboard Layout components for Cart/Checkout */
.cart-layout {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 2.5rem;
    max-width: var(--layout-max);
    margin: 0 auto;
}

.data-panel {
    background: var(--bg-panel);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 2rem;
}

.theme-light .data-panel {
    background: var(--bg-card);
    border-color: var(--border-dark);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.data-row {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.5rem 0;
    border-bottom: 1px solid var(--border-light);
}

.theme-light .data-row {
    border-color: var(--border-dark);
}

.data-row:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.data-row:first-child {
    padding-top: 0;
}

.row-img {
    width: 80px;
    height: 60px;
    object-fit: cover;
    border-radius: 4px;
}

.row-info {
    flex-grow: 1;
}

.row-title {
    font-weight: 600;
    font-size: 1.05rem;
    margin-bottom: 0.3rem;
}

.row-price {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.qty-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--bg-dark);
    border: 1px solid var(--border-light);
    border-radius: 4px;
    padding: 0.2rem;
}

.theme-light .qty-controls {
    background: var(--bg-light);
    border-color: #cbd5e1;
}

.qty-btn {
    background: transparent;
    color: var(--text-muted);
    border: none;
    cursor: pointer;
    padding: 0.2rem 0.5rem;
}

.qty-btn:hover {
    color: #fff;
}

.theme-light .qty-btn:hover {
    color: var(--text-dark);
}

.summary-line {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
    color: var(--text-muted);
    font-size: 0.95rem;
}

.summary-total {
    display: flex;
    justify-content: space-between;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px dashed var(--border-light);
    font-size: 1.25rem;
    font-weight: 700;
    color: #fff;
}

.theme-light .summary-total {
    border-color: var(--border-dark);
    color: var(--text-dark);
}

/* Details Layout */
.metric-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    max-width: var(--layout-max);
    margin: 0 auto;
}

.detail-img-container {
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--border-light);
    position: relative;
}

.theme-light .detail-img-container {
    border-color: var(--border-dark);
}

.detail-img {
    width: 100%;
    display: block;
}

.detail-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(16, 185, 129, 0.1);
    color: var(--neon-green);
    padding: 0.4rem 0.8rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.detail-status::before {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--neon-green);
    box-shadow: 0 0 8px var(--neon-green);
}

.detail-controls {
    display: flex;
    gap: 1rem;
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-light);
}

/* Legal Content */
.doc-content {
    max-width: 800px;
    margin: 0 auto;
}

.doc-content h2 {
    font-size: 1.6rem;
    margin: 2.5rem 0 1rem;
    color: var(--neon-blue);
}

.doc-content p,
.doc-content li {
    color: var(--text-muted);
    margin-bottom: 1.2rem;
    line-height: 1.7;
}

.doc-content ul {
    list-style: square;
    margin-left: 1.5rem;
    margin-bottom: 1.5rem;
}

/* Footer (Dashboard Style) */
footer {
    border-top: 1px solid var(--border-light);
    background: var(--bg-dark);
    padding: 5rem 5% 2rem;
    margin-top: 4rem;
}

.theme-light footer {
    background: var(--bg-light);
    border-color: var(--border-dark);
}

.foot-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    max-width: var(--layout-max);
    margin: 0 auto;
}

.foot-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-dark-muted);
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.foot-col a {
    display: block;
    color: var(--text-muted);
    margin-bottom: 0.8rem;
    font-size: 0.9rem;
}

.foot-col a:hover {
    color: var(--neon-blue);
}

.foot-bottom {
    max-width: var(--layout-max);
    margin: 4rem auto 0;
    padding-top: 2rem;
    border-top: 1px solid var(--border-light);
    display: flex;
    justify-content: space-between;
    color: var(--text-dark-muted);
    font-size: 0.85rem;
}

.theme-light .foot-bottom {
    border-color: var(--border-dark);
}

/* Toasts */
#toast-container {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.toast {
    background: var(--bg-panel);
    border: 1px solid var(--border-light);
    color: #fff;
    padding: 1rem 1.5rem;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    font-weight: 500;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    gap: 10px;
    animation: slideInRight 0.3s ease forwards, fadeOut 0.3s ease 3s forwards;
}

.toast::before {
    content: '✓';
    color: var(--neon-green);
    font-weight: bold;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes fadeOut {
    to {
        opacity: 0;
    }
}

/* Animations */








@media (max-width: 900px) {
    .nav-links {
        display: none;
    }

    .hero-grid,
    .cart-layout,
    .metric-grid,
    .foot-grid {
        grid-template-columns: 1fr;
    }

    .hero-content h1 {
        font-size: 3rem;
    }
}
/* --- Visibility Protocol CSS --- */
.reveal {
    opacity: 1;
    transform: none;
    transition: all 0.8s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}
.reveal.js-hidden {
    opacity: 0;
    transform: translateY(40px);
}
.reveal.active {
    opacity: 1;
    transform: translateY(0);
}
