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

:root {
    --blue: #4ECFFF;
    --purple: #A855F7;
    --gold: #FFB830;
    --dark: #07070F;
    --surface: #0D0D1A;
    --surf: #0D0D1A;
    --surface2: #141428;
    --border: rgba(168, 85, 247, .15);
    --bord: rgba(168, 85, 247, .15);
    --text: #E8E8FF;
    --muted: #7777AA;
    --grad: linear-gradient(135deg, #4ECFFF 0%, #A855F7 50%, #FFB830 100%);
    --grad-r: linear-gradient(135deg, rgba(78, 207, 255, .08) 0%, rgba(168, 85, 247, .08) 50%, rgba(255, 184, 48, .08) 100%);
    --err: #FF6B6B;
    --ok: #00C896;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Space Grotesk', sans-serif;
    background: var(--dark);
    color: var(--text);
    overflow-x: hidden;
    cursor: none;
}

/* =====================================================
   GRAIN OVERLAY
===================================================== */
.grain {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 9998;
    opacity: .025;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    background-size: 128px 128px;
}

/* =====================================================
   CUSTOM CURSOR
===================================================== */
.cursor-dot {
    width: 6px;
    height: 6px;
    background: var(--purple);
    border-radius: 50%;
    position: fixed;
    top: 0;
    left: 0;
    transform: translate(-50%, -50%) translate3d(0, 0, 0);
    will-change: transform, left, top;
    pointer-events: none;
    z-index: 10000;
    transition: width 0.2s, height 0.2s, background-color 0.2s, opacity 0.2s ease, transform 0.2s ease;
}

.cursor-ring {
    width: 32px;
    height: 32px;
    border: 1.5px solid var(--purple);
    border-radius: 50%;
    position: fixed;
    top: 0;
    left: 0;
    transform: translate(-50%, -50%) translate3d(0, 0, 0);
    will-change: transform, left, top;
    pointer-events: none;
    z-index: 9999;
    transition: width 0.25s, height 0.25s, border-color 0.25s, background-color 0.25s, opacity 0.2s ease, transform 0.2s ease;
}

/* Hover state */
body.cursor-hover .cursor-dot {
    width: 4px;
    height: 4px;
    background: var(--blue);
}

body.cursor-hover .cursor-ring {
    width: 44px;
    height: 44px;
    border-color: var(--blue);
    background: rgba(78, 207, 255, 0.05);
}

/* Text mode state - fade out custom cursor to let default text caret (I-beam) appear */
body.cursor-text-mode .cursor-dot,
body.cursor-text-mode .cursor-ring {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.4);
}

/* Hide browser default cursor on interactive items only on the public page */
body:not(.bauth) a,
body:not(.bauth) button,
body:not(.bauth) select,
body:not(.bauth) .svc-card,
body:not(.bauth) .port-item,
body:not(.bauth) input[type="submit"],
body:not(.bauth) input[type="button"],
body:not(.bauth) [role="button"] {
    cursor: none !important;
}

/* Disable custom cursor only on touch devices (phones/tablets) where pointer doesn't exist */
@media (hover: none) and (pointer: coarse) {
    body {
        cursor: auto !important;
    }
    .cursor-dot, .cursor-ring {
        display: none !important;
    }
}




/* =====================================================
   Authentication Page
===================================================== */


.auth1,
.bauth {
    height: 100%;
}

.bauth {
    font-family: 'Space Grotesk', sans-serif;
    background: var(--dark);
    color: var(--text);
    display: flex;
    min-height: 100vh;
    cursor: default;
}

/* ── LEFT BRAND PANEL ── */
.brand-panel {
    flex: 1;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4rem;
    overflow: hidden;
}

.brand-panel::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 30% 40%, rgba(78, 207, 255, .12) 0%, transparent 60%),
        radial-gradient(ellipse at 70% 70%, rgba(168, 85, 247, .15) 0%, transparent 60%),
        radial-gradient(ellipse at 50% 90%, rgba(255, 184, 48, .07) 0%, transparent 50%);
}

/* Animated orbs */
.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    pointer-events: none;
    opacity: .6;
}

.orb-1 {
    width: 300px;
    height: 300px;
    background: rgba(78, 207, 255, .15);
    top: 5%;
    left: -10%;
    animation: orbFloat 9s ease-in-out infinite;
}

.orb-2 {
    width: 250px;
    height: 250px;
    background: rgba(168, 85, 247, .2);
    bottom: 10%;
    right: -5%;
    animation: orbFloat 12s ease-in-out infinite reverse;
}

.orb-3 {
    width: 180px;
    height: 180px;
    background: rgba(255, 184, 48, .12);
    top: 55%;
    left: 40%;
    animation: orbFloat 7s ease-in-out infinite 2s;
}

@keyframes orbFloat {

    0%,
    100% {
        transform: translateY(0)
    }

    50% {
        transform: translateY(-20px)
    }
}

.brand-content {
    position: relative;
    z-index: 1;
    text-align: center;
}

.brand-logo {
    font-family: 'Orbitron', sans-serif;
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    font-weight: 900;
    letter-spacing: .12em;
    background: var(--grad);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 0 40px rgba(168, 85, 247, .35));
    margin-bottom: .3rem;
}

.brand-sub {
    font-family: 'Orbitron', sans-serif;
    font-size: clamp(.7rem, 1.5vw, .95rem);
    letter-spacing: .55em;
    color: var(--gold);
    margin-bottom: 3rem;
}

.brand-tagline {
    font-size: 1rem;
    color: var(--muted);
    line-height: 1.8;
    max-width: 360px;
    margin: 0 auto 3rem;
}

.brand-features {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    text-align: left;
}

.feat {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.3rem;
    background: rgba(255, 255, 255, .03);
    border: 1px solid var(--bord);
    border-radius: 14px;
    font-size: .88rem;
    color: var(--muted);
    transition: border-color .3s;
}

.feat:hover {
    border-color: rgba(168, 85, 247, .3);
}

.feat-icon {
    font-size: 1.3rem;
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.fi-b {
    background: rgba(78, 207, 255, .1);
}

.fi-p {
    background: rgba(168, 85, 247, .1);
}

.fi-g {
    background: rgba(255, 184, 48, .1);
}

/* Canvas stars */
#brandCanvas {
    position: absolute;
    inset: 0;
    opacity: .5;
}

/* ── RIGHT FORM PANEL ── */
.form-panel {
    width: 480px;
    min-width: 320px;
    background: var(--surf);
    border-left: 1px solid var(--bord);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem 3rem;
    position: relative;
    overflow: hidden;
}

.form-panel::before {
    content: '';
    position: absolute;
    top: -30%;
    right: -30%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(168, 85, 247, .06) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.form-inner {
    width: 100%;
    max-width: 360px;
    position: relative;
    z-index: 1;
}

.form-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.form-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.6rem;
    font-weight: 700;
    background: var(--grad);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: .5rem;
}

.form-subtitle {
    font-size: .85rem;
    color: var(--muted);
}

/* Tabs */
.auth-tabs {
    display: flex;
    margin-bottom: 2rem;
    background: rgba(255, 255, 255, .03);
    border: 1px solid var(--bord);
    border-radius: 99px;
    padding: 4px;
}

.tab-btn {
    flex: 1;
    padding: .55rem 1rem;
    border-radius: 99px;
    border: none;
    background: transparent;
    font-family: 'Space Grotesk', sans-serif;
    font-size: .82rem;
    font-weight: 500;
    letter-spacing: .05em;
    text-transform: uppercase;
    color: var(--muted);
    cursor: pointer;
    transition: all .3s;
}

.tab-btn.on {
    background: var(--grad);
    color: var(--dark);
    font-weight: 700;
}

/* Form fields */
.auth-form {
    display: none;
    flex-direction: column;
    gap: 1rem;
}

.auth-form.active {
    display: flex;
}

.fld {
    display: flex;
    flex-direction: column;
    gap: .4rem;
}

.fld label {
    font-size: .72rem;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: .1em;
}

.input-wrap {
    position: relative;
}

