:root {
    /* Light Theme Tokens */
    --bg-primary: #f0f4f8;
    /* Softer, less blinding background */
    --bg-secondary: #f8fafc;
    /* Not pure white */
    --text-main: #1e293b;
    --text-muted: #475569;
    /* Slightly darker for better contrast on new bg */
    --accent: #3b82f6;
    --accent-glow: rgba(59, 130, 246, 0.3);
    --glass-bg: rgba(255, 255, 255, 0.6);
    /* Slightly more transparent */
    --glass-border: rgba(255, 255, 255, 0.5);
    --card-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.08);
    /* Slightly stronger shadow */
    --gradient: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
    --gradient-fast: linear-gradient(90deg, #3b82f6, #8b5cf6, #3b82f6);
    --nav-height: 80px;
}

body.dark-theme {
    /* Dark Theme Tokens - Refined Cinematic Deep Blue Palette */
    --bg-primary: #020617;
    /* Much deeper blue/black */
    --bg-secondary: #0f172a;
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --accent: #38bdf8;
    --accent-glow: rgba(56, 189, 248, 0.3);
    --glass-bg: rgba(15, 23, 42, 0.7);
    --glass-border: rgba(255, 255, 255, 0.05);
    --card-shadow: 0 20px 50px -12px rgba(0, 0, 0, 0.5);
    --gradient: linear-gradient(135deg, #0ea5e9 0%, #6366f1 100%);
}

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

body {
    font-family: 'Outfit', sans-serif;
    background: var(--bg-primary);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    transition: background 0.4s ease, color 0.4s ease;
}

/* Custom Cursor & Progress Bar */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: var(--gradient);
    z-index: 10002;
    box-shadow: 0 0 10px var(--accent-glow);
    transition: width 0.1s ease-out;
}

h1,
h2,
h3 {
    font-family: 'Sora', sans-serif;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

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

/* Glassmorphism utility */
.glass {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    box-shadow: var(--card-shadow);
}

/* Grain Overlay */
.grain-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 9999;
    opacity: 0.04;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    mix-blend-mode: overlay;
}

/* Navigation */
.glass-nav {
    position: fixed;
    top: 0;
    width: 100%;
    height: var(--nav-height);
    z-index: 1000;
    background: var(--glass-bg);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid var(--glass-border);
    display: flex;
    align-items: center;
}

.glass-nav .container {
    max-width: 1800px;
    padding: 0 4rem;
}

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

.nav-left {
    flex: 1;
    display: flex;
    justify-content: flex-start;
}

.nav-right {
    flex: 1;
    display: flex;
    justify-content: flex-end;
}

.logo {
    font-size: 1.6rem;
    font-weight: 800;
    letter-spacing: -1px;
    text-decoration: none;
    color: var(--text-main);
    display: flex;
    align-items: center;
    position: relative;
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.05);
}

.logo-accent {
    color: var(--accent);
    margin-right: 5px;
    position: relative;
    text-shadow: 0 0 10px var(--accent-glow);
    animation: logo-shimmer 3s infinite;
}

@keyframes logo-shimmer {

    0%,
    100% {
        opacity: 1;
        filter: brightness(1);
    }

    50% {
        opacity: 0.8;
        filter: brightness(1.3);
        text-shadow: 0 0 20px var(--accent);
    }
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 1.5rem;
    /* Slightly reduced gap to fit more items */
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-main);
    font-weight: 500;
    transition: color 0.3s;
    font-size: 0.95rem;
}

.nav-links a:hover {
    color: var(--accent);
}

.mobile-menu-btn {
    display: none;
}

/* Language Switcher */
.lang-switcher {
    display: flex;
    gap: 0.3rem;
    background: var(--glass-border);
    padding: 3px;
    border-radius: 12px;
    margin: 0;
    border: 1px solid var(--glass-border);
}

.lang-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 0.7rem;
    font-weight: 700;
    padding: 5px 10px;
    cursor: pointer;
    border-radius: 9px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.lang-btn.active {
    background: var(--accent);
    color: white;
}

.lang-btn:hover:not(.active) {
    color: var(--text-main);
    background: var(--glass-border);
}

/* Theme Switch */
.theme-switch-wrapper {
    position: fixed;
    bottom: 30px;
    left: 30px;
    z-index: 1001;
}

.theme-switch {
    display: inline-block;
    height: 34px;
    position: relative;
    width: 60px;
}

