/* =============================================
   LANDING PAGE — CLINICADO
   ============================================= */

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --primary:        #0369a1;
    --primary-dark:   #0c4a6e;
    --primary-light:  #38bdf8;
    --primary-subtle: #e0f2fe;
    --bg:             #f8fafc;
    --surface:        #f1f5f9;
    --border:         #e2e8f0;
    --text-main:      #0f172a;
    --text-secondary: #475569;
    --text-muted:     #94a3b8;
    --white:          #ffffff;
}

html { scroll-behavior: smooth; }

/* ── SCROLLBAR NATIVA OCULTA ── */
html {
    scrollbar-width: none;
}
::-webkit-scrollbar {
    width: 0;
    display: none;
}

/* ── SCROLLBAR CUSTOMIZADA ── */
#customScrollTrack {
    position: fixed;
    top: 0;
    right: 0;
    width: 8px;
    height: 100%;
    background: #0c4a6e;
    z-index: 9998;
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
    border-radius: 0;
}

#customScrollThumb {
    position: absolute;
    right: 0;
    width: 8px;
    background: linear-gradient(180deg, #38bdf8 0%, #0369a1 100%);
    border-radius: 999px;
    border: 2px solid #0c4a6e;
    box-sizing: border-box;
    cursor: pointer;
    pointer-events: all;
    transition: background 0.2s;
}

#customScrollThumb:hover {
    background: linear-gradient(180deg, #7dd3fc 0%, #0284c7 100%);
}

html.is-scrolling #customScrollTrack {
    opacity: 1;
}

body {
    font-family: 'Inter', 'Segoe UI', system-ui, sans-serif;
    background: var(--white);
    color: var(--text-main);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* ── NAV ── */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 60px;
    height: 72px;
    background: transparent;
    transition: background 0.35s, box-shadow 0.35s;
}

.nav.scrolled {
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(12px);
    box-shadow: 0 2px 20px rgba(3,105,161,0.1);
    border-bottom: 1px solid var(--border);
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.nav-logo img {
    height: 36px;
    filter: brightness(0) invert(1);
    transition: filter 0.35s;
}

.nav.scrolled .nav-logo img {
    filter: none;
}

.nav-logo-name {
    font-size: 30px;
    font-weight: 700;
    letter-spacing: -0.5px;
    color: rgba(255,255,255,0.3);
    transition: color 0.35s;
    line-height: 1;
}

.nav.scrolled .nav-logo-name {
    color: var(--primary-dark);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 36px;
    list-style: none;
}

.nav-links a {
    font-size: 14px;
    font-weight: 500;
    color: rgba(255,255,255,0.85);
    text-decoration: none;
    letter-spacing: 0.01em;
    transition: color 0.2s;
}

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

.nav-links a:hover,
.nav.scrolled .nav-links a:hover {
    color: var(--primary);
}

.nav-cta {
    display: flex;
    align-items: center;
    gap: 12px;
}

.btn-nav-primary {
    padding: 9px 22px;
    background: rgba(255,255,255,0.15);
    color: var(--white);
    border: 1.5px solid rgba(255,255,255,0.4);
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
    letter-spacing: 0.02em;
    backdrop-filter: blur(4px);
}

.btn-nav-primary:hover {
    background: rgba(255,255,255,0.28);
    border-color: rgba(255,255,255,0.7);
}

.nav.scrolled .btn-nav-primary {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
}

.nav.scrolled .btn-nav-primary:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    box-shadow: 0 4px 14px rgba(3,105,161,0.3);
}

/* ── HERO ── */
.hero-section {
    position: relative;
    background: var(--primary-dark);
    overflow: hidden;
    min-height: 82vh;
    display: flex;
    align-items: center;
}

/* Responsividade do min-height da hero-section */
@media (min-width: 2560px) {
    .hero-section { min-height: 84vh; }
}

@media (min-width: 1920px) and (max-width: 2559px) {
    .hero-section { min-height: 82vh; }
}

@media (min-width: 1600px) and (max-width: 1919px) {
    .hero-section { min-height: 80vh; }
}

@media (min-width: 1440px) and (max-width: 1599px) {
    .hero-section { min-height: 78vh; }
}

@media (min-width: 1280px) and (max-width: 1439px) {
    .hero-section { min-height: 75vh; }
}

@media (min-width: 1024px) and (max-width: 1279px) {
    .hero-section { min-height: 84vh; }
}

@media (max-width: 1023px) {
    .hero-section { min-height: 86vh; }
}

/* Textura geométrica discreta */
.hero-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 20% 50%, rgba(56,189,248,0.12) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(3,105,161,0.4) 0%, transparent 45%);
    pointer-events: none;
}

/* Grade de pontos sutil */
.hero-section::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255,255,255,0.15) 1px, transparent 1px);
    background-size: 32px 32px;
    pointer-events: none;
}

.hero {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    padding: 120px 60px 80px;
    gap: 64px;
    max-width: 1280px;
    margin: 0 auto;
    width: 100%;
}

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--primary-light);
    background: rgba(56,189,248,0.12);
    border: 1px solid rgba(56,189,248,0.25);
    padding: 5px 14px;
    border-radius: 4px;
    margin-bottom: 24px;
}

.hero-eyebrow span {
    width: 5px;
    height: 5px;
    background: var(--primary-light);
    border-radius: 50%;
    display: inline-block;
}

.hero-title {
    font-size: clamp(40px, 4.8vw, 62px);
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -0.035em;
    color: var(--white);
    margin-bottom: 24px;
}

.hero-title em {
    font-style: normal;
    color: var(--primary-light);
}

.hero-desc {
    font-size: 17px;
    color: rgba(255,255,255,0.68);
    line-height: 1.75;
    max-width: 460px;
    margin-bottom: 40px;
}

.hero-actions {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.btn-hero-primary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 32px;
    background: var(--white);
    color: var(--primary-dark);
    font-size: 15px;
    font-weight: 700;
    border-radius: 10px;
    text-decoration: none;
    transition: all 0.25s;
    letter-spacing: 0.01em;
}

.btn-hero-primary:hover {
    background: var(--primary-subtle);
    transform: translateY(-2px);
    box-shadow: 0 10px 32px rgba(0,0,0,0.2);
}