.input-wrap .inp-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1rem;
    pointer-events: none;
    opacity: .5;
}

.fld input {
    width: 100%;
    padding: .85rem 1rem .85rem 2.8rem;
    background: rgba(255, 255, 255, .03);
    border: 1px solid var(--bord);
    border-radius: 12px;
    color: var(--text);
    font-family: 'Space Grotesk', sans-serif;
    font-size: .9rem;
    outline: none;
    transition: border-color .3s, background .3s;
}

.fld input:focus {
    border-color: var(--purple);
    background: rgba(168, 85, 247, .05);
}

.fld input.err {
    border-color: var(--err);
}

.fld input.ok {
    border-color: var(--ok);
}

.field-msg {
    font-size: .72rem;
    color: var(--err);
    min-height: 1rem;
}

.field-msg.ok {
    color: var(--ok);
}

/* Password strength */
.pw-strength {
    margin-top: .4rem;
}

.pw-bars {
    display: flex;
    gap: 4px;
    margin-bottom: .3rem;
}

.pw-bar {
    flex: 1;
    height: 3px;
    border-radius: 99px;
    background: rgba(255, 255, 255, .08);
    transition: background .3s;
}

.pw-bar.s1 {
    background: var(--err);
}

.pw-bar.s2 {
    background: var(--gold);
}

.pw-bar.s3 {
    background: var(--blue);
}

.pw-bar.s4 {
    background: var(--ok);
}

.pw-text {
    font-size: .68rem;
    color: var(--muted);
}

/* Remember / Forgot */
.form-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: .78rem;
}

.remember {
    display: flex;
    align-items: center;
    gap: .5rem;
    color: var(--muted);
    cursor: pointer;
}

.remember input {
    width: auto;
    accent-color: var(--purple);
    cursor: pointer;
}

.forgot {
    color: var(--blue);
    text-decoration: none;
    transition: color .3s;
}

.forgot:hover {
    color: var(--purple);
}

/* Submit */
.auth-submit {
    padding: .95rem;
    background: var(--grad);
    border: none;
    border-radius: 12px;
    color: var(--dark);
    font-family: 'Space Grotesk', sans-serif;
    font-size: .9rem;
    font-weight: 700;
    letter-spacing: .05em;
    cursor: pointer;
    width: 100%;
    margin-top: .5rem;
    transition: opacity .3s, transform .3s, box-shadow .3s;
    box-shadow: 0 0 25px rgba(168, 85, 247, .25);
}

.auth-submit:hover {
    opacity: .9;
    transform: translateY(-2px);
    box-shadow: 0 0 45px rgba(168, 85, 247, .4);
}

.auth-submit:disabled {
    opacity: .5;
    transform: none;
    cursor: not-allowed;
}

/* Alert */
.auth-alert {
    padding: .75rem 1rem;
    border-radius: 10px;
    font-size: .82rem;
    display: none;
    align-items: center;
    gap: .5rem;
}

.auth-alert.show {
    display: flex;
}

.auth-alert.alert-err {
    background: rgba(255, 107, 107, .08);
    border: 1px solid rgba(255, 107, 107, .3);
    color: var(--err);
}

.auth-alert.alert-ok {
    background: rgba(0, 200, 150, .08);
    border: 1px solid rgba(0, 200, 150, .3);
    color: var(--ok);
}

/* Divider */
.divider {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: .5rem 0;
    color: var(--muted);
    font-size: .75rem;
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--bord);
}

/* Back to site */
.back-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .4rem;
    margin-top: 2rem;
    color: var(--muted);
    text-decoration: none;
    font-size: .8rem;
    transition: color .3s;
}

.back-link:hover {
    color: var(--text);
}

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
    .brand-panel {
        display: none;
    }

    .form-panel {
        width: 100%;
        border-left: none;
    }
}

/* =====================================================
   VIDEO INTRO
===================================================== */
#videoIntro {
    position: fixed;
    inset: 0;
    z-index: 9000;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity .8s ease, visibility .8s ease;
    overflow: hidden;
    pointer-events: none; /* botão está fora — overlay não precisa de eventos */
}

#videoIntro.out {
    opacity: 0;
    visibility: hidden;
}

#introVideo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.15);
    transform-origin: center center;
    pointer-events: none; /* iOS: impede o vídeo de capturar touches destinados ao botão */
}

.intro-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom,
            rgba(7, 7, 15, .2) 0%,
            rgba(7, 7, 15, .0) 40%,
            rgba(7, 7, 15, .6) 80%,
            rgba(7, 7, 15, .95) 100%);
    pointer-events: none;
}

.intro-logo {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -60%);
    text-align: center;
    pointer-events: none;
    animation: introLogoAnim 2s ease forwards;
    opacity: 0;
}

@keyframes introLogoAnim {
    0% {
        opacity: 0;
        transform: translate(-50%, -60%) scale(.9);
    }

    30% {
        opacity: 1;
        transform: translate(-50%, -60%) scale(1);
    }

    70% {
        opacity: 1;
    }

    100% {
        opacity: 0;
        transform: translate(-50%, -60%) scale(1.03);
    }
}

.intro-logo-text {
    font-family: 'Orbitron', sans-serif;
    font-size: clamp(3rem, 8vw, 7rem);
    font-weight: 900;
    letter-spacing: .15em;
    background: var(--grad);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 0 40px rgba(168, 85, 247, .5));
}

.intro-logo-sub {
    font-family: 'Orbitron', sans-serif;
    font-size: clamp(.7rem, 2vw, 1rem);
    font-weight: 600;
    letter-spacing: .6em;
    color: var(--gold);
    margin-top: .3rem;
}

.intro-tagline {
    font-size: clamp(.7rem, 1.5vw, .85rem);
    letter-spacing: .35em;
    color: rgba(232, 232, 255, .5);
    margin-top: 1.5rem;
    text-transform: uppercase;
}

.skip-btn {
    position: fixed;
    bottom: 2.5rem;
    right: 2.5rem;
    z-index: 99999;
    background: rgba(255, 255, 255, .06);
    border: 1px solid rgba(255, 255, 255, .15);
    border-radius: 99px;
    padding: .6rem 1.4rem;
    color: rgba(255, 255, 255, .6);
    font-family: 'Space Grotesk', sans-serif;
    font-size: .75rem;
    font-weight: 500;
    letter-spacing: .15em;
    text-transform: uppercase;
    cursor: pointer !important;
    touch-action: manipulation;
    -webkit-tap-highlight-color: rgba(255, 255, 255, .15);
    transition: all .3s;
    display: flex;
    align-items: center;
    gap: .5rem;
    /* iOS: force tappable area */
    min-width: 44px;
    min-height: 44px;
}

.skip-btn:hover {
    background: rgba(255, 255, 255, .12);
    border-color: rgba(255, 255, 255, .3);
    color: #fff;
}

.skip-btn .skip-icon {
    width: 16px;
    height: 16px;
    border: 1px solid currentColor;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .6rem;
}

.intro-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 2px;
    background: var(--grad);
    width: 0%;
    transition: width .1s linear;
}

/* =====================================================
   NAVIGATION
===================================================== */
nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 500;
    padding: 1.2rem 5%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    background: rgba(7, 7, 15, .65);
    border-bottom: 1px solid var(--border);
    transition: padding .3s, background .3s;
}

nav.scrolled {
    padding: .8rem 5%;
    background: rgba(7, 7, 15, .92);
}

.nav-logo {
    font-family: 'Orbitron', sans-serif;
    font-weight: 900;
    font-size: 1.15rem;
    letter-spacing: .15em;
    background: var(--grad);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-decoration: none;
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    list-style: none;
}

.nav-links a {
    color: var(--muted);
    text-decoration: none;
    font-size: .82rem;
    font-weight: 500;
    letter-spacing: .1em;
    text-transform: uppercase;
    transition: color .3s;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--grad);
    transition: width .3s;
}

.nav-links a:hover {
    color: var(--text);
}

.nav-links a:hover::after {
    width: 100%;
}

