/* ============================================
   DESIGN SYSTEM — agendamento Landing Page
   Dark theme, SaaS Premium, Conversão.
   ============================================ */

:root {
    /* Core palette */
    --primary: #16A0B5;
    --primary-light: #7DD3E1;
    --primary-dark: #0A6B7A;
    --primary-50: rgba(22, 160, 181, 0.08);
    --primary-100: rgba(22, 160, 181, 0.15);

    /* Backgrounds */
    --bg-dark: #0B0F1A;
    --bg-card: #111827;
    --bg-card-hover: #1a2332;
    --bg-surface: #151C2C;

    /* Text */
    --text-primary: #F1F5F9;
    --text-secondary: #94A3B8;
    --text-muted: #64748B;

    /* Borders */
    --border: rgba(255,255,255,0.06);
    --border-hover: rgba(255,255,255,0.12);

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 50%, var(--primary-light) 100%);
    --gradient-text: linear-gradient(135deg, var(--primary), var(--primary-light));
    --gradient-hero: radial-gradient(ellipse at 30% 0%, rgba(22,160,181,0.15) 0%, transparent 60%);

    /* Typography */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;

    /* Sizing */
    --max-width: 1200px;
    --nav-height: 72px;
    --radius: 14px;
    --radius-lg: 22px;
    --radius-xl: 28px;

    /* Shadows */
    --shadow-glow: 0 0 60px rgba(22, 160, 181, 0.15);
    --shadow-card: 0 4px 24px rgba(0,0,0,0.3);
    --shadow-primary: 0 8px 30px rgba(22, 160, 181, 0.3);

    /* Transitions */
    --ease: cubic-bezier(0.16, 1, 0.3, 1);
    --transition: all 0.4s var(--ease);
    --transition-fast: all 0.25s var(--ease);
}

/* --- RESET --- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: var(--font-body);
    background: var(--bg-dark);
    color: var(--text-secondary);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}
h1,h2,h3,h4,h5 { font-family: var(--font-heading); color: var(--text-primary); line-height: 1.15; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 clamp(20px, 5vw, 40px);
}
.text-center { text-align: center; }

/* --- Gradient Text --- */
.gradient-text {
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* --- Tags / Badges --- */
.section-tag {
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--primary);
    background: var(--primary-50);
    padding: 6px 18px;
    border-radius: 30px;
    border: 1px solid var(--primary-100);
    margin-bottom: 16px;
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 13px 28px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.92rem;
    font-family: var(--font-body);
    transition: var(--transition);
    cursor: pointer;
    border: none;
    position: relative;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: var(--shadow-primary);
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(22,160,181,0.4);
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    border: 2px solid rgba(22,160,181,0.4);
}
.btn-outline:hover {
    background: var(--primary-50);
    border-color: var(--primary);
    transform: translateY(-2px);
}

.btn-outline-light {
    background: transparent;
    color: var(--text-primary);
    border: 2px solid var(--border-hover);
}
.btn-outline-light:hover {
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-2px);
}

.btn-ghost-nav {
    background: transparent;
    color: var(--text-secondary);
}
.btn-ghost-nav:hover { color: var(--primary); }

.btn-xl { padding: 16px 34px; font-size: 1rem; }
.btn-full { width: 100%; }

.glow-btn::after {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: inherit;
    background: var(--gradient-primary);
    z-index: -1;
    filter: blur(14px);
    opacity: 0.35;
    transition: var(--transition);
}
.glow-btn:hover::after { opacity: 0.6; filter: blur(20px); }

/* ============================================
   NAVBAR
   ============================================ */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(11, 15, 26, 0.7);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
    transition: var(--transition);
}

.navbar.scrolled {
    background: rgba(11, 15, 26, 0.95);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--nav-height);
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.4rem;
    color: var(--text-primary);
    text-decoration: none;
}

.logo span { color: var(--primary); }
.logo-mark { font-size: 1.5rem; }