.theme-switch input {
    display: none;
}

.slider {
    background-color: #ccc;
    bottom: 0;
    cursor: pointer;
    left: 0;
    position: absolute;
    right: 0;
    top: 0;
    transition: .4s;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 5px;
}

.slider i {
    width: 18px;
    height: 18px;
    color: #444;
}

.slider:before {
    background-color: #fff;
    bottom: 4px;
    content: "";
    height: 26px;
    left: 4px;
    position: absolute;
    transition: .4s;
    width: 26px;
    z-index: 2;
}

input:checked+.slider {
    background-color: var(--accent);
}

input:checked+.slider:before {
    transform: translateX(26px);
}

.slider.round {
    border-radius: 34px;
}

.slider.round:before {
    border-radius: 50%;
}

/* Buttons */
.btn-primary {
    background: var(--gradient);
    color: white;
    padding: 1rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    display: inline-block;
    transition: transform 0.3s, box-shadow 0.3s;
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px var(--accent-glow);
}

.btn-primary-sm {
    background: var(--gradient);
    color: white;
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    display: inline-block;
    transition: transform 0.3s, box-shadow 0.3s;
    border: none;
    cursor: pointer;
    font-family: inherit;
}

.btn-primary-sm:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 15px var(--accent-glow);
}

.btn-secondary {
    background: transparent;
    color: var(--text-main);
    padding: 1rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    display: inline-block;
    border: 2px solid var(--accent);
    margin-left: 1rem;
    transition: background 0.3s;
}

.btn-secondary:hover {
    background: var(--accent-glow);
}

.btn-outline {
    background: transparent;
    color: var(--text-main);
    padding: 1rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    display: inline-block;
    border: 2px solid var(--glass-border);
    transition: all 0.3s;
}

.btn-outline:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.btn-login {
    color: var(--text-main);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    padding: 0.6rem 1.2rem;
    border: 1px solid var(--glass-border);
    border-radius: 50px;
    background: var(--glass-bg);
    transition: all 0.3s;
}

.btn-login:hover {
    background: var(--accent);
    color: #0f172a !important;
    /* Texto oscuro para alto contraste */
    border-color: var(--accent);
    box-shadow: 0 0 15px var(--accent-glow);
    transform: translateY(-2px);
}

.special-nav-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    position: relative;
    overflow: hidden;
    background: transparent;
    border: none;
    padding: 0.6rem 1.4rem;
    border-radius: 50px;
}

.special-nav-btn::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: -100%;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    animation: shine-nav-btn 4s infinite;
}

@keyframes shine-nav-btn {
    0% {
        left: -100%;
    }

    20% {
        left: 100%;
    }

    100% {
        left: 100%;
    }
}

/* Futuristic Featured Button */
.nav-btn-featured {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    position: relative;
    overflow: hidden;
    background: rgba(59, 130, 246, 0.05);
    border: 1px solid rgba(59, 130, 246, 0.2);
    padding: 0.6rem 1.4rem;
    border-radius: 50px;
    box-shadow: 0 0 10px rgba(59, 130, 246, 0.1);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    color: var(--accent) !important;
    font-weight: 700;
    text-decoration: none;
}

.nav-btn-featured i {
    transition: transform 0.4s ease;
}

/* Scanning Light /科技感扫描线 */
.nav-btn-featured::before {
    content: '';
    position: absolute;
    top: 0;
    left: -150%;
    width: 100%;
    height: 100%;
    background: linear-gradient(120deg,
            transparent,
            rgba(56, 189, 248, 0.4),
            transparent);
    transition: all 0.6s;
    z-index: 1;
}

/* Glowing Border Pulse /呼吸灯边缘 */
.nav-btn-featured::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50px;
    padding: 1px;
    background: linear-gradient(90deg, var(--accent), #8b5cf6, var(--accent));
    background-size: 200% 100%;
    -webkit-mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    mask-composite: exclude;
    opacity: 0.5;
    animation: border-flow 4s linear infinite;
}

@keyframes border-flow {
    0% {
        background-position: 0% 50%;
    }

    100% {
        background-position: 200% 50%;
    }
}

.nav-btn-featured:hover {
    transform: translateY(-2px) scale(1.05);
    background: rgba(59, 130, 246, 0.15);
    box-shadow: 0 0 20px var(--accent-glow);
    border-color: var(--accent);
}

.nav-btn-featured:hover::before {
    left: 150%;
}