/* Página atual na navegação */
.nav-links a.active {
    color: var(--text);
}

.nav-links a.active::after {
    width: 100%;
}

.mobile-nav a.active {
    color: var(--blue);
}

/* Espaço extra no topo da 1ª secção das subpáginas (navbar fixa) */
.subpage section:first-of-type {
    padding-top: 10rem;
}

.nav-cta {
    background: var(--grad) !important;
    -webkit-text-fill-color: var(--dark) !important;
    color: var(--dark) !important;
    padding: .55rem 1.4rem !important;
    border-radius: 99px;
    font-weight: 700 !important;
    transition: opacity .3s, transform .3s !important;
}

.nav-cta::after {
    display: none !important;
}

.nav-cta:hover {
    opacity: .9;
    transform: scale(1.05);
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.hamburger span {
    width: 24px;
    height: 2px;
    background: var(--text);
    border-radius: 99px;
    transition: all .3s;
    display: block;
}

.mobile-nav {
    display: none;
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    background: rgba(7, 7, 15, .97);
    border-bottom: 1px solid var(--border);
    padding: 1.5rem 5%;
    z-index: 499;
    flex-direction: column;
    gap: 1.5rem;
}

.mobile-nav.open {
    display: flex;
}

.mobile-nav a {
    color: var(--muted);
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    letter-spacing: .1em;
    text-transform: uppercase;
    transition: color .3s;
}

.mobile-nav a:hover {
    color: var(--text);
}

/* =====================================================
   HERO
===================================================== */
.hero {
    min-height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 6rem 5% 4rem;
}

#particleCanvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.hero-glow {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}

.hero-glow-1 {
    width: 700px;
    height: 700px;
    top: -15%;
    left: -20%;
    background: radial-gradient(circle, rgba(78, 207, 255, .1) 0%, transparent 70%);
    animation: glow1 9s ease-in-out infinite;
}

.hero-glow-2 {
    width: 600px;
    height: 600px;
    top: 10%;
    right: -15%;
    background: radial-gradient(circle, rgba(168, 85, 247, .13) 0%, transparent 70%);
    animation: glow2 11s ease-in-out infinite;
}

.hero-glow-3 {
    width: 500px;
    height: 500px;
    bottom: -15%;
    left: 35%;
    background: radial-gradient(circle, rgba(255, 184, 48, .07) 0%, transparent 70%);
    animation: glow3 8s ease-in-out infinite;
}

@keyframes glow1 {

    0%,
    100% {
        transform: translate(0, 0) scale(1)
    }

    50% {
        transform: translate(30px, 25px) scale(1.08)
    }
}

@keyframes glow2 {

    0%,
    100% {
        transform: translate(0, 0) scale(1)
    }

    50% {
        transform: translate(-20px, 20px) scale(.95)
    }
}

@keyframes glow3 {

    0%,
    100% {
        transform: translate(0, 0) scale(1)
    }

    50% {
        transform: translate(15px, -25px) scale(1.05)
    }
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 950px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .4rem 1.1rem;
    border: 1px solid var(--border);
    border-radius: 99px;
    font-size: .72rem;
    letter-spacing: .25em;
    text-transform: uppercase;
    color: var(--blue);
    margin-bottom: 2rem;
    background: rgba(78, 207, 255, .05);
    animation: fadeUp .8s ease forwards .3s;
    opacity: 0;
}

.hero-badge::before {
    content: '';
    width: 6px;
    height: 6px;
    background: var(--blue);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
        transform: scale(1)
    }

    50% {
        opacity: .4;
        transform: scale(1.6)
    }
}

.hero-title {
    font-family: 'Orbitron', sans-serif;
    font-size: clamp(3.5rem, 10vw, 9rem);
    font-weight: 900;
    line-height: .9;
    letter-spacing: .06em;
    background: var(--grad);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 0 60px rgba(168, 85, 247, .25));
    animation: fadeUp .8s ease forwards .5s;
    opacity: 0;
    margin-bottom: .3rem;
}

.hero-sub {
    font-family: 'Orbitron', sans-serif;
    font-size: clamp(1rem, 2.5vw, 1.8rem);
    font-weight: 400;
    color: var(--gold);
    letter-spacing: .55em;
    margin-bottom: 2rem;
    animation: fadeUp .8s ease forwards .65s;
    opacity: 0;
}

.hero-tagline {
    font-size: clamp(.95rem, 1.8vw, 1.25rem);
    color: var(--muted);
    max-width: 580px;
    margin: 0 auto 3rem;
    line-height: 1.7;
    animation: fadeUp .8s ease forwards .8s;
    opacity: 0;
}

.hero-tagline .typed-text {
    color: var(--text);
}

.typed-cursor {
    color: var(--purple);
    animation: blink 1s infinite;
}

@keyframes blink {

    0%,
    100% {
        opacity: 1
    }

    50% {
        opacity: 0
    }
}

.hero-btns {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeUp .8s ease forwards 1s;
    opacity: 0;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

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

.scroll-hint {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .5rem;
    color: var(--muted);
    font-size: .65rem;
    letter-spacing: .25em;
    text-transform: uppercase;
    animation: fadeUp .8s ease forwards 1.3s, scrollBounce 2s ease-in-out 2.5s infinite;
    opacity: 0;
}

.scroll-hint-arrow {
    width: 18px;
    height: 18px;
    border-right: 1px solid var(--purple);
    border-bottom: 1px solid var(--purple);
    transform: rotate(45deg);
}

@keyframes scrollBounce {

    0%,
    100% {
        transform: translateX(-50%) translateY(0)
    }

    50% {
        transform: translateX(-50%) translateY(8px)
    }
}

/* =====================================================
   BUTTONS
===================================================== */
.btn-primary {
    padding: .9rem 2.4rem;
    background: var(--grad);
    border: none;
    border-radius: 99px;
    color: var(--dark);
    font-family: 'Space Grotesk', sans-serif;
    font-size: .85rem;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    transition: transform .3s, box-shadow .3s;
    box-shadow: 0 0 30px rgba(168, 85, 247, .3);
}

.btn-primary:hover {
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 0 55px rgba(168, 85, 247, .5);
}

.btn-secondary {
    padding: .9rem 2.4rem;
    background: transparent;
    border: 1px solid rgba(168, 85, 247, .4);
    border-radius: 99px;
    color: var(--text);
    font-family: 'Space Grotesk', sans-serif;
    font-size: .85rem;
    font-weight: 500;
    letter-spacing: .06em;
    text-transform: uppercase;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    transition: all .3s;
}

.btn-secondary:hover {
    background: rgba(168, 85, 247, .1);
    border-color: var(--purple);
    transform: translateY(-3px);
}

/* Full-width variant (contact form submit) */
.btn-full {
    width: 100%;
    justify-content: center;
}

/* =====================================================
   MARQUEE
===================================================== */
.marquee-strip {
    padding: 1rem 0;
    overflow: hidden;
    background: var(--surface);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.marquee-track {
    display: inline-flex;
    animation: marqueeRun 30s linear infinite;
}

.marquee-item {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    margin-right: 3rem;
    font-size: .75rem;
    font-weight: 600;
    letter-spacing: .15em;
    text-transform: uppercase;
}

.marquee-item:nth-child(6n+1) {
    color: var(--blue);
}

.marquee-item:nth-child(6n+2) {
    color: var(--purple);
}

.marquee-item:nth-child(6n+3) {
    color: var(--gold);
}

.marquee-item:nth-child(6n+4) {
    color: var(--blue);
}

.marquee-item:nth-child(6n+5) {
    color: var(--purple);
}

.marquee-item:nth-child(6n+0) {
    color: var(--gold);
}

@keyframes marqueeRun {
    from {
        transform: translateX(0)
    }

    to {
        transform: translateX(-50%)
    }
}

/* =====================================================
   SECTIONS — BASE
===================================================== */
section {
    padding: 8rem 5%;
}

.section-header {
    text-align: center;
    margin-bottom: 5rem;
}

.section-tag {
    display: inline-block;
    font-size: .68rem;
    font-weight: 600;
    letter-spacing: .3em;
    text-transform: uppercase;
    color: var(--purple);
    margin-bottom: 1rem;
    padding: .28rem .9rem;
    border: 1px solid rgba(168, 85, 247, .3);
    border-radius: 99px;
    background: rgba(168, 85, 247, .05);
}

.section-title {
    font-family: 'Orbitron', sans-serif;
    font-size: clamp(1.8rem, 4.5vw, 3.2rem);
    font-weight: 700;
    line-height: 1.15;
    margin-bottom: 1.5rem;
}

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

.section-desc {
    font-size: 1rem;
    color: var(--muted);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.75;
}

/* Scroll reveal */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity .8s ease, transform .8s ease;
}

.reveal.vis {
    opacity: 1;
    transform: none;
}

.d1 {
    transition-delay: .1s
}

.d2 {
    transition-delay: .2s
}

.d3 {
    transition-delay: .3s
}

.d4 {
    transition-delay: .4s
}

.d5 {
    transition-delay: .5s
}

.d6 {
    transition-delay: .6s
}

/* =====================================================
   SERVICES
===================================================== */
#servicos {
    background: var(--surface);
    position: relative;
    overflow: hidden;
}

