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

:root {
    --bg-primary: #0a0a0a;
    --bg-secondary: #111111;
    --bg-card: #161616;
    --accent-primary: #00ff88;
    --accent-secondary: #00aaff;
    --accent-gradient: linear-gradient(135deg, #00ff88 0%, #00aaff 100%);
    --text-primary: #ffffff;
    --text-secondary: #888888;
    --border: #222222;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    overflow-x: hidden;
    cursor: default;
}

/* Custom Cursor */
.cursor {
    width: 20px;
    height: 20px;
    border: 2px solid var(--accent-primary);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 9999;
    transition: all 0.1s ease;
    transform: translate(-50%, -50%);
}

.cursor-follower {
    width: 8px;
    height: 8px;
    background: var(--accent-primary);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 9998;
    transition: all 0.3s ease;
    transform: translate(-50%, -50%);
}

/* Noise Texture Overlay */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.03;
    z-index: 1;
    pointer-events: none;
    background: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIzMDAiIGhlaWdodD0iMzAwIj48ZmlsdGVyIGlkPSJhIj48ZmVUdXJidWxlbmNlIGJhc2VGcmVxdWVuY3k9Ii43NSIgbnVtT2N0YXZlcz0iMTAiLz48ZmVDb2xvck1hdHJpeCB2YWx1ZXM9IjAgMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDEgMCIvPjwvZmlsdGVyPjxyZWN0IHdpZHRoPSIxMDAlIiBoZWlnaHQ9IjEwMCUiIGZpbHRlcj0idXJsKCNhKSIvPjwvc3ZnPg==');
}

/* Navigation */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 100;
    background: rgba(10, 10, 10, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    text-decoration: none;
    color: var(--text-primary);
    position: relative;
    z-index: 2;
}

.logo span {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-links {
    display: flex;
    gap: 3rem;
    align-items: center;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

.nav-links a:hover {
    color: var(--text-primary);
}

.nav-cta {
    background: var(--accent-gradient);
    padding: 0.75rem 2rem;
    border-radius: 100px;
    color: black !important;
    font-weight: 600 !important;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.nav-cta::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.nav-cta:hover::before {
    width: 300px;
    height: 300px;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 2rem;
    padding-top: 10rem;
    padding-bottom: 5rem;
    background: linear-gradient(to bottom, #0a0a0a 0%, #001a0a 50%, #0a0a0a 100%);
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    perspective: 1000px;
}

/* 3D Grid Tunnel Effect */
.grid-tunnel {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    perspective: 1000px;
    transform-style: preserve-3d;
}

.tunnel-face {
    position: absolute;
    background:
        linear-gradient(rgba(0, 255, 136, 0.6) 2px, transparent 2px),
        linear-gradient(90deg, rgba(0, 255, 136, 0.6) 2px, transparent 2px);
    background-size: 60px 60px;
    animation: tunnel-flow 20s linear infinite;
}

/* Floor */
.tunnel-floor {
    bottom: 0;
    left: 50%;
    width: 225%;
    height: 100%;
    transform: translateX(-50%) rotateX(90deg) translateZ(-40vh);
    transform-origin: center bottom;
}

/* Ceiling */
.tunnel-ceiling {
    top: 0;
    left: 50%;
    width: 225%;
    height: 100%;
    transform: translateX(-50%) rotateX(-90deg) translateZ(-40vh);
    transform-origin: center top;
}

/* Left Wall */
.tunnel-left {
    left: 0;
    top: -22%;
    width: 100%;
    height: 145%;
    transform: rotateY(90deg) translateZ(-40vw);
    transform-origin: left center;
}

/* Right Wall */
.tunnel-right {
    right: 0;
    top: -22%;
    width: 100%;
    height: 145%;
    transform: rotateY(-90deg) translateZ(-40vw);
    transform-origin: right center;
}

@keyframes tunnel-flow {
    0% {
        background-position: 0 0;
    }

    100% {
        background-position: 60px 60px;
    }
}

/* Tunnel Depth Effect */
.tunnel-face::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to center,
            transparent 0%,
            rgba(0, 0, 0, 0.3) 70%,
            rgba(0, 0, 0, 0.8) 100%);
}

/* Center Glow Effect */
.grid-center-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 400px;
    height: 400px;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle,
            rgba(0, 255, 136, 0.15) 0%,
            rgba(0, 255, 136, 0.05) 40%,
            transparent 70%);
    animation: glow-pulse 4s ease-in-out infinite;
}