.btn-hero-ghost {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 20px;
    color: rgba(255,255,255,0.7);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 10px;
    border: 1.5px solid rgba(255,255,255,0.2);
    transition: all 0.2s;
}

.btn-hero-ghost i {
    font-size: 16px;
    color: var(--primary-light);
}

.btn-hero-ghost:hover {
    color: white;
    border-color: rgba(255,255,255,0.45);
    background: rgba(255,255,255,0.07);
}

.hero-trust {
    margin-top: 52px;
    display: flex;
    align-items: center;
    gap: 16px;
    padding-top: 32px;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.hero-trust-avatars {
    display: flex;
}

.hero-trust-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.3);
    margin-left: -10px;
    background: rgba(56,189,248,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    color: var(--primary-light);
}

.hero-trust-avatars .hero-trust-avatar:first-child { margin-left: 0; }

.hero-trust-text {
    font-size: 13px;
    color: rgba(255,255,255,0.5);
    line-height: 1.45;
}

.hero-trust-text strong {
    color: rgba(255,255,255,0.9);
    font-weight: 700;
    display: block;
}

/* ── SCROLL HINT ── */
.hero-scroll-hint {
    position: absolute;
    top: -48px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    opacity: 0.6;
    transition: opacity 0.3s ease;
    z-index: 10;
    pointer-events: none;
}

.hero-scroll-hint:hover {
    opacity: 1;
}

.hero-scroll-hint span {
    font-size: 12px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.7);
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.hero-scroll-hint i {
    font-size: 18px;
    color: var(--primary-light);
    animation: bounceArrow 2s ease-in-out infinite;
}

@keyframes bounceArrow {
    0%, 100% { transform: translateY(0); opacity: 0.7; }
    50% { transform: translateY(8px); opacity: 1; }
}

/* ── HERO VISUAL ── */
.hero-visual {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-img-main {
    width: 100%;
    height: auto;
    max-width: 580px;
    border-radius: 18px;
    box-shadow: 0 40px 80px rgba(0,0,0,0.35);
    display: block;
    object-fit: cover;
    border: 1px solid rgba(255,255,255,0.1);
}

.hero-badge-float {
    position: absolute;
    background: white;
    border-radius: 14px;
    padding: 12px 18px;
    box-shadow: 0 12px 40px rgba(0,0,0,0.2);
    display: flex;
    align-items: center;
    gap: 10px;
    white-space: nowrap;
    will-change: transform;
}

.hero-badge-float.badge-top {
    top: -20%;
    left: -30px;
    animation: floatBadge 4s ease-in-out infinite;
}

.hero-badge-float.badge-bottom {
    bottom: -15%;
    right: -20px;
    animation: floatBadge 4s ease-in-out infinite 1.8s;
}

@keyframes floatBadge {
    0%, 100% { transform: translateY(0px) rotate(-0.5deg); }
    50%       { transform: translateY(-10px) rotate(0.5deg); }
}

.hero-badge-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}

.hero-badge-icon.blue  { background: var(--primary-subtle); color: var(--primary); }
.hero-badge-icon.green { background: #dcfce7; color: #059669; }

.hero-badge-text strong {
    display: block;
    font-size: 14px;
    font-weight: 700;
    color: var(--text-main);
}

.hero-badge-text span {
    font-size: 11px;
    color: var(--text-muted);
}

/* ── WAVE SEPARATOR ── */
.wave-sep {
    position: relative;
    display: block;
    width: 100%;
    overflow: visible;
    line-height: 0;
    background: var(--primary-dark);
    z-index: 1;
}

.wave-sep svg {
    display: block;
    width: 100%;
    position: relative;
    z-index: 1;
}

/* ── TICKER / ESPECIALIDADES ── */
.ticker-bar {
    background: var(--text-main);
    padding: 0;
    overflow: hidden;
    border-top: 1px solid rgba(255,255,255,0.05);
    border-bottom: 1px solid rgba(255,255,255,0.05);
    position: relative;
}

/* fade nas bordas */
.ticker-bar::before,
.ticker-bar::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 120px;
    z-index: 2;
    pointer-events: none;
}

.ticker-bar::before {
    left: 0;
    background: linear-gradient(to right, var(--text-main), transparent);
}

.ticker-bar::after {
    right: 0;
    background: linear-gradient(to left, var(--text-main), transparent);
}

.ticker-label {
    display: block;
    text-align: center;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: rgba(255,255,255,0.2);
    padding: 18px 0 6px;
}

.ticker-track {
    display: flex;
    width: max-content;
    animation: tickerScroll 28s linear infinite;
    padding: 10px 0 18px;
}

.ticker-track:hover {
    animation-play-state: paused;
}

@keyframes tickerScroll {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.ticker-item {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 0 48px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.45);
    white-space: nowrap;
    transition: color 0.2s;
}

.ticker-item:hover {
    color: rgba(255,255,255,0.85);
}

.ticker-item i {
    font-size: 14px;
    color: var(--primary-light);
    opacity: 0.6;
}

/* ── SECTION BASE ── */
section {
    padding: 96px 60px;
}

.section-inner {
    max-width: 1280px;
    margin: 0 auto;
}

.section-tag {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--primary);
    margin-bottom: 12px;
}

.section-title {
    font-size: clamp(28px, 3vw, 42px);
    font-weight: 800;
    letter-spacing: -0.025em;
    color: var(--text-main);
    line-height: 1.15;
    margin-bottom: 16px;
}

.section-sub {
    font-size: 16px;
    color: var(--text-secondary);
    max-width: 520px;
    line-height: 1.7;
}

/* ── FEATURES ── */
.features-section {
    background: var(--bg);
}

.features-header {
    text-align: center;
    margin-bottom: 64px;
}

.features-header .section-sub {
    margin: 0 auto;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.feature-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 32px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--primary);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.feature-card:hover {
    border-color: transparent;
    box-shadow: 0 12px 40px rgba(3,105,161,0.1);
    transform: translateY(-4px);
}

.feature-card:hover::before {
    transform: scaleX(1);
}

