/* Global Styles */
body {
    background-color: var(--bg-primary);
    color: var(--text-silver);
    font-family: var(--font-body);
    font-size: 16px;
    overflow-x: hidden;
    position: relative;
    background-image:
        linear-gradient(rgba(255, 179, 0, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 179, 0, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    /* Technical Grid Background */
}

/* Sticky Header Logo */
.sticky-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 50px;
    background: rgba(5, 5, 5, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 179, 0, 0.2);
    z-index: 999;
    display: flex;
    align-items: center;
    padding: 0 1.5rem;
    opacity: 0;
    transform: translateY(-100%);
    transition: all 0.3s ease;
    pointer-events: none;
}

.sticky-header.visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.header-logo-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.header-logo-link:hover {
    transform: scale(1.05);
}

.header-logo {
    height: 30px;
    width: auto;
    filter: drop-shadow(0 0 5px rgba(255, 179, 0, 0.3));
}

.header-brand {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1rem;
    color: var(--text-white);
    letter-spacing: 0.05em;
}

/* Language Switcher Header */
.language-header {
    position: fixed;
    top: 15px;
    right: 20px;
    z-index: 1000;
}

.language-switcher {
    display: flex;
    gap: 8px;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    padding: 6px 10px;
    border-radius: 20px;
    border: 1px solid rgba(255, 179, 0, 0.3);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
}

.lang-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.lang-btn {
    background: transparent;
    border: 2px solid transparent;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    font-size: 28px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.flag-icon {
    width: 22px;
    height: 16px;
    border-radius: 2px;
    display: block;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.flag-es {
    background: linear-gradient(to bottom,
            #AA151B 0%, #AA151B 25%,
            #F1BF00 25%, #F1BF00 75%,
            #AA151B 75%, #AA151B 100%);
}

.flag-en {
    background:
        linear-gradient(to bottom, #012169 0%, #012169 100%),
        linear-gradient(to bottom, white 0%, white 100%);
    background-size: 100% 100%, 60% 60%;
    background-position: center, center;
    background-repeat: no-repeat;
    position: relative;
}

.flag-en::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        linear-gradient(to right, transparent 40%, white 40%, white 60%, transparent 60%),
        linear-gradient(to bottom, transparent 30%, white 30%, white 70%, transparent 70%);
}

.flag-en::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        linear-gradient(to right, transparent 45%, #C8102E 45%, #C8102E 55%, transparent 55%),
        linear-gradient(to bottom, transparent 40%, #C8102E 40%, #C8102E 60%, transparent 60%);
}


.lang-btn:hover {
    transform: scale(1.1);
    border-color: rgba(255, 179, 0, 0.5);
    background: rgba(255, 179, 0, 0.1);
}

.lang-btn.active {
    border-color: var(--accent-primary);
    background: rgba(255, 179, 0, 0.2);
    box-shadow: 0 0 15px rgba(255, 179, 0, 0.4);
}

.lang-btn:active {
    transform: scale(0.95);
}

.lang-label {
    font-size: 0.6rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.7);
    letter-spacing: 0.05em;
    font-family: var(--font-heading);
    text-transform: uppercase;
}

.lang-option:has(.lang-btn.active) .lang-label {
    color: var(--accent-primary);
}


#neural-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
    /* Let clicks pass through */
}

.intro-section {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    z-index: 1;
    /* Above canvas */
}

.intro-title {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--text-white);
    margin-bottom: 1rem;
    letter-spacing: 0.1em;
    font-family: var(--font-heading);
    animation: fadeInUp 1s ease-out;
}

.intro-logo {
    width: 110px;
    height: auto;
    margin-bottom: 1.5rem;
    animation: fadeInUp 1s ease-out;
}

.intro-tagline {
    font-size: 1rem;
    color: var(--accent-primary);
    font-family: var(--font-heading);
    letter-spacing: 0.3em;
    text-transform: uppercase;
    margin: -1rem 0 2rem 0;
    font-weight: 600;
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards 0.1s;
    text-shadow: 0 0 10px rgba(255, 179, 0, 0.3);
    border-top: 1px solid var(--glass-border);
    border-bottom: 1px solid var(--glass-border);
    padding: 0.3rem 1.5rem;
    display: inline-block;
}

.intro-subtitle {
    font-size: 1.5rem;
    color: var(--accent-primary);
    font-weight: 600;
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards 0.3s;
}

.intro-slogan {
    font-size: 1.5rem;
    color: var(--text-white);
    font-family: var(--font-heading);
    margin-bottom: 1rem;
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards 0.2s;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}


h1,
h2,
h3,
h4,
h5 {
    font-family: var(--font-heading);
    color: var(--text-white);
    font-weight: 700;
    letter-spacing: 0.05em;
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-fast);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Utilities */
.text-gradient {
    /* Gold to White gradient */
    background: linear-gradient(135deg, var(--accent-primary) 0%, #FFFFFF 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid var(--glass-border);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

/* Navigation */
.nav-hud {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 2rem;
    z-index: 100;
    border-bottom: 1px solid var(--glass-border);
    background: rgba(5, 5, 5, 0.9);
}

.logo-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.nav-logo-img {
    height: 40px;
    width: auto;
    filter: drop-shadow(0 0 5px rgba(255, 179, 0, 0.3));
}

.brand-text {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--text-white);
    letter-spacing: 0.05em;
    display: none;
    /* Hide on very small screens, show on mobile+ */
}

@media (min-width: 400px) {
    .brand-text {
        display: block;
    }
}

.nav-links {
    display: none;
    margin-left: auto;
    margin-right: 2rem;
    gap: 2rem;
}

@media (min-width: 900px) {
    .nav-links {
        display: flex;
    }
}

.nav-links a {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-silver);
    font-family: var(--font-heading);
}

.nav-links a:hover {
    color: var(--accent-primary);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.6rem 1.2rem;
    font-family: var(--font-heading);
    font-weight: 600;
    text-transform: uppercase;
    cursor: pointer;
    transition: var(--transition-smooth);
    font-size: 0.9rem;
    /* Tech cut corners */
    clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
}

.btn-primary {
    background: var(--accent-primary);
    color: #000;
    border: none;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 20px rgba(255, 179, 0, 0.4);
    background: #fff;
}

.btn-secondary {
    background: transparent;
    color: var(--text-white);
    border: 1px solid var(--text-silver);
}

.btn-secondary:hover {
    border-color: var(--accent-primary);
    color: var(--accent-primary);
}

.btn-hud {
    border: 1px solid var(--accent-primary);
    color: var(--accent-primary);
    background: rgba(255, 179, 0, 0.05);
}

.btn-hud:hover {
    background: var(--accent-primary);
    color: #000;
    box-shadow: 0 0 15px rgba(255, 179, 0, 0.3);
}

/* Benefits Section */
.benefits-section {
    padding: 6rem 0;
    position: relative;
    background: linear-gradient(180deg, rgba(5, 5, 5, 0) 0%, rgba(5, 5, 5, 0.8) 100%);
}

.benefits-main-title {
    text-align: center;
    font-size: 1.8rem;
    color: var(--accent-primary);
    margin-bottom: 3rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    text-shadow: 0 0 15px rgba(255, 179, 0, 0.2);
}

.benefits-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 4rem;
    align-items: center;
}

@media (min-width: 900px) {
    .benefits-grid {
        grid-template-columns: 1fr 0.8fr;
    }
}

.benefit-item {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
    opacity: 0;
    animation: slideInRight 0.5s ease-out forwards;
}

.benefit-item:nth-child(1) {
    animation-delay: 0.2s;
}

.benefit-item:nth-child(2) {
    animation-delay: 0.4s;
}

.benefit-item:nth-child(3) {
    animation-delay: 0.6s;
}

.benefit-icon {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--accent-primary);
    border: 1px solid var(--accent-primary);
    width: 3rem;
    height: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 179, 0, 0.1);
    /* Tech chamfered corners */
    clip-path: polygon(20% 0, 100% 0, 100% 80%, 80% 100%, 0 100%, 0 20%);
}

