/* ===================================================
   MERAKI TECH — devs.ai-inspired Clean Dark Landing
   Design: Space Grotesk + Pure Black + Purple Accents
=================================================== */

/* ─── FONTS ──────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300;400;500;600;700&family=Inter:wght@300;400;500;600&display=swap');

/* ─── CSS VARIABLES ─────────────────────────────── */
:root {
    --bg-primary: transparent;
    --bg-secondary: #09090B;
    --bg-card: #111111;

    --primary-300: #d8b4fe;
    --primary-400: #c084fc;
    --primary-500: #A855F7;
    --primary-600: #9333ea;
    --primary-700: #7e22ce;

    --text-primary: #FFFFFF;
    --text-secondary: #E4E4E7;
    --text-tertiary: #A1A1AA;
    --text-quaternary: #71717A;

    --grad-primary: linear-gradient(135deg, #7e22ce 0%, #A855F7 50%, #c084fc 100%);
    --border-subtle: rgba(255, 255, 255, 0.08);
    --border-hover: rgba(168, 85, 247, 0.3);
    --nav-height: 105px;
    --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
}

/* ─── RESET & BASE ──────────────────────────────── */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: #0E0C1A;
    /* Fallback deep dark cool violet/indigo */
    color: var(--text-primary);
    line-height: 1.7;
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
}

/* ─── RADIANT GRADIENT BACKGROUND ───────────────── */
body::before,
body::after {
    content: '';
    position: fixed;
    width: 200vw;
    height: 200vh;
    top: -50vh;
    left: -50vw;
    pointer-events: none;
    z-index: -2;
}

body::before {
    background:
        radial-gradient(circle at 50% 50%, rgba(124, 58, 237, 0.18) 0%, transparent 45%),
        radial-gradient(circle at 20% 80%, rgba(99, 102, 241, 0.14) 0%, transparent 40%);
    animation: bgOrbRotate 45s linear infinite;
}

body::after {
    background:
        radial-gradient(circle at 80% 20%, rgba(79, 70, 229, 0.15) 0%, transparent 40%),
        radial-gradient(circle at 40% 10%, rgba(139, 92, 246, 0.12) 0%, transparent 35%);
    animation: bgOrbRotate 35s linear infinite reverse;
}

@keyframes bgOrbRotate {
    0% {
        transform: rotate(0deg);
    }

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

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

a {
    color: inherit;
    text-decoration: none;
}

ul {
    list-style: none;
}

button {
    cursor: pointer;
    font-family: inherit;
    border: none;
    background: none;
}

/* ─── TYPOGRAPHY ────────────────────────────────── */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    line-height: 1.1;
}

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

/* ─── LAYOUT ────────────────────────────────────── */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 1;
}

.container--narrow {
    max-width: 800px;
}

/* ─── GRADIENT BLOBS ────────────────────────────── */
.gradient-blob {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(168, 85, 247, 0.12) 0%, transparent 70%);
    filter: blur(80px);
    pointer-events: none;
    z-index: 0;
}

.gradient-blob--hero-left {
    width: 600px;
    height: 600px;
    top: 0;
    left: -200px;
}

.gradient-blob--hero-right {
    width: 500px;
    height: 500px;
    top: 100px;
    right: -200px;
    background: radial-gradient(circle, rgba(126, 34, 206, 0.1) 0%, transparent 70%);
}

.gradient-blob--services {
    width: 700px;
    height: 700px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle, rgba(168, 85, 247, 0.08) 0%, transparent 65%);
}

.gradient-blob--metrics {
    width: 600px;
    height: 600px;
    top: 50%;
    right: -150px;
    background: radial-gradient(circle, rgba(168, 85, 247, 0.1) 0%, transparent 65%);
}

.gradient-blob--cta {
    width: 700px;
    height: 700px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle, rgba(168, 85, 247, 0.15) 0%, transparent 60%);
}

/* ─── ANIMATIONS ────────────────────────────────── */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(28px);
    }

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

