/* =============================
   VARIABLES & FONTS
============================= */
:root {
    --bg-color: #050508;
    --text-main: #ffffff;
    --text-muted: #8a8d9a;
    --primary: #00e5ff;
    --primary-glow: rgba(0, 229, 255, 0.4);
    --secondary: #0066ff;
    --glass-bg: rgba(15, 17, 26, 0.6);
    --glass-border: rgba(255, 255, 255, 0.08);
}

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

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-main);
    background-color: var(--bg-color);
    overflow-x: hidden;
    line-height: 1.6;
}

h1, h2, h3, .logo {
    font-family: 'Outfit', sans-serif;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

/* =============================
   BACKGROUND IMAGES & LAYERS
============================= */
.bg-layer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-image: linear-gradient(to bottom, rgba(5,5,8,0.8), var(--bg-color)), url('hero_bg.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    z-index: -1;
}

/* =============================
   UTILITIES
============================= */
.glass {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
}

.text-gradient {
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.highlight {
    color: var(--primary);
}

.section {
    padding: 100px 5%;
    max-width: 1400px;
    margin: 0 auto;
}

/* =============================
   BUTTONS
============================= */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    font-family: 'Outfit', sans-serif;
}

.btn.small {
    padding: 8px 16px;
    font-size: 0.9rem;
}

.btn.large {
    padding: 16px 36px;
    font-size: 1.1rem;
}

.btn-primary {
    background: var(--primary);
    color: #000;
}

.btn-primary:hover {
    background: #fff;
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--glass-border);
    color: var(--text-main);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--text-muted);
}

.btn-glow {
    background: var(--secondary);
    color: #fff;
    box-shadow: 0 0 20px var(--primary-glow);
}

.btn-glow:hover {
    background: var(--primary);
    box-shadow: 0 0 30px var(--primary-glow);
    transform: translateY(-2px);
}

/* =============================
   NAVBAR
============================= */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 5%;
    z-index: 100;
    border-radius: 0 0 16px 16px;
}

.logo {
    font-size: 1.5rem;
    font-weight: 900;
    letter-spacing: -0.5px;
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    font-size: 0.95rem;
    color: var(--text-muted);
    font-weight: 500;
    transition: 0.3s;
}

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

/* =============================
   HERO SECTION
============================= */
.hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
    min-height: 100vh;
    padding-top: 150px;
}

.badge {
    display: inline-block;
    padding: 6px 12px;
    background: rgba(0, 229, 255, 0.1);
    border: 1px solid var(--primary-glow);
    color: var(--primary);
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 20px;
}

.hero-title {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 25px;
    letter-spacing: -1px;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: var(--text-muted);
    margin-bottom: 40px;
    max-width: 500px;
}

.hero-actions {
    display: flex;
    gap: 15px;
}

/* =============================
   TERMINAL MOCKUP
============================= */
.glass-panel {
    background: rgba(10, 12, 16, 0.7);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
    font-family: 'Courier New', Courier, monospace;
}

