/* Bipho — landing page styles */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --sky-50: #e0f2fe;
    --sky-100: #bae6fd;
    --sky-200: #7dd3fc;
    --sky-300: #38bdf8;
    --celeste-claro: #bae6fd;
    --sky-400: #0ea5e9;
    --sky-500: #0284c7;
    --sky-600: #0369a1;
    --sky-700: #075985;
    --sky-800: #0c4a6e;
    --sky-900: #082f49;
    --dark: #0f172a;
    --text: #334155;
    --text-light: #64748b;
    --white: #ffffff;
    --light: #f8fafc;
    --border: #e2e8f0;
    --shadow: 0 10px 40px rgba(2, 132, 199, 0.18);
    --shadow-lg: 0 20px 60px rgba(15, 23, 42, 0.15);
    --radius: 16px;
    --radius-sm: 10px;
    --transition: 0.3s ease;
    --gradient: linear-gradient(135deg, #0ea5e9 0%, #0284c7 40%, #0369a1 75%, #075985 100%);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text);
    line-height: 1.65;
    background: var(--white);
    overflow-x: hidden;
}

body.menu-open {
    overflow: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--sky-700);
    text-decoration: none;
}

.container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid transparent;
    transition: var(--transition);
}

.navbar.scrolled {
    border-bottom-color: var(--border);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
}

.nav-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 72px;
    gap: 1rem;
}

.logo-link {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--dark);
}

.logo-img {
    height: 44px;
    width: auto;
}

.logo-text {
    font-size: 1.35rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.nav-menu {
    display: flex;
    list-style: none;
    align-items: center;
    gap: 1.75rem;
}

.nav-link {
    color: var(--text);
    font-weight: 500;
    font-size: 0.95rem;
    transition: color var(--transition);
}

.nav-link:hover,
.nav-link.active {
    color: var(--sky-700);
}

.nav-cta {
    display: inline-flex;
    align-items: center;
    padding: 10px 18px;
    background: var(--gradient);
    color: var(--white) !important;
    border-radius: 999px;
    font-weight: 600;
    box-shadow: 0 4px 14px rgba(2, 132, 199, 0.4);
}

.nav-cta:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(2, 132, 199, 0.45);
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 4px;
}

.hamburger span {
    width: 26px;
    height: 3px;
    background: var(--dark);
    border-radius: 3px;
    transition: var(--transition);
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 6px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -6px);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 1rem;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    font-family: inherit;
}

.btn-primary {
    background: var(--white);
    color: var(--sky-800);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
}

.btn-primary:hover {
    background: var(--sky-50);
    transform: translateY(-2px);
}

.btn-secondary {
    background: transparent;
    color: var(--white);
    border: 2px solid rgba(255, 255, 255, 0.85);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.12);
}

.btn-teal {
    background: var(--gradient);
    color: var(--white);
    box-shadow: 0 4px 18px rgba(2, 132, 199, 0.4);
}

.btn-teal:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(2, 132, 199, 0.45);
}

.btn-outline {
    background: transparent;
    color: var(--sky-700);
    border: 2px solid var(--sky-600);
}

.btn-outline:hover {
    background: var(--sky-50);
}

.btn-whatsapp {
    background: #25d366;
    color: var(--white);
}

.btn-whatsapp:hover {
    background: #20bd5a;
    transform: translateY(-2px);
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    justify-content: center;
}

/* Hero */
.hero {
    position: relative;
    min-height: 92vh;
    display: flex;
    align-items: center;
    padding: 120px 24px 80px;
    overflow: hidden;
    isolation: isolate;
}

.hero-bg {
    position: absolute;
    inset: -15% 0;
    z-index: 0;
    will-change: transform;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transform: scale(1.12);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        linear-gradient(135deg, rgba(14, 165, 233, 0.82) 0%, rgba(2, 132, 199, 0.88) 45%, rgba(3, 105, 161, 0.92) 100%),
        radial-gradient(circle at 20% 80%, rgba(255, 255, 255, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.06) 0%, transparent 40%);
    pointer-events: none;
}

.hero-grid {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
    max-width: 1140px;
    margin: 0 auto;
    width: 100%;
}

.hero-content {
    text-align: left;
}

.hero-badge {
    display: inline-block;
    padding: 6px 14px;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 999px;
    color: var(--sky-50);
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 1.25rem;
}

.hero-title {
    font-size: clamp(2rem, 4.5vw, 3.25rem);
    font-weight: 700;
    color: var(--white);
    line-height: 1.15;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.92);
    margin-bottom: 2rem;
    max-width: 520px;
}

.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-logo-wrap {
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 28px;
    padding: 32px;
    backdrop-filter: blur(8px);
    box-shadow: var(--shadow-lg);
}

.hero-logo {
    max-width: 320px;
    width: 100%;
    filter: drop-shadow(0 12px 32px rgba(0, 0, 0, 0.2));
}