.nav-btn-featured:hover i {
    transform: rotate(20deg) scale(1.2);
    color: #fff;
}

.special-nav-btn:active {
    transform: scale(0.95);
}

/* Hero Section */
.hero {
    height: 100vh;
    padding-top: var(--nav-height);
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

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

body.light-theme #neural-canvas {
    opacity: 0.3;
}

.blob {
    position: absolute;
    width: 500px;
    height: 500px;
    filter: blur(80px);
    border-radius: 50%;
    opacity: 0.4;
    animation: blob-float 10s infinite alternate;
}

.blob-1 {
    background: #0ea5e9;
    top: -150px;
    right: -100px;
    opacity: 0.3;
}

.blob-2 {
    background: #4f46e5;
    bottom: -150px;
    left: -100px;
    opacity: 0.3;
}

@keyframes blob-float {
    0% {
        transform: translate(0, 0) scale(1);
    }

    100% {
        transform: translate(50px, 50px) scale(1.1);
    }
}

.hero-content {
    max-width: 800px;
}

.hero h1 {
    font-size: 4.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    max-width: 600px;
}

/* Services */
.services {
    padding: 100px 0;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 4rem;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.service-card {
    padding: 3rem 2rem;
    border-radius: 24px;
    transition: transform 0.3s;
    text-align: left;
}

.service-card:hover {
    transform: translateY(-10px);
}

.service-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient);
    color: white;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.service-card h3 {
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.service-card p {
    color: var(--text-muted);
}

/* Expertise / Terminal - EPIC VERSION */
.expertise {
    padding: 120px 0;
    position: relative;
}

.expertise-wrap {
    display: flex;
    align-items: center;
    gap: 4rem;
    padding: 5rem;
    border-radius: 40px;
    position: relative;
    z-index: 1;
    overflow: hidden;
}

/* Moving border effect for Philosophy Card */
.expertise-wrap::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(from 0deg,
            transparent 0 340deg,
            var(--accent) 360deg);
    animation: rotate-border 4s linear infinite;
    z-index: -2;
}

.expertise-wrap::after {
    content: '';
    position: absolute;
    inset: 2px;
    background: var(--bg-secondary);
    border-radius: 38px;
    z-index: -1;
    opacity: 0.95;
}

