*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --bg: #0b1120;
    --bg2: #111827;
    --accent: #3b82f6;
    --accent2: #6366f1;
    --text: #f1f5f9;
    --muted: #94a3b8;
    --card: #1e293b;
    --border: #1e3a5f;
}

body {
    font-family: 'Inter', sans-serif;
    background: var(--bg);
    color: var(--text);
    overflow-x: hidden;
}

html {
    scroll-behavior: smooth;
}

/* ── NAV ── */
nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 80px;
    position: sticky;
    top: 0;
    z-index: 99;
    background: rgba(11, 17, 32, .85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(59, 130, 246, .15);
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo-img {
    height: 56px;
    width: auto;
    display: block;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 32px;
    margin-left: auto;
    margin-right: 30px;
}

nav ul a {
    color: var(--muted);
    font-size: 1.05rem;
    text-decoration: none;
    transition: color .2s;
    font-weight: 500;
}

nav ul a:hover {
    color: var(--text);
}

.nav-cta {
    background: var(--accent);
    color: #fff;
    border: none;
    padding: 10px 22px;
    border-radius: 8px;
    font-weight: 600;
    font-size: .9rem;
    cursor: pointer;
    text-decoration: none;
    transition: background .2s;
}

.nav-cta:hover {
    background: #2563eb;
}

/* Menu Mobile */
.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
    z-index: 100;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--text);
    transition: 0.3s;
    border-radius: 2px;
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* ── HERO ── */
.hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 100px 80px;
    min-height: 92vh;
    gap: 60px;
    background: radial-gradient(ellipse 60% 60% at 70% 50%, rgba(59, 130, 246, .12) 0%, transparent 70%),
                linear-gradient(135deg, #0b1120 0%, #0f172a 100%);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(99, 102, 241, .15) 1px, transparent 1px);
    background-size: 28px 28px;
}

.hero-left {
    flex: 1;
    max-width: 560px;
    position: relative;
    z-index: 1;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(59, 130, 246, .12);
    border: 1px solid rgba(59, 130, 246, .3);
    color: var(--accent);
    font-size: .8rem;
    font-weight: 600;
    letter-spacing: .05em;
    padding: 6px 14px;
    border-radius: 999px;
    text-transform: uppercase;
    margin-bottom: 24px;
    animation: breathe 5s ease-in-out infinite;
}

.hero-left h1 {
    font-size: clamp(2rem, 4vw, 3.4rem);
    font-weight: 800;
    line-height: 1.12;
    letter-spacing: -.03em;
    margin-bottom: 20px;
}

.hero-left h1 span {
    background: linear-gradient(90deg, var(--accent), var(--accent2));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-left p {
    font-size: 1.1rem;
    color: var(--muted);
    line-height: 1.7;
    margin-bottom: 36px;
    max-width: 460px;
}

.hero-btns {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent), var(--accent2));
    color: #fff;
    padding: 14px 28px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    transition: opacity .2s, transform .2s;
    display: inline-block;
}

.btn-primary:hover {
    opacity: .88;
    transform: translateY(-1px);
}

.btn-ghost {
    color: var(--text);
    padding: 14px 28px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    border: 1px solid var(--border);
    transition: border-color .2s;
}

.btn-ghost:hover {
    border-color: var(--accent);
}

/* hero illustration */
.hero-right {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 1;
}

.dashboard-mock {
    width: 100%;
    max-width: 500px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 28px;
    box-shadow: 0 40px 80px rgba(0, 0, 0, .5);
}

.mock-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 22px;
}

.mock-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.mock-title {
    font-size: .8rem;
    color: var(--muted);
    margin-left: 4px;
    font-weight: 600;
}

.mock-stat-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 20px;
}

.mock-stat {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 14px;
    text-align: center;
}

.mock-stat .val {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--accent);
}

.mock-stat .lbl {
    font-size: .7rem;
    color: var(--muted);
    margin-top: 2px;
}

.mock-bars {
    display: flex;
    align-items: flex-end;
    gap: 8px;
    height: 90px;
    margin-bottom: 16px;
}

.mock-bar {
    flex: 1;
    border-radius: 6px 6px 0 0;
    background: linear-gradient(to top, var(--accent), var(--accent2));
    opacity: .7;
}

.mock-bar.hi {
    opacity: 1;
}

.mock-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--bg);
    border-radius: 8px;
    padding: 10px 14px;
    margin-bottom: 8px;
}

