:root {
    --header-height: 108px;
    --font-brand: 'Orbitron', 'Inter', system-ui, sans-serif;
    --bg: #0b1020;
    --bg-alt: #111831;
    --bg-deep: #070b18;
    --card: #151f3f;
    --text: #e8edff;
    --muted: #b8c1e5;
    --border: rgba(255, 255, 255, 0.12);
    --primary: #0047ab;
    --secondary: #8a2be2;
    --accent: #ff2e93;
    --success: #2ecc71;
    --danger: #ff6b6b;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-height) + 20px);
}

body {
    margin: 0;
    font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
    color: var(--text);
    background:
        radial-gradient(1000px 520px at 4% 6%, rgba(0, 140, 255, 0.42), transparent 62%),
        radial-gradient(900px 540px at 92% 8%, rgba(170, 40, 255, 0.38), transparent 64%),
        radial-gradient(780px 480px at 50% 96%, rgba(255, 46, 147, 0.32), transparent 66%),
        linear-gradient(162deg, #050814 0%, #0a1026 40%, #0d1437 100%);
    line-height: 1.6;
    --scroll-progress: 0%;
    position: relative;
}

.neural-bg {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -2;
    opacity: 0.9;
}

body::before {
    content: '';
    position: fixed;
    top: var(--header-height);
    left: 0;
    height: 3px;
    width: var(--scroll-progress);
    background: linear-gradient(90deg, #0047ab, #8a2be2, #ff2e93);
    z-index: 90;
    box-shadow: 0 0 14px rgba(138, 43, 226, 0.6);
    transition: width 0.08s linear;
}

body::after {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: -1;
    opacity: 0.28;
    background:
        radial-gradient(circle at 6% 12%, rgba(163, 214, 255, 0.72) 0 1.2px, transparent 2px),
        radial-gradient(circle at 14% 68%, rgba(170, 146, 255, 0.65) 0 1px, transparent 2px),
        radial-gradient(circle at 21% 32%, rgba(120, 197, 255, 0.7) 0 1.4px, transparent 2px),
        radial-gradient(circle at 28% 84%, rgba(255, 125, 206, 0.62) 0 1.1px, transparent 2px),
        radial-gradient(circle at 35% 16%, rgba(133, 224, 255, 0.65) 0 1px, transparent 2px),
        radial-gradient(circle at 39% 58%, rgba(194, 166, 255, 0.65) 0 1.3px, transparent 2px),
        radial-gradient(circle at 43% 40%, rgba(130, 191, 255, 0.64) 0 1px, transparent 2px),
        radial-gradient(circle at 52% 72%, rgba(255, 153, 220, 0.63) 0 1.4px, transparent 2px),
        radial-gradient(circle at 57% 20%, rgba(155, 230, 255, 0.68) 0 1.2px, transparent 2px),
        radial-gradient(circle at 63% 52%, rgba(175, 155, 255, 0.65) 0 1px, transparent 2px),
        radial-gradient(circle at 69% 10%, rgba(106, 190, 255, 0.7) 0 1.1px, transparent 2px),
        radial-gradient(circle at 72% 88%, rgba(255, 116, 198, 0.6) 0 1.4px, transparent 2px),
        radial-gradient(circle at 78% 35%, rgba(140, 212, 255, 0.7) 0 1.2px, transparent 2px),
        radial-gradient(circle at 84% 64%, rgba(179, 151, 255, 0.66) 0 1px, transparent 2px),
        radial-gradient(circle at 91% 22%, rgba(138, 225, 255, 0.7) 0 1.1px, transparent 2px),
        radial-gradient(circle at 95% 78%, rgba(255, 126, 204, 0.62) 0 1.3px, transparent 2px),
        radial-gradient(circle at 11% 44%, rgba(193, 238, 255, 0.46) 0 2.2px, transparent 3.5px),
        radial-gradient(circle at 49% 28%, rgba(201, 178, 255, 0.42) 0 2.6px, transparent 4px),
        radial-gradient(circle at 76% 57%, rgba(255, 176, 227, 0.38) 0 2.4px, transparent 4px),
        radial-gradient(circle at 32% 70%, rgba(131, 205, 255, 0.36) 0 2.2px, transparent 4px);
    mask-image: radial-gradient(circle at 50% 38%, black 52%, transparent 100%);
    animation: none;
}

@keyframes starsFloat {
    from {
        transform: translate3d(0, 0, 0);
        opacity: 0.72;
    }
    to {
        transform: translate3d(-8px, 10px, 0);
        opacity: 0.9;
    }
}

main {
    position: relative;
}

main::before {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: -3;
    background:
        radial-gradient(520px 220px at 12% 78%, rgba(0, 224, 255, 0.16), transparent 70%),
        radial-gradient(560px 260px at 86% 72%, rgba(153, 83, 255, 0.2), transparent 72%);
    filter: blur(2px);
}

html {
    scrollbar-width: thin;
    scrollbar-color: #8a2be2 rgba(255, 255, 255, 0.12);
}

body::-webkit-scrollbar {
    width: 10px;
}

body::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.08);
}