@keyframes logoReveal {
    from {
        opacity: 0;
        transform: scale(0.7) rotate(-10deg);
        filter: blur(8px);
    }

    to {
        opacity: 1;
        transform: scale(1) rotate(0deg);
        filter: blur(0);
    }
}

/* Viewport-triggered */
.animate-on-load {
    opacity: 0;
}

.animate-on-load.loaded {
    animation: fadeInUp 0.7s var(--ease-smooth) both;
}

.animate-scroll {
    opacity: 0;
    /* Elementos impares entran desde la izquierda */
    transform: translateX(-40px);
    transition: opacity 0.7s var(--ease-smooth), transform 0.7s var(--ease-smooth);
}

/* Elementos pares entran desde la derecha */
.animate-scroll:nth-child(even) {
    transform: translateX(40px);
}

.animate-scroll.visible {
    opacity: 1;
    transform: translateX(0);
}

/* ─── BUTTONS (devs.ai flat style) ──────────────── */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--primary-500);
    color: #fff;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    padding: 14px 32px;
    border-radius: 12px;
    border: none;
    transition: background 0.3s ease, transform 0.25s ease, box-shadow 0.3s ease;
    white-space: nowrap;
}

.btn-primary:hover {
    background: var(--primary-600);
    transform: translateY(-2px);
}

.btn-whatsapp {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    background: #25D366;
    color: #fff;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    padding: 16px 32px;
    border-radius: 12px;
    border: none;
    transition: background 0.3s ease, transform 0.25s ease, box-shadow 0.3s ease;
    white-space: nowrap;
    box-shadow: 0 4px 14px rgba(37, 211, 102, 0.25);
}

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

.btn-whatsapp svg {
    transition: transform 0.25s ease;
}

.btn-whatsapp:hover svg {
    transform: scale(1.1) rotate(5deg);
}

.btn-primary svg {
    transition: transform 0.25s ease;
}

.btn-primary:hover svg {
    transform: translateX(3px);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: transparent;
    color: var(--text-secondary);
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1rem;
    font-weight: 500;
    padding: 14px 32px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    transition: border-color 0.3s ease, color 0.3s ease, transform 0.25s ease;
}

.btn-secondary:hover {
    border-color: rgba(255, 255, 255, 0.4);
    color: var(--text-primary);
    transform: translateY(-2px);
}

.btn-full {
    width: 100%;
    justify-content: center;
}

/* =========================================================
   NAVBAR (PRESERVED EXACTLY — DO NOT MODIFY)
========================================================= */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: background 0.35s ease, border-color 0.35s ease, backdrop-filter 0.35s ease;
    border-bottom: 1px solid transparent;
}

.navbar.scrolled {
    background: rgba(0, 0, 0, 0.88);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-bottom-color: rgba(168, 85, 247, 0.12);
}

.nav-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
    height: var(--nav-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    flex: 1;
}

.nav-links--left {
    justify-content: flex-end;
}

.nav-links--right {
    justify-content: flex-start;
    gap: 0.25rem;
}

.nav-link {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.05rem;
    font-weight: 500;
    color: var(--text-tertiary);
    padding: 8px 18px;
    border-radius: 8px;
    transition: color 0.25s ease, background 0.25s ease;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--primary-500);
    border-radius: 1px;
    transition: width 0.3s ease;
}

.nav-link:hover {
    color: var(--text-primary);
    background: rgba(168, 85, 247, 0.06);
}

.nav-link:hover::after {
    width: calc(100% - 24px);
}

.btn-nav-cta {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    color: #fff;
    background: var(--grad-primary);
    padding: 12px 28px;
    border-radius: 10px;
    transition: transform 0.25s ease, filter 0.25s ease;
    white-space: nowrap;
    margin-left: 0.5rem;
}

.btn-nav-cta:hover {
    transform: translateY(-2px);
    filter: brightness(1.12);
}

.nav-logo {
    flex-shrink: 0;
    display: flex;
    align-items: center;
}

.logo-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
    transition: transform 0.3s ease;
}

