/* ────────────────────────────────────────────
   Base
──────────────────────────────────────────── */
*,
*::before,
*::after {
    box-sizing: border-box;
    border-color: rgba(255, 255, 255, 0.1);
}

body {
    background-color: #090d16;
    background-image:
        radial-gradient(circle at top center, rgba(44, 212, 255, 0.08), transparent 26%),
        linear-gradient(180deg, #0b101a 0%, #090d16 42%, #080b13 100%);
    min-height: 100vh;
}

::selection {
    background: rgba(44, 212, 255, 0.26);
    color: #f8fbff;
}

/* ────────────────────────────────────────────
   Scrollbar
──────────────────────────────────────────── */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-thumb {
    background: rgba(44, 212, 255, 0.15);
    border-radius: 99px;
    border: 2px solid #090d16;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(44, 212, 255, 0.35);
}

::-webkit-scrollbar-track {
    background: #090d16;
}

/* ────────────────────────────────────────────
   Grid decorativa
──────────────────────────────────────────── */
.grid-lines {
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
    background-size: 64px 64px;
}

/* ────────────────────────────────────────────
   Reveal on scroll
──────────────────────────────────────────── */
.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 700ms ease, transform 700ms ease;
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal-delay-1 {
    transition-delay: 90ms;
}

.reveal-delay-2 {
    transition-delay: 160ms;
}

.reveal-delay-3 {
    transition-delay: 230ms;
}

/* ────────────────────────────────────────────
   Page Loader
──────────────────────────────────────────── */
#page-loader {
    position: fixed;
    inset: 0;
    z-index: 80;
    display: grid;
    place-items: center;
    background:
        radial-gradient(circle at top, rgba(44, 212, 255, 0.12), transparent 24%),
        linear-gradient(180deg, rgba(9, 13, 22, 0.98), rgba(9, 13, 22, 1));
    transition: opacity 500ms ease, visibility 500ms ease;
}

#page-loader.is-hidden {
    opacity: 0;
    visibility: hidden;
}

.orb {
    width: 6rem;
    height: 6rem;
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(44, 212, 255, 0.95), rgba(111, 227, 255, 0.6), rgba(187, 75, 255, 0.92));
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08), 0 24px 70px rgba(44, 212, 255, 0.28);
    animation: pulse 1.9s ease-in-out infinite, drift 4.8s ease-in-out infinite;
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(0.96);
        opacity: 0.86;
    }

    50% {
        transform: scale(1.04);
        opacity: 1;
    }
}

@keyframes drift {

    0%,
    100% {
        border-radius: 38% 62% 56% 44% / 40% 40% 60% 60%;
    }

    50% {
        border-radius: 57% 43% 47% 53% / 58% 40% 60% 42%;
    }
}

/* ────────────────────────────────────────────
   Float animation (mascote)
──────────────────────────────────────────── */
@keyframes float {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }
}

.animate-float {
    animation: float 7s ease-in-out infinite;
}

/* ────────────────────────────────────────────
   Reduced motion
──────────────────────────────────────────── */
.site-shell {
    position: relative;
    overflow-x: hidden;
}

main,
header,
footer {
    position: relative;
    z-index: 1;
}

.section-block {
    padding-top: 4rem;
    padding-bottom: 4rem;
}

.section-block-tight {
    padding-top: 2.5rem;
    padding-bottom: 2.5rem;
}

.hero-section {
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 2rem;
    padding-inline: clamp(1.25rem, 3vw, 2.5rem);
    background:
        linear-gradient(145deg, rgba(14, 24, 39, 0.95), rgba(8, 12, 20, 0.82)),
        radial-gradient(circle at top left, rgba(44, 212, 255, 0.14), transparent 34%),
        radial-gradient(circle at right center, rgba(187, 75, 255, 0.14), transparent 30%);
    box-shadow: 0 30px 80px rgba(3, 8, 18, 0.45);
    isolation: isolate;
}

.hero-grid {
    gap: clamp(2.5rem, 6vw, 5rem);
}

.hero-copy {
    max-width: 48rem;
}

.hero-copy h1 {
    max-width: 10.5ch;
    text-wrap: balance;
}

.hero-copy p {
    max-width: 36rem;
}

.hero-highlights {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.hero-highlight {
    height: 100%;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.hero-highlight dd {
    align-items: flex-start;
}

.hero-aside {
    position: relative;
    min-height: 100%;
    align-items: center;
    justify-content: center;
}

.hero-aside-panel {
    position: relative;
    width: min(100%, 24rem);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 2rem;
    padding: 1.75rem;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.025)),
        rgba(12, 18, 31, 0.78);
    box-shadow: 0 24px 60px rgba(6, 10, 22, 0.4);
    backdrop-filter: blur(18px);
}

.hero-aside-kicker {
    margin: 0;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: rgba(213, 247, 255, 0.85);
}

.hero-aside-metric {
    margin-top: 1.5rem;
    display: grid;
    gap: 0.65rem;
}