body::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #0047ab, #8a2be2, #ff2e93);
    border-radius: 999px;
    border: 2px solid rgba(8, 13, 30, 0.75);
}

body::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #1f64d6, #a54cff, #ff4da5);
}

img {
    max-width: 100%;
    display: block;
}

.container {
    width: min(1100px, 92%);
    margin: 0 auto;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(16px) saturate(150%);
    background: linear-gradient(140deg, rgba(9, 14, 30, 0.88), rgba(15, 22, 50, 0.72));
    border-bottom: 1px solid rgba(255, 255, 255, 0.14);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.24);
}

.site-header::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 1px;
    background: linear-gradient(90deg, rgba(0, 71, 171, 0), rgba(0, 71, 171, 0.95), rgba(138, 43, 226, 0.85), rgba(255, 46, 147, 0));
}

.nav-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: var(--header-height);
    gap: 1rem;
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    text-decoration: none;
    color: var(--text);
    font-weight: 700;
    letter-spacing: 0.2px;
    padding: 0.35rem 0.55rem;
    border-radius: 14px;
    transition: background 0.25s ease, transform 0.2s ease;
}

.logo:hover {
    background: rgba(255, 255, 255, 0.06);
    transform: translateY(-1px);
}

.logo img {
    width: 86px;
    height: 86px;
    border-radius: 0;
    object-fit: contain;
    border: 0;
    box-shadow: none;
    filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.35));
}

.logo-text {
    display: inline-flex;
    flex-direction: column;
    gap: 0.05rem;
    line-height: 1.15;
}

.logo-text strong {
    font-family: var(--font-brand);
    font-size: clamp(1.25rem, 2.3vw, 1.85rem);
    font-weight: 800;
    color: #f7f9ff;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    text-shadow: 0 0 16px rgba(120, 191, 255, 0.35), 0 0 24px rgba(181, 123, 255, 0.2);
}

.logo-text small {
    font-size: 0.78rem;
    color: #b9c8ff;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.logo-text small .sep {
    color: rgba(221, 231, 255, 0.75);
}

.logo-text small .pole-web {
    color: #3b82ff;
    text-shadow: 0 0 10px rgba(59, 130, 255, 0.35);
}

.logo-text small .pole-ia {
    color: #b57bff;
    text-shadow: 0 0 10px rgba(181, 123, 255, 0.35);
}

.logo-text small .pole-design {
    color: #ff6ab7;
    text-shadow: 0 0 10px rgba(255, 106, 183, 0.35);
}

.logo-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: linear-gradient(140deg, var(--primary), var(--secondary), var(--accent));
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.42rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.06);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.site-nav a {
    color: var(--text);
    text-decoration: none;
    font-weight: 600;
    opacity: 0.96;
    padding: 0.52rem 0.78rem;
    border-radius: 999px;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.site-nav a:hover {
    opacity: 1;
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
    transform: translateY(-1px);
}

.site-nav a.is-active {
    background: rgba(255, 255, 255, 0.16);
    color: #ffffff;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: transparent;
    border: 0;
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: white;
}

.hero {
    padding: 5.2rem 0 4rem;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 2rem;
    align-items: center;
}

h1,
h2,
h3 {
    line-height: 1.2;
    margin: 0 0 0.7rem;
}

h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
}

h2 {
    font-size: clamp(1.5rem, 3vw, 2.2rem);
}

.hero-lead {
    font-size: clamp(1.05rem, 2vw, 1.2rem);
    color: #f5f8ff;
    max-width: 58ch;
}

.hero-text {
    color: var(--muted);
    max-width: 62ch;
}

.badge {
    display: inline-block;
    margin-bottom: 0.85rem;
    font-size: 0.85rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #dbe5ff;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.16);
    padding: 0.3rem 0.65rem;
    border-radius: 999px;
}

.hero-actions {
    display: flex;
    gap: 0.8rem;
    margin-top: 1.3rem;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    text-decoration: none;
    background: linear-gradient(130deg, var(--primary), var(--secondary));
    color: white;
    font-weight: 600;
    border-radius: 10px;
    padding: 0.8rem 1.15rem;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.28);
}

.btn-ghost {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.25);
}

.btn-small {
    padding: 0.45rem 0.8rem;
    font-size: 0.9rem;
}

