:root {
    --bg-main: #06010f;
    --bg-darker: #030008;
    --primary: #8a2be2;
    --primary-glow: rgba(138, 43, 226, 0.15);
    --lilac-bright: #d8b4fe;
    --lilac-dark: #3b0764;
    --lilac-muted: #c084fc;
    
    /* Metallic gradients & reflective border styles */
    --metal-gradient: linear-gradient(135deg, #cfb7eb 0%, #7e5bb0 50%, #4a287c 100%);
    --metal-shine: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    --border-metal: rgba(216, 180, 254, 0.12);
    --border-metal-glow: rgba(216, 180, 254, 0.35);
    
    --text-main: #f3e8ff;
    --text-secondary: #c0b3d6;
    --text-dark: #06010f;
}

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

body {
    font-family: 'Space Grotesk', sans-serif;
    background-color: var(--bg-main);
    color: var(--text-main);
    overflow-x: hidden;
    position: relative;
}

/* 2D Canvas for drifting background particles */
#motion-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -2;
    pointer-events: none;
    opacity: 0.55;
}

/* Three.js 3D Background Canvas for the Caffeine Molecule */
#three-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    pointer-events: none;
}

/* Luxury low-brightness ambient light glows */
.ambient-glow {
    position: fixed;
    border-radius: 50%;
    filter: blur(140px);
    pointer-events: none;
    z-index: -3; /* Placed behind both canvases */
    opacity: 0.45;
}

.glow-1 {
    top: -20%;
    left: -10%;
    width: 700px;
    height: 700px;
    background: radial-gradient(circle, rgba(138, 43, 226, 0.2) 0%, transparent 70%);
}

.glow-2 {
    bottom: -10%;
    right: -10%;
    width: 900px;
    height: 900px;
    background: radial-gradient(circle, rgba(216, 180, 254, 0.15) 0%, transparent 75%);
}

.glow-3 {
    top: 40%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(59, 7, 100, 0.3) 0%, transparent 60%);
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 30px;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(6, 1, 15, 0.75);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border-bottom: 1px solid var(--border-metal);
    z-index: 100;
    padding: 20px 0;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 30px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-symbol {
    font-size: 24px;
    font-weight: 800;
    color: var(--lilac-bright);
    text-shadow: 0 0 10px var(--primary);
}

.logo-text {
    font-size: 20px;
    font-weight: 700;
    letter-spacing: 2px;
    color: #fff;
}

.logo-highlight {
    background: var(--metal-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.status-badge {
    background: rgba(216, 180, 254, 0.05);
    border: 1px solid rgba(216, 180, 254, 0.1);
    color: var(--lilac-bright);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.status-dot {
    width: 6px;
    height: 6px;
    background: #00ffcc;
    border-radius: 50%;
    box-shadow: 0 0 10px #00ffcc;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { opacity: 0.3; }
    50% { opacity: 1; }
    100% { opacity: 0.3; }
}

/* Premium Buttons */
.btn-primary-magnetic {
    background: rgba(216, 180, 254, 0.08);
    border: 1px solid var(--border-metal);
    color: var(--lilac-bright);
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
}

.btn-primary-magnetic::before {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 100%; height: 100%;
    background: var(--metal-shine);
    transition: all 0.5s;
}

.btn-primary-magnetic:hover::before {
    left: 100%;
}

.btn-primary-magnetic:hover {
    background: var(--lilac-bright);
    color: var(--text-dark);
    border-color: var(--lilac-bright);
    box-shadow: 0 0 25px rgba(216, 180, 254, 0.4);
    transform: translateY(-1px);
}

.btn-neon-action {
    background: var(--metal-gradient);
    color: var(--text-dark);
    padding: 18px 36px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 16px;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 0 35px rgba(138, 43, 226, 0.4);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    border: 1px solid rgba(255,255,255,0.2);
}

.btn-neon-action:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 50px rgba(216, 180, 254, 0.6);
    filter: brightness(1.15);
}

.btn-secondary-metallic {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-metal);
    color: var(--text-secondary);
    padding: 18px 36px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    backdrop-filter: blur(10px);
}

.btn-secondary-metallic:hover {
    background: rgba(216, 180, 254, 0.08);
    border-color: var(--border-metal-glow);
    color: #fff;
    transform: translateY(-1px);
}

/* Hero Section */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 120px;
    position: relative;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 60px;
    align-items: center;
}

.tagline {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--lilac-bright);
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 25px;
}