@keyframes glow-pulse {

    0%,
    100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.8;
    }

    50% {
        transform: translate(-50%, -50%) scale(1.1);
        opacity: 1;
    }
}

.hero-content {
    max-width: 1200px;
    text-align: center;
    z-index: 2;
    position: relative;
}

.hero-tag {
    display: inline-block;
    padding: 0.5rem 1.5rem;
    background: rgb(0, 223, 112);
    border: 1px solid rgba(0, 255, 136, 0.3);
    border-radius: 100px;
    font-size: 0.875rem;
    margin-bottom: 2rem;
    animation: pulse-glow 2s ease-in-out infinite;
}

@keyframes pulse-glow {

    0%,
    100% {
        box-shadow: 0 0 20px rgba(0, 255, 136, 0.3);
    }

    50% {
        box-shadow: 0 0 40px rgba(0, 255, 136, 0.5);
    }
}

.hero h1 {
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 800;
    line-height: 1;
    margin-bottom: 2rem;
    letter-spacing: -2px;
    max-width: 1000px;
}

.gradient-text {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.hero-subtitle {
    font-size: 1.5rem;
    color: #d0d0d0;
    /* improved contrast for readability */
    margin-bottom: 3rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.5;
}

.hero-cta-group {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.2rem;
    margin-bottom: 1.5rem;
}

.primary-cta {
    background: var(--accent-gradient);
    color: #111;
    /* use dark text for better contrast on light gradient */
    padding: 1.25rem 3rem;
    border-radius: 100px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.125rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 0 40px rgba(0, 255, 136, 0.5);
    width: 100%;
    font-size: 1.25rem;
    padding: 1.2rem 2.5rem;
}

.primary-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 60px rgba(0, 255, 136, 0.7);
    color: #000;
    /* ensure text stays readable on hover */
}

.secondary-cta {
    background: transparent;
    color: var(--text-primary);
    padding: 1.25rem 3rem;
    border: 2px solid var(--border);
    border-radius: 100px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.125rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.secondary-cta::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 100%;
    background: rgba(255, 255, 255, 0.05);
    transform: translate(-50%, -50%);
    transition: width 0.3s ease;
}

.secondary-cta:hover::before {
    width: 100%;
}

.secondary-cta:hover {
    border-color: var(--accent-primary);
    color: var(--accent-primary);
}

/* Section Headers */
.section-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 5rem;
}

.section-tag {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: rgba(0, 170, 255, 0.1);
    border: 1px solid rgba(0, 170, 255, 0.3);
    border-radius: 100px;
    font-size: 0.875rem;
    margin-bottom: 1.5rem;
    color: var(--accent-secondary);
}

.section-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    margin-bottom: 1.5rem;
    letter-spacing: -1px;
}

.section-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Hero Demo Section */
.hero-demo {
    max-width: 800px;
    margin: 3rem auto;
    position: relative;
    z-index: 2;
}

.hero-demo .terminal {
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    position: relative;
    margin-bottom: 2rem;
}

.hero-demo .terminal-body {
    padding: 1.5rem;
    font-family: 'Courier New', monospace;
    text-align: left;
    height: 350px;
    overflow-y: auto;
    position: relative;
}

.hero-demo .demo-stats {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.hero-demo .demo-stat {
    text-align: center;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s ease;
    min-width: 120px;
}

.hero-demo .demo-stat-value {
    display: block;
    font-size: 2rem;
    font-weight: 800;
    background: var(--accent-gradient);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.25rem;
    transition: all 0.5s ease;
}

.hero-demo .demo-stat-label {
    color: var(--text-secondary);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Pricing Section */
.pricing {
    padding: 8rem 2rem;
    background: var(--bg-primary);
}

.pricing-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.pricing-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 3rem;
    position: relative;
    transition: all 0.3s ease;
}

.pricing-card.featured {
    border-color: var(--accent-primary);
    transform: scale(1.05);
}

.pricing-card.featured::before {
    content: 'MOST POPULAR';
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent-gradient);
    color: var(--bg-primary);
    padding: 0.5rem 1.5rem;
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 1px;
}

.pricing-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.pricing-card.featured:hover {
    transform: scale(1.05) translateY(-10px);
}

.pricing-header {
    text-align: center;
    margin-bottom: 2rem;
}

