/* Landings de segmento — camada institucional sobre landing.css */

body.inst-segment {
    --seg-accent: var(--inst-accent);
    --seg-accent-dim: var(--inst-accent-dim);
    --seg-accent-deep: var(--inst-accent-deep);
    --seg-grad: linear-gradient(135deg, var(--inst-accent) 0%, var(--inst-accent-deep) 100%);

    /* Remapear tokens do landing.css para paleta institucional */
    --black: var(--inst-bg);
    --dark: var(--inst-bg);
    --dark-2: var(--inst-bg-muted);
    --dark-3: var(--inst-bg-elevated);
    --dark-4: #0a1020;
    --dark-5: #111827;
    --white: var(--inst-ink);
    --gray-1: #d1d9e6;
    --gray-2: var(--inst-ink-soft);
    --gray-3: var(--inst-ink-muted);
    --border: var(--inst-line);
    --border-light: var(--inst-line-strong);
    --cyan: var(--seg-accent);
    --cyan-dim: var(--seg-accent-dim);
    --cyan-border: rgba(0, 212, 255, 0.28);
    --cyan-glow: var(--seg-accent-dim);
    --green: #10b981;
    --purple: #8b5cf6;
    --font: var(--inst-sans);

    padding-top: 72px;
    background: var(--inst-bg) !important;
    color: var(--inst-ink) !important;
    font-family: var(--inst-sans) !important;
}

body.inst-segment.ecom-theme {
    --seg-accent: #f59e0b;
    --seg-accent-deep: #d97706;
    --seg-accent-dim: rgba(245, 158, 11, 0.14);
    --seg-grad: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    --cyan: #f59e0b;
    --cyan-dim: rgba(245, 158, 11, 0.12);
    --cyan-border: rgba(245, 158, 11, 0.28);
}

