/* 
 * CALVEX STUDIO - PREMIUM STYLES 
 * Deep Tech Theme + Custom Cursor + Responsive Layout
 */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
    /* Colors - Deep Midnight Blue/Teal */
    --bg-base: #020c1b;
    --bg-gradient-start: #0a192f;
    --bg-gradient-end: #020c1b;
    --bg-card: rgba(17, 34, 64, 0.4);
    --bg-card-hover: rgba(17, 34, 64, 0.7);
    
    --text-primary: #ccd6f6;
    --text-heading: #ffffff;
    --text-secondary: #8892b0;
    
    --accent-cyan: #64ffda;
    --accent-blue: #0ea5e9;
    --border-subtle: rgba(100, 255, 218, 0.1);
    --border-strong: rgba(100, 255, 218, 0.3);

    /* Typography */
    --font-sans: 'Plus Jakarta Sans', system-ui, sans-serif;
    --font-mono: 'JetBrains Mono', monospace;

    /* Layout */
    --container-width: 1280px;
    --nav-height: 80px;
    --section-padding: clamp(80px, 10vw, 140px);

    /* Effects */
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-smooth: 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    --radius-md: 8px;
    --radius-lg: 16px;
    --radius-full: 9999px;
}

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

html { scroll-behavior: smooth; font-size: 16px; -webkit-font-smoothing: antialiased; }

body {
    font-family: var(--font-sans);
    background: radial-gradient(circle at top center, var(--bg-gradient-start), var(--bg-gradient-end));
    background-attachment: fixed;
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
    cursor: none; /* Hide default cursor for custom one */
}

/* Custom Cursor */
.cursor-dot, .cursor-outline {
    position: fixed; top: 0; left: 0; transform: translate(-50%, -50%);
    border-radius: 50%; z-index: 9999; pointer-events: none;
}
.cursor-dot { width: 8px; height: 8px; background-color: var(--accent-cyan); }
.cursor-outline {
    width: 40px; height: 40px; border: 1px solid var(--accent-cyan);
    transition: width 0.2s, height 0.2s, background-color 0.2s;
}
body.hovering .cursor-outline {
    width: 60px; height: 60px; background-color: rgba(100, 255, 218, 0.1); border-color: transparent;
}

/* Hide custom cursor on mobile/touch */
@media (pointer: coarse) {
    body { cursor: auto; }
    .cursor-dot, .cursor-outline { display: none; }
}

::selection { background: var(--accent-cyan); color: var(--bg-base); }

/* Background Canvas */
#network-canvas { position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; }

/* Typography */
h1, h2, h3, h4 { font-weight: 700; line-height: 1.1; letter-spacing: -0.03em; color: var(--text-heading); }
.text-display { font-size: clamp(3rem, 5vw, 4.5rem); font-weight: 800; line-height: 1.1; margin-bottom: 24px; }
.text-gradient { background: linear-gradient(90deg, var(--accent-cyan), var(--accent-blue)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.text-h2 { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 24px; }
.text-body-lg { font-size: 1.125rem; color: var(--text-secondary); max-width: 600px; }
.label-mono { font-family: var(--font-mono); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--accent-cyan); font-weight: 500; display: block; margin-bottom: 16px; }
.text-accent { color: var(--accent-cyan); }

/* Layout */
.container { max-width: var(--container-width); margin: 0 auto; padding: 0 24px; }
.section { padding: var(--section-padding) 0; position: relative; }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 14px 28px; font-weight: 600; font-size: 0.95rem; border-radius: var(--radius-full); transition: all var(--transition-fast); cursor: none; text-decoration: none; border: 1px solid transparent; }
.btn-primary { background: var(--accent-cyan); color: var(--bg-base); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 30px -10px rgba(100, 255, 218, 0.4); }
.btn-outline { background: transparent; color: var(--text-heading); border-color: var(--border-strong); }
.btn-outline:hover { background: rgba(100, 255, 218, 0.1); border-color: var(--accent-cyan); }

