/* ═══════════════════════════════════════════
   Cauca IA — Landing Page
   Paleta: Deep Navy #060a12 + Emerald #10b981
   ═══════════════════════════════════════════ */

/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: #e2e8f0;
    background: #060a12;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}
img { max-width: 100%; height: auto; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* ── Container ── */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ── Typography ── */
h1 { font-size: clamp(2.4rem, 5vw, 4rem); font-weight: 900; line-height: 1.08; letter-spacing: -0.035em; color: #f8fafc; }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.8rem); font-weight: 800; line-height: 1.12; letter-spacing: -0.025em; color: #f1f5f9; }
h3 { font-size: 1.25rem; font-weight: 700; color: #e2e8f0; }

.gradient-text {
    background: linear-gradient(135deg, #34d399, #10b981, #059669);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ── Section Utilities ── */
.section-header {
    text-align: center;
    margin-bottom: 56px;
}
.section-tag {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(16, 185, 129, 0.1);
    color: #34d399;
    border: 1px solid rgba(16, 185, 129, 0.2);
    border-radius: 99px;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 16px;
}
.section-desc {
    margin-top: 12px;
    color: #94a3b8;
    font-size: 1.1rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* ── Buttons ── */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    font-family: inherit;
}
.btn-primary {
    background: linear-gradient(135deg, #10b981, #059669);
    color: #fff;
    box-shadow: 0 4px 20px rgba(16, 185, 129, 0.3), 0 0 40px rgba(16, 185, 129, 0.1);
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(16, 185, 129, 0.45), 0 0 60px rgba(16, 185, 129, 0.15);
}
.btn-ghost {
    background: transparent;
    color: #cbd5e1;
    border: 2px solid rgba(148, 163, 184, 0.25);
}
.btn-ghost:hover {
    border-color: #10b981;
    color: #34d399;
    background: rgba(16, 185, 129, 0.05);
}
.btn-lg { padding: 16px 36px; font-size: 1.05rem; }

/* ═══════════════ NAVBAR ═══════════════ */
.navbar {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    background: rgba(6, 10, 18, 0.7);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-bottom: 1px solid rgba(148, 163, 184, 0.06);
    transition: all 0.3s ease;
}
.navbar.scrolled {
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.4);
    background: rgba(6, 10, 18, 0.95);
}
.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.nav-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.25rem;
    font-weight: 800;
    color: #f8fafc;
    letter-spacing: -0.02em;
}
.nav-logo-img {
    height: 48px;
    width: auto;
    border-radius: 8px;
    filter: brightness(1.15);
    transition: filter 0.3s;
}
.nav-logo-img:hover { filter: brightness(1.3); }
.nav-links {
    display: flex;
    gap: 32px;
}
.nav-links a {
    font-size: 0.95rem;
    font-weight: 500;
    color: #94a3b8;
    transition: color 0.2s;
}
.nav-links a:hover { color: #34d399; }
.nav-cta {
    padding: 10px 22px;
    background: linear-gradient(135deg, #10b981, #059669);
    color: #fff !important;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s;
    box-shadow: 0 2px 15px rgba(16, 185, 129, 0.25);
}
.nav-cta:hover { transform: translateY(-1px); box-shadow: 0 4px 20px rgba(16, 185, 129, 0.4); }
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}
.mobile-menu-btn span {
    display: block;
    width: 24px;
    height: 2px;
    background: #e2e8f0;
    border-radius: 2px;
    transition: 0.3s;
}
.mobile-menu {
    display: none;
    flex-direction: column;
    padding: 16px 24px 24px;
    gap: 16px;
    border-top: 1px solid rgba(148, 163, 184, 0.1);
    background: rgba(6, 10, 18, 0.98);
}
.mobile-menu a { font-size: 1rem; font-weight: 500; color: #94a3b8; }
.mobile-menu.active { display: flex; }

/* ═══════════════ HERO ═══════════════ */
.hero {
    position: relative;
    padding: 160px 0 120px;
    overflow: hidden;
    text-align: center;
}
.hero::before {
    content: '';
    position: absolute;
    top: -40%; left: 50%;
    transform: translateX(-50%);
    width: 900px; height: 900px;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.07) 0%, transparent 65%);
    pointer-events: none;
}
/* Grid pattern */
.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(148, 163, 184, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(148, 163, 184, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, black 30%, transparent 100%);
    -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, black 30%, transparent 100%);
    pointer-events: none;
}
.hero-content {
    position: relative;
    z-index: 2;
}
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 20px;
    background: rgba(16, 185, 129, 0.08);
    border: 1px solid rgba(16, 185, 129, 0.2);
    border-radius: 99px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #34d399;
    margin-bottom: 28px;
}
.badge-dot {
    width: 8px; height: 8px;
    background: #34d399;
    border-radius: 50%;
    animation: pulse-dot 2s ease-in-out infinite;
    box-shadow: 0 0 10px rgba(52, 211, 153, 0.6);
}
@keyframes pulse-dot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.5); }
}
.hero h1 { margin-bottom: 20px; }
.hero-subtitle {
    font-size: 1.2rem;
    color: #94a3b8;
    max-width: 640px;
    margin: 0 auto;
    line-height: 1.8;
}
.hero-subtitle strong { color: #e2e8f0; }
.hero-actions {
    margin-top: 36px;
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}
.hero-stats {
    margin-top: 60px;
    display: flex;
    justify-content: center;
    gap: 48px;
}
.stat-item {
    text-align: center;
}
.stat-number {
    font-size: 2rem;
    font-weight: 900;
    color: #34d399;
    line-height: 1;
}
.stat-label {
    font-size: 0.82rem;
    color: #64748b;
    margin-top: 4px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
}

/* ═══════════════ PRODUCT SHELF ═══════════════ */
.products-section {
    padding: 100px 0 120px;
    background: linear-gradient(180deg, #060a12 0%, #0a0f1a 50%, #060a12 100%);
}
.products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.product-card {
    position: relative;
    padding: 36px 28px 32px;
    background: rgba(15, 23, 42, 0.5);
    border: 1px solid rgba(148, 163, 184, 0.08);
    border-radius: 24px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}
.product-card:hover {
    transform: translateY(-8px);
    border-color: rgba(16, 185, 129, 0.25);
    box-shadow:
        0 20px 50px rgba(16, 185, 129, 0.06),
        0 0 80px rgba(16, 185, 129, 0.03);
}
.product-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, rgba(16, 185, 129, 0.4), transparent);
    opacity: 0;
    transition: opacity 0.4s;
}
.product-card:hover::before { opacity: 1; }