.mock-row span {
    font-size: .78rem;
    color: var(--muted);
}

.mock-row strong {
    font-size: .82rem;
    color: #4ade80;
}

/* ── STATS ── */
.stats {
    display: flex;
    justify-content: center;
    gap: 0;
    background: var(--bg2);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.stat-item {
    flex: 1;
    text-align: center;
    padding: 40px 20px;
    border-right: 1px solid var(--border);
}

.stat-item:last-child {
    border-right: none;
}

.stat-item .num {
    font-size: 2.8rem;
    font-weight: 800;
    color: var(--accent);
}

.stat-item .desc {
    font-size: 1rem;
    color: var(--muted);
    margin-top: 4px;
}

/* ── SECTION ── */
section {
    padding: 100px 80px;
}

.section-tag {
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 12px;
}

.section-title {
    font-size: clamp(1.8rem, 3vw, 2.6rem);
    font-weight: 800;
    letter-spacing: -.03em;
    margin-bottom: 14px;
}

.section-sub {
    font-size: 1rem;
    color: var(--muted);
    max-width: 560px;
    line-height: 1.7;
}

/* ── SOLUTIONS ── */
.solutions {
    background: var(--bg);
}

.solutions-header {
    text-align: center;
    margin-bottom: 60px;
}

.solutions-header .section-sub {
    margin: 0 auto;
}

.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
}

.card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 32px;
    transition: border-color .25s, transform .25s;
}

.card:hover {
    border-color: var(--accent);
    transform: translateY(-4px);
}

.card-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(59, 130, 246, .2), rgba(99, 102, 241, .2));
    border: 1px solid rgba(59, 130, 246, .3);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
}

.card-icon i {
    font-size: 2rem;
    background: linear-gradient(135deg, var(--accent), var(--accent2));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transition: all 0.3s ease;
}

.card:hover .card-icon i {
    transform: scale(1.1);
}

.card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.card p {
    font-size: .88rem;
    color: var(--muted);
    line-height: 1.6;
}

/* ── ABOUT ── */
.about {
    background: var(--bg2);
    display: flex;
    align-items: center;
    gap: 80px;
}

.about-img {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    box-shadow: none;
    min-height: auto;
}

.imagem-sobre {
    width: 50%;
    height: auto;
    object-fit: cover;
    display: block;
    border-radius: 20px;
    border: 1px solid rgba(59, 130, 246, 0.4);
}

.about-text {
    flex: 1;
}

.about-text p {
    color: var(--muted);
    line-height: 1.8;
    margin-bottom: 20px;
}

.check-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 24px;
}

.check-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: .9rem;
    color: var(--muted);
}

.check-list li::before {
    content: '✓';
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: rgba(59, 130, 246, .15);
    color: var(--accent);
    font-size: .75rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* ── SEGMENTS ── */
.segments {
    background: var(--bg);
    text-align: center;
}

.segments-header {
    margin-bottom: 50px;
}

.seg-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px;
}

.seg-pill {
    padding: 12px 24px;
    border-radius: 999px;
    background: var(--card);
    border: 1px solid var(--border);
    font-size: .9rem;
    color: var(--muted);
    font-weight: 500;
    transition: all .2s;
}

.seg-pill:hover {
    border-color: var(--accent);
    color: var(--text);
    transform: scale(1.05);
}

.seg-pill i {
    margin-right: 8px;
    font-size: 1rem;
    background: linear-gradient(135deg, var(--accent), var(--accent2));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transition: all 0.3s ease;
}