.feature-icon {
    width: 50px;
    height: 50px;
    background: var(--primary-subtle);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: var(--primary);
    margin-bottom: 20px;
}

.feature-card h3 {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 10px;
    letter-spacing: -0.01em;
}

.feature-card p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.65;
}

/* ── SHOWCASE ── */
.showcase-section {
    background: var(--white);
}

.showcase-section.alt {
    background: var(--primary-dark);
}

.showcase-section.alt .section-tag {
    color: var(--primary-light);
}

.showcase-section.alt .section-title {
    color: var(--white);
}

.showcase-section.alt .section-sub {
    color: rgba(255,255,255,0.6);
}

.showcase-section.alt .showcase-list li {
    color: rgba(255,255,255,0.7);
}

.showcase-section.alt .showcase-list li i {
    color: var(--primary-light);
}

.showcase-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.showcase-grid.reverse {
    direction: rtl;
}

.showcase-grid.reverse > * {
    direction: ltr;
}

.showcase-content .section-title {
    font-size: clamp(24px, 2.5vw, 36px);
}

.showcase-list {
    list-style: none;
    margin-top: 28px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.showcase-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.55;
}

.showcase-list li i {
    color: var(--primary);
    font-size: 15px;
    flex-shrink: 0;
    margin-top: 3px;
}

.showcase-img {
    width: 100%;
    height: auto;
    border-radius: 16px;
    box-shadow: 0 24px 64px rgba(0,0,0,0.12);
    display: block;
    object-fit: cover;
}

.showcase-section.alt .showcase-img {
    box-shadow: 0 24px 64px rgba(0,0,0,0.35);
    border: 1px solid rgba(255,255,255,0.08);
}

/* ── SHOWCASE APP ── */
.app-showcase-section {
    position: relative;
    background: linear-gradient(180deg, #f8fcff 0%, #eef7ff 100%);
    overflow: hidden;
}

.app-showcase-section::before {
    content: '';
    position: absolute;
    top: -120px;
    right: -140px;
    width: 360px;
    height: 360px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(56,189,248,0.25) 0%, rgba(56,189,248,0) 68%);
    pointer-events: none;
}

.app-showcase-head {
    text-align: center;
    margin-bottom: 52px;
}

.app-showcase-head .section-sub {
    margin: 0 auto;
    max-width: 780px;
}

.app-showcase-grid {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 44px;
    align-items: center;
}

.app-showcase-list {
    margin-top: 0;
    margin-bottom: 24px;
}

.app-personas {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.app-store-links {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-align: center;
}

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

.app-store-label {
    display: inline-flex;
    align-items: center;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 700;
    color: #64748b;
    background: rgba(100, 116, 139, 0.12);
    border: 1px solid rgba(100, 116, 139, 0.2);
    border-radius: 999px;
    padding: 5px 10px;
}

.app-store-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    background: #0f172a;
    color: #e2e8f0;
    border-radius: 12px;
    padding: 10px 14px;
    border: 1px solid rgba(15, 23, 42, 0.3);
    min-width: 155px;
    opacity: 1;
}

.app-store-badge i {
    font-size: 18px;
}

.app-store-badge span {
    display: inline-flex;
    flex-direction: column;
    line-height: 1.1;
}

.app-store-badge small {
    font-size: 10px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.app-store-badge strong {
    font-size: 14px;
    font-weight: 700;
}

.app-store-badge--disabled {
    opacity: 0.55;
    pointer-events: none;
}

.app-persona-card {
    background: rgba(255,255,255,0.88);
    border: 1px solid #dbeafe;
    border-radius: 14px;
    padding: 18px 16px;
    box-shadow: 0 10px 24px rgba(2, 132, 199, 0.08);
}

.app-persona-card i {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: var(--primary-subtle);
    color: var(--primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
}

.app-persona-card h3 {
    font-size: 15px;
    line-height: 1.25;
    margin-bottom: 6px;
    color: var(--text-main);
}

.app-persona-card p {
    font-size: 13px;
    line-height: 1.6;
    color: var(--text-secondary);
}

.app-phones {
    position: relative;
    min-height: 520px;
}

.phone-mock {
    position: absolute;
    width: min(240px, 43vw);
    aspect-ratio: 9 / 19.5;
    border-radius: 34px;
    background: #060d17;
    padding: 10px;
    border: 1px solid rgba(15,23,42,0.35);
    box-shadow: 0 22px 48px rgba(15,23,42,0.25);
    overflow: hidden;
    backface-visibility: hidden;
    transform-style: preserve-3d;
}

.phone-mock::before {
    content: '';
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 42%;
    height: 18px;
    border-radius: 14px;
    background: rgba(15,23,42,0.95);
    z-index: 2;
}

.phone-mock picture {
    display: block;
    width: 100%;
    height: 100%;
    transform: translateZ(0);
}

.phone-mock img {
    width: 100%;
    height: 100%;
    border-radius: 24px;
    object-fit: cover;
    display: block;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    transform: translateZ(0);
}

.phone-mock--front {
    top: 24px;
    left: 50%;
    width: min(252px, 45vw);
    transform: translate3d(-50%, 0, 0);
    z-index: 3;
}

.phone-mock--back {
    top: 0;
    left: 24px;
    transform: rotate(-7deg);
    opacity: 0.95;
}

.phone-mock--side {
    right: 20px;
    bottom: 10px;
    transform: rotate(8deg);
    opacity: 0.95;
}

/* ── STATS ── */
.stats-section {
    background: var(--primary);
    padding: 80px 60px;
    position: relative;
    overflow: hidden;
}

.stats-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255,255,255,0.05) 1px, transparent 1px);
    background-size: 28px 28px;
    pointer-events: none;
}

.stats-inner {
    position: relative;
    z-index: 1;
    max-width: 1280px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 48px;
    text-align: center;
}

.stat-item {
    position: relative;
}

.stat-item + .stat-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 20%;
    height: 60%;
    width: 1px;
    background: rgba(255,255,255,0.15);
}

.stat-item h3 {
    font-size: clamp(38px, 4vw, 54px);
    font-weight: 800;
    color: var(--white);
    letter-spacing: -0.04em;
    line-height: 1;
    margin-bottom: 10px;
}

