:root {
    --bg-main: #050506;
    --bg-secondary: #0F0B14;
    --purple-deep: #34105D;
    --purple: #6D3BFF;
    --orange: #FD7A00;
    --orange-dark: #FD5200;
    --orange-soft: #FF9A3D;
    --sage: #9B91B3;
    --white: #F7F6F7;
    --gray: #D6D6D6;
    --muted: rgba(214, 214, 214, 0.72);
    --glass: #100D13;
    --glass-strong: #17121C;
    --line: rgba(247, 246, 247, 0.12);
    --shadow-purple: transparent;
    --shadow-orange: rgba(253, 122, 0, 0.18);
    --radius: 6px;
}

/* Selection */
::selection {
    background: var(--purple);
    color: var(--white);
}

/* Arix Tech — identidade grafite e laranja */
body {
    background: var(--bg-main);
}

body::before {
    background-image: none;
}

::selection {
    background: var(--orange);
    color: #0B0D0F;
}

header {
    background: rgba(11, 13, 15, 0.94);
    border-color: var(--line);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.02);
}

.desktop-nav a::after {
    background: var(--orange);
}

.header-cta {
    color: var(--white);
    border-color: #4A3228;
    background: #1D1714;
}

.header-cta:hover {
    border-color: var(--orange);
    background: #261B16;
}

.btn-main {
    color: #0B0D0F;
    background: var(--orange);
    box-shadow: none;
}

.btn-main:hover {
    background: #FF7A3D;
    box-shadow: 0 12px 28px rgba(255, 106, 42, 0.16);
}

.btn-secondary {
    background: transparent;
    border-color: #394148;
}

.btn-secondary:hover {
    border-color: var(--orange);
    background: #171A1D;
}

.hero {
    min-height: 760px;
    background: var(--bg-main);
    border-bottom: 1px solid var(--line);
}

.hero::before {
    content: '';
    position: absolute;
    inset: 76px auto 0 0;
    width: 5px;
    height: 42%;
    background: var(--orange);
}

.hero::after {
    background: none;
}

.hero-grid,
.floating-shape {
    display: none;
}

.eyebrow {
    color: #D8D3CD;
    border: 0;
    border-left: 3px solid var(--orange);
    border-radius: 0;
    background: transparent;
    padding: 0 0 0 12px;
}

.eyebrow span {
    display: none;
}

.hero h1 {
    max-width: 760px;
    letter-spacing: -0.055em;
    line-height: 0.99;
}

.hero p {
    max-width: 680px;
}

.hero-metrics {
    border-top: 1px solid var(--line);
    gap: 0;
}

.hero-metrics div {
    border: 0;
    border-right: 1px solid var(--line);
    border-radius: 0;
    background: transparent;
}

.hero-metrics div:first-child {
    padding-left: 0;
}

.hero-panel {
    border: 1px solid #30373D;
    border-radius: 4px;
    background: #0E1113;
    box-shadow: 18px 18px 0 #171C20;
    transform: none;
}

.panel-topbar {
    background: #171B1E;
    border-color: var(--line);
}

.panel-topbar span,
.panel-topbar span:first-child,
.panel-topbar span:nth-child(2) {
    background: #5E666C;
}

.panel-topbar span:first-child {
    background: var(--orange);
}

.panel-body,
.panel-sidebar,
.panel-kpi,
.panel-list span {
    background: #111518;
}

.panel-sidebar i:first-child,
.panel-chart span {
    color: var(--orange);
    background: var(--orange);
    box-shadow: none;
}

.services,
.about {
    background: var(--bg-secondary);
}

.portfolio,
.cta-final {
    background: var(--bg-main);
}

.section-heading p,
.about-copy > p,
.cta-final p {
    color: var(--orange);
}

.section-heading h2,
.about-copy h2,
.cta-final h2 {
    letter-spacing: -0.035em;
}

.card {
    border: 1px solid var(--line);
    border-radius: 4px;
    background: #15191C;
    box-shadow: none;
    transform: none !important;
}

.card::before {
    display: none;
}

.card:hover {
    border-color: #4C5358;
    background: #191E22;
    box-shadow: inset 4px 0 0 var(--orange);
}

