/* ═══════════════════════════════════════════
   EscribAI Landing Page — Design System
   Paleta: Navy #0f172a + Cyan #06b6d4
   ═══════════════════════════════════════════ */

/* ── 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: #1e293b;
    background: #ffffff;
    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.2rem, 5vw, 3.8rem); font-weight: 900; line-height: 1.1; letter-spacing: -0.03em; }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.8rem); font-weight: 800; line-height: 1.15; letter-spacing: -0.02em; }
h3 { font-size: 1.25rem; font-weight: 700; }

.gradient-text {
    background: linear-gradient(135deg, #06b6d4, #0891b2, #0e7490);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ── 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, #06b6d4, #0891b2);
    color: #fff;
    box-shadow: 0 4px 15px rgba(6, 182, 212, 0.35);
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(6, 182, 212, 0.45);
}
.btn-ghost {
    background: transparent;
    color: #0f172a;
    border: 2px solid #e2e8f0;
}
.btn-ghost:hover {
    border-color: #06b6d4;
    color: #06b6d4;
}
.btn-outline {
    background: transparent;
    color: #0f172a;
    border: 2px solid #cbd5e1;
}
.btn-outline:hover {
    border-color: #06b6d4;
    color: #06b6d4;
    background: rgba(6, 182, 212, 0.05);
}
.btn-lg { padding: 16px 32px; font-size: 1.05rem; }
.btn-block { width: 100%; justify-content: center; }

/* ── Section Utilities ── */
.section-header {
    text-align: center;
    margin-bottom: 56px;
}
.section-tag {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(6, 182, 212, 0.08);
    color: #0891b2;
    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: #64748b;
    font-size: 1.1rem;
}

/* ═══════════════ NAVBAR ═══════════════ */
.navbar {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    transition: box-shadow 0.3s ease;
}
.navbar.scrolled {
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.08);
}
.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.nav-logo-img { height: 44px; }
.nav-links {
    display: flex;
    gap: 32px;
}
.nav-links a {
    font-size: 0.95rem;
    font-weight: 500;
    color: #475569;
    transition: color 0.2s;
}
.nav-links a:hover { color: #06b6d4; }
.nav-cta {
    padding: 10px 22px;
    background: linear-gradient(135deg, #06b6d4, #0891b2);
    color: #fff !important;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s;
}
.nav-cta:hover { transform: translateY(-1px); box-shadow: 0 4px 15px rgba(6,182,212,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: #0f172a;
    border-radius: 2px;
    transition: 0.3s;
}
.mobile-menu {
    display: none;
    flex-direction: column;
    padding: 16px 24px 24px;
    gap: 16px;
    border-top: 1px solid #f1f5f9;
}
.mobile-menu a {
    font-size: 1rem;
    font-weight: 500;
    color: #475569;
}
.mobile-menu.active { display: flex; }

/* ═══════════════ HERO ═══════════════ */
.hero {
    position: relative;
    padding: 140px 0 100px;
    overflow: hidden;
    background: #fafbfc;
}
.hero-bg-glow {
    position: absolute;
    top: -200px; right: -200px;
    width: 700px; height: 700px;
    background: radial-gradient(circle, rgba(6,182,212,0.08) 0%, transparent 70%);
    pointer-events: none;
}
.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 20px;
    background: rgba(6, 182, 212, 0.08);
    border: 1px solid rgba(6, 182, 212, 0.15);
    border-radius: 99px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #0891b2;
    margin-bottom: 24px;
}
.badge-dot {
    width: 8px; height: 8px;
    background: #06b6d4;
    border-radius: 50%;
    animation: pulse-dot 2s ease-in-out infinite;
}
@keyframes pulse-dot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.4); }
}
.hero-subtitle {
    margin-top: 20px;
    font-size: 1.15rem;
    color: #475569;
    max-width: 540px;
    line-height: 1.8;
}
.hero-actions {
    margin-top: 32px;
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}
.hero-trust {
    margin-top: 40px;
    display: flex;
    gap: 28px;
    flex-wrap: wrap;
}
.trust-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.88rem;
    font-weight: 500;
    color: #64748b;
}
.trust-item svg { color: #06b6d4; }

/* Hero Visual */
.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}
.hero-logo-wrapper {
    position: relative;
    width: 380px; height: 380px;
    display: flex;
    justify-content: center;
    align-items: center;
}
.hero-logo-img {
    width: 300px;
    height: 300px;
    object-fit: contain;
    position: relative;
    z-index: 2;
    filter: drop-shadow(0 8px 30px rgba(6, 182, 212, 0.15));
}
.hero-logo-ring {
    position: absolute;
    inset: 0;
    border: 2px solid rgba(6, 182, 212, 0.12);
    border-radius: 50%;
    animation: ring-pulse 3s ease-in-out infinite;
}
.hero-logo-ring--2 {
    inset: -20px;
    border-color: rgba(6, 182, 212, 0.06);
    animation-delay: 1.5s;
}
@keyframes ring-pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.06); opacity: 0.5; }
}
.hero-scroll-hint {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    margin-top: 60px;
    color: #94a3b8;
    font-size: 0.82rem;
}
.scroll-arrow {
    width: 20px; height: 20px;
    border-right: 2px solid #94a3b8;
    border-bottom: 2px solid #94a3b8;
    transform: rotate(45deg);
    animation: bounce-arrow 2s ease-in-out infinite;
}
@keyframes bounce-arrow {
    0%, 100% { transform: rotate(45deg) translateY(0); }
    50% { transform: rotate(45deg) translateY(6px); }
}

