/* =========================================================
   Prime Telecom — Landing page
   Design tokens
   brand:  #5F30A9 (purple) · #0849A6 (blue)
   grays:  #D9D9D9 · #BFBFBF · #9D9D9D
   ink:    #0B0912
   ========================================================= */

:root {
    --brand-purple: #5F30A9;
    --brand-purple-light: #7B4DD6;
    --brand-blue: #0849A6;
    --brand-blue-light: #2C6FE0;
    --ink: #0B0912;
    --ink-soft: #161221;
    --gray-100: #D9D9D9;
    --gray-200: #BFBFBF;
    --gray-300: #9D9D9D;
    --cream: #F4E2BF;
    --olive: #535040;
}

html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
}

body {
    overflow-x: hidden;
}

section[id] {
    scroll-margin-top: 6rem;
}

/* ---------- Acessibilidade ---------- */
.skip-link {
    position: fixed;
    top: -100px;
    left: 1rem;
    z-index: 100;
    padding: 0.75rem 1.25rem;
    border-radius: 0.75rem;
    background: #fff;
    color: var(--ink);
    font-weight: 600;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transition: top 0.2s ease;
}
.skip-link:focus {
    top: 1rem;
}

:where(a, button, input, summary, [tabindex]):focus-visible {
    outline: 2px solid var(--brand-blue-light);
    outline-offset: 3px;
    border-radius: 0.5rem;
}

/* ---------- Tipografia / helpers ---------- */
.font-display {
    font-family: 'Space Grotesk', system-ui, sans-serif;
}