.hero-stats {
    display: flex;
    gap: 28px;
    margin-top: 2.5rem;
    flex-wrap: wrap;
}

.hero-stat strong {
    display: block;
    font-size: 1.5rem;
    color: var(--white);
}

.hero-stat span {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.8);
}

/* Sections */
section {
    padding: 88px 0;
}

.section-header {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 52px;
}

.section-tag {
    display: inline-block;
    color: var(--sky-700);
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 0.75rem;
}

.section-title {
    font-size: clamp(1.75rem, 3vw, 2.35rem);
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 0.75rem;
    letter-spacing: -0.02em;
}

.section-subtitle {
    font-size: 1.05rem;
    color: var(--text-light);
}

.bg-light {
    background: var(--light);
}

.bg-sky {
    background: var(--sky-50);
}

/* Cards grid */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
}

.card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px;
    transition: var(--transition);
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
    border-color: var(--sky-100);
}

.card-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.card h3 {
    font-size: 1.15rem;
    color: var(--dark);
    margin-bottom: 0.5rem;
}

.card p {
    color: var(--text-light);
    font-size: 0.95rem;
}

.card-featured {
    grid-column: 1 / -1;
    background: linear-gradient(135deg, var(--sky-800) 0%, var(--sky-900) 100%);
    border: none;
    color: var(--white);
}

.card-featured h3,
.card-featured p {
    color: rgba(255, 255, 255, 0.95);
}

.card-featured .feature-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 10px;
    margin-top: 1rem;
    list-style: none;
}

.card-featured .feature-list li {
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
}

/* Problem highlight */
.problem-note {
    text-align: center;
    margin-top: 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--sky-700);
}

/* About / solution */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
}

.about-text p {
    margin-bottom: 1rem;
    color: var(--text);
}

.about-text p strong {
    color: var(--sky-800);
}

.about-image {
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    background: var(--sky-50);
    padding: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.about-image img {
    max-height: 480px;
    object-fit: contain;
}

/* Bipo IA */
.bipo-ai-section {
    background: linear-gradient(135deg, #082f49 0%, #0c4a6e 45%, #075985 100%);
    overflow: hidden;
    color: rgba(255, 255, 255, 0.9);
}

.bipo-ai-grid {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 56px;
    align-items: center;
}

.bipo-ai-content .section-title {
    text-align: left;
    margin-bottom: 1rem;
    color: var(--white);
}

.bipo-ai-content .section-tag {
    display: block;
    margin-bottom: 0.75rem;
    color: var(--sky-200);
}

.bipo-ai-lead {
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.88);
    margin-bottom: 1.5rem;
}

.bipo-ai-features {
    list-style: none;
    margin-bottom: 1.5rem;
}

.bipo-ai-features li {
    position: relative;
    padding: 10px 0 10px 28px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.98rem;
}

.bipo-ai-features li:last-child {
    border-bottom: none;
}

.bipo-ai-features li::before {
    content: '✦';
    position: absolute;
    left: 0;
    top: 10px;
    color: var(--sky-200);
    font-size: 0.85rem;
}

.bipo-ai-features strong {
    color: var(--sky-100);
}

.bipo-ai-prompts {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 1.25rem;
}

.bipo-prompt-chip {
    display: inline-block;
    padding: 8px 14px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(125, 211, 252, 0.35);
    border-radius: 999px;
    font-size: 0.85rem;
    color: var(--sky-50);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

.bipo-ai-note {
    font-size: 0.92rem;
    color: rgba(255, 255, 255, 0.65);
    font-style: italic;
}

.bipo-ai-visual {
    display: flex;
    justify-content: center;
}

.bipo-ai-image-wrap {
    position: relative;
    max-width: 420px;
    width: 100%;
    padding: 24px;
    background: #0a0a0a;
    border-radius: 28px;
    border: 2px solid rgba(125, 211, 252, 0.22);
    box-shadow: 0 20px 48px rgba(0, 0, 0, 0.45);
}

.bipo-ai-image-wrap::before {
    display: none;
}

.bipo-ai-image-bg {
    background: #000000;
    border-radius: 18px;
    padding: 12px;
    overflow: hidden;
}

.bipo-ai-image {
    width: 100%;
    border-radius: 18px;
    object-fit: contain;
    background-color: #000000;
    display: block;
    mix-blend-mode: normal;
}

/* Roles */
.roles-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.role-card {
    text-align: center;
    padding: 36px 24px;
    border-radius: var(--radius);
    background: var(--white);
    border: 1px solid var(--border);
    transition: var(--transition);
}

.role-card:hover {
    border-color: var(--sky-500);
    box-shadow: var(--shadow);
}

.role-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--sky-50);
    border-radius: 50%;
    font-size: 1.75rem;
}

.role-card h3 {
    margin-bottom: 0.5rem;
    color: var(--dark);
}

.role-card p {
    font-size: 0.92rem;
    color: var(--text-light);
}