.benefit-text h3 {
    font-size: 1.5rem;
    color: var(--text-white);
    margin: 0;
    font-weight: 300;
    /* Thinner font */
    text-transform: uppercase;
    line-height: 1.4;
    letter-spacing: 0.05em;
}

/* Tech Visual (Dashboard) */
.benefits-visual {
    padding: 0;
    display: flex;
    flex-direction: column;
    background: #000;
    border: 1px solid rgba(255, 179, 0, 0.2);
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.8);
    overflow: hidden;
    position: relative;
    width: 100%;
    max-width: 450px;
    height: auto;
    /* Allow growth */
    min-height: 320px;
}

.dash-header {
    padding: 1rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.02);
}

.dash-title {
    font-family: var(--font-heading);
    color: var(--text-silver);
    font-size: 0.85rem;
    letter-spacing: 0.1em;
}

.live-indicator {
    font-size: 0.75rem;
    color: #ff3b3b;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.blink {
    animation: blink 1.5s infinite;
}

.dash-graph-area {
    flex: 1;
    position: relative;
    padding: 1rem 0;
    /* Add breathing room */
    min-height: 150px;
}

.dash-svg {
    width: 100%;
    height: 100%;
    display: block;
}

.dash-grid-line {
    stroke: rgba(255, 255, 255, 0.05);
    stroke-width: 1;
}