.nav-logo:hover .logo-wrapper {
    transform: scale(1.04);
}

.logo-img {
    width: 44px;
    height: 44px;
    object-fit: contain;
    border-radius: 10px;
    animation: logoReveal 1s var(--ease-smooth) 0.3s both;
    filter: drop-shadow(0 0 14px rgba(168, 85, 247, 0.5));
    transition: filter 0.3s ease;
}

.nav-logo:hover .logo-img {
    filter: drop-shadow(0 0 22px rgba(168, 85, 247, 0.8));
}

.logo-text {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.45rem;
    font-weight: 700;
    color: var(--text-primary);
    animation: logoReveal 1s var(--ease-smooth) 0.5s both;
}

@keyframes logoTextTypewriter {
    0% {
        clip-path: inset(0 100% 0 0);
        opacity: 0;
    }

    5% {
        opacity: 1;
    }

    100% {
        clip-path: inset(0 0 0 0);
        opacity: 1;
    }
}

.logo-text--typewriter {
    display: inline-block;
    white-space: nowrap;
    animation: logoTextTypewriter 2s cubic-bezier(0.4, 0, 0.2, 1) 0.1s both;
}

.logo-text--accent {
    background: var(--grad-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
    border-radius: 8px;
    transition: background 0.25s ease;
    z-index: 110;
}

.hamburger:hover {
    background: rgba(168, 85, 247, 0.08);
}

.hamburger-line {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text-secondary);
    border-radius: 1px;
    transition: all 0.35s var(--ease-smooth);
}

.hamburger.active .hamburger-line:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.hamburger.active .hamburger-line:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.hamburger.active .hamburger-line:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.mobile-menu {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.96);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
    z-index: 100;
}

.mobile-menu.active {
    opacity: 1;
    visibility: visible;
}

.mobile-links {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    text-align: center;
}

.mobile-link {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--text-secondary);
    padding: 12px 24px;
    border-radius: 12px;
    transition: color 0.25s ease, background 0.25s ease;
    display: block;
}

.mobile-link:hover {
    color: var(--primary-400);
    background: rgba(168, 85, 247, 0.07);
}

.btn-mobile-cta {
    display: inline-block;
    margin-top: 1rem;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
    color: #fff;
    background: var(--grad-primary);
    padding: 16px 40px;
    border-radius: 14px;
    transition: transform 0.25s ease, filter 0.25s ease;
}

.btn-mobile-cta:hover {
    transform: scale(1.04);
}

/* =========================================================
   HERO — Centered, Clean with macOS Window Frame
========================================================= */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden;
    padding: calc(var(--nav-height) + 3rem) 2rem 5rem;
    background: var(--bg-primary);
}

/* ── macOS Window Frame ─────────────────────────── */
.hero-window {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 1150px;
    border-radius: 20px;
    background: linear-gradient(145deg, #16102a 0%, #0e0c1e 40%, #1a0c24 100%);
    border: 1px solid rgba(168, 85, 247, 0.18);
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.05),
        0 40px 100px rgba(0, 0, 0, 0.6),
        0 0 80px rgba(100, 40, 200, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.07);
    overflow: hidden;
}