.stat-item p {
    font-size: 13px;
    color: rgba(255,255,255,0.55);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.07em;
}

/* ── GALLERY ── */
.gallery-section {
    background: var(--bg);
}

.gallery-header {
    text-align: center;
    margin-bottom: 48px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    grid-template-rows: 260px 260px;
    gap: 14px;
}

.gallery-item {
    overflow: hidden;
    border-radius: 14px;
    position: relative;
    background: var(--surface);
}

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

.showcase-grid > picture {
    display: block;
    width: 100%;
    min-width: 0;
}

.gallery-item > picture {
    display: block;
    width: 100%;
    height: 100%;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

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

/* ── PREÇOS ── */
.pricing-section {
    background: linear-gradient(180deg, #f8fafc 0%, #eef5ff 100%);
}

.pricing-header {
    text-align: center;
    margin-bottom: 44px;
}

.pricing-header .section-sub {
    margin: 0 auto;
    max-width: 720px;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}

.pricing-card {
    position: relative;
    background: #ffffff;
    border: 1px solid #dbeafe;
    border-radius: 18px;
    padding: 26px 22px;
    box-shadow: 0 14px 36px rgba(3, 105, 161, 0.08);
    display: flex;
    flex-direction: column;
    min-height: 100%;
}

.pricing-card--featured {
    border-color: #38bdf8;
    box-shadow: 0 18px 44px rgba(2, 132, 199, 0.18);
    transform: translateY(-6px);
}

.pricing-badge {
    position: absolute;
    top: -12px;
    left: 20px;
    background: linear-gradient(135deg, #0284c7, #0369a1);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding: 6px 10px;
    border-radius: 999px;
}

.pricing-card h3 {
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--text-main);
}

.pricing-target {
    margin-top: 4px;
    margin-bottom: 14px;
    font-size: 13px;
    color: var(--text-muted);
}

.pricing-price {
    font-size: 36px;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--primary-dark);
    line-height: 1;
    margin-bottom: 20px;
}

.pricing-price span {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-left: 4px;
}

.pricing-features {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 24px;
}

.pricing-features li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 14px;
    color: var(--text-secondary);
}

.pricing-features i {
    color: #0ea5e9;
    font-size: 14px;
    margin-top: 3px;
    flex-shrink: 0;
}

.btn-pricing {
    margin-top: auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 12px 16px;
    border-radius: 12px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 700;
    color: #ffffff;
    background: linear-gradient(135deg, #0369a1, #0284c7);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-pricing:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 26px rgba(2, 132, 199, 0.28);
}

/* ── TESTIMONIALS ── */
.testimonials-section {
    background: var(--text-main);
}

.testimonials-section .section-tag {
    color: var(--primary-light);
}

.testimonials-section .section-title {
    color: var(--white);
}

.testimonials-header {
    text-align: center;
    margin-bottom: 56px;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.testimonial-card {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 16px;
    padding: 28px;
    transition: border-color 0.3s, background 0.3s;
}

.testimonial-card:hover {
    background: rgba(255,255,255,0.08);
    border-color: rgba(56,189,248,0.25);
}

.testimonial-stars {
    display: flex;
    gap: 3px;
    margin-bottom: 16px;
}

.testimonial-stars i {
    color: #f59e0b;
    font-size: 13px;
}

.testimonial-text {
    font-size: 14px;
    color: rgba(255,255,255,0.6);
    line-height: 1.75;
    margin-bottom: 24px;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.testimonial-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
    color: white;
    flex-shrink: 0;
}

.testimonial-author-info strong {
    display: block;
    font-size: 14px;
    font-weight: 700;
    color: var(--white);
}

.testimonial-author-info span {
    font-size: 12px;
    color: rgba(255,255,255,0.35);
}

/* ── CARROSSEL DEPOIMENTOS ── */
.testimonials-carousel {
    overflow: hidden;
    width: 100%;
    position: relative;
}

.testimonials-carousel-track {
    display: flex;
    gap: 20px;
    animation: scroll-testimonials 30s linear infinite;
    width: max-content;
}

.testimonials-carousel-track .testimonial-card {
    min-width: 350px;
    max-width: 350px;
    flex-shrink: 0;
}

.testimonials-carousel:hover .testimonials-carousel-track {
    animation-play-state: paused;
}

@keyframes scroll-testimonials {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.testimonial-avatar img,
img.testimonial-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    flex-shrink: 0;
}

/* ── CTA FINAL ── */
.cta-section {
    background: var(--bg);
    padding: 100px 60px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-box {
    position: relative;
    z-index: 1;
    background: var(--primary-dark);
    border-radius: 24px;
    padding: 72px 48px;
    max-width: 720px;
    margin: 0 auto;
    overflow: hidden;
}

.cta-box::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255,255,255,0.05) 1px, transparent 1px);
    background-size: 24px 24px;
    pointer-events: none;
}

.cta-box::after {
    content: '';
    position: absolute;
    top: -80px;
    right: -80px;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(56,189,248,0.12) 0%, transparent 70%);
    pointer-events: none;
}

.cta-box h2 {
    position: relative;
    z-index: 1;
    font-size: clamp(28px, 3.5vw, 44px);
    font-weight: 800;
    color: white;
    letter-spacing: -0.03em;
    margin-bottom: 16px;
    line-height: 1.15;
}

.cta-box p {
    position: relative;
    z-index: 1;
    font-size: 16px;
    color: rgba(255,255,255,0.6);
    margin-bottom: 36px;
    line-height: 1.65;
}

.btn-cta-white {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 40px;
    background: white;
    color: var(--primary-dark);
    font-size: 15px;
    font-weight: 700;
    border-radius: 10px;
    text-decoration: none;
    transition: all 0.25s;
    letter-spacing: 0.01em;
}

.btn-cta-white:hover {
    background: var(--primary-subtle);
    transform: translateY(-2px);
    box-shadow: 0 12px 36px rgba(0,0,0,0.25);
}

/* ── FOOTER ── */
.footer {
    background: #060d17;
    padding: 64px 60px 32px;
}

.footer-inner {
    max-width: 1280px;
    margin: 0 auto;
}