#servicos::after {
    content: '';
    position: absolute;
    top: -40%;
    left: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(78, 207, 255, .04) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
    gap: 1.5rem;
}

.svc-card {
    background: rgba(255, 255, 255, .02);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 2.5rem;
    position: relative;
    overflow: hidden;
    transition: transform .4s ease, border-color .4s, box-shadow .4s;
    cursor: default;
}

.svc-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--grad-r);
    border-radius: 20px;
    opacity: 0;
    transition: opacity .4s;
}

.svc-card:hover {
    transform: translateY(-8px) perspective(600px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
    border-color: rgba(168, 85, 247, .45);
    box-shadow: 0 24px 60px rgba(168, 85, 247, .15);
}

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

.svc-num {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    font-family: 'Orbitron', sans-serif;
    font-size: 3rem;
    font-weight: 900;
    color: rgba(255, 255, 255, .025);
    transition: color .4s;
    line-height: 1;
}

.svc-card:hover .svc-num {
    color: rgba(168, 85, 247, .06);
}

.svc-icon {
    width: 58px;
    height: 58px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.7rem;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
    transition: transform .3s;
}

.svc-card:hover .svc-icon {
    transform: scale(1.1) rotate(5deg);
}

.ic-b {
    background: rgba(78, 207, 255, .1);
    border: 1px solid rgba(78, 207, 255, .3);
}

.ic-p {
    background: rgba(168, 85, 247, .1);
    border: 1px solid rgba(168, 85, 247, .3);
}

.ic-g {
    background: rgba(255, 184, 48, .1);
    border: 1px solid rgba(255, 184, 48, .3);
}

.svc-name {
    font-family: 'Orbitron', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: .75rem;
    position: relative;
    z-index: 1;
}

.svc-desc {
    font-size: .88rem;
    color: var(--muted);
    line-height: 1.65;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
}

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    position: relative;
    z-index: 1;
}

.tag {
    font-size: .68rem;
    padding: .28rem .75rem;
    border-radius: 99px;
    font-weight: 500;
    letter-spacing: .04em;
}

.t-b {
    background: rgba(78, 207, 255, .08);
    color: var(--blue);
    border: 1px solid rgba(78, 207, 255, .2);
}

.t-p {
    background: rgba(168, 85, 247, .08);
    color: var(--purple);
    border: 1px solid rgba(168, 85, 247, .2);
}

.t-g {
    background: rgba(255, 184, 48, .08);
    color: var(--gold);
    border: 1px solid rgba(255, 184, 48, .2);
}

/* =====================================================
   PORTFOLIO
===================================================== */
#portfolio {
    position: relative;
}

.port-filters {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 3rem;
}

.flt-btn {
    padding: .48rem 1.4rem;
    border-radius: 99px;
    border: 1px solid var(--border);
    background: transparent;
    color: var(--muted);
    font-family: 'Space Grotesk', sans-serif;
    font-size: .8rem;
    font-weight: 500;
    letter-spacing: .1em;
    text-transform: uppercase;
    cursor: pointer;
    transition: all .3s;
}

.flt-btn:hover,
.flt-btn.on {
    background: var(--grad);
    border-color: transparent;
    color: var(--dark);
    font-weight: 700;
}

.port-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 280px;
    gap: 1.5rem;
}

.port-item {
    border-radius: 18px;
    overflow: hidden;
    position: relative;
    cursor: pointer;
    transition: transform .4s ease, opacity .4s ease;
}

.port-item.big {
    grid-column: span 2;
    grid-row: span 2;
}

.port-item.tall {
    grid-row: span 2;
}

.port-item.hide {
    opacity: 0;
    transform: scale(.92);
    pointer-events: none;
}

.port-bg {
    position: absolute;
    inset: 0;
    transition: transform .6s ease;
}

.port-item:hover .port-bg {
    transform: scale(1.06);
}

.pi1 .port-bg {
    background: linear-gradient(135deg, #0B1728 0%, #1B2845 40%, #2E1B5C 100%);
}

.pi2 .port-bg {
    background: linear-gradient(135deg, #1A0B2E 0%, #2D1548 40%, #4B1A72 100%);
}

.pi3 .port-bg {
    background: linear-gradient(135deg, #1A1000 0%, #2E2000 40%, #4C3600 100%);
}

.pi4 .port-bg {
    background: linear-gradient(135deg, #001A2E 0%, #00253E 40%, #004060 100%);
}

.pi5 .port-bg {
    background: linear-gradient(135deg, #1A001A 0%, #2E0036 40%, #4C0058 100%);
}

.pi6 .port-bg {
    background: linear-gradient(135deg, #0B1A00 0%, #152600 40%, #264000 100%);
}

.port-item::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--grad);
    opacity: .04;
    z-index: 1;
}

.geo {
    position: absolute;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, .08);
    animation: spin 20s linear infinite;
    pointer-events: none;
}

.geo-a {
    width: 220px;
    height: 220px;
    top: -60px;
    right: -60px;
    z-index: 2;
}

.geo-b {
    width: 140px;
    height: 140px;
    bottom: -30px;
    left: -30px;
    z-index: 2;
    animation-direction: reverse;
}

.geo-c {
    width: 70px;
    height: 70px;
    top: 30%;
    right: 15%;
    z-index: 2;
    animation-duration: 12s;
}

@keyframes spin {
    from {
        transform: rotate(0)
    }

    to {
        transform: rotate(360deg)
    }
}

.port-deco-icon {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4.5rem;
    opacity: .12;
    filter: blur(1px);
    transition: opacity .4s, filter .4s, transform .4s;
}

.port-item:hover .port-deco-icon {
    opacity: .28;
    filter: blur(0);
    transform: scale(1.15);
}

.port-label {
    position: absolute;
    bottom: 1.3rem;
    left: 1.3rem;
    z-index: 5;
    background: rgba(7, 7, 15, .72);
    backdrop-filter: blur(10px);
    padding: .35rem .9rem;
    border-radius: 99px;
    border: 1px solid var(--border);
    font-size: .72rem;
    font-weight: 500;
    color: var(--muted);
    transition: opacity .3s;
}

.port-item:hover .port-label {
    opacity: 0;
}

.port-overlay {
    position: absolute;
    inset: 0;
    z-index: 6;
    background: linear-gradient(to top, rgba(7, 7, 15, .95) 0%, rgba(7, 7, 15, .25) 55%, transparent 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 2rem;
    opacity: 0;
    transform: translateY(20px);
    transition: all .4s ease;
}

.port-item:hover .port-overlay {
    opacity: 1;
    transform: none;
}

.port-cat {
    font-size: .68rem;
    font-weight: 600;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: .4rem;
}

.port-name {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.05rem;
    font-weight: 700;
}

.port-link {
    display: inline-flex;
    align-items: center;
    gap: .3rem;
    margin-top: .75rem;
    color: var(--blue);
    font-size: .78rem;
    font-weight: 500;
    text-decoration: none;
}

/* =====================================================
   PROCESS
===================================================== */
#processo {
    background: var(--surface);
    position: relative;
}

.proc-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
    position: relative;
}

.proc-grid::before {
    content: '';
    position: absolute;
    top: 50px;
    left: 16.66%;
    right: 16.66%;
    height: 1px;
    background: linear-gradient(90deg, var(--blue), var(--purple), var(--gold));
    opacity: .25;
}

.proc-step {
    text-align: center;
}

.proc-ring-wrap {
    position: relative;
    width: 100px;
    height: 100px;
    margin: 0 auto 2rem;
}

.proc-ring {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    animation: ringPulse 3s ease-in-out infinite;
}

.r-b {
    border: 2px solid rgba(78, 207, 255, .5);
    animation-delay: 0s;
}

.r-p {
    border: 2px solid rgba(168, 85, 247, .5);
    animation-delay: 1s;
}

.r-g {
    border: 2px solid rgba(255, 184, 48, .5);
    animation-delay: 2s;
}

@keyframes ringPulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 1
    }

    50% {
        transform: scale(1.12);
        opacity: .5
    }
}