@keyframes rotate-border {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.expertise-text {
    flex: 1.2;
}

.expertise-text .section-title {
    margin-bottom: 1.5rem;
    font-size: 3.2rem;
    font-weight: 800;
    line-height: 1.1;
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.expertise-text p {
    font-size: 1.15rem;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 3rem;
    border-left: 3px solid var(--accent);
    padding-left: 1.5rem;
    background: linear-gradient(90deg, rgba(56, 189, 248, 0.05) 0%, transparent 100%);
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}

.expertise-visual {
    flex: 1;
    perspective: 1000px;
}

.check-list {
    list-style: none;
    padding: 0;
}

.check-list li {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    margin-bottom: 1rem;
    font-size: 1.1rem;
    font-weight: 600;
    padding: 1rem 1.5rem;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.check-list li:hover {
    transform: translateX(10px) translateY(-3px);
    border-color: var(--accent);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
    background: rgba(255, 255, 255, 0.05);
}

.check-list i {
    color: var(--accent);
    filter: drop-shadow(0 0 5px rgba(56, 189, 248, 0.5));
}

/* Terminal Mockup 3D Effect */
.terminal-mockup {
    background: #0f172a;
    border-radius: 16px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
    transform: rotateY(-5deg) rotateX(5deg);
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.terminal-mockup:hover {
    transform: rotateY(0deg) rotateX(0deg) scale(1.02);
}

.terminal-header {
    background: #0f172a;
    padding: 12px;
    display: flex;
    gap: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.red {
    background: #ff5f56;
}

.yellow {
    background: #ffbd2e;
}

.green {
    background: #27c93f;
}

.terminal-body {
    padding: 24px;
    color: #cbd5e1;
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.9rem;
}

.t-p {
    color: #38bdf8;
    font-weight: bold;
}

.green-text {
    color: #4ade80;
}

.t-line {
    margin-bottom: 8px;
    opacity: 0;
}

.expertise.active .t-line {
    animation-name: type-line;
    animation-duration: 0.5s;
    animation-fill-mode: forwards;
}

.t-line:nth-child(1) {
    animation-delay: 0.5s;
}

.t-line:nth-child(2) {
    animation-delay: 1.2s;
}

.t-line:nth-child(3) {
    animation-delay: 1.8s;
}

.t-line:nth-child(4) {
    animation-delay: 2.4s;
}

.t-line:nth-child(5) {
    animation-delay: 3.0s;
}

.t-line:nth-child(6) {
    animation-delay: 3.6s;
}

@keyframes type-line {
    from {
        opacity: 0;
        transform: translateX(-10px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Founder Section */
.founder-section {
    padding: 100px 0;
}

.founder-card {
    display: flex;
    gap: 4rem;
    align-items: center;
    border-radius: 32px;
    padding: 3rem;
    position: relative;
    overflow: hidden;
}

.founder-img-wrapper {
    flex: 0 0 40%;
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    aspect-ratio: 3/4;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    background-color: var(--bg-card);
}

.founder-img-wrapper::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(15, 23, 42, 0.8) 0%, transparent 60%);
    pointer-events: none;
}

.founder-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(10%) contrast(110%);
    transition: transform 0.5s ease, filter 0.5s ease;
}

.founder-card:hover .founder-img {
    transform: scale(1.03);
    filter: grayscale(0%) contrast(100%);
}

.founder-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.founder-name {
    font-size: 2.5rem;
    margin: 1rem 0 0.5rem;
    font-weight: 800;
}

.founder-role {
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 2rem;
}

.founder-bio p {
    font-size: 1.05rem;
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.founder-signature {
    margin-top: 2rem;
    border-top: 1px solid var(--glass-border);
    padding-top: 1.5rem;
    width: 100%;
}

.signature-text {
    font-family: 'Brush Script MT', 'Bradley Hand', 'Caveat', cursive, sans-serif;
    font-size: 2rem;
    color: var(--accent);
    opacity: 0.8;
}

@media (max-width: 900px) {
    .founder-card {
        flex-direction: column;
        padding: 2rem;
        gap: 2rem;
    }

    .founder-img-wrapper {
        flex: auto;
        width: 100%;
        max-height: 500px;
    }
}

/* Planes Section */
.planes-section {
    padding: 100px 0;
}

.planes-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 4rem;
}

.plan-card {
    border-radius: 24px;
    padding: 3rem 2rem;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.4s ease, border-color 0.4s ease;
}

.plan-card:hover {
    transform: translateY(-10px);
    border-color: rgba(255, 255, 255, 0.2);
}

.plan-card.popular {
    transform: scale(1.05);
    background: linear-gradient(180deg, rgba(56, 189, 248, 0.1) 0%, rgba(30, 41, 59, 0.6) 100%);
    border: 1px solid rgba(56, 189, 248, 0.3);
    z-index: 2;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
}

.popular-badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--gradient);
    color: white;
    padding: 5px 20px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 1px;
    box-shadow: 0 5px 15px rgba(56, 189, 248, 0.4);
}

.plan-header {
    margin-bottom: 2rem;
    border-bottom: 1px solid var(--glass-border);
    padding-bottom: 2rem;
}

.plan-header h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.plan-price {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 1rem;
    color: var(--text-main);
}

.plan-price .currency {
    font-size: 1.5rem;
    vertical-align: top;
    margin-right: 5px;
}

.plan-price .period {
    font-size: 1rem;
    color: var(--text-muted);
    font-weight: 400;
}

.plan-desc {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.5;
}

.plan-features {
    list-style: none;
    flex-grow: 1;
    margin-bottom: 3rem;
}

.plan-features li {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 1rem;
    color: var(--text-main);
    font-size: 0.95rem;
}

.plan-features i {
    color: var(--accent);
    flex-shrink: 0;
}

.plan-btn {
    width: 100%;
    text-align: center;
    justify-content: center;
}

@media (max-width: 992px) {
    .planes-grid {
        grid-template-columns: 1fr;
        max-width: 500px;
        margin: 4rem auto 0;
    }

    .plan-card.popular {
        transform: scale(1);
    }
}

/* CTA & Calendly Section */
.cta-section {
    padding: 120px 0;
    position: relative;
    overflow: hidden;
}

.cta-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.cta-text-side h2 {
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    font-weight: 800;
}

.cta-text-side p {
    color: var(--text-muted);
    font-size: 1.2rem;
    margin-bottom: 3rem;
    line-height: 1.6;
}

.cta-perks {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.perk {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 1.1rem;
    font-weight: 500;
}

.perk i {
    color: var(--accent);
}

.contact-chat-side {
    aspect-ratio: 4/3;
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem;
    text-align: center;
    border: 1px solid rgba(39, 201, 63, 0.2);
    background: linear-gradient(145deg, rgba(39, 201, 63, 0.05), rgba(0, 0, 0, 0));
    box-shadow: 0 0 30px rgba(39, 201, 63, 0.05);
}

.chat-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    color: var(--text-muted);
}

.chat-placeholder>i {
    width: 64px;
    height: 64px;
    color: #27c93f;
    opacity: 0.9;
    filter: drop-shadow(0 0 10px rgba(39, 201, 63, 0.5));
}

.chat-buttons {
    margin-top: 1.5rem;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: center;
}

.btn-whatsapp {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: #27c93f;
    color: #0f172a;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 10px 20px rgba(39, 201, 63, 0.3);
}

.btn-whatsapp:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(39, 201, 63, 0.5);
    background: #2ff34d;
}

.btn-telegram {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: #0088cc;
    color: white;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 10px 20px rgba(0, 136, 204, 0.3);
    width: 100%;
    max-width: 300px;
}

.btn-whatsapp {
    width: 100%;
    max-width: 300px;
}

.btn-telegram:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(0, 136, 204, 0.5);
    background: #00aaff;
}

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

    .cta-text-side h2 {
        font-size: 2.5rem;
    }
}