.seg-pill:hover i {
    transform: scale(1.1);
    background: linear-gradient(135deg, var(--accent2), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ── CTA ── */
.cta-section {
    background: radial-gradient(ellipse 80% 80% at 50% 50%, rgba(59, 130, 246, .18) 0%, transparent 70%), var(--bg2);
    text-align: center;
    padding: 120px 80px;
    border-top: 1px solid var(--border);
}

.cta-section h2 {
    font-size: clamp(2rem, 3.5vw, 3rem);
    font-weight: 800;
    margin-bottom: 16px;
    letter-spacing: -.03em;
}

.cta-section p {
    color: var(--muted);
    font-size: 1.05rem;
    margin-bottom: 40px;
}

/* ── FOOTER ── */
footer {
    background: var(--bg);
    padding: 50px 80px 30px;
    border-top: 1px solid var(--border);
}

.footer-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 40px;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.footer-brand .logo {
    font-size: 1.2rem;
    display: block;
    margin-bottom: 10px;
}

.footer-brand p {
    font-size: .85rem;
    color: var(--muted);
    max-width: 260px;
    line-height: 1.6;
}

.footer-col h4 {
    font-size: .85rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 14px;
}

.footer-col ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-col ul li a {
    font-size: .83rem;
    color: var(--muted);
    text-decoration: none;
    transition: color .2s;
}

.footer-col ul li a:hover {
    color: var(--text);
}

.footer-bottom {
    border-top: 1px solid var(--border);
    padding-top: 24px;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}

.footer-bottom p {
    font-size: .78rem;
    color: var(--muted);
}

/* ========== RESPONSIVIDADE OTIMIZADA ========== */

/* TABLET (768px - 1024px) - iPad Air, iPad Pro, Surface, Nest Hub */
@media (min-width: 768px) and (max-width: 1024px) {
    .logo-img {
        height: 48px;
    }
    
    nav {
        padding: 20px 40px;
    }
    
    nav ul {
        gap: 20px;
        margin-right: 20px;
    }
    
    nav ul a {
        font-size: 0.95rem;
    }
    
    .hero {
        padding: 60px 40px;
        gap: 30px;
    }
    
    .hero-left h1 {
        font-size: 2rem;
    }
    
    .hero-left p {
        font-size: 0.95rem;
    }
    
    .dashboard-mock {
        max-width: 380px;
        padding: 18px;
    }
    
    .mock-stat .val {
        font-size: 1.1rem;
    }
    
    .mock-bars {
        height: 70px;
    }
    
    section {
        padding: 60px 40px;
    }
    
    .stat-item .num {
        font-size: 2rem;
    }
    
    .stat-item .desc {
        font-size: 0.8rem;
    }
    
    .cards {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .card {
        padding: 24px;
    }
    
    .about {
        gap: 40px;
    }
    
    .imagem-sobre {
        width: 65%;
    }
    
    .seg-pill {
        padding: 8px 18px;
        font-size: 0.85rem;
    }
    
    .cta-section {
        padding: 80px 40px;
    }
    
    .cta-section h2 {
        font-size: 2rem;
    }
    
    footer {
        padding: 40px 40px 30px;
    }
}

/* TABLET PAISAGEM */
@media (min-width: 1025px) and (max-width: 1200px) {
    .hero {
        padding: 80px 60px;
        gap: 40px;
    }
    
    .dashboard-mock {
        max-width: 450px;
    }
}

/* CELULAR (até 767px) */
@media (max-width: 767px) {
    .logo-img {
        height: 42px;
    }
    
    nav {
        padding: 16px 20px;
    }
    
    .menu-toggle {
        display: flex;
    }
    
    nav ul {
        position: fixed;
        top: 0;
        right: -100%;
        height: 100vh;
        width: 70%;
        max-width: 300px;
        background: rgba(11, 17, 32, .98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 30px;
        transition: 0.3s ease-in-out;
        z-index: 98;
        border-left: 1px solid var(--border);
        margin-left: 0;
        margin-right: 0;
    }
    
    nav ul.active {
        right: 0;
    }
    
    nav ul li a {
        font-size: 1.1rem;
    }
    
    .nav-cta {
        font-size: 0.85rem;
        padding: 8px 18px;
    }
    
    .hero {
        flex-direction: column;
        padding: 40px 20px;
        min-height: auto;
        gap: 40px;
    }
    
    .hero-left {
        max-width: 100%;
        text-align: center;
    }
    
    .hero-left p {
        max-width: 100%;
        margin-left: auto;
        margin-right: auto;
    }
    
    .hero-left h1 {
        font-size: 1.8rem;
    }
    
    .hero-btns {
        justify-content: center;
    }
    
    .hero-badge {
        margin-left: auto;
        margin-right: auto;
    }
    
    .hero-right {
        width: 100%;
    }
    
    .dashboard-mock {
        max-width: 100%;
        padding: 20px;
    }
    
    .stats {
        flex-wrap: wrap;
    }
    
    .stat-item {
        flex: 1 1 50%;
        border-right: none;
        border-bottom: 1px solid var(--border);
        padding: 25px 15px;
    }
    
    .stat-item:nth-child(even) {
        border-left: 1px solid var(--border);
    }
    
    .stat-item .num {
        font-size: 2rem;
    }
    
    section {
        padding: 50px 20px;
    }
    
    .cards {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .card {
        padding: 20px;
    }
    
    .about {
        flex-direction: column;
        gap: 30px;
    }
    
    .about-img {
        width: 100%;
    }
    
    .about-text {
        text-align: center;
    }
    
    .check-list li {
        justify-content: center;
        text-align: center;
        flex-wrap: wrap;
    }
    
    .imagem-sobre {
        width: 60%;
        margin: 0 auto;
    }
    
    .seg-grid {
        gap: 12px;
    }
    
    .seg-pill {
        padding: 8px 16px;
        font-size: 0.8rem;
    }
    
    .cta-section {
        padding: 50px 20px;
    }
    
    .cta-section h2 {
        font-size: 1.6rem;
    }
    
    footer {
        padding: 40px 20px 20px;
    }
    
    .footer-row {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 25px;
    }
    
    .footer-col ul {
        align-items: center;
    }
    
    .footer-bottom {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
}

/* CELULAR PEQUENO (até 480px) */
@media (max-width: 480px) {
    .logo-img {
        height: 40px;
    }
    
    .hero-left h1 {
        font-size: 1.5rem;
    }
    
    .hero-left p {
        font-size: 0.85rem;
    }
    
    .btn-primary, .btn-ghost {
        padding: 8px 16px;
        font-size: 0.85rem;
    }
    
    .mock-stat-row {
        gap: 6px;
    }
    
    .mock-stat {
        padding: 8px;
    }
    
    .mock-stat .val {
        font-size: 0.9rem;
    }
    
    .stat-item .num {
        font-size: 1.6rem;
    }
    
    .stat-item .desc {
        font-size: 0.7rem;
    }
    
    .section-title {
        font-size: 1.4rem;
    }
    
    .imagem-sobre {
        width: 80%;
    }
    
    .seg-pill {
        flex: 0 0 calc(50% - 8px);
    }
    
    .cta-section h2 {
        font-size: 1.4rem;
    }
    
    .cta-section .btn-primary,
    .cta-section .btn-ghost {
        width: 100%;
        max-width: 200px;
        text-align: center;
    }
}

/* CELULAR MUITO PEQUENO (até 360px) */
@media (max-width: 360px) {
    .hero-left h1 {
        font-size: 1.3rem;
    }
    
    .stat-item .num {
        font-size: 1.4rem;
    }
    
    .seg-pill {
        flex: 0 0 100%;
    }
    
    .imagem-sobre {
        width: 90%;
    }
}

/* LANDSCAPE MODE */
@media (max-width: 768px) and (orientation: landscape) {
    .hero {
        padding: 30px 20px;
    }
    
    .hero-left h1 {
        font-size: 1.4rem;
    }
    
    .dashboard-mock {
        max-width: 300px;
        padding: 12px;
    }
    
    .stat-item {
        padding: 15px 10px;
    }
}

/* ANIMAÇÃO */
@keyframes breathe {
    0% {
        border-color: rgba(59, 130, 246, 0.3);
        box-shadow: 0 0 0px rgba(59, 130, 246, 0);
        transform: scale(1);
    }
    50% {
        border-color: rgba(99, 102, 241, 0.7);
        box-shadow: 0 0 6px rgba(99, 102, 241, 0.2);
        transform: scale(1.01);
    }
    100% {
        border-color: rgba(59, 130, 246, 0.3);
        box-shadow: 0 0 0px rgba(59, 130, 246, 0);
        transform: scale(1);
    }
}
/* LINGUAGEM */
.language-selector {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-left: 15px;
}

.lang-btn {
    background: transparent;
    border: none;
    color: var(--muted);
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 4px;
    transition: all 0.2s;
}

.lang-btn:hover {
    color: var(--text);
}

.lang-btn.active {
    color: var(--accent);
    background: rgba(59, 130, 246, 0.15);
}

.lang-divider {
    color: var(--border);
    font-size: 0.8rem;
}

@media (max-width: 768px) {
    .language-selector {
        margin-left: 0;
        order: 2;
    }
}
/* Footer alinhado */
footer .footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

footer .footer-bottom p {
    margin: 0;
    text-align: left;
}

footer .footer-bottom a {
    text-align: right;
    white-space: nowrap;
}
/* CORREÇÃO: ALTURA UNIFORME DOS CARDS NA SEÇÃO SOLUÇÕES */
.card-link {
    display: flex;
    height: 100%;
}

.card {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.card p {
    flex-grow: 1;
}