.plan-name {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.plan-price {
    font-size: 3.5rem;
    font-weight: 800;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.plan-period {
    font-size: 1rem;
    color: var(--text-secondary);
}

.pricing-features {
    list-style: none;
    margin: 2rem 0;
}

.pricing-features li {
    padding: 1rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    gap: 1rem;
}

.pricing-features li:last-child {
    border-bottom: none;
}

.check-icon {
    color: var(--accent-primary);
    flex-shrink: 0;
}

.pricing-cta {
    width: 100%;
    padding: 1rem;
    background: transparent;
    border: 2px solid var(--border);
    border-radius: 100px;
    color: var(--text-primary);
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.pricing-card.featured .pricing-cta {
    background: var(--accent-gradient);
    border: none;
    color: var(--bg-primary);
}

.pricing-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 255, 136, 0.3);
}

/* CTA Section */
.final-cta {
    padding: 8rem 2rem;
    background: var(--bg-secondary);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.final-cta::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(0, 255, 136, 0.1) 0%, transparent 70%);
    animation: rotate 30s linear infinite;
}

@keyframes rotate {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.final-cta-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
}

.final-cta h2 {
    font-size: clamp(3rem, 6vw, 5rem);
    font-weight: 800;
    margin-bottom: 2rem;
    letter-spacing: -2px;
}

/* Contact Modal */
.contact-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 1000;
    padding: 2rem;
}

.contact-modal-content {
    max-width: 600px;
    margin: 5% auto;
    background: var(--bg-card);
    border-radius: 24px;
    padding: 3rem;
    position: relative;
}

.close-contact-btn {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 2rem;
    cursor: pointer;
}

/* Form Elements */
.assessment-form-label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
}

.assessment-form-input,
.assessment-form-select,
.assessment-form-textarea {
    width: 100%;
    padding: 1rem;
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: 12px;
    color: var(--text-primary);
    font-size: 1rem;
}

.assessment-form-textarea {
    min-height: 100px;
    resize: vertical;
}

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