/* ═══════════════ PROBLEMS ═══════════════ */
.problem-section {
    padding: 100px 0;
    background: #fff;
}
.problems-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}
.problem-card {
    padding: 32px 24px;
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 16px;
    text-align: center;
    transition: transform 0.3s;
}
.problem-card:hover { transform: translateY(-4px); }
.problem-icon {
    width: 48px; height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    border-radius: 12px;
    font-size: 1.2rem;
    font-weight: 800;
}
.problem-icon--red { background: #fca5a5; color: #991b1b; }
.problem-card h3 { margin-bottom: 8px; color: #991b1b; }
.problem-card p { font-size: 0.92rem; color: #7f1d1d; opacity: 0.8; }

/* ═══════════════ FEATURES ═══════════════ */
.features-section {
    padding: 100px 0;
    background: #f8fafc;
}
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.feature-card {
    padding: 36px 28px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.feature-card:hover {
    transform: translateY(-6px);
    border-color: rgba(6, 182, 212, 0.3);
    box-shadow: 0 20px 40px rgba(6, 182, 212, 0.08);
}
.feature-icon {
    width: 56px; height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(6,182,212,0.1), rgba(6,182,212,0.05));
    border-radius: 14px;
    margin-bottom: 20px;
    color: #0891b2;
}
.feature-card h3 { margin-bottom: 10px; }
.feature-card p { font-size: 0.95rem; color: #64748b; }

/* ═══════════════ HOW IT WORKS ═══════════════ */
.how-section {
    padding: 100px 0;
    background: #fff;
}
.steps-grid {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
}
.step-card {
    flex: 1;
    max-width: 320px;
    text-align: center;
    padding: 40px 28px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    transition: all 0.3s;
}
.step-card:hover {
    transform: translateY(-4px);
    border-color: #06b6d4;
}
.step-number {
    width: 52px; height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #06b6d4, #0891b2);
    color: #fff;
    font-size: 1.3rem;
    font-weight: 800;
    border-radius: 14px;
    margin: 0 auto 20px;
}
.step-card h3 { margin-bottom: 10px; }
.step-card p { font-size: 0.92rem; color: #64748b; }
.step-connector {
    color: #cbd5e1;
    flex-shrink: 0;
}

/* ═══════════════ PRICING ═══════════════ */
.pricing-section {
    padding: 100px 0;
    background: #f8fafc;
}
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    align-items: start;
}
.price-card {
    position: relative;
    padding: 40px 32px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 24px;
    transition: all 0.3s;
}
.price-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.06);
}
.price-card--featured {
    border: 2px solid #06b6d4;
    transform: scale(1.04);
    box-shadow: 0 20px 50px rgba(6, 182, 212, 0.15);
}
.price-card--featured:hover {
    transform: scale(1.04) translateY(-4px);
    box-shadow: 0 25px 60px rgba(6, 182, 212, 0.2);
}
.price-badge {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    padding: 6px 20px;
    background: linear-gradient(135deg, #06b6d4, #0891b2);
    color: #fff;
    font-size: 0.82rem;
    font-weight: 700;
    border-radius: 99px;
    white-space: nowrap;
}
.price-header h3 {
    font-size: 1.4rem;
    margin-bottom: 4px;
}
.price-desc {
    font-size: 0.9rem;
    color: #64748b;
}
.price-value {
    display: flex;
    align-items: baseline;
    gap: 4px;
    margin: 24px 0;
}
.price-currency {
    font-size: 1.3rem;
    font-weight: 700;
    color: #64748b;
}
.price-amount {
    font-size: 3.5rem;
    font-weight: 900;
    color: #0f172a;
    line-height: 1;
}
.price-features {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 32px;
}
.price-features li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.95rem;
}
.price-features li.included svg { color: #06b6d4; }
.price-features li.excluded { color: #94a3b8; }
.price-features li.excluded svg { color: #cbd5e1; }
.price-features li.highlight { color: #0891b2; }

/* ═══════════════ SPECS ═══════════════ */
.specs-section {
    padding: 60px 0;
    background: #fff;
}
.specs-card {
    padding: 40px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
}
.specs-card h3 {
    font-size: 1.3rem;
    margin-bottom: 24px;
}
.specs-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}
.spec-item {
    padding: 16px 20px;
    background: #fff;
    border-radius: 12px;
    font-size: 0.95rem;
    border: 1px solid #e2e8f0;
}
.spec-item strong { color: #0891b2; }

/* ═══════════════ FAQ ═══════════════ */
.faq-section {
    padding: 100px 0;
    background: #f8fafc;
}
.faq-list {
    max-width: 780px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.faq-item {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    overflow: hidden;
    transition: border-color 0.3s;
}
.faq-item[open] { border-color: #06b6d4; }
.faq-item summary {
    padding: 20px 24px;
    font-weight: 600;
    font-size: 1.05rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    list-style: none;
    transition: color 0.2s;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
    content: '+';
    font-size: 1.4rem;
    font-weight: 300;
    color: #94a3b8;
    transition: transform 0.3s;
}
.faq-item[open] summary::after {
    content: '−';
    color: #06b6d4;
}
.faq-item[open] summary { color: #06b6d4; }
.faq-item p {
    padding: 0 24px 20px;
    color: #64748b;
    font-size: 0.95rem;
    line-height: 1.8;
}

/* ═══════════════ CTA FINAL ═══════════════ */
.final-cta {
    padding: 100px 0;
    background: #fff;
}
.cta-card {
    text-align: center;
    padding: 80px 40px;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    border-radius: 32px;
    color: #fff;
}
.cta-card h2 { color: #fff; margin-bottom: 16px; }
.cta-card p {
    font-size: 1.15rem;
    color: #94a3b8;
    margin-bottom: 32px;
}
.cta-card .btn-primary {
    font-size: 1.1rem;
    padding: 18px 40px;
}

/* ═══════════════ FOOTER ═══════════════ */
.footer {
    padding: 48px 0 32px;
    background: #f8fafc;
    border-top: 1px solid #e2e8f0;
}
.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 { height: 40px; }
.footer-brand p { font-size: 0.9rem; color: #64748b; }
.footer-links {
    display: flex;
    gap: 24px;
}
.footer-links a {
    font-size: 0.9rem;
    color: #64748b;
    transition: color 0.2s;
}
.footer-links a:hover { color: #06b6d4; }
.footer-copy p { font-size: 0.82rem; color: #94a3b8; }

/* ═══════════════ ANIMATIONS ═══════════════ */
.feature-card[data-animate] {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.feature-card[data-animate].visible {
    opacity: 1;
    transform: translateY(0);
}

/* ═══════════════ RESPONSIVE ═══════════════ */
@media (max-width: 1024px) {
    .problems-grid { grid-template-columns: repeat(2, 1fr); }
    .features-grid { grid-template-columns: repeat(2, 1fr); }
    .pricing-grid { grid-template-columns: repeat(2, 1fr); }
    .price-card--featured { grid-column: 1 / -1; max-width: 420px; justify-self: center; }
}

@media (max-width: 768px) {
    .nav-links, .nav-cta:not(.mobile-menu .nav-cta) { display: none; }
    .mobile-menu-btn { display: flex; }
    
    .hero { padding: 120px 0 60px; }
    .hero-grid { grid-template-columns: 1fr; text-align: center; gap: 40px; }
    .hero-subtitle { max-width: 100%; }
    .hero-actions { justify-content: center; }
    .hero-trust { justify-content: center; }
    .hero-logo-wrapper { width: 280px; height: 280px; }
    .hero-logo-img { width: 220px; height: 220px; }
    .hero-visual { order: -1; }
    
    .problems-grid { grid-template-columns: 1fr; }
    .features-grid { grid-template-columns: 1fr; }
    .steps-grid { flex-direction: column; }
    .step-connector { transform: rotate(90deg); }
    .pricing-grid { grid-template-columns: 1fr; }
    .price-card--featured { max-width: 100%; transform: none; }
    .price-card--featured:hover { transform: translateY(-4px); }
    .specs-grid { grid-template-columns: 1fr; }
    .footer-grid { flex-direction: column; text-align: center; }
    .footer-links { justify-content: center; }
    
    .cta-card { padding: 48px 24px; border-radius: 24px; }
}
