   Kuaitech Design System v1.1
   Modern, Technical, and Premium AI Aesthetics
*/

.mouse-glow {
    position: fixed;
    top: 0;
    left: 0;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.08) 0%, rgba(139, 92, 246, 0) 70%);
    border-radius: 50%;
    pointer-events: none;
    z-index: -1;
    transform: translate(-50%, -50%);
    transition: width 0.3s ease, height 0.3s ease;
}

@media (max-width: 768px) {
    .mouse-glow { display: none; }
}


@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@700;800&family=Inter:wght@400;500;600&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
    --color-primary: #8b5cf6;
    --color-primary-dark: #7c3aed;
    --color-accent: #d8b4fe;
    --color-bg-light: #f8fafc;
    --color-bg-dark: #0f172a;
    --color-text-base: #1e293b;
    --color-text-muted: #64748b;
    --color-white: #ffffff;
    
    --gradient-hero: linear-gradient(135deg, #0f172a 0%, #2e1065 100%);
    --gradient-accent: linear-gradient(135deg, #8b5cf6 0%, #d8b4fe 100%);
    --gradient-glass: rgba(255, 255, 255, 0.03);
    
    /* Spacing */
    --space-8: 8px;
    --space-16: 16px;
    --space-24: 24px;
    --space-32: 32px;
    --space-48: 48px;
    --space-64: 64px;
    --space-96: 96px;
    
    /* Transitions */
    --transition-base: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--color-bg-light);
    color: var(--color-text-base);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, .font-heading {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 700;
}

code, .font-mono {
    font-family: 'JetBrains Mono', monospace;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-base);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

/* Layout */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-24);
}

section {
    padding: var(--space-96) 0;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    height: 70px;
    z-index: 1000;
    transition: var(--transition-base);
    display: flex;
    align-items: center;
}

.navbar.scrolled {
    background: rgba(10, 15, 30, 0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.nav-links {
    display: flex;
    gap: var(--space-32);
    align-items: center;
}

.nav-link {
    color: var(--color-white);
    font-size: 15px;
    font-weight: 500;
    position: relative;
    padding: 4px 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-accent);
    transition: var(--transition-base);
}

.nav-link:hover::after, .nav-link.active::after {
    width: 100%;
}

.nav-logo {
    height: 48px;
    display: flex;
    align-items: center;
    transition: var(--transition-base);
}

.navbar.scrolled .nav-logo {
    height: 38px;
}

.nav-logo img {
    height: 100%;
    width: auto;
    object-fit: contain;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-base);
}

.btn-primary {
    background: var(--color-primary);
    color: var(--color-white);
    border: none;
}

.btn-primary:hover {
    background: #0D5BD4;
    box-shadow: 0 0 20px rgba(27, 108, 242, 0.4);
    transform: translateY(-2px);
}

.btn-ghost {
    background: transparent;
    color: var(--color-white);
    border: 1.5px solid rgba(255, 255, 255, 0.25);
}

.btn-ghost:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.5);
}

.btn-secondary {
    background: rgba(27, 108, 242, 0.08);
    color: var(--color-primary);
    border: 1px solid rgba(27, 108, 242, 0.1);
}

.btn-secondary:hover {
    background: rgba(27, 108, 242, 0.15);
}

/* Cards */
.card {
    background: var(--color-white);
    border-radius: 16px;
    padding: var(--space-32);
    border: 1px solid rgba(27, 108, 242, 0.08);
    box-shadow: 0 4px 24px rgba(27, 108, 242, 0.04);
    transition: var(--transition-base);
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(27, 108, 242, 0.1);
    border-color: rgba(27, 108, 242, 0.2);
}

/* Hero */
.hero {
    min-height: 100vh;
    padding-top: 140px;
    background: var(--gradient-hero);
    color: var(--color-white);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
}

#neural-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
    opacity: 0.6;
}

.hero .container {
    position: relative;
    z-index: 2;
}

/* Impact Dashboard */
.impact-dashboard {
    padding: 32px 0;
    margin-top: -64px;
    position: relative;
    z-index: 10;
}

.impact-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.impact-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(139, 92, 246, 0.2);
    padding: 32px;
    border-radius: 16px;
    text-align: center;
    transition: var(--transition-base);
}

.impact-card:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--color-primary);
    transform: translateY(-5px);
}

.impact-value {
    font-size: 40px;
    font-weight: 800;
    color: var(--color-primary);
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 4px;
    margin-bottom: 8px;
    font-family: 'Plus Jakarta Sans', sans-serif;
    text-shadow: 0 0 20px rgba(139, 92, 246, 0.4);
}

.impact-label {
    font-size: 14px;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 2px;
}

@media (max-width: 768px) {
    .impact-grid { grid-template-columns: 1fr; }
    .impact-dashboard { margin-top: 0; padding: 64px 0; }
}


.hero-content {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: var(--space-48);
    align-items: center;
}

.hero-badge {
    display: inline-flex;
    padding: 6px 16px;
    border-radius: 999px;
    background: rgba(0, 212, 255, 0.06);
    border: 1px solid rgba(0, 212, 255, 0.3);
    color: var(--color-accent);
    font-size: 13px;
    font-weight: 600;
    margin-bottom: var(--space-24);
}