.dash-path-secondary {
    fill: none;
    stroke-width: 2;
    stroke-opacity: 0.6;
    stroke-dasharray: 400;
    stroke-dashoffset: 400;
    animation: drawLine 4s ease-out forwards infinite alternate;
}

.path-green {
    stroke: var(--accent-green);
    animation-delay: 0.5s;
}

.path-white {
    stroke: rgba(255, 255, 255, 0.5);
    animation-delay: 1s;
}

.path-dim {
    stroke: rgba(255, 179, 0, 0.3);
    animation-delay: 1.5s;
}

.dash-path-main {
    fill: none;
    stroke: var(--accent-primary);
    stroke-width: 2;
    stroke-dasharray: 400;
    stroke-dashoffset: 400;
    animation: drawLine 3s ease-out forwards infinite alternate;
}

.dash-path-glow {
    fill: none;
    stroke: var(--accent-primary);
    stroke-width: 6;
    stroke-opacity: 0.3;
    opacity: 0.5;
    filter: blur(4px);
    stroke-dasharray: 400;
    stroke-dashoffset: 400;
    animation: drawLine 3s ease-out forwards infinite alternate;
}

.dash-area-fill {
    fill: linear-gradient(180deg, rgba(255, 179, 0, 0.2) 0%, rgba(255, 179, 0, 0) 100%);
    opacity: 0.5;
}

.dash-footer {
    display: flex;
    justify-content: space-around;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.4);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.metric-block {
    text-align: center;
    width: 30%;
}

.metric-label {
    display: block;
    font-size: 0.6rem;
    color: var(--text-silver);
    margin-bottom: 0.5rem;
    letter-spacing: 0.05em;
}

.metric-bar-container {
    height: 40px;
    width: 6px;
    background: rgba(255, 255, 255, 0.1);
    margin: 0 auto 0.5rem;
    position: relative;
    border-radius: 2px;
    overflow: hidden;
}

.metric-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: var(--accent-primary);
    box-shadow: 0 0 10px var(--accent-primary);
    animation: fluctuate 2s ease-in-out infinite;
}

.bar-1 {
    height: 60%;
    animation-delay: 0s;
}

.bar-2 {
    height: 80%;
    animation-delay: 0.5s;
}

.bar-3 {
    height: 40%;
    background: #ff3b3b;
    box-shadow: 0 0 10px #ff3b3b;
    animation-delay: 1s;
}

.bar-4 {
    height: 75%;
    background: var(--accent-green);
    box-shadow: 0 0 10px var(--accent-green);
    animation-delay: 0.2s;
}

.metric-val {
    font-family: var(--font-heading);
    font-size: 0.9rem;
    color: var(--text-white);
    font-weight: 700;
}

.scale-green {
    color: var(--accent-green);
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.3;
    }
}

@keyframes drawLine {
    0% {
        stroke-dashoffset: 400;
    }

    100% {
        stroke-dashoffset: 0;
    }
}