/* Available card (EscribAI) */
.product-card--available {
    border-color: rgba(16, 185, 129, 0.15);
}
.product-card--available:hover {
    border-color: rgba(16, 185, 129, 0.4);
    box-shadow:
        0 20px 50px rgba(16, 185, 129, 0.1),
        0 0 100px rgba(16, 185, 129, 0.05);
}

/* Coming soon cards */
.product-card--soon {
    cursor: default;
}
.product-card--soon .product-icon,
.product-card--soon .product-info h3,
.product-card--soon .product-desc,
.product-card--soon .product-price {
    opacity: 0.5;
    transition: opacity 0.4s;
}
.product-card--soon:hover .product-icon,
.product-card--soon:hover .product-info h3,
.product-card--soon:hover .product-desc,
.product-card--soon:hover .product-price {
    opacity: 0.2;
}

/* Coming soon overlay */
.coming-soon-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: rgba(6, 10, 18, 0.75);
    backdrop-filter: blur(6px);
    border-radius: 24px;
    opacity: 0;
    transition: opacity 0.4s;
    pointer-events: none;
    z-index: 5;
}
.product-card--soon:hover .coming-soon-overlay {
    opacity: 1;
}
.coming-soon-overlay .cs-icon {
    font-size: 2.5rem;
    animation: cs-pulse 2s ease-in-out infinite;
}
@keyframes cs-pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.15); }
}
.coming-soon-overlay .cs-text {
    font-size: 1.1rem;
    font-weight: 700;
    color: #34d399;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}
.coming-soon-overlay .cs-sub {
    font-size: 0.85rem;
    color: #94a3b8;
}

/* Product card internals */
.product-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 16px;
}
.product-icon {
    width: 56px; height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.15);
    border-radius: 16px;
    color: #34d399;
    flex-shrink: 0;
    transition: all 0.3s;
}
.product-card:hover .product-icon {
    background: rgba(16, 185, 129, 0.15);
    box-shadow: 0 0 20px rgba(16, 185, 129, 0.15);
}
.product-badge {
    padding: 4px 12px;
    border-radius: 99px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}
.badge-available {
    background: rgba(16, 185, 129, 0.15);
    color: #34d399;
    border: 1px solid rgba(16, 185, 129, 0.25);
}
.badge-soon {
    background: rgba(148, 163, 184, 0.1);
    color: #64748b;
    border: 1px solid rgba(148, 163, 184, 0.15);
}
.product-info {
    flex: 1;
}
.product-info h3 {
    margin-bottom: 8px;
    font-size: 1.2rem;
    transition: color 0.3s;
}
.product-card--available:hover .product-info h3 { color: #34d399; }
.product-desc {
    font-size: 0.92rem;
    color: #94a3b8;
    line-height: 1.6;
    margin-bottom: 20px;
    flex: 1;
}
.product-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
    padding-top: 16px;
    border-top: 1px solid rgba(148, 163, 184, 0.06);
}
.product-price {
    font-size: 0.9rem;
    color: #64748b;
    font-weight: 600;
}
.product-price .price-highlight {
    color: #f8fafc;
    font-size: 1.1rem;
    font-weight: 800;
}
.product-link {
    font-size: 0.9rem;
    font-weight: 600;
    color: #34d399;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.3s;
}
.product-link:hover {
    gap: 10px;
}
.product-link svg {
    transition: transform 0.3s;
}
.product-link:hover svg {
    transform: translateX(3px);
}