.footer-top {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 48px;
    padding-bottom: 48px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.footer-brand .nav-logo {
    margin-bottom: 16px;
}

.footer-brand .nav-logo img {
    height: 30px;
    margin-bottom: 0;
    filter: brightness(0) invert(1);
    opacity: 0.7;
}

.footer-brand p {
    font-size: 13px;
    color: rgba(255,255,255,0.3);
    line-height: 1.7;
    max-width: 280px;
}

.footer-social {
    display: flex;
    gap: 12px;
    margin-top: 16px;
}

.footer-social a {
    color: rgba(255,255,255,0.4);
    transition: color 0.2s;
}

.footer-social a:hover {
    color: rgba(255,255,255,0.85);
}

.footer-col h4 {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(255,255,255,0.25);
    margin-bottom: 18px;
}

.footer-col a {
    display: block;
    font-size: 13px;
    color: rgba(255,255,255,0.45);
    text-decoration: none;
    margin-bottom: 10px;
    transition: color 0.2s;
}

.footer-col a:hover { color: rgba(255,255,255,0.85); }

.footer-bottom {
    padding-top: 28px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.footer-bottom p {
    font-size: 12px;
    color: rgba(255,255,255,0.2);
}

/* ── HERO LOGIN CARD ── */
.hero-login-card {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 72px; /* altura do nav */
    z-index: 10;
    pointer-events: none;
    opacity: 0;
    transform: translateX(120px);
}

.hero-login-card.active {
    pointer-events: all;
}

/* Card idêntico ao .login-card da página /login — escalonado para caber no hero */
.hero-login-inner {
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(25px) saturate(180%);
    -webkit-backdrop-filter: blur(25px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.65);
    border-radius: 20px;
    padding: 28px 34px 24px;
    width: 100%;
    max-width: 380px;
    box-shadow:
        0 4px 6px -1px rgba(0, 0, 0, 0.05),
        0 20px 25px -5px rgba(0, 0, 0, 0.05),
        inset 0 0 20px rgba(255, 255, 255, 0.3);
    position: relative;
}

/* Logo — idêntico ao .login-logo */
.hero-login-logo {
    text-align: center;
    margin-bottom: 18px;
}

.hero-login-logo img {
    max-width: 140px;
    height: auto;
    filter: drop-shadow(0 4px 10px rgba(0,0,0,0.05));
}

/* Label — idêntico ao .form-label */
.hero-login-field label {
    display: block;
    font-size: 12px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Input container — idêntico ao .input-container */
.hero-login-field {
    position: relative;
    margin-bottom: 16px;
}

.hero-login-input-wrap {
    position: relative;
}

.hero-login-input-wrap i.prefix {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #64748b;
    transition: color 0.3s;
    z-index: 1;
    pointer-events: none;
    font-size: 14px;
}

/* Input — idêntico ao .input-field */
.hero-login-input-wrap input {
    width: 100%;
    padding: 13px 16px 13px 44px;
    background: rgba(255, 255, 255, 0.4);
    border: 1.5px solid rgba(0, 0, 0, 0.05);
    border-radius: 12px;
    font-size: 14px;
    font-family: inherit;
    color: #0f172a;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    outline: none;
}

.hero-login-input-wrap input:focus {
    background: #fff;
    border-color: #0369a1;
    box-shadow: 0 10px 15px -3px rgba(3, 105, 161, 0.1);
    transform: scale(1.015);
}

.hero-login-input-wrap input:focus ~ i.prefix,
.hero-login-input-wrap:has(input:focus) i.prefix {
    color: #0369a1;
}

.hero-login-input-wrap input::placeholder { color: #9ca3af; }

/* Toggle password — idêntico ao .toggle-password */
.hero-login-eye {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #64748b;
    cursor: pointer;
    padding: 4px;
    transition: color 0.3s;
    font-size: 14px;
}

.hero-login-eye:hover { color: #0369a1; }

/* Forgot link — idêntico ao .forgot-link */
.hero-login-forgot {
    text-align: right;
    margin-top: -8px;
    margin-bottom: 18px;
}

.hero-login-forgot a {
    font-size: 12px;
    color: #0369a1;
    text-decoration: none;
    font-weight: 600;
    transition: 0.2s;
}

.hero-login-forgot a:hover {
    color: #0284c7;
    text-decoration: underline;
}

/* Submit — idêntico ao .btn-submit */
.hero-login-submit {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #0369a1 0%, #0284c7 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.4s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 10px 25px -5px rgba(3, 105, 161, 0.4);
    font-family: inherit;
}

.hero-login-submit::after {
    content: '';
    position: absolute;
    top: -50%; left: -50%;
    width: 200%; height: 200%;
    background: linear-gradient(to bottom right, rgba(255,255,255,0) 0%, rgba(255,255,255,0.2) 50%, rgba(255,255,255,0) 100%);
    transform: rotate(45deg);
    transition: all 0.6s;
}

.hero-login-submit:hover {
    transform: translateY(-2px) scale(1.01);
    box-shadow: 0 20px 30px -10px rgba(3, 105, 161, 0.5);
}

.hero-login-submit:hover::after { left: 120%; }

/* Botão voltar */
.hero-login-back {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 16px auto 0;
    background: none;
    border: none;
    font-size: 12px;
    color: #64748b;
    cursor: pointer;
    font-family: inherit;
    transition: color 0.2s;
    padding: 4px 8px;
}

.hero-login-back:hover { color: #0369a1; }

/* ── Animações de transição ── */

/* Saída do conteúdo hero para a esquerda */
@keyframes heroExitLeft {
    0%   { opacity: 1; transform: translateX(0); }
    100% { opacity: 0; transform: translateX(-120px); }
}

/* Entrada do login card da direita */
@keyframes loginCardEnter {
    0%   { opacity: 0;   transform: translateX(120px); }
    100% { opacity: 1;   transform: translateX(0); }
}

/* Saída do login card para a direita */
@keyframes loginCardExit {
    0%   { opacity: 1; transform: translateX(0); }
    100% { opacity: 0; transform: translateX(120px); }
}

/* Volta do conteúdo hero da esquerda */
@keyframes heroEnterLeft {
    0%   { opacity: 0; transform: translateX(-80px); }
    100% { opacity: 1; transform: translateX(0); }
}

/* Estado: hero saindo */
#heroContent.exiting,
#heroVisual.exiting {
    animation: heroExitLeft 0.45s cubic-bezier(0.4,0,1,1) forwards;
}

#heroVisual.exiting {
    animation-delay: 0.06s;
}

/* Estado: login card entrando */
#heroLoginCard.entering {
    animation: loginCardEnter 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.3s forwards;
}

/* Estado: login card saindo */
#heroLoginCard.closing {
    animation: loginCardExit 0.35s cubic-bezier(0.4,0,1,1) forwards;
}

/* Estado: hero voltando */
#heroContent.returning {
    animation: heroEnterLeft 0.5s cubic-bezier(0.22,1,0.36,1) 0.2s forwards;
    opacity: 0;
}

#heroVisual.returning {
    animation: heroEnterLeft 0.5s cubic-bezier(0.22,1,0.36,1) 0.35s forwards;
    opacity: 0;
}