/* Title bar */
.hero-window__bar {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    padding: 14px 20px;
    background: rgba(0, 0, 0, 0.35);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.hero-window__dots {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.hero-window__dot {
    width: 13px;
    height: 13px;
    border-radius: 50%;
    display: block;
    transition: opacity 0.2s ease;
}

.hero-window__dot--red {
    background: #FF5F57;
    box-shadow: 0 0 6px rgba(255, 95, 87, 0.5);
}

.hero-window__dot--yellow {
    background: #FEBC2E;
    box-shadow: 0 0 6px rgba(254, 188, 46, 0.5);
}

.hero-window__dot--green {
    background: #28C840;
    box-shadow: 0 0 6px rgba(40, 200, 64, 0.5);
}

.hero-window__dots:hover .hero-window__dot {
    opacity: 0.85;
}

.hero-window__bar-label {
    flex: 1;
    text-align: center;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.78rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.25);
    letter-spacing: 0.04em;
    pointer-events: none;
    padding-right: calc(3 * 13px + 2 * 8px + 1.25rem);
    /* optical centering */
}

/* Window body */
.hero-window__body {
    padding: 2rem;
    background: rgba(0, 0, 0, 0.15);
}

/* Inner panel (the "screen" inside the window) */
.hero-window__panel {
    border-radius: 12px;
    background: linear-gradient(160deg, rgba(20, 10, 40, 0.9) 0%, rgba(10, 5, 20, 0.95) 100%);
    border: 1px solid rgba(255, 255, 255, 0.06);
    padding: 4rem 2.5rem;
    box-shadow: inset 0 0 60px rgba(80, 20, 150, 0.08);
    position: relative;
    overflow: hidden;
}

/* Inner ambient glow */
.hero-window__panel::before {
    content: '';
    position: absolute;
    top: -40%;
    left: 50%;
    transform: translateX(-50%);
    width: 70%;
    height: 280px;
    background: radial-gradient(ellipse, rgba(120, 50, 220, 0.15) 0%, transparent 70%);
    pointer-events: none;
}

.hero-container {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: clamp(2.2rem, 4.5vw, 3.8rem);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.03em;
    color: var(--text-primary);
    margin-bottom: 1.75rem;
}

/* Rotating text */
.hero-rotating-wrapper {
    display: inline-block;
    height: 1.15em;
    overflow: hidden;
    vertical-align: bottom;
}

.hero-rotating {
    display: block;
    position: relative;
    height: 1.15em;
}

.hero-rotating-word {
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
    white-space: nowrap;
}

.hero-rotating-word.active {
    opacity: 1;
    transform: translateY(0);
    position: relative;
}

.hero-subtitle {
    font-size: 1.1rem;
    color: var(--text-tertiary);
    line-height: 1.7;
    max-width: 580px;
    margin: 0 auto 2.5rem;
}

.hero-cta-group {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

/* =========================================================
   SECTION BLOCK HEADERS (devs.ai pattern)
========================================================= */
.block-header {
    text-align: center;
    margin-bottom: 3.5rem;
}

.block-title {
    font-size: clamp(2rem, 3.5vw, 3rem);
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1rem;
    line-height: 1.15;
}

.block-subtitle {
    font-size: 1.1rem;
    color: var(--text-tertiary);
    max-width: 620px;
    margin: 0 auto;
    line-height: 1.7;
}

/* =========================================================
   SERVICE BLOCKS
========================================================= */
.service-block {
    position: relative;
    padding: 7rem 0;
    overflow: hidden;
}

/* Zig-Zag Service Layout */
.service-split {
    display: flex;
    align-items: center;
    gap: 4rem;
}

.service-split--reversed {
    flex-direction: row-reverse;
}

.service-content {
    flex: 1;
    text-align: left;
}

.service-content .block-title {
    text-align: left;
    margin-bottom: 1.25rem;
}

.service-content .block-subtitle {
    text-align: left;
    margin-left: 0;
    margin-right: auto;
}

.service-media {
    flex: 1;
    width: 100%;
}

/* Bento grid (for web service) */
.bento-grid {
    display: grid;
    gap: 1rem;
}

.bento-grid--web {
    grid-template-columns: 1.5fr 1fr;
    grid-template-rows: auto auto;
}

.bento-grid--web .bento-card--lg {
    grid-row: 1 / 3;
}

.bento-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    transition: border-color 0.3s ease, transform 0.3s ease;
    min-height: 180px;
}

.bento-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-4px);
}

.bento-img {
    width: 100%;
    height: 100%;
    min-height: 380px;
    object-fit: cover;
    display: block;
    opacity: 0.8;
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.bento-card:hover .bento-img {
    opacity: 0.9;
    transform: scale(1.03);
}

.bento-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1.25rem;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, transparent 100%);
}