.proc-inner {
    position: absolute;
    inset: 10px;
    border-radius: 50%;
    background: var(--surface2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
}

.proc-word {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 1rem;
    letter-spacing: .05em;
}

.proc-desc {
    color: var(--muted);
    font-size: .92rem;
    line-height: 1.75;
}

.c-b {
    color: var(--blue);
}

.c-p {
    color: var(--purple);
}

.c-g {
    color: var(--gold);
}

/* =====================================================
   STATS
===================================================== */
.stats {
    padding: 6rem 5%;
}

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

.stat-card {
    text-align: center;
    padding: 2.5rem 1.5rem;
    background: rgba(255, 255, 255, .02);
    border: 1px solid var(--border);
    border-radius: 20px;
    position: relative;
    overflow: hidden;
    transition: border-color .4s, transform .4s;
}

.stat-card:hover {
    border-color: rgba(168, 85, 247, .4);
    transform: translateY(-5px);
}

.stat-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 2px;
    background: var(--grad);
    opacity: 0;
    transition: opacity .4s;
}

.stat-card:hover::after {
    opacity: 1;
}

.stat-num {
    font-family: 'Orbitron', sans-serif;
    font-size: clamp(2.5rem, 4vw, 3.8rem);
    font-weight: 900;
    background: var(--grad);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    margin-bottom: .5rem;
}

.stat-lbl {
    font-size: .8rem;
    color: var(--muted);
    letter-spacing: .1em;
    text-transform: uppercase;
}

/* =====================================================
   ABOUT
===================================================== */
#sobre {
    background: var(--surface);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6rem;
    align-items: center;
}

.about-visual {
    position: relative;
}

.about-main-visual {
    aspect-ratio: 1;
    border-radius: 28px;
    background: linear-gradient(135deg, var(--surface2), #1A0D30);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.about-main-visual::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--grad);
    opacity: .04;
}

.about-yl-logo {
    font-family: 'Orbitron', sans-serif;
    font-size: 5.5rem;
    font-weight: 900;
    background: var(--grad);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    z-index: 1;
    text-align: center;
}

.about-yl-logo span {
    display: block;
    font-family: 'Space Grotesk', sans-serif;
    font-size: .72rem;
    font-weight: 400;
    letter-spacing: .5em;
    color: var(--gold);
    -webkit-text-fill-color: var(--gold);
    margin-top: -.3rem;
}

.orbit {
    position: absolute;
    border-radius: 50%;
    border: 1px dashed rgba(168, 85, 247, .25);
    animation: orbit 18s linear infinite;
}

.orbit-1 {
    width: 75%;
    height: 75%;
    border: 2px dashed rgba(168, 85, 247, .5);
}

.orbit-2 {
    width: 90%;
    height: 90%;
    animation-direction: reverse;
    animation-duration: 25s;
    border: 3px solid transparent;
    background: linear-gradient(#07070F, #07070F) padding-box,
                linear-gradient(135deg, var(--blue), var(--purple), var(--gold)) border-box;
    box-shadow: 0 0 25px rgba(168, 85, 247, 0.6), 
                0 0 50px rgba(78, 207, 255, 0.4), 
                0 0 75px rgba(255, 184, 48, 0.2);
}

.about-logo-img {
    width: 75%;
    height: 75%;
    border-radius: 50%;
    object-fit: cover;
    position: absolute;
    z-index: 3;
    border: 3px solid rgba(168, 85, 247, 0.35);
    box-shadow: 0 0 30px rgba(168, 85, 247, 0.5),
                0 0 60px rgba(78, 207, 255, 0.25);
    animation: pulseGlow 4s ease-in-out infinite;
}

@keyframes pulseGlow {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 30px rgba(168, 85, 247, 0.5), 0 0 60px rgba(78, 207, 255, 0.25);
    }
    50% {
        transform: scale(1.02);
        box-shadow: 0 0 45px rgba(168, 85, 247, 0.7), 0 0 90px rgba(78, 207, 255, 0.4);
    }
}

@keyframes orbit {
    from {
        transform: rotate(0)
    }

    to {
        transform: rotate(360deg)
    }
}

.about-float {
    position: absolute;
    background: rgba(13, 13, 26, .95);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 1rem 1.5rem;
    backdrop-filter: blur(20px);
}

.about-float.fa {
    top: -1rem;
    right: -2rem;
    animation: fc1 4.5s ease-in-out infinite;
}

.about-float.fb {
    bottom: 2rem;
    left: -2rem;
    animation: fc1 5.5s ease-in-out infinite reverse;
}

@keyframes fc1 {

    0%,
    100% {
        transform: translateY(0)
    }

    50% {
        transform: translateY(-10px)
    }
}

.fl-lbl {
    font-size: .65rem;
    color: var(--muted);
    letter-spacing: .1em;
    text-transform: uppercase;
    margin-bottom: .2rem;
}

.fl-val {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    background: var(--grad);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.about-text .section-title {
    text-align: left;
}

.about-text .section-desc {
    text-align: left;
    margin: 0 0 2rem;
}

.about-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2.5rem;
}

.about-list li {
    display: flex;
    align-items: flex-start;
    gap: .9rem;
    color: var(--muted);
    font-size: .92rem;
    line-height: 1.6;
}

.about-list li::before {
    content: '✦';
    background: var(--grad);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: .75rem;
    flex-shrink: 0;
    margin-top: .15rem;
}

/* =====================================================
   TESTIMONIALS
===================================================== */
.testimonials {
    padding: 8rem 5%;
}

.testi-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.testi-card {
    background: rgba(255, 255, 255, .02);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 2.5rem;
    position: relative;
    transition: border-color .4s, transform .4s;
}

.testi-card:hover {
    border-color: rgba(168, 85, 247, .4);
    transform: translateY(-5px);
}

.quote-icon {
    font-size: 4.5rem;
    line-height: 1;
    font-family: Georgia, serif;
    color: rgba(168, 85, 247, .12);
    position: absolute;
    top: 1rem;
    left: 1.8rem;
}

.testi-text {
    font-size: .9rem;
    color: var(--muted);
    line-height: 1.8;
    margin-bottom: 2rem;
    position: relative;
    z-index: 1;
    padding-top: .8rem;
}

.testi-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.author-ava {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: var(--grad);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Orbitron', sans-serif;
    font-size: .85rem;
    font-weight: 700;
    color: var(--dark);
    flex-shrink: 0;
}

.author-name {
    font-weight: 600;
    font-size: .88rem;
    color: var(--text);
}

.author-role {
    font-size: .73rem;
    color: var(--muted);
}

.stars {
    color: var(--gold);
    font-size: .78rem;
    margin-top: .2rem;
}

/* =====================================================
   CONTACT
===================================================== */
#contacto {
    background: var(--surface);
    position: relative;
    overflow: hidden;
}