.nav-links {
    display: flex;
    gap: 28px;
}

.nav-links a {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: var(--transition-fast);
}
.nav-links a:hover, .nav-links a.active { color: var(--primary); }

.nav-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}
.hamburger span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: var(--transition-fast);
}

/* ============================================
   HERO
   ============================================ */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: calc(var(--nav-height) + 40px);
    padding-bottom: 60px;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-gradient {
    position: absolute;
    inset: 0;
    background: var(--gradient-hero);
}

.hero-grid-pattern {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
    background-size: 60px 60px;
}

.hero-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
}

.glow-1 {
    top: 10%;
    left: 15%;
    width: 400px;
    height: 400px;
    background: rgba(22, 160, 181, 0.08);
    animation: glowPulse 8s ease-in-out infinite;
}

.glow-2 {
    bottom: 10%;
    right: 10%;
    width: 300px;
    height: 300px;
    background: rgba(125, 211, 225, 0.05);
    animation: glowPulse 10s ease-in-out infinite reverse;
}

@keyframes glowPulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.2); opacity: 0.7; }
}

.hero-container {
    display: flex;
    align-items: center;
    gap: 50px;
    position: relative;
    z-index: 1;
}

.hero-content { flex: 1.1; }

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--primary-50);
    border: 1px solid var(--primary-100);
    padding: 8px 20px;
    border-radius: 30px;
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--primary-light);
    margin-bottom: 28px;
}

.badge-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--primary);
    animation: dotPulse 2s ease-in-out infinite;
}

@keyframes dotPulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(0.8); }
}

.hero-title {
    font-size: clamp(2.4rem, 5vw, 3.8rem);
    line-height: 1.1;
    margin-bottom: 22px;
    letter-spacing: -0.5px;
}

.hero-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 540px;
    margin-bottom: 36px;
    line-height: 1.8;
}

.hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

/* Integration badges */
.hero-logos {
    display: flex;
    align-items: center;
    gap: 16px;
}

.hero-logos > span {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.integration-badges {
    display: flex;
    gap: 10px;
}

.integration-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.78rem;
    color: var(--text-secondary);
}

/* Hero Visual — Mockup */
.hero-visual {
    flex: 0.9;
    position: relative;
}

.hero-mockup {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-card), var(--shadow-glow);
}

.mockup-header {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 20px;
    border-bottom: 1px solid var(--border);
    background: var(--bg-surface);
}

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

.mockup-dots span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--border);
}