/* Navigation */
.nav-wrapper { position: fixed; top: 20px; left: 0; width: 100%; z-index: 100; display: flex; justify-content: center; pointer-events: none; }
.nav { pointer-events: auto; background: rgba(2, 12, 27, 0.7); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border: 1px solid var(--border-subtle); border-radius: var(--radius-full); padding: 12px 32px; transition: var(--transition-smooth); display: flex; align-items: center; gap: 40px; box-shadow: 0 10px 30px -10px rgba(0,0,0,0.5); }
.nav.scrolled { background: rgba(2, 12, 27, 0.95); border-color: var(--border-strong); padding: 10px 24px; }
.nav-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text-heading); font-weight: 800; font-size: 1.2rem; cursor: none; }
.nav-links { display: flex; gap: 32px; }
.nav-links a { color: var(--text-secondary); text-decoration: none; font-size: 0.9rem; font-weight: 500; transition: var(--transition-fast); cursor: none; }
.nav-links a:hover { color: var(--accent-cyan); }
.nav-links a.active-link { color: var(--accent-cyan); }

/* Mobile Menu */
.mobile-toggle { display: none; background: none; border: none; color: white; cursor: none; padding: 8px; }
.mobile-menu { position: fixed; inset: 0; background: var(--bg-base); z-index: 101; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 32px; opacity: 0; pointer-events: none; transition: var(--transition-smooth); }
.mobile-menu.active { opacity: 1; pointer-events: auto; }
.mobile-menu a { font-size: 2rem; font-weight: 700; color: var(--text-heading); text-decoration: none; cursor: none; }

/* Hero */
.hero { min-height: 100vh; display: flex; align-items: center; padding-top: 100px; position: relative; }
.hero-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 64px; align-items: center; }
.hero-badge { display: inline-flex; align-items: center; gap: 8px; padding: 6px 16px; border-radius: var(--radius-full); border: 1px solid var(--border-strong); background: rgba(100, 255, 218, 0.05); margin-bottom: 24px; }
.pulse-dot { width: 8px; height: 8px; background: var(--accent-cyan); border-radius: 50%; box-shadow: 0 0 10px var(--accent-cyan); animation: pulse 2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(100, 255, 218, 0.4); } 70% { box-shadow: 0 0 0 10px rgba(100, 255, 218, 0); } 100% { box-shadow: 0 0 0 0 rgba(100, 255, 218, 0); } }
.hero-actions { display: flex; gap: 16px; margin-top: 40px; flex-wrap: wrap; }

/* Hero Card */
.hero-card { background: var(--bg-card); border: 1px solid var(--border-subtle); border-radius: var(--radius-lg); padding: 40px; backdrop-filter: blur(10px); position: relative; overflow: hidden; }
.hero-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px; background: linear-gradient(90deg, transparent, var(--accent-cyan), transparent); }
.stack-item { display: flex; align-items: center; gap: 16px; padding: 16px; background: rgba(255,255,255,0.03); border-radius: var(--radius-md); margin-bottom: 12px; border: 1px solid transparent; transition: var(--transition-fast); cursor: none; }
.stack-item:hover { border-color: var(--border-strong); background: rgba(255,255,255,0.05); }
.stack-num { font-family: var(--font-mono); color: var(--accent-cyan); font-size: 0.9rem; }
.stack-text { font-size: 0.95rem; color: var(--text-primary); }

/* Services Grid */
.services-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-top: 64px; }
.service-card { background: var(--bg-card); border: 1px solid var(--border-subtle); padding: 32px; border-radius: var(--radius-lg); transition: var(--transition-smooth); display: flex; flex-direction: column; height: 100%; cursor: none; }
.service-card:hover { transform: translateY(-5px); border-color: var(--accent-cyan); background: var(--bg-card-hover); }
.service-icon { width: 48px; height: 48px; margin-bottom: 24px; color: var(--accent-cyan); background: rgba(100, 255, 218, 0.1); border-radius: 12px; display: flex; align-items: center; justify-content: center; }
.service-title { font-size: 1.25rem; margin-bottom: 12px; color: var(--text-heading); }
.service-desc { font-size: 0.9rem; color: var(--text-secondary); margin-bottom: 24px; flex-grow: 1; }
.service-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tag { font-size: 0.75rem; padding: 4px 10px; border-radius: var(--radius-full); background: rgba(255,255,255,0.05); color: var(--text-secondary); border: 1px solid var(--border-subtle); }