.bento-tag {
    display: inline-block;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--primary-300);
    background: rgba(168, 85, 247, 0.15);
    border: 1px solid rgba(168, 85, 247, 0.25);
    padding: 5px 12px;
    border-radius: 6px;
}

.bento-content-card {
    padding: 1.75rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.bento-content-card .bento-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: rgba(168, 85, 247, 0.1);
    border: 1px solid rgba(168, 85, 247, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-400);
    margin-bottom: 1rem;
}

.bento-content-card h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.bento-content-card p {
    font-size: 0.875rem;
    color: var(--text-quaternary);
    line-height: 1.6;
}

.bento-tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 0.75rem;
}

.tech-tag {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--primary-300);
    background: rgba(168, 85, 247, 0.1);
    border: 1px solid rgba(168, 85, 247, 0.2);
    padding: 5px 12px;
    border-radius: 100px;
}

.bento-tech-label {
    font-size: 0.75rem;
    color: var(--text-quaternary);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 500;
}

/* Showcase card (full-width image card) */
.showcase-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    transition: border-color 0.3s ease, transform 0.3s ease;
}

.showcase-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-4px);
}

.showcase-video {
    width: 100%;
    height: auto;
    display: block;
    opacity: 0.85;
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.showcase-card:hover .showcase-video {
    opacity: 1;
    transform: scale(1.01);
}

.showcase-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1.5rem;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, transparent 100%);
}

.showcase-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

/* =========================================================
   METRICS
========================================================= */
.metrics {
    position: relative;
    padding: 7rem 0;
    background: var(--bg-primary);
    overflow: hidden;
}

.metrics-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.metric-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 16px;
    padding: 2rem 1.5rem;
    text-align: left;
    transition: border-color 0.3s ease, transform 0.3s ease;
}

.metric-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-4px);
}

.metric-label {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.7rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-quaternary);
    margin-bottom: 0.75rem;
}

.metric-number {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 2.8rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1;
    margin-bottom: 0.75rem;
}

.metric-desc {
    font-size: 0.85rem;
    color: var(--text-quaternary);
    line-height: 1.6;
}

/* =========================================================
   ABOUT / NOSOTROS
========================================================= */
.about {
    padding: 7rem 0;
    background: var(--bg-primary);
}

.about-lead {
    max-width: 700px !important;
}

.about-lead strong {
    color: var(--primary-300);
    font-weight: 600;
}

.about-text-block {
    max-width: 700px;
    margin: 0 auto 3.5rem;
    text-align: center;
}

.about-text-block p {
    font-size: 1rem;
    color: var(--text-tertiary);
    line-height: 1.8;
    margin-bottom: 1rem;
}

.about-text-block p:last-child {
    margin-bottom: 0;
}

.values-row {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.value-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    padding: 1.5rem 2rem;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 14px;
    transition: border-color 0.3s ease, transform 0.3s ease;
    min-width: 140px;
}

.value-item:hover {
    border-color: var(--border-hover);
    transform: translateY(-4px);
}

.value-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: rgba(168, 85, 247, 0.1);
    border: 1px solid rgba(168, 85, 247, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-400);
}

.value-label {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-secondary);
}

/* =========================================================
   TESTIMONIAL
========================================================= */
.testimonial {
    padding: 7rem 0;
    background: var(--bg-primary);
    overflow: hidden;
}

.testimonial-slider-container {
    width: 100%;
    overflow: hidden;
    position: relative;
    padding: 1rem 0;
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 15%, black 85%, transparent 100%);
    mask-image: linear-gradient(to right, transparent 0%, black 15%, black 85%, transparent 100%);
}

.testimonial-track {
    display: flex;
    width: max-content;
}

.testimonial-track:hover .testimonial-track-inner {
    animation-play-state: paused;
}

.testimonial-track-inner {
    display: flex;
    gap: 2rem;
    padding-right: 2rem;
    animation: testimonialMarquee 60s linear infinite;
}

@keyframes testimonialMarquee {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-100%);
    }
}

