/* Variáveis CSS do Figma */

:root {
    /* Cores principais */
    --color-bg-primary: #f5f5f7;
    --color-bg-secondary: #ffffff;
    --color-text-primary: #000000;
    --color-text-secondary: #888888;
    --color-text-tertiary: #a4a4a4;
    --color-text-disabled: #d7d7d7;
    --color-border: #a4a4a4;
    
    /* Gradientes especiais do Figma */
    --gradient-purple: linear-gradient(180deg, #670054 0%, #a400a2 100%);
    --gradient-blue: linear-gradient(229.8598064887252deg, #024c9a 8.4496%, #f0cc00 91.55%);
    --gradient-green: linear-gradient(221.13640550743565deg, #a7eb7e 7.7497%, #fe9454 92.25%);
    
    /* Bordas e raios */
    --radius-sm: 8px;
    --radius-md: 13px;
    --radius-lg: 18px;
    --radius-xl: 27px;
    --radius-full: 50%;
    
    /* Sombras */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.2);
    
    /* Espaçamentos */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    --spacing-2xl: 4rem;
    
     /* Tipografia */
     /* Prefer SF Pro Display when available locally (or when you add the
         font files to assets/fonts/). Otherwise fall back to Poppins and system fonts. */
     --font-primary: 'SF Pro Display', 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
     --font-secondary: 'SF Pro Display', -apple-system, BlinkMacSystemFont, sans-serif;
    
    /* Breakpoints */
    --bp-small: 480px;
    --bp-tablet: 768px;
    --bp-laptop: 1024px;
    --bp-navbar-mobile: 1224px; /* menu hambúrguer até esta largura */
    --bp-desktop: 1280px;
}

/* Fonte local: Korataki */
@font-face {
    font-family: 'Korataki';
    src: url('../fonts/koratakieb-regular.otf') format('opentype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Korataki';
    src: url('../fonts/koratakieb-regular.otf') format('opentype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

/* Fontes via CDN: SF Pro Display e Korataki são carregadas no <head> */

/* Reset básico */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    color: var(--color-text-primary);
    background-color: var(--color-bg-primary);
    line-height: 1.5;
    font-size: clamp(14px, 1vw, 16px);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    /* Start transparent over the hero */
    background: transparent;
    backdrop-filter: none;
    height: 67px;
    z-index: 1000;
    transition: background-color 300ms ease, color 300ms ease, box-shadow 300ms ease;
    overflow: visible; /* Permitir que dropdowns apareçam acima */
}

.navbar.scrolled {
    background: rgba(0, 0, 0, 0.92);
    backdrop-filter: blur(8px);
    box-shadow: 0 4px 18px rgba(0,0,0,0.25);
}

.navbar-inner {
    max-width: 1860px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 var(--spacing-lg);
    height: 100%;
    gap: 40px;
}

.navbar-logo img {
    width: 64px;
    height: 64px;
}

.navbar-menu {
    display: flex;
    gap: 50px;
    align-items: center;
}

.navbar-menu a {
    color: var(--Color-FALLBACK, var(--color-text-primary));
    font-size: 12px;
    font-weight: 500;
    transition: color 200ms ease;
}

.navbar-menu a:hover {
    color: var(--color-text-primary);
}

.navbar-language {
    display: flex;
    align-items: center;
    position: relative;
    z-index: 1001;
}

.navbar-language select {
    padding: 6px 10px;
    border: 1px solid rgba(0, 0, 0, 0.15);
    border-radius: 4px;
    background-color: transparent;
    color: var(--color-text-primary);
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 200ms ease;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    position: relative;
    z-index: 1002;
}

.navbar-language select:hover {
    border-color: var(--color-text-primary);
}

.navbar.scrolled .navbar-language select {
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.3);
    background-color: rgba(0, 0, 0, 0.5);
}

.navbar.scrolled .navbar-language select:hover {
    border-color: #ffffff;
    background-color: rgba(0, 0, 0, 0.7);
}

.navbar.scrolled .navbar-language select:focus {
    outline: none;
    border-color: #ffffff;
    background-color: rgba(0, 0, 0, 0.9);
}

/* Garantir que o dropdown apareça acima de tudo */
.navbar-language select option {
    background-color: rgba(0, 0, 0, 0.95);
    color: #ffffff;
    padding: 8px 12px;
}

.navbar.scrolled .navbar-menu a,
.navbar.scrolled .navbar-login,
.navbar.scrolled .navbar-menu li a {
    color: #ffffff !important;
}

.navbar:not(.scrolled) .navbar-menu a,
.navbar:not(.scrolled) .navbar-login {
    color: var(--color-text-primary);
}

.navbar-login {
    color: var(--color-text-secondary) !important;
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.mobile-menu-toggle span {
    width: 30px;
    height: 3px;
    background: var(--color-text-primary);
    border-radius: 2px;
    transition: background-color 0.3s ease, transform 0.3s ease, opacity 0.3s ease;
}

.navbar.scrolled .mobile-menu-toggle span {
    background: #ffffff;
}

/* Páginas sem hero: navbar preta e fontes brancas por padrão (desktop) */
body:not(:has(.hero-section)) .navbar {
    background: rgba(0, 0, 0, 0.92);
    backdrop-filter: blur(8px);
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.25);
}

body:not(:has(.hero-section)) .navbar-menu a,
body:not(:has(.hero-section)) .navbar-login,
body:not(:has(.hero-section)) .navbar-menu li a {
    color: #ffffff !important;
}

body:not(:has(.hero-section)) .navbar-language select {
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.3);
    background-color: rgba(0, 0, 0, 0.5);
}

body:not(:has(.hero-section)) .navbar-language select:hover {
    border-color: #ffffff;
    background-color: rgba(0, 0, 0, 0.7);
}

body:not(:has(.hero-section)) .mobile-menu-toggle span {
    background: #ffffff;
}

/* Hero Section */
.hero-section {
    position: relative;
    margin-top: 67px;
    min-height: 850px;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    inset: 0;
    /* Keep background/videos behind the content but not pushed behind the page
       background (avoid negative z-index which can hide the element in some browsers). */
    z-index: 5;
    /* Let pointer events pass through the background container so hover/click
       on foreground elements work reliably. */
}

/* Vídeos de background sobrepostos */
.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Background videos shouldn't capture pointer events so hover on top elements still works */
.hero-background video {
    pointer-events: none;
}

.hero-video-top {
    z-index: 1;
    opacity: 0.2;
    mix-blend-mode: screen;
}

.hero-video-bottom {
    z-index: 0;
    opacity: 0.2;
}


.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    gap: var(--spacing-2xl);
    padding-top: 0;
    padding-left: var(--spacing-lg);
    padding-right: var(--spacing-lg);
    padding-bottom: 0;
    max-width: 1860px;
    height: 100%;
    /* ensure hero content sits above background/videos and receives pointer events */
    position: relative;
    z-index: 2;
}

.hero-text {
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    z-index: 10;
}

.hero-title {
    font-weight: 900;
    line-height: 1.2;
}

.hero-title .appradio {
    display: block;
    font-size: 24px;
    font-weight: 300;
    width: 100%;
    text-align: center;
}

.hero-title-content{
    height: 100px;
}

.hero-title .pro {
    font-family: 'Korataki', sans-serif;
    font-weight: 400;
    font-size: clamp(71px, 7vw, 166px);
    background: linear-gradient(90deg, #969191 33.654%, #000000 97.981%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-title .version {
    font-size: 61.162px;
    color: var(--color-text-tertiary);
}

.outline-border-black {
    display: flex;
    justify-content: center;
    align-items: center;
    background: linear-gradient(200deg, rgba(0, 0, 0, 1) 0%, rgba(112, 112, 112, 1) 50%, rgba(0, 0, 0, 1) 100%);
    border-radius: 32px;
    padding: 4px;
}

.outline-border-white {
    display: flex;
    justify-content: center;
    align-items: center;
    border: 2px solid #000;
    background-color: #fff;
    border-radius: 32px;
    padding: 4px;
}

.hero-buttons {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-md);
}

.hero-buttons-row {
    display: flex;
    gap: var(--spacing-md);
    flex-wrap: wrap;
    justify-content: center;
}

.hero-buttons-extra {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: fit-content;
    max-width: 100%;
}

.btn-whatsapp-group {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 56px;
    padding: 13px 34px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    background: linear-gradient(135deg, #25d366 0%, #1ebe57 52%, #128c7e 100%);
    color: #ffffff;
    box-shadow:
        0 16px 36px rgba(18, 140, 126, 0.28),
        inset 0 1px 0 rgba(255, 255, 255, 0.22);
    cursor: pointer;
    font-size: 20px;
    font-weight: 700;
    text-decoration: none;
    transition: transform 0.28s ease, box-shadow 0.28s ease, filter 0.28s ease;
}

.btn-whatsapp-group i {
    font-size: 1.15em;
    line-height: 1;
}

.btn-whatsapp-group:hover,
.btn-whatsapp-group:focus-visible {
    transform: translateY(-1px);
    box-shadow:
        0 18px 42px rgba(18, 140, 126, 0.36),
        0 0 28px rgba(37, 211, 102, 0.22),
        inset 0 1px 0 rgba(255, 255, 255, 0.28);
    filter: brightness(1.04);
}

.btn-whatsapp-group:focus-visible {
    outline: 3px solid rgba(37, 211, 102, 0.45);
    outline-offset: 4px;
}

@media (prefers-reduced-motion: reduce) {
    .btn-whatsapp-group {
        transition: none;
    }
}

/* Prompt WhatsApp estilo OneSignal slidedown (topo central) */
.appradio-wa-toast {
    --wa-slide-duration: 0.45s;
    position: fixed;
    top: 0;
    left: 50%;
    z-index: 10050;
    width: min(560px, calc(100vw - 24px));
    margin: 0;
    padding: 0;
    border-radius: 0 0 14px 14px;
    overflow: hidden;
    color: #111827;
    background: linear-gradient(180deg, #ffffff 0%, #f7f8fa 100%);
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-top: none;
    box-shadow:
        0 18px 40px rgba(0, 0, 0, 0.18),
        0 0 0 1px rgba(37, 211, 102, 0.08);
    opacity: 0;
    transform: translate(-50%, -110%);
    pointer-events: none;
    transition:
        transform var(--wa-slide-duration) cubic-bezier(0.22, 1, 0.36, 1),
        opacity var(--wa-slide-duration) ease;
}

.appradio-wa-toast.is-visible {
    opacity: 1;
    transform: translate(-50%, 0);
    pointer-events: auto;
}

.appradio-wa-toast.is-leaving {
    opacity: 0;
    transform: translate(-50%, -110%);
    pointer-events: none;
}

.appradio-wa-toast__accent {
    height: 3px;
    background: linear-gradient(90deg, #000 0%, #25d366 48%, #128c7e 100%);
}

.appradio-wa-toast__inner {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 12px;
    padding: 14px 16px 8px;
    align-items: center;
}

.appradio-wa-toast__icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(145deg, #25d366, #128c7e);
    color: #fff;
    font-size: 22px;
    box-shadow: 0 8px 18px rgba(18, 140, 126, 0.28);
    flex-shrink: 0;
}

.appradio-wa-toast__body {
    min-width: 0;
}

.appradio-wa-toast__brand {
    margin: 0 0 2px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #6b7280;
}

.appradio-wa-toast__title {
    margin: 0 0 2px;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.25;
    color: #0a0a0a;
}

.appradio-wa-toast__text {
    margin: 0;
    font-size: 13px;
    line-height: 1.4;
    color: #4b5563;
}

.appradio-wa-toast__close {
    display: none;
}

.appradio-wa-toast__actions {
    display: flex;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 8px;
    padding: 4px 16px 14px;
}

.appradio-wa-toast__cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 36px;
    padding: 0 16px;
    border-radius: 8px;
    border: none;
    background: linear-gradient(135deg, #25d366 0%, #1ebe57 55%, #128c7e 100%);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 8px 16px rgba(18, 140, 126, 0.22);
}

.appradio-wa-toast__cta:hover {
    filter: brightness(1.04);
}

.appradio-wa-toast__dismiss {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    padding: 0 14px;
    border-radius: 8px;
    border: 1px solid rgba(15, 23, 42, 0.12);
    background: #fff;
    color: #374151;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}

.appradio-wa-toast__dismiss:hover {
    background: #f3f4f6;
    color: #111827;
}

@media (max-width: 640px) {
    .appradio-wa-toast {
        top: auto;
        bottom: 0;
        width: calc(100vw - 16px);
        border-radius: 14px 14px 0 0;
        transform: translate(-50%, 110%);
    }

    .appradio-wa-toast.is-visible {
        transform: translate(-50%, 0);
    }

    .appradio-wa-toast.is-leaving {
        transform: translate(-50%, 110%);
    }

    .appradio-wa-toast__actions {
        justify-content: stretch;
    }

    .appradio-wa-toast__cta,
    .appradio-wa-toast__dismiss {
        flex: 1 1 auto;
    }
}

@media (prefers-reduced-motion: reduce) {
    .appradio-wa-toast {
        transition: none;
    }
}

/* Popup de sugestão (home) */
.appradio-feedback-popup {
    --fb-ease: cubic-bezier(0.22, 1, 0.36, 1);
    position: fixed;
    left: 50%;
    bottom: 16px;
    transform: translate(-50%, 120%);
    max-width: 420px;
    width: calc(100% - 32px);
    background: #111822;
    color: #f9fafb;
    border-radius: 16px;
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.45);
    padding: 16px 20px 14px;
    z-index: 9999;
    opacity: 0;
    transition:
        transform 0.35s var(--fb-ease),
        opacity 0.35s ease-out,
        max-width 0.35s var(--fb-ease),
        padding 0.35s ease;
    display: flex;
    align-items: flex-start;
    pointer-events: none;
}

.appradio-feedback-popup.is-visible {
    transform: translate(-50%, 0);
    opacity: 1;
    pointer-events: auto;
}

.appradio-feedback-popup.is-composing {
    max-width: 460px;
    padding-bottom: 16px;
}

.appradio-feedback-close {
    border: none;
    background: transparent;
    color: #9ca3af;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    margin-right: 8px;
    flex-shrink: 0;
    transition: color 0.2s ease, transform 0.2s ease;
}

.appradio-feedback-close:hover {
    color: #e5e7eb;
    transform: scale(1.08);
}

.appradio-feedback-content {
    flex: 1;
    min-width: 0;
    position: relative;
}

.appradio-feedback-step {
    transition:
        opacity 0.28s ease,
        transform 0.32s var(--fb-ease),
        max-height 0.38s var(--fb-ease),
        margin 0.28s ease;
}

.appradio-feedback-step--intro {
    opacity: 1;
    transform: translateY(0);
    max-height: 220px;
}

.appradio-feedback-step--intro.is-exit {
    opacity: 0;
    transform: translateY(-10px) scale(0.98);
    max-height: 0;
    margin: 0;
    pointer-events: none;
    overflow: hidden;
}

.appradio-feedback-step--compose {
    opacity: 0;
    transform: translateY(14px);
    max-height: 0;
    overflow: hidden;
    margin: 0;
    pointer-events: none;
}

.appradio-feedback-step--compose.is-enter {
    opacity: 1;
    transform: translateY(0);
    max-height: 320px;
    margin-top: 0;
    pointer-events: auto;
    overflow: visible;
}

.appradio-feedback-text {
    margin: 0 0 10px;
    font-size: 14px;
    line-height: 1.4;
}

.appradio-feedback-label {
    display: block;
    margin: 0 0 6px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: #d1d5db;
}

.appradio-feedback-textarea {
    display: block;
    width: 100%;
    box-sizing: border-box;
    min-height: 96px;
    resize: vertical;
    margin: 0 0 8px;
    padding: 10px 12px;
    border-radius: 12px;
    border: 1px solid rgba(249, 250, 251, 0.16);
    background: rgba(255, 255, 255, 0.04);
    color: #f9fafb;
    font: inherit;
    font-size: 13px;
    line-height: 1.45;
    outline: none;
    transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.appradio-feedback-textarea::placeholder {
    color: #9ca3af;
}

.appradio-feedback-textarea:focus {
    border-color: rgba(250, 204, 21, 0.55);
    background: rgba(255, 255, 255, 0.06);
    box-shadow: 0 0 0 3px rgba(250, 204, 21, 0.15);
}

.appradio-feedback-status {
    min-height: 1.1em;
    margin: 0 0 8px;
    font-size: 12px;
    line-height: 1.3;
    color: #9ca3af;
    transition: color 0.2s ease, opacity 0.2s ease;
}

.appradio-feedback-status.is-info {
    color: #93c5fd;
}

.appradio-feedback-status.is-success {
    color: #86efac;
}

.appradio-feedback-status.is-error {
    color: #fca5a5;
}

.appradio-feedback-actions {
    display: flex;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
}

.appradio-feedback-btn {
    border-radius: 999px;
    padding: 6px 14px;
    font-size: 13px;
    line-height: 1.2;
    border: none;
    cursor: pointer;
    white-space: nowrap;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition:
        background 0.2s ease,
        color 0.2s ease,
        border-color 0.2s ease,
        transform 0.2s var(--fb-ease),
        box-shadow 0.2s ease,
        opacity 0.2s ease;
}

.appradio-feedback-btn:active {
    transform: scale(0.97);
}

.appradio-feedback-btn:disabled {
    opacity: 0.65;
    cursor: wait;
    transform: none;
}

.appradio-feedback-btn-primary {
    background: #facc15;
    color: #111827;
    font-weight: 600;
    box-shadow: 0 6px 14px rgba(250, 204, 21, 0.18);
}

.appradio-feedback-btn-primary:hover:not(:disabled) {
    background: #eab308;
}

.appradio-feedback-btn-secondary {
    background: transparent;
    color: #e5e7eb;
    border: 1px solid rgba(249, 250, 251, 0.2);
}

.appradio-feedback-btn-secondary:hover:not(:disabled) {
    background: rgba(31, 41, 55, 0.9);
}

@media (max-width: 480px) {
    .appradio-feedback-popup {
        padding: 14px 16px 12px;
        bottom: 12px;
    }

    .appradio-feedback-popup.is-composing {
        max-width: calc(100% - 24px);
    }

    .appradio-feedback-actions {
        width: 100%;
    }

    .appradio-feedback-btn {
        flex: 1 1 auto;
    }
}

@media (prefers-reduced-motion: reduce) {
    .appradio-feedback-popup,
    .appradio-feedback-step,
    .appradio-feedback-btn,
    .appradio-feedback-close,
    .appradio-feedback-textarea {
        transition: none;
    }
}

.btn-radiometrics {
    --glow-x: 50%;
    --glow-y: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 56px;
    padding: 13px 42px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    background:
        radial-gradient(circle at var(--glow-x) var(--glow-y), rgba(255, 255, 255, 0.16), transparent 34%),
        linear-gradient(135deg, #51545b 0%, #34373d 48%, #202329 100%);
    color: #f8fafc;
    box-shadow:
        0 16px 36px rgba(15, 23, 42, 0.26),
        inset 0 1px 0 rgba(255, 255, 255, 0.18);
    cursor: pointer;
    font-size: 22.273px;
    font-weight: 700;
    overflow: hidden;
    position: relative;
    text-decoration: none;
    transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
    z-index: 1;
}

.btn-radiometrics span {
    position: relative;
    text-shadow: 0 1px 8px rgba(15, 23, 42, 0.38);
    z-index: 2;
}

.btn-radiometrics::before,
.btn-radiometrics::after {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: inherit;
    pointer-events: none;
    transition: opacity 0.55s ease;
}

.btn-radiometrics::before {
    background:
        radial-gradient(circle at var(--glow-x) var(--glow-y), rgba(34, 211, 238, 0.98), transparent 15%),
        radial-gradient(circle at calc(var(--glow-x) + 9%) calc(var(--glow-y) + 11%), rgba(59, 130, 246, 0.92), transparent 17%),
        radial-gradient(circle at calc(var(--glow-x) - 11%) calc(var(--glow-y) + 7%), rgba(52, 211, 153, 0.88), transparent 19%),
        radial-gradient(circle at calc(var(--glow-x) + 7%) calc(var(--glow-y) - 9%), rgba(251, 191, 36, 0.82), transparent 17%),
        radial-gradient(circle at calc(var(--glow-x) - 8%) calc(var(--glow-y) - 7%), rgba(244, 114, 182, 0.78), transparent 18%),
        radial-gradient(circle at calc(var(--glow-x) + 12%) calc(var(--glow-y) - 4%), rgba(167, 139, 250, 0.72), transparent 20%);
    filter: blur(20px);
    mix-blend-mode: screen;
    opacity: 0.28;
    transform: scale(1.1);
    z-index: 0;
}

.btn-radiometrics::after {
    background:
        radial-gradient(circle at var(--glow-x) var(--glow-y), rgba(255, 255, 255, 0.34), transparent 28%),
        radial-gradient(circle at calc(var(--glow-x) + 6%) calc(var(--glow-y) + 5%), rgba(96, 165, 250, 0.22), transparent 32%);
    opacity: 0.45;
    z-index: 1;
    transition: opacity 0.55s ease;
}

.btn-radiometrics.is-glow-active,
.btn-radiometrics:hover,
.btn-radiometrics:focus-visible {
    border-color: rgba(255, 255, 255, 0.36);
    box-shadow:
        0 18px 42px rgba(15, 23, 42, 0.32),
        0 0 42px rgba(34, 211, 238, 0.22),
        0 0 28px rgba(244, 114, 182, 0.14),
        inset 0 1px 0 rgba(255, 255, 255, 0.24);
    transform: translateY(-1px);
}

.btn-radiometrics.is-glow-active::before,
.btn-radiometrics:hover::before,
.btn-radiometrics:focus-visible::before {
    opacity: 1;
}

.btn-radiometrics.is-glow-active::after,
.btn-radiometrics:hover::after,
.btn-radiometrics:focus-visible::after {
    opacity: 0.72;
}

.btn-radiometrics:focus-visible {
    outline: 3px solid rgba(96, 165, 250, 0.42);
    outline-offset: 4px;
}

@media (prefers-reduced-motion: reduce) {
    .btn-radiometrics,
    .btn-radiometrics::before,
    .btn-radiometrics::after {
        transition: none;
    }
}

.btn-primary, .btn-secondary, .btn-white {
    padding: 13px 40px;
    border-radius: var(--radius-xl);
    font-size: 22.273px;
    font-weight: 500;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
}

.btn-primary {
    color: #ffffff;
    border: 0.25px solid #ffffff;
}

.btn-primary:hover {
    background: rgba(255, 255, 255, 0.1);
}

.btn-secondary {
    color: var(--color-text-primary);
    position: relative;
    overflow: hidden;
}

.btn-secondary::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.4) 0%, rgba(255, 255, 255, 0) 60%);
    pointer-events: none;
    z-index: 0;
    border-radius: var(--radius-xl);
    transition: background 0.4s ease, opacity 0.4s ease;
}

.btn-secondary > * {
    position: relative;
    z-index: 1;
}

.btn-secondary:hover {
    transition: all 0.3s ease;
    opacity: 0.9;
}

.btn-secondary:hover::before {
    background: radial-gradient(circle, rgba(255, 255, 255, 0.6) 0%, rgba(255, 255, 255, 0) 60%);
    transition: all 0.3s ease;
}

.hero-social {
    display: flex;
    gap: 20px;
    position: absolute;
    bottom: 20px;
    left: 2%;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    transition: transform 0.3s ease;
    border-radius: 50%;
    padding: 3px;
}

.social-link:hover {
    transform: scale(1.3);
    transition: transform 0.3s ease;
}

.social-link img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: brightness(1.2);
}

.hero-device {
    position: relative;
}

.hero-iphone {
    width: 100%;
    max-width: 534px;
    height: auto;
    max-height: 400px;
    object-fit: contain;
    object-position: center bottom;
}

/* Device Section */
.device-section {
    display: grid;
    /* Forçar layout 2 colunas em telas maiores (2x2 para os primeiros 4 cards)
       e deixar o último card ocupar a linha inteira abaixo. */
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    padding: var(--spacing-2xl) 0;
    width: 100%;
    margin: 0 auto;
    align-items: start;
    background-color: #D7D7D7;
    overflow: hidden;
}

/* Disposição sobreposta dos dispositivos (celular + tablet) */
.mobile-devices {
    position: relative;
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    aspect-ratio: 16 / 9; /* garante área para posicionar sobreposição */
}

.mobile-devices .device {
    position: absolute;
    display: block;
    height: auto;
    transform-origin: center center;
    filter: drop-shadow(0 12px 24px rgba(0,0,0,0.25));
    transition: transform 220ms ease;
}

.mobile-devices .tablet {
    right: 6%;
    top: 0;
    width: 60%;
    z-index: 1;
}

.mobile-devices .phone {
    left: 12%;
    bottom: -6%;
    width: 34%;
    z-index: 2;
}

@media (max-width: 900px) {
    .mobile-devices { max-width: 680px; aspect-ratio: 16/10; }
    .mobile-devices .tablet { width: 66%; right: 2%; transform: rotate(10deg); }
    .mobile-devices .phone { width: 38%; left: 4%; bottom: -2%; transform: rotate(-10deg); }
}

@media (max-width: 600px) {
    .mobile-devices { max-width: 520px; aspect-ratio: 4/3; }
    .mobile-devices .tablet { width: 72%; right: 0; transform: rotate(8deg); }
    .mobile-devices .phone { width: 44%; left: 2%; bottom: 0; transform: rotate(-8deg); }
}

/* Último card ocupa toda a largura em desktop (linha separada) */
.device-section .device-card:last-child {
    grid-column: 1 / -1;
    height: auto;
}

.device-card {
    background: var(--color-bg-primary);
    padding: 66px var(--spacing-lg);
    text-align: center;
    min-height: 793px;
    height: 860px;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.device-card:hover{
    transform: scale(1.05);
    transition: transform 0.3s ease;
}

.device-card img {
    max-width: 100%;
    height: auto;
    margin: 0 auto;
}

.device-card h2 {
    font-size: clamp(40px, 4vw, 63.119px);
    font-weight: 600;
    margin-bottom: var(--spacing-xl);
}

.gradient-text {
    font-weight: 700;
    background: linear-gradient(90deg, #969191 33.654%, #5c5c5c 59.135%, #969191 87.981%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Content Section */
.content-section {
    padding: var(--spacing-2xl) var(--spacing-lg);
    max-width: 1860px;
    margin: 0 auto;
}

.section-title {
    font-size: 37.015px;
    font-weight: 500;
    margin-bottom: var(--spacing-xl);
    color: var(--color-text-primary);
}

.gray-text {
    color: var(--color-text-secondary);
}

.content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(341px, 1fr));
    gap: var(--spacing-lg);
}

.content-card {
    background: var(--color-bg-secondary);
    border-radius: 6.509px;
    overflow: hidden;
    position: relative;
    height: 200px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.content-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    z-index: 1;
}

.content-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.content-card h3 {
    position: absolute;
    top: 60px;
    left: 19px;
    max-width: 182px;
    font-size: 27.518px;
    font-weight: 700;
    color: #ffffff;
}

.content-card p {
    position: absolute;
    bottom: 20px;
    left: 19px;
    font-size: 11.403px;
    font-weight: 200;
    color: #ffffff;
    max-width: 182px;
}

.content-card--embed {
    cursor: pointer;
}

.content-card--embed:focus {
    outline: 2px solid var(--color-accent, #3b82f6);
    outline-offset: 2px;
}

.content-card--embed:focus:not(:focus-visible) {
    outline: none;
}

/* Painel Climatempo: slide da direita, iframe a preencher o painel */
.content-phone-drawer {
    position: fixed;
    inset: 0;
    z-index: 10050;
    pointer-events: none;
    box-sizing: border-box;
}

.content-phone-drawer.content-phone-drawer--open {
    pointer-events: auto;
}

.content-phone-drawer__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.35s ease;
}

.content-phone-drawer.content-phone-drawer--open .content-phone-drawer__backdrop {
    opacity: 1;
}

.content-phone-drawer__sheet {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
    display: flex;
    flex-direction: column;
    width: min(960px, 100vw);
    max-width: 100%;
    background: linear-gradient(165deg, #f4f4f5 0%, #e4e4e7 100%);
    box-shadow: -12px 0 40px rgba(0, 0, 0, 0.18);
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
    will-change: transform;
}

.content-phone-drawer.content-phone-drawer--open .content-phone-drawer__sheet {
    transform: translateX(0);
}

.content-phone-drawer__toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 14px 16px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    flex-shrink: 0;
    background: var(--color-bg-primary, #fff);
}

.content-phone-drawer__title {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--color-text-primary, #111);
    flex: 1 1 auto;
    min-width: 0;
}

.content-phone-drawer__actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.content-phone-drawer__external {
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--color-accent, #2563eb);
    text-decoration: underline;
    text-underline-offset: 2px;
    white-space: nowrap;
}

.content-phone-drawer__external:hover {
    text-decoration: none;
}

.content-phone-drawer__close {
    appearance: none;
    border: 1px solid rgba(0, 0, 0, 0.15);
    background: var(--color-bg-secondary, #f4f4f5);
    color: var(--color-text-primary, #111);
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 0.8125rem;
    font-weight: 600;
    cursor: pointer;
}

.content-phone-drawer__close:hover {
    background: #e4e4e7;
}

.content-phone-drawer__body {
    flex: 1;
    min-height: 0;
    position: relative;
    display: flex;
    flex-direction: column;
    background: var(--color-bg-primary, #fff);
}

.content-phone-drawer__loading {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    background: rgba(255, 255, 255, 0.94);
    font-size: 0.9rem;
    color: var(--color-text-secondary, #52525b);
    text-align: center;
    padding: 12px;
}

.content-phone-drawer__loading[hidden] {
    display: none;
}

.content-phone-drawer__iframe {
    display: block;
    flex: 1;
    min-height: 0;
    width: 100%;
    border: 0;
    background: #fff;
}

body.content-embed-modal-active {
    overflow: hidden;
}

@media (max-width: 768px) {
    .content-phone-drawer__sheet {
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .content-phone-drawer__backdrop,
    .content-phone-drawer__sheet {
        transition-duration: 0.01ms;
    }
}

/* Services Section */
.services-section {
    padding: var(--spacing-2xl) var(--spacing-lg);
    max-width: 1860px;
    margin: var(--spacing-2xl) auto 0;
}

.services-grid{
    display: flex;
    flex-direction: row;
    justify-content: center;
    gap: var(--spacing-lg);
}

.services-grid-left {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
}

.service-card.bottom-left {
    display: flex;
    flex-direction: row;
    gap: 20px;
}

.service-card {
    background: var(--color-bg-secondary);
    border-radius: 22px;
    overflow: hidden;
    position: relative;
    min-height: 575px;
}

.service-card.large{
    width: 100%;
}

.service-card.small{
    width: 50%;
}

.service-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.service-content, .service-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: var(--spacing-lg);
    /* background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent); */
    color: #ffffff;
}

.service-content.monetize{
    height: 100%;
    color: #000;

    p{
        font-size: 20px;
    }

    h3{
        font-size: 24px;
    }

    a{
        display: flex;
        align-items: center;
        justify-content: center;
    }
}

.monetize-top-button{
    border: solid 2px #FFBB00;
    padding: 10px 20px;
    border-radius: 5px;
    background: transparent;
    color: #FFBB00;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s ease;
}

.monetize-top-button:hover{
    background: #FFBB00;
    color: #ffffff;
}

.app-section {
    padding: var(--spacing-2xl) var(--spacing-lg);
    max-width: 1860px;
    margin: 0 auto;
    display: flex;
    flex-direction: row;
    text-align: center;
    gap: 40px;
    border-radius: 16px;
}

.app-section-iphone{
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 60px;
}

.right-elementos{
    display: flex;
    flex-direction: column;
    gap: 80px;
}

.elemento{
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 10px;
}

.elemento-icon{
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background-color: #D9D9D9;
    border-radius: 50%;
    padding: 10px;
}

.elemento-icon svg{
    width: 24px;
    height: 24px;
}

.elemento p{
    color: #000;
    font-style: normal;
    font-weight: 500;
    line-height: normal;
}

.app-section-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.app-section-content-left{
    display: flex;
    flex-direction: column;
    gap: 70px;
}

.app-section-content-right{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-around;
}

.app-section-title.right{
    font-size: 28px;
    font-weight: 500;
    width: 80%;
}

.app-section-title {
    font-family: var(--font-secondary);
    font-size: 32px;
    font-weight: 700;
    color: var(--color-text-primary);
    margin: 0;
    max-width: 631px;
}

.app-section-description {
    font-family: var(--font-secondary);
    font-size: 18px;
    font-weight: 400;
    color: var(--color-text-primary);
    margin: 0;
    max-width: 611px;
}

.service-content h3 {
    font-size: 40px;
    font-weight: 700;
    margin-bottom: var(--spacing-sm);
    width: 450px;
    
}

.service-content p {
    font-size: 25.882px;
    margin-bottom: var(--spacing-md);
    width: 450px;
}

.service-overlay p{
    font-size: 20px;
}

.service-overlay h3{
    font-size: 28px;
}

.btn-white {
    background: #ffffff;
    color: var(--color-text-primary);
    transition: all 0.3s ease;
}

.btn-white:hover{
    background-color: #000;
    color: #ffffff;
    transition: all 0.3s ease;
}

.btn-know-more {
    position: absolute;
    bottom: 30px;
    right: 30px;
    background: #fff;
    width: 70px;
    height: 70px;
    border: none;
    border-radius: 50%;
    transition: all 0.3s ease;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-know-more svg{
    width: 48px;
    height: 48px;
    color: #000;
    transition: all 0.3s ease;
}

.btn-know-more:hover{
    background: var(--color-text-primary);
    transition: all 0.3s ease;

    svg{
        color: #fff;
    }
}

.service-card.monetize {
    background: linear-gradient(135deg, #a7eb7e 0%, #fe9454 100%);
}

/* Footer */
.footer {
    padding-top: var(--spacing-2xl);
    padding-bottom: var(--spacing-xl);
    margin: var(--spacing-2xl) var(--spacing-lg) 0;
    border-top: 1px solid var(--color-border);
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    max-width: 1860px;
    margin: 0 auto;
    padding-bottom: var(--spacing-xl);
}

/* Tablet / desktop estreito: 3 colunas para os blocos de links; branding em linha completa por baixo */
@media (min-width: 769px) and (max-width: 1199px) {
    .footer-content {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

/* Desktop largo: 5 colunas de links em linha */
@media (min-width: 1200px) {
    .footer-content {
        grid-template-columns: repeat(5, minmax(0, 1fr));
        align-items: start;
    }
}

.footer-section h3 {
    font-size: 20.746px;
    font-weight: 500;
    margin-bottom: var(--spacing-md);
    color: var(--color-text-primary);
}

.footer-section ul {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.footer-section a {
    font-size: 16.044px;
    color: rgba(0, 0, 0, 0.72);
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: var(--color-text-primary);
}

.footer-platforms {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-md);
    width: 100%;
}

.footer-bottom {
    max-width: 1860px;
    margin: var(--spacing-xl) auto 0;
    padding: var(--spacing-xl) var(--spacing-lg) 0;
    border-top: 1px solid var(--color-border);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-lg);
    width: 100%;
}

.footer-copyright {
    color: var(--color-text-secondary);
    font-size: 15.62px;
    text-align: center;
    margin: 0;
}

.footer-store-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.footer-store-row--line {
    flex-wrap: nowrap;
    justify-content: center;
    gap: 12px;
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding-bottom: 2px;
}

.footer-store-row--line::-webkit-scrollbar {
    display: none;
    width: 0;
    height: 0;
}

.footer-store-row--line.smart-tv {
    overflow-x: hidden;
    padding-bottom: 0;
}

.footer-store-row--line > a,
.footer-store-row--line > span,
.footer-store-row--line > img {
    flex: 0 0 auto;
}

.footer-store-row--line.social-links img {
    height: 40px;
    width: auto;
}

.footer-distribution a,
.footer-distribution .footer-platform-soon,
.footer-store-row--line a,
.footer-store-row--line .footer-platform-soon {
    display: inline-flex;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.footer-distribution a:hover,
.footer-store-row--line a:hover {
    transform: scale(1.04);
}

.footer-store-row--line.smart-tv a:hover {
    transform: none;
    opacity: 0.82;
}

.footer-distribution img,
.footer-store-row--line .footer-platform-soon img {
    height: 40px;
    width: auto;
    display: block;
}

.footer-platform-soon {
    opacity: 0.55;
    cursor: help;
}

.smart-tv{
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    flex-wrap: nowrap;
    gap: 20px;
}

.smart-tv img {
    height: 28px;
    width: auto;
    max-width: none;
}

.footer-social-networks{
    display: flex;
    gap: 10px;
    transition: all 0.3s ease;
}

.footer-social-networks .social-link{
    transition: transform 0.3s ease;
}

.footer-social {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
    align-items: center;
}

.footer-social p,
.footer-bottom .footer-copyright {
    color: var(--color-text-secondary);
    font-size: 15.62px;
}

.social-links {
    display: flex;
    gap: var(--spacing-md);
}

.btn-back-top {
    height: 60px;
    width: 230px;
    border: 1.238px solid var(--color-border);
    border-radius: 37.968px;
    background: transparent;
    color: var(--color-text-primary);
    font-size: 27.017px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-back-top:hover {
    background: var(--color-text-primary);
    color: #ffffff;
}

/* Rodapé em páginas com fundo escuro (index_2, planos): contraste e largura */
body.index2-body .footer,
body.planos-body .footer {
    margin-left: 0;
    margin-right: 0;
    margin-top: 0;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding-left: clamp(1rem, 4vw, 2rem);
    padding-right: clamp(1rem, 4vw, 2rem);
    background: #12161c;
    border-top-color: rgba(255, 255, 255, 0.1);
}

body.index2-body .footer .footer-content,
body.planos-body .footer .footer-content {
    max-width: 100%;
}

body.index2-body .footer-section h3,
body.planos-body .footer-section h3 {
    color: #e8ecf2;
}

body.index2-body .footer-section a,
body.planos-body .footer-section a {
    color: rgba(232, 236, 242, 0.82);
}

body.index2-body .footer-section a:hover,
body.planos-body .footer-section a:hover {
    color: #3dd6b4;
}

body.index2-body .footer-social p,
body.planos-body .footer-social p,
body.index2-body .footer-bottom .footer-copyright,
body.planos-body .footer-bottom .footer-copyright {
    color: rgba(232, 236, 242, 0.55);
}

body.index2-body .btn-back-top,
body.planos-body .btn-back-top {
    border-color: rgba(255, 255, 255, 0.35);
    color: #e8ecf2;
    background: rgba(255, 255, 255, 0.04);
}

body.index2-body .btn-back-top:hover,
body.planos-body .btn-back-top:hover {
    background: #3dd6b4;
    color: #04120e;
    border-color: #3dd6b4;
}

/* Footer simples para páginas específicas */
.footer-simple {
    background-color: #ffffff;
    padding: 2rem 1.5rem;
    border-top: 1px solid #E0E0E0;
}

.footer-simple-content {
    max-width: 1280px;
    margin: 0 auto;
    text-align: center;
    font-size: 14px;
    color: #999999;
}

.footer-bottom {
    max-width: 1860px;
    margin: var(--spacing-lg) auto 0;
    text-align: center;
}

/* Disclaimer */
.disclaimer {
    max-width: 1860px;
    margin: var(--spacing-2xl) auto;
    padding: 0 var(--spacing-lg);
}

.disclaimer p {
    font-size: 23.355px;
    color: var(--color-text-secondary);
    margin-bottom: var(--spacing-md);
    text-align: justify;
}

.disclaimer ol {
    margin-left: var(--spacing-lg);
}

.disclaimer li {
    font-size: 23.355px;
    color: var(--color-text-secondary);
    margin-bottom: var(--spacing-sm);
    text-align: justify;
}

/* Responsivo */
@media (max-width: 1280px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .device-section {
        grid-template-columns: 1fr;
    }
    
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .service-card.large {
        grid-column: 1;
    }

    .hero-social{
        gap: 5px !important;
    }
}

@media (max-width: 1224px) {
    .navbar-inner{
        justify-content: space-between;
    }

    .navbar-menu {
        display: flex;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(0, 0, 0, 0.95);
        flex-direction: column;
        padding: var(--spacing-lg);
        padding-bottom: calc(var(--spacing-lg) + 80px);
        max-height: calc(100vh - 67px);
        overflow-y: auto;
        z-index: 999;
        opacity: 0;
        visibility: hidden;
        transform: translateY(-20px);
        transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s;
    }
    
    .navbar-menu.active {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    /* Ensure good contrast when the mobile menu is opened over the hero (transparent navbar).
       The menu uses a near-black background, so force menu links and the toggle bars to white
       while the menu is active. This keeps the existing .monetize-top-button and other
       navbar styles unchanged. */
    .navbar-menu.active a,
    .navbar-menu.active li a{
        color: #ffffff !important;
    }

    /* Make the language selector visible when the menu is active */
    .navbar-menu.active .navbar-language select {
        color: #ffffff !important;
        border-color: rgba(255, 255, 255, 0.3) !important;
        background-color: rgba(0, 0, 0, 0.5) !important;
    }

    .navbar-menu.active .navbar-language select:hover {
        border-color: #ffffff !important;
        background-color: rgba(0, 0, 0, 0.7) !important;
    }

    /* When the mobile menu is active, make the hamburger bars white for visibility.
       The toggle button follows the menu in the DOM, so use the adjacent sibling selector.
       Also animate the bars to form an X. */
    .navbar-menu.active + .mobile-menu-toggle span {
        background: #ffffff !important;
    }
    
    .navbar-menu.active + .mobile-menu-toggle span:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
    }
    
    .navbar-menu.active + .mobile-menu-toggle span:nth-child(2) {
        opacity: 0;
    }
    
    .navbar-menu.active + .mobile-menu-toggle span:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
    }

    /* Add a subtle dark translucent background behind the hamburger when the menu
       is open so the white bars don't disappear if the navbar itself is light. This
       preserves the white bars but ensures contrast regardless of the navbar color. */
    .navbar-menu.active + .mobile-menu-toggle {
        background: rgba(0,0,0,0.28);
        border-radius: 8px;
        padding: 6px;
        transition: background 160ms ease;
    }

    /* Fallback for pages without .hero-section: ensure navbar is visible with dark background */
    body:not(:has(.hero-section)) .navbar {
        background: rgba(0, 0, 0, 0.92);
        backdrop-filter: blur(8px);
        box-shadow: 0 4px 18px rgba(0,0,0,0.25);
    }

    body:not(:has(.hero-section)) .navbar-menu a,
    body:not(:has(.hero-section)) .navbar-login {
        color: #ffffff !important;
    }

    body:not(:has(.hero-section)) .mobile-menu-toggle span {
        background: #ffffff !important;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
}

@media (max-width: 1024px) {
    .hero-social{
        display: none;
    }
    
    /* Otimização de vídeos em tablets */
    .hero-video-top,
    .hero-video-bottom {
        opacity: 0.8;
    }

    .app-section-content-right{
        gap: 20px;
    }

    .app-section{
        flex-direction: column;
    }

    .swiper-main .carrossel-content button{
        height: auto !important;
        width: auto !important;
        font-size: 18px !important;
        left: 7% !important;
        bottom: 10% !important;
    }

    .device-card {
        min-height: auto !important;
        height: auto !important;
        padding: var(--spacing-lg);
    }

    /* Responsive: stack services section cards and convert overlays to flow */
    .services-section {
        padding: var(--spacing-lg) 1rem;
    }

    .services-grid {
        flex-direction: column;
        gap: var(--spacing-md);
        align-items: stretch;
    }

    .services-grid-left {
        width: 100%;
        display: flex;
        flex-direction: column;
        gap: var(--spacing-md);
    }

    .service-card {
        width: 100%;
        min-height: auto;
        padding: 0;
        border-radius: 12px;
        overflow: hidden;
    }

    .service-card img {
        width: 100%;
        height: auto;
        display: block;
        object-fit: cover;
    }

    .service-card.large,
    .service-card.small {
        width: 100%;
    }

    .service-card.small .service-overlay{
        padding: 10px;
        height: 100%;
        background: linear-gradient(to top, #000, transparent);
    }

    /* Convert overlayed content to flowing content on small screens so text is readable */

    .service-card.large .service-content{
        width: 50% !important;
        height: 100% !important;
        padding: 10px;
    }

    .service-card.large .service-content h3{
        font-size: large;
        width: auto;
    }

    .service-card.large .service-content p{
        display: none;
    }

    .service-card.large .btn-white{
        padding: 10px;
    }

    .service-card.small h3{
        font-size: 22px !important;
    }

    .service-overlay .btn-know-more {
        width: 48px !important;
        height: 48px !important;
    }

    .service-overlay .btn-know-more svg {
        width: 24px !important;
        height: 24px !important;
    }

    .service-overlay p{
        font-size: 16px !important;
    }

    .service-content.monetize {
        color: var(--color-text-primary) !important;
    }

    .service-card.monetize {
        order: 2;
    }
}

@media (max-width: 768px) {
    .content-card h3 {
        max-width: 250px;
    }

    .content-card p {
        
        max-width: 220px;
    }

    .device-section{
        padding-top: 0 !important;
    }

    .content-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    .footer-section {
        text-align: center;
    }
    
    .footer-section h3 {
        text-align: center;
    }
    
    .footer-section ul {
        align-items: center;
    }
    
    .footer-social {
        align-items: center;
    }

    .footer-bottom {
        align-items: center;
        padding-left: var(--spacing-md);
        padding-right: var(--spacing-md);
    }

    .footer-store-row--line {
        justify-content: flex-start;
    }
    
    .footer-social-networks {
        justify-content: center;
    }
    
    .social-links {
        justify-content: center;
    }
    
    .smart-tv {
        justify-content: center;
    }
    
    .btn-back-top {
        margin: 0 auto;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .hero-buttons-row {
        flex-direction: column;
        align-items: center;
        width: 100%;
    }

    .hero-buttons .outline-border-black,
    .hero-buttons .outline-border-white,
    .hero-buttons-extra {
        align-self: center;
        width: fit-content;
        max-width: 100%;
    }
    
    .hero-social {
        justify-content: center;
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .social-link {
        width: 28px;
        height: 28px;
    }
    
    /* Vídeos background em mobile */
    .hero-video-top {
        opacity: 0.4;
        mix-blend-mode: overlay;
    }
    
    .hero-video-bottom {
        opacity: 0.9;
    }
    
    .app-section-iphone {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .hero-title .pro {
        font-size: clamp(48px, 12vw, 120px);
    }
    
    .content-card {
        height: 180px;
    }
    
    /* Vídeos background em mobile pequeno */
    .hero-video {
        filter: brightness(0.8);
    }
}

/* Swiper Main Carousel */
.swiper-main-section {
    width: 100%;
    margin: 48px 0;
    position: relative;
}

.swiper-main {
    width: 100%;
    padding-bottom: 0;
}

.swiper-main .swiper-wrapper {
    align-items: stretch;
}

.swiper-main .swiper-slide {
    width: 70%;
    height: auto;
    display: flex;
    box-sizing: border-box;
}

/* Em telas menores, aumenta a largura do slide */
@media (max-width: 768px) {
    .swiper-main .swiper-slide {
        width: 85%;
    }
}

@media (max-width: 480px) {
    .swiper-main .swiper-slide {
        width: 90%;
    }
}

.swiper-main .carrossel-content {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding: 28px 10px;
    display: flex;
    gap: 14px;
    align-items: center;
    justify-content: center;
    background: linear-gradient(90deg, rgba(0,0,0,0.03), rgba(0,0,0,0.02));
    /* Make each slide a positioned container so absolutely positioned children
       (like a button) are positioned relative to the slide instead of the
       viewport. This prevents buttons from floating over other slides. */
    position: relative;
    opacity: 0.6; /* inativo por padrão */
    transition: opacity 360ms ease;
}

.swiper-main .carrossel-content.active { 
    opacity: 1; 
}

.swiper-main .carrossel-content button{
    position: absolute;
    bottom: 12%;
    left: 7%;
     /* a largura passa a ser determinada pelo espaço entre left e right */
    inline-size: auto; /* width automático */
    block-size: auto; /* height baseado no padding */
    padding: clamp(8px, 1.2vw, 14px) clamp(14px, 2vw, 24px);
    font-size: clamp(16px, 2.4vw, 30px);
    border: none;
    border-radius: 24px;
    background: #fff;
    color: #000;
    cursor: pointer;
}

/* If the slide is image-only (img is direct child), stretch to full slide */
.swiper-main .carrossel-content > img {
    width: 100%;
    max-width: 100%;
    height: auto;
    object-fit: contain;
    object-position: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.12);
    display: block;
}
.swiper-main .carousel-item-body {
    width: 50%;
    max-width: 700px;
}
.swiper-main .carousel-item-body h3 {
    font-size: 2rem;
    margin: 0 0 8px 0;
}
.swiper-main .carousel-item-body p {
    margin: 0 0 16px 0;
    color: var(--text-muted, #777);
}

.carousel-dots {
    margin-top: 16px;
    display: flex;
    justify-content: center;
    gap: 8px;
}

.carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: none;
    background: #979797;
    cursor: pointer;
    transition: transform .18s ease, background-color .18s ease;
}
.carousel-dot.active {
    background: var(--accent, #333);
    transform: scale(1.2);
}

/* Responsive tweaks */
@media (max-width: 900px) {
    .swiper-main .carrossel-content { padding: 18px; gap: 14px; }
}