.card i {
    color: var(--orange);
    border-color: #513224;
    background: #201711;
}

.portfolio-item {
    border: 1px solid var(--line);
    border-radius: 4px;
    background: #121619;
    box-shadow: none;
}

.portfolio-item:hover,
.portfolio-item:focus-visible {
    border-color: #515A60;
    box-shadow: 0 16px 34px rgba(0, 0, 0, 0.26);
}

.mockup-frame,
.mockup-bar {
    background: #0E1113;
}

.portfolio-copy span {
    color: var(--orange);
}

.about-container {
    border: 1px solid var(--line);
    border-radius: 4px;
    background: #111518;
    box-shadow: none;
}

.about-stack div {
    border-color: var(--line);
    background: #161B1E;
}

.about-stack div:hover {
    border-color: #4D555B;
    background: #1A2024;
    box-shadow: inset 3px 0 0 var(--orange);
}

.about-stack i {
    color: var(--orange);
}

.cta-final {
    border: 1px solid #3E2D25;
    border-left: 5px solid var(--orange);
    border-radius: 4px;
    box-shadow: none;
}

footer {
    background: #07090A;
    border-color: var(--line);
}

.mobile-nav,
.portfolio-modal {
    background: rgba(11, 13, 15, 0.97);
}

.portfolio-modal-content {
    border-color: #3B4349;
    background: #12161A;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.5);
}

:focus-visible {
    outline: 3px solid var(--orange);
    outline-offset: 3px;
}

@media (max-width: 920px) {
    .hero {
        min-height: auto;
    }
    .hero::before {
        width: 3px;
        height: 30%;
    }
    .hero-panel {
        box-shadow: 10px 10px 0 #171C20;
    }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}
::-webkit-scrollbar-track {
    background: var(--bg-main);
}
::-webkit-scrollbar-thumb {
    background: rgba(247, 246, 247, 0.12);
    border-radius: 5px;
    border: 2px solid var(--bg-main);
    transition: background 0.25s ease;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--purple);
}

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

html {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    background: var(--bg-main);
}

body {
    width: 100%;
    max-width: 100%;
    background:
        radial-gradient(circle at 20% 0%, rgba(52, 16, 93, 0.55), transparent 34rem),
        radial-gradient(circle at 82% 10%, rgba(253, 82, 0, 0.22), transparent 30rem),
        var(--bg-main);
    color: var(--white);
    font-family: 'Inter', Arial, sans-serif;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

body::before {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(247, 246, 247, 0.028) 1px, transparent 1px),
        linear-gradient(90deg, rgba(247, 246, 247, 0.028) 1px, transparent 1px);
    background-size: 72px 72px;
    mask-image: linear-gradient(to bottom, black, transparent 72%);
    z-index: -2;
}

a {
    color: inherit;
}

header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    min-height: 76px;
    padding: 18px clamp(20px, 5vw, 72px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    z-index: 1000;
    background: rgba(5, 5, 6, 0.72);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(18px);
}

.logo {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    color: var(--white);
    font-size: 1.42rem;
    font-weight: 800;
    letter-spacing: 0;
    white-space: nowrap;
}

.logo span {
    color: var(--orange);
}

.desktop-nav ul {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 28px;
}

.desktop-nav a {
    position: relative;
    color: var(--muted);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 600;
    transition: color 0.25s ease;
}

.desktop-nav a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -10px;
    width: 100%;
    height: 2px;
    transform: scaleX(0);
    transform-origin: right;
    background: linear-gradient(90deg, var(--purple), var(--orange));
    transition: transform 0.25s ease;
}

.desktop-nav a:hover {
    color: var(--white);
}

.desktop-nav a:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

