/* ============================================
   Avizuai — Landing Page
   Baseado no protótipo docs/saude
   ============================================ */

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

:root {
    --primary: #0D9488;
    --deep: #115E59;
    --light: #CCFBF1;
    --slate-900: #0F172A;
    --slate-800: #1E293B;
    --slate-700: #334155;
    --slate-400: #94A3B8;
    --slate-300: #CBD5E1;
    --slate-100: #F1F5F9;
    --white: #FFFFFF;
}

body { font-family: 'Inter', sans-serif; color: var(--slate-900); line-height: 1.6; }
a { text-decoration: none; color: inherit; }

/* Navbar */
.navbar {
    position: fixed; top: 0; left: 0; right: 0; z-index: 100;
    display: flex; align-items: center; justify-content: space-between;
    padding: 0 48px; height: 72px;
    background: rgba(15, 23, 42, 0.92); backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255,255,255,0.06);
    transition: background 0.3s ease, box-shadow 0.3s ease;
}
.navbar.scrolled { background: rgba(15, 23, 42, 0.98); box-shadow: 0 2px 8px rgba(0,0,0,0.3); }
.navbar-brand { display: flex; align-items: center; gap: 12px; }
.navbar-brand svg { width: 38px; height: 38px; }
.navbar-brand span { font-size: 1.35rem; font-weight: 700; color: var(--white); letter-spacing: -0.5px; }
.navbar-links { display: flex; align-items: center; gap: 32px; }
.navbar-links a { color: var(--slate-300); font-size: 0.9rem; font-weight: 500; transition: color 0.2s; }
.navbar-links a:hover { color: var(--white); }
.navbar-actions { display: flex; align-items: center; gap: 12px; }
.menu-toggle { display: none; background: none; border: none; color: #fff; font-size: 1.4rem; cursor: pointer; padding: 0.25rem; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 22px; border-radius: 8px; font-family: inherit; font-size: 0.9rem; font-weight: 600; cursor: pointer; border: none; transition: all 0.2s; }
.btn-ghost { background: transparent; color: var(--slate-300); border: 1px solid rgba(255,255,255,0.15); }
.btn-ghost:hover { background: rgba(255,255,255,0.06); color: var(--white); }
.btn-primary { background: var(--primary); color: var(--white); }
.btn-primary:hover { background: #0F766E; transform: translateY(-1px); box-shadow: 0 4px 16px rgba(13,148,136,0.35); }
.btn-lg { padding: 14px 32px; font-size: 1rem; border-radius: 10px; }
.btn-outline-white { background: transparent; color: var(--white); border: 2px solid rgba(255,255,255,0.3); }
.btn-outline-white:hover { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.5); }

/* Hero */
.hero {
    min-height: 100vh; display: flex; align-items: center; justify-content: center;
    padding: 120px 48px 80px;
    background: linear-gradient(145deg, var(--deep) 0%, var(--slate-900) 100%);
    position: relative; overflow: hidden; text-align: center;
}
.hero::before {
    content: ''; position: absolute; top: 20%; left: 50%; transform: translateX(-50%);
    width: 700px; height: 700px; border-radius: 50%;
    background: radial-gradient(circle, rgba(13,148,136,0.15) 0%, transparent 70%);
    pointer-events: none;
}
.hero-content { position: relative; max-width: 800px; }
.hero-badge { display: inline-flex; align-items: center; gap: 8px; padding: 6px 16px; border-radius: 100px; background: rgba(13,148,136,0.15); border: 1px solid rgba(13,148,136,0.3); color: var(--light); font-size: 0.85rem; font-weight: 500; margin-bottom: 28px; }
.hero h1 { font-size: 3.5rem; font-weight: 800; color: var(--white); line-height: 1.15; letter-spacing: -1.5px; margin-bottom: 20px; }
.hero h1 em { font-style: normal; color: var(--primary); }
.hero p { font-size: 1.2rem; color: var(--slate-400); max-width: 600px; margin: 0 auto 36px; line-height: 1.7; }
.hero-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* Stats */
.stats-bar { display: grid; grid-template-columns: repeat(4, 1fr); background: var(--white); border-bottom: 1px solid #E2E8F0; }
.stat-item { padding: 36px 24px; text-align: center; border-right: 1px solid #E2E8F0; }
.stat-item:last-child { border-right: none; }
.stat-value { font-size: 2.2rem; font-weight: 800; color: var(--primary); letter-spacing: -1px; }
.stat-label { font-size: 0.85rem; color: var(--slate-700); margin-top: 4px; font-weight: 500; }

/* Sections */
section { padding: 96px 48px; }
.section-header { text-align: center; max-width: 600px; margin: 0 auto 56px; }
.section-header h2 { font-size: 2.2rem; font-weight: 800; letter-spacing: -0.8px; margin-bottom: 12px; color: var(--slate-900); }
.section-header p { font-size: 1.05rem; color: var(--slate-700); }

/* Features */
.features { background: var(--slate-100); }
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; max-width: 1100px; margin: 0 auto; }
.feature-card { background: var(--white); border-radius: 14px; padding: 32px; border: 1px solid #E2E8F0; transition: all 0.25s; }
.feature-card:hover { transform: translateY(-4px); box-shadow: 0 12px 32px rgba(0,0,0,0.08); border-color: var(--primary); }
.feature-icon { width: 48px; height: 48px; border-radius: 12px; background: var(--light); color: var(--primary); display: flex; align-items: center; justify-content: center; font-size: 1.2rem; margin-bottom: 18px; }
.feature-card h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 8px; }
.feature-card p { font-size: 0.9rem; color: var(--slate-700); line-height: 1.6; }

/* How it works */
.how-it-works { background: var(--white); }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px; max-width: 960px; margin: 0 auto; position: relative; }
.steps::before { content: ''; position: absolute; top: 36px; left: 15%; right: 15%; height: 2px; background: linear-gradient(90deg, var(--light), var(--primary), var(--light)); }
.step { text-align: center; position: relative; }
.step-number { width: 72px; height: 72px; border-radius: 50%; background: var(--primary); color: var(--white); font-size: 1.5rem; font-weight: 800; display: flex; align-items: center; justify-content: center; margin: 0 auto 20px; position: relative; z-index: 1; box-shadow: 0 4px 16px rgba(13,148,136,0.3); }
.step h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 8px; }
.step p { font-size: 0.9rem; color: var(--slate-700); }