/* ── MANUTENÇÃO CARD ── */
#heroManutencaoCard.entering {
    animation: loginCardEnter 0.55s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.25s forwards;
}

.hero-manutencao-inner {
    text-align: center;
    padding: 32px 28px;
    max-width: 420px;
    width: 100%;
}

.manutencao-card-body {
    margin: 16px 0;
}

.manutencao-card-title {
    font-size: 1.35rem;
    font-weight: 700;
    color: #0c4a6e;
    margin: 12px 0 8px;
}

.manutencao-card-desc {
    font-size: 0.92rem;
    color: #475569;
    line-height: 1.6;
    margin-bottom: 8px;
}

.manutencao-card-hint {
    font-size: 0.82rem;
    color: #94a3b8;
    margin-bottom: 16px;
}

.manutencao-card-actions {
    display: flex;
    flex-direction: column;
    gap: 6px;
    align-items: center;
}

.manutencao-btn-retry {
    width: 100%;
}

.manutencao-btn-sair {
    width: 100%;
    background: none;
    color: #64748b;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 10px 20px;
    font-size: 0.9rem;
    cursor: pointer;
    font-family: inherit;
}

.manutencao-btn-sair:hover {
    background: #f8fafc;
    color: #334155;
}

.manutencao-btn-reativar {
    width: 100%;
}

.manutencao-card-footer {
    font-size: 0.78rem;
    color: #94a3b8;
    margin-top: 16px;
}

.manutencao-icon-animated {
    margin: 8px auto;
}

.manutencao-icon-animated .gear-spin {
    font-size: 2.5rem;
    color: #0369a1;
    animation: gearSpin 3s linear infinite;
}

@keyframes gearSpin {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}

/* timer e code-input usados no modal de reativação */
.timer-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: #0369a1;
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 16px;
}

.code-input-container {
    margin-bottom: 16px;
}

.code-input {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 1.5rem;
    letter-spacing: 0.35em;
    text-align: center;
    font-family: inherit;
    outline: none;
    transition: border-color 0.2s;
}

.code-input:focus {
    border-color: #0369a1;
}

.btn-confirm-green {
    background: linear-gradient(135deg, #059669, #047857) !important;
}

/* ── ANIMAÇÕES GERAIS ── */

/* Hero image pulse de brilho */
.hero-img-main {
    animation: heroGlow 6s ease-in-out infinite;
}

@keyframes heroGlow {
    0%, 100% { box-shadow: 0 40px 80px rgba(0,0,0,0.35), 0 0 0 0 rgba(56,189,248,0); }
    50%       { box-shadow: 0 40px 80px rgba(0,0,0,0.35), 0 0 40px 8px rgba(56,189,248,0.08); }
}

/* Ponto piscante no eyebrow */
.hero-eyebrow span {
    animation: blinkDot 2s ease-in-out infinite;
}

@keyframes blinkDot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%       { opacity: 0.4; transform: scale(0.7); }
}

/* Scroll reveal — elementos entram de baixo */
.reveal {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity 0.65s cubic-bezier(0.22,1,0.36,1), transform 0.65s cubic-bezier(0.22,1,0.36,1);
}

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

.reveal-left {
    opacity: 0;
    transform: translateX(-40px);
    transition: opacity 0.7s cubic-bezier(0.22,1,0.36,1), transform 0.7s cubic-bezier(0.22,1,0.36,1);
}

.reveal-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.reveal-right {
    opacity: 0;
    transform: translateX(40px);
    transition: opacity 0.7s cubic-bezier(0.22,1,0.36,1), transform 0.7s cubic-bezier(0.22,1,0.36,1);
}

.reveal-right.visible {
    opacity: 1;
    transform: translateX(0);
}

/* Delay escalonado para grids */
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }
.reveal-delay-6 { transition-delay: 0.6s; }

/* Hero title animado */
.hero-content {
    opacity: 0;
    transform: translateY(24px);
    animation: heroEnter 0.9s cubic-bezier(0.22,1,0.36,1) 0.2s forwards;
}

.hero-visual {
    opacity: 0;
    transform: translateX(32px);
    animation: heroEnter 0.9s cubic-bezier(0.22,1,0.36,1) 0.45s forwards;
}

@keyframes heroEnter {
    to { opacity: 1; transform: translate(0); }
}

/* Stats counter pulse */
.stat-item h3 {
    display: inline-block;
}

.stat-item.counted h3 {
    animation: statPop 0.4s cubic-bezier(0.34,1.56,0.64,1);
}

@keyframes statPop {
    0%   { transform: scale(0.85); }
    100% { transform: scale(1); }
}

/* Feature cards — borda acende no hover com glow */
.feature-card:hover .feature-icon {
    background: var(--primary);
    color: white;
    transform: scale(1.1) rotate(-4deg);
    transition: all 0.3s cubic-bezier(0.34,1.56,0.64,1);
}

.feature-icon {
    transition: all 0.3s ease;
}

/* Gallery items escalam ao entrar */
.gallery-item {
    opacity: 0;
    transform: scale(0.96);
    transition: opacity 0.6s ease, transform 0.6s ease, box-shadow 0.3s;
}

.gallery-item.visible {
    opacity: 1;
    transform: scale(1);
}