/* ═══════════════ ABOUT ═══════════════ */
.about-section {
    padding: 100px 0;
    background: #060a12;
}
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}
.about-visual {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}
.about-avatar {
    width: 280px;
    height: 280px;
    border-radius: 32px;
    background: #fff;
    border: 1px solid rgba(16, 185, 129, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding: 20px;
}
.about-logo-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 16px;
}
.about-floating-badge {
    position: absolute;
    background: rgba(15, 23, 42, 0.9);
    border: 1px solid rgba(16, 185, 129, 0.2);
    border-radius: 14px;
    padding: 12px 18px;
    backdrop-filter: blur(10px);
    animation: float 4s ease-in-out infinite;
}
.about-floating-badge:nth-child(2) { top: 10%; right: -10%; animation-delay: 0s; }
.about-floating-badge:nth-child(3) { bottom: 15%; left: -10%; animation-delay: 2s; }
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}
.afb-number { font-size: 1.5rem; font-weight: 900; color: #34d399; line-height: 1; }
.afb-label { font-size: 0.72rem; color: #64748b; text-transform: uppercase; letter-spacing: 0.06em; font-weight: 600; margin-top: 2px; }

.about-content h2 { margin-bottom: 20px; }
.about-text {
    color: #94a3b8;
    font-size: 1.05rem;
    line-height: 1.9;
    margin-bottom: 16px;
}
.about-text strong { color: #e2e8f0; }
.about-values {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 28px;
}
.value-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 18px;
    background: rgba(15, 23, 42, 0.5);
    border: 1px solid rgba(148, 163, 184, 0.08);
    border-radius: 14px;
    transition: all 0.3s;
}
.value-item:hover {
    border-color: rgba(16, 185, 129, 0.2);
    background: rgba(16, 185, 129, 0.04);
}
.value-icon {
    width: 40px; height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(16, 185, 129, 0.1);
    border-radius: 10px;
    color: #34d399;
    font-size: 1.1rem;
    flex-shrink: 0;
}
.value-text {
    font-size: 0.92rem;
    color: #cbd5e1;
    font-weight: 500;
}

/* ═══════════════ FOOTER ═══════════════ */
.footer {
    padding: 48px 0 32px;
    background: #040810;
    border-top: 1px solid rgba(148, 163, 184, 0.06);
}
.footer-grid {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 24px;
}
.footer-brand {
    display: flex;
    align-items: center;
    gap: 16px;
}
.footer-logo-img {
    height: 44px;
    width: auto;
    border-radius: 8px;
}
.footer-brand-name {
    font-weight: 800;
    font-size: 1.1rem;
    color: #e2e8f0;
}
.footer-brand-name span { color: #34d399; }
.footer-brand p { font-size: 0.85rem; color: #475569; margin-top: 2px; }
.footer-links {
    display: flex;
    gap: 24px;
}
.footer-links a {
    font-size: 0.9rem;
    color: #64748b;
    transition: color 0.2s;
}
.footer-links a:hover { color: #34d399; }
.footer-copy p { font-size: 0.8rem; color: #334155; }

/* ═══════════════ ANIMATIONS ═══════════════ */
[data-animate] {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
[data-animate].visible {
    opacity: 1;
    transform: translateY(0);
}
/* Stagger children */
[data-animate]:nth-child(2) { transition-delay: 0.08s; }
[data-animate]:nth-child(3) { transition-delay: 0.16s; }
[data-animate]:nth-child(4) { transition-delay: 0.24s; }
[data-animate]:nth-child(5) { transition-delay: 0.32s; }
[data-animate]:nth-child(6) { transition-delay: 0.40s; }

/* ═══════════════ RESPONSIVE ═══════════════ */
@media (max-width: 1024px) {
    .products-grid { grid-template-columns: repeat(2, 1fr); }
    .about-grid { grid-template-columns: 1fr; text-align: center; }
    .about-visual { order: -1; }
    .about-values { align-items: center; }
    .value-item { max-width: 400px; width: 100%; }
}

@media (max-width: 768px) {
    .nav-links, .nav-cta:not(.mobile-menu .nav-cta) { display: none; }
    .mobile-menu-btn { display: flex; }

    .hero { padding: 130px 0 80px; }
    .hero-stats { gap: 24px; }
    .stat-number { font-size: 1.5rem; }

    .products-grid { grid-template-columns: 1fr; max-width: 440px; margin: 0 auto; }
    .about-avatar { width: 220px; height: 220px; }
    .about-floating-badge { display: none; }
    .footer-grid { flex-direction: column; text-align: center; }
    .footer-links { justify-content: center; }
}