/* Work */
.work-grid { display: flex; flex-direction: column; gap: 120px; margin-top: 80px; }
.project-row { display: grid; grid-template-columns: 1.2fr 1fr; gap: 64px; align-items: center; }
.project-row:nth-child(even) { grid-template-columns: 1fr 1.2fr; }
.project-row:nth-child(even) .project-content { order: -1; }
.project-image { aspect-ratio: 4/3; border-radius: var(--radius-lg); overflow: hidden; background: var(--bg-card); position: relative; border: 1px solid var(--border-subtle); cursor: none; }
.project-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1); }
.project-row:hover .project-image img { transform: scale(1.05); }
.project-tags { display: flex; gap: 12px; margin-bottom: 24px; flex-wrap: wrap; }
.project-title { font-size: 2.5rem; margin-bottom: 16px; letter-spacing: -0.02em; }
.project-link { display: inline-flex; align-items: center; gap: 8px; margin-top: 32px; font-weight: 600; color: var(--accent-cyan); text-decoration: none; border-bottom: 1px solid var(--border-strong); padding-bottom: 4px; transition: var(--transition-fast); cursor: none; }
.project-link:hover { border-color: var(--accent-cyan); gap: 12px; }

/* Global Standards */
.standards-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.standard-card { background: var(--bg-card); border: 1px solid var(--border-subtle); padding: 32px; border-radius: var(--radius-lg); text-align: center; transition: var(--transition-smooth); cursor: none; }
.standard-card:hover { border-color: var(--accent-cyan); transform: translateY(-5px); }
.standard-icon { width: 48px; height: 48px; margin: 0 auto 20px; color: var(--accent-cyan); background: rgba(100, 255, 218, 0.1); border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.standard-card h4 { margin-bottom: 12px; font-size: 1.1rem; }
.standard-card p { font-size: 0.9rem; color: var(--text-secondary); }

/* Contact Section */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; }
.contact-info { display: flex; flex-direction: column; gap: 32px; }
.info-item { display: flex; gap: 20px; align-items: flex-start; cursor: none; }
.info-icon { width: 48px; height: 48px; background: var(--bg-card); border: 1px solid var(--border-subtle); border-radius: 12px; display: flex; align-items: center; justify-content: center; color: var(--accent-cyan); flex-shrink: 0; }
.info-item h4 { margin-bottom: 4px; font-size: 1.1rem; }
.info-item p, .info-item a { color: var(--text-secondary); text-decoration: none; transition: var(--transition-fast); }
.info-item a:hover { color: var(--accent-cyan); }
.map-container { margin-top: 20px; border-radius: 12px; overflow: hidden; border: 1px solid var(--border-subtle); cursor: none; }

.contact-form-wrapper { background: var(--bg-card); border: 1px solid var(--border-subtle); padding: 40px; border-radius: var(--radius-lg); }
.form-group { margin-bottom: 24px; }
.form-group label { display: block; margin-bottom: 8px; font-size: 0.9rem; color: var(--text-secondary); font-family: var(--font-mono); }
.form-group input, .form-group textarea { width: 100%; background: rgba(2, 12, 27, 0.5); border: 1px solid var(--border-subtle); padding: 14px; border-radius: var(--radius-md); color: var(--text-heading); font-family: var(--font-sans); transition: var(--transition-fast); cursor: none; }
.form-group input:focus, .form-group textarea:focus { outline: none; border-color: var(--accent-cyan); background: rgba(2, 12, 27, 0.8); }

/* FAQ */
.faq-list { max-width: 800px; margin: 0 auto; display: flex; flex-direction: column; gap: 16px; }
.faq-item { background: var(--bg-card); border: 1px solid var(--border-subtle); border-radius: var(--radius-md); overflow: hidden; cursor: none; }
.faq-question { padding: 24px; display: flex; justify-content: space-between; align-items: center; font-weight: 600; color: var(--text-heading); transition: var(--transition-fast); }
.faq-question:hover { color: var(--accent-cyan); }
.faq-icon { transition: transform 0.3s ease; color: var(--accent-cyan); }
.faq-answer { padding: 0 24px; max-height: 0; overflow: hidden; transition: max-height 0.3s ease, padding 0.3s ease; color: var(--text-secondary); }
.faq-item.active .faq-answer { padding: 0 24px 24px; max-height: 200px; }
.faq-item.active .faq-icon { transform: rotate(45deg); }

