*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: 'Plus Jakarta Sans', sans-serif; }
h1, h2, h3, h4, h5, h6, .font-display { font-family: 'Syne', sans-serif; }

/* Dot grid background */
.dot-grid {
    background-image: radial-gradient(circle, rgba(255,255,255,0.035) 1px, transparent 1px);
    background-size: 28px 28px;
}
.light .dot-grid, :not(.dark) .dot-grid-light {
    background-image: radial-gradient(circle, rgba(0,0,0,0.04) 1px, transparent 1px);
}

/* Noise texture */
.noise::after {
    content: '';
    position: fixed;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    opacity: 0.025;
    pointer-events: none;
    z-index: 9999;
}

/* Gradient text */
.text-gradient {
    background: linear-gradient(135deg, #00d4ff 0%, #a855f7 50%, #00d4ff 100%);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: gradientShift 4s ease infinite;
}
@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* Glass card */
.glass-card {
    background: rgba(255,255,255,0.04);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255,255,255,0.06);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
.glass-card:hover {
    background: rgba(255,255,255,0.07);
    border-color: rgba(0,212,255,0.15);
    transform: translateY(-4px);
}
.light .glass-card, :not(.dark) .glass-card-light {
    background: rgba(255,255,255,0.7);
    border-color: rgba(0,0,0,0.06);
}

/* Glass nav */
.glass-nav {
    background: rgba(8, 12, 22, 0.8);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-bottom: 1px solid rgba(255,255,255,0.05);
}
.light .glass-nav {
    background: rgba(255,255,255,0.85);
    border-bottom-color: rgba(0,0,0,0.06);
}

/* SVG stroke draw-in animation (controlled by GSAP) */
.draw-in {
    stroke-dasharray: var(--len, 300);
    stroke-dashoffset: var(--len, 300);
}

/* Platform card */
.platform-card { transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1); }
.platform-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px -12px rgba(0, 212, 255, 0.2);
}
.platform-card.recommended {
    border: 2px solid rgba(0, 212, 255, 0.4);
    box-shadow: 0 0 40px rgba(0, 212, 255, 0.1);
}
.platform-recommended-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    padding: 4px 16px;
    background: linear-gradient(135deg, #00d4ff, #a855f7);
    border-radius: 9999px;
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    white-space: nowrap;
    box-shadow: 0 4px 12px rgba(0, 212, 255, 0.3);
    z-index: 10;
}

/* FAQ accordion */
.faq-item {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 16px;
    transition: background 0.3s ease, border-color 0.3s ease;
}
.faq-item:hover {
    background: rgba(255,255,255,0.05);
    border-color: rgba(255,255,255,0.1);
}
.faq-item.active {
    background: rgba(255,255,255,0.05);
    border-color: rgba(0,212,255,0.15);
}
.faq-question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 20px 24px;
    text-align: left;
    cursor: pointer;
    background: none;
    border: none;
    outline: none;
    gap: 16px;
    font-family: 'Syne', sans-serif;
}
.faq-question:focus-visible {
    outline: 2px solid rgba(0,212,255,0.5);
    outline-offset: -2px;
    border-radius: 16px;
}
.faq-chevron {
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    flex-shrink: 0;
}
.faq-item.active .faq-chevron {
    transform: rotate(180deg);
}
.faq-answer-inner {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease;
    opacity: 0;
}
.faq-item.active .faq-answer-inner {
    opacity: 1;
}

/* Custom scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(0, 212, 255, 0.2); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(0, 212, 255, 0.4); }

/* Demo canvas */
.demo-tool {
    color: rgba(148,163,184,1);
    background: transparent;
    transition: all 0.2s ease;
    cursor: pointer;
    border: none;
}
.demo-tool:hover { background: rgba(255,255,255,0.05); color: #e2e8f0; }
.demo-tool.active {
    background: rgba(0, 212, 255, 0.15);
    color: #00d4ff;
}
#demoCanvas { cursor: crosshair; touch-action: none; }

/* Section reveal (before GSAP loads) */
.gsap-reveal { opacity: 0; transform: translateY(40px); }

/* Floating animation */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-14px); }
}
.animate-float { animation: float 6s ease-in-out infinite; }

/* Glow pulse */
@keyframes glowPulse {
    0%, 100% { opacity: 0.4; }
    50% { opacity: 0.7; }
}