.header-cta,
.btn-secondary,
.btn-main {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 22px;
    border-radius: var(--radius);
    font-weight: 800;
    text-decoration: none;
    transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.header-cta {
    min-height: 42px;
    padding: 0 18px;
    color: var(--white);
    border: 1px solid rgba(253, 122, 0, 0.36);
    background: rgba(253, 122, 0, 0.08);
}

.header-cta:hover {
    transform: translateY(-2px) scale(1.02);
    border-color: var(--orange);
    box-shadow: 0 12px 32px var(--shadow-orange);
}

.header-cta:active {
    transform: translateY(0) scale(0.98);
}

.btn-main {
    color: #150904;
    background: linear-gradient(135deg, var(--orange), var(--orange-dark));
    box-shadow: 0 16px 42px var(--shadow-orange);
}

.btn-main:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 24px 58px rgba(253, 122, 0, 0.45);
}

.btn-main:active {
    transform: translateY(-1px) scale(0.98);
}

.btn-secondary {
    color: var(--white);
    border: 1px solid rgba(247, 246, 247, 0.18);
    background: rgba(247, 246, 247, 0.055);
}

.btn-secondary:hover {
    transform: translateY(-3px) scale(1.02);
    border-color: rgba(109, 59, 255, 0.9);
    box-shadow: 0 20px 48px var(--shadow-purple);
}

.btn-secondary:active {
    transform: translateY(-1px) scale(0.98);
}

.hamburger-menu,
.close-mobile-nav {
    display: none;
    background: transparent;
    border: 0;
    color: var(--white);
    cursor: pointer;
    transition: color 0.25s ease, transform 0.25s ease;
}

.hamburger-menu {
    font-size: 1.7rem;
}

.hamburger-menu:hover {
    color: var(--orange);
    transform: scale(1.1);
}

