/* ==========================================================================
   AgixAgenda | Premium VIP Dark Mode SaaS Base CSS
   ========================================================================== */

/* Font Definitions via Google Fonts (Inter & Outfit) */
:root {
    /* Colors */
    --bg-dark: #0a0b10;
    --bg-card: #14151f;
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    
    /* Brand/Accent Colors */
    --primary: #00b4d8;
    --primary-hover: #0096c7;
    --secondary: #0077b6;
    --accent: #00b4d8;
    --success: #10b981;
    --warning: #f59e0b;
    --error: #ef4444;

    /* Gradients */
    --gradient-brand: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    --gradient-card: linear-gradient(180deg, rgba(20,21,31,0.8) 0%, rgba(10,11,16,0.9) 100%);

    /* UI Measurements */
    --radius-sm: 0.5rem;
    --radius-md: 1rem;
    --radius-lg: 1.5rem;
    --radius-xl: 2rem;
    --radius-pill: 9999px;

    /* Shadows & Glassmorphism */
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.4);
    --shadow-glow: 0 0 25px rgba(0, 180, 216, 0.3);
    --border-glass: 1px solid rgba(255, 255, 255, 0.08);
    --bg-glass: rgba(20,21,31,0.6);

    /* Animation */
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Base Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    overflow-x: hidden;
    width: 100%;
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    width: 100%;
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1rem;
}

p {
    color: var(--text-muted);
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

img {
    max-width: 100%;
    height: auto;
}

ul {
    list-style: none;
}

/* Utilities */
.container {
    width: 100%;
    padding: 0 16px;
    max-width: 1200px;
    margin: 0 auto;
}

.text-center { text-align: center; }
.mt-4 { margin-top: 2rem; }
.mb-4 { margin-bottom: 2rem; }

.gradient-text {
    background: var(--gradient-brand);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
}

.highlight {
    color: var(--primary);
}

.section {
    padding: 6rem 0;
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 4rem auto;
}

.section-header h2 {
    font-size: 2.5rem;
}

.section-header p {
    font-size: 1.1rem;
    color: var(--text-muted);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-pill);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    outline: none;
    text-align: center;
}

.btn-primary {
    background: var(--gradient-brand);
    color: #fff;
    box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
    box-shadow: var(--shadow-glow);
    transform: translateY(-2px);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--text-muted);
    color: var(--text-main);
}

.btn-outline:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.btn-light {
    background: #fff;
    color: var(--bg-dark);
}

.btn-light:hover {
    box-shadow: var(--shadow-glow);
    transform: translateY(-2px);
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.125rem;
}

.btn-block {
    display: flex;
    width: 100%;
}

/* Animations (Scroll Observables) */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Abstract Background Glows */
.glowing-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    z-index: -1;
    opacity: 0.4;
    animation: drift 20s infinite alternate;
}

.orb-1 {
    width: 400px;
    height: 400px;
    background: var(--primary);
    top: -100px;
    left: -100px;
}

.orb-2 {
    width: 300px;
    height: 300px;
    background: var(--secondary);
    top: 20%;
    right: -100px;
}

.orb-3 {
    width: 500px;
    height: 500px;
    background: #1e1b4b; /* deep violet */
    top: 50%;
    left: 20%;
}

@keyframes drift {
    0% { transform: translate(0, 0); }
    100% { transform: translate(50px, 50px); }
}

/* =====================================================
   Components
   ===================================================== */

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1rem 0;
    z-index: 100;
    transition: var(--transition);
    border-bottom: 1px solid transparent;
}

.navbar.scrolled {
    background: rgba(10, 11, 16, 0.8);
    backdrop-filter: blur(16px);
    border-bottom: var(--border-glass);
}

.navbar-static {
    position: relative !important;
}

.nav-container {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    overflow: visible;
}

.logo-img {
    height: 70px;
    width: auto;
    display: block;
}

.logo-text {
    font-family: 'Outfit', sans-serif;
    font-size: 1.5rem;
    font-weight: 800;
    color: #fff;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    font-weight: 500;
    color: var(--text-muted);
}

.nav-links a:hover {
    color: #fff;
}

.nav-links.active {
    display: flex;
    position: fixed;
    top: 80px;
    left: 0;
    width: 100%;
    flex-direction: column;
    background: var(--bg-card);
    padding: 1rem;
    padding-top: 1.5rem;
    z-index: 999;
}

.nav-actions {
    display: flex;
    gap: 1rem;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
    position: absolute;
    right: 16px;
    top: 20px;
    z-index: 999;
}