.testimonial-card {
    width: 650px;
    max-width: 85vw;
    flex-shrink: 0;
    text-align: center;
    padding: 3rem 2rem;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 20px;
    position: relative;
}

.testimonial-quote {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 5rem;
    font-weight: 700;
    line-height: 1;
    background: var(--grad-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: absolute;
    top: 1rem;
    left: 2rem;
    opacity: 0.4;
}

.testimonial-text {
    font-size: 1.15rem;
    color: var(--text-secondary);
    line-height: 1.8;
    font-style: normal;
    margin-bottom: 2rem;
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
}

.testimonial-author {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.testimonial-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(168, 85, 247, 0.15);
    border: 1px solid rgba(168, 85, 247, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--primary-400);
    flex-shrink: 0;
}

.testimonial-name {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
    text-align: left;
}

.testimonial-role {
    font-size: 0.8rem;
    color: var(--text-quaternary);
    text-align: left;
}

/* =========================================================
   FAQ — Clean minimal accordion
========================================================= */
.faq {
    padding: 7rem 0;
    background: var(--bg-primary);
}

.faq-list {}

.faq-item {
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.faq-item:first-of-type {
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    padding: 1.5rem 0;
    text-align: left;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-secondary);
    transition: color 0.25s ease;
    cursor: pointer;
}

.faq-question:hover {
    color: var(--primary-300);
}

.faq-question[aria-expanded="true"] {
    color: var(--primary-400);
}

.faq-icon {
    flex-shrink: 0;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.25rem;
    font-weight: 300;
    color: var(--text-quaternary);
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.35s ease, color 0.25s ease;
}

.faq-question[aria-expanded="true"] .faq-icon {
    transform: rotate(45deg);
    color: var(--primary-500);
}

.faq-answer {
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.4s var(--ease-smooth);
}

.faq-answer.open {
    max-height: 300px;
}

.faq-answer-content {
    padding: 0 0 1.5rem;
    font-size: 0.95rem;
    color: var(--text-tertiary);
    line-height: 1.8;
}

/* =========================================================
   CONTACT
========================================================= */
.contact {
    padding: 7rem 0;
    background: var(--bg-primary);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 3rem;
    align-items: start;
}

.flat-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 16px;
    padding: 2rem;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-label {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--text-quaternary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.form-input {
    width: 100%;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-subtle);
    border-radius: 10px;
    padding: 13px 16px;
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    color: var(--text-primary);
    outline: none;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    -webkit-appearance: none;
}

.form-input::placeholder {
    color: var(--text-quaternary);
}

.form-input:focus {
    border-color: var(--primary-500);
    box-shadow: 0 0 0 3px rgba(168, 85, 247, 0.12);
}

.form-select {
    cursor: pointer;
}

.form-select option {
    background: #111;
    color: var(--text-primary);
}

.form-textarea {
    resize: vertical;
    min-height: 110px;
}

.form-success {
    padding: 14px;
    background: rgba(74, 222, 128, 0.1);
    border: 1px solid rgba(74, 222, 128, 0.25);
    border-radius: 10px;
    color: #4ade80;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.9rem;
    font-weight: 500;
    text-align: center;
}

.contact-info {
    padding-top: 1rem;
}

.contact-info-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
}

.contact-info-text {
    font-size: 0.95rem;
    color: var(--text-tertiary);
    line-height: 1.7;
    margin-bottom: 2rem;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 2rem;
}

.contact-detail-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    transition: border-color 0.3s ease, transform 0.25s ease;
}

a.contact-detail-item:hover {
    border-color: var(--border-hover);
    transform: translateX(4px);
}

.contact-detail-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: rgba(168, 85, 247, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-400);
    flex-shrink: 0;
}

.contact-detail-label {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.7rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-quaternary);
}

.contact-detail-value {
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 500;
    margin-top: 2px;
}

.contact-social {
    display: flex;
    gap: 0.6rem;
}

.social-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border-subtle);
    color: var(--text-quaternary);
    transition: all 0.3s ease;
}

