:root {
    --teklab-bg: #050505;
    --teklab-surface: #121212;
    --teklab-surface-soft: #1a1a1a;
    --teklab-border: rgba(255, 255, 255, 0.1);
    --teklab-text: #f0f0f0;
    --teklab-muted: #9ba1a3;
    --teklab-blue: #99bcff;
    --teklab-blue-strong: #3b82f6;
}

html {
    scroll-behavior: smooth;
}

body {
    background:
        radial-gradient(circle at 18% 8%, rgba(59, 130, 246, 0.14), transparent 34rem),
        radial-gradient(circle at 82% 22%, rgba(153, 188, 255, 0.09), transparent 38rem),
        var(--teklab-bg);
    color: var(--teklab-text);
    font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    overflow-x: hidden;
}

a {
    color: inherit;
}

.font-technical {
    font-family: "Geist", "Inter", sans-serif;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.site-navbar {
    left: 50%;
    max-width: 1180px;
    top: 24px;
    transform: translateX(-50%);
    width: min(96%, 1180px);
    z-index: 1040;
}

.site-navbar .navbar-brand {
    align-items: center;
    display: flex;
    padding-left: 0.85rem;
}

.navbar-logo {
    display: block;
    height: 56px;
    max-width: 190px;
    object-fit: contain;
    width: auto;
}

.btn-whatsapp {
    align-items: center;
    background: #22c55e;
    border: 2px solid #22c55e;
    border-radius: 50%;
    color: #ffffff;
    display: inline-flex;
    flex: 0 0 auto;
    height: 48px;
    justify-content: center;
    transition: background-color 180ms ease, color 180ms ease, transform 180ms ease;
    width: 48px;
}

.btn-whatsapp:hover,
.btn-whatsapp:focus {
    background: #ffffff;
    color: #22c55e;
    transform: translateY(-1px);
}

.btn-whatsapp svg {
    height: 30px;
    width: 30px;
}

.glass-panel {
    background: rgba(18, 18, 18, 0.72);
    backdrop-filter: blur(24px) saturate(165%);
    border: 1px solid var(--teklab-border);
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.42);
}

.btn-teklab-primary {
    --bs-btn-bg: #ffffff;
    --bs-btn-border-color: #ffffff;
    --bs-btn-color: #050505;
    --bs-btn-hover-bg: #dfe8ff;
    --bs-btn-hover-border-color: #dfe8ff;
    --bs-btn-hover-color: #050505;
    border-radius: 999px;
    font-weight: 700;
}

.btn-teklab-outline {
    --bs-btn-border-color: rgba(255, 255, 255, 0.18);
    --bs-btn-color: #ffffff;
    --bs-btn-hover-bg: rgba(255, 255, 255, 0.08);
    --bs-btn-hover-border-color: rgba(255, 255, 255, 0.32);
    --bs-btn-hover-color: #ffffff;
    border-radius: 999px;
}

.section-space {
    padding-bottom: 7rem;
    padding-top: 7rem;
}

.hero-section {
    min-height: 100vh;
    padding-top: 10rem;
}

.hero-title {
    font-size: clamp(2.35rem, 5.6vw, 5.35rem);
    font-weight: 700;
    letter-spacing: 0;
    line-height: 1.02;
}

.hero-lead {
    color: var(--teklab-muted);
    font-size: clamp(1.05rem, 2vw, 1.28rem);
    line-height: 1.75;
}

.eyebrow {
    background: rgba(153, 188, 255, 0.08);
    border: 1px solid rgba(153, 188, 255, 0.18);
    border-radius: 999px;
    color: var(--teklab-blue);
    display: inline-flex;
    font-size: 0.74rem;
    padding: 0.45rem 0.8rem;
}

.lab-orb {
    aspect-ratio: 1;
    background:
        radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.9), transparent 3%),
        radial-gradient(circle at 48% 42%, rgba(153, 188, 255, 0.28), transparent 22%),
        radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.08), transparent 58%);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 50%;
    box-shadow: inset 0 0 70px rgba(153, 188, 255, 0.12), 0 0 90px rgba(59, 130, 246, 0.24);
    max-width: 340px;
    min-width: 260px;
    overflow: visible;
    position: relative;
}

.lab-orb.is-three-ready {
    background:
        radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.18), transparent 3%),
        radial-gradient(circle at 50% 52%, rgba(153, 188, 255, 0.14), transparent 60%);
}

.lab-orb::before,
.lab-orb::after {
    border: 1px solid rgba(153, 188, 255, 0.28);
    border-radius: 50%;
    content: "";
    inset: 14%;
    position: absolute;
}

.lab-orb::before {
    transform: rotateX(64deg);
}

.lab-orb::after {
    transform: rotateY(64deg);
}