/* Testimonial cards entram com stagger */
.testimonial-card {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.55s ease, transform 0.55s ease,
                border-color 0.3s, background 0.3s;
}

.testimonial-card.visible {
    opacity: 1;
    transform: translateY(0);
}

/* CTA box entrada */
.cta-box {
    opacity: 0;
    transform: translateY(40px) scale(0.98);
    transition: opacity 0.7s cubic-bezier(0.22,1,0.36,1), transform 0.7s cubic-bezier(0.22,1,0.36,1);
}

.cta-box.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* Linha decorativa animada na section-tag */
.section-tag {
    position: relative;
}

.section-tag::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-light);
    transition: width 0.5s ease 0.3s;
}

.reveal.visible .section-tag::after,
.features-header .section-tag::after,
.gallery-header .section-tag::after,
.testimonials-header .section-tag::after {
    width: 100%;
}

/* ── BARRA DE PROGRESSO DE SCROLL ── */
#scrollProgress {
    position: fixed;
    top: 72px; /* colado abaixo do nav */
    left: 0;
    height: 3px;
    width: 0%;
    background: linear-gradient(90deg, var(--primary-light), var(--primary));
    z-index: 99;
    transition: width 0.1s linear;
    box-shadow: 0 0 8px rgba(56,189,248,0.5);
}

/* ── BOTÃO VOLTAR AO TOPO ── */
#backToTop {
    position: fixed;
    bottom: 32px;
    right: 32px;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    box-shadow: 0 6px 20px rgba(3,105,161,0.35);
    opacity: 0;
    transform: translateY(16px) scale(0.85);
    transition: opacity 0.3s ease, transform 0.3s cubic-bezier(0.34,1.56,0.64,1), background 0.2s;
    z-index: 200;
    pointer-events: none;
}

#backToTop.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: all;
}

#backToTop:hover {
    background: var(--primary-dark);
    transform: translateY(-3px) scale(1.08);
    box-shadow: 0 10px 28px rgba(3,105,161,0.45);
}

/* ── TOASTS ── */
.home-toast {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    color: white;
    box-shadow: 0 8px 24px rgba(0,0,0,0.18);
    max-width: 380px;
    opacity: 0;
    transform: translateX(40px);
    transition: opacity 0.35s ease, transform 0.35s cubic-bezier(0.22,1,0.36,1);
}

.home-toast--visible {
    opacity: 1;
    transform: translateX(0);
}

.home-toast--error   { background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%); }
.home-toast--success { background: linear-gradient(135deg, #10b981 0%, #059669 100%); }

.home-toast i { font-size: 16px; flex-shrink: 0; }

/* ── HERO LOGIN CARD — versão e footer ── */
.hl-footer-text {
    text-align: center;
    margin-top: 20px;
    color: #64748b;
    font-size: 12px;
    line-height: 1.6;
}

.hl-version {
    text-align: center;
    margin-top: 8px;
    font-size: 11px;
    color: #94a3b8;
    font-weight: 500;
}

/* ── MODAL RECUPERAR SENHA ── */
.hl-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.4);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
    padding: 20px;
}

.hl-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.hl-modal-content {
    background: white;
    border-radius: 28px;
    width: 100%;
    max-width: 480px;
    box-shadow: 0 25px 50px -12px rgba(0,0,0,0.25);
    transform: translateY(30px);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    overflow: hidden;
}

.hl-modal-overlay.active .hl-modal-content {
    transform: translateY(0);
}