.gradient-text {
    background: linear-gradient(100deg, #8a5cf0 0%, #7B4DD6 38%, #2C6FE0 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--brand-purple);
}
.eyebrow::before {
    content: "";
    width: 1.5rem;
    height: 1px;
    background: currentColor;
    opacity: 0.6;
}
.eyebrow--light {
    color: var(--brand-purple-light);
}

/* ---------- Navbar ---------- */
.nav-shell {
    background: rgba(11, 9, 18, 0.72);
    border: 1px solid rgba(255, 255, 255, 0.08);
    -webkit-backdrop-filter: blur(18px) saturate(140%);
    backdrop-filter: blur(18px) saturate(140%);
    box-shadow: 0 12px 40px -12px rgba(0, 0, 0, 0.6);
    transition: background-color 0.3s ease, border-color 0.3s ease;
}
.nav-shell.is-scrolled {
    background: rgba(11, 9, 18, 0.9);
    border-color: rgba(255, 255, 255, 0.12);
}

.mobile-menu {
    transition: opacity 0.2s ease;
}
.mobile-menu:not(.hidden) {
    animation: menu-in 0.22s ease both;
}
@keyframes menu-in {
    from { opacity: 0; transform: translateY(-6px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ---------- Botões ---------- */
.btn-primary,
.btn-ghost,
.btn-outline {
    position: relative;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.25s ease, background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.btn-primary {
    color: #fff;
    background-image: linear-gradient(135deg, var(--brand-purple) 0%, var(--brand-blue) 100%);
    background-size: 150% 150%;
    background-position: 0% 50%;
    box-shadow: 0 10px 30px -10px rgba(95, 48, 169, 0.65), inset 0 1px 0 rgba(255, 255, 255, 0.18);
}
.btn-primary:hover {
    background-position: 100% 50%;
    box-shadow: 0 16px 40px -12px rgba(8, 73, 166, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.22);
    transform: translateY(-1px);
}
.btn-primary:active {
    transform: translateY(0);
}

.btn-ghost {
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: rgba(255, 255, 255, 0.04);
}
.btn-ghost:hover {
    background: rgba(255, 255, 255, 0.09);
    border-color: rgba(255, 255, 255, 0.28);
}

.btn-outline {
    color: var(--ink);
    border: 1px solid var(--gray-200);
    background: #fff;
}
.btn-outline:hover {
    border-color: var(--brand-purple);
    color: var(--brand-purple);
    box-shadow: 0 10px 24px -12px rgba(95, 48, 169, 0.4);
}

/* ---------- Hero atmosfera ---------- */
.hero {
    isolation: isolate;
}

.hero-glow {
    position: absolute;
    z-index: 0;
    border-radius: 50%;
    pointer-events: none;
    will-change: transform;
}
.hero-glow--purple {
    width: 42rem;
    height: 42rem;
    top: -14rem;
    left: -10rem;
    background: radial-gradient(circle at center, rgba(95, 48, 169, 0.55) 0%, rgba(95, 48, 169, 0.18) 38%, transparent 68%);
}
.hero-glow--blue {
    width: 46rem;
    height: 46rem;
    right: -14rem;
    bottom: -20rem;
    background: radial-gradient(circle at center, rgba(8, 73, 166, 0.5) 0%, rgba(8, 73, 166, 0.16) 40%, transparent 70%);
}

.hero-grid {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
    background-size: 64px 64px;
    -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, #000 0%, transparent 75%);
    mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, #000 0%, transparent 75%);
}

.hero-noise {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    opacity: 0.035;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Painel de conexão ---------- */
.connection-panel {
    background:
        linear-gradient(160deg, rgba(255, 255, 255, 0.09) 0%, rgba(255, 255, 255, 0.03) 42%, rgba(255, 255, 255, 0.02) 100%);
    border: 1px solid rgba(255, 255, 255, 0.12);
    -webkit-backdrop-filter: blur(22px);
    backdrop-filter: blur(22px);
    box-shadow:
        0 40px 80px -30px rgba(0, 0, 0, 0.75),
        inset 0 1px 0 rgba(255, 255, 255, 0.14);
}

.speed-bar {
    transform-origin: left center;
    animation: bar-grow 1.1s cubic-bezier(0.16, 1, 0.3, 1) both;
}
@keyframes bar-grow {
    from { transform: scaleX(0); }
    to { transform: scaleX(1); }
}

/* ---------- Marquee ---------- */
.marquee {
    overflow: hidden;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.marquee__track {
    display: flex;
    width: max-content;
    animation: marquee 32s linear infinite;
}
.marquee:hover .marquee__track {
    animation-play-state: paused;
}
.marquee__group {
    display: flex;
    align-items: center;
    gap: 3rem;
    padding-right: 3rem;
}
.marquee__item {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.05rem;
    font-weight: 500;
    letter-spacing: -0.01em;
    color: #6B6E73;
    white-space: nowrap;
    transition: color 0.2s ease;
}
.marquee:hover .marquee__item {
    color: #43464B;
}
@keyframes marquee {
    to { transform: translateX(-50%); }
}

/* ---------- Cards ---------- */
.tile-card {
    transform-style: preserve-3d;
}

.plan-card {
    background: #fff;
    border: 1px solid var(--gray-100);
    box-shadow: 0 1px 2px rgba(11, 9, 18, 0.04);
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}
.plan-card:hover {
    box-shadow: 0 30px 60px -32px rgba(11, 9, 18, 0.35);
}

.plan-card--featured {
    border: 1px solid transparent;
    background:
        linear-gradient(#ffffff, #ffffff) padding-box,
        linear-gradient(135deg, var(--brand-purple) 0%, var(--brand-blue) 100%) border-box;
    box-shadow: 0 34px 70px -34px rgba(95, 48, 169, 0.5);
}
.plan-card--featured:hover {
    box-shadow: 0 40px 80px -30px rgba(95, 48, 169, 0.6);
}

/* ---------- Cobertura ---------- */
.coverage-map {
    min-height: 100%;
}
.map-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
    background-size: 34px 34px;
    -webkit-mask-image: radial-gradient(circle at 50% 50%, #000 0%, transparent 78%);
    mask-image: radial-gradient(circle at 50% 50%, #000 0%, transparent 78%);
}
.map-pulse {
    position: absolute;
    width: 5rem;
    height: 5rem;
    border-radius: 9999px;
    border: 1px solid rgba(123, 77, 214, 0.6);
    background: radial-gradient(circle, rgba(95, 48, 169, 0.35) 0%, transparent 70%);
    animation: map-pulse 3.4s ease-out infinite;
}
.map-pulse--delay {
    animation-delay: 1.7s;
}
@keyframes map-pulse {
    0% { transform: scale(0.7); opacity: 0.9; }
    100% { transform: scale(3); opacity: 0; }
}

/* ---------- FAQ ---------- */
.faq-item summary::-webkit-details-marker {
    display: none;
}
.faq-item summary {
    list-style: none;
}
.faq-item[open] .faq-icon {
    transform: rotate(45deg);
    border-color: var(--gray-300);
    color: var(--brand-purple);
}
.faq-item[open] .faq-answer {
    animation: faq-in 0.3s ease both;
}
@keyframes faq-in {
    from { opacity: 0; transform: translateY(-4px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ---------- WhatsApp flutuante ---------- */
.wa-float {
    position: fixed;
    right: 1.25rem;
    bottom: 1.25rem;
    z-index: 50;
    display: grid;
    place-items: center;
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 9999px;
    background: #25D366;
    color: #fff;
    box-shadow: 0 14px 32px -8px rgba(37, 211, 102, 0.6), 0 2px 8px rgba(0, 0, 0, 0.25);
    transition: transform 0.2s ease, box-shadow 0.25s ease, opacity 0.25s ease, visibility 0.25s ease;
}
.wa-float:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 20px 40px -10px rgba(37, 211, 102, 0.7), 0 2px 8px rgba(0, 0, 0, 0.25);
}
.wa-float:active {
    transform: translateY(0) scale(0.98);
}
.wa-float__pulse {
    position: absolute;
    inset: 0;
    border-radius: 9999px;
    background: #25D366;
    animation: wa-pulse 2.8s ease-out infinite;
    pointer-events: none;
}
@keyframes wa-pulse {
    0% { transform: scale(1); opacity: 0.5; }
    70%, 100% { transform: scale(1.9); opacity: 0; }
}
.wa-float__tooltip {
    position: absolute;
    right: calc(100% + 0.75rem);
    top: 50%;
    transform: translate(6px, -50%);
    white-space: nowrap;
    border-radius: 0.625rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: var(--ink);
    padding: 0.5rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: #fff;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
    box-shadow: 0 10px 24px -10px rgba(0, 0, 0, 0.6);
}
.wa-float:hover .wa-float__tooltip,
.wa-float:focus-visible .wa-float__tooltip {
    opacity: 1;
    transform: translate(0, -50%);
}
@media (hover: none) {
    .wa-float__tooltip {
        display: none;
    }
}
@media (max-width: 639px) {
    html:not(.lgpd-consented) .wa-float {
        opacity: 0;
        visibility: hidden;
        transform: translateY(12px);
        pointer-events: none;
    }
}

/* ---------- Banner LGPD ---------- */
.lgpd-banner {
    position: fixed;
    left: 1rem;
    right: 1rem;
    bottom: 1rem;
    z-index: 60;
    margin-inline: auto;
    max-width: 40rem;
    transition: opacity 0.35s ease, transform 0.35s ease;
}
.lgpd-banner.is-leaving {
    opacity: 0;
    transform: translateY(16px);
}
html.lgpd-consented .lgpd-banner {
    display: none !important;
}
@media (min-width: 640px) {
    .lgpd-banner {
        right: auto;
        margin-inline: 0;
        max-width: 34rem;
    }
}

/* ---------- Utilitário: respeitar movimento reduzido ---------- */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    *,
    *::before,
    *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
        scroll-behavior: auto !important;
    }
    .marquee__track {
        animation: none;
        flex-wrap: wrap;
        width: 100%;
        justify-content: center;
        gap: 1.5rem;
    }
    .marquee__group[aria-hidden="true"] {
        display: none;
    }
    .map-pulse {
        display: none;
    }
}
