/* 
   Gerardo Vasquez - Private SaaS Architect
   Premium B2B Design System
*/

:root {
    --bg-main: #060606;
    --bg-sec: #0C0C0C;
    --accent: #0055FF;
    --accent-hover: #0044CC;
    --accent-glow: rgba(0, 85, 255, 0.4);
    --text-main: #FFFFFF;
    --text-sec: #A0A0A0;
    --border-dark: rgba(255, 255, 255, 0.1);
    --border-light: rgba(255, 255, 255, 0.2);
    --error: #FF453A;
    --success: #32D74B;
    --glass-bg: rgba(12, 12, 12, 0.6);
}

[data-theme="light"] {
    --bg-main: #FAFAFA;
    --bg-sec: #FFFFFF;
    --accent: #0055FF;
    --accent-hover: #0044CC;
    --accent-glow: rgba(0, 85, 255, 0.15);
    --text-main: #111111;
    --text-sec: #666666;
    --border-dark: rgba(0, 0, 0, 0.08);
    --border-light: rgba(0, 0, 0, 0.12);
    --error: #E53935;
    --success: #2E7D32;
    --glass-bg: rgba(255, 255, 255, 0.7);
}

body {
    background-color: var(--bg-main);
    color: var(--text-main);
    font-family: 'Inter', sans-serif;
    overflow-x: hidden;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Base utility fixes */
.bg-glass {
    background: var(--glass-bg);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
}

.border-glass {
    border: 1px solid var(--border-dark);
    box-shadow: inset 0 1px 0 var(--border-light);
}

/* Scrollbar */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg-main); }
::-webkit-scrollbar-thumb { background: #222; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent); }

/* Typography */
.text-gradient {
    background: linear-gradient(135deg, var(--text-main) 0%, var(--text-sec) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.text-gradient-accent {
    background: linear-gradient(135deg, #0055FF 0%, #00AEFF 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Buttons */
.cta-principal {
    background-color: var(--text-main);
    color: var(--bg-main);
    border: none;
    padding: 16px 32px;
    font-size: 16px;
    font-weight: 800;
    border-radius: 8px;
    cursor: pointer;
    text-align: center;
    display: inline-block;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.cta-principal::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 150%;
    height: 150%;
    background: radial-gradient(circle, var(--accent) 0%, transparent 70%);
    transform: translate(-50%, -50%) scale(0);
    transition: transform 0.4s ease-out;
    z-index: 1;
    opacity: 0.2;
}

.cta-principal:hover::before {
    transform: translate(-50%, -50%) scale(1);
}

.cta-principal:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 85, 255, 0.2);
}

.cta-secondary {
    background-color: transparent;
    color: var(--text-main);
    border: 1px solid var(--border-dark);
    padding: 16px 32px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.cta-secondary:hover {
    background-color: rgba(128,128,128,0.05);
    border-color: var(--border-light);
}

/* Animations (Stagger Observer) */
.stagger-item {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.stagger-item.appear {
    opacity: 1;
    transform: translateY(0);
}

/* Magnetic Spotlight Cards */
.magnetic-card {
    position: relative;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-dark);
    border-radius: 16px;
    overflow: hidden;
}

.magnetic-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 16px;
    padding: 1px;
    background: radial-gradient(
        300px circle at var(--mouse-x) var(--mouse-y), 
        rgba(255, 255, 255, 0.3),
        transparent 40%
    );
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    z-index: 10;
    opacity: 0;
    transition: opacity 0.3s;
}

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

.magnetic-card::after {
    content: "";
    position: absolute;
    top: var(--mouse-y);
    left: var(--mouse-x);
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, var(--accent-glow) 0%, transparent 60%);
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
    z-index: 0;
}

.magnetic-card:hover::after {
    opacity: 0.15;
}

.magnetic-content {
    position: relative;
    z-index: 1;
}

/* Canvas Background */
#hero-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    opacity: 0.6;
}

/* FAQ Accordion */
.faq-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1), padding 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.faq-item.active .faq-content {
    max-height: 500px;
    padding-bottom: 2rem;
}

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

/* Visual Noise */
.bg-noise {
    position: relative;
}
.bg-noise::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url('data:image/svg+xml,%3Csvg viewBox=%220 0 200 200%22 xmlns=%22http://www.w3.org/2000/svg%22%3E%3Cfilter id=%22noiseFilter%22%3E%3CfeTurbulence type=%22fractalNoise%22 baseFrequency=%220.85%22 numOctaves=%223%22 stitchTiles=%22stitch%22/%3E%3C/filter%3E%3Crect width=%22100%25%22 height=%22100%25%22 filter=%22url(%23noiseFilter)%22 opacity=%220.3%22/%3E%3C/svg%3E');
    pointer-events: none;
    z-index: 0;
    opacity: 0.1;
}

[data-theme="light"] .bg-noise::before {
    opacity: 0.15;
}

/* Mobile Nav Overlay */
#mobile-menu {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s;
}