.hero-orb-canvas {
    inset: -18%;
    opacity: 0;
    position: absolute;
    transition: opacity 500ms ease;
    z-index: 1;
}

.lab-orb.is-three-ready .hero-orb-canvas {
    opacity: 1;
}

.hero-orb-canvas canvas {
    display: block;
    height: 100%;
    width: 100%;
}

.lab-orb.is-three-ready::before,
.lab-orb.is-three-ready::after {
    opacity: 0.42;
    z-index: 2;
}

.lab-orb.is-three-ready .orb-particle {
    z-index: 3;
}

.surface-card {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.015));
    border: 1px solid var(--teklab-border);
    border-radius: 0.75rem;
}

.service-card {
    min-height: 100%;
    transition: border-color 180ms ease, transform 180ms ease;
}

.service-card:hover {
    border-color: rgba(153, 188, 255, 0.45);
    transform: translateY(-4px);
}

.service-icon {
    align-items: center;
    background: rgba(153, 188, 255, 0.1);
    border: 1px solid rgba(153, 188, 255, 0.2);
    border-radius: 0.5rem;
    color: var(--teklab-blue);
    display: inline-flex;
    height: 44px;
    justify-content: center;
    width: 44px;
}

.tariffs-section {
    background: rgba(255, 255, 255, 0.012);
}

.tariff-card-track {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    position: relative;
    z-index: 3;
}

.tariff-currency-switch {
    align-items: center;
    background: rgba(255, 255, 255, 0.045);
    border: 1px solid rgba(153, 188, 255, 0.2);
    border-radius: 999px;
    display: inline-flex;
    gap: 0.25rem;
    padding: 0.25rem;
}

.tariff-currency-option {
    background: transparent;
    border: 0;
    border-radius: 999px;
    color: rgba(255, 255, 255, 0.62);
    font-family: "Geist", "Inter", sans-serif;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    min-width: 4.4rem;
    padding: 0.65rem 0.95rem;
    transition: background-color 180ms ease, color 180ms ease;
}

.tariff-currency-option:hover,
.tariff-currency-option:focus,
.tariff-currency-option.is-active {
    background: rgba(153, 188, 255, 0.16);
    color: var(--teklab-blue);
}

.tariff-card {
    display: flex;
    flex-direction: column;
    min-height: 30rem;
    overflow: hidden;
    padding: 1.5rem;
    position: relative;
    transition: border-color 220ms ease, box-shadow 220ms ease;
}

.tariff-card::after {
    background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.12), transparent);
    content: "";
    height: 100%;
    left: -80%;
    pointer-events: none;
    position: absolute;
    top: 0;
    transform: skewX(-18deg);
    transition: left 650ms ease;
    width: 45%;
}

.tariff-card:hover,
.tariff-card:focus-within,
.tariff-card:focus {
    border-color: rgba(153, 188, 255, 0.44);
    box-shadow: 0 0 48px rgba(59, 130, 246, 0.08);
}

.tariff-card:hover::after,
.tariff-card:focus-within::after,
.tariff-card:focus::after {
    left: 125%;
}

.tariff-card-featured {
    border-color: rgba(153, 188, 255, 0.26);
    box-shadow: 0 0 58px rgba(59, 130, 246, 0.08);
}

.tariff-card-header {
    align-items: center;
    display: flex;
    justify-content: space-between;
}

.tariff-price-prefix {
    color: rgba(255, 255, 255, 0.46);
    display: block;
    font-size: 0.78rem;
    font-weight: 700;
    margin-bottom: 0.35rem;
    text-transform: uppercase;
}

.tariff-price strong {
    color: #ffffff;
    display: block;
    font-size: clamp(1.7rem, 4vw, 2.55rem);
    line-height: 1.05;
}

.tariff-features {
    display: grid;
    gap: 0.85rem;
}

.tariff-features li {
    color: rgba(255, 255, 255, 0.68);
    display: flex;
    gap: 0.65rem;
}

.tariff-features i {
    color: var(--teklab-blue);
    flex: 0 0 auto;
}

.tariff-link {
    align-items: center;
    color: var(--teklab-blue);
    display: inline-flex;
    font-weight: 700;
    margin-top: auto;
    padding-top: 1.5rem;
    position: relative;
    text-decoration: none;
    z-index: 1;
}

.tariff-link:hover,
.tariff-link:focus {
    color: #ffffff;
}

.project-showcase {
    display: flex;
    gap: 1rem;
    min-height: 28rem;
}

.project-card {
    flex: 1 1 0;
    min-width: 0;
    outline: none;
    transition: flex 520ms cubic-bezier(0.22, 1, 0.36, 1), transform 220ms ease;
}

.project-card:hover,
.project-card:focus-within,
.project-card:focus {
    flex: 3 1 0;
}

