/* ============================================
   LOCUS.IA v2 — INSTITUTIONAL TRUST-FIRST DESIGN
   Targeting: Senior Lawyers (40+), skeptical, evidence-driven
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Playfair+Display:wght@400;500;600;700&display=swap');

:root {
    --bg-deep: #060A13;
    --bg-dark: #0B1120;
    --bg-card: #111827;
    --bg-elevated: #1A2332;
    --primary: #2563EB;
    --primary-soft: #3B82F6;
    --primary-glow: rgba(37, 99, 235, 0.15);
    --gold: #D4A853;
    --gold-soft: rgba(212, 168, 83, 0.12);
    --text-white: #F1F5F9;
    --text-light: #CBD5E1;
    --text-muted: #64748B;
    --border: rgba(255,255,255,0.06);
    --border-hover: rgba(255,255,255,0.12);
    --success: #10B981;
    --danger: #DC2626;
    --font-heading: 'Playfair Display', Georgia, serif;
    --font-body: 'Inter', -apple-system, sans-serif;
    --radius: 16px;
    --radius-sm: 10px;
    --shadow-lg: 0 25px 60px rgba(0,0,0,0.5);
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    background: var(--bg-deep);
    color: var(--text-light);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

.container { max-width: 1140px; margin: 0 auto; padding: 0 24px; }

h1, h2, h3 { font-family: var(--font-heading); color: #fff; font-weight: 600; }
h4, h5 { font-family: var(--font-body); color: #fff; font-weight: 600; }

a { text-decoration: none; color: inherit; transition: all 0.3s ease; }

/* ==================== NAVBAR ==================== */
.v2-nav {
    position: fixed; top: 0; width: 100%; z-index: 1000;
    padding: 18px 0;
    background: rgba(6, 10, 19, 0.85);
    backdrop-filter: blur(20px) saturate(1.4);
    border-bottom: 1px solid var(--border);
}
.v2-nav .nav-inner {
    display: flex; justify-content: space-between; align-items: center;
}
.v2-nav .brand {
    display: flex; align-items: center; gap: 10px;
    font-family: var(--font-body); font-weight: 800; font-size: 1.5rem;
    letter-spacing: -0.5px; color: #fff;
}
.v2-nav .brand img { height: 30px; }
.v2-nav .brand .dot { color: var(--primary-soft); }
.v2-nav .nav-links { display: flex; gap: 28px; align-items: center; }
.v2-nav .nav-links a {
    color: var(--text-muted); font-size: 0.88rem; font-weight: 500;
    transition: color 0.25s;
}
.v2-nav .nav-links a:hover { color: #fff; }
.v2-nav .nav-cta {
    background: var(--primary); color: #fff;
    padding: 10px 24px; border-radius: 8px;
    font-weight: 600; font-size: 0.88rem;
    border: none; cursor: pointer;
    transition: all 0.3s;
}
.v2-nav .nav-cta:hover {
    background: #1d4ed8;
    box-shadow: 0 8px 24px rgba(37, 99, 235, 0.35);
    transform: translateY(-1px);
}

/* ==================== HERO ==================== */
.v2-hero {
    padding: 160px 0 100px;
    position: relative;
    overflow: hidden;
}
.v2-hero::before {
    content: '';
    position: absolute; top: -200px; right: -300px;
    width: 900px; height: 900px;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.08) 0%, transparent 65%);
    pointer-events: none;
}
.hero-grid {
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 64px; align-items: center;
    position: relative; z-index: 2;
}
.hero-badge {
    display: inline-flex; align-items: center; gap: 8px;
    background: var(--gold-soft);
    border: 1px solid rgba(212, 168, 83, 0.25);
    padding: 6px 16px; border-radius: 100px;
    font-size: 0.82rem; font-weight: 600;
    color: var(--gold); margin-bottom: 24px;
}
.v2-hero h1 {
    font-size: 3.2rem; line-height: 1.15;
    margin-bottom: 28px; font-weight: 600;
    letter-spacing: -0.5px;
}
.v2-hero h1 em {
    font-style: normal;
    color: var(--primary-soft);
}
.hero-subtitle {
    font-size: 1.15rem; color: var(--text-light);
    max-width: 520px; margin-bottom: 16px; line-height: 1.7;
}
.hero-trust-line {
    display: flex; align-items: center; gap: 10px;
    background: rgba(16, 185, 129, 0.06);
    border: 1px solid rgba(16, 185, 129, 0.15);
    border-radius: var(--radius-sm); padding: 14px 18px;
    margin: 24px 0 36px; max-width: 520px;
}
.hero-trust-line svg { flex-shrink: 0; }
.hero-trust-line p {
    font-size: 0.9rem; color: var(--text-light); font-weight: 500;
    line-height: 1.5;
}
.hero-trust-line strong { color: #10B981; }
.hero-cta-group { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.btn-main {
    background: var(--primary); color: #fff;
    padding: 16px 36px; border-radius: var(--radius-sm);
    font-weight: 700; font-size: 1rem;
    border: none; cursor: pointer;
    transition: all 0.3s;
    display: inline-block;
}
.btn-main:hover {
    background: #1d4ed8; transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(37, 99, 235, 0.4);
}
.btn-ghost {
    background: transparent; color: var(--text-light);
    padding: 16px 28px; border-radius: var(--radius-sm);
    font-weight: 600; font-size: 0.95rem;
    border: 1px solid var(--border-hover);
    cursor: pointer; transition: all 0.3s;
    display: inline-block;
}
.btn-ghost:hover {
    border-color: var(--primary-soft); color: #fff;
    background: rgba(37, 99, 235, 0.05);
}
.hero-caption {
    font-size: 0.82rem; color: var(--text-muted);
    margin-top: 12px;
}
.hero-video-wrap {
    position: relative; border-radius: 16px; overflow: hidden;
    border: 1px solid var(--border-hover);
    box-shadow: var(--shadow-lg);
}
.hero-video-wrap video { width: 100%; display: block; border-radius: 16px; }
.hero-video-badge {
    position: absolute; top: 14px; right: 14px;
    background: rgba(16, 185, 129, 0.9); color: #fff;
    padding: 5px 12px; border-radius: 100px;
    font-size: 0.75rem; font-weight: 700;
    backdrop-filter: blur(8px);
}

/* ==================== TRUST BAR ==================== */
.trust-bar {
    padding: 48px 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    background: var(--bg-dark);
}
.trust-items {
    display: flex; justify-content: center;
    gap: 48px; flex-wrap: wrap; align-items: center;
}
.trust-item {
    display: flex; align-items: center; gap: 12px;
    color: var(--text-muted); font-size: 0.88rem; font-weight: 500;
}
.trust-item .icon {
    width: 40px; height: 40px; border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.2rem;
    background: rgba(255,255,255,0.03); border: 1px solid var(--border);
}

/* ==================== SECTION COMMON ==================== */
.section-label {
    color: var(--primary-soft); font-weight: 600;
    font-size: 0.78rem; letter-spacing: 2.5px;
    text-transform: uppercase; display: block;
    margin-bottom: 14px;
}
.section-title {
    font-size: 2.6rem; margin-bottom: 18px;
    line-height: 1.2; letter-spacing: -0.3px;
}
.section-desc {
    color: var(--text-light); font-size: 1.05rem;
    max-width: 680px; line-height: 1.7;
}
.section-center { text-align: center; }
.section-center .section-desc { margin: 0 auto; }

/* ==================== PROBLEM SECTION ==================== */
.problem-section { padding: 100px 0; background: var(--bg-deep); }
.problem-grid {
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 32px; margin-top: 56px;
}
.problem-card {
    padding: 36px; border-radius: var(--radius);
    border: 1px solid var(--border); position: relative;
    transition: all 0.35s;
}
.problem-card.risk {
    background: rgba(220, 38, 38, 0.03);
    border-color: rgba(220, 38, 38, 0.15);
}
.problem-card.safe {
    background: rgba(16, 185, 129, 0.03);
    border-color: rgba(16, 185, 129, 0.15);
}
.problem-card .card-icon {
    width: 48px; height: 48px; border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.4rem; margin-bottom: 20px;
}
.problem-card.risk .card-icon { background: rgba(220, 38, 38, 0.1); }
.problem-card.safe .card-icon { background: rgba(16, 185, 129, 0.1); }
.problem-card h4 { font-size: 1.15rem; margin-bottom: 12px; }
.problem-card p { color: var(--text-muted); font-size: 0.92rem; line-height: 1.65; }
.problem-card ul {
    list-style: none; margin-top: 16px; padding: 0;
}
.problem-card ul li {
    padding: 8px 0; font-size: 0.9rem;
    display: flex; align-items: flex-start; gap: 10px;
    color: var(--text-light);
}

/* ==================== ARCHITECTURE SECTION ==================== */
.arch-section {
    padding: 100px 0; background: var(--bg-dark);
    border-top: 1px solid var(--border);
}
.arch-flow {
    display: flex; gap: 0; margin-top: 56px;
    position: relative; align-items: stretch;
}
.arch-step {
    flex: 1; padding: 36px 28px;
    border: 1px solid var(--border);
    background: var(--bg-card);
    position: relative;
    transition: all 0.3s;
}
.arch-step:first-child { border-radius: var(--radius) 0 0 var(--radius); }
.arch-step:last-child { border-radius: 0 var(--radius) var(--radius) 0; }
.arch-step:hover { border-color: var(--primary-soft); z-index: 2; }
.arch-step .step-num {
    display: inline-flex; align-items: center; justify-content: center;
    width: 32px; height: 32px; border-radius: 8px;
    background: var(--primary-glow); color: var(--primary-soft);
    font-weight: 800; font-size: 0.85rem; margin-bottom: 16px;
}
.arch-step h4 { font-size: 1.05rem; margin-bottom: 10px; }
.arch-step p { font-size: 0.85rem; color: var(--text-muted); line-height: 1.6; }
.arch-step .legal-ref {
    margin-top: 14px; padding: 10px 12px;
    background: rgba(37, 99, 235, 0.05);
    border-left: 2px solid var(--primary-soft);
    border-radius: 0 6px 6px 0;
    font-size: 0.78rem; color: var(--text-muted);
    line-height: 1.5;
}
.arch-step .legal-ref strong { color: var(--primary-soft); }
.arch-arrow {
    display: flex; align-items: center; justify-content: center;
    color: var(--text-muted); font-size: 1.4rem; padding: 0 4px;
    z-index: 3;
}

/* ==================== CAPABILITIES ==================== */
.cap-section { padding: 100px 0; background: var(--bg-deep); }
.cap-grid {
    display: grid; grid-template-columns: repeat(3, 1fr);
    gap: 24px; margin-top: 56px;
}
.cap-card {
    background: var(--bg-card); padding: 36px; border-radius: var(--radius);
    border: 1px solid var(--border); transition: all 0.35s;
    position: relative; overflow: hidden;
}
.cap-card::after {
    content: ''; position: absolute;
    top: 0; left: 0; right: 0; height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary-soft), transparent);
    opacity: 0; transition: opacity 0.35s;
}
.cap-card:hover { border-color: var(--border-hover); transform: translateY(-4px); }
.cap-card:hover::after { opacity: 1; }
.cap-card .cap-icon {
    width: 48px; height: 48px; border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.4rem; margin-bottom: 20px;
    background: var(--primary-glow);
}
.cap-card h4 { font-size: 1.1rem; margin-bottom: 10px; }
.cap-card p { font-size: 0.88rem; color: var(--text-muted); line-height: 1.6; }
.cap-card .tag-new {
    display: inline-block; background: rgba(212, 168, 83, 0.12);
    color: var(--gold); padding: 2px 10px; border-radius: 100px;
    font-size: 0.7rem; font-weight: 700; margin-left: 8px;
    vertical-align: middle; letter-spacing: 0.5px;
}