#contacto::before {
    content: '';
    position: absolute;
    bottom: -20%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(168, 85, 247, .08) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

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

.contact-info .section-title {
    text-align: left;
    margin-bottom: 1.5rem;
}

.contact-info .section-desc {
    text-align: left;
    margin: 0 0 3rem;
}

.contact-items {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.ci-icon {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    background: rgba(168, 85, 247, .1);
    border: 1px solid rgba(168, 85, 247, .2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    flex-shrink: 0;
}

.ci-lbl {
    font-size: .7rem;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: .1em;
}

.ci-val {
    font-size: .92rem;
    color: var(--text);
    font-weight: 500;
}

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

.fg label {
    display: block;
    font-size: .7rem;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: .1em;
    margin-bottom: .4rem;
}

.fg input,
.fg textarea,
.fg select {
    width: 100%;
    padding: .85rem 1.1rem;
    background: rgba(255, 255, 255, .025);
    border: 1px solid var(--border);
    border-radius: 12px;
    color: var(--text);
    font-family: 'Space Grotesk', sans-serif;
    font-size: .88rem;
    outline: none;
    resize: none;
    transition: border-color .3s, background .3s;
}

.fg input:focus,
.fg textarea:focus,
.fg select:focus {
    border-color: var(--purple);
    background: rgba(168, 85, 247, .04);
}

.fg textarea {
    height: 130px;
}

.frow {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

select option {
    background: var(--surface2);
}

/* =====================================================
   FOOTER
===================================================== */
footer {
    background: var(--dark);
    border-top: 1px solid var(--border);
    padding: 4rem 5% 2rem;
}

.footer-top {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

.f-logo {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.4rem;
    font-weight: 900;
    background: var(--grad);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: block;
    margin-bottom: 1rem;
}

.footer-brand p {
    color: var(--muted);
    font-size: .88rem;
    line-height: 1.7;
    margin-bottom: 2rem;
}

.socials {
    display: flex;
    gap: .6rem;
}

.soc {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, .02);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--muted);
    text-decoration: none;
    font-size: .95rem;
    transition: all .3s;
}

.soc:hover {
    border-color: var(--purple);
    background: rgba(168, 85, 247, .1);
    color: var(--purple);
    transform: translateY(-3px);
}

.f-col h4 {
    font-family: 'Orbitron', sans-serif;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .22em;
    text-transform: uppercase;
    color: var(--text);
    margin-bottom: 1.4rem;
}

.f-col ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: .7rem;
}

.f-col ul a {
    color: var(--muted);
    text-decoration: none;
    font-size: .87rem;
    transition: color .3s;
}

.f-col ul a:hover {
    color: var(--text);
}

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
    color: var(--muted);
    font-size: .77rem;
}

.heart {
    color: var(--purple);
}

/* =====================================================
   RESPONSIVE
===================================================== */
@media (max-width: 1080px) {
    .port-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .port-item.big {
        grid-column: span 1;
        grid-row: span 1;
    }

    .port-item.tall {
        grid-row: span 1;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

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

    .footer-top {
        grid-template-columns: 1fr 1fr;
        gap: 3rem;
    }

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

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

    .hamburger {
        display: flex;
    }

    section {
        padding: 5rem 5%;
    }

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

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

    .proc-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .proc-grid::before {
        display: none;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-top {
        grid-template-columns: 1fr;
    }

    .footer-bottom {
        flex-direction: column;
        gap: .7rem;
        text-align: center;
    }

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

    .intro-logo-text {
        font-size: 3rem;
    }
}

/* =====================================================
   CAROUSEL PORTFOLIO
===================================================== */
.carousel-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 3.5rem;
    display: flex;
    align-items: center;
    width: 100%;
}

.carousel-track-wrapper {
    width: 100%;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 1.5rem 0;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
}

.carousel-track-wrapper::-webkit-scrollbar {
    display: none;
}

.carousel-track {
    display: flex;
    gap: 1.5rem;
}

.carousel-item {
    min-width: calc(33.333% - 1rem);
    width: calc(33.333% - 1rem);
    height: 320px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border);
    border-radius: 18px;
    overflow: hidden;
    position: relative;
    cursor: pointer;
    transition: transform 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
    flex-shrink: 0;
    scroll-snap-align: start;
}

.carousel-item::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--grad);
    opacity: 0.04;
    z-index: 1;
}

.carousel-item:hover {
    transform: translateY(-6px);
    border-color: rgba(168, 85, 247, 0.35);
    box-shadow: 0 15px 30px rgba(168, 85, 247, 0.1);
}

.carousel-item:hover .port-bg {
    transform: scale(1.05);
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(13, 13, 26, 0.85);
    border: 1px solid var(--border);
    color: var(--text);
    font-size: 1.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s;
    user-select: none;
}

.carousel-btn:hover {
    background: var(--purple);
    border-color: var(--purple);
    color: var(--dark);
    box-shadow: 0 0 15px rgba(168, 85, 247, 0.4);
}

.prev-btn { left: 0; }
.next-btn { right: 0; }

/* Responsive Carousel */
@media (max-width: 960px) {
    .carousel-item {
        min-width: calc(50% - 0.75rem);
        width: calc(50% - 0.75rem);
    }
    .carousel-container {
        padding: 0 2rem;
    }
}

@media (max-width: 600px) {
    .carousel-item {
        min-width: 100%;
        width: 100%;
    }
    .carousel-container {
        padding: 0;
    }
    .carousel-btn {
        display: none !important;
    }
    .carousel-track-wrapper {
        overflow-x: auto;
        scroll-snap-type: x mandatory;
    }
    .carousel-item {
        scroll-snap-align: start;
    }
}
/* =====================================================
   GOOGLE REVIEWS SECTION — #avaliacoes
   ===================================================== */
#avaliacoes {
    padding: 6rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin: 3rem 0 2.5rem;
}

.review-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 1.75rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    transition: border-color 0.3s ease, transform 0.3s ease;
}

.review-card:hover {
    border-color: rgba(78, 207, 255, 0.2);
    transform: translateY(-4px);
}

.review-stars {
    color: #FFB830;
    font-size: 1.1rem;
    letter-spacing: 2px;
}

.review-text {
    color: rgba(232, 232, 255, 0.75);
    font-size: 0.95rem;
    line-height: 1.7;
    font-style: italic;
    flex: 1;
}

.review-author {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.review-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #A855F7, #4ECFFF);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1rem;
    color: #fff;
    flex-shrink: 0;
}

.review-name {
    font-weight: 600;
    font-size: 0.9rem;
    color: #E8E8FF;
}

.review-source {
    font-size: 0.78rem;
    color: rgba(232, 232, 255, 0.45);
    display: flex;
    align-items: center;
    gap: 4px;
}

.review-source::before {
    content: "G";
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #fff;
    color: #4285F4;
    font-size: 0.65rem;
    font-weight: 700;
}

.reviews-summary {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
    padding: 1.25rem 2rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    flex-wrap: wrap;
}

.reviews-score {
    font-size: 2.5rem;
    font-weight: 700;
    color: #FFB830;
    font-family: 'Orbitron', sans-serif;
    line-height: 1;
}

.reviews-meta {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.reviews-meta .review-stars {
    font-size: 1rem;
}

.reviews-meta span {
    font-size: 0.82rem;
    color: rgba(232, 232, 255, 0.5);
}

.reviews-divider {
    width: 1px;
    height: 40px;
    background: rgba(255, 255, 255, 0.12);
}

.btn-review {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.85rem 2rem;
    background: #fff;
    color: #333;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    margin-top: 0.5rem;
}

.btn-review:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(255, 255, 255, 0.15);
}

.btn-review::before {
    content: "G";
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: linear-gradient(135deg, #4285F4, #34A853, #FBBC05, #EA4335);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 900;
}

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

.reviews-cta p {
    color: rgba(232, 232, 255, 0.5);
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
}

@media (max-width: 900px) {
    .reviews-grid {
        grid-template-columns: 1fr;
    }
    .reviews-summary {
        gap: 1rem;
    }
    .reviews-divider {
        display: none;
    }
}

@media (max-width: 600px) {
    #avaliacoes {
        padding: 3rem 1rem;
    }
}