.hero-title {
    font-size: clamp(36px, 5vw, 64px);
    line-height: 1.1;
    margin-bottom: var(--space-24);
}

.hero-title span {
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-size: 200% auto;
    animation: gradientShift 4s linear infinite;
}

@keyframes gradientShift {
    0% { background-position: 0% center; }
    50% { background-position: 100% center; }
    100% { background-position: 0% center; }
}

.hero-text {
    color: var(--color-text-muted);
    font-size: 18px;
    max-width: 520px;
    margin-bottom: var(--space-48);
}

.hero-visual {
    position: relative;
}

.hero-visual svg {
    width: 100%;
    height: auto;
}

/* Animations */
.reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* Utilities */
.text-center { text-align: center; }
.mt-16 { margin-top: var(--space-16); }
.mt-24 { margin-top: var(--space-24); }
.mt-48 { margin-top: var(--space-48); }

/* Mobile Menu */
.menu-toggle {
    display: none;
    cursor: pointer;
    background: none;
    border: none;
    color: var(--color-white);
}

@media (max-width: 1024px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-text {
        margin-left: auto;
        margin-right: auto;
    }
    
    .nav-links {
        display: none; /* Desktop menu hidden */
    }
    
    .nav-links.mobile-active {
        display: flex !important;
        flex-direction: column;
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        background: var(--color-bg-dark);
        padding: 24px;
        border-bottom: 2px solid var(--color-primary);
        z-index: 1000;
        animation: slideDown 0.3s ease-out;
    }

    @keyframes slideDown {
        from { opacity: 0; transform: translateY(-10px); }
        to { opacity: 1; transform: translateY(0); }
    }
    
    .menu-toggle {
        display: block;
    }
}

/* Footer */
.footer {
    background: #060910;
    color: var(--color-white);
    padding: var(--space-64) 0 var(--space-32);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
    gap: var(--space-48);
    margin-bottom: var(--space-64);
}

@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }
}

.footer-title {
    font-size: 16px;
    margin-bottom: var(--space-24);
    color: var(--color-white);
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: var(--color-text-muted);
    font-size: 14px;
}

.footer-links a:hover {
    color: var(--color-white);
}

.footer-bottom {
    padding-top: var(--space-32);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color: var(--color-text-muted);
}

/* Tools Components (herramientas.html) */
.tool-card {
    display: flex;
    gap: var(--space-24);
    align-items: flex-start;
}

.tool-icon {
    width: 48px;
    height: 48px;
    background: rgba(0, 212, 255, 0.08);
    color: var(--color-accent);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Forms */
.form-group {
    margin-bottom: var(--space-24);
}

.form-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 8px;
}

.form-control {
    width: 100%;
    padding: 14px 16px;
    background: var(--color-white);
    border: 1.5px solid rgba(27, 108, 242, 0.15);
    border-radius: 8px;
    font-family: inherit;
    font-size: 15px;
    transition: var(--transition-base);
}

.form-control:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(27, 108, 242, 0.1);
}

/* Stats */
.stat-number {
    font-size: 56px;
    font-weight: 800;
    color: var(--color-white);
    display: inline-flex;
    align-items: baseline;
    gap: 2px;
}

.stat-suffix {
    color: var(--color-accent);
    font-size: 0.6em;
}

.stat-label {
    font-size: 14px;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* FAQ Accordion */
.faq-list {
    max-width: 800px;
    margin: 48px auto 0;
}

.faq-item {
    background: var(--color-white);
    border: 1px solid rgba(139, 92, 246, 0.08);
    border-radius: 12px;
    margin-bottom: 16px;
    overflow: hidden;
    transition: var(--transition-base);
}

.faq-item:hover {
    border-color: rgba(139, 92, 246, 0.2);
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.04);
}


.faq-question {
    width: 100%;
    padding: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: none;
    border: none;
    font-size: 16px;
    font-weight: 600;
    color: var(--color-text-base);
    cursor: pointer;
    text-align: left;
}

.faq-question i {
    transition: transform 0.3s ease;
    color: var(--color-primary);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background: rgba(139, 92, 246, 0.02);
}


.faq-answer-inner {
    padding: 0 24px 24px;
    color: var(--color-text-muted);
    font-size: 15px;
    line-height: 1.6;
}

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

.faq-item.active .faq-answer {
    max-height: 300px; /* Adjust as needed */
}/* Responsive Enhancements */
@media (max-width: 768px) {
    .btn-group, .hero-btns {
        display: flex;
        flex-direction: column;
        width: 100%;
        gap: 12px;
    }
    .btn {
        width: 100%;
        justify-content: center;
    }
    .grid-2, .grid-3, .grid-4 {
        grid-template-columns: 1fr !important;
    }
}

.table-container {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 24px 0;
    border-radius: 12px;
    border: 1px solid rgba(0,0,0,0.05);
}

.table-responsive {
    min-width: 600px; /* Force minimum width to trigger scroll if needed */
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
    }
}

.faq-item.active {
    border-color: var(--color-primary);
    background: var(--color-white);
}