/* Footer */
.footer { border-top: 1px solid var(--border-subtle); padding: 100px 0 40px; background: #020c1b; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 64px; margin-top: 80px; padding-top: 80px; border-top: 1px solid var(--border-subtle); }
.footer-col h4 { font-size: 1rem; margin-bottom: 24px; color: var(--text-heading); }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 12px; }
.footer-col a { color: var(--text-secondary); text-decoration: none; transition: var(--transition-fast); font-size: 0.95rem; cursor: none; }
.footer-col a:hover { color: var(--accent-cyan); }

/* WhatsApp Float */
.whatsapp-float { position: fixed; bottom: 30px; right: 30px; z-index: 90; width: 60px; height: 60px; background: #25D366; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: white; box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4); transition: var(--transition-fast); cursor: none; }
.whatsapp-float:hover { transform: scale(1.1); box-shadow: 0 6px 25px rgba(37, 211, 102, 0.6); }

/* Animations */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity 0.8s ease-out, transform 0.8s cubic-bezier(0.16, 1, 0.3, 1); }
.reveal.active { opacity: 1; transform: translateY(0); }

/* Responsive */
@media (max-width: 1024px) {
    .hero-grid { grid-template-columns: 1fr; text-align: center; }
    .hero-actions { justify-content: center; }
    .hero-card { text-align: left; max-width: 600px; margin: 0 auto; }
    .services-grid { grid-template-columns: repeat(2, 1fr); }
    .standards-grid { grid-template-columns: repeat(2, 1fr); }
    .project-row, .project-row:nth-child(even) { grid-template-columns: 1fr; gap: 40px; }
    .project-row:nth-child(even) .project-content { order: 1; }
    .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
    .nav-links, .nav .btn { display: none; }
    .mobile-toggle { display: block; }
    .nav { width: calc(100% - 40px); justify-content: space-between; }
    .services-grid { grid-template-columns: 1fr; }
    .standards-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; gap: 40px; }
    .text-display { font-size: 2.5rem; }
}

/* ==========================================================================
   INNER-PAGE COMPONENTS
   (Extends the core design system above for non-homepage pages)
   ========================================================================== */

/* Page Hero (for inner pages, shorter than the homepage's full-height hero) */
.page-hero { padding: calc(var(--nav-height) + 96px) 0 72px; text-align: center; }
.page-hero .hero-badge { margin: 0 auto 24px; }
.page-hero .text-body-lg { margin: 0 auto; }

/* Generic content grids */
.content-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.content-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.content-grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }

/* Value / numbered cards (About > How We Work) */
.value-card { background: var(--bg-card); border: 1px solid var(--border-subtle); padding: 32px; border-radius: var(--radius-lg); transition: var(--transition-smooth); cursor: none; }
.value-card:hover { border-color: var(--accent-cyan); transform: translateY(-5px); }
.value-num { font-family: var(--font-mono); font-size: 2.25rem; font-weight: 700; color: var(--accent-cyan); opacity: 0.35; display: block; margin-bottom: 8px; }
.value-card h3 { font-size: 1.15rem; margin-bottom: 10px; }
.value-card p { color: var(--text-secondary); font-size: 0.9rem; }

/* Team cards */
.team-card { text-align: center; cursor: none; }
.team-card img { width: 100%; aspect-ratio: 1/1; object-fit: cover; border-radius: var(--radius-lg); border: 1px solid var(--border-subtle); margin-bottom: 20px; transition: var(--transition-smooth); }
.team-card:hover img { border-color: var(--accent-cyan); }
.team-avatar-icon { width: 100%; aspect-ratio: 1/1; border-radius: var(--radius-lg); background: var(--bg-card); border: 1px solid var(--border-subtle); margin-bottom: 20px; transition: var(--transition-smooth); display: flex; align-items: center; justify-content: center; }
.team-avatar-icon i, .team-avatar-icon svg { width: 40%; height: 40%; color: var(--accent-cyan); }
.team-card:hover .team-avatar-icon { border-color: var(--accent-cyan); background: var(--bg-card-hover); }
.team-card h4 { font-size: 1.05rem; margin-bottom: 4px; color: var(--text-heading); }
.team-card .team-role { font-family: var(--font-mono); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--accent-cyan); display: block; margin-bottom: 10px; }
.team-card p.team-desc { color: var(--text-secondary); font-size: 0.85rem; }