.mockup-dots span:nth-child(1) { background: #FF5F57; }
.mockup-dots span:nth-child(2) { background: #FFBD2E; }
.mockup-dots span:nth-child(3) { background: #28C840; }

.mockup-url {
    font-size: 0.75rem;
    color: var(--text-muted);
    background: rgba(255,255,255,0.04);
    padding: 4px 14px;
    border-radius: 6px;
    flex: 1;
    text-align: center;
}

.mockup-body {
    padding: 28px;
}

.mock-card {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
}

.mock-avatar {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: var(--gradient-primary);
    color: white;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
}

.mock-name {
    color: var(--text-primary);
    font-weight: 600;
    font-size: 1rem;
}

.mock-specialty {
    color: var(--text-muted);
    font-size: 0.82rem;
}

.mock-divider {
    height: 1px;
    background: var(--border);
    margin: 16px 0;
}

.mock-label {
    font-size: 0.82rem;
    color: var(--text-muted);
    margin-bottom: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.mock-slots {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 20px;
}

.mock-slot {
    padding: 10px;
    border-radius: 10px;
    text-align: center;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
    background: var(--bg-surface);
    border: 1px solid var(--border);
    cursor: pointer;
    transition: var(--transition-fast);
}

.mock-slot:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.mock-slot.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.mock-btn {
    background: var(--gradient-primary);
    color: white;
    padding: 14px;
    border-radius: 12px;
    text-align: center;
    font-weight: 600;
    font-size: 0.92rem;
}

/* Notifications */
.hero-notification {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    padding: 14px 20px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-card);
    min-width: 260px;
}

.notif-1 {
    top: 20px;
    right: -30px;
    animation: floatNotif 5s ease-in-out infinite;
}

.notif-2 {
    bottom: 40px;
    left: -40px;
    animation: floatNotif 6s ease-in-out infinite reverse;
}

@keyframes floatNotif {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
}

.notif-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}

.notif-whatsapp { background: #25D366; }
.notif-calendar { background: var(--primary-50); }

.hero-notification strong {
    display: block;
    font-size: 0.82rem;
    color: var(--text-primary);
}

.hero-notification small {
    font-size: 0.72rem;
    color: var(--text-muted);
}

/* ============================================
   SECTIONS COMMON
   ============================================ */
.section {
    padding: clamp(80px, 12vw, 140px) 0;
}

.section-header {
    margin-bottom: 60px;
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 14px;
}

.section-subtitle {
    font-size: 1.05rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* ============================================
   FEATURES SECTION
   ============================================ */
.features-section {
    background: var(--bg-surface);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
}

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 36px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 2px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transform-origin: left;
    transition: var(--transition);
}

.feature-card:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-hover);
    transform: translateY(-6px);
    box-shadow: var(--shadow-card);
}

.feature-card:hover::before {
    transform: scaleX(1);
}

.feature-icon-wrap {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: var(--primary-50);
    border: 1px solid var(--primary-100);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 22px;
    color: var(--primary);
    transition: var(--transition);
}

.feature-card:hover .feature-icon-wrap {
    background: var(--primary);
    color: white;
}

.feature-icon-wrap.whatsapp { color: #25D366; border-color: rgba(37,211,102,0.2); background: rgba(37,211,102,0.08); }
.feature-card:hover .feature-icon-wrap.whatsapp { background: #25D366; color: white; }

.feature-icon-wrap.google { color: #4285F4; border-color: rgba(66,133,244,0.2); background: rgba(66,133,244,0.08); }
.feature-card:hover .feature-icon-wrap.google { background: #4285F4; color: white; }

.feature-icon-wrap.email { color: #EA4335; border-color: rgba(234,67,53,0.2); background: rgba(234,67,53,0.08); }
.feature-card:hover .feature-icon-wrap.email { background: #EA4335; color: white; }

.feature-card h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.feature-card p {
    color: var(--text-secondary);
    font-size: 0.92rem;
    line-height: 1.7;
}

/* ============================================
   HOW IT WORKS
   ============================================ */
.steps-grid {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 0;
}

.step-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 36px;
    text-align: center;
    flex: 1;
    max-width: 320px;
    transition: var(--transition);
}

.step-card:hover {
    transform: translateY(-6px);
    border-color: var(--primary-100);
}

.step-number {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 900;
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 18px;
}

.step-card h3 {
    font-size: 1.15rem;
    margin-bottom: 10px;
}

.step-card p {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.step-connector {
    display: flex;
    align-items: center;
    padding-top: 50px;
    color: var(--text-muted);
}

/* ============================================
   PRICING
   ============================================ */
.pricing-section {
    background: var(--bg-surface);
    border-top: 1px solid var(--border);
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    align-items: start;
}

.pricing-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 40px;
    transition: var(--transition);
    position: relative;
}

.pricing-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-card);
}

.pricing-card.featured {
    border-color: var(--primary);
    background: linear-gradient(180deg, rgba(22,160,181,0.06), var(--bg-card));
    box-shadow: var(--shadow-glow);
}

.pricing-badge {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--gradient-primary);
    color: white;
    padding: 6px 20px;
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.pricing-header {
    margin-bottom: 28px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border);
}

.pricing-header h3 {
    font-size: 1.3rem;
    margin-bottom: 14px;
    color: var(--primary);
}

.pricing-price {
    display: flex;
    align-items: baseline;
    gap: 4px;
    margin-bottom: 10px;
}

.currency {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-muted);
}

.amount {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1;
}

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

.pricing-desc {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.pricing-features {
    margin-bottom: 30px;
}

.pricing-features li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 0;
    font-size: 0.92rem;
    color: var(--text-secondary);
    border-bottom: 1px solid rgba(255,255,255,0.03);
}

.pricing-features li.disabled {
    opacity: 0.4;
}

/* ============================================
   FAQ
   ============================================ */
.faq-grid {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin-bottom: 12px;
    overflow: hidden;
    transition: var(--transition);
}

.faq-item:hover {
    border-color: var(--border-hover);
}

.faq-item summary {
    cursor: pointer;
    padding: 20px 28px;
    font-weight: 600;
    color: var(--text-primary);
    font-size: 1rem;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
    content: '+';
    font-size: 1.5rem;
    color: var(--primary);
    transition: var(--transition-fast);
}

.faq-item[open] summary::after {
    transform: rotate(45deg);
}

.faq-item p {
    padding: 0 28px 22px;
    color: var(--text-secondary);
    font-size: 0.92rem;
    line-height: 1.8;
}

/* ============================================
   CTA FINAL
   ============================================ */
.cta-final-section {
    padding: 80px 0 100px;
}

.cta-final-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: clamp(40px, 8vw, 80px);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-final-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(22,160,181,0.1), transparent 70%);
}