/* Plans */
.plans { background: var(--slate-100); }
.plans-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; max-width: 1060px; margin: 0 auto; align-items: start; }
.plan-card { background: var(--white); border-radius: 16px; padding: 36px; border: 2px solid #E2E8F0; transition: all 0.25s; position: relative; }
.plan-card.featured { border-color: var(--primary); transform: scale(1.04); box-shadow: 0 16px 48px rgba(13,148,136,0.15); }
.plan-badge { position: absolute; top: -14px; left: 50%; transform: translateX(-50%); background: var(--primary); color: var(--white); padding: 4px 18px; border-radius: 100px; font-size: 0.78rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; }
.plan-name { font-size: 1.1rem; font-weight: 700; color: var(--slate-700); margin-bottom: 8px; }
.plan-price { font-size: 2.8rem; font-weight: 800; color: var(--slate-900); letter-spacing: -1px; }
.plan-price span { font-size: 0.9rem; font-weight: 500; color: var(--slate-400); }
.plan-desc { font-size: 0.85rem; color: var(--slate-400); margin: 8px 0 24px; }
.plan-features { list-style: none; margin-bottom: 28px; }
.plan-features li { padding: 8px 0; font-size: 0.9rem; color: var(--slate-700); display: flex; align-items: center; gap: 10px; }
.plan-features li i { color: var(--primary); font-size: 0.85rem; }
.plan-btn { width: 100%; }

/* API Preview */
.api-preview { background: var(--slate-900); color: var(--white); }
.api-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; max-width: 1100px; margin: 0 auto; align-items: start; }
.api-grid .section-header { text-align: left; margin: 0 0 24px; max-width: none; }
.api-grid .section-header h2 { color: var(--white); }
.api-grid .section-header p { color: var(--slate-400); }
.api-feature-list { list-style: none; padding: 0; margin-top: 24px; }
.api-feature-list li { display: flex; align-items: flex-start; gap: 10px; padding: 8px 0; font-size: 0.9rem; color: var(--slate-400); }
.api-feature-list li i { color: var(--primary); margin-top: 3px; flex-shrink: 0; }
.code-window { background: var(--slate-800); border: 1px solid rgba(255,255,255,0.06); border-radius: 14px; overflow: hidden; box-shadow: 0 20px 60px rgba(0,0,0,0.3); }
.code-window-header { display: flex; align-items: center; gap: 8px; padding: 14px 20px; background: rgba(255,255,255,0.03); border-bottom: 1px solid rgba(255,255,255,0.06); }
.code-dot { width: 10px; height: 10px; border-radius: 50%; }
.code-dot.red { background: #ff5f57; }
.code-dot.yellow { background: #febc2e; }
.code-dot.green { background: #28c840; }
.code-window-title { margin-left: 10px; font-size: 0.75rem; color: var(--slate-400); font-weight: 500; }
.code-window pre { padding: 24px; margin: 0; font-family: 'JetBrains Mono', 'Fira Code', monospace; font-size: 0.8rem; line-height: 1.7; color: var(--slate-400); overflow-x: auto; }
.code-window .code-keyword { color: #c792ea; }
.code-window .code-url { color: #82aaff; }
.code-window .code-comment { color: #546e7a; font-style: italic; }

/* Use Cases */
.use-cases { background: var(--slate-100); }
.use-cases-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; max-width: 1100px; margin: 0 auto; }
.use-case { text-align: center; padding: 32px 20px; background: var(--white); border: 1px solid #E2E8F0; border-radius: 14px; transition: all 0.25s; }
.use-case:hover { transform: translateY(-4px); box-shadow: 0 12px 32px rgba(0,0,0,0.08); }
.use-case-icon { width: 48px; height: 48px; border-radius: 12px; background: var(--light); color: var(--primary); display: flex; align-items: center; justify-content: center; margin: 0 auto 14px; font-size: 1.2rem; }
.use-case h4 { font-size: 0.95rem; font-weight: 600; color: var(--slate-900); }

/* FAQ */
.faq { background: var(--white); }
.faq-list { max-width: 720px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid #E2E8F0; }
.faq-item:first-child { border-top: 1px solid #E2E8F0; }
.faq-question { width: 100%; background: none; border: none; padding: 20px 0; display: flex; align-items: center; justify-content: space-between; cursor: pointer; text-align: left; font-size: 1rem; font-weight: 600; color: var(--slate-900); font-family: inherit; }
.faq-question i { transition: transform 0.3s ease; color: var(--slate-400); font-size: 0.8rem; }
.faq-item.open .faq-question i { transform: rotate(180deg); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.35s ease, padding 0.35s ease; }
.faq-item.open .faq-answer { max-height: 200px; padding-bottom: 20px; }
.faq-answer p { font-size: 0.9rem; color: var(--slate-700); line-height: 1.7; }

/* CTA */
.cta-section { background: linear-gradient(145deg, var(--deep) 0%, var(--slate-900) 100%); text-align: center; position: relative; }
.cta-section h2 { font-size: 2.2rem; font-weight: 800; color: var(--white); margin-bottom: 12px; }
.cta-section > p { color: var(--slate-400); margin-bottom: 40px; font-size: 1.05rem; }
.cta-form { max-width: 520px; margin: 0 auto; display: grid; gap: 16px; }
.cta-form input, .cta-form select { width: 100%; padding: 14px 16px; border-radius: 10px; border: 1px solid rgba(255,255,255,0.12); background: rgba(255,255,255,0.06); color: var(--white); font-family: inherit; font-size: 0.95rem; outline: none; transition: border-color 0.2s; }
.cta-form input::placeholder { color: var(--slate-400); }
.cta-form input:focus, .cta-form select:focus { border-color: var(--primary); }
.cta-form .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.cta-form .btn { width: 100%; }
.cta-feedback { margin-top: 16px; font-size: 0.9rem; font-weight: 500; }
.cta-feedback.success { color: var(--primary); }
.cta-feedback.error { color: #ef4444; }

/* Footer */
.footer { background: var(--slate-900); padding: 48px 48px 24px; border-top: 1px solid rgba(255,255,255,0.06); }
.footer-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 32px; }
.footer-brand { display: flex; align-items: center; gap: 12px; }
.footer-brand svg { width: 32px; height: 32px; }
.footer-brand span { font-size: 1.15rem; font-weight: 700; color: var(--white); }
.footer-links { display: flex; gap: 28px; }
.footer-links a { color: var(--slate-400); font-size: 0.85rem; transition: color 0.2s; }
.footer-links a:hover { color: var(--white); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.06); padding-top: 20px; display: flex; justify-content: space-between; align-items: center; }
.footer-bottom p { color: var(--slate-400); font-size: 0.8rem; }
.footer-bottom a { color: var(--primary); }

/* Responsive */
@media (max-width: 768px) {
    .navbar { padding: 0 20px; }
    .navbar-links { display: none; }
    .navbar-links.open { display: flex; flex-direction: column; position: absolute; top: 72px; left: 0; right: 0; background: rgba(15, 23, 42, 0.97); backdrop-filter: blur(12px); padding: 24px 20px; gap: 16px; border-bottom: 1px solid rgba(255,255,255,0.06); }
    .menu-toggle { display: block; }
    .navbar-actions .btn-ghost { display: none; }
    .hero { padding: 100px 20px 60px; }
    .hero h1 { font-size: 2.2rem; }
    .stats-bar { grid-template-columns: repeat(2, 1fr); }
    .stat-item:nth-child(2) { border-right: none; }
    section { padding: 60px 20px; }
    .features-grid, .plans-grid, .steps, .use-cases-grid { grid-template-columns: 1fr; }
    .api-grid { grid-template-columns: 1fr; }
    .steps::before { display: none; }
    .plan-card.featured { transform: none; }
    .cta-form .form-row { grid-template-columns: 1fr; }
    .footer { padding: 32px 20px 16px; }
    .footer-top { flex-direction: column; gap: 20px; }
    .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
}