body.inst-segment.imob-theme {
    --seg-accent: #10b981;
    --seg-accent-deep: #059669;
    --seg-accent-dim: rgba(16, 185, 129, 0.14);
    --seg-grad: linear-gradient(135deg, #10b981 0%, #059669 100%);
    --cyan: #10b981;
    --cyan-dim: rgba(16, 185, 129, 0.12);
    --cyan-border: rgba(16, 185, 129, 0.28);
}

body.inst-segment.web-theme {
    --seg-accent: #00d4ff;
    --seg-accent-deep: #0082ff;
    --seg-accent-dim: rgba(0, 212, 255, 0.14);
    --seg-grad: linear-gradient(135deg, #00d4ff 0%, #0082ff 100%);
}

/* Ocultar chrome legado */
body.inst-segment .scroll-progress,
body.inst-segment .announcement-bar,
body.inst-segment .inst-top-strip,
body.inst-segment .custom-cursor-dot,
body.inst-segment .custom-cursor-follower,
body.inst-segment .cursor-glow,
body.inst-segment .navbar,
body.inst-segment .mobile-overlay,
body.inst-segment .main-footer,
body.inst-segment .footer,
body.inst-segment .blob { display: none !important; }

/* GSAP removido — hero não pode ficar invisível (landing.css define opacity:0) */
body.inst-segment #heroBadge,
body.inst-segment #heroH1,
body.inst-segment #heroSub,
body.inst-segment #heroCtas,
body.inst-segment #heroTrust,
body.inst-segment #heroMockup,
body.inst-segment #hero3d,
body.inst-segment .float-card {
    opacity: 1 !important;
    transform: none !important;
}

/* Cursor padrão (adapta-elegance esconde cursor sem os elementos custom) */
@media (pointer: fine) {
    body.inst-segment,
    body.inst-segment a,
    body.inst-segment button,
    body.inst-segment .btn,
    body.inst-segment .btn-hero-primary,
    body.inst-segment .btn-hero-ghost,
    body.inst-segment .mq-item,
    body.inst-segment .feat-card,
    body.inst-segment .price-card,
    body.inst-segment .inst-btn,
    body.inst-segment label.lp-lead-consent {
        cursor: pointer !important;
    }

    body.inst-segment input[type="text"],
    body.inst-segment input[type="email"],
    body.inst-segment input[type="tel"],
    body.inst-segment input[type="search"],
    body.inst-segment textarea,
    body.inst-segment .form-input {
        cursor: text !important;
    }

    body.inst-segment select {
        cursor: pointer !important;
    }
}

/* —— Nav segmento —— */
.inst-seg-badge {
    font-family: var(--inst-mono);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 5px 10px;
    margin-left: 4px;
    border-radius: 4px;
    border: 1px solid var(--seg-accent-dim);
    color: var(--seg-accent);
    background: var(--seg-accent-dim);
}

.inst-nav-segment .inst-btn-primary {
    background: var(--seg-grad);
    color: #041018;
    box-shadow: 0 0 24px var(--seg-accent-dim);
}

.inst-nav-ecom .inst-nav-links a:hover { color: #fbbf24; }
.inst-nav-imob .inst-nav-links a:hover { color: #6ee7b7; }

/* —— Hero (layout via segment-landing.css) —— */
body.inst-segment.ecom-theme .hero,
body.inst-segment.imob-theme .hero {
    padding: 108px 24px 64px !important;
    min-height: auto !important;
    display: block !important;
    background:
        radial-gradient(ellipse 70% 55% at 85% 0%, var(--seg-accent-dim), transparent 55%),
        var(--inst-bg) !important;
}

body.inst-segment.ecom-theme .hero-content,
body.inst-segment.imob-theme .hero-content {
    display: grid !important;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr) !important;
    gap: 48px !important;
    align-items: center !important;
    max-width: var(--inst-max) !important;
    width: min(100% - 48px, var(--inst-max)) !important;
    margin-inline: auto !important;
    padding: 0 !important;
    text-align: left !important;
    flex-direction: unset !important;
}

body.inst-segment .hero-copy {
    width: 100%;
    min-width: 0;
}

body.inst-segment .hero-side-stack {
    width: 100%;
    min-width: 0;
}

body.inst-segment .hero-bg .blob { display: none !important; }

body.inst-segment .hero-h1,
body.inst-segment .hero h1 {
    font-family: var(--inst-display) !important;
    font-weight: 600 !important;
    letter-spacing: -0.04em !important;
    color: var(--inst-ink) !important;
}

body.inst-segment .hero-sub,
body.inst-segment .hero-copy .hero-sub {
    color: var(--inst-ink-soft) !important;
}

body.inst-segment .hero-badge {
    font-family: var(--inst-mono);
    border-radius: 4px !important;
    color: var(--seg-accent) !important;
    background: var(--seg-accent-dim) !important;
    border-color: var(--seg-accent-dim) !important;
}

body.inst-segment .badge-live {
    background: var(--seg-accent) !important;
    box-shadow: 0 0 8px var(--seg-accent);
}

body.inst-segment .btn-hero-primary {
    font-family: var(--inst-display) !important;
    background: var(--seg-grad) !important;
    color: #041018 !important;
    border: none !important;
    border-radius: var(--inst-r) !important;
    box-shadow: 0 0 24px var(--seg-accent-dim);
}

body.inst-segment .btn-hero-primary:hover {
    filter: brightness(1.06);
    transform: translateY(-2px);
}

body.inst-segment .btn-hero-ghost {
    font-family: var(--inst-display) !important;
    border-radius: var(--inst-r) !important;
    color: var(--inst-ink-soft) !important;
    border-color: var(--inst-line-strong) !important;
    background: transparent !important;
}

body.inst-segment .btn-hero-ghost:hover {
    border-color: var(--seg-accent) !important;
    color: var(--inst-ink) !important;
    background: var(--seg-accent-dim) !important;
}

body.inst-segment .hero-proof-card {
    background: var(--inst-bg-card) !important;
    border-color: var(--inst-line) !important;
    border-radius: var(--inst-r) !important;
}

body.inst-segment .hero-proof-value {
    font-family: var(--inst-display);
    color: var(--seg-accent) !important;
}

body.inst-segment .hero-proof-label {
    font-family: var(--inst-mono);
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--inst-ink-muted);
}

body.inst-segment .hero-panel {
    border-radius: 10px !important;
    border-color: var(--inst-line-strong) !important;
    background: var(--inst-bg-card) !important;
    box-shadow: 0 24px 56px rgba(0, 0, 0, 0.45);
    transform: none !important;
}

body.inst-segment .browser-bar {
    background: rgba(0, 0, 0, 0.4) !important;
    border-bottom-color: var(--inst-line) !important;
}

body.inst-segment .browser-dots span:nth-child(1) { background: #ff5f57; }
body.inst-segment .browser-dots span:nth-child(2) { background: #ffbd2e; }
body.inst-segment .browser-dots span:nth-child(3) { background: #28c840; }

body.inst-segment .browser-url {
    font-family: var(--inst-mono);
    font-size: 11px;
    color: var(--inst-ink-muted) !important;
    background: rgba(0, 0, 0, 0.35) !important;
}

body.inst-segment .hero-3d-detail { display: none !important; }

/* Marquee */
body.inst-segment .marquee-wrap {
    background: var(--inst-bg-muted) !important;
    border-color: var(--inst-line) !important;
}

body.inst-segment .mq-item {
    font-family: var(--inst-mono);
    font-size: 12px;
    background: var(--inst-bg-card) !important;
    border-color: var(--inst-line) !important;
    color: var(--inst-ink-muted) !important;
}

body.inst-segment .mq-item:hover {
    color: var(--inst-ink) !important;
    border-color: var(--inst-line-strong) !important;
}

body.inst-segment .mq-item i { color: var(--seg-accent) !important; }

body.inst-segment .section-divider { display: none; }

/* Seções */
body.inst-segment .section {
    background: var(--inst-bg);
}

body.inst-segment .section:nth-of-type(even):not(.testimonial-section) {
    background: var(--inst-bg-muted);
}

body.inst-segment .sec-tag {
    font-family: var(--inst-mono) !important;
    letter-spacing: 0.12em !important;
    border-radius: 4px !important;
    color: var(--seg-accent) !important;
    background: var(--seg-accent-dim) !important;
    border-color: var(--seg-accent-dim) !important;
}

body.inst-segment .sec-title {
    font-family: var(--inst-display) !important;
    font-weight: 600 !important;
    letter-spacing: -0.03em !important;
    color: var(--inst-ink) !important;
}

body.inst-segment .sec-sub {
    color: var(--inst-ink-soft) !important;
}

/* Features */
body.inst-segment .features-grid {
    border-color: var(--inst-line) !important;
    background: var(--inst-line) !important;
    border-radius: 10px !important;
    overflow: hidden;
}

body.inst-segment .feat-card {
    background: var(--inst-bg-card) !important;
    padding: 32px 28px !important;
}

body.inst-segment .feat-card:hover {
    background: var(--inst-bg-elevated) !important;
}

body.inst-segment .feat-card h3 {
    font-family: var(--inst-display);
    font-weight: 600;
    color: var(--inst-ink);
}

body.inst-segment .feat-card p {
    color: var(--inst-ink-soft);
}

body.inst-segment .feat-icon-wrap {
    width: 48px;
    height: 48px;
    border-radius: var(--inst-r) !important;
    background: var(--seg-accent-dim) !important;
    border-color: var(--seg-accent-dim) !important;
}

body.inst-segment .feat-icon-wrap i {
    color: var(--seg-accent) !important;
}

body.inst-segment .feat-arrow {
    color: var(--seg-accent);
    opacity: 0.5;
}

/* Depoimentos (adapta-elegance) */
body.inst-segment .testimonial-section {
    background: var(--inst-bg-deep) !important;
}

body.inst-segment .testimonial-card {
    background: var(--inst-bg-card) !important;
    border-color: var(--inst-line) !important;
    border-radius: 10px !important;
}

body.inst-segment .testimonial-card.featured {
    border-color: rgba(255, 255, 255, 0.14) !important;
    box-shadow: 0 0 32px var(--seg-accent-dim);
}

body.inst-segment .testimonial-quote {
    color: var(--inst-ink-soft) !important;
}

body.inst-segment .testimonial-info strong {
    color: var(--inst-ink) !important;
}

body.inst-segment .testimonial-info span {
    color: var(--inst-ink-muted) !important;
}

body.inst-segment .testimonial-stars {
    color: var(--seg-accent);
}

/* Pricing */
body.inst-segment .pricing-section {
    background: var(--inst-bg) !important;
}

body.inst-segment .price-card {
    background: var(--inst-bg-card) !important;
    border-color: var(--inst-line) !important;
    border-radius: 10px !important;
}

body.inst-segment .price-card.pro {
    border: 1px solid var(--seg-accent) !important;
    box-shadow: 0 0 36px var(--seg-accent-dim);
}

body.inst-segment .price-card.pro::before,
body.inst-segment .price-card.pro::after {
    display: none !important;
}

body.inst-segment .pro-badge-top {
    font-family: var(--inst-mono) !important;
    background: var(--seg-grad) !important;
    color: #041018 !important;
    letter-spacing: 0.08em !important;
}

body.inst-segment .pc-name {
    font-family: var(--inst-mono);
    color: var(--inst-ink-muted) !important;
}

body.inst-segment .pc-amount strong {
    font-family: var(--inst-display);
    color: var(--inst-ink) !important;
}

body.inst-segment .pc-tagline,
body.inst-segment .pc-list li {
    color: var(--inst-ink-soft) !important;
}

body.inst-segment .pc-list i {
    color: var(--seg-accent) !important;
}

body.inst-segment .pc-top,
body.inst-segment .pc-price-wrap {
    border-color: var(--inst-line) !important;
}

/* CTA final */
body.inst-segment .cta-glow-bg {
    background: var(--inst-bg-muted) !important;
    border-top: 1px solid var(--inst-line);
}

body.inst-segment .trust-counter-strip {
    color: var(--inst-ink-muted);
}

body.inst-segment .trust-counter-strip strong {
    color: var(--inst-ink);
}

/* Formulário */
body.inst-segment .lp-lead-section {
    display: block !important;
    background: var(--inst-bg-deep) !important;
    border-top: 1px solid var(--inst-line);
    padding: 88px 24px !important;
}

body.inst-segment .lp-lead-section::before,
body.inst-segment .lp-lead-section::after {
    display: none !important;
}

body.inst-segment .lp-lead-shell {
    background: var(--inst-bg-card) !important;
    border: 1px solid var(--inst-line-strong) !important;
    border-radius: 10px !important;
    box-shadow: none !important;
}

body.inst-segment .lp-lead-heading .sec-title {
    text-align: left;
}

body.inst-segment .lp-lead-field label {
    font-family: var(--inst-mono);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--inst-ink-muted);
}

body.inst-segment .lp-lead-field input,
body.inst-segment .lp-lead-field textarea {
    background: rgba(4, 8, 18, 0.65) !important;
    border: 1px solid var(--inst-line-strong) !important;
    color: var(--inst-ink) !important;
    border-radius: var(--inst-r) !important;
}

body.inst-segment .lp-lead-field input:focus,
body.inst-segment .lp-lead-field textarea:focus {
    border-color: var(--seg-accent) !important;
    box-shadow: 0 0 0 3px var(--seg-accent-dim);
}

body.inst-segment .lp-lead-consent {
    color: var(--inst-ink-muted);
}

body.inst-segment .lp-lead-flash.ok {
    color: #6ee7b7;
    background: rgba(16, 185, 129, 0.12);
    border: 1px solid rgba(16, 185, 129, 0.25);
    padding: 10px 14px;
    border-radius: var(--inst-r);
}

body.inst-segment .lp-lead-flash.err {
    color: #fca5a5;
    background: rgba(239, 68, 68, 0.12);
    border: 1px solid rgba(239, 68, 68, 0.25);
    padding: 10px 14px;
    border-radius: var(--inst-r);
}

body.inst-segment .lp-lead-flash.warn {
    color: #fcd34d;
    background: rgba(245, 158, 11, 0.12);
    border: 1px solid rgba(245, 158, 11, 0.25);
    padding: 10px 14px;
    border-radius: var(--inst-r);
}

/* Stats (se existir) */
body.inst-segment .stats-section {
    background: var(--inst-bg-muted) !important;
    border-color: var(--inst-line) !important;
}

body.inst-segment .stats-grid {
    border-color: var(--inst-line) !important;
    background: var(--inst-bg-card) !important;
    border-radius: 10px !important;
}

body.inst-segment .stat-box {
    border-color: var(--inst-line) !important;
}

body.inst-segment .stat-num {
    font-family: var(--inst-display);
    color: var(--seg-accent) !important;
}

body.inst-segment .stat-lbl {
    color: var(--inst-ink) !important;
}

body.inst-segment .stat-sub {
    color: var(--inst-ink-muted) !important;
}

/* ================================================================
   Desenvolvimento Web
   ================================================================ */
body.inst-segment.desenvolvimento-web-page {
    --font-display: var(--inst-display);
    --font-body: var(--inst-sans);
    --black: var(--inst-bg);
    --dark: var(--inst-bg);
    --dark-2: var(--inst-bg-muted);
    --white: var(--inst-ink);
    --gray-2: var(--inst-ink-soft);
    --gray-3: var(--inst-ink-muted);
    --border: var(--inst-line);
    --border-light: var(--inst-line-strong);
    --cyan: #00d4ff;
    --grad-primary: var(--seg-grad);
    padding-top: 72px;
}

body.inst-segment.desenvolvimento-web-page .hero {
    padding-top: 108px !important;
    min-height: auto !important;
    background:
        radial-gradient(ellipse 60% 45% at 75% 0%, var(--seg-accent-dim), transparent 50%),
        var(--inst-bg) !important;
}

body.inst-segment .hero__copy h1,
body.inst-segment .section__head h2,
body.inst-segment .section h2,
body.inst-segment .about__text h2 {
    font-family: var(--inst-display) !important;
    font-weight: 600 !important;
    letter-spacing: -0.03em !important;
    color: var(--inst-ink) !important;
}

body.inst-segment .hero__copy p,
body.inst-segment .section__head p,
body.inst-segment p {
    color: var(--inst-ink-soft);
}

body.inst-segment .badge {
    font-family: var(--inst-mono);
    border-radius: 4px !important;
    color: var(--inst-accent) !important;
    background: var(--inst-accent-dim) !important;
    border: 1px solid var(--inst-accent-dim) !important;
}

body.inst-segment .btn {
    font-family: var(--inst-display);
    border-radius: var(--inst-r);
    font-weight: 600;
}

body.inst-segment .btn--primary {
    background: var(--seg-grad) !important;
    color: #041018 !important;
    border: none !important;
}

body.inst-segment .btn--ghost {
    background: transparent !important;
    border: 1px solid var(--inst-line-strong) !important;
    color: var(--inst-ink-soft) !important;
}

body.inst-segment .btn--ghost:hover {
    border-color: var(--inst-accent) !important;
    color: var(--inst-ink) !important;
}

body.inst-segment .grad-text,
body.inst-segment .text-gradient-accent {
    background: var(--seg-grad) !important;
    -webkit-background-clip: text !important;
    background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
}

body.inst-segment .featured-wrapper {
    background: var(--inst-bg-card) !important;
    border-color: var(--inst-line) !important;
    border-radius: 10px !important;
}

body.inst-segment .featured-metrics li strong {
    font-family: var(--inst-display);
    color: var(--inst-accent) !important;
}

body.inst-segment .featured-metrics li span {
    font-family: var(--inst-mono);
    font-size: 10px;
    text-transform: uppercase;
    color: var(--inst-ink-muted);
}

body.inst-segment .bento-card {
    background: var(--inst-bg-card) !important;
    border-color: var(--inst-line) !important;
    border-radius: 10px !important;
}

body.inst-segment .bento-card .icon {
    background: var(--inst-accent-dim) !important;
    color: var(--inst-accent) !important;
    border-radius: var(--inst-r) !important;
}

body.inst-segment .bento-card:hover .icon {
    background: var(--inst-accent) !important;
    color: #041018 !important;
}

body.inst-segment .bento-card h3 {
    font-family: var(--inst-display);
    font-weight: 600;
    color: var(--inst-ink);
}

body.inst-segment .portfolio-item {
    border-color: var(--inst-line) !important;
    border-radius: 10px !important;
    background: var(--inst-bg-elevated) !important;
}

body.inst-segment .portfolio-overlay h3 {
    font-family: var(--inst-display);
    color: #fff;
}

body.inst-segment .about__counters .counter .val {
    font-family: var(--inst-display);
}

body.inst-segment .pricing-card {
    background: var(--inst-bg-card) !important;
    border-color: var(--inst-line) !important;
    border-radius: 10px !important;
}

body.inst-segment .pricing-card.featured::before,
body.inst-segment .pricing-card.featured::after {
    display: none !important;
}

body.inst-segment .pricing-card.featured {
    border: 1px solid var(--inst-accent) !important;
    box-shadow: 0 0 32px var(--inst-accent-dim);
}

body.inst-segment .pricing-badge {
    font-family: var(--inst-mono);
    background: var(--seg-grad) !important;
    color: #041018 !important;
}

body.inst-segment .pricing-header h3,
body.inst-segment .pricing-main .amount {
    color: var(--inst-ink) !important;
}

body.inst-segment .pricing-features li {
    color: var(--inst-ink-soft) !important;
}

body.inst-segment .pricing-features li i {
    color: var(--inst-accent) !important;
}

body.inst-segment .pricing-setup {
    background: rgba(0, 0, 0, 0.25) !important;
    border: 1px solid var(--inst-line);
}

body.inst-segment .pricing-setup .value {
    color: var(--inst-accent) !important;
}

body.inst-segment .contact-wrapper,
body.inst-segment .form-card {
    background: var(--inst-bg-card) !important;
    border: 1px solid var(--inst-line-strong) !important;
    border-radius: 10px !important;
}

body.inst-segment .form-field span {
    font-family: var(--inst-mono);
    font-size: 11px;
    text-transform: uppercase;
    color: var(--inst-ink-muted);
}

body.inst-segment .form-input,
body.inst-segment .form-field select.form-input {
    background: rgba(4, 8, 18, 0.65) !important;
    border: 1px solid var(--inst-line-strong) !important;
    color: var(--inst-ink) !important;
    border-radius: var(--inst-r) !important;
}

body.inst-segment .form-input:focus {
    border-color: var(--inst-accent) !important;
    outline: none;
    box-shadow: 0 0 0 3px var(--inst-accent-dim);
}

body.inst-segment .inst-hero-tech--compact {
    min-height: 320px;
    border: 1px solid var(--inst-line);
    border-radius: 10px;
    background: var(--inst-bg-card);
}

body.inst-segment .inst-hero-tech-logo {
    display: block;
    width: min(160px, 55%);
    margin: 28px auto 12px;
}

body.inst-segment .hero__bullets {
    list-style: none;
}

body.inst-segment .hero__bullets li {
    color: var(--inst-ink-soft);
}

body.inst-segment .hero__bullets i {
    color: var(--inst-accent);
}

body.inst-segment .whats-float {
    background: #25d366 !important;
    z-index: 900;
}

body.inst-segment .to-top {
    background: var(--inst-bg-card);
    border: 1px solid var(--inst-line-strong);
    color: var(--inst-ink);
    z-index: 900;
}

body.inst-segment .section.alt {
    background: var(--inst-bg-muted) !important;
}

/* Animações legado — visíveis sem depender de GSAP */
body.inst-segment .gs-up,
body.inst-segment [data-reveal] {
    opacity: 1 !important;
    transform: none !important;
}

@media (max-width: 1024px) {
    body.inst-segment.ecom-theme .hero-content,
    body.inst-segment.imob-theme .hero-content {
        grid-template-columns: 1fr !important;
        text-align: center !important;
    }

    body.inst-segment .hero-copy {
        text-align: center !important;
    }

    body.inst-segment .hero-ctas {
        justify-content: center !important;
    }

    body.inst-segment .hero-proof-row {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    body.inst-segment.ecom-theme .hero,
    body.inst-segment.imob-theme .hero,
    body.inst-segment.desenvolvimento-web-page .hero {
        padding-top: 96px !important;
    }
}