.mobile-nav {
    position: fixed;
    inset: 0;
    z-index: 1001;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 34px;
    padding: 32px;
    background:
        radial-gradient(circle at 25% 20%, rgba(109, 59, 255, 0.32), transparent 22rem),
        radial-gradient(circle at 80% 78%, rgba(253, 122, 0, 0.22), transparent 22rem),
        rgba(5, 5, 6, 0.92);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.mobile-nav.active {
    transform: translateX(0);
}

.mobile-nav ul {
    list-style: none;
    display: grid;
    gap: 18px;
    text-align: center;
}

.mobile-nav a {
    color: var(--white);
    font-size: 1.8rem;
    font-weight: 800;
    text-decoration: none;
    transition: color 0.25s ease, transform 0.25s ease;
}

.mobile-nav a:hover {
    color: var(--orange);
    transform: scale(1.05);
}

.mobile-budget {
    font-size: 1rem !important;
}

.close-mobile-nav {
    position: absolute;
    top: 22px;
    right: 28px;
    display: block;
    font-size: 2.8rem;
    line-height: 1;
}

.close-mobile-nav:hover {
    transform: rotate(90deg) scale(1.1);
    color: var(--orange);
}

main {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
}

.hero {
    position: relative;
    width: 100%;
    max-width: 100%;
    min-height: 100vh;
    display: grid;
    grid-template-columns: minmax(0, 0.96fr) minmax(320px, 560px);
    align-items: center;
    gap: clamp(28px, 6vw, 76px);
    padding: 140px clamp(20px, 6vw, 88px) 88px;
    background:
        radial-gradient(circle at 12% 24%, rgba(109, 59, 255, 0.28), transparent 30rem),
        radial-gradient(circle at 78% 44%, rgba(253, 122, 0, 0.18), transparent 34rem),
        linear-gradient(135deg, var(--bg-main) 0%, var(--bg-secondary) 62%, #140718 100%);
    overflow: hidden;
}

.hero::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 160px;
    background: linear-gradient(to bottom, transparent, var(--bg-main));
    pointer-events: none;
}

.hero-grid {
    position: absolute;
    inset: 0;
    opacity: 0.34;
    background:
        linear-gradient(rgba(247, 246, 247, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(247, 246, 247, 0.035) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: radial-gradient(circle at 48% 35%, black, transparent 72%);
}

.floating-shape {
    position: absolute;
    border-radius: 999px;
    filter: blur(72px);
    opacity: 0.56;
    pointer-events: none;
    transition: transform 0.12s ease-out;
}

.shape1 {
    width: 280px;
    height: 280px;
    left: -90px;
    top: 120px;
    background: var(--purple);
}

.shape2 {
    width: 340px;
    height: 340px;
    right: -120px;
    top: 170px;
    background: var(--orange-dark);
}

.shape3 {
    width: 240px;
    height: 240px;
    right: 24%;
    bottom: 8%;
    background: var(--purple-deep);
}

.hero-content,
.hero-panel {
    position: relative;
    z-index: 2;
    min-width: 0;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    width: fit-content;
    margin-bottom: 22px;
    padding: 8px 12px;
    color: var(--gray);
    font-size: 0.88rem;
    font-weight: 700;
    border: 1px solid rgba(247, 246, 247, 0.12);
    border-radius: 999px;
    background: rgba(247, 246, 247, 0.055);
    backdrop-filter: blur(14px);
}

.eyebrow span {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: var(--orange);
    box-shadow: 0 0 18px var(--orange);
}

.hero h1 {
    max-width: 840px;
    font-size: clamp(2.65rem, 5.4vw, 5.9rem);
    line-height: 1;
    letter-spacing: 0;
    color: var(--white);
}

.hero p {
    max-width: 760px;
    margin-top: 24px;
    color: var(--gray);
    font-size: clamp(1.02rem, 1.45vw, 1.3rem);
    line-height: 1.72;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 34px;
}

.hero-metrics {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    max-width: 760px;
    margin-top: 46px;
}

.hero-metrics div {
    padding: 18px;
    min-height: 104px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(247, 246, 247, 0.045);
    backdrop-filter: blur(12px);
}

.hero-metrics strong {
    display: block;
    margin-bottom: 8px;
    color: var(--white);
    font-size: 1.05rem;
}

.hero-metrics span {
    color: var(--muted);
    font-size: 0.9rem;
    line-height: 1.45;
}

.hero-panel {
    width: min(100%, 560px);
    max-width: 100%;
    justify-self: end;
    border: 1px solid rgba(247, 246, 247, 0.14);
    border-radius: 16px;
    background: linear-gradient(145deg, rgba(247, 246, 247, 0.14), rgba(247, 246, 247, 0.04));
    box-shadow:
        0 38px 120px rgba(0, 0, 0, 0.52),
        0 0 80px rgba(109, 59, 255, 0.18);
    overflow: hidden;
    backdrop-filter: blur(20px);
}

.panel-topbar,
.mockup-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    height: 44px;
    padding: 0 16px;
    border-bottom: 1px solid var(--line);
    background: rgba(5, 5, 6, 0.46);
}

.panel-topbar span,
.mockup-bar span {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: rgba(247, 246, 247, 0.28);
}

.panel-topbar span:first-child,
.mockup-bar span:first-child {
    background: var(--orange);
}

.panel-topbar span:nth-child(2),
.mockup-bar span:nth-child(2) {
    background: var(--purple);
}

.panel-topbar small,
.mockup-bar small {
    margin-left: auto;
    color: rgba(214, 214, 214, 0.62);
    font-size: 0.78rem;
    font-weight: 700;
}

.panel-body {
    display: grid;
    grid-template-columns: 74px minmax(0, 1fr);
    min-height: 430px;
}

.panel-sidebar {
    display: grid;
    align-content: start;
    gap: 14px;
    padding: 22px 16px;
    border-right: 1px solid var(--line);
    background: rgba(15, 11, 20, 0.6);
}

.panel-sidebar i {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    color: var(--gray);
    border: 1px solid rgba(247, 246, 247, 0.1);
    border-radius: var(--radius);
    background: rgba(247, 246, 247, 0.055);
}

.panel-sidebar i:first-child {
    color: var(--orange);
    box-shadow: inset 0 0 24px rgba(253, 122, 0, 0.12);
}

.panel-content {
    display: grid;
    grid-template-rows: auto 1fr auto;
    gap: 20px;
    padding: clamp(18px, 3vw, 34px);
}

.panel-kpi {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px;
    border: 1px solid rgba(109, 59, 255, 0.25);
    border-radius: var(--radius);
    background: linear-gradient(135deg, rgba(109, 59, 255, 0.16), rgba(253, 122, 0, 0.08));
}

.panel-kpi span {
    color: var(--gray);
    font-weight: 700;
}

.panel-kpi strong {
    color: var(--orange);
    font-size: 2rem;
}

.panel-chart {
    display: flex;
    align-items: end;
    gap: 14px;
    min-height: 180px;
    padding: 22px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(5, 5, 6, 0.42);
}

.panel-chart span {
    flex: 1;
    min-width: 0;
    border-radius: 6px 6px 0 0;
    background: linear-gradient(180deg, var(--orange), var(--purple));
    box-shadow: 0 0 28px rgba(109, 59, 255, 0.22);
}

.panel-list {
    display: grid;
    gap: 10px;
}

.panel-list span {
    height: 14px;
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(247, 246, 247, 0.16), rgba(247, 246, 247, 0.04));
}

.panel-list span:nth-child(2) {
    width: 78%;
}

.panel-list span:nth-child(3) {
    width: 58%;
}

.services,
.portfolio,
.about,
.cta-final {
    position: relative;
    max-width: 100%;
    padding: 110px clamp(20px, 6vw, 88px);
}

.section-heading {
    max-width: 820px;
    margin: 0 auto 54px;
    text-align: center;
}

.section-heading p,
.about-copy > p,
.cta-final p {
    margin-bottom: 12px;
    color: var(--orange);
    font-size: 0.85rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.section-heading h2,
.about-copy h2,
.cta-final h2 {
    color: var(--white);
    font-size: clamp(2rem, 4vw, 4.2rem);
    line-height: 1.04;
    letter-spacing: 0;
}

.section-heading span {
    display: block;
    max-width: 660px;
    margin: 18px auto 0;
    color: var(--gray);
    font-size: 1.04rem;
    line-height: 1.72;
}

.cards-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px;
    max-width: 1340px;
    margin: 0 auto;
}

.card {
    position: relative;
    min-height: 260px;
    padding: 26px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background:
        linear-gradient(145deg, rgba(247, 246, 247, 0.09), rgba(247, 246, 247, 0.035)),
        rgba(15, 11, 20, 0.72);
    overflow: hidden;
    cursor: default;
    transform-style: preserve-3d;
    transition: transform 0.25s cubic-bezier(0.25, 0.8, 0.25, 1), border-color 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease;
    backdrop-filter: blur(18px);
}

.card::before {
    content: '';
    position: absolute;
    inset: -1px;
    opacity: 0;
    background: radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 0%), rgba(253, 122, 0, 0.22), transparent 16rem);
    transition: opacity 0.25s ease;
}

