:root {
    /* Color Palette - Monochromatic Dark */
    --bg-dark: #0a0a0b;
    --bg-dark-2: #121214;
    --text-main: #ffffff;
    --text-muted: #a1a1aa;
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
    --primary-glow: rgba(255, 255, 255, 0.15);
    --accent-glow: rgba(56, 189, 248, 0.3);
    /* Subtle blue tint for tech feel */

    /* Typography */
    --font-main: 'Outfit', sans-serif;

    /* Spacing */
    --container-width: 1200px;
    --header-height: 80px;
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-main);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s ease;
}

ul {
    list-style: none;
}

canvas#bg-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
}

/* Layout Utilities */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 2rem;
}

.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.flex-between {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.align-center {
    align-items: center;
}

.text-center {
    text-align: center;
}

.full-width {
    width: 100%;
}

/* Glassmorphism Classes */
.glass-header,
.glass-panel,
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
}

/* Header */
.glass-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    z-index: 1000;
    border-bottom: 1px solid var(--glass-border);
}

.nav-container {
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-weight: 800;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    letter-spacing: -0.5px;
}

.main-nav ul {
    display: flex;
    gap: 2rem;
}

.main-nav a {
    color: var(--text-muted);
    font-weight: 500;
    font-size: 0.95rem;
}

.main-nav a:hover {
    color: var(--text-main);
}

.nav-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.icon-btn {
    background: none;
    border: none;
    color: var(--text-main);
    cursor: pointer;
    font-size: 1.1rem;
}

/* ... (Previous variables remain similar) ... */

/* Mobile Menu & Responsive Utilities */
.mobile-only {
    display: none;
}

.desktop-only {
    display: flex;
}

/* Hamburger Button */
.hamburger-btn {
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 5px;
    z-index: 1002;
}

.hamburger-btn .bar {
    width: 25px;
    height: 3px;
    background-color: var(--text-main);
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* Mobile Menu Overlay */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    right: -100%;
    /* Hidden by default */
    width: 100%;
    height: 100vh;
    z-index: 1001;
    /* Above header */
    transition: right 0.4s cubic-bezier(0.77, 0, 0.175, 1);
    background: rgba(0, 0, 0, 0.4);
    /* Dim background */
}

.mobile-menu-overlay.active {
    right: 0;
}

.mobile-menu-content {
    position: absolute;
    top: 0;
    right: 0;
    width: 80%;
    /* Side panel width */
    max-width: 300px;
    height: 100%;
    background: var(--bg-dark-2);
    /* Solid dark background for readability */
    backdrop-filter: blur(15px);
    border-left: 1px solid var(--glass-border);
    padding: 6rem 2rem 2rem;
    display: flex;
    flex-direction: column;
}

.close-btn {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: none;
    border: none;
    color: var(--text-main);
    font-size: 1.5rem;
    cursor: pointer;
}

.mobile-nav ul {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.mobile-link {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-muted);
}

.mobile-link.highlight {
    color: var(--text-main);
    border-bottom: 2px solid var(--primary-glow);
}

.mobile-link:hover {
    color: var(--text-main);
    padding-left: 10px;
}

/* Global Gap Utility */
.gap-large {
    gap: 3rem;
}

/* Buttons */
.btn {
    padding: 0.8rem 1.5rem;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    display: inline-block;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
}

.btn-lg {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
}

.btn-primary {
    background-color: var(--text-main);
    color: var(--bg-dark);
}

.btn-primary:hover {
    background-color: #e0e0e0;
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    border-color: var(--glass-border);
    color: var(--text-main);
}

.btn-outline:hover {
    background: var(--glass-bg);
    border-color: var(--text-main);
}

.btn-glow {
    box-shadow: 0 0 15px var(--primary-glow);
}

.btn-glow:hover {
    box-shadow: 0 0 25px rgba(255, 255, 255, 0.3);
}

/* Hero Section */
.hero-section {
    height: 90vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: calc(var(--header-height) + 4rem);
    /* Fix overlap */
}

.hero-title {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    font-weight: 800;
    min-height: 4.4rem;
}

.cursor {
    display: inline-block;
    animation: blink 1s infinite;
    font-weight: 100;
    color: var(--text-muted);
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-muted);
    max-width: 600px;
    margin-bottom: 2.5rem;
}

/* Search Section */
.search-section {
    margin-top: -3rem;
    /* Overlap hero slightly */
    padding-bottom: 4rem;
    position: relative;
    z-index: 10;
}

.search-panel {
    border-radius: 12px;
    padding: 1.5rem 2rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
}