/* Tech Stack Marquee */
.tech-marquee-wrapper {
    overflow: hidden;
    padding: 3rem 0;
    background: rgba(255, 255, 255, 0.02);
    border-top: 1px solid var(--glass-border);
    border-bottom: 1px solid var(--glass-border);
    white-space: nowrap;
    position: relative;
    display: flex;
}

.tech-marquee-wrapper::before,
.tech-marquee-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    width: 250px;
    height: 100%;
    z-index: 2;
}

.tech-marquee-wrapper::before {
    left: 0;
    background: linear-gradient(to right, var(--bg-main) 0%, transparent 100%);
}

.tech-marquee-wrapper::after {
    right: 0;
    background: linear-gradient(to left, var(--bg-main) 0%, transparent 100%);
}

.tech-marquee {
    display: flex;
    gap: 4rem;
    animation: marquee 30s linear infinite;
    padding-left: 4rem;
    /* Initial offset so it doesn't snap */
}

.tech-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-muted);
    opacity: 0.7;
    transition: all 0.3s ease;
    cursor: default;
}

.tech-item:hover {
    opacity: 1;
    color: white;
    transform: scale(1.05);
}

.tech-item i {
    color: var(--accent);
}

@keyframes marquee {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* Casos de Éxito / Portfolio Section */
.portfolio-section {
    padding: 120px 0;
    position: relative;
    background: url('https://images.unsplash.com/photo-1618005182384-a83a8bd57fbe?q=80&w=2064&auto=format&fit=crop') center/cover fixed;
    z-index: 1;
}

.portfolio-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, var(--bg-primary) 0%, rgba(15, 23, 42, 0.85) 50%, var(--bg-primary) 100%);
    z-index: -1;
    transition: background 0.4s ease;
}

body.light-theme .portfolio-section::before {
    background: linear-gradient(180deg, var(--bg-primary) 0%, rgba(240, 244, 248, 0.85) 50%, var(--bg-primary) 100%);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
    margin-top: 4rem;
}

.portfolio-item {
    border-radius: 24px;
    overflow: hidden;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease;
}

.portfolio-item:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    border-color: rgba(56, 189, 248, 0.4);
}

.case-study-card {
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.case-header {
    border-bottom: 1px solid var(--glass-border);
    padding-bottom: 1.5rem;
}

.case-header h3 {
    margin-top: 1.5rem;
    font-size: 1.8rem;
    line-height: 1.2;
}

.badge {
    display: inline-block;
    background: rgba(56, 189, 248, 0.1);
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--accent);
    border: 1px solid rgba(56, 189, 248, 0.2);
    letter-spacing: 1px;
    text-transform: uppercase;
}

.case-metric {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 1.5rem;
    text-align: center;
    margin-bottom: 1.5rem;
    transition: background 0.3s ease;
}

.portfolio-item:hover .case-metric {
    background: rgba(56, 189, 248, 0.05);
    border-color: rgba(56, 189, 248, 0.2);
}

