body {
    background-color: #09090b;
    color: #f8fafc;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

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

.ambient-glow-1 {
    position: absolute;
    top: -10%;
    left: -10%;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.05) 0%, transparent 60%);
    pointer-events: none;
    z-index: -1;
}

.ambient-glow-2 {
    position: absolute;
    bottom: -10%;
    right: -10%;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.03) 0%, transparent 60%);
    pointer-events: none;
    z-index: -1;
}

.glass-nav {
    background: rgba(9, 9, 11, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.card {
    background: linear-gradient(145deg, rgba(24, 24, 27, 0.9) 0%, rgba(9, 9, 11, 1) 100%);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.5);
    transform: translateZ(0);
}

.card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(800px circle at var(--mouse-x) var(--mouse-y), rgba(255, 255, 255, 0.05), transparent 40%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    z-index: 1;
}

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

.card:hover {
    transform: translateY(-4px) translateZ(0);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 20px 40px -12px rgba(0, 0, 0, 0.7), 0 0 20px -5px rgba(255, 255, 255, 0.05);
}

.card-content {
    position: relative;
    z-index: 2;
}

.btn-primary {
    background: #f8fafc;
    color: #09090b;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    padding: 0.875rem 2rem;
    border-radius: 12px;
    transition: all 0.2s ease;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.1);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 30px rgba(255, 255, 255, 0.25);
    background: #ffffff;
}

.btn-secondary {
    background: rgba(24, 24, 27, 0.8);
    color: #f8fafc;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    padding: 0.875rem 2rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.2s ease;
}

.btn-secondary:hover {
    background: rgba(39, 39, 42, 1);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.terminal-window {
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.05),
        0 40px 80px -20px rgba(0, 0, 0, 0.9),
        0 0 100px -20px var(--term-glow, rgba(14, 165, 233, 0.1));
    transition: box-shadow 0.5s ease;
    background: linear-gradient(180deg, rgba(24, 24, 27, 0.95) 0%, rgba(9, 9, 11, 1) 100%);
    transform: translateZ(0);
}

.typing-cursor::after {
    content: '█';
    animation: blink 1s step-start infinite;
    color: #0ea5e9;
}

@keyframes blink {
    50% {
        opacity: 0;
    }
}

.text-gradient {
    background: linear-gradient(to bottom right, #ffffff 0%, #a1a1aa 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
    will-change: opacity, transform;
}

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

.reveal-delay-1 {
    transition-delay: 100ms;
}

.reveal-delay-2 {
    transition-delay: 200ms;
}

.reveal-delay-3 {
    transition-delay: 300ms;
}

.reveal-scale {
    opacity: 0;
    transform: scale(0.95);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
    will-change: opacity, transform;
}

.reveal-scale.active {
    opacity: 1;
    transform: scale(1);
}

.faq-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

.faq-btn.active .faq-icon {
    transform: rotate(135deg);
    color: #0ea5e9;
}

.premium-card::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 20px;
    padding: 2px;
    background: linear-gradient(145deg, #0ea5e9, transparent 40%, transparent 60%, #8b5cf6);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0.5;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.premium-card:hover::after {
    opacity: 1;
}

.getting-started-container {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 2rem;
    padding: 2rem 0;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.getting-started-container::-webkit-scrollbar {
    display: none;
}

.step-card {
    flex: 0 0 350px;
    scroll-snap-align: center;
    background: #18181b;
    border: 1px solid #27272a;
    border-radius: 24px;
    padding: 2.5rem;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    position: relative;
}

.step-card:hover {
    border-color: #f8fafc;
    transform: translateY(-8px);
    background: #27272a;
}

.step-number {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 4rem;
    font-weight: 800;
    color: rgba(248, 250, 252, 0.05);
    position: absolute;
    top: 1rem;
    right: 2rem;
    line-height: 1;
}

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

::-webkit-scrollbar-track {
    background: #09090b;
}

::-webkit-scrollbar-thumb {
    background: #27272a;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #3f3f46;
}

.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(12px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-content {
    background: rgba(24, 24, 27, 0.4);
    backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 32px;
    padding: 4rem;
    width: 100%;
    max-width: 480px;
    transform: scale(0.95) translateY(20px);
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    text-align: center;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.modal-overlay.active .modal-content {
    transform: scale(1) translateY(0);
}