.search-icon {
    color: var(--text-muted);
    font-size: 1.2rem;
}

.search-input {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--text-main);
    font-size: 1.1rem;
    font-family: var(--font-main);
    outline: none;
}

/* Value Props */
.value-section {
    padding: 6rem 0;
}

.section-header {
    margin-bottom: 4rem;
    text-align: center;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
}

.glass-card {
    padding: 2rem;
    border-radius: 16px;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.glass-card:hover {
    transform: translateY(-5px) scale(1.02);
    border-color: rgba(255, 255, 255, 0.2);
}

.card-icon {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: var(--text-main);
}

.glass-card h3 {
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.glass-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* SaaS Section */
.saas-section {
    background: linear-gradient(to bottom, var(--bg-dark), var(--bg-dark-2));
    padding: 6rem 0;
    overflow: hidden;
}

.saas-mockup {
    border-radius: 12px;
    padding: 1rem;
    min-height: 300px;
    position: relative;
}

.mockup-header {
    display: flex;
    gap: 6px;
    margin-bottom: 1.5rem;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: block;
}

.red {
    background: #ff5f56;
}

.yellow {
    background: #ffbd2e;
}

.green {
    background: #27c93f;
}

.mockup-body {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    height: 240px;
    padding: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.benefit-list {
    margin: 2rem 0;
}

.benefit-list li {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1.1rem;
}

.benefit-list i {
    color: var(--text-main);
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

/* Tools Section */
.tools-section {
    padding: 6rem 0;
}

/* Blog Section */
.blog-section {
    padding: 6rem 0;
    border-top: 1px solid var(--glass-border);
}

.blog-img {
    height: 180px;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    background-size: cover;
    background-position: center;
    transition: filter 0.3s;
    filter: grayscale(100%);
}

.glass-card:hover .blog-img {
    filter: grayscale(20%);
}

.blog-content small {
    display: block;
    color: var(--text-muted);
    font-size: 0.8rem;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.link-arrow {
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Footer */
.main-footer {
    background: var(--bg-dark-2);
    padding: 4rem 0 2rem;
    border-top: 1px solid var(--glass-border);
}

.footer-col h4 {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.footer-col ul li {
    margin-bottom: 0.8rem;
}

.footer-col a {
    color: var(--text-muted);
}

.footer-col a:hover {
    color: var(--text-main);
}

.social-icons {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.footer-bottom {
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Animations */
@keyframes blink {
    50% {
        opacity: 0;
    }
}

.fade-up,
.fade-right,
.fade-left,
.slide-up {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.fade-right {
    transform: translateX(-30px);
}

.fade-left {
    transform: translateX(30px);
}

.in-view {
    opacity: 1;
    transform: translateY(0) translateX(0);
}

.delay-1 {
    transition-delay: 0.1s;
}

.delay-2 {
    transition-delay: 0.2s;
}

.delay-3 {
    transition-delay: 0.3s;
}

.delay-4 {
    transition-delay: 0.4s;
}

/* Tool Cards Interactive */
.tool-card.interactive {
    cursor: pointer;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 200px;
    transition: all 0.3s ease;
}

.tool-card.interactive:hover {
    background: rgba(255, 255, 255, 0.08);
}

.tool-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.tool-icon-lg {
    font-size: 1.8rem;
    color: var(--text-main);
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.4);
}

.action-arrow {
    align-self: flex-end;
    font-size: 1.2rem;
    opacity: 0.5;
    transition: transform 0.3s;
}

.tool-card:hover .action-arrow {
    opacity: 1;
    transform: translateX(5px);
}

/* Responsive Grid Stacking */
/* Global Spacing Utility */
.gap-large {
    gap: 3rem;
}

/* Responsive Grid Stacking */
@media (max-width: 768px) {
    .desktop-only {
        display: none !important;
    }

    .mobile-only {
        display: flex;
    }

    .stack-mobile {
        grid-template-columns: 1fr !important;
    }

    .stack-mobile>* {
        margin-bottom: 2rem;
        /* Add spacing between vertically stacked items */
    }

    .stack-mobile-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .hero-title {
        font-size: 2.8rem;
    }

    .hero-section {
        height: auto;
        min-height: 100vh;
        padding-top: calc(var(--header-height) + 4rem);
        /* Added extra space */
        align-items: flex-start;
        /* Align top to avoid centering if content is long */
        padding-bottom: 4rem;
    }

    .glass-header {
        background: rgba(10, 10, 11, 0.95);
    }

    .gap-large {
        gap: 2rem;
    }
}