/* Benefits list */
.benefits-list {
    max-width: 640px;
    margin: 0 auto;
    list-style: none;
}

.benefits-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 0;
    border-bottom: 1px solid var(--border);
    font-weight: 500;
}

.benefits-list li::before {
    content: '✓';
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--sky-100);
    color: var(--sky-800);
    border-radius: 50%;
    font-size: 0.85rem;
    font-weight: 700;
}

/* Pricing */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    max-width: 1000px;
    margin: 0 auto;
}

.price-card {
    text-align: center;
    padding: 28px 20px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: var(--transition);
}

.price-card:hover {
    border-color: var(--sky-500);
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

.price-card h3 {
    font-size: 1rem;
    color: var(--text-light);
    margin-bottom: 0.75rem;
}

.price-amount {
    font-size: 1.85rem;
    font-weight: 700;
    color: var(--sky-700);
}

.price-amount span {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-light);
}

.pricing-note {
    text-align: center;
    margin-top: 1.75rem;
    color: var(--text-light);
}

/* CTA */
.cta-section {
    background: var(--gradient);
    text-align: center;
    color: var(--white);
}

.cta-section .section-title,
.cta-section .section-subtitle {
    color: var(--white);
}

.cta-section .section-subtitle {
    opacity: 0.9;
}

.cta-quote {
    margin-top: 1.75rem;
    font-size: 1.05rem;
    font-weight: 500;
    font-style: italic;
    opacity: 0.95;
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
}

/* Contact */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 48px;
    align-items: start;
}

.contact-info h3 {
    margin-bottom: 1rem;
    color: var(--dark);
}

.contact-item {
    display: flex;
    gap: 14px;
    margin-bottom: 1.25rem;
    align-items: flex-start;
}

.contact-item-icon {
    font-size: 1.25rem;
    margin-top: 2px;
}

.contact-item a {
    font-weight: 600;
}

.contact-form {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px;
    box-shadow: var(--shadow);
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 500;
    font-size: 0.9rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 1rem;
    transition: border-color var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--sky-500);
    box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.28);
}

.form-group textarea {
    min-height: 120px;
    resize: vertical;
}

.form-msg {
    display: none;
    margin-top: 1rem;
    padding: 12px;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
}

.form-error {
    background: #fef2f2;
    color: #b91c1c;
}

.form-success {
    background: var(--sky-50);
    color: var(--sky-800);
}

/* Legal pages */
.legal-hero {
    min-height: 40vh;
    padding-top: 120px;
    padding-bottom: 60px;
    text-align: center;
}

.legal-content {
    max-width: 800px;
    margin: 0 auto;
    padding-bottom: 80px;
}

.legal-block {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border);
}

.legal-block:last-child {
    border-bottom: none;
}

.legal-block h2 {
    font-size: 1.25rem;
    color: var(--sky-800);
    margin-bottom: 0.75rem;
}

.legal-block p,
.legal-block li {
    color: var(--text);
    margin-bottom: 0.5rem;
}

.legal-block ul {
    padding-left: 1.25rem;
    margin-top: 0.5rem;
}

/* Footer */
.footer {
    background: var(--dark);
    color: rgba(255, 255, 255, 0.75);
    padding: 64px 0 24px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-brand .logo-text {
    color: var(--white);
    margin-bottom: 0.75rem;
}

.footer-brand p {
    font-size: 0.95rem;
    max-width: 280px;
}

.footer h4 {
    color: var(--white);
    margin-bottom: 1rem;
    font-size: 1rem;
}

.footer ul {
    list-style: none;
}

.footer li {
    margin-bottom: 0.5rem;
}

.footer a {
    color: rgba(255, 255, 255, 0.75);
    transition: color var(--transition);
}

.footer a:hover {
    color: var(--sky-500);
}

.footer-bottom {
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    font-size: 0.9rem;
}

.legal-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem 1.5rem;
    padding: 32px 0;
    background: var(--light);
}

.legal-links a {
    font-weight: 600;
}

/* Animations */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 968px) {
    .hero-grid,
    .about-grid,
    .bipo-ai-grid,
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .bipo-ai-content .section-title {
        text-align: center;
    }

    .bipo-ai-content .section-tag {
        text-align: center;
    }

    .bipo-ai-lead {
        text-align: center;
    }

    .bipo-ai-note {
        text-align: center;
    }

    .bipo-ai-prompts {
        justify-content: center;
    }

    .hero-content {
        text-align: center;
    }

    .hero-subtitle {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-stats {
        justify-content: center;
    }

    .roles-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 72px;
        left: 0;
        right: 0;
        bottom: 0;
        flex-direction: column;
        background: var(--white);
        padding: 2rem;
        gap: 1.5rem;
        transform: translateX(100%);
        transition: transform var(--transition);
    }

    .nav-menu.active {
        transform: translateX(0);
    }

    section {
        padding: 64px 0;
    }
}