@keyframes fluctuate {

    0%,
    100% {
        height: 50%;
        opacity: 0.8;
    }

    50% {
        height: 85%;
        opacity: 1;
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Hero Section */
.hero-section {
    padding-top: 4rem;
    /* Adjusted since it's no longer top-most */
    padding-bottom: 4rem;
    position: relative;
    overflow: hidden;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

@media (min-width: 900px) {
    .hero-grid {
        grid-template-columns: 1.2fr 0.8fr;
        /* More space for text */
    }
}

.hero-content .badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: rgba(255, 179, 0, 0.1);
    color: var(--accent-primary);
    border: 1px solid var(--accent-primary);
    font-size: 0.75rem;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
    letter-spacing: 0.1em;
}

.hero-content h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

@media (min-width: 768px) {
    .hero-content h1 {
        font-size: 3.5rem;
    }
}

.hero-content .subtitle {
    font-size: 1.1rem;
    color: var(--text-silver);
    margin-bottom: 2rem;
    max-width: 600px;
    line-height: 1.6;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 3rem;
}

.stats-row {
    display: flex;
    gap: 3rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
}

.stat-val {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-white);
    font-family: var(--font-heading);
}

.stat-item:last-child .stat-val {
    color: var(--accent-green);
    /* Highlight precision in green */
}

.stat-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    color: var(--accent-primary);
    opacity: 0.8;
}

.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
}

.floating-img {
    width: 100%;
    max-width: 450px;
    filter: drop-shadow(0 0 20px rgba(255, 179, 0, 0.1));
    animation: float 6s ease-in-out infinite;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-15px);
    }
}

/* Feature Sections */
.feature-section {
    padding: var(--spacing-lg) 0;
}

.feature-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: center;
}

@media (min-width: 900px) {
    .feature-grid {
        grid-template-columns: 1fr 1fr;
    }

    .feature-grid.reverse .feature-visual {
        order: 1;
    }

    .feature-grid.reverse .feature-content {
        order: 2;
    }
}

.feature-content h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--accent-primary);
}

.feature-content .lead {
    font-size: 1.25rem;
    color: var(--text-white);
    margin-bottom: 1rem;
    font-family: var(--font-heading);
}

.feature-list {
    margin-top: 1.5rem;
    list-style: none;
}

.feature-list li {
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-silver);
}

