@import url('https://fonts.googleapis.com/css2?family=Space+Mono:wght@400;700&family=Work+Sans:wght@400;600;700&display=swap');

:root {
    --font-sans: 'Work Sans', sans-serif;
    --font-mono: 'Space Mono', monospace;
    --tech-blue: #00BFFF;
    --text-primary: #EAEAEA;
    --text-muted: #888;
    --background-primary: #0A0A0A;
    --background-secondary: #1A1A1A;
    --border-color: #2A2A2A;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    background-color: var(--background-primary);
    color: var(--text-primary);
    font-family: var(--font-sans);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    transition: background-color 0.3s ease;
    overflow-x: hidden;
}

main.content-wrapper {
    position: relative;
    z-index: 1;
}

/* Wireframe Mode */
body.wireframe-mode {
    background-color: #000;
    color: #0F0;
    font-family: 'Roboto Mono', 'Space Mono', monospace;
}

body.wireframe-mode .reveal {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

body.wireframe-mode nav {
    border: 1px solid #0F0 !important;
    background: #000 !important;
}

body.wireframe-mode section,
body.wireframe-mode .grid,
body.wireframe-mode .feature-box,
body.wireframe-mode .funnel-container,
body.wireframe-mode .code-block {
    border: 1px solid #0F0 !important;
    background: #000 !important;
}

body.wireframe-mode h1, 
body.wireframe-mode h2, 
body.wireframe-mode h3 {
    color: #0F0 !important;
}

body.wireframe-mode .mono-tag {
    color: #0F0;
    border-color: #0F0;
}

body.wireframe-mode .cta-button,
body.wireframe-mode .feature-link {
    background: #0F0 !important;
    color: #000 !important;
}

body.wireframe-mode .feature-icon svg {
    stroke: #0F0 !important;
}

/* Canvas Background */
#interactive-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    opacity: 0.5;
    transition: opacity 0.5s ease;
    pointer-events: none;
}

body.wireframe-mode #interactive-bg {
    opacity: 1;
}

/* Navigation */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 5%;
    background: rgba(10, 10, 10, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    position: fixed;
    width: 90%;
    top: 0;
    z-index: 10;
}

/* Sections */
section {
    max-width: 1000px;
    margin: 0 auto;
    padding: 8rem 2rem;
    border-bottom: 1px solid var(--border-color);
}

section:first-of-type {
    padding-top: 12rem;
}

section:last-of-type {
    border-bottom: none;
}

/* Grid */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    align-items: start;
}

/* Typography */
h1, h2 {
    font-weight: 700;
    letter-spacing: -0.02em;
}

h1 {
    font-size: 3rem;
    margin-top: 0.5rem;
    margin-bottom: 1rem;
    line-height: 1.2;
}

h2 {
    font-size: 2rem;
    margin-top: 0.5rem;
    margin-bottom: 1rem;
}

h3 {
    font-size: 1.3rem;
    margin-top: 0;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

p {
    line-height: 1.7;
    color: var(--text-muted);
    max-width: 600px;
}

.mono-tag {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--tech-blue);
}

/* Funnel Container */
.funnel-container {
    background: var(--background-secondary);
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.funnel-step {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: var(--font-mono);
}

.funnel-bar {
    width: 100%;
    height: 8px;
    background: #333;
    border-radius: 4px;
    margin-top: 0.5rem;
    overflow: hidden;
}

.funnel-fill {
    height: 100%;
    background: var(--tech-blue);
    border-radius: 4px;
    box-shadow: 0 0 10px var(--tech-blue);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 1s ease 0.5s;
}

.reveal.active .funnel-fill {
    transform: scaleX(1);
}

/* Feature Boxes */
.feature-link {
    text-decoration: none !important;
    color: inherit;
    display: block;
    perspective: 1000px;
}

.feature-box {
    background: var(--background-secondary);
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    transition: transform 0.2s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    height: 100%;
    transform-style: preserve-3d;
}

.feature-box:hover {
    box-shadow: 0 10px 30px rgba(0, 191, 255, 0.15);
    border-color: var(--tech-blue);
}

.feature-icon {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    display: block;
    color: var(--tech-blue);
}

.feature-icon svg {
    stroke: var(--tech-blue);
    transition: transform 0.3s ease;
}

.feature-box:hover .feature-icon svg {
    transform: scale(1.1) rotate(5deg);
}

/* Code Block */
.code-block {
    background: #111;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #333;
}

.code-block pre {
    margin: 0;
    overflow-x: auto;
}

.code-block code {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    white-space: pre-wrap; /* To respect newlines */
}

/* CTA Button */
.cta-button {
    background: #fff;
    color: #000;
    text-decoration: none;
    padding: 16px 32px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    display: inline-block;
}

.cta-button:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 20px rgba(255, 255, 255, 0.3);
}