/* =====================================================
   BRAND STRIP — faixa vertical direita no vídeo intro
   ===================================================== */
.brand-strip {
    position: absolute;
    top: 0;
    bottom: 0;
    right: 0;
    width: clamp(200px, 16vw, 266px);
    background: #07070F;
    z-index: 9100;
    pointer-events: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.brand-strip-border {
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 100%;
    background: linear-gradient(to bottom, transparent 0%, #A855F7 25%, #4ECFFF 55%, #FFB830 80%, transparent 100%);
}

.brand-strip-line {
    position: absolute;
    left: 12px;
    right: 0;
    height: 1px;
}

.brand-strip-icon {
    width: clamp(80px, 7vw, 110px);
    height: clamp(80px, 7vw, 110px);
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    box-shadow: 0 0 0 2px rgba(168,85,247,0.7), 0 0 20px rgba(168,85,247,0.55), 0 0 40px rgba(78,207,255,0.3);
    animation: pulseGlow 4s ease-in-out infinite;
}

.brand-strip-icon img {
    width: 140%;
    height: 140%;
    object-fit: cover;
    margin: -20%;
    display: block;
}

@media (max-width: 900px) {
    #introVideo {
        transform: none;
    }
    .brand-strip {
        display: none;
    }
    .skip-btn {
        bottom: calc(1.5rem + env(safe-area-inset-bottom));
        left: 50%;
        right: auto;
        transform: translateX(-50%);
    }
}

/* =====================================================
   FIXES — classes usadas no HTML que não tinham estilos
   (contacto, formulário, rodapé, nav-login) + suporte
   completo a touch (telemóveis, tablets, consolas)
===================================================== */

/* ── NAV LOGIN (substitui estilos/handlers inline) ── */
.nav-login {
    margin-left: .8rem;
    font-size: .78rem !important;
    opacity: .8;
    letter-spacing: .05em;
}

.nav-login:hover {
    opacity: 1;
}

/* ── CONTACTO — info items ── */
.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.contact-icon {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    background: rgba(168, 85, 247, .1);
    border: 1px solid rgba(168, 85, 247, .2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    flex-shrink: 0;
}

.contact-label {
    font-size: .7rem;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: .1em;
    margin-bottom: .2rem;
}

.contact-value {
    font-size: .92rem;
    color: var(--text);
    font-weight: 500;
    text-decoration: none;
    overflow-wrap: anywhere;
}

a.contact-value:hover {
    color: var(--blue);
}

/* ── CONTACTO — formulário (.form-group) ── */
.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: .85rem 1.1rem;
    background: rgba(255, 255, 255, .025);
    border: 1px solid var(--border);
    border-radius: 12px;
    color: var(--text);
    font-family: 'Space Grotesk', sans-serif;
    font-size: .88rem;
    outline: none;
    resize: none;
    transition: border-color .3s, background .3s;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    border-color: var(--purple);
    background: rgba(168, 85, 247, .04);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--muted);
}

.form-group select {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%237777AA' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1.1rem center;
    padding-right: 2.6rem;
    cursor: pointer;
    color-scheme: dark;
}

.custom-select-wrapper {
    position: relative;
    width: 100%;
}

/* ── FOOTER (classes novas do HTML) ── */
footer .container {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-logo {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.4rem;
    font-weight: 900;
    background: var(--grad);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: block;
    margin-bottom: 1rem;
}

.footer-desc {
    color: var(--muted);
    font-size: .88rem;
    line-height: 1.7;
    margin-bottom: 2rem;
}

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

.footer-social a {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, .02);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--muted);
    text-decoration: none;
    font-size: .95rem;
    transition: all .3s;
}

.footer-social a:hover {
    border-color: var(--purple);
    background: rgba(168, 85, 247, .1);
    transform: translateY(-3px);
}

.footer-col h4 {
    font-family: 'Orbitron', sans-serif;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .22em;
    text-transform: uppercase;
    color: var(--text);
    margin-bottom: 1.4rem;
}

.footer-col ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: .7rem;
}

.footer-col ul a {
    color: var(--muted);
    text-decoration: none;
    font-size: .87rem;
    transition: color .3s;
}

.footer-col ul a:hover {
    color: var(--text);
}

@media (max-width: 1080px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 3rem;
    }
}

@media (max-width: 720px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
}

/* ── ALTURA REAL DO VIEWPORT EM MOBILE (barras do browser) ── */
.hero {
    min-height: 100svh;
}

.bauth {
    min-height: 100svh;
}

/* ── TOUCH: telemóveis, tablets e consolas ──
   Sem hover, as legendas do portefólio nunca apareciam.
   Em ecrãs touch ficam sempre visíveis. */
@media (hover: none) {
    .port-overlay {
        opacity: 1;
        transform: none;
    }

    .port-label {
        opacity: 0;
    }

    .carousel-item:hover {
        transform: none;
    }
}

/* ── ECRÃS MUITO PEQUENOS ── */
@media (max-width: 400px) {
    .hero-btns .btn-primary,
    .hero-btns .btn-secondary {
        width: 100%;
        justify-content: center;
    }

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

    .carousel-item {
        height: 280px;
    }
}

/* =====================================================
   CHAT WIDGET
===================================================== */
.chat-launcher {
    position: fixed;
    bottom: calc(1.5rem + env(safe-area-inset-bottom, 0px));
    right: 1.5rem;
    z-index: 850;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: none;
    background: var(--grad);
    color: var(--dark);
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 8px 30px rgba(168, 85, 247, .45);
    transition: transform .25s, box-shadow .25s, opacity .25s;
}

.chat-launcher:hover {
    transform: translateY(-3px) scale(1.06);
    box-shadow: 0 12px 40px rgba(168, 85, 247, .6);
}

.chat-launcher.hidden {
    opacity: 0;
    pointer-events: none;
    transform: scale(.6);
}

.chat-pulse {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--gold);
    border: 2px solid var(--dark);
    animation: pulse 2s infinite;
}

.chat-panel {
    position: fixed;
    bottom: calc(1.5rem + env(safe-area-inset-bottom, 0px));
    right: 1.5rem;
    z-index: 860;
    width: 360px;
    max-width: calc(100vw - 2rem);
    height: 520px;
    max-height: calc(100vh - 4rem);
    max-height: calc(100svh - 4rem);
    background: var(--surface);
    border: 1px solid rgba(168, 85, 247, .3);
    border-radius: 18px;
    box-shadow: 0 24px 70px rgba(0, 0, 0, .7), 0 0 40px rgba(168, 85, 247, .12);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    opacity: 0;
    transform: translateY(16px) scale(.97);
    pointer-events: none;
    transition: opacity .3s ease, transform .3s ease;
}

.chat-panel.open {
    opacity: 1;
    transform: none;
    pointer-events: auto;
}

.chat-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: .9rem 1.1rem;
    background: linear-gradient(135deg, rgba(78, 207, 255, .1), rgba(168, 85, 247, .12));
    border-bottom: 1px solid var(--border);
    flex-shrink: 0;
}

.chat-head-title {
    font-family: 'Orbitron', sans-serif;
    font-size: .9rem;
    font-weight: 700;
    background: var(--grad);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.chat-head-status {
    display: flex;
    align-items: center;
    gap: .4rem;
    font-size: .7rem;
    color: var(--muted);
    margin-top: .15rem;
}

.chat-status-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--ok);
    animation: pulse 2s infinite;
}

.chat-close {
    background: none;
    border: none;
    color: var(--muted);
    font-size: 1rem;
    cursor: pointer;
    padding: .4rem;
    border-radius: 8px;
    transition: color .2s, background .2s;
}

.chat-close:hover {
    color: var(--text);
    background: rgba(255, 255, 255, .06);
}

.chat-body {
    flex: 1;
    overflow-y: auto;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: .55rem;
    scrollbar-width: thin;
}

.chat-body::-webkit-scrollbar {
    width: 4px;
}