.feature-visual {
    position: relative;
    padding: 1rem;
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.feature-img {
    width: 100%;
    border-radius: var(--radius-sm);
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}

.floating-phone {
    width: 80%;
    margin: 0 auto;
    display: block;
    transform: rotate(-5deg);
}





@keyframes scan {
    0% {
        top: 0;
        opacity: 0;
    }

    15% {
        opacity: 1;
    }

    85% {
        opacity: 1;
    }

    100% {
        top: 100%;
        opacity: 0;
    }
}



/* Mission Section */
.mission-section {
    padding: var(--spacing-xl) 0;
    position: relative;
    background: linear-gradient(to bottom, #050505, #080f08);
}

.mission-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 4rem;
    align-items: center;
}

.mission-content h2 {
    font-size: 2.5rem;
    color: var(--text-white);
    margin-bottom: 1.5rem;
}

.mission-content p {
    font-size: 1.1rem;
    color: var(--text-silver);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.mission-visual {
    position: relative;
    display: flex;
    justify-content: center;
    perspective: 1000px;
}

/* Python Code Visual */
.code-visual-container {
    width: 350px;
    height: 250px;
    position: relative;
    overflow: hidden;
    background: #1e1e1e;
    /* VS Code dark bg */
    border: 1px solid #333;
    display: flex;
    flex-direction: column;
}

.code-background {
    padding: 1.5rem;
    font-family: 'Consolas', 'Monaco', monospace;
    font-size: 0.75rem;
    color: #d4d4d4;
    opacity: 0.8;
    position: absolute;
    width: 100%;
}

/* Syntax Highlighting */
.kw {
    color: #569cd6;
}

/* Blue keywords */
.func {
    color: #dcdcaa;
}

/* Yellow functions */
.str {
    color: #ce9178;
}

/* Orange strings */
.num {
    color: #b5cea8;
}

/* Green numbers */
.comment {
    color: #6a9955;
    display: block;
    margin-top: 5px;
}

/* Green comment */

.graph-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 60%;
    background: linear-gradient(to top, rgba(0, 165, 129, 0.1), transparent);
    z-index: 10;
}

.mini-graph {
    width: 100%;
    height: 100%;
    overflow: visible;
}

.code-graph-line {
    fill: none;
    stroke: var(--accent-green);
    stroke-width: 3;
    stroke-linecap: round;
    filter: drop-shadow(0 0 5px var(--accent-green));
    stroke-dasharray: 500;
    stroke-dashoffset: 500;
    animation: drawGraph 3s ease-out forwards infinite alternate;
}

.graph-dots {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
}

.g-dot {
    position: absolute;
    width: 8px;
    height: 8px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 0 10px #fff;
    opacity: 0;
    animation: dotPop 3s infinite;
}

.d1 {
    left: 40%;
    top: 45%;
    animation-delay: 1.2s;
}

.d2 {
    left: 70%;
    top: 20%;
    animation-delay: 2.1s;
}

.d3 {
    left: 90%;
    top: 8%;
    animation-delay: 2.8s;
}

.execution-status {
    position: absolute;
    bottom: 10px;
    right: 15px;
    font-family: 'Consolas', monospace;
    font-size: 0.7rem;
    color: var(--accent-primary);
    display: flex;
    align-items: center;
    gap: 6px;
    z-index: 20;
    background: rgba(0, 0, 0, 0.5);
    padding: 2px 6px;
    border-radius: 4px;
}

.status-indicator {
    display: block;
    width: 6px;
    height: 6px;
    background: var(--accent-primary);
    border-radius: 50%;
    box-shadow: 0 0 5px var(--accent-primary);
    animation: blink 1s infinite alternate;
}

@keyframes drawGraph {
    0% {
        stroke-dashoffset: 500;
    }

    100% {
        stroke-dashoffset: 0;
    }
}

@keyframes dotPop {

    0%,
    50% {
        transform: scale(0);
        opacity: 0;
    }

    60% {
        transform: scale(1.2);
        opacity: 1;
    }

    100% {
        transform: scale(1);
        opacity: 0;
    }
}

.tech-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 60%;
    height: 60%;
    background: var(--accent-green);
    filter: blur(80px);
    opacity: 0.2;
    transform: translate(-50%, -50%);
    z-index: -1;
}

@media (min-width: 968px) {
    .mission-grid {
        grid-template-columns: 1fr 1fr;
    }
}

/* Services Section */
.services-section {
    padding: var(--spacing-lg) 0 var(--spacing-xl);
    background: #000;
}

.services-title {
    text-align: center;
    font-size: 2rem;
    color: var(--text-white);
    margin-bottom: 3rem;
    font-weight: 600;
}

.services-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 768px) {
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.service-card {
    padding: 2rem;
    text-align: left;
    transition: transform 0.3s ease, border-color 0.3s ease;
    border-top: 2px solid transparent;
}

.service-card:hover {
    transform: translateY(-5px);
    border-top-color: var(--accent-green);
}

.service-icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 165, 129, 0.1);
    border-radius: 10px;
    margin-bottom: 1.5rem;
    color: var(--accent-green);
}

.s-icon {
    width: 28px;
    height: 28px;
}

.service-card h3 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    color: var(--text-white);
    margin-bottom: 1rem;
}

.service-card p {
    font-size: 0.95rem;
    color: var(--text-silver);
    line-height: 1.6;
}

/* ----------------------------------------------------
   AI Insight Feature Section (Added)
   ---------------------------------------------------- */

.ai-feature {
    background: radial-gradient(circle at 30% 50%, rgba(20, 20, 30, 0.4) 0%, rgba(5, 5, 5, 0) 70%);
    position: relative;
    overflow: hidden;
}

/* Badge - "NUEVO" */
.badge-container {
    margin-bottom: 1rem;
}