.project-visual {
    height: 100%;
    background: #101010;
    border-radius: 0.75rem;
    overflow: hidden;
    position: relative;
}

.project-visual img {
    display: block;
    height: 100%;
    object-fit: cover;
    transition: transform 500ms ease, filter 500ms ease;
    width: 100%;
}

.project-visual::before {
    background: linear-gradient(180deg, transparent 42%, rgba(0, 0, 0, 0.72));
    content: "";
    inset: 0;
    position: absolute;
    z-index: 1;
}

.project-visual::after {
    background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.16), transparent);
    content: "";
    height: 100%;
    left: -60%;
    position: absolute;
    top: 0;
    transform: skewX(-18deg);
    width: 42%;
    z-index: 2;
}

.project-visual .badge {
    z-index: 3;
}

.project-overlay {
    bottom: 0;
    left: 0;
    opacity: 0;
    padding: 1.5rem;
    position: absolute;
    right: 0;
    transform: translateY(16px);
    transition: opacity 260ms ease, transform 260ms ease;
    z-index: 3;
}

.project-overlay p {
    max-width: 34rem;
}

.project-card:hover .project-visual img {
    filter: saturate(1.08) contrast(1.04);
    transform: scale(1.04);
}

.project-card:hover .project-overlay,
.project-card:focus-within .project-overlay,
.project-card:focus .project-overlay {
    opacity: 1;
    transform: translateY(0);
}

.project-card:hover .project-visual::after {
    animation: project-sheen 900ms ease forwards;
}

.language-section {
    background: rgba(255, 255, 255, 0.012);
}

.language-orb {
    animation-duration: 20s;
    height: 38rem;
    opacity: 0.34;
    right: -14rem;
    top: 2rem;
    width: 38rem;
}

.language-panel {
    background: transparent;
    border: 0;
    box-shadow: none;
    min-height: 620px;
    overflow: hidden;
    padding: 1rem;
    position: relative;
}

.language-visual {
    height: 590px;
    inset: 0;
    opacity: 0;
    position: absolute;
    transition: opacity 500ms ease;
    z-index: 2;
}

.language-panel.is-three-ready .language-visual {
    opacity: 1;
}

.language-card {
    background: linear-gradient(145deg, rgba(15, 25, 42, 0.92), rgba(7, 11, 18, 0.92));
    border: 1px solid rgba(153, 188, 255, 0.22);
    border-radius: 0.65rem;
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.08);
    cursor: default;
    height: 134px;
    overflow: hidden;
    padding: 1rem;
    position: relative;
    text-align: left;
    transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
    width: 118px;
}