/* ==================== USE CASES ==================== */
.cases-section {
    padding: 100px 0; background: var(--bg-dark);
    border-top: 1px solid var(--border);
}
.case-card {
    display: grid; grid-template-columns: auto 1fr;
    gap: 24px; padding: 32px; border-radius: var(--radius);
    background: var(--bg-card); border: 1px solid var(--border);
    margin-bottom: 20px; transition: border-color 0.3s;
}
.case-card:hover { border-color: var(--border-hover); }
.case-num {
    width: 48px; height: 48px; border-radius: 12px;
    background: var(--primary-glow);
    display: flex; align-items: center; justify-content: center;
    font-weight: 800; color: var(--primary-soft); font-size: 1.1rem;
}
.case-card h4 { font-size: 1.05rem; margin-bottom: 6px; }
.case-card .case-prompt {
    font-family: 'Courier New', monospace;
    background: rgba(0,0,0,0.3); padding: 10px 14px;
    border-radius: 8px; font-size: 0.85rem;
    color: var(--primary-soft); margin-top: 10px;
    border-left: 2px solid var(--primary);
}
.case-card p { color: var(--text-muted); font-size: 0.9rem; }

/* ==================== PRICING ==================== */
.pricing-section { padding: 100px 0; background: var(--bg-deep); }
.pricing-grid {
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 28px; max-width: 820px; margin: 56px auto 0;
}
.price-card {
    background: var(--bg-card); padding: 40px;
    border-radius: var(--radius); border: 1px solid var(--border);
    text-align: center; position: relative; transition: all 0.35s;
}
.price-card.featured {
    border: 2px solid var(--primary-soft);
    box-shadow: 0 0 48px rgba(37, 99, 235, 0.1);
    transform: scale(1.03);
}
.price-card .badge-pop {
    position: absolute; top: 0; left: 50%;
    transform: translate(-50%, -50%);
    background: var(--primary); color: #fff;
    padding: 5px 16px; border-radius: 100px;
    font-size: 0.75rem; font-weight: 700;
}
.price-card h3 { font-family: var(--font-body); font-size: 1.25rem; margin-bottom: 8px; }
.price-val {
    font-size: 2.8rem; font-weight: 800; color: #fff;
    margin: 8px 0 4px; font-family: var(--font-body);
}
.price-val span { font-size: 0.95rem; color: var(--text-muted); font-weight: 400; }
.price-sub { color: var(--success); font-weight: 600; font-size: 0.88rem; margin-bottom: 24px; }
.price-features {
    list-style: none; margin: 24px 0; text-align: left;
}
.price-features li {
    padding: 8px 0; font-size: 0.9rem; color: var(--text-light);
    display: flex; align-items: center; gap: 10px;
}
.price-features li .check { color: var(--success); font-weight: 700; }
.btn-price {
    display: block; width: 100%; padding: 14px;
    border-radius: var(--radius-sm); font-weight: 700;
    font-size: 0.95rem; text-align: center;
    transition: all 0.3s; cursor: pointer; border: none;
    margin-bottom: 10px;
}
.btn-price.solid { background: var(--primary); color: #fff; }
.btn-price.solid:hover { background: #1d4ed8; box-shadow: 0 8px 24px rgba(37,99,235,0.3); }
.btn-price.outline {
    background: transparent; color: var(--primary-soft);
    border: 1px solid rgba(37,99,235,0.3);
}
.btn-price.outline:hover { background: rgba(37,99,235,0.05); }
.guarantee-line {
    display: flex; align-items: center; justify-content: center;
    gap: 8px; margin-top: 28px; text-align: center;
    color: var(--text-muted); font-size: 0.85rem;
}
.guarantee-line svg { flex-shrink: 0; }

/* ==================== FAQ ==================== */
.faq-section { padding: 100px 0; background: var(--bg-dark); border-top: 1px solid var(--border); }
.faq-list { max-width: 760px; margin: 56px auto 0; }
.faq-item {
    border: 1px solid var(--border); border-radius: var(--radius-sm);
    margin-bottom: 12px; overflow: hidden; background: var(--bg-card);
    transition: border-color 0.3s;
}
.faq-item:hover { border-color: var(--border-hover); }
.faq-question {
    padding: 20px 24px; cursor: pointer;
    font-weight: 600; font-size: 0.95rem; color: #fff;
    display: flex; justify-content: space-between; align-items: center;
}
.faq-question::after {
    content: '+'; font-size: 1.3rem; color: var(--primary-soft);
    transition: transform 0.3s;
}
.faq-item.active .faq-question::after { content: '−'; }
.faq-answer {
    padding: 0 24px 20px; display: none;
    color: var(--text-muted); font-size: 0.9rem; line-height: 1.7;
}
.faq-item.active .faq-answer { display: block; }

/* ==================== FINAL CTA ==================== */
.final-cta-section {
    padding: 100px 0; text-align: center;
    background: radial-gradient(ellipse at center, rgba(37, 99, 235, 0.08) 0%, transparent 70%);
}
.final-cta-section h2 { margin-bottom: 16px; }
.final-cta-section p { color: var(--text-muted); margin-bottom: 36px; }

/* ==================== FOOTER ==================== */
.v2-footer {
    padding: 60px 0 40px;
    border-top: 1px solid var(--border);
    background: var(--bg-deep);
}
.footer-inner {
    display: flex; justify-content: space-between;
    align-items: center; flex-wrap: wrap; gap: 24px;
}
.footer-brand { font-weight: 800; font-size: 1.2rem; color: #fff; }
.footer-links-v2 { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-links-v2 a { color: var(--text-muted); font-size: 0.85rem; }
.footer-links-v2 a:hover { color: #fff; }
.footer-legal { margin-top: 24px; font-size: 0.78rem; color: var(--text-muted); }

/* ==================== WHATSAPP FLOAT ==================== */
.wa-float {
    position: fixed; bottom: 32px; right: 32px; z-index: 999;
    background: #25D366; width: 56px; height: 56px;
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    box-shadow: 0 8px 24px rgba(37, 211, 102, 0.35);
    transition: all 0.3s;
}
.wa-float:hover { transform: scale(1.08); }
.wa-float img { width: 30px; }

/* ==================== MODAL ==================== */
.modal-overlay {
    position: fixed; inset: 0; z-index: 9999;
    background: rgba(0,0,0,0.8); backdrop-filter: blur(8px);
    display: flex; align-items: center; justify-content: center;
}
.modal-box {
    background: var(--bg-card); padding: 40px;
    border-radius: 20px; max-width: 440px; width: 92%;
    border: 1px solid var(--border-hover);
    box-shadow: var(--shadow-lg); position: relative; text-align: center;
}
.modal-box h3 { font-family: var(--font-body); font-size: 1.5rem; margin-bottom: 8px; }
.modal-box .modal-sub { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 24px; line-height: 1.5; }
.modal-box .close-btn {
    position: absolute; top: 14px; right: 18px;
    background: none; border: none; color: var(--text-muted);
    font-size: 24px; cursor: pointer;
}
.modal-box input {
    width: 100%; padding: 14px 16px; border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.08);
    background: var(--bg-elevated); color: #fff;
    font-size: 0.95rem; outline: none; margin-bottom: 12px;
}
.modal-box input:focus { border-color: var(--primary-soft); }
.modal-box .wa-group {
    display: flex; border-radius: 10px; overflow: hidden;
    border: 1px solid rgba(255,255,255,0.08); margin-bottom: 12px;
}
.modal-box .wa-prefix {
    background: rgba(255,255,255,0.05); color: var(--text-muted);
    padding: 14px 14px; font-weight: 700; font-size: 0.95rem;
    border-right: 1px solid rgba(255,255,255,0.08);
}
.modal-box .wa-group input { border: none !important; margin-bottom: 0; flex: 1; }
.modal-box .submit-btn {
    width: 100%; padding: 15px; border: none; border-radius: 10px;
    background: var(--primary); color: #fff;
    font-weight: 700; font-size: 1rem; cursor: pointer;
    transition: all 0.3s;
}
.modal-box .submit-btn:hover { background: #1d4ed8; }
.modal-box .modal-fine {
    font-size: 0.78rem; color: var(--text-muted);
    margin-top: 16px; line-height: 1.4;
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 900px) {
    .hero-grid, .problem-grid, .cap-grid, .pricing-grid { grid-template-columns: 1fr; }
    .v2-nav .nav-links { display: none; }
    .v2-hero h1 { font-size: 2.4rem; }
    .section-title { font-size: 2rem; }
    .arch-flow { flex-direction: column; }
    .arch-step:first-child { border-radius: var(--radius) var(--radius) 0 0; }
    .arch-step:last-child { border-radius: 0 0 var(--radius) var(--radius); }
    .arch-arrow { transform: rotate(90deg); padding: 8px 0; }
    .trust-items { gap: 24px; }
    .v2-hero { padding: 130px 0 60px; text-align: center; }
    .hero-subtitle, .hero-trust-line { margin-left: auto; margin-right: auto; }
    .hero-cta-group { justify-content: center; }
    .price-card.featured { transform: none; }
}