.panel-header {
    background: rgba(255,255,255,0.05);
    padding: 12px 15px;
    display: flex;
    gap: 8px;
    border-bottom: 1px solid var(--glass-border);
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.dot.red { background: #ff5f56; }
.dot.yellow { background: #ffbd2e; }
.dot.green { background: #27c93f; }

.panel-body {
    padding: 25px 20px;
    color: #a5b1c2;
    font-size: 0.95rem;
}

.code-line {
    margin-bottom: 12px;
    opacity: 0;
    animation: typeLine 0.1s forwards;
}

.code-line span {
    color: var(--primary);
    font-weight: bold;
}

.code-line:nth-child(2) { animation-delay: 1s; }
.code-line:nth-child(3) { animation-delay: 2.5s; }
.code-line:nth-child(4) { animation-delay: 3.5s; }

.progress-bar-container {
    width: 100%;
    height: 6px;
    background: rgba(255,255,255,0.1);
    border-radius: 3px;
    margin-top: 25px;
    overflow: hidden;
    opacity: 0;
    animation: typeLine 0.1s forwards 4s;
}

.progress-bar {
    height: 100%;
    width: 0%;
    background: var(--primary);
    box-shadow: 0 0 10px var(--primary);
}
.progress-bar.init {
    animation: fillBar 2s forwards 4.2s ease-out;
}

/* =============================
   FEATURES SECTION
============================= */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 60px;
}

.feature-card {
    padding: 40px 30px;
    border-radius: 16px;
    transition: transform 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-10px);
    border-color: rgba(255,255,255,0.2);
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.feature-card p {
    color: var(--text-muted);
}

/* =============================
   B2B SECTION
============================= */
.enterprise-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 60px;
    border-radius: 24px;
    border: 1px solid var(--primary-glow);
    background: linear-gradient(135deg, rgba(15,17,26,0.8), rgba(0, 102, 255, 0.1));
}

.enterprise-content {
    max-width: 600px;
}

.enterprise-content h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.enterprise-content p {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 30px;
}

.check-list li {
    margin-bottom: 12px;
    font-weight: 500;
}

/* =============================
   DOWNLOAD / CTA
============================= */
.download.center {
    text-align: center;
    padding: 120px 5%;
}

.download h2 {
    font-size: 3rem;
    margin-bottom: 20px;
}

.download p {
    color: var(--text-muted);
    font-size: 1.2rem;
    margin-bottom: 40px;
}

.download-box {
    display: inline-block;
}

.download-box p {
    font-size: 0.9rem;
    margin-bottom: 15px;
}

/* =============================
   FOOTER
============================= */
.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 30px 5%;
    border-top: 1px solid var(--glass-border);
    border-radius: 16px 16px 0 0;
}

.footer-content p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* =============================
   NEW SECTIONS (BENCHMARKS, HOW IT WORKS, FAQ)
============================= */
/* Particles */
#particles-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

/* Benchmarks */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 50px;
}
.stat-card {
    padding: 40px 20px;
    text-align: center;
    border-radius: 16px;
    border: 1px solid var(--primary-glow);
    background: linear-gradient(180deg, rgba(15,17,26,0.8), rgba(0,229,255,0.05));
    transition: transform 0.3s ease, box-shadow 0.3s;
}
.stat-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px var(--primary-glow);
}
.stat-number {
    font-size: 4rem;
    font-weight: 900;
    font-family: 'Outfit', sans-serif;
    color: var(--primary);
    display: inline-block;
}
.stat-unit {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary);
    display: inline-block;
}

/* How It Works */
.steps-container {
    display: flex;
    flex-direction: column;
    gap: 40px;
    margin-top: 50px;
    position: relative;
}
.steps-container::before {
    content: '';
    position: absolute;
    left: 40px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, var(--primary), transparent);
    z-index: 0;
}
.step {
    display: flex;
    gap: 30px;
    align-items: center;
    z-index: 1;
}
.step-num {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--primary);
    background: rgba(10,12,16,0.9);
    border: 2px solid var(--primary);
    flex-shrink: 0;
}
.step-content {
    padding: 30px;
    border-radius: 16px;
    flex-grow: 1;
}
.step-content h3 {
    margin-bottom: 10px;
    font-size: 1.4rem;
}

/* FAQ */
.accordion-container {
    max-width: 800px;
    margin: 50px auto 0;
    display: flex;
    flex-direction: column;
    gap: 15px;
}
.accordion-item {
    border-radius: 12px;
    overflow: hidden;
}
.accordion-header {
    width: 100%;
    padding: 20px 25px;
    background: transparent;
    border: none;
    color: var(--text-main);
    font-size: 1.1rem;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    text-align: left;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: background 0.3s;
}
.accordion-header:hover {
    background: rgba(255,255,255,0.05);
}
.accordion-header .icon {
    font-size: 1.5rem;
    color: var(--primary);
    transition: transform 0.3s;
}
.accordion-header.active .icon {
    transform: rotate(45deg);
}
.accordion-content {
    padding: 0 25px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}
.accordion-header.active + .accordion-content {
    padding: 0 25px 20px;
    max-height: 200px;
    border-top: 1px solid var(--glass-border);
}

/* =============================
   ANIMATIONS
============================= */
@keyframes typeLine {
    to { opacity: 1; }
}

@keyframes fillBar {
    to { width: 100%; }
}

.pulse {
    animation: pulseGlow 2s infinite;
}

@keyframes pulseGlow {
    0% { box-shadow: 0 0 0 0 rgba(0, 229, 255, 0.4); }
    70% { box-shadow: 0 0 0 15px rgba(0, 229, 255, 0); }
    100% { box-shadow: 0 0 0 0 rgba(0, 229, 255, 0); }
}

/* Scroll Animations */
.fade-up {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 { transition-delay: 0.15s; }
.delay-2 { transition-delay: 0.3s; }

/* Responsive */
@media (max-width: 900px) {
    .hero {
        grid-template-columns: 1fr;
        padding-top: 120px;
    }
    .hero-title { font-size: 3rem; }
    .enterprise-container {
        flex-direction: column;
        text-align: center;
        gap: 30px;
        padding: 40px 20px;
    }
    .check-list li { text-align: left; }
    .nav-links { display: none; }
    
    .steps-container::before {
        display: none;
    }
    .step {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    .stat-number {
        font-size: 3rem;
    }
}