/* Blog grid + cards */
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.blog-card { background: var(--bg-card); border: 1px solid var(--border-subtle); border-radius: var(--radius-lg); overflow: hidden; transition: var(--transition-smooth); display: block; text-decoration: none; cursor: none; }
.blog-card:hover { border-color: var(--accent-cyan); transform: translateY(-5px); }
.blog-card-img { aspect-ratio: 16/10; overflow: hidden; }
.blog-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1); }
.blog-card:hover .blog-card-img img { transform: scale(1.06); }
.blog-card-body { padding: 24px; }
.blog-card-body h3 { font-size: 1.1rem; margin: 12px 0 8px; color: var(--text-heading); line-height: 1.3; }
.blog-card-body p { color: var(--text-secondary); font-size: 0.875rem; }
.blog-link { color: var(--accent-cyan); font-size: 0.8rem; font-weight: 600; margin-top: 16px; display: inline-block; }

/* Featured blog post */
.blog-featured { display: flex; flex-wrap: wrap; background: var(--bg-card); border: 1px solid var(--border-subtle); border-radius: var(--radius-lg); overflow: hidden; text-decoration: none; transition: var(--transition-smooth); cursor: none; }
.blog-featured:hover { border-color: var(--accent-cyan); }
.blog-featured-img { flex: 1; min-width: 320px; }
.blog-featured-img img { width: 100%; height: 100%; object-fit: cover; min-height: 320px; }
.blog-featured-content { flex: 1; min-width: 320px; padding: 48px; display: flex; flex-direction: column; justify-content: center; }

/* Article (blog post) body */
.article-header { padding: calc(var(--nav-height) + 64px) 0 40px; }
.container-narrow { max-width: 760px; margin: 0 auto; padding: 0 24px; }
.article-meta { display: flex; align-items: center; gap: 12px; margin-top: 20px; }
.article-meta img { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; border: 1px solid var(--border-subtle); }
.article-meta span { color: var(--text-secondary); font-size: 0.9rem; }
.article-cover { width: 100%; border-radius: var(--radius-lg); margin-bottom: 32px; border: 1px solid var(--border-subtle); }
.article-body p { color: var(--text-secondary); margin-top: 16px; line-height: 1.85; }
.article-body h2 { margin-top: 48px; margin-bottom: 6px; font-size: 1.65rem; }
.article-body ul, .article-body ol { margin-top: 16px; padding-left: 22px; color: var(--text-secondary); }
.article-body li { margin-bottom: 12px; line-height: 1.7; }
.article-body strong { color: var(--text-heading); }
.article-body em { color: var(--text-primary); }
.article-body a { color: var(--accent-cyan); }
.article-quote { border-left: 3px solid var(--accent-cyan); padding-left: 20px; margin: 32px 0; }
.article-quote p { font-style: italic; color: var(--text-primary); margin-top: 0; }

/* Pricing */
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: start; }
.pricing-card { background: var(--bg-card); border: 1px solid var(--border-subtle); border-radius: var(--radius-lg); padding: 36px; transition: var(--transition-smooth); position: relative; }
.pricing-card:hover { border-color: var(--accent-cyan); }
.pricing-card.featured { border-color: var(--accent-cyan); background: var(--bg-card-hover); }
.pricing-badge { position: absolute; top: -14px; left: 50%; transform: translateX(-50%); background: var(--accent-cyan); color: var(--bg-base); font-family: var(--font-mono); font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.05em; padding: 6px 18px; border-radius: var(--radius-full); font-weight: 700; white-space: nowrap; }
.price-row { display: flex; align-items: baseline; gap: 8px; margin-top: 4px; }
.price-amount { font-family: var(--font-mono); font-size: 2.1rem; color: var(--text-heading); }
.pricing-feature-list { list-style: none; margin-top: 20px; display: flex; flex-direction: column; gap: 12px; }
.pricing-feature-list li { display: flex; align-items: center; gap: 10px; color: var(--text-secondary); font-size: 0.9rem; }
.pricing-feature-list svg { width: 16px; height: 16px; color: var(--accent-cyan); flex-shrink: 0; }