.social-icon:hover {
    border-color: var(--border-hover);
    color: var(--primary-400);
    transform: translateY(-2px);
}

.social-icon--sm {
    width: 34px;
    height: 34px;
    border-radius: 8px;
}

/* =========================================================
   CTA FINAL
========================================================= */
.cta-final {
    position: relative;
    padding: 8rem 0;
    background: var(--bg-primary);
    text-align: center;
    overflow: hidden;
}

.cta-title {
    font-size: clamp(2rem, 4vw, 3.2rem);
    font-weight: 700;
    line-height: 1.1;
    color: var(--text-primary);
    margin-bottom: 2.5rem;
}

.cta-buttons {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

/* =========================================================
   FOOTER — Minimal devs.ai style
========================================================= */
.footer {
    background: var(--bg-secondary);
    padding: 3rem 0 2rem;
    position: relative;
}

.footer-line {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(168, 85, 247, 0.4), transparent);
}

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

.footer-grid {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 2rem;
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    flex-wrap: wrap;
}

.footer-brand {
    max-width: 250px;
}

.footer-logo-link {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 0.75rem;
    width: fit-content;
}

.footer-logo {
    width: 28px;
    height: 28px;
    object-fit: contain;
    filter: brightness(1.2) drop-shadow(0 0 6px rgba(168, 85, 247, 0.4));
    border-radius: 6px;
}

.footer-logo-text {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
}

.footer-logo-accent {
    background: var(--grad-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer-tagline {
    font-size: 0.8rem;
    color: var(--text-quaternary);
    line-height: 1.6;
}

.footer-column {}

.footer-column--social {
    display: flex;
    align-items: flex-end;
}

.footer-col-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-tertiary);
    margin-bottom: 0.75rem;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-link {
    font-size: 0.82rem;
    color: var(--text-quaternary);
    transition: color 0.25s ease;
}

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

.footer-social {
    display: flex;
    gap: 0.5rem;
}

.footer-bottom {
    font-size: 0.75rem;
    color: var(--text-quaternary);
}

/* =========================================================
   RESPONSIVE
========================================================= */
@media (max-width: 1024px) {
    .metrics-grid {
        grid-template-columns: 1fr 1fr;
    }

    .bento-grid--web {
        grid-template-columns: 1fr 1fr;
    }

    .bento-grid--web .bento-card--lg {
        grid-row: auto;
    }
}

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

    .hamburger {
        display: flex;
    }

    .hero {
        padding-top: calc(var(--nav-height) + 1.5rem);
        padding-bottom: 3rem;
    }

    .hero-title {
        font-size: clamp(1.8rem, 6vw, 2.6rem);
    }

    .hero-window {
        border-radius: 14px;
    }

    .hero-window__body {
        padding: 1rem;
    }

    .hero-window__panel {
        padding: 2.5rem 1.25rem;
    }

    .hero-window__bar-label {
        display: none;
    }

    .service-block {
        padding: 5rem 0;
    }

    .service-split,
    .service-split--reversed {
        flex-direction: column;
        gap: 2.5rem;
    }

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

    .service-content .block-title,
    .service-content .block-subtitle {
        text-align: center;
        margin-left: auto;
        margin-right: auto;
    }

    .bento-grid--web {
        grid-template-columns: 1fr;
    }

    .bento-img {
        min-height: 260px;
    }

    .showcase-img {
        height: 260px;
    }

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

    .values-row {
        gap: 1rem;
    }

    .value-item {
        min-width: 120px;
        padding: 1.25rem 1.5rem;
    }

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

    .footer-grid {
        flex-direction: column;
        gap: 1.5rem;
    }

    .footer-brand {
        max-width: 100%;
    }
}

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

    .values-row {
        flex-direction: column;
        align-items: center;
    }

    .value-item {
        width: 100%;
        max-width: 300px;
    }

    .hero-title {
        font-size: 1.8rem;
    }

    .cta-title {
        font-size: 1.6rem;
    }

    .flat-card {
        padding: 1.5rem;
    }
}