.chat-body::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 2px;
}

.chat-msg {
    max-width: 85%;
    padding: .65rem .9rem;
    border-radius: 14px;
    font-size: .85rem;
    line-height: 1.55;
    overflow-wrap: anywhere;
}

.chat-msg.from-bot {
    align-self: flex-start;
    background: rgba(168, 85, 247, .1);
    border: 1px solid rgba(168, 85, 247, .18);
    border-bottom-left-radius: 4px;
    color: var(--text);
}

.chat-msg.from-user {
    align-self: flex-end;
    background: rgba(78, 207, 255, .1);
    border: 1px solid rgba(78, 207, 255, .2);
    border-bottom-right-radius: 4px;
    color: var(--text);
}

.chat-typing {
    color: var(--muted);
    letter-spacing: .2em;
    animation: pulse 1.2s infinite;
}

.chat-rgpd-note {
    font-size: .66rem;
    color: var(--muted);
    text-align: center;
    padding: .2rem .6rem;
}

.chat-quick {
    display: flex;
    flex-wrap: wrap;
    gap: .45rem;
    padding: 0 1rem .8rem;
    flex-shrink: 0;
}

.chat-quick:empty {
    padding: 0;
}

.chat-opt {
    padding: .5rem .95rem;
    border-radius: 99px;
    border: 1px solid rgba(78, 207, 255, .35);
    background: rgba(78, 207, 255, .06);
    color: var(--blue);
    font-family: 'Space Grotesk', sans-serif;
    font-size: .78rem;
    font-weight: 500;
    cursor: pointer;
    transition: all .25s;
    min-height: 38px;
}

.chat-opt:hover {
    background: var(--grad);
    border-color: transparent;
    color: var(--dark);
    font-weight: 700;
}

.chat-input-row {
    display: flex;
    gap: .5rem;
    padding: .8rem 1rem;
    border-top: 1px solid var(--border);
    background: rgba(255, 255, 255, .02);
    flex-shrink: 0;
}

.chat-input {
    flex: 1;
    padding: .7rem 1rem;
    background: rgba(255, 255, 255, .04);
    border: 1px solid var(--border);
    border-radius: 12px;
    color: var(--text);
    font-family: 'Space Grotesk', sans-serif;
    font-size: 16px; /* evita zoom automático no iOS */
    outline: none;
    transition: border-color .3s;
}

.chat-input:focus {
    border-color: var(--purple);
}

.chat-send {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    border: none;
    background: var(--grad);
    color: var(--dark);
    font-size: 1rem;
    cursor: pointer;
    flex-shrink: 0;
    transition: opacity .2s, transform .2s;
}

.chat-send:hover {
    opacity: .9;
    transform: scale(1.05);
}

@media (max-width: 480px) {
    .chat-panel {
        right: .75rem;
        left: .75rem;
        width: auto;
        max-width: none;
        height: 72vh;
        height: 72svh;
    }

    .chat-launcher {
        right: 1rem;
    }
}

/* =====================================================
   RGPD — banner de consentimento
===================================================== */
.rgpd-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 900;
    background: rgba(13, 13, 26, .97);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-top: 1px solid rgba(168, 85, 247, .35);
    padding: 1.1rem 5%;
    padding-bottom: calc(1.1rem + env(safe-area-inset-bottom, 0px));
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    box-shadow: 0 -12px 40px rgba(0, 0, 0, .5);
    transform: translateY(0);
    transition: transform .4s ease, opacity .4s ease;
}

.rgpd-banner.hidden {
    transform: translateY(110%);
    opacity: 0;
    pointer-events: none;
}

.rgpd-text {
    font-size: .82rem;
    color: var(--muted);
    line-height: 1.6;
    max-width: 640px;
}

.rgpd-text strong {
    color: var(--text);
}

.rgpd-actions {
    display: flex;
    gap: .7rem;
    flex-shrink: 0;
    flex-wrap: wrap;
}

.rgpd-accept {
    padding: .65rem 1.6rem;
    border: none;
    border-radius: 99px;
    background: var(--grad);
    color: var(--dark);
    font-family: 'Space Grotesk', sans-serif;
    font-size: .8rem;
    font-weight: 700;
    letter-spacing: .04em;
    cursor: pointer;
    transition: opacity .2s, transform .2s;
    min-height: 42px;
}

.rgpd-accept:hover {
    opacity: .9;
    transform: translateY(-2px);
}

/* CNPD/EDPB: recusar tem de ser tão fácil e visível como aceitar —
   mesmo tamanho, mesmo peso tipográfico, mesma camada do banner */
.rgpd-reject {
    padding: .65rem 1.6rem;
    border: 1px solid rgba(232, 232, 255, .45);
    border-radius: 99px;
    background: rgba(255, 255, 255, .06);
    color: var(--text);
    font-family: 'Space Grotesk', sans-serif;
    font-size: .8rem;
    font-weight: 700;
    letter-spacing: .04em;
    cursor: pointer;
    transition: background .2s, border-color .2s, transform .2s;
    min-height: 42px;
}

.rgpd-reject:hover {
    background: rgba(255, 255, 255, .12);
    border-color: var(--text);
    transform: translateY(-2px);
}

/* ── Página legal (privacidade.html) ── */
.legal-page {
    cursor: auto;
}

.legal-page a,
.legal-page button {
    cursor: pointer !important;
}

.legal-wrap {
    max-width: 860px;
    margin: 0 auto;
    padding: 9rem 5% 5rem;
}

.legal-header {
    text-align: center;
    margin-bottom: 3.5rem;
}

.legal-updated {
    color: var(--muted);
    font-size: .82rem;
    margin-top: .5rem;
}

.legal-section {
    padding: 0 0 2.8rem;
}

.legal-section h2 {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 1rem;
    padding-bottom: .5rem;
    border-bottom: 1px solid var(--border);
}

.legal-section p {
    color: var(--muted);
    font-size: .92rem;
    line-height: 1.8;
    margin-bottom: .9rem;
}

.legal-section strong {
    color: var(--text);
}

.legal-section a {
    color: var(--blue);
    text-decoration: none;
}

.legal-section a:hover {
    color: var(--purple);
}

.legal-table-wrap {
    overflow-x: auto;
    margin: 1.2rem 0;
    border: 1px solid var(--border);
    border-radius: 12px;
}

.legal-table {
    width: 100%;
    border-collapse: collapse;
    font-size: .82rem;
    min-width: 560px;
}

.legal-table th {
    text-align: left;
    padding: .8rem 1rem;
    background: rgba(168, 85, 247, .08);
    color: var(--text);
    font-weight: 600;
    white-space: nowrap;
}

.legal-table td {
    padding: .8rem 1rem;
    border-top: 1px solid var(--border);
    color: var(--muted);
    line-height: 1.55;
    vertical-align: top;
}

.legal-table code {
    color: var(--blue);
    font-size: .78rem;
}

.legal-back {
    margin-top: 1rem;
}

.legal-footer-link {
    color: var(--muted);
    text-decoration: none;
}

.legal-footer-link:hover {
    color: var(--text);
}

.rgpd-link {
    color: var(--blue);
    text-decoration: underline;
}

.rgpd-link:hover {
    color: var(--purple);
}

.chat-rgpd-note a {
    color: var(--blue);
    text-decoration: underline;
}

.form-rgpd-note {
    font-size: .72rem;
    color: var(--muted);
    line-height: 1.6;
}

.form-rgpd-note a {
    color: var(--blue);
    text-decoration: none;
}

/* Enquanto o banner RGPD está visível, sobe o botão do chat */
body.rgpd-visible .chat-launcher,
body.rgpd-visible .chat-panel {
    bottom: calc(7.5rem + env(safe-area-inset-bottom, 0px));
}

@media (max-width: 720px) {
    .rgpd-banner {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
    }

    .rgpd-actions {
        justify-content: center;
    }

    body.rgpd-visible .chat-launcher,
    body.rgpd-visible .chat-panel {
        bottom: calc(11rem + env(safe-area-inset-bottom, 0px));
    }
}