/* Comparison table */
.comparison-table { width: 100%; border-collapse: collapse; min-width: 600px; }
.comparison-table th, .comparison-table td { padding: 16px; text-align: center; border-bottom: 1px solid var(--border-subtle); color: var(--text-secondary); font-size: 0.9rem; }
.comparison-table th { color: var(--text-heading); font-family: var(--font-mono); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.05em; font-weight: 500; }
.comparison-table th:first-child, .comparison-table td:first-child { text-align: left; }
.comparison-table svg { display: inline-block; color: var(--accent-cyan); vertical-align: middle; }

/* Work portfolio filter + grid */
.filter-tabs { display: flex; gap: 12px; justify-content: center; margin-bottom: 48px; flex-wrap: wrap; }
.filter-tab { padding: 10px 22px; border-radius: var(--radius-full); border: 1px solid var(--border-subtle); background: transparent; color: var(--text-secondary); font-size: 0.85rem; font-weight: 600; cursor: none; transition: var(--transition-fast); font-family: var(--font-sans); }
.filter-tab:hover { border-color: var(--accent-cyan); color: var(--text-heading); }
.filter-tab.active { background: var(--accent-cyan); color: var(--bg-base); border-color: var(--accent-cyan); }
.portfolio-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.portfolio-card { position: relative; border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 4/3; border: 1px solid var(--border-subtle); cursor: none; display: block; }
.portfolio-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1); }
.portfolio-card:hover img { transform: scale(1.08); }
.portfolio-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(2, 12, 27, 0.95), rgba(2, 12, 27, 0.25) 55%, transparent); display: flex; flex-direction: column; justify-content: flex-end; padding: 28px; }
.portfolio-overlay h3 { font-size: 1.3rem; margin: 8px 0 4px; }
.portfolio-overlay p { color: var(--text-secondary); font-size: 0.875rem; }