.case-metric .metric-value {
    display: block;
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.case-metric .metric-label {
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
    color: var(--text-muted);
    font-weight: 600;
}

.case-details p {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 1.2rem;
    line-height: 1.6;
}

.case-details p:last-child {
    margin-bottom: 0;
}

.case-details strong {
    color: var(--text-main);
    display: inline-block;
    margin-right: 0.25rem;
}

/* FAQ Section */
.faq-section {
    padding: 100px 0;
}

.faq-grid {
    max-width: 800px;
    margin: 4rem auto 0;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.faq-item {
    padding: 2rem;
    border-radius: 20px;
    transition: all 0.3s;
}

.faq-item:hover {
    border-color: var(--accent);
    background: var(--accent-glow);
}

.faq-item h3 {
    margin-bottom: 1rem;
    font-size: 1.2rem;
    color: var(--accent);
}

.faq-item p {
    color: var(--text-muted);
}

/* Footer */
.footer {
    padding: 80px 0 40px;
    border-top: 1px solid var(--glass-border);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer h4 {
    margin-bottom: 1.5rem;
    color: var(--accent);
}

.footer ul {
    list-style: none;
}

.footer ul li {
    margin-bottom: 0.75rem;
}

.footer ul li a {
    text-decoration: none;
    color: var(--text-muted);
    transition: color 0.3s;
}

.footer ul li a:hover {
    color: var(--accent);
}

.footer-link {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.3s;
    font-size: 1rem;
}

.footer-link:hover {
    color: var(--accent);
}

.social-icons {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.social-icons a {
    color: var(--text-muted);
    transition: color 0.3s;
}

.social-icons a:hover {
    color: var(--accent);
}

.footer-bottom {
    border-top: 1px solid var(--glass-border);
    padding-top: 2rem;
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Animations on scroll */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

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

@media (max-width: 1150px) {
    .glass-nav .container {
        padding: 0 0.8rem;
    }

    .nav-left,
    .nav-right {
        flex: none;
    }

    .logo {
        font-size: 0.85rem;
    }

    .nav-right {
        gap: 0.25rem !important;
    }

    .btn-login {
        padding: 0.25rem 0.5rem;
        font-size: 0.6rem;
    }

    .lang-switcher {
        gap: 0.1rem;
        padding: 2px;
    }

    .lang-btn {
        padding: 2px 4px;
        font-size: 0.55rem;
        border-radius: 6px;
    }

    .mobile-menu-btn {
        display: block;
        background: transparent;
        border: none;
        color: var(--text-main);
        cursor: pointer;
        padding: 5px;
        position: relative;
        z-index: 1010;
        transition: transform 0.3s;
    }

    .mobile-menu-btn.active {
        transform: rotate(90deg);
        color: var(--accent);
    }

    .nav-links {
        display: flex;
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background: rgba(15, 23, 42, 0.95);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2rem;
        z-index: 1000;
        opacity: 0;
        pointer-events: none;
        transition: all 0.4s ease;
    }

    .nav-links.active {
        opacity: 1;
        pointer-events: auto;
    }

    .nav-links li {
        opacity: 0;
        transform: translateY(20px);
        transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    }

    .nav-links.active li {
        opacity: 1;
        transform: translateY(0);
    }

    .nav-links.active li:nth-child(1) {
        transition-delay: 0.1s;
    }

    .nav-links.active li:nth-child(2) {
        transition-delay: 0.2s;
    }

    .nav-links.active li:nth-child(3) {
        transition-delay: 0.3s;
    }

    .nav-links.active li:nth-child(4) {
        transition-delay: 0.4s;
    }

    .nav-links.active li:nth-child(5) {
        transition-delay: 0.5s;
    }

    .nav-links.active li:nth-child(6) {
        transition-delay: 0.6s;
    }

    .nav-links a {
        font-size: 1.8rem;
        font-weight: 700;
        color: white;
    }

    .nav-links a.btn-primary-sm {
        background: var(--gradient);
        padding: 1rem 2rem;
        border-radius: 50px;
        font-size: 1.2rem;
    }

    body.menu-open {
        overflow: hidden;
    }

    .hero h1 {
        font-size: 2.2rem;
        line-height: 1.3;
    }

    .hero p {
        font-size: 1.05rem;
    }

    .hero-actions {
        display: flex;
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }

    .btn-secondary {
        margin-left: 0;
        width: 100%;
        text-align: center;
    }

    .btn-primary {
        width: 100%;
        text-align: center;
    }

    .expertise-wrap {
        flex-direction: column;
        padding: 2rem;
    }

    .expertise-text .section-title {
        font-size: 2.2rem;
    }

    .expertise-text p {
        font-size: 1rem;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .portfolio-grid {
        grid-template-columns: 1fr;
    }

    .infrastructure-overlay {
        padding: 1.2rem;
        width: 85%;
        margin: 0 auto;
    }

    .infrastructure-overlay .section-title {
        font-size: 1.5rem;
        margin-bottom: 0.3rem !important;
    }

    .infrastructure-overlay p {
        font-size: 0.85rem;
        margin-top: 0.3rem;
        line-height: 1.4;
    }

    .nav-right .btn-primary-sm {
        padding: 0.6rem 1.2rem;
        font-size: 0.85rem;
    }

    .case-study-card {
        padding: 1.5rem;
    }

    .case-metric {
        padding: 1rem;
    }

    .case-metric .metric-value {
        font-size: 2.8rem;
    }

    .case-header h3 {
        font-size: 1.5rem;
    }

    .theme-switch-wrapper {
        bottom: 20px;
        left: 20px;
    }
}

/* Floating Action Button (CTA) */
.floating-cta {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: var(--gradient);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    box-shadow: 0 10px 25px rgba(6, 182, 212, 0.4);
    z-index: 998;
    cursor: pointer;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.floating-cta i {
    width: 28px;
    height: 28px;
    z-index: 2;
}

.floating-cta:hover {
    transform: scale(1.1) translateY(-5px);
    box-shadow: 0 15px 35px rgba(6, 182, 212, 0.6);
}

.pulse-ring {
    position: absolute;
    width: 100%;
    height: 100%;
    background: var(--accent);
    border-radius: 50%;
    z-index: 1;
    animation: ctaPulse 2s cubic-bezier(0.215, 0.61, 0.355, 1) infinite;
}

@keyframes ctaPulse {
    0% {
        transform: scale(0.95);
        opacity: 0.8;
    }

    70% {
        transform: scale(1.6);
        opacity: 0;
    }

    100% {
        transform: scale(0.95);
        opacity: 0;
    }
}

@media (max-width: 1150px) {
    .floating-cta {
        bottom: 20px;
        right: 20px;
        width: 55px;
        height: 55px;
    }
}

/* Modal Client / ROI Tool */
.text-muted {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 2rem;
}

.text-danger {
    color: #ff5f56;
    font-size: 2.5rem;
    margin: 0.5rem 0;
    font-weight: 800;
    text-shadow: 0 0 10px rgba(255, 95, 86, 0.5);
}

.hidden {
    display: none !important;
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-content {
    position: relative;
    max-width: 900px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    background: var(--bg-secondary);
    border-radius: 24px;
    padding: 3rem;
    border: 1px solid var(--glass-border);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.8);
    transform: translateY(20px) scale(0.95);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.modal-overlay.active .modal-content {
    transform: translateY(0) scale(1);
}

.close-btn {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    transition: all 0.3s;
}

.close-btn:hover {
    color: white;
    background: rgba(255, 255, 255, 0.1);
}

.modal-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.modal-login h3,
.modal-roi h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.input-group {
    margin-bottom: 1.5rem;
    position: relative;
    display: flex;
    flex-direction: column;
}

.input-group label {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.input-group i {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
}

.login-form .input-group input {
    padding-left: 3rem;
}

.input-group input {
    width: 100%;
    padding: 0.8rem 1rem;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    color: white;
    font-family: inherit;
    transition: all 0.3s;
}

.input-group input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.2);
}

.modal-roi {
    position: relative;
    padding-left: 3rem;
}

.modal-roi::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 1px;
    background: linear-gradient(to bottom, transparent, var(--glass-border), transparent);
}

.roi-badge {
    display: inline-block;
    background: rgba(56, 189, 248, 0.15);
    color: var(--accent);
    padding: 0.4rem 0.8rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 1px;
    border: 1px solid rgba(56, 189, 248, 0.3);
    margin-bottom: 1rem;
}

.roi-title {
    font-size: 1.25rem;
    line-height: 1.4;
    margin-bottom: 2rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    align-items: flex-end;
    margin-bottom: 0.5rem;
}

.form-row .input-group {
    margin-bottom: 0;
}

.roi-result {
    margin-top: 2rem;
    padding: 1.5rem;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    text-align: center;
}

.loader {
    width: 30px;
    height: 30px;
    border: 3px solid rgba(255, 255, 255, 0.1);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

@keyframes spin {
    100% {
        transform: rotate(360deg);
    }
}

.roi-subtext {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

@media (max-width: 1150px) {
    .modal-content {
        padding: 2rem 1.5rem;
    }

    .modal-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .modal-roi {
        padding-left: 0;
        padding-top: 2rem;
    }

    .modal-roi::before {
        width: 100%;
        height: 1px;
        top: 0;
        left: 0;
        background: linear-gradient(to right, transparent, var(--glass-border), transparent);
    }
}

/* Easter Egg Terminal */
.easter-egg-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    z-index: 10005;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s;
    font-family: 'Courier New', Courier, monospace;
}

.easter-egg-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.hacker-terminal {
    width: 90%;
    max-width: 700px;
    height: 450px;
    background: #0f172a;
    border: 1px solid rgba(56, 189, 248, 0.3);
    border-radius: 12px;
    box-shadow: 0 0 40px rgba(56, 189, 248, 0.15), inset 0 0 20px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transform: scale(0.9);
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.easter-egg-overlay.active .hacker-terminal {
    transform: scale(1);
}

.hacker-terminal-header {
    background: #1e293b;
    padding: 10px 15px;
    display: flex;
    align-items: center;
    gap: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.hacker-terminal-header .dot {
    cursor: pointer;
}

.terminal-title {
    color: #94a3b8;
    font-size: 0.85rem;
    margin-left: auto;
    margin-right: auto;
}

.hacker-terminal-body {
    flex: 1;
    padding: 20px;
    color: #4ade80;
    /* Matrix Green */
    overflow-y: auto;
    font-size: 0.95rem;
    line-height: 1.5;
    text-shadow: 0 0 5px rgba(74, 222, 128, 0.4);
}

.hacker-terminal-body div {
    margin-bottom: 5px;
}

.hacker-terminal-input-line {
    display: flex;
    padding: 0 20px 20px;
    background: #0f172a;
}

.hacker-terminal-input-line .prompt {
    color: #38bdf8;
    margin-right: 10px;
    font-weight: bold;
}

#hacker-input {
    flex: 1;
    background: transparent;
    border: none;
    color: #f8fafc;
    font-family: inherit;
    font-size: 0.95rem;
    outline: none;
    caret-color: #4ade80;
}

/* Infrastructure Animated Slider Section */
.infrastructure-section {
    position: relative;
    width: 100%;
    height: 70vh;
    min-height: 500px;
    margin: 6rem 0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.infrastructure-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.infrastructure-slider .slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    animation: crossfadeKenBurns 18s ease-in-out infinite;
}

/* 3 slides -> 18s total. Each slide visible for 6s. */
.infrastructure-slider .slide-1 {
    background-image: url('https://images.unsplash.com/photo-1497366216548-37526070297c?q=80&w=2069&auto=format&fit=crop');
    animation-delay: 0s;
}

.infrastructure-slider .slide-2 {
    background-image: url('https://images.unsplash.com/photo-1522071820081-009f0129c71c?q=80&w=2070&auto=format&fit=crop');
    animation-delay: 6s;
}

.infrastructure-slider .slide-3 {
    background-image: url('https://images.unsplash.com/photo-1497215728101-856f4ea42174?q=80&w=2070&auto=format&fit=crop');
    animation-delay: 12s;
}

@keyframes crossfadeKenBurns {
    0% {
        opacity: 0;
        transform: scale(1);
    }

    10% {
        opacity: 1;
    }

    23% {
        opacity: 1;
    }

    33% {
        opacity: 0;
        transform: scale(1.1);
    }

    100% {
        opacity: 0;
        transform: scale(1.1);
    }
}

.infrastructure-overlay {
    position: relative;
    z-index: 2;
    padding: 3rem;
    max-width: 650px;
    text-align: center;
    margin: 0 1rem;
    background: rgba(15, 23, 42, 0.4);
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.5);
    border-radius: 24px;
}

.infrastructure-overlay p {
    color: var(--text-muted);
    font-size: 1.15rem;
    margin-top: 1rem;
}

body.light-theme .infrastructure-overlay {
    background: rgba(255, 255, 255, 0.5);
}