.tagline i {
    text-shadow: 0 0 10px var(--lilac-bright);
}

.hero-title {
    font-size: 4.5rem;
    line-height: 1.05;
    font-weight: 800;
    letter-spacing: -2px;
    margin-bottom: 30px;
}

.metallic-text {
    background: var(--metal-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 40px rgba(207, 183, 235, 0.1);
}

.hero-desc {
    font-size: 1.15rem;
    color: var(--text-secondary);
    margin-bottom: 45px;
    font-weight: 300;
    line-height: 1.7;
    max-width: 540px;
}

.hero-cta-group {
    display: flex;
    gap: 20px;
}

.hero-visual-placeholder {
    height: 500px;
    width: 100%;
    pointer-events: none;
}

/* Sections General */
section {
    padding: 140px 0;
}

.section-header-centered {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 80px auto;
}

.title-large {
    font-size: 3.2rem;
    font-weight: 800;
    letter-spacing: -1.5px;
    margin-bottom: 20px;
    background: var(--metal-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    font-weight: 300;
}

/* Expertise Grid & Motion Cards */
.expertise-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
}

.motion-card {
    background: rgba(13, 6, 26, 0.45);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-metal);
    border-radius: 20px;
    padding: 50px 40px;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Fine metal light shimmers */
.motion-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border-metal-glow), transparent);
    transform: scaleX(0);
    transition: transform 0.5s ease;
}

.motion-card:hover::before {
    transform: scaleX(1);
}

.motion-card:hover {
    transform: translateY(-8px);
    background: rgba(28, 13, 54, 0.45);
    border-color: rgba(216, 180, 254, 0.25);
    box-shadow: 0 20px 40px rgba(0,0,0,0.5), 0 0 30px rgba(138, 43, 226, 0.15);
}

.card-icon {
    width: 60px;
    height: 60px;
    background: rgba(138, 43, 226, 0.15);
    border: 1px solid rgba(138, 43, 226, 0.3);
    border-radius: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 24px;
    color: var(--lilac-bright);
    margin-bottom: 30px;
    box-shadow: 0 0 15px rgba(138, 43, 226, 0.2);
}

.card-title {
    font-size: 1.6rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 15px;
}

.card-desc {
    color: var(--text-secondary);
    font-weight: 300;
    font-size: 0.98rem;
    line-height: 1.6;
    margin-bottom: 30px;
}

.card-footer-metric {
    font-family: monospace;
    font-size: 11px;
    letter-spacing: 1px;
    color: var(--lilac-bright);
    opacity: 0.7;
    border-top: 1px solid var(--border-metal);
    padding-top: 15px;
}

/* Timeline Editor Metodologia */
.timeline-editor {
    background: rgba(10, 4, 20, 0.45);
    border: 1px solid var(--border-metal);
    border-radius: 24px;
    padding: 60px 40px;
    position: relative;
    backdrop-filter: blur(25px);
    overflow: hidden;
}