.site-nav .btn-small {
    margin-left: 0.2rem;
    border-radius: 999px;
    padding-inline: 1rem;
}

.hero-card,
.service-card,
.value-card,
.team-card,
.contact-form {
    background: linear-gradient(170deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 1.15rem;
}

.service-card ul,
.contact-list {
    padding-left: 1.15rem;
    margin: 0.5rem 0 0;
}

.hero-card {
    overflow: hidden;
}

.pole-stack {
    margin-top: 0.6rem;
    display: grid;
    gap: 0.7rem;
}

.pole-item {
    margin: 0;
    padding: 0.75rem 0.9rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.05);
    opacity: 0;
    transform: translateX(-38px);
    animation: poleIn 0.65s ease forwards;
}

.pole-item h3 {
    margin: 0;
    font-size: 1rem;
}

.pole-item p {
    margin: 0.15rem 0 0;
    color: var(--muted);
    font-size: 0.93rem;
}

.pole-item.web {
    margin-left: 0;
    border-left: 4px solid #0047ab;
    animation-delay: 0.12s;
}

.pole-item.ia {
    margin-left: 24px;
    border-left: 4px solid #8a2be2;
    animation-delay: 0.3s;
}

.pole-item.design {
    margin-left: 48px;
    border-left: 4px solid #ff2e93;
    animation-delay: 0.48s;
}

@keyframes poleIn {
    from {
        opacity: 0;
        transform: translateX(-38px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    display: inline-block;
    margin-right: 0.5rem;
}

.dot.web { background: #0047ab; }
.dot.ia { background: #8a2be2; }
.dot.design { background: #ff2e93; }

.section {
    padding: 4rem 0;
    scroll-margin-top: calc(var(--header-height) + 20px);
}

.section-alt {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0));
}

.section-head {
    margin-bottom: 1.6rem;
}

.cards-grid,
.values-grid,
.team-grid {
    display: grid;
    gap: 1rem;
}

.cards-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.values-grid,
.team-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.service-card {
    border-top: 4px solid var(--accent);
}

.service-web {
    border-top-color: #0047ab;
}

.service-ia {
    border-top-color: #8a2be2;
}

.service-design {
    border-top-color: #ff2e93;
}

.service-card h3 {
    margin-top: 0.1rem;
}

.service-card p,
.value-card p,
.team-card p {
    color: var(--muted);
}

.service-link {
    display: inline-flex;
    margin-top: 0.8rem;
    color: #dfe7ff;
    text-decoration: none;
    font-weight: 600;
    opacity: 0.95;
}

.service-link:hover {
    opacity: 1;
    text-decoration: underline;
}

.team-card .role {
    color: #f4f7ff;
    font-weight: 600;
    margin-bottom: 0.35rem;
}

.section-contact {
    padding-bottom: 5rem;
}

.pole-page .pole-hero {
    padding-top: 4.5rem;
}

.pole-hero-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 1.2rem;
    align-items: center;
}

.pole-summary-card {
    border-left: 4px solid rgba(255, 255, 255, 0.24);
}

.pole-web-page .pole-summary-card {
    border-left-color: #3b82ff;
}

.pole-ia-page .pole-summary-card {
    border-left-color: #b57bff;
}

.pole-design-page .pole-summary-card {
    border-left-color: #ff6ab7;
}

.detail-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.detail-card {
    margin: 0;
    padding: 1rem;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: linear-gradient(170deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.02));
}

.detail-card p {
    margin: 0;
    color: #eef2ff;
}

.timeline {
    display: grid;
    gap: 0.8rem;
}

.timeline-item {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.9rem;
    align-items: start;
    padding: 0.9rem 1rem;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.03);
}

.timeline-index {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    height: 30px;
    border-radius: 999px;
    font-family: var(--font-brand);
    font-size: 0.75rem;
    letter-spacing: 0.05em;
    color: #eaf0ff;
    background: linear-gradient(130deg, #0047ab, #8a2be2);
}

.timeline-item p {
    margin: 0.2rem 0 0;
    color: var(--muted);
}

.identity-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    max-width: 720px;
    gap: 1rem;
}

.identity-card {
    margin: 0;
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.03);
}

.identity-card img {
    width: 100%;
    height: auto;
    max-height: 70vh;
    object-fit: contain;
    background: rgba(0, 0, 0, 0.2);
}

.identity-card figcaption {
    padding: 0.8rem 0.9rem;
    color: #f5f8ff;
    font-weight: 600;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.4rem;
}

.contact-form {
    display: grid;
    gap: 0.45rem;
}

.contact-form label {
    font-weight: 600;
    margin-top: 0.2rem;
}