.hero-aside-metric strong {
    font-family: "Space Grotesk", sans-serif;
    font-size: 1.8rem;
    line-height: 1.05;
    color: #fff;
}

.hero-aside-metric span,
.hero-aside-note {
    color: rgb(191 200 218);
    line-height: 1.75;
    font-size: 0.98rem;
}

.hero-aside-list {
    margin-top: 1.5rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.hero-aside-list span {
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 999px;
    padding: 0.7rem 0.95rem;
    background: rgba(255, 255, 255, 0.045);
    color: rgb(236 245 255);
    font-size: 0.82rem;
    font-weight: 600;
}

.hero-aside-note {
    margin-top: 1.5rem;
    padding-top: 1.35rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.hero-orb {
    position: absolute;
    border-radius: 999px;
    filter: blur(34px);
    opacity: 0.9;
}

.hero-orb-cyan {
    width: 12rem;
    height: 12rem;
    right: 3rem;
    top: 4rem;
    background: rgba(44, 212, 255, 0.22);
}

.hero-orb-violet {
    width: 10rem;
    height: 10rem;
    right: -0.5rem;
    bottom: 2rem;
    background: rgba(187, 75, 255, 0.18);
}

.service-grid,
.portfolio-grid,
.tech-grid,
.segment-grid,
.about-points {
    align-items: stretch;
}

.service-card,
.portfolio-card,
.tech-card,
.segment-grid > div,
.about-points > div,
.process-step {
    position: relative;
    overflow: hidden;
}

.service-card::before,
.portfolio-card::before,
.tech-card::before,
.segment-grid > div::before,
.about-points > div::before,
.process-step::before {
    content: "";
    position: absolute;
    inset: 0 auto auto 0;
    width: 5.5rem;
    height: 1px;
    background: linear-gradient(90deg, rgba(44, 212, 255, 0.7), rgba(187, 75, 255, 0));
}

.service-card {
    min-height: 100%;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.03)),
        rgba(255, 255, 255, 0.025);
}

.process-shell {
    background:
        radial-gradient(circle at top right, rgba(44, 212, 255, 0.1), transparent 24%),
        linear-gradient(145deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.025));
}

.process-step {
    min-height: 100%;
    backdrop-filter: blur(18px);
}

.portfolio-card {
    display: grid;
    grid-template-rows: auto 1fr;
    transition: transform 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
}

.portfolio-card:hover {
    transform: translateY(-6px);
    border-color: rgba(111, 227, 255, 0.22);
    box-shadow: 0 30px 70px rgba(5, 11, 24, 0.45);
}

.portfolio-card .relative.h-56 {
    height: clamp(14rem, 26vw, 16rem);
}

.portfolio-card .p-6 {
    display: flex;
    flex-direction: column;
    min-height: 15.5rem;
}

.portfolio-card a {
    margin-top: auto;
}

.segment-grid > div,
.about-points > div,
.tech-card {
    min-height: 100%;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.025)),
        rgba(9, 13, 22, 0.58);
}

.segment-grid > div {
    transition: transform 180ms ease, border-color 180ms ease;
}

.segment-grid > div:hover {
    transform: translateY(-4px);
    border-color: rgba(111, 227, 255, 0.24);
}

.tech-grid {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.tech-card {
    min-height: 4.75rem;
}

.about-grid {
    align-items: start;
}

.contact-shell {
    background:
        radial-gradient(circle at top right, rgba(255, 255, 255, 0.16), transparent 22%),
        radial-gradient(circle at left center, rgba(44, 212, 255, 0.18), transparent 30%),
        linear-gradient(135deg, rgba(10, 31, 44, 0.92), rgba(48, 15, 78, 0.88));
}

@media (max-width: 1023px) {
    .section-block {
        padding-top: 5rem;
        padding-bottom: 5rem;
    }

    .section-block-tight {
        padding-top: 3rem;
        padding-bottom: 3rem;
    }

    .hero-section {
        border-radius: 1.75rem;
    }

    .hero-copy h1 {
        max-width: 11ch;
    }
}

@media (max-width: 767px) {
    .hero-section {
        padding-inline: 1rem;
    }

    .hero-copy h1 {
        max-width: none;
        text-wrap: pretty;
    }

    .hero-copy p {
        max-width: 100%;
    }

    .hero-highlights {
        grid-template-columns: 1fr;
    }

    .hero-highlight dd {
        font-size: 0.875rem;
    }

    .hero-visual {
        min-height: 16rem;
    }

    .portfolio-card .relative.h-56 {
        height: 13.5rem;
    }

    .portfolio-card .relative.h-56 .absolute.inset-x-8 {
        left: 1rem;
        right: 1rem;
        top: 1rem;
        bottom: 1rem;
    }

    .portfolio-card .relative.h-56 .grid.h-full {
        grid-template-columns: 1fr;
    }

    .portfolio-card .relative.h-56 .space-y-3 {
        display: none;
    }

    .contact-shell {
        padding-inline: 1.25rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 1ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 1ms !important;
    }

    .reveal {
        opacity: 1;
        transform: none;
    }
}