.card:hover {
    border-color: rgba(253, 122, 0, 0.45);
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.4), 0 0 44px rgba(109, 59, 255, 0.16);
    background: rgba(20, 15, 27, 0.8);
}

.card:hover::before {
    opacity: 1;
}

.card i,
.card h3,
.card p {
    position: relative;
    z-index: 1;
    transform: translateZ(18px);
}

.card i {
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    margin-bottom: 28px;
    color: var(--orange);
    font-size: 1.25rem;
    border: 1px solid rgba(253, 122, 0, 0.18);
    border-radius: var(--radius);
    background: rgba(253, 122, 0, 0.08);
}

.card h3 {
    margin-bottom: 12px;
    color: var(--white);
    font-size: 1.1rem;
    line-height: 1.25;
}

.card p {
    color: var(--muted);
    font-size: 0.94rem;
    line-height: 1.65;
}

.portfolio {
    background:
        radial-gradient(circle at 12% 8%, rgba(109, 59, 255, 0.18), transparent 28rem),
        linear-gradient(180deg, var(--bg-main), var(--bg-secondary));
}

.gallery {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
    max-width: 1240px;
    margin: 0 auto;
}

.portfolio-item {
    display: grid;
    grid-template-rows: auto 1fr;
    min-height: 460px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: linear-gradient(145deg, rgba(247, 246, 247, 0.09), rgba(247, 246, 247, 0.035));
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1), border-color 0.3s ease, box-shadow 0.3s ease;
}

