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

html, body {
    background-color: #030303;
    color: #e2e8f0;
    font-family: 'Inter', sans-serif;
    overflow-x: hidden;
    width: 100%;
}

#bg-canvas {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 0;
}

#loader {
    position: fixed; 
    inset: 0; 
    z-index: 9999;
    background: #030303;
    display: flex; 
    align-items: center; 
    justify-content: center;
    transition: opacity 0.5s ease-out, visibility 0.5s ease-out;
}

#loader.fade-out { 
    opacity: 0; 
    visibility: hidden; 
}

#loader-bar { 
    height: 2px; 
    background: linear-gradient(90deg, #00e5ff, #00ffa3); 
    transition: all 250ms ease-out; 
    box-shadow: 0 0 15px #00ffa3; 
}

.grid-bg {
    background-image: 
        linear-gradient(to right, rgba(255,255,255,0.025) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255,255,255,0.025) 1px, transparent 1px);
    background-size: 36px 36px;
}

.grad-text {
    background: linear-gradient(135deg, #ffffff 0%, #cbd5e1 35%, #00ffa3 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.grad-cyan {
    background: linear-gradient(135deg, #ffffff 0%, #00e5ff 60%, #00ffa3 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.glass-card {
    background: rgba(10, 10, 15, 0.7);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.glass-card:hover {
    border-color: rgba(0, 255, 163, 0.35);
    box-shadow: 0 10px 30px -10px rgba(0, 255, 163, 0.12);
    transform: translateY(-3px);
}

.scan-line {
    position: absolute; 
    left: 0; 
    width: 100%; 
    height: 2px;
    background: linear-gradient(to right, transparent, rgba(0,255,163,0.7), transparent);
    animation: scan 7s linear infinite;
    opacity: 0.25;
    pointer-events: none;
}

@keyframes scan { 
    0% { top: 0; } 
    100% { top: 100%; } 
}

.reveal {
    opacity: 0; 
    transform: translateY(30px);
    transition: all 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.btn-solid {
    background: linear-gradient(135deg, #00ffa3 0%, #00b372 100%);
    color: #030303; 
    font-weight: 700; 
    font-size: 0.75rem;
    letter-spacing: 0.08em; 
    text-transform: uppercase; 
    padding: 0.85rem 1.75rem;
    border-radius: 8px;
    transition: all 0.25s ease; 
    box-shadow: 0 0 20px rgba(0,255,163,0.25);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-solid:hover { 
    box-shadow: 0 0 30px rgba(0,255,163,0.45); 
    transform: translateY(-2px); 
}

.btn-ghost {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.15); 
    color: #e2e8f0; 
    font-weight: 600; 
    font-size: 0.75rem;
    letter-spacing: 0.08em; 
    text-transform: uppercase; 
    padding: 0.85rem 1.75rem;
    border-radius: 8px;
    backdrop-filter: blur(12px);
    transition: all 0.25s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-ghost:hover { 
    border-color: #00ffa3; 
    color: #00ffa3; 
    background: rgba(0,255,163,0.05);
    transform: translateY(-2px);
}

#drawer {
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

#drawer.open { 
    transform: translateX(0); 
}

.tool-chip { 
    transition: all 0.3s ease; 
    border: 1px solid rgba(255,255,255,0.08); 
    background: rgba(255,255,255,0.02);
    border-radius: 12px;
}

.tool-chip:hover { 
    border-color: rgba(0,255,163,0.3); 
    background: rgba(0,255,163,0.04);
    transform: translateY(-3px);
}

::-webkit-scrollbar { 
    width: 6px; 
}

::-webkit-scrollbar-track { 
    background: #030303; 
}

::-webkit-scrollbar-thumb { 
    background: #1e293b; 
    border-radius: 3px; 
}

::-webkit-scrollbar-thumb:hover { 
    background: #00ffa3; 
}

.mac-frame {
    position: relative;
    background: #18181b;
    border-radius: 12px 12px 0 0;
    padding: 10px 10px 0;
    box-shadow: 0 20px 40px -10px rgba(0,0,0,0.8), 0 0 0 1px rgba(255,255,255,0.1);
}

.mac-screen {
    border-radius: 4px;
    overflow: hidden;
    background: #000;
}

.mac-screen img { 
    width: 100%; 
    height: auto; 
    display: block; 
}

.mac-base {
    background: linear-gradient(to bottom, #27272a, #18181b);
    height: 10px;
    border-radius: 0 0 4px 4px;
    margin: 0 -4px;
}

.phone-wrap {
    position: relative;
    background: #18181b;
    border-radius: 28px;
    padding: 8px;
    box-shadow: 0 20px 40px -10px rgba(0,0,0,0.8), 0 0 0 1px rgba(255,255,255,0.1);
    width: 140px;
    max-width: 42vw;
    flex-shrink: 0;
}

.phone-screen {
    border-radius: 20px;
    overflow: hidden;
    background: #000;
}

.phone-screen img { 
    width: 100%; 
    height: auto; 
    display: block; 
}

.tag-pill {
    font-size: 9px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 3px 8px;
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 20px;
    color: #94a3b8;
    background: rgba(255,255,255,0.03);
    font-family: 'JetBrains Mono', monospace;
    transition: all 0.25s ease;
}

.tag-pill:hover { 
    border-color: #00ffa3; 
    color: #00ffa3; 
    background: rgba(0,255,163,0.06); 
}

.faq-item {
    border-bottom: 1px solid rgba(255,255,255,0.08);
    transition: all 0.25s ease;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.25s ease;
    opacity: 0;
}

.faq-item.active .faq-answer {
    max-height: 300px;
    opacity: 1;
    padding-bottom: 1.25rem;
}

.faq-item.active .faq-icon {
    transform: rotate(180deg);
    color: #00ffa3;
}

.pulse-dot {
    width: 7px; 
    height: 7px;
    background-color: #00ffa3;
    border-radius: 50%;
    box-shadow: 0 0 8px #00ffa3;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { 
        transform: scale(0.95); 
        box-shadow: 0 0 0 0 rgba(0, 255, 163, 0.7); 
    }
    70% { 
        transform: scale(1); 
        box-shadow: 0 0 0 6px rgba(0, 255, 163, 0); 
    }
    100% { 
        transform: scale(0.95); 
        box-shadow: 0 0 0 0 rgba(0, 255, 163, 0); 
    }
}