/* Reutiliza classes do login.css dentro do modal */
.hl-modal-content .modal-forgot-header {
    background: linear-gradient(135deg, #0369a1 0%, #0c4a6e 100%);
    padding: 28px 24px;
    text-align: center;
    color: white;
}

.hl-modal-content .modal-forgot-icon {
    width: 60px; height: 60px;
    background: rgba(255,255,255,0.2);
    border-radius: 16px;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 16px;
    font-size: 28px;
}

.hl-modal-content .modal-forgot-header h3 { margin: 0 0 8px; font-size: 22px; font-weight: 700; }
.hl-modal-content .modal-forgot-header p  { margin: 0; font-size: 14px; opacity: 0.9; }

.hl-modal-content .forgot-form { padding: 24px; }

.hl-modal-content .form-label {
    display: block;
    font-size: 12px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.hl-input-container {
    position: relative;
    margin-bottom: 16px;
}

.hl-input-container .prefix {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #64748b;
    z-index: 1;
    pointer-events: none;
    font-size: 14px;
}

.hl-input-field {
    width: 100%;
    padding: 13px 16px 13px 44px;
    background: rgba(255,255,255,0.4);
    border: 1.5px solid rgba(0,0,0,0.08);
    border-radius: 12px;
    font-size: 14px;
    font-family: inherit;
    color: #0f172a;
    transition: all 0.3s;
    outline: none;
}

.hl-input-field:focus {
    background: #fff;
    border-color: #0369a1;
    box-shadow: 0 10px 15px -3px rgba(3,105,161,0.1);
}

.hl-modal-content .info-box {
    background: #f0f9ff; border: 1px solid #bae6fd;
    border-radius: 12px; padding: 16px; margin-bottom: 16px;
}

.hl-modal-content .info-box-header {
    display: flex; align-items: center; gap: 8px;
    font-size: 14px; font-weight: 600; color: #0369a1; margin-bottom: 12px;
}

.hl-modal-content .info-steps { margin: 0; padding: 0; list-style: none; }

.hl-modal-content .info-steps li {
    display: flex; align-items: flex-start; gap: 12px;
    margin-bottom: 10px; font-size: 13px; color: #475569; line-height: 1.4;
}

.hl-modal-content .info-steps li:last-child { margin-bottom: 0; }

.hl-modal-content .info-steps li i {
    width: 24px; height: 24px; background: #0ea5e9; color: white;
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    font-size: 10px; flex-shrink: 0; margin-top: 2px;
}

.hl-modal-content .info-steps li strong { color: #0369a1; }

.hl-modal-content .warning-box {
    display: flex; align-items: center; gap: 10px;
    background: #fef3c7; border: 1px solid #fcd34d;
    border-radius: 10px; padding: 12px 16px;
    margin-bottom: 20px; font-size: 13px; color: #92400e;
}

.hl-modal-content .warning-box i { color: #f59e0b; font-size: 16px; }
.hl-modal-content .warning-box strong { color: #b45309; }

.hl-modal-content .modal-forgot-actions {
    display: grid; grid-template-columns: 1fr 1fr; gap: 12px;
}

.hl-modal-content .btn-modal-cancel {
    display: flex; align-items: center; justify-content: center; gap: 8px;
    padding: 14px 20px; border-radius: 12px;
    border: 1.5px solid #e2e8f0; background: white;
    color: #6b7280; font-size: 14px; font-weight: 600;
    cursor: pointer; transition: all 0.3s ease; font-family: inherit;
}

.hl-modal-content .btn-modal-cancel:hover { background: #f3f4f6; border-color: #d1d5db; }

.hl-btn-submit {
    display: flex; align-items: center; justify-content: center; gap: 8px;
    padding: 14px 20px;
    background: linear-gradient(135deg, #0369a1 0%, #0284c7 100%);
    color: white; border: none; border-radius: 12px;
    font-size: 14px; font-weight: 700; cursor: pointer;
    transition: all 0.3s; font-family: inherit;
    box-shadow: 0 6px 20px rgba(3,105,161,0.3);
}

.hl-btn-submit:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(3,105,161,0.4);
}

.hl-btn-submit:disabled { opacity: 0.7; cursor: not-allowed; }

.hl-modal-content .forgot-success-state {
    padding: 40px 24px; text-align: center;
}

.hl-modal-content .success-icon {
    width: 80px; height: 80px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    margin: 0 auto 20px; font-size: 40px; color: white;
}

.hl-modal-content .forgot-success-state h4 { margin: 0 0 8px; font-size: 20px; font-weight: 700; color: #0f172a; }
.hl-modal-content .forgot-success-state p  { margin: 0 0 8px; font-size: 14px; color: #64748b; }

.hl-modal-content .success-email {
    display: inline-block; background: #f3f4f6;
    padding: 8px 16px; border-radius: 8px;
    font-size: 14px; font-weight: 600; color: #374151; margin-bottom: 24px !important;
}

/* ── MODAL ORÇAMENTO RESPONSIVO ── */
#orcamentoModal .hl-modal-content {
    max-width: min(560px, 100%);
    max-height: min(92dvh, 760px);
    display: flex;
    flex-direction: column;
}

#orcamentoModal .forgot-form {
    overflow-y: auto;
    scrollbar-width: thin;
}

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
    .nav { padding: 0 32px; }
    section { padding: 72px 32px; }
    .hero { padding: 110px 32px 72px; gap: 40px; }
    .features-grid { grid-template-columns: repeat(2, 1fr); }
    .testimonials-grid { grid-template-columns: repeat(2, 1fr); }
    .footer { padding: 48px 32px 24px; }
    .footer-top { grid-template-columns: 1fr 1fr; gap: 32px; }
    .stats-section { padding: 64px 32px; }
    .cta-section { padding: 72px 32px; }

    .app-showcase-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .app-personas {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .app-store-links {
        margin-top: 18px;
    }

    .app-phones {
        min-height: 480px;
        max-width: 520px;
        margin: 0 auto;
    }

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

    .pricing-card--featured {
        transform: translateY(0);
    }

    #orcamentoModal {
        padding: 16px;
    }

    #orcamentoModal .hl-modal-content {
        max-height: 90dvh;
    }
}

@media (max-width: 768px) {
    .nav-links { display: none; }
    .nav { padding: 0 24px; }

    .hero {
        grid-template-columns: 1fr;
        padding: 96px 24px 56px;
        text-align: center;
    }
    .hero-desc { max-width: 100%; }
    .hero-actions { justify-content: center; }
    .hero-trust { justify-content: center; }
    .hero-visual { display: none; }
    .hero-scroll-hint { display: none; }

    section { padding: 56px 24px; }

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

    .showcase-grid,
    .showcase-grid.reverse {
        grid-template-columns: 1fr;
        direction: ltr;
        gap: 32px;
    }

    .stats-inner { grid-template-columns: repeat(2, 1fr); gap: 32px; }
    .stat-item + .stat-item::before { display: none; }

    .gallery-grid {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto;
    }
    .gallery-item.tall { grid-row: span 1; }
    .gallery-grid .gallery-item { height: 180px; }

    .testimonials-grid { grid-template-columns: 1fr; }
    .testimonials-carousel-track .testimonial-card { min-width: 280px; max-width: 280px; }

    .footer-top { grid-template-columns: 1fr; }
    .footer { padding: 40px 24px 24px; }
    .footer-bottom { flex-direction: column; text-align: center; }

    .cta-section { padding: 48px 24px; }
    .cta-box { padding: 48px 24px; }
    .stats-section { padding: 48px 24px; }

    .app-showcase-head {
        text-align: left;
        margin-bottom: 30px;
    }

    .app-showcase-head .section-sub {
        margin: 0;
    }

    .app-personas {
        grid-template-columns: 1fr;
    }

    .app-store-links {
        gap: 8px;
    }

    .app-store-badges {
        width: 100%;
    }

    .app-store-badge {
        width: 100%;
    }

    .app-phones {
        min-height: 430px;
    }

    .phone-mock {
        width: min(200px, 60vw);
    }

    .phone-mock--back {
        left: 0;
        top: 6px;
    }

    .phone-mock--front {
        top: 20px;
    }

    .phone-mock--side {
        right: 0;
        bottom: 0;
    }

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

    .pricing-header {
        text-align: left;
    }

    .pricing-header .section-sub {
        margin: 0;
    }

    #orcamentoModal {
        align-items: flex-end;
        padding: 10px;
    }

    #orcamentoModal .hl-modal-content {
        max-width: 100%;
        border-radius: 20px;
        max-height: 92dvh;
    }

    #orcamentoModal .modal-forgot-header {
        padding: 20px 16px;
    }

    #orcamentoModal .forgot-form {
        padding: 16px;
    }

    #orcamentoModal .modal-forgot-actions {
        grid-template-columns: 1fr;
    }
}