.cta-final-card h2 {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    margin-bottom: 16px;
    position: relative;
}

.cta-final-card p {
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto 36px;
    color: var(--text-secondary);
    position: relative;
}

.cta-final-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    position: relative;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    border-top: 1px solid var(--border);
    padding-top: 60px;
}

.footer-container {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid var(--border);
}

.footer-brand p {
    margin-top: 14px;
    font-size: 0.88rem;
    max-width: 320px;
    line-height: 1.7;
}

.footer .logo { color: var(--text-primary); }

.footer-links-col h4 {
    font-size: 0.88rem;
    margin-bottom: 18px;
    color: var(--text-primary);
}

.footer-links-col a {
    display: block;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 10px;
    transition: var(--transition-fast);
}

.footer-links-col a:hover {
    color: var(--primary);
    padding-left: 4px;
}

.footer-bottom {
    display: flex;
    justify-content: center;
    padding: 24px 0;
    font-size: 0.78rem;
    color: var(--text-muted);
}

/* ============================================
   ANIMATIONS
   ============================================ */
[data-animate] {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

[data-animate].visible {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 968px) {
    .nav-links, .nav-right { display: none; }
    .hamburger { display: flex; }

    .nav-links.mobile-open {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: var(--nav-height);
        left: 0; right: 0;
        background: rgba(11,15,26,0.98);
        backdrop-filter: blur(20px);
        padding: 20px;
        gap: 14px;
        border-bottom: 1px solid var(--border);
    }

    .hero-container { flex-direction: column; text-align: center; }
    .hero-subtitle { margin: 0 auto 28px; }
    .hero-actions { justify-content: center; }
    .hero-logos { justify-content: center; flex-wrap: wrap; }
    .hero-notification { display: none; }

    .steps-grid { flex-direction: column; align-items: center; }
    .step-connector { transform: rotate(90deg); padding: 10px 0; }

    .footer-container { grid-template-columns: 1fr; text-align: center; }
    .footer-brand p { margin: 14px auto 0; }
    .footer-bottom { text-align: center; }
}

@media (max-width: 500px) {
    .hero-actions, .cta-final-actions { flex-direction: column; align-items: center; }
    .integration-badges { flex-wrap: wrap; justify-content: center; }
    .features-grid { grid-template-columns: 1fr; }
    .pricing-grid { grid-template-columns: 1fr; }
}
