/* Painel 9 — Site institucional */
:root {
    --p9-primary: #00d4ff;
    --p9-primary-dark: #00a8cc;
    --p9-accent: #7c3aed;
    --p9-bg: #060a12;
    --p9-bg-elevated: #0d1117;
    --p9-surface: rgba(255, 255, 255, 0.04);
    --p9-border: rgba(255, 255, 255, 0.1);
    --p9-text: #e8eef7;
    --p9-muted: #94a3b8;
    --p9-gradient: linear-gradient(135deg, #00d4ff 0%, #7c3aed 55%, #00a8cc 100%);
    --p9-font-title: 'Orbitron', system-ui, sans-serif;
    --p9-font-body: 'Inter', system-ui, sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: var(--p9-font-body);
    background: var(--p9-bg);
    color: var(--p9-text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

.p9-title-font,
.p9-section-title,
.p9-hero-title {
    font-family: var(--p9-font-title);
    letter-spacing: 0.02em;
}

.skip-link {
    position: absolute;
    left: -9999px;
    z-index: 9999;
    padding: 0.5rem 1rem;
    background: var(--p9-primary);
    color: #001018;
}

.skip-link:focus {
    left: 1rem;
    top: 1rem;
}

/* Header */
.p9-header {
    position: sticky;
    top: 0;
    z-index: 1030;
    background: rgba(6, 10, 18, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--p9-border);
    transition: box-shadow 0.3s ease;
}

.p9-header.is-scrolled {
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.p9-nav {
    padding: 0.75rem 0;
}

.p9-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: var(--p9-text);
}

.p9-logo-mark {
    display: grid;
    place-items: center;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 8px;
    background: var(--p9-gradient);
    color: #001018;
    font-family: var(--p9-font-title);
    font-weight: 700;
}

.p9-logo-text {
    font-family: var(--p9-font-title);
    font-weight: 600;
    font-size: 1.1rem;
}

.p9-nav .nav-link {
    color: var(--p9-muted);
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.2s;
}

.p9-nav .nav-link:hover {
    color: var(--p9-primary);
}

.navbar-toggler {
    border-color: var(--p9-border);
}

.navbar-toggler-icon {
    filter: invert(1);
}

/* Buttons */
.btn-p9 {
    background: var(--p9-gradient);
    border: none;
    color: #001018;
    font-weight: 600;
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn-p9:hover {
    color: #001018;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 212, 255, 0.35);
}

.btn-outline-p9 {
    border: 1px solid var(--p9-primary);
    color: var(--p9-primary);
    background: transparent;
}

.btn-outline-p9:hover {
    background: rgba(0, 212, 255, 0.12);
    color: var(--p9-primary);
    border-color: var(--p9-primary);
}

/* Glass */
.p9-glass {
    background: var(--p9-surface);
    border: 1px solid var(--p9-border);
    border-radius: 16px;
    backdrop-filter: blur(8px);
}

/* Hero */
.p9-hero {
    position: relative;
    padding: 4rem 0 5rem;
    overflow: hidden;
}

.p9-hero-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 50% at 20% 40%, rgba(0, 212, 255, 0.15), transparent),
        radial-gradient(ellipse 60% 40% at 80% 20%, rgba(124, 58, 237, 0.12), transparent);
    pointer-events: none;
}

.p9-eyebrow {
    color: var(--p9-primary);
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.p9-hero-title {
    font-size: clamp(1.75rem, 4vw, 2.75rem);
    line-height: 1.15;
    margin-bottom: 1.25rem;
}

.p9-hero-subtitle {
    font-size: 1.1rem;
    color: var(--p9-muted);
    max-width: 36rem;
    margin-bottom: 1.75rem;
}

.p9-hero-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.p9-hero-note {
    font-size: 0.9rem;
    color: var(--p9-muted);
    max-width: 32rem;
}

.p9-hero-visual {
    padding: 1rem;
}

/* Sections */
.p9-section {
    padding: 4.5rem 0;
}

.p9-section-title {
    font-size: clamp(1.5rem, 3vw, 2rem);
    margin-bottom: 0.75rem;
}

.p9-section-lead {
    color: var(--p9-muted);
    font-size: 1.05rem;
    max-width: 40rem;
    margin-left: auto;
    margin-right: auto;
}

.p9-text-muted {
    color: var(--p9-muted);
}

/* Cards */
.p9-card-icon {
    padding: 1.5rem;
    text-align: center;
    transition: transform 0.25s, border-color 0.25s;
}

.p9-card-icon:hover {
    transform: translateY(-4px);
    border-color: rgba(0, 212, 255, 0.35);
}

.p9-icon-wrap {
    width: 3rem;
    height: 3rem;
    margin: 0 auto 1rem;
    display: grid;
    place-items: center;
    border-radius: 12px;
    background: rgba(0, 212, 255, 0.12);
    color: var(--p9-primary);
    font-size: 1.25rem;
}

.p9-solution-card {
    padding: 1.5rem;
    transition: transform 0.25s, border-color 0.25s;
}

.p9-solution-card:hover {
    transform: translateY(-4px);
    border-color: rgba(0, 212, 255, 0.3);
}

.p9-solution-icon {
    font-size: 1.5rem;
    color: var(--p9-primary);
    margin-bottom: 1rem;
}

.p9-link {
    color: var(--p9-primary);
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 600;
}

.p9-link:hover {
    text-decoration: underline;
}

/* Segments */
.p9-segments {
    background: var(--p9-bg-elevated);
}

.p9-segment-chip {
    padding: 1.25rem 0.75rem;
    transition: transform 0.2s;
}

.p9-segment-chip:hover {
    transform: scale(1.03);
}

.p9-segment-chip i {
    display: block;
    font-size: 1.5rem;
    color: var(--p9-primary);
    margin-bottom: 0.5rem;
}

.p9-segment-chip span {
    font-size: 0.88rem;
    font-weight: 600;
}

/* Benefits */
.p9-benefit-item {
    display: flex;
    gap: 1rem;
    padding: 1.25rem;
    border-radius: 12px;
    border: 1px solid var(--p9-border);
    background: var(--p9-surface);
    height: 100%;
    transition: border-color 0.2s;
}

.p9-benefit-item:hover {
    border-color: rgba(0, 212, 255, 0.25);
}

.p9-benefit-item > i {
    font-size: 1.35rem;
    color: var(--p9-primary);
    flex-shrink: 0;
}

/* Differentials */
.p9-diff {
    background: var(--p9-bg-elevated);
}

.p9-diff-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.p9-diff-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.65rem 0;
    border-bottom: 1px solid var(--p9-border);
}

.p9-diff-list li i {
    color: var(--p9-primary);
    margin-top: 0.2rem;
}

/* Client area */
.p9-client-banner {
    padding: 2rem;
}

.p9-badge {
    display: inline-block;
    padding: 0.25rem 0.65rem;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    background: rgba(0, 212, 255, 0.15);
    color: var(--p9-primary);
}

.p9-check-list {
    list-style: none;
    padding: 0;
    margin: 1rem 0 1.5rem;
}

.p9-check-list li {
    padding: 0.35rem 0;
    color: var(--p9-muted);
}

.p9-check-list i {
    color: var(--p9-primary);
    margin-right: 0.5rem;
}

/* Blog */
.p9-blog-card {
    padding: 1rem 1.25rem;
}

.p9-blog-cat {
    font-size: 0.72rem;
    color: var(--p9-primary);
    text-transform: uppercase;
    font-weight: 700;
}

.p9-blog-card a {
    color: var(--p9-text);
    text-decoration: none;
}

.p9-blog-card a:hover {
    color: var(--p9-primary);
}

.p9-tag {
    display: inline-block;
    padding: 0.2rem 0.55rem;
    border-radius: 4px;
    font-size: 0.75rem;
    background: rgba(255, 255, 255, 0.06);
    color: var(--p9-muted);
}

.p9-newsletter {
    padding: 1.5rem;
}

/* FAQ */
.p9-accordion .accordion-item {
    background: var(--p9-surface);
    border: 1px solid var(--p9-border);
    margin-bottom: 0.5rem;
    border-radius: 10px !important;
    overflow: hidden;
}

.p9-accordion .accordion-button {
    background: transparent;
    color: var(--p9-text);
    font-weight: 600;
    box-shadow: none;
}

.p9-accordion .accordion-button:not(.collapsed) {
    background: rgba(0, 212, 255, 0.08);
    color: var(--p9-primary);
}

.p9-accordion .accordion-button::after {
    filter: invert(1);
}

.p9-accordion .accordion-body {
    color: var(--p9-muted);
}

.p9-accordion .accordion-body p {
    margin-bottom: 0.5rem;
}

/* CTA final */
.p9-cta-final {
    padding: 4rem 0;
    background: var(--p9-gradient);
    color: #001018;
}

.p9-cta-title {
    font-family: var(--p9-font-title);
    font-size: clamp(1.5rem, 3vw, 2.25rem);
    margin-bottom: 1rem;
}

.p9-cta-text {
    max-width: 36rem;
    margin: 0 auto 1.75rem;
    font-size: 1.05rem;
    opacity: 0.9;
}

.p9-cta-final .btn-p9 {
    background: #001018;
    color: var(--p9-primary);
}

.p9-cta-final .btn-outline-p9 {
    border-color: #001018;
    color: #001018;
}

.p9-cta-final .btn-outline-p9:hover {
    background: rgba(0, 16, 24, 0.15);
    color: #001018;
}

/* Contact */
.p9-contact-info {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0;
}

.p9-contact-info li {
    padding: 0.4rem 0;
    color: var(--p9-muted);
}

.p9-contact-info a {
    color: var(--p9-primary);
}

.p9-contact-form-wrap {
    padding: 2rem;
}

.p9-input,
.p9-form .form-control,
.p9-form .form-select {
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid var(--p9-border);
    color: var(--p9-text);
}

.p9-input:focus,
.p9-form .form-control:focus,
.p9-form .form-select:focus {
    background: rgba(0, 0, 0, 0.45);
    border-color: var(--p9-primary);
    color: var(--p9-text);
    box-shadow: 0 0 0 0.2rem rgba(0, 212, 255, 0.2);
}

.p9-form .form-label {
    color: var(--p9-muted);
    font-size: 0.88rem;
}

/* Images */
.section-img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    display: block;
}

.section-img-placeholder {
    width: 100%;
    border-radius: 12px;
    background:
        linear-gradient(135deg, rgba(0, 212, 255, 0.12), rgba(124, 58, 237, 0.1)),
        repeating-linear-gradient(-45deg, transparent, transparent 8px, rgba(255, 255, 255, 0.02) 8px, rgba(255, 255, 255, 0.02) 16px);
    border: 1px dashed var(--p9-border);
    min-height: 180px;
}

.section-img-placeholder[data-slug="inteligencia-artificial"]::after,
.section-img-placeholder[data-slug="area-cliente"]::after {
    content: '';
    display: block;
    height: 100%;
    min-height: inherit;
}

/* Footer */
.p9-footer {
    padding: 3rem 0 1.5rem;
    background: var(--p9-bg-elevated);
    border-top: 1px solid var(--p9-border);
}

.p9-footer-text {
    color: var(--p9-muted);
    font-size: 0.9rem;
}

.p9-footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 0.88rem;
}

.p9-footer-links a {
    color: var(--p9-muted);
    text-decoration: none;
}

.p9-footer-links a:hover {
    color: var(--p9-primary);
}

.p9-footer-bottom {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--p9-border);
    text-align: center;
    color: var(--p9-muted);
    font-size: 0.82rem;
}

/* Reveal animation */
.p9-reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

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

.p9-reveal-delay { transition-delay: 0.1s; }
.p9-reveal-delay-2 { transition-delay: 0.2s; }
.p9-reveal-delay-3 { transition-delay: 0.3s; }

/* Alerts */
.alert-success {
    background: rgba(0, 200, 120, 0.15);
    border-color: rgba(0, 200, 120, 0.3);
    color: #7dffb0;
}

.alert-danger {
    background: rgba(255, 80, 80, 0.15);
    border-color: rgba(255, 80, 80, 0.3);
    color: #ff9a9a;
}

@media (max-width: 991px) {
    .p9-hero {
        padding-top: 2.5rem;
    }
    .p9-section {
        padding: 3rem 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    .p9-reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
    html {
        scroll-behavior: auto;
    }
}