/* Mode Switch */
.mode-switch {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    background: rgba(26, 26, 26, 0.9);
    backdrop-filter: blur(10px);
    border-radius: 50px;
    border: 1px solid var(--border-color);
    z-index: 100;
    overflow: hidden;
}

.mode-btn {
    padding: 0.8rem 1.5rem;
    font-family: var(--font-sans);
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.mode-btn.active {
    background: var(--tech-blue);
    color: #000;
}

.mode-btn:not(.active):hover {
    background: rgba(0, 191, 255, 0.1);
}

/* Reveal on Scroll Animation */
.reveal {
    position: relative;
    transform: translateY(100px);
    opacity: 0;
    transition: all 1s ease;
}

.reveal.active {
    transform: translateY(0);
    opacity: 1;
}

.delay-1 {
    transition-delay: 0.2s;
}

.delay-2 {
    transition-delay: 0.4s;
}

.delay-3 {
    transition-delay: 0.6s;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    h1 {
        font-size: 2.2rem;
    }

    h2 {
        font-size: 1.8rem;
    }

    section {
        padding: 5rem 1.5rem;
    }

    section:first-of-type {
        padding-top: 10rem;
    }

    .grid {
        gap: 1.5rem;
        grid-template-columns: 1fr;
    }

    nav {
        padding: 1rem 5%;
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }

    .mode-switch {
        bottom: 1rem;
    }

    .mode-btn {
        padding: 0.7rem 1.2rem;
        font-size: 0.85rem;
    }

    .code-block {
        font-size: 0.7rem;
        padding: 15px;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 1.8rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    h3 {
        font-size: 1.1rem;
    }

    section {
        padding: 4rem 1rem;
    }

    section:first-of-type {
        padding-top: 8rem;
    }

    .feature-box {
        padding: 1.25rem;
    }

    p {
        font-size: 0.95rem;
    }
}

/* New Utility Classes */
.font-bold {
    font-weight: 700;
}

.no-margin {
    margin: 0;
}

.text-tech-blue {
    color: var(--tech-blue);
}

.unstyled-list {
    list-style: none;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.mb-10px {
    margin-bottom: 10px;
}

.funnel-analytics-header {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    margin-bottom: 1rem;
    color: #fff;
}

.text-xs {
    font-size: 0.8rem;
}

.mt-1-5rem {
    margin-top: 1.5rem;
}

.w-full {
    width: 100%;
}

.w-65-percent {
    width: 65%;
}

.w-35-percent {
    width: 35%;
}

.gap-1-5rem {
    gap: 1.5rem;
}

.mt-2rem {
    margin-top: 2rem;
}

.text-sm {
    font-size: 0.9rem;
}

.mt-4rem {
    margin-top: 4rem;
}

.text-center {
    text-align: center;
}

.text-xl {
    font-size: 1.5rem;
}

.mb-2rem {
    margin-bottom: 2rem;
}

.text-gray {
    color: #888;
}

.text-purple {
    color: #c678dd;
}

.text-blue-light {
    color: #61afef;
}

.text-green-light {
    color: #d19a66;
}

.text-red {
    color: #e06c75;
}

.text-green-dark {
    color: #98c379;
}

/* Blinking Cursor */
.blinking-cursor {
    animation: blink 1s step-end infinite;
}

@keyframes blink {
    from, to {
        opacity: 1;
    }
    50% {
        opacity: 0;
    }
}