.portfolio-item:hover {
    transform: translateY(-8px) scale(1.01);
    border-color: rgba(109, 59, 255, 0.55);
    box-shadow: 0 34px 90px rgba(0, 0, 0, 0.45), 0 0 54px rgba(109, 59, 255, 0.2);
}

.mockup-frame {
    margin: 18px 18px 0;
    border: 1px solid rgba(247, 246, 247, 0.13);
    border-radius: 12px;
    overflow: hidden;
    background: #09080c;
}

.mockup-frame img {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.portfolio-item:hover img {
    transform: scale(1.04);
}

.portfolio-copy {
    padding: 24px;
}

.portfolio-copy h3 {
    color: var(--white);
    font-size: 1.35rem;
    line-height: 1.25;
}

.portfolio-copy p {
    display: -webkit-box;
    min-height: 58px;
    margin-top: 10px;
    color: var(--muted);
    line-height: 1.6;
    overflow: hidden;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.portfolio-copy span {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin-top: 20px;
    color: var(--orange);
    font-weight: 800;
}

.portfolio-copy i {
    transition: transform 0.25s ease;
}

.portfolio-item:hover .portfolio-copy i {
    transform: translateX(6px);
}

.empty-portfolio {
    grid-column: 1 / -1;
    padding: 54px 28px;
    text-align: center;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--glass);
}

.empty-portfolio i {
    color: var(--orange);
    font-size: 2.2rem;
    margin-bottom: 16px;
}

.empty-portfolio h3 {
    margin-bottom: 8px;
}

.empty-portfolio p {
    color: var(--muted);
}

.about {
    background:
        radial-gradient(circle at 82% 25%, rgba(253, 122, 0, 0.12), transparent 24rem),
        var(--bg-main);
}

.about-container {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 0.74fr);
    gap: clamp(28px, 6vw, 74px);
    max-width: 1240px;
    margin: 0 auto;
    padding: clamp(28px, 5vw, 64px);
    border: 1px solid var(--line);
    border-radius: 16px;
    background:
        linear-gradient(145deg, rgba(247, 246, 247, 0.075), rgba(247, 246, 247, 0.03)),
        rgba(15, 11, 20, 0.58);
    box-shadow: 0 36px 100px rgba(0, 0, 0, 0.34);
    backdrop-filter: blur(18px);
}

.about-text {
    margin-top: 24px;
    color: var(--gray);
    font-size: 1.04rem;
    line-height: 1.86;
}

.about-stack {
    display: grid;
    gap: 14px;
}

.about-stack div {
    padding: 22px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(5, 5, 6, 0.36);
    transition: border-color 0.3s ease, transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1), box-shadow 0.3s ease;
}

.about-stack div:hover {
    border-color: rgba(253, 122, 0, 0.35);
    transform: translateY(-4px);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.25);
}

.about-stack i {
    color: var(--orange);
    font-size: 1.3rem;
    margin-bottom: 16px;
}

.about-stack strong {
    display: block;
    margin-bottom: 8px;
    color: var(--white);
}

.about-stack span {
    color: var(--muted);
    line-height: 1.6;
}

.cta-final {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    max-width: 1240px;
    margin: 0 auto 44px;
    padding: clamp(28px, 5vw, 54px);
    border: 1px solid rgba(253, 122, 0, 0.22);
    border-radius: 16px;
    background:
        radial-gradient(circle at 14% 50%, rgba(109, 59, 255, 0.24), transparent 28rem),
        linear-gradient(135deg, rgba(247, 246, 247, 0.09), rgba(253, 122, 0, 0.08));
    box-shadow: 0 34px 100px rgba(0, 0, 0, 0.3);
}

.cta-final h2 {
    max-width: 780px;
    font-size: clamp(2rem, 4vw, 3.7rem);
}

footer {
    padding: 48px clamp(20px, 6vw, 88px);
    text-align: center;
    border-top: 1px solid var(--line);
    background: #030304;
}

footer .logo {
    justify-content: center;
    margin-bottom: 18px;
}

footer p {
    margin-top: 8px;
    color: var(--muted);
}

.footer-legal {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px 18px;
}

.footer-legal a {
    color: var(--muted);
    text-decoration: none;
    transition: color .2s ease;
}

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