.badge-new {
    display: inline-block;
    padding: 0.4em 1em;
    font-size: 0.85rem;
    font-weight: 800;
    color: #fff;
    background: linear-gradient(135deg, #ff0080 0%, #ff8c00 50%, #ffeb3b 100%);
    border-radius: 25px;
    letter-spacing: 0.15em;
    box-shadow: 0 0 25px rgba(255, 0, 128, 0.8), 0 0 50px rgba(255, 140, 0, 0.4);
    position: relative;
    top: -2px;
    animation: badgePulse 2s ease-in-out infinite;
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

@keyframes badgePulse {

    0%,
    100% {
        transform: scale(1);
        box-shadow: 0 0 25px rgba(255, 0, 128, 0.8), 0 0 50px rgba(255, 140, 0, 0.4);
    }

    50% {
        transform: scale(1.05);
        box-shadow: 0 0 35px rgba(255, 0, 128, 1), 0 0 70px rgba(255, 140, 0, 0.6);
    }
}

/* AI Benefits List */
.ai-benefits {
    margin-top: 2rem;
    list-style: none;
    padding: 0;
}

.ai-benefits li {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.ai-benefits .icon {
    font-size: 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    width: 3rem;
    height: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    flex-shrink: 0;
}

.ai-benefits .text strong {
    display: block;
    color: var(--text-white);
    font-size: 1.1rem;
    margin-bottom: 0.2rem;
}

.ai-benefits .text p {
    color: var(--text-silver);
    font-size: 0.95rem;
    line-height: 1.4;
    margin: 0;
}

/* Button with distinct glow */
.btn-glow {
    position: relative;
    overflow: hidden;
    margin-top: 1rem;
}

.btn-glow::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.3) 0%, transparent 70%);
    opacity: 0;
    transform: scale(0.5);
    transition: var(--transition-smooth);
}

.btn-glow:hover::after {
    opacity: 1;
    transform: scale(1);
    transition: 0.5s ease-out;
}


/* Layout Handling */
.ai-grid-layout {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

/* Mobile: Visual First (Default Flex order) */
.ai-visual-container {
    order: -1;
    display: flex;
    justify-content: center;
}

@media (min-width: 900px) {
    .ai-grid-layout {
        display: grid;
        grid-template-columns: 1fr 1fr;
        /* 50/50 split */
        align-items: center;
    }

    .ai-visual-container {
        order: 2;
        /* Visual on Right */
    }

    .feature-content {
        order: 1;
        /* Content on Left */
    }
}


/* ----------------------------------------------------
   AI Visual: Phone Mockup & Interface
   ---------------------------------------------------- */

.phone-mockup {
    width: 300px;
    height: 600px;
    background: linear-gradient(145deg, #1a1a1a 0%, #0a0a0a 100%);
    border-radius: 42px;
    border: 3px solid #3a3a3a;
    position: relative;
    box-shadow:
        0 2px 4px rgba(0, 0, 0, 0.1),
        0 8px 16px rgba(0, 0, 0, 0.2),
        0 16px 32px rgba(0, 0, 0, 0.3),
        0 32px 64px rgba(0, 0, 0, 0.4),
        inset 0 0 0 1px rgba(255, 255, 255, 0.05),
        inset 0 2px 4px rgba(255, 255, 255, 0.03);
    overflow: hidden;
    transform: perspective(800px) rotateY(-8deg) rotateX(2deg);
    transition: transform 0.5s ease;
}

.phone-mockup:hover {
    transform: perspective(800px) rotateY(-4deg) rotateX(1deg) scale(1.02);
}

.phone-mockup::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 39px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, transparent 50%, rgba(0, 0, 0, 0.1) 100%);
    pointer-events: none;
    z-index: 100;
}

.phone-notch {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 140px;
    height: 28px;
    background: #0a0a0a;
    border-bottom-left-radius: 16px;
    border-bottom-right-radius: 16px;
    z-index: 10;
    box-shadow:
        0 2px 8px rgba(0, 0, 0, 0.5),
        inset 0 -1px 2px rgba(255, 255, 255, 0.05);
}

.phone-notch::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 8px;
    height: 8px;
    background: radial-gradient(circle, rgba(100, 100, 255, 0.4) 0%, rgba(50, 50, 150, 0.2) 100%);
    border-radius: 50%;
    box-shadow: 0 0 4px rgba(100, 100, 255, 0.3);
}

.phone-notch::after {
    content: '';
    position: absolute;
    top: 10px;
    left: 25px;
    width: 40px;
    height: 4px;
    background: rgba(20, 20, 20, 0.8);
    border-radius: 2px;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.5);
}