/* Hero Section */
.hero {
    position: relative;
    padding: 10rem 0 5rem 0;
    min-height: 100dvh;
    display: flex;
    align-items: center;
    padding-top: 120px;
}

.hero-container {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.hero-content {
    flex: 1;
}

.badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: var(--border-glass);
    border-radius: var(--radius-pill);
    font-size: 0.875rem;
    color: var(--accent);
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.hero-title {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    letter-spacing: -1px;
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.hero-note {
    font-size: 0.875rem;
    color: var(--text-muted);
}

/* Mockup Art */
.hero-mockup {
    flex: 1;
    perspective: 1000px;
}

.glass-panel {
    background: var(--bg-glass);
    backdrop-filter: blur(20px);
    border: var(--border-glass);
    border-radius: var(--radius-xl);
    padding: 1rem;
    box-shadow: var(--shadow-md);
    transform: rotateY(-10deg) rotateX(5deg) scale(1.05);
    transition: transform 0.5s ease;
}

.glass-panel:hover {
    transform: rotateY(0) rotateX(0) scale(1.05);
}

.mockup-header {
    display: flex;
    align-items: center;
    padding: 0.5rem;
    border-bottom: var(--border-glass);
    margin-bottom: 1rem;
}

.dots {
    display: flex;
    gap: 6px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.dot.red { background: #ff5f56; }
.dot.yellow { background: #ffbd2e; }
.dot.green { background: #27c93f; }

.mockup-domain {
    display: flex;
    justify-content: center;
    flex: 1;
    font-size: 0.8rem;
    color: var(--text-muted);
    background: rgba(0,0,0,0.2);
    padding: 4px 12px;
    border-radius: var(--radius-pill);
    margin: 0 1rem;
}

.mockup-app {
    display: flex;
    gap: 1rem;
    background: #000;
    border-radius: var(--radius-md);
    overflow: hidden;
    height: 350px;
}

.mockup-sidebar {
    width: 100px;
    background: #111;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    border-right: 1px solid #222;
}

.prof-avatar {
    width: 40px;
    height: 40px;
    background: var(--gradient-brand);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: #fff;
    margin-bottom: 0.5rem;
}

.mockup-sidebar h4 {
    font-size: 0.8rem;
    margin-bottom: 1.5rem;
}

.mockup-sidebar ul {
    width: 100%;
}

.mockup-sidebar li {
    font-size: 0.75rem;
    color: #666;
    margin-bottom: 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
}

.mockup-sidebar li.active {
    color: var(--primary);
}

.mockup-main {
    flex: 1;
    padding: 1rem;
    background: #000;
}

.mockup-main h3 {
    font-size: 1rem;
    margin-bottom: 1rem;
}

.schedule-item {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.time {
    font-size: 0.8rem;
    color: #666;
    width: 40px;
}

.appointment {
    flex: 1;
    padding: 0.75rem;
    border-radius: var(--radius-sm);
    background: #222;
}

.card-blue {
    border-left: 4px solid var(--accent);
    background: rgba(6, 182, 212, 0.1);
}

.card-pink {
    border-left: 4px solid var(--secondary);
    background: rgba(236, 72, 153, 0.1);
}

.appointment .title {
    font-weight: 600;
    font-size: 0.85rem;
    color: #fff;
}

.appointment .client {
    font-size: 0.75rem;
    color: #999;
}

/* Social Proof */
.social-proof {
    padding: 2rem 0;
    border-top: var(--border-glass);
    border-bottom: var(--border-glass);
    background: rgba(0,0,0,0.2);
}

.partner-logos {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-top: 1.5rem;
    font-size: 2.5rem;
    color: var(--text-muted);
    opacity: 0.5;
}

.partner-logos i:hover {
    color: var(--primary);
    opacity: 1;
    transition: var(--transition);
}

/* Features */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: var(--bg-card);
    border: var(--border-glass);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: rgba(0, 180, 216, 0.3);
}

.feature-icon {
    width: 60px;
    height: 60px;
    border-radius: var(--radius-md);
    background: rgba(0, 180, 216, 0.1);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

/* How It Works Flow */
.how-it-works {
    position: relative;
    overflow: hidden;
}

.steps-flow {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 1rem;
    margin-top: 3rem;
}

.step {
    flex: 1;
    text-align: center;
    position: relative;
}

.step-number {
    position: absolute;
    top: -10px;
    right: 20%;
    width: 30px;
    height: 30px;
    background: var(--accent);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 0.9rem;
}

.step-icon {
    width: 80px;
    height: 80px;
    background: var(--bg-card);
    border: var(--border-glass);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: var(--primary);
    margin: 0 auto 1.5rem auto;
    box-shadow: 0 0 20px rgba(0, 180, 216, 0.1);
    transition: var(--transition);
}

.step:hover .step-icon {
    transform: scale(1.1);
    box-shadow: var(--shadow-glow);
    background: var(--gradient-brand);
    color: #fff;
    border-color: transparent;
}

.step h4 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.step-connector {
    height: 2px;
    background: var(--text-muted);
    width: 40px;
    margin-top: 40px;
    opacity: 0.2;
}

/* Pricing Section */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 350px));
    justify-content: center;
    gap: 2rem;
}

.pricing-card {
    background: var(--bg-card);
    border: var(--border-glass);
    border-radius: var(--radius-xl);
    padding: 3rem 2rem;
    position: relative;
    transition: var(--transition);
}

.pricing-card:hover {
    transform: translateY(-10px);
}

.pricing-card.popular {
    border-color: var(--primary);
    box-shadow: var(--shadow-glow);
    background: linear-gradient(180deg, rgba(20,21,31,1) 0%, rgba(30,27,75,0.8) 100%);
    padding: 4rem 2rem;
}

.popular-badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--gradient-brand);
    color: #fff;
    padding: 0.5rem 1.5rem;
    border-radius: var(--radius-pill);
    font-size: 0.875rem;
    font-weight: bold;
    box-shadow: var(--shadow-sm);
}

.pricing-header {
    text-align: center;
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: var(--border-glass);
}

.pricing-header h3 {
    font-size: 1.5rem;
    color: var(--text-muted);
}

.popular .pricing-header h3 {
    color: #fff;
}

.price {
    font-size: 3rem;
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    color: #fff;
    line-height: 1;
    margin: 1rem 0;
}

.price span {
    font-size: 1rem;
    color: var(--text-muted);
    font-weight: normal;
}

.pricing-features {
    margin-bottom: 2rem;
}

.pricing-features li {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.pricing-features li i {
    color: var(--success);
    font-size: 1.25rem;
}

.pricing-features li.disabled {
    color: var(--text-muted);
    opacity: 0.5;
}

.pricing-features li.disabled i {
    color: var(--error);
}

/* Footer CTA */
.cta-banner {
    background: var(--gradient-brand);
    padding: 4rem 0;
    margin-bottom: 4rem;
    border-radius: var(--radius-xl);
    text-align: center;
    margin-left: 5%;
    margin-right: 5%;
}

.cta-banner h2 {
    font-size: 2.5rem;
    color: #fff;
    max-width: 800px;
    margin: 0 auto 1rem auto;
}

.cta-banner p {
    color: rgba(255,255,255,0.9);
    margin-bottom: 2rem;
}

/* Footer */
.footer {
    padding-top: 2rem;
    border-top: var(--border-glass);
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 3rem;
}

.footer-info h3 {
    font-size: 1.5rem;
}

.footer-info h3 span {
    color: var(--primary);
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.social-links a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.social-links a:hover {
    background: var(--primary);
    color: #fff;
}

.footer-links h4 {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

.footer-links ul li {
    margin-bottom: 0.75rem;
}

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

.footer-bottom {
    padding: 1.5rem 0;
    border-top: var(--border-glass);
    font-size: 0.875rem;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .pricing-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
        max-width: 500px;
        margin: 0 auto;
    }
    
    .hero-title {
        font-size: 3rem;
    }
}

@media (max-width: 768px) {
    .nav-links, .nav-actions {
        display: none; /* simple hidden for mobile, in JS we'd toggle a class */
    }
    
    .menu-toggle {
        display: block;
    }
    
    .hero-container {
        gap: 1.5rem;
        padding: 0 10px;
        flex-direction: column;
        text-align: center;
        overflow: hidden;
        max-width: 100%;
        overflow-x: hidden;
    }
    
    .hero-cta {
        justify-content: center;
    }
    
    .hero-mockup {
        width: 100%;
        max-width: 100%;
        overflow: hidden;
    }
    
    .steps-flow {
        flex-direction: column;
        align-items: center;
    }
    
    .step-connector {
        width: 2px;
        height: 40px;
        margin: 10px 0;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    /* =========================
       GERAL
    ========================= */

    .section {
        padding: 3rem 0;
    }

    .section-header h2 {
        font-size: 1.8rem;
    }

    .section-header p {
        font-size: 1rem;
    }

    /* =========================
       HERO
    ========================= */
    .hero {
        padding: 7rem 0 3rem 0;
        min-height: auto;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .hero-cta {
        flex-direction: column;
        gap: 0.8rem;
    }

    .btn-lg {
        width: 100%;
    }

    /* =========================
       MOCKUP
    ========================= */
    .glass-panel {
        transform: none !important;
        scale: 1 !important;
        max-width: 100%;
    }

    .mockup-app {
        height: auto;
        flex-direction: column;
    }

    .mockup-sidebar {
        width: 100%;
        flex-direction: row;
        justify-content: space-around;
    }

    .mockup-main {
        padding: 0.5rem;
    }

    /* =========================
       FEATURES
    ========================= */
    .features-grid {
        grid-template-columns: 1fr;
    }

    /* =========================
       STEPS
    ========================= */
    .step-number {
        right: 10%;
    }

    /* =========================
       SOCIAL LOGOS
    ========================= */
    .partner-logos {
        flex-wrap: wrap;
        gap: 1.5rem;
        font-size: 2rem;
    }

    /* =========================
       PRICING
    ========================= */
    .pricing-card {
        padding: 2rem 1.5rem;
    }

    .price {
        font-size: 2rem;
    }

    /* =========================
       FOOTER
    ========================= */
    .cta-banner {
        padding: 2rem 1rem;
    }

    .cta-banner h2 {
        font-size: 1.5rem;
    }

    body {
        overflow-x: hidden;
    }

    .nav-container {
        position: relative;
    }

    .logo-img {
        height: 50px;
    }

    .navbar {
        left: 0;
        right: 0;
        padding: 0.5rem 0;
    }
}

/* FORM CONTATO */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    text-align: left;
    position: relative;
}

.form-group label {
    font-size: 0.9rem;
    margin-bottom: 0.4rem;
    color: var(--text-muted);
}

.form-group input,
.form-group textarea {
    background: rgba(255, 255, 255, 0.05);
    border: var(--border-glass);
    border-radius: var(--radius-md);
    padding: 0.8rem 1rem;
    color: #fff;
    font-size: 0.95rem;
    outline: none;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--primary);
    box-shadow: var(--shadow-glow);
}

.form-group select {
    background: rgba(255, 255, 255, 0.05);
    border: var(--border-glass);
    border-radius: var(--radius-md);
    padding: 0.8rem 1rem;
    padding-right: 2.5rem;
    color: #fff;
    font-size: 0.95rem;
    outline: none;
    transition: var(--transition);
    appearance: none; /* remove estilo padrão */
    -webkit-appearance: none;
    -moz-appearance: none;
    cursor: pointer;

    /* seta customizada */
    background-image: url("data:image/svg+xml;utf8,<svg fill='%23ffffff' height='20' viewBox='0 0 24 24' width='20' xmlns='http://www.w3.org/2000/svg'><path d='M7 10l5 5 5-5z'/></svg>");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 18px;
}

/* foco igual input */
.form-group select:focus {
    border-color: var(--primary);
    box-shadow: var(--shadow-glow);
}

/* opção interna (nem todos navegadores aplicam) */
.form-group select option {
    background: #14151f;
    color: #fff;
}

/* Toggle mensal/anual */
.billing-toggle {
    margin-top: 2rem;
    display: flex;
    justify-content: center;
    gap: 10px;
}

.toggle-btn {
    padding: 0.5rem 1.2rem;
    border-radius: 999px;
    border: 1px solid var(--text-muted);
    background: transparent;
    color: var(--text-muted);
    cursor: pointer;
    transition: var(--transition);
}

.toggle-btn.active {
    background: var(--gradient-brand);
    color: #fff;
    border: none;
}

/* Mostrar/esconder preços */
.hidden {
    display: none;
}

.annual-note {
    font-size: 0.85rem;
    color: var(--success);
    margin-bottom: 1rem;
}

/* MODAL VIDEO */
.video-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

/* fundo escuro com blur */
.video-overlay {
    position: absolute;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    backdrop-filter: blur(8px);
    animation: fadeIn 0.3s ease;
}

/* container do vídeo */
.video-container {
    position: relative;
    width: 80%;
    max-width: 900px;
    aspect-ratio: 16/9;
    background: #000;
    border-radius: 20px;
    overflow: hidden;
    z-index: 2;
    box-shadow: 0 0 40px rgba(0, 180, 216, 0.4);
    transform: scale(0.8);
    animation: zoomIn 0.3s ease forwards;
}

/* iframe */
.video-container iframe {
    width: 100%;
    height: 100%;
}

.video-container video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* botão fechar */
.fechar {
    position: absolute;
    top: -40px;
    right: 0;
    font-size: 2rem;
    cursor: pointer;
    color: #fff;
}

/* animações */
@keyframes zoomIn {
    to {
        transform: scale(1);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}