.whatsapp-float {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 100;
    display: grid;
    place-items: center;
    width: 58px;
    height: 58px;
    color: white;
    text-decoration: none;
    font-size: 1.8rem;
    border-radius: 999px;
    background: #25d366;
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.54);
    animation: pulse 2.2s infinite;
    transition: transform 0.25s ease;
}

.whatsapp-float:hover {
    transform: translateY(-3px) scale(1.04);
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.54);
    }
    72% {
        box-shadow: 0 0 0 16px rgba(37, 211, 102, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

.reveal {
    opacity: 0;
    transform: translateY(34px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

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

.portfolio-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
    opacity: 0;
    background: rgba(5, 5, 6, 0.88);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    transition: opacity 0.3s ease;
}

.portfolio-modal.show {
    opacity: 1;
}

.portfolio-modal-content {
    position: relative;
    width: min(980px, 100%);
    max-height: 92vh;
    padding: 18px;
    color: var(--white);
    border: 1px solid var(--line);
    border-radius: 16px;
    background: linear-gradient(145deg, rgba(247, 246, 247, 0.12), rgba(15, 11, 20, 0.92));
    box-shadow: 0 34px 120px rgba(0, 0, 0, 0.58);
    overflow: auto;
    transform: scale(0.9);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.portfolio-modal.show .portfolio-modal-content {
    transform: scale(1);
}

.portfolio-modal-content img {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: 10px;
    border: 1px solid rgba(247, 246, 247, 0.1);
}

.portfolio-modal-content h3 {
    margin-top: 20px;
    color: var(--orange);
    font-size: 1.55rem;
}

.portfolio-modal-content p {
    margin-top: 8px;
    color: var(--gray);
    line-height: 1.7;
}

.close-portfolio {
    position: absolute;
    top: 10px;
    right: 12px;
    z-index: 2;
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    color: var(--white);
    font-size: 2rem;
    line-height: 1;
    border: 1px solid rgba(247, 246, 247, 0.18);
    border-radius: var(--radius);
    background: rgba(5, 5, 6, 0.76);
    cursor: pointer;
    transition: color 0.25s ease, transform 0.25s ease, background-color 0.25s ease, border-color 0.25s ease;
}

.close-portfolio:hover {
    color: var(--white);
    background: var(--orange);
    border-color: var(--orange);
    transform: scale(1.05) rotate(90deg);
}

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

    .hero-panel {
        justify-self: start;
        width: min(100%, 520px);
    }
}

@media (max-width: 920px) {
    header {
        min-height: 70px;
    }

    .desktop-nav,
    .header-cta {
        display: none;
    }

    .hamburger-menu {
        display: block;
    }

    .hero {
        padding-top: 120px;
    }

    .hero-metrics,
    .gallery,
    .about-container {
        grid-template-columns: 1fr;
    }

    .portfolio-item {
        min-height: 0;
    }

    .cta-final {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 620px) {
    body,
    main,
    section,
    header,
    footer,
    .hero,
    .services,
    .portfolio,
    .about,
    .cta-final,
    .cards-container,
    .gallery,
    .about-container {
        max-width: 100%;
        overflow-x: hidden;
    }

    img,
    video,
    iframe,
    canvas {
        max-width: 100%;
    }

    .hero {
        min-height: auto;
        padding-bottom: 70px;
    }

    .eyebrow {
        align-items: flex-start;
        border-radius: var(--radius);
    }

    .hero-actions,
    .hero-actions a,
    .cta-final .btn-main {
        width: 100%;
    }

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

    .hero-panel {
        display: none;
    }

    .services,
    .portfolio,
    .about {
        padding-top: 78px;
        padding-bottom: 78px;
    }

    .card {
        min-height: 0;
    }

    .mockup-frame {
        margin: 12px 12px 0;
    }

    .portfolio-copy {
        padding: 20px;
        overflow-wrap: anywhere;
    }

    .mobile-nav a {
        font-size: 1.45rem;
    }

    .whatsapp-float {
        right: 18px;
        bottom: 18px;
        width: 52px;
        height: 52px;
        font-size: 1.55rem;
    }
}