.editor-timeline-tracks {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.timeline-playhead-line {
    position: absolute;
    top: 0;
    left: 120px;
    width: 2px;
    height: 100%;
    background: linear-gradient(180deg, #ff0055, transparent);
    z-index: 1;
}

.timeline-track-item {
    display: flex;
    align-items: flex-start;
    gap: 40px;
    opacity: 0.3;
    transform: translateX(10px);
    transition: all 0.5s ease;
}

.timeline-track-item.active {
    opacity: 1;
    transform: translateX(0);
}

.timecode {
    width: 80px;
    font-family: monospace;
    font-size: 14px;
    color: var(--lilac-bright);
    margin-top: 4px;
}

.track-content {
    flex: 1;
    background: rgba(216, 180, 254, 0.02);
    border: 1px solid var(--border-metal);
    padding: 30px;
    border-radius: 16px;
    transition: all 0.3s ease;
}

.timeline-track-item.active .track-content {
    background: rgba(216, 180, 254, 0.05);
    border-color: rgba(216, 180, 254, 0.25);
    box-shadow: 0 0 20px rgba(138, 43, 226, 0.1);
}

.track-badge {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1px;
    background: rgba(138, 43, 226, 0.2);
    border: 1px solid rgba(138, 43, 226, 0.4);
    color: var(--lilac-bright);
    padding: 4px 10px;
    border-radius: 4px;
    display: inline-block;
    margin-bottom: 15px;
}

.track-content h3 {
    font-size: 1.4rem;
    color: #fff;
    margin-bottom: 10px;
}

.track-content p {
    color: var(--text-secondary);
    font-weight: 300;
    line-height: 1.6;
}

/* Compliance Grid Split */
.split-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 60px;
    align-items: center;
}

.compliance-bullets {
    display: flex;
    flex-direction: column;
    gap: 30px;
    margin-top: 40px;
}

.bullet-item {
    display: flex;
    gap: 20px;
}

.bullet-icon {
    font-size: 20px;
    color: var(--lilac-bright);
    margin-top: 3px;
}

.bullet-item h4 {
    font-size: 1.2rem;
    color: #fff;
    margin-bottom: 8px;
}

.bullet-item p {
    color: var(--text-secondary);
    font-weight: 300;
    font-size: 0.95rem;
}

.nda-box-wrapper {
    display: flex;
    justify-content: center;
}

.nda-box {
    background: linear-gradient(135deg, rgba(28, 11, 43, 0.6) 0%, rgba(13, 6, 26, 0.6) 100%);
    border: 1px solid var(--border-metal);
    border-top: 1px solid var(--border-metal-glow);
    padding: 50px 40px;
    border-radius: 24px;
    max-width: 420px;
    position: relative;
    box-shadow: 0 25px 50px rgba(0,0,0,0.5);
    backdrop-filter: blur(15px);
}

.nda-badge {
    font-size: 11px;
    font-weight: 700;
    color: #00ffcc;
    border: 1px solid rgba(0, 255, 204, 0.2);
    background: rgba(0, 255, 204, 0.05);
    padding: 6px 12px;
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 25px;
}

.nda-box h3 {
    font-size: 1.8rem;
    color: #fff;
    margin-bottom: 15px;
}

.nda-box p {
    color: var(--text-secondary);
    font-weight: 300;
    line-height: 1.6;
    margin-bottom: 30px;
}

.nda-signature-mock {
    font-family: monospace;
    font-size: 10px;
    color: var(--lilac-bright);
    border: 1px dashed rgba(216, 180, 254, 0.2);
    padding: 12px;
    text-align: center;
    border-radius: 8px;
    background: rgba(216, 180, 254, 0.02);
}

/* CTA Conversion Card */
.cta-card {
    background: radial-gradient(circle at 50% 0%, rgba(138, 43, 226, 0.25) 0%, rgba(6, 1, 15, 0.6) 100%);
    border: 1px solid var(--primary);
    padding: 80px 40px;
    border-radius: 30px;
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 30px 60px rgba(0,0,0,0.7);
    backdrop-filter: blur(20px);
}

.cta-card h2 {
    font-size: 3rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 20px;
    letter-spacing: -1.5px;
}

.cta-card p {
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 40px auto;
    font-size: 1.15rem;
    font-weight: 300;
}

.btn-whatsapp-glow {
    background: #25d366;
    color: #000;
    font-weight: 700;
    padding: 20px 40px;
    border-radius: 12px;
    font-size: 18px;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 0 30px rgba(37, 211, 102, 0.3);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    border: 1px solid rgba(255,255,255,0.3);
}

.btn-whatsapp-glow:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 55px rgba(37, 211, 102, 0.6);
    background: #20ba5a;
}

/* Footer */
.footer {
    padding: 50px 0;
    background: rgba(3, 0, 8, 0.8);
    border-top: 1px solid var(--border-metal);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.footer-links {
    display: flex;
    gap: 15px;
    color: rgba(216, 180, 254, 0.4);
}

.footer-links span {
    font-size: 0.85rem;
}

/* Responsive Styles */
@media (max-width: 960px) {
    .hero-grid, .split-grid {
        grid-template-columns: 1fr;
        gap: 60px;
        text-align: center;
    }
    
    .hero-visual-placeholder {
        display: none;
    }
    
    .hero-desc, .hero-cta-group {
        margin-left: auto;
        margin-right: auto;
        justify-content: center;
    }
    
    .hero-title {
        font-size: 3.2rem;
    }
    
    .title-large {
        font-size: 2.3rem;
    }
    
    .timeline-playhead-line {
        display: none;
    }
    
    .timeline-track-item {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
    
    .timecode {
        width: auto;
    }
}

@media (max-width: 500px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-cta-group {
        flex-direction: column;
        width: 100%;
    }
    
    .hero-cta-group a {
        width: 100%;
        text-align: center;
        justify-content: center;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
}