.phone-screen {
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, #0f172a 0%, #1e1b4b 100%);
    padding: 3rem 1rem 1rem;
    /* Top padding for notch */
    display: flex;
    flex-direction: column;
    position: relative;
}

.phone-screen::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.02) 0%, transparent 100%);
    pointer-events: none;
}

/* AI Interface */
.ai-interface {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.ai-header {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 1rem;
}

.ai-avatar-circle {
    width: 40px;
    height: 40px;
    background: rgba(99, 102, 241, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    border: 1px solid rgba(99, 102, 241, 0.5);
}

.ai-brain-icon {
    font-size: 1.2rem;
    z-index: 2;
}

.ai-pulse {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: rgba(99, 102, 241, 0.4);
    animation: pulse-ring 2s infinite;
}

.ai-status {
    font-size: 0.8rem;
    font-weight: 700;
    color: #a5b4fc;
    letter-spacing: 0.1em;
}

/* Chat Stream */
.ai-chat-stream {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    overflow: hidden;
}

.chat-bubble {
    padding: 0.8rem 1rem;
    border-radius: 12px;
    font-size: 0.85rem;
    line-height: 1.4;
    max-width: 90%;
}

.user-bubble {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    align-self: flex-end;
    border-bottom-right-radius: 2px;
}

.system-bubble {
    align-self: flex-start;
}

.ai-response {
    background: rgba(99, 102, 241, 0.15);
    border: 1px solid rgba(99, 102, 241, 0.3);
    color: #e0e7ff;
    align-self: flex-start;
    border-bottom-left-radius: 2px;
    width: 100%;
}

.ai-response strong {
    color: #fff;
    display: block;
    margin-bottom: 0.3rem;
}

.rec-icon {
    display: block;
    font-size: 1.2rem;
    margin-bottom: 0.3rem;
}

/* Animations in Mockup */
.slide-up-1 {
    opacity: 0;
    transform: translateY(20px);
    animation: slideUpFade 0.5s ease forwards 1.5s;
    /* Delay for realism */
}

.slide-up-2 {
    opacity: 0;
    transform: translateY(20px);
    animation: slideUpFade 0.5s ease forwards 3.5s;
    /* Delay for realism */
}

.processing {
    animation: fadeOut 0.5s ease forwards 1.4s;
    /* Hide after "processing" */
    height: 25px;
    /* Fixed height to avoid jump */
}

@keyframes slideUpFade {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeOut {
    to {
        opacity: 0;
        height: 0;
        padding: 0;
        margin: 0;
        visibility: hidden;
    }
}

@keyframes pulse-ring {
    0% {
        transform: scale(1);
        opacity: 0.6;
    }

    100% {
        transform: scale(2);
        opacity: 0;
    }
}

/* Typing Indicator */
.typing-indicator span {
    display: inline-block;
    animation: bounce 1.4s infinite ease-in-out both;
    color: #a5b4fc;
    font-size: 1.2rem;
    line-height: 10px;
}

.typing-indicator span:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-indicator span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes bounce {

    0%,
    80%,
    100% {
        transform: scale(0);
    }

    40% {
        transform: scale(1);
    }
}


/* Mini Chart */
.chart-mini {
    display: flex;
    align-items: flex-end;
    gap: 4px;
    height: 60px;
    margin-bottom: 0.8rem;
    position: relative;
    padding-bottom: 5px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.chart-mini .bar {
    flex: 1;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 2px;
}

.chart-mini .bar.active {
    background: #f43f5e;
    /* Red for "Tendency" */
    box-shadow: 0 0 10px rgba(244, 63, 94, 0.5);
    animation: barPulse 2s infinite;
}

@keyframes barPulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.7;
    }
}

/* Fake Input Area */
.ai-input-area {
    height: 50px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    padding: 0 0.5rem;
    gap: 0.5rem;
}

.fake-input {
    flex: 1;
    height: 30px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
}

.fake-send {
    color: #6366f1;
    font-size: 1.2rem;
}

/* ----------------------------------------------------
   AI Visual: Data Updates
   ---------------------------------------------------- */

.data-card {
    padding: 0;
    overflow: hidden;
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.data-header {
    background: rgba(255, 255, 255, 0.05);
    padding: 0.5rem 1rem;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: #94a3b8;
    text-transform: uppercase;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

/* Table Styles */
.ai-table-container {
    padding: 0.5rem;
}

.ai-table-row {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    padding: 0.4rem 0.5rem;
    border-radius: 4px;
    font-size: 0.8rem;
    align-items: center;
}

.ai-table-row.header {
    color: #64748b;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
}

.ai-table-row span:last-child {
    text-align: right;
}

.ai-table-row:not(.header) {
    background: rgba(255, 255, 255, 0.02);
    margin-bottom: 2px;
    color: #e2e8f0;
}

.ai-table-row small {
    font-size: 0.7em;
    color: #94a3b8;
    margin-left: 2px;
}

.trend-up {
    color: #10b981;
}

.trend-flat {
    color: #94a3b8;
}

.trend-down {
    color: #ef4444;
}

/* Table Animations */
.r1 {
    opacity: 0;
    animation: slideInRow 0.4s ease forwards 1.8s;
}

.r2 {
    opacity: 0;
    animation: slideInRow 0.4s ease forwards 2.0s;
}

.r3 {
    opacity: 0;
    animation: slideInRow 0.4s ease forwards 2.2s;
}

@keyframes slideInRow {
    from {
        opacity: 0;
        transform: translateX(-10px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Graph Styles */
.graph-card {
    padding: 0;
}

.ai-graph-wrapper {
    position: relative;
    height: 100px;
    background: radial-gradient(circle at center, rgba(99, 102, 241, 0.1) 0%, transparent 60%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.scatter-svg {
    width: 100%;
    height: 100%;
}

.dot {
    fill: #818cf8;
    opacity: 0;
    animation: popIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

.d1 {
    animation-delay: 3.6s;
    fill: #fff;
}

.d2 {
    animation-delay: 3.7s;
}

.d3 {
    animation-delay: 3.8s;
    fill: #f43f5e;
    /* Outlier */
}

.d4 {
    animation-delay: 3.9s;
}

.d5 {
    animation-delay: 4.0s;
}

@keyframes popIn {
    from {
        r: 0;
        opacity: 0;
    }

    to {
        r: 3;
        opacity: 1;
    }
}

.insight-text {
    padding: 0.8rem;
    font-size: 0.8rem;
    color: #e0e7ff;
    margin: 0;
}

.scan-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, transparent, rgba(99, 102, 241, 0.1), transparent);
    transform: translateX(-100%);
    animation: scanGraph 2s ease-in-out infinite 3.5s;
}

@keyframes scanGraph {
    0% {
        transform: translateX(-100%);
    }

    100% {
        transform: translateX(100%);
    }
}

/* Footer Section */
.footer-section {
    padding: 2rem 0;
    position: relative;
    background: linear-gradient(180deg, rgba(5, 5, 5, 0) 0%, rgba(5, 5, 5, 0.95) 100%);
    border-top: 1px solid rgba(255, 179, 0, 0.2);
    margin-top: 4rem;
}

.footer-content {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    flex-wrap: wrap;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards;
}

.footer-logo-img {
    height: 35px;
    width: auto;
    filter: drop-shadow(0 0 8px rgba(255, 179, 0, 0.3));
    transition: transform 0.3s ease, filter 0.3s ease;
}

.footer-logo:hover .footer-logo-img {
    transform: scale(1.1);
    filter: drop-shadow(0 0 15px rgba(255, 179, 0, 0.5));
}

.footer-brand {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--text-white);
    letter-spacing: 0.05em;
}

.contact-email {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.25rem;
    background: var(--glass-bg);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    color: var(--accent-primary);
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards 0.2s;
}

.contact-email:hover {
    background: rgba(255, 179, 0, 0.15);
    border-color: var(--accent-primary);
    transform: translateY(-2px);
    box-shadow: 0 0 25px rgba(255, 179, 0, 0.4);
    color: var(--text-white);
}

.email-icon {
    width: 18px;
    height: 18px;
    stroke: currentColor;
    transition: transform 0.3s ease;
}

.contact-email:hover .email-icon {
    transform: scale(1.1) rotate(5deg);
}

.footer-copyright {
    font-size: 0.85rem;
    color: var(--text-silver);
    margin: 0;
    font-family: var(--font-body);
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards 0.4s;
}

@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }
}