.language-card:hover {
    border-color: rgba(153, 188, 255, 0.66);
    box-shadow: 0 0 34px rgba(153, 188, 255, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.language-card-number {
    color: rgba(153, 188, 255, 0.72);
    font-family: "Geist", "Inter", sans-serif;
    font-size: 0.68rem;
    font-weight: 700;
    position: absolute;
    right: 0.75rem;
    top: 0.65rem;
}

.language-card-symbol {
    color: #ffffff;
    display: block;
    font-size: 1.75rem;
    font-weight: 800;
    line-height: 1;
    margin-top: 2.15rem;
    text-shadow: 0 0 18px rgba(153, 188, 255, 0.52);
}

.language-card-name {
    color: rgba(255, 255, 255, 0.72);
    display: block;
    font-size: 0.72rem;
    font-weight: 700;
    margin-top: 0.55rem;
}

.language-card-type {
    bottom: 0.85rem;
    color: rgba(153, 188, 255, 0.72);
    font-family: "Geist", "Inter", sans-serif;
    font-size: 0.62rem;
    left: 1rem;
    letter-spacing: 0.08em;
    position: absolute;
    right: 1rem;
    text-transform: uppercase;
}

.language-fallback {
    align-content: center;
    display: grid;
    gap: 0.65rem;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    min-height: 560px;
    padding: 2rem 1rem;
    position: relative;
    z-index: 1;
}

.language-panel.is-three-ready .language-fallback {
    display: none;
}

.language-fallback span {
    background: rgba(255, 255, 255, 0.055);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 999px;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 700;
    padding: 0.75rem 1rem;
    text-align: center;
}

.stat-value {
    color: rgba(255, 255, 255, 0.86);
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 700;
}

.form-control,
.form-select {
    background-color: #090909;
    border-color: rgba(255, 255, 255, 0.12);
    color: var(--teklab-text);
}

.form-control:focus,
.form-select:focus {
    background-color: #090909;
    border-color: var(--teklab-blue-strong);
    box-shadow: 0 0 0 0.25rem rgba(59, 130, 246, 0.12);
    color: var(--teklab-text);
}

.form-control::placeholder {
    color: rgba(255, 255, 255, 0.35);
}

.contact-floatbox {
    background: linear-gradient(145deg, rgba(18, 18, 18, 0.86), rgba(7, 7, 7, 0.78));
    backdrop-filter: blur(22px) saturate(150%);
    border-color: rgba(255, 255, 255, 0.14);
    border-radius: 0.9rem;
    box-shadow: 0 34px 100px rgba(0, 0, 0, 0.5), 0 0 70px rgba(59, 130, 246, 0.07);
    color: var(--teklab-text);
    position: relative;
}

.contact-floatbox::before {
    background: linear-gradient(135deg, rgba(153, 188, 255, 0.16), transparent 32%);
    border-radius: inherit;
    content: "";
    inset: 0;
    opacity: 0.6;
    pointer-events: none;
    position: absolute;
}

.contact-floatbox > * {
    position: relative;
    z-index: 1;
}

.contact-modal {
    --bs-modal-bg: transparent;
    --bs-modal-border-width: 0;
}

.contact-modal .modal-dialog {
    width: min(1120px, calc(100% - 2rem));
}

.contact-modal .modal-content {
    border: 1px solid rgba(255, 255, 255, 0.14);
}

.contact-modal-close {
    filter: invert(1) grayscale(1);
    position: absolute;
    right: 1.25rem;
    top: 1.25rem;
    z-index: 3;
}

.modal-backdrop.show {
    opacity: 0.78;
}

.reveal-up {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 700ms ease, transform 700ms ease;
}

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

@keyframes project-sheen {
    to {
        left: 120%;
    }
}

@media (max-width: 991.98px) {
    .tariff-card-track {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 767.98px) {
    .site-navbar {
        border-radius: 999px !important;
        max-height: none;
        overflow: hidden;
        padding: 0.55rem 0.65rem !important;
        top: 12px;
        width: calc(100% - 24px);
    }

    .site-navbar .container-fluid {
        align-items: center;
        justify-content: space-between;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    .site-navbar .navbar-toggler,
    .site-navbar .navbar-nav {
        display: none !important;
    }

    .site-navbar .navbar-brand {
        display: flex !important;
        flex: 0 0 auto;
        margin-right: 0.65rem !important;
        padding-left: 0.1rem;
    }

    .navbar-logo {
        height: 36px;
        max-width: 118px;
    }

    .site-navbar .navbar-collapse {
        display: flex !important;
        flex-basis: auto;
        flex-grow: 0;
        width: auto;
    }

    .navbar-actions {
        align-items: stretch !important;
        gap: 0.55rem !important;
        justify-content: space-between;
        width: auto;
    }

    .navbar-actions .btn-teklab-primary {
        align-items: center;
        display: inline-flex;
        flex: 0 1 auto;
        font-size: 0.82rem;
        justify-content: center;
        min-height: 44px;
        padding-left: 0.85rem !important;
        padding-right: 0.85rem !important;
        white-space: nowrap;
    }

    .navbar-actions .btn-whatsapp {
        height: 44px;
        width: 44px;
    }

    .navbar-actions .btn-whatsapp svg {
        height: 26px;
        width: 26px;
    }

    .section-space {
        padding-bottom: 4.5rem;
        padding-top: 4.5rem;
    }

    .hero-section {
        min-height: auto;
        overflow: hidden;
        padding-top: 8rem;
    }

    .hero-mobile-orb {
        display: block;
        height: 24rem;
        left: 50%;
        opacity: 0.88;
        pointer-events: none;
        position: absolute;
        top: 9.75rem;
        transform: translateX(-50%);
        width: min(112vw, 30rem);
        z-index: 0;
    }

    .hero-mobile-orb .lab-orb {
        max-width: 420px;
        min-width: 320px;
        width: 100%;
    }

    .hero-mobile-orb .hero-orb-canvas {
        inset: -14%;
    }

    .hero-copy {
        position: relative;
        z-index: 1;
    }

    .hero-copy .d-flex.flex-column {
        margin-top: 8.5rem;
    }

    .project-showcase {
        flex-direction: column;
        min-height: auto;
    }

    .project-card,
    .project-card:hover,
    .project-card:focus-within,
    .project-card:focus {
        flex: 0 0 auto;
    }

    .project-visual {
        aspect-ratio: 16 / 11;
        height: auto;
    }

    .project-overlay {
        opacity: 1;
        transform: none;
    }

    .language-panel {
        min-height: 540px;
    }

    .language-visual {
        height: 520px;
    }

    .language-card {
        height: 112px;
        width: 98px;
    }

    .language-card-symbol {
        font-size: 1.35rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation: none !important;
        scroll-behavior: auto !important;
        transition: none !important;
    }

    .reveal-up {
        opacity: 1;
        transform: none;
    }
}