input,
textarea {
    width: 100%;
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 10px;
    padding: 0.72rem 0.8rem;
    background: rgba(8, 13, 30, 0.75);
    color: var(--text);
    font: inherit;
}

input:focus,
textarea:focus {
    outline: 2px solid rgba(138, 43, 226, 0.6);
    border-color: transparent;
}

.alert {
    margin: 0.15rem 0 0.4rem;
    font-size: 0.92rem;
}

.alert.success {
    color: var(--success);
}

.alert.error {
    color: var(--danger);
}

.site-footer {
    border-top: 1px solid var(--border);
    background: linear-gradient(180deg, rgba(7, 11, 24, 0.92), rgba(9, 14, 30, 0.95));
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr;
    gap: 1.5rem;
    padding: 1.6rem 0 1.2rem;
}

.footer-grid h3 {
    margin: 0 0 0.55rem;
    font-size: 1rem;
}

.footer-text {
    margin: 0;
    color: var(--muted);
    max-width: 52ch;
}

.footer-links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.35rem;
}

.footer-links a {
    color: #d9e4ff;
    text-decoration: none;
}

.footer-cookie-btn {
    appearance: none;
    border: 0;
    background: transparent;
    color: #d9e4ff;
    font: inherit;
    padding: 0;
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.footer-links a:hover {
    text-decoration: underline;
}

.footer-bottom {
    min-height: 62px;
    border-top: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.footer-bottom a {
    color: #d9e4ff;
    text-decoration: none;
}

.footer-mention-wrap {
    border-top: 1px solid var(--border);
    padding: 0.85rem 0 1.2rem;
}

.footer-mention {
    margin: 0;
    color: var(--muted);
    font-size: 0.86rem;
    line-height: 1.45;
}

.legal-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.legal-card {
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 1rem;
    background: linear-gradient(170deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
}

.legal-card h2 {
    margin-top: 0;
    font-size: 1.1rem;
}

.legal-card ul {
    margin: 0;
    padding-left: 1.1rem;
    color: var(--muted);
}

.legal-card p {
    color: var(--muted);
}

.legal-card a {
    color: #d9e4ff;
}

.legal-card-full {
    grid-column: 1 / -1;
}

.cookie-banner {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 130;
    border-top: 1px solid var(--border);
    background: linear-gradient(180deg, rgba(8, 12, 28, 0.98), rgba(8, 12, 28, 0.95));
    backdrop-filter: blur(8px);
    box-shadow: 0 -14px 32px rgba(0, 0, 0, 0.35);
}

.cookie-banner-inner {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 1rem;
    align-items: center;
    padding: 0.9rem 0;
}

.cookie-text h3 {
    margin: 0 0 0.25rem;
    font-size: 1rem;
}

.cookie-text p {
    margin: 0;
    color: var(--muted);
    font-size: 0.9rem;
}

.cookie-text a {
    display: inline-block;
    margin-top: 0.35rem;
    color: #d9e4ff;
}

.cookie-actions {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.cookie-panel {
    display: grid;
    gap: 0.55rem;
    padding: 0 0 1rem;
}

.cookie-option {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.55rem;
    align-items: start;
    color: var(--muted);
    font-size: 0.9rem;
}

.cookie-option strong {
    color: #edf2ff;
}

.cookie-panel-actions {
    display: flex;
    gap: 0.5rem;
    justify-content: flex-end;
}

.reveal {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.4s ease, transform 0.45s ease;
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 940px) {
    :root {
        --header-height: 96px;
    }

    .hero-grid,
    .pole-hero-grid,
    .cards-grid,
    .detail-grid,
    .footer-grid,
    .legal-grid,
    .cookie-banner-inner,
    .identity-grid,
    .values-grid,
    .team-grid,
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .cookie-panel-actions {
        justify-content: flex-start;
    }

    .site-nav {
        position: absolute;
        right: 4%;
        top: calc(var(--header-height) - 2px);
        width: min(300px, 92%);
        background: #0e1733;
        border: 1px solid var(--border);
        border-radius: 12px;
        padding: 0.8rem;
        display: none;
        flex-direction: column;
        align-items: stretch;
        box-shadow: 0 16px 36px rgba(0, 0, 0, 0.35);
    }

    .logo img {
        width: 72px;
        height: 72px;
    }

    .logo-text strong {
        font-size: 1.25rem;
    }

    .logo-text small {
        font-size: 0.72rem;
    }

    .site-nav.open {
        display: flex;
    }

    .menu-toggle {
        display: flex;
    }

    body::before {
        top: var(--header-height);
    }

    .pole-item.ia,
    .pole-item.design {
        margin-left: 0;
    }
}