/* Floating Stats */
.floating-stats {
    position: absolute;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.stat-bubble {
    position: absolute;
    background: rgba(22, 22, 22, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 1.5rem;
    animation: float-bubble 20s ease-in-out infinite;
}

@keyframes float-bubble {

    0%,
    100% {
        transform: translateY(0) translateX(0) rotate(0deg);
    }

    25% {
        transform: translateY(-20px) translateX(10px) rotate(1deg);
    }

    50% {
        transform: translateY(10px) translateX(-5px) rotate(-1deg);
    }

    75% {
        transform: translateY(-10px) translateX(-10px) rotate(0.5deg);
    }
}

.stat-bubble:nth-child(1) {
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.stat-bubble:nth-child(2) {
    top: 15%;
    right: 15%;
    animation-delay: 2s;
}

.stat-bubble:nth-child(3) {
    bottom: 25%;
    left: 8%;
    animation-delay: 4s;
}

.stat-bubble:nth-child(4) {
    bottom: 20%;
    right: 10%;
    animation-delay: 6s;
}

.stat-value {
    font-size: 2rem;
    font-weight: 800;
    color: var(--accent-primary);
    display: block;
    margin-bottom: 0.25rem;
}

.stat-label {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

/* Features Section */
.features {
    padding: 8rem 2rem;
    background: var(--bg-secondary);
    position: relative;
}

.section-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 5rem;
}

.section-tag {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: rgba(0, 170, 255, 0.1);
    border: 1px solid rgba(0, 170, 255, 0.3);
    border-radius: 100px;
    font-size: 0.875rem;
    margin-bottom: 1.5rem;
    color: var(--accent-secondary);
}

.section-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    margin-bottom: 1.5rem;
    letter-spacing: -1px;
}

.section-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.features-flex {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    max-width: 900px;
    margin: 0 auto;
}

.features-flex .feature-card {
    flex: 1 1 45%;
    max-width: 48%;
    min-width: 280px;
}

@media (max-width: 900px) {
    .features-flex {
        flex-direction: column;
        gap: 2rem;
    }

    .features-flex .feature-card {
        max-width: 100%;
        flex-basis: 100%;
    }
}

.features-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
}

.features-grid .feature-card {
    flex: 1 1 45%;
    max-width: 48%;
}

@media (max-width: 900px) {
    .features-grid {
        flex-direction: column;
        gap: 2rem;
    }

    .features-grid .feature-card {
        max-width: 100%;
        flex-basis: 100%;
    }
}

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 3rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at var(--mouse-x) var(--mouse-y), rgba(0, 255, 136, 0.1) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.feature-card:hover::before {
    opacity: 1;
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: rgba(0, 255, 136, 0.3);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

.feature-icon {
    min-width: 60px;
    max-width: 60px;
    min-height: 60px;
    max-height: 60px;
    background: var(--accent-gradient);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.feature-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.feature-description {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Bento Grid Section */
.bento {
    padding: 8rem 2rem;
    background: var(--bg-primary);
}

.bento-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(3, 200px);
    gap: 1.5rem;
}

.bento-item {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 2rem;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.bento-item:hover {
    transform: scale(1.02);
    border-color: rgba(0, 255, 136, 0.3);
    z-index: 10;
}

.bento-large {
    grid-column: span 2;
    grid-row: span 2;
}

.bento-wide {
    grid-column: span 2;
}

.bento-tall {
    grid-row: span 2;
}

.bento-content {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.bento-label {
    font-size: 0.875rem;
    color: var(--accent-primary);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
}

.bento-value {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1;
}

.bento-chart {
    width: 100%;
    height: 100px;
    margin-top: 1rem;
    position: relative;
}

/* Interactive Demo Section */
.demo {
    padding: 8rem 2rem;
    background: var(--bg-secondary);
    text-align: center;
    position: relative;
}

.demo-container {
    max-width: 1000px;
    margin: 0 auto;
}

.terminal {
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
    margin-top: 3rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    position: relative;
}

.terminal::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, transparent 0%, rgba(0, 255, 136, 0.03) 100%);
    pointer-events: none;
}

.terminal-header {
    background: var(--bg-card);
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border-bottom: 1px solid var(--border);
    position: relative;
}

.terminal-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #ff5f56;
}

.terminal-dot:nth-child(2) {
    background: #ffbd2e;
}

.terminal-dot:nth-child(3) {
    background: #27c93f;
}

.terminal-title {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.terminal-body {
    padding: 2rem;
    font-family: 'Courier New', monospace;
    text-align: left;
    min-height: 400px;
    max-height: 500px;
    overflow-y: auto;
    position: relative;
}

.terminal-body::-webkit-scrollbar {
    width: 8px;
}

.terminal-body::-webkit-scrollbar-track {
    background: var(--bg-primary);
}

.terminal-body::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 4px;
}

.terminal-line {
    margin-bottom: 0.75rem;
    opacity: 0;
    animation: type-line 0.5s ease forwards;
    position: relative;
}

@keyframes type-line {
    to {
        opacity: 1;
        transform: translateX(0);
    }

    from {
        opacity: 0;
        transform: translateX(-10px);
    }
}

.terminal-prompt {
    color: var(--accent-primary);
    font-weight: bold;
}

.terminal-command {
    color: var(--text-primary);
}

.terminal-output {
    color: var(--text-secondary);
    margin-left: 1.5rem;
    display: block;
}

.terminal-success {
    color: var(--accent-primary);
}

.terminal-highlight {
    color: var(--accent-secondary);
    font-weight: bold;
}

.terminal-progress {
    display: inline-block;
    width: 200px;
    height: 8px;
    background: var(--border);
    border-radius: 4px;
    margin-left: 1rem;
    position: relative;
    overflow: hidden;
}

.terminal-progress-bar {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background: var(--accent-gradient);
    border-radius: 4px;
    animation: progress-fill 2s ease-out forwards;
}

@keyframes progress-fill {
    from {
        width: 0;
    }
}

.terminal-cursor {
    display: inline-block;
    width: 10px;
    height: 20px;
    background: var(--accent-primary);
    animation: cursor-blink 1s infinite;
    vertical-align: text-bottom;
}

@keyframes cursor-blink {

    0%,
    50% {
        opacity: 1;
    }

    51%,
    100% {
        opacity: 0;
    }
}

/* Demo Stats */
.demo-stats {
    display: flex;
    justify-content: center;
    gap: 4rem;
    margin-top: 3rem;
}

.demo-stat {
    text-align: center;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s ease;
}

.demo-stat.active {
    opacity: 1;
    transform: translateY(0);
}

.demo-stat-value {
    display: block;
    font-size: 3rem;
    font-weight: 800;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.5rem;
    transition: all 0.5s ease;
}

.demo-stat-label {
    color: var(--text-secondary);
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Hero Demo Section */
.hero-demo {
    max-width: 800px;
    margin: 3rem auto;
    position: relative;
    z-index: 2;
}

.hero-demo .terminal {
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    position: relative;
    margin-bottom: 2rem;
}

.hero-demo .terminal-body {
    padding: 1.5rem;
    font-family: 'Courier New', monospace;
    text-align: left;
    height: 350px;
    overflow-y: auto;
    position: relative;
}

.hero-demo .demo-stats {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.hero-demo .demo-stat {
    text-align: center;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s ease;
    min-width: 120px;
}

.hero-demo .demo-stat-value {
    display: block;
    font-size: 2rem;
    font-weight: 800;
    background: var(--accent-gradient);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.25rem;
    transition: all 0.5s ease;
}

.hero-demo .demo-stat-label {
    color: var(--text-secondary);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Pricing Section */
.pricing {
    padding: 8rem 2rem;
    background: var(--bg-primary);
}

.pricing-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.pricing-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 3rem;
    position: relative;
    transition: all 0.3s ease;
}

.pricing-card.featured {
    border-color: var(--accent-primary);
    transform: scale(1.05);
}

.pricing-card.featured::before {
    content: 'MOST POPULAR';
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent-gradient);
    color: var(--bg-primary);
    padding: 0.5rem 1.5rem;
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 1px;
}

.pricing-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.pricing-card.featured:hover {
    transform: scale(1.05) translateY(-10px);
}

.pricing-header {
    text-align: center;
    margin-bottom: 2rem;
}

.plan-name {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.plan-price {
    font-size: 3.5rem;
    font-weight: 800;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.plan-period {
    font-size: 1rem;
    color: var(--text-secondary);
}

.pricing-features {
    list-style: none;
    margin: 2rem 0;
}

.pricing-features li {
    padding: 1rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    gap: 1rem;
}

.pricing-features li:last-child {
    border-bottom: none;
}

.check-icon {
    color: var(--accent-primary);
    flex-shrink: 0;
}

.pricing-cta {
    width: 100%;
    padding: 1rem;
    background: transparent;
    border: 2px solid var(--border);
    border-radius: 100px;
    color: var(--text-primary);
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.pricing-card.featured .pricing-cta {
    background: var(--accent-gradient);
    border: none;
    color: var(--bg-primary);
}

.pricing-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 255, 136, 0.3);
}

/* CTA Section */
.final-cta {
    padding: 8rem 2rem;
    background: var(--bg-secondary);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.final-cta::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(0, 255, 136, 0.1) 0%, transparent 70%);
    animation: rotate 30s linear infinite;
}

@keyframes rotate {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.final-cta-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
}

.final-cta h2 {
    font-size: clamp(3rem, 6vw, 5rem);
    font-weight: 800;
    margin-bottom: 2rem;
    letter-spacing: -2px;
}

/* Footer */
footer {
    background: var(--bg-primary);
    padding: 4rem 2rem 2rem;
    border-top: 1px solid var(--border);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 3rem;
}

.footer-brand h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.footer-brand p {
    color: var(--text-secondary);
    line-height: 1.6;
}

.footer-column h4 {
    font-size: 1rem;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.footer-column ul {
    list-style: none;
}

.footer-column a {
    color: var(--text-secondary);
    text-decoration: none;
    display: block;
    padding: 0.5rem 0;
    transition: color 0.3s ease;
}

.footer-column a:hover {
    color: var(--accent-primary);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
    color: var(--text-secondary);
}

/* Responsive */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .hero h1 {
        font-size: 3rem;
    }

    .bento-grid {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
    }

    .bento-item {
        grid-column: span 1 !important;
        grid-row: span 1 !important;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .floating-stats {
        display: none;
    }

    .hero-demo .demo-stats {
        gap: 1rem;
    }

    .hero-demo .demo-stat-value {
        font-size: 1.5rem;
    }

    .hero-demo .terminal-body {
        min-height: 200px;
        max-height: 250px;
        padding: 1rem;
    }
}

@media (max-width: 900px) {
    .features-flex {
        flex-direction: column;
        gap: 2rem;
    }

    .features-flex .feature-card {
        max-width: 100%;
        flex-basis: 100%;
    }

    .features-grid {
        flex-direction: column;
        gap: 2rem;
    }

    .features-grid .feature-card {
        max-width: 100%;
        flex-basis: 100%;
    }
}