/* Status pages (404 / thank-you) */
.status-page { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 120px 24px 60px; }
.status-code { font-family: var(--font-mono); font-size: 6rem; font-weight: 800; background: linear-gradient(90deg, var(--accent-cyan), var(--accent-blue)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; line-height: 1; }
.status-icon { width: 76px; height: 76px; border-radius: 50%; background: rgba(100, 255, 218, 0.08); border: 1px solid var(--border-strong); display: flex; align-items: center; justify-content: center; color: var(--accent-cyan); }

/* Legal / prose content */
.legal-body h2 { margin-top: 40px; margin-bottom: 10px; font-size: 1.3rem; }
.legal-body p { color: var(--text-secondary); line-height: 1.8; }
.legal-body a { color: var(--accent-cyan); }

/* Newsletter inline form */
.newsletter-form { display: flex; gap: 12px; max-width: 480px; margin: 32px auto 0; flex-wrap: wrap; justify-content: center; }
.newsletter-form input { flex: 1; min-width: 220px; background: rgba(2, 12, 27, 0.5); border: 1px solid var(--border-subtle); padding: 14px; border-radius: var(--radius-md); color: var(--text-heading); font-family: var(--font-sans); }
.newsletter-form input:focus { outline: none; border-color: var(--accent-cyan); }

/* Divider */
.hr-divider { height: 1px; background: var(--border-subtle); border: none; }

@media (max-width: 1024px) {
    .content-grid-2 { grid-template-columns: 1fr; gap: 40px; }
    .content-grid-4 { grid-template-columns: repeat(2, 1fr); }
    .blog-grid, .pricing-grid { grid-template-columns: repeat(2, 1fr); }
    .team-grid { grid-template-columns: repeat(2, 1fr) !important; }
    .portfolio-grid { grid-template-columns: 1fr; }
    .pricing-card.featured { transform: none; }
}
@media (max-width: 768px) {
    .content-grid-3, .content-grid-4 { grid-template-columns: 1fr; }
    .blog-grid, .pricing-grid, .team-grid { grid-template-columns: 1fr !important; }
    .blog-featured-content { padding: 32px 24px; }
    .status-code { font-size: 4rem; }
}

/* ==========================================================================
   CHATBOT WIDGET
   ========================================================================== */
.whatsapp-float { bottom: 100px; }

.chatbot-toggle { position: fixed; bottom: 30px; right: 30px; z-index: 91; width: 58px; height: 58px; border-radius: 50%; background: linear-gradient(135deg, var(--accent-cyan), var(--accent-blue)); display: flex; align-items: center; justify-content: center; color: var(--bg-base); box-shadow: 0 4px 20px rgba(100, 255, 218, 0.35); border: none; cursor: none; transition: var(--transition-fast); }
.chatbot-toggle:hover { transform: scale(1.08); box-shadow: 0 6px 25px rgba(100, 255, 218, 0.5); }
.chatbot-toggle svg { width: 24px; height: 24px; }
.chatbot-ai-badge { position: absolute; top: -5px; right: -5px; background: var(--bg-base); border: 1.5px solid var(--accent-cyan); color: var(--accent-cyan); font-family: var(--font-mono); font-size: 0.55rem; font-weight: 800; letter-spacing: 0.03em; padding: 1px 5px; border-radius: 999px; line-height: 1.3; }

.chatbot-tooltip { position: fixed; bottom: 40px; right: 98px; z-index: 91; max-width: 220px; background: #0e1f38; border: 1px solid var(--border-strong); border-radius: var(--radius-md); padding: 12px 14px; font-size: 0.82rem; color: var(--text-primary); box-shadow: 0 10px 30px rgba(0,0,0,0.4); display: flex; align-items: center; gap: 8px; opacity: 0; visibility: hidden; transform: translateX(8px); transition: all 0.3s ease; }
.chatbot-tooltip.visible { opacity: 1; visibility: visible; transform: translateX(0); }
.chatbot-tooltip::after { content: ''; position: absolute; right: -6px; bottom: 22px; width: 12px; height: 12px; background: #0e1f38; border-right: 1px solid var(--border-strong); border-bottom: 1px solid var(--border-strong); transform: rotate(-45deg); }
.chatbot-tooltip-close { background: none; border: none; color: var(--text-secondary); cursor: none; font-size: 1rem; line-height: 1; flex-shrink: 0; padding: 0; }

.chatbot-panel { position: fixed; bottom: 172px; right: 30px; z-index: 91; width: 370px; max-width: calc(100vw - 40px); height: 520px; max-height: calc(100vh - 210px); background: #0b1930; border: 1px solid var(--border-strong); border-radius: var(--radius-lg); box-shadow: 0 25px 60px rgba(0,0,0,0.6); display: flex; flex-direction: column; overflow: hidden; opacity: 0; visibility: hidden; transform: translateY(16px) scale(0.96); transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1); }
.chatbot-panel.open { opacity: 1; visibility: visible; transform: translateY(0) scale(1); }

.chatbot-header { padding: 14px 18px; background: #0e1f38; border-bottom: 1px solid var(--border-strong); display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.chatbot-header-avatar { width: 34px; height: 34px; border-radius: 10px; background: rgba(100,255,218,0.1); border: 1px solid var(--border-strong); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.chatbot-header-avatar svg { width: 18px; height: 18px; color: var(--accent-cyan); }
.chatbot-header-text { flex: 1; min-width: 0; }
.chatbot-header-text h4 { font-size: 0.9rem; margin-bottom: 2px; color: var(--text-heading); display: flex; align-items: center; gap: 6px; }
.chatbot-header-badge { font-family: var(--font-mono); font-size: 0.58rem; font-weight: 700; color: var(--accent-cyan); border: 1px solid var(--accent-cyan); padding: 1px 6px; border-radius: 999px; letter-spacing: 0.04em; }
.chatbot-header-text span.chatbot-status { font-size: 0.72rem; color: var(--text-secondary); display: flex; align-items: center; gap: 5px; }
.chatbot-status-dot { width: 6px; height: 6px; border-radius: 50%; background: #4ade80; display: inline-block; flex-shrink: 0; }
.chatbot-minimize-btn { background: none; border: none; color: var(--text-secondary); cursor: none; width: 28px; height: 28px; display: flex; align-items: center; justify-content: center; border-radius: var(--radius-md); flex-shrink: 0; transition: var(--transition-fast); }
.chatbot-minimize-btn:hover { background: rgba(100,255,218,0.08); color: var(--accent-cyan); }
.chatbot-minimize-btn svg { width: 18px; height: 18px; }

.chatbot-messages { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 12px; background: #0b1930; }
.chat-msg { max-width: 88%; padding: 11px 14px; border-radius: 14px; font-size: 0.85rem; line-height: 1.55; }
.chat-msg.bot { align-self: flex-start; background: #142544; border: 1px solid var(--border-strong); color: var(--text-primary); border-bottom-left-radius: 4px; }
.chat-msg.user { align-self: flex-end; background: var(--accent-cyan); color: var(--bg-base); font-weight: 500; border-bottom-right-radius: 4px; }
.chat-msg a { color: var(--accent-cyan); font-weight: 600; }
.chat-msg.user a { color: var(--bg-base); text-decoration: underline; }
.chat-quick-replies { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.chat-quick-reply { background: #142544; border: 1px solid var(--border-strong); color: var(--text-primary); font-size: 0.78rem; padding: 10px 12px; border-radius: var(--radius-md); cursor: none; transition: var(--transition-fast); font-family: var(--font-sans); text-decoration: none; display: block; text-align: center; line-height: 1.3; }
.chat-quick-reply:hover { border-color: var(--accent-cyan); background: rgba(100,255,218,0.1); color: var(--accent-cyan); }

.chat-typing { align-self: flex-start; display: flex; gap: 4px; padding: 12px 14px; background: #142544; border: 1px solid var(--border-strong); border-radius: 14px; border-bottom-left-radius: 4px; }
.chat-typing span { width: 6px; height: 6px; border-radius: 50%; background: var(--accent-cyan); opacity: 0.4; animation: chatTypingBounce 1.2s infinite ease-in-out; }
.chat-typing span:nth-child(2) { animation-delay: 0.15s; }
.chat-typing span:nth-child(3) { animation-delay: 0.3s; }
@keyframes chatTypingBounce { 0%, 60%, 100% { transform: translateY(0); opacity: 0.4; } 30% { transform: translateY(-4px); opacity: 1; } }

.chatbot-whatsapp-cta { display: flex; align-items: center; justify-content: center; gap: 10px; margin: 0 16px 14px; padding: 12px; background: #25D366; color: #06210f; font-weight: 700; font-size: 0.85rem; border-radius: var(--radius-md); text-decoration: none; flex-shrink: 0; transition: var(--transition-fast); }
.chatbot-whatsapp-cta:hover { filter: brightness(1.08); transform: translateY(-1px); }
.chatbot-whatsapp-cta svg { width: 18px; height: 18px; }

.chatbot-input-row { display: flex; gap: 8px; padding: 14px 16px; border-top: 1px solid var(--border-strong); flex-shrink: 0; background: #0e1f38; }
.chatbot-input-row input { flex: 1; min-width: 0; background: #0b1930; border: 1px solid var(--border-strong); border-radius: var(--radius-full); padding: 10px 16px; color: var(--text-heading); font-size: 0.85rem; font-family: var(--font-sans); }
.chatbot-input-row input:focus { outline: none; border-color: var(--accent-cyan); }
.chatbot-send-btn { width: 38px; height: 38px; border-radius: 50%; background: var(--accent-cyan); border: none; display: flex; align-items: center; justify-content: center; color: var(--bg-base); cursor: none; flex-shrink: 0; }
.chatbot-send-btn svg { width: 15px; height: 15px; }

@media (max-width: 480px) {
    .whatsapp-float { bottom: 92px; width: 52px; height: 52px; right: 20px; }
    .chatbot-toggle { right: 20px; bottom: 26px; width: 52px; height: 52px; }
    .chatbot-tooltip { right: 78px; bottom: 34px; max-width: 180px; }
    .chatbot-panel { width: calc(100vw - 24px); right: 12px; height: 65vh; bottom: 150px; }
}