/* ===========================================================
   Digitimize.US — Public Site Stylesheet
   Design tokens are set as CSS variables in the <head> inline
   block (index.php) using values from the Settings dashboard.
   This file consumes those variables — never hardcode brand
   colors here so the dashboard color pickers stay in control.
=========================================================== */

:root {
    --primary: #0F4C3A;
    --primary-dark: #0A362A;
    --accent: #C9E265;
    --text: #12201B;
    --bg: #F7F5EF;
    --surface: #FFFFFF;
    --border: #E4E1D6;
    --muted: #5B6B62;

    --font-display: 'Space Grotesk', -apple-system, sans-serif;
    --font-body: 'Inter', -apple-system, sans-serif;
    --font-mono: 'JetBrains Mono', ui-monospace, monospace;

    --radius: 14px;
    --max-width: 1180px;
}

[data-theme="dark"] {
    --text: #EAF0EC;
    --bg: #0B120F;
    --surface: #101A15;
    --border: #1E2B24;
    --muted: #93A69B;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body {
    margin: 0;
    max-width: 100vw;
    overflow-x: hidden;
    font-family: var(--font-body);
    background: var(--bg);
    color: var(--text);
    -webkit-font-smoothing: antialiased;
    transition: background .25s ease, color .25s ease;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--font-display); margin: 0; line-height: 1.15; letter-spacing: -0.01em; }
p { line-height: 1.65; color: var(--muted); margin: 0; }
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }
.eyebrow {
    font-family: var(--font-mono); font-size: 12.5px; letter-spacing: 0.08em; text-transform: uppercase;
    color: var(--primary); display: inline-block; margin-bottom: 14px; font-weight: 500;
}
[data-theme="dark"] .eyebrow { color: var(--accent); }

/* Buttons */
.btn {
    display: inline-flex; align-items: center; gap: 8px; padding: 13px 26px; border-radius: 999px;
    font-family: var(--font-body); font-weight: 600; font-size: 14.5px; text-decoration: none;
    border: 1.5px solid transparent; cursor: pointer; transition: transform .15s ease, opacity .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark, var(--primary)) 100%); color: #fff; }
.btn-primary:hover { opacity: 0.92; box-shadow: 0 6px 18px -4px color-mix(in srgb, var(--primary) 50%, transparent); }
.btn-accent { background: linear-gradient(135deg, var(--accent) 0%, color-mix(in srgb, var(--accent) 70%, var(--primary)) 100%); color: #16210F; }
.btn-outline { background: transparent; color: var(--text); border-color: var(--border); }
.btn-outline:hover { border-color: var(--primary); }

/* ===== Header ===== */
.site-header {
    position: sticky; top: 0; z-index: 100; background: color-mix(in srgb, var(--bg) 88%, transparent);
    backdrop-filter: blur(10px); border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; padding: 16px 24px; gap: 12px; }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 700; font-size: 19px; text-decoration: none; flex-shrink: 0; white-space: nowrap; }
.brand img { height: var(--logo-height, 32px); max-width: 180px; object-fit: contain; }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a { text-decoration: none; font-size: 14.5px; font-weight: 500; color: var(--text); }
.nav-links a:hover { color: var(--primary); }
[data-theme="dark"] .nav-links a:hover { color: var(--accent); }
.header-actions { display: flex; align-items: center; gap: 14px; }

.theme-toggle {
    width: 40px; height: 40px; border-radius: 50%; border: 1.5px solid var(--border); background: var(--surface);
    display: flex; align-items: center; justify-content: center; cursor: pointer; font-size: 16px;
}
.theme-toggle:hover { border-color: var(--primary); }

.mobile-toggle { display: none; background: none; border: none; font-size: 22px; cursor: pointer; color: var(--text); }

@media (max-width: 900px) {
    .nav-links { display: none; }
    .mobile-toggle { display: block; }
    .nav-links.open {
        display: flex; flex-direction: column; position: absolute; top: 68px; left: 0; right: 0;
        background: var(--surface); padding: 20px 24px; border-bottom: 1px solid var(--border); gap: 16px;
    }
}
@media (max-width: 420px) {
    .header-inner { padding: 12px 16px; }
    .brand { font-size: 16px; }
    .brand img { height: min(var(--logo-height, 32px), 28px); max-width: 100px; }
    .header-actions .btn-primary { padding: 9px 14px; font-size: 13px; }
    .theme-toggle { width: 34px; height: 34px; font-size: 14px; }
}

/* ===== Hero ===== */
.hero { padding: 88px 0 70px; overflow: hidden; }
.hero-inner { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 50px; align-items: center; min-width: 0; }
.hero-inner > * { min-width: 0; }
.hero h1 { font-size: clamp(32px, 4.2vw, 54px); margin-bottom: 20px; }
.hero h1 .accent-word { color: var(--primary); }
[data-theme="dark"] .hero h1 .accent-word { color: var(--accent); }
.hero p.lead { font-size: 17.5px; max-width: 520px; margin-bottom: 32px; }
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 40px; }
.trust-strip { display: flex; gap: 28px; flex-wrap: wrap; font-size: 13px; color: var(--muted); }
.trust-strip strong { color: var(--text); font-family: var(--font-display); font-size: 15px; }

/* Signature hero visual: automation flow diagram */
.flow-visual {
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
    padding: 28px; position: relative;
}
.flow-visual .flow-label { font-family: var(--font-mono); font-size: 11.5px; color: var(--muted); margin-bottom: 20px; text-transform: uppercase; letter-spacing: .06em; }
.flow-step {
    display: flex; align-items: center; gap: 14px; padding: 13px 16px; border-radius: 10px;
    background: var(--bg); border: 1px solid var(--border); margin-bottom: 10px; font-size: 14px; font-weight: 500;
}
.flow-step .dot {
    width: 9px; height: 9px; border-radius: 50%; background: var(--primary); flex-shrink: 0;
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--primary) 18%, transparent);
    animation: pulse 2s ease-in-out infinite;
}
[data-theme="dark"] .flow-step .dot { background: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 22%, transparent); }
.flow-step:nth-child(2) .dot { animation-delay: .4s; }
.flow-step:nth-child(3) .dot { animation-delay: .8s; }
.flow-step:nth-child(4) .dot { animation-delay: 1.2s; }
.flow-connector { width: 1.5px; height: 14px; background: var(--border); margin-left: 21px; }
@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: .5; transform: scale(1.3); }
}
@media (prefers-reduced-motion: reduce) {
    .flow-step .dot { animation: none; }
}

@media (max-width: 900px) {
    .hero-inner { grid-template-columns: 1fr; }
}

/* ===== Tech marquee ===== */
.tech-marquee-section { padding: 30px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.tech-marquee-label { text-align: center; font-size: 12.5px; color: var(--muted); font-family: var(--font-mono); text-transform: uppercase; letter-spacing: .08em; margin-bottom: 22px; }
.marquee-track { display: flex; gap: 56px; overflow: hidden; }
.marquee-track .marquee-inner { display: flex; gap: 56px; animation: scroll-left 28s linear infinite; flex-shrink: 0; }
.marquee-track img { height: 28px; opacity: .55; filter: grayscale(1); transition: opacity .2s; flex-shrink: 0; }
.marquee-track img:hover { opacity: 1; filter: grayscale(0); }
@keyframes scroll-left {
    from { transform: translateX(0); }
    to { transform: translateX(-100%); }
}

/* ===== Sections generic ===== */
.section { padding: 90px 0; }
.section-head { max-width: 640px; margin-bottom: 50px; }
.section-head h2 { font-size: clamp(26px, 3vw, 38px); margin-bottom: 14px; }

/* Services grid */
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 22px; }
.service-card {
    background: var(--surface); border: 1.5px solid var(--border); border-radius: var(--radius); padding: 28px;
    transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
    position: relative;
}
.service-card:hover {
    transform: translateY(-4px); border-color: var(--primary);
    box-shadow: 0 16px 40px -12px color-mix(in srgb, var(--primary) 35%, transparent);
}
.service-card .icon-badge {
    width: 48px; height: 48px; border-radius: 12px; display: flex; align-items: center; justify-content: center;
    font-size: 20px; margin-bottom: 18px;
    background: color-mix(in srgb, var(--primary) 14%, transparent);
    border: 1px solid color-mix(in srgb, var(--primary) 30%, transparent);
    color: var(--primary);
}
[data-theme="dark"] .service-card .icon-badge { color: var(--accent); border-color: color-mix(in srgb, var(--accent) 35%, transparent); background: color-mix(in srgb, var(--accent) 12%, transparent); }
.service-card .icon { font-size: 26px; margin-bottom: 16px; }
.service-card h3 { font-size: 18px; margin-bottom: 10px; }
.service-card p { font-size: 14.5px; margin-bottom: 16px; }
.service-card a { font-size: 13.5px; font-weight: 600; color: var(--primary); text-decoration: none; display: inline-flex; align-items: center; gap: 4px; }
[data-theme="dark"] .service-card a { color: var(--accent); }

/* Gradient border effect for images — wrap an <img> in .gradient-frame */
.gradient-frame {
    padding: 3px; border-radius: calc(var(--radius) + 3px);
    background: linear-gradient(135deg, var(--primary), var(--accent));
    display: inline-block; width: 100%;
}
.gradient-frame img { display: block; width: 100%; border-radius: var(--radius); }

/* Why us */
.why-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 30px; }
.why-item .num { font-family: var(--font-mono); color: var(--primary); font-size: 13px; margin-bottom: 10px; }
[data-theme="dark"] .why-item .num { color: var(--accent); }
.why-item h3 { font-size: 16.5px; margin-bottom: 8px; }
.why-item p { font-size: 14px; }

/* Process */
.process-list { display: flex; flex-direction: column; }
.process-item { display: grid; grid-template-columns: 90px 1fr; gap: 20px; padding: 26px 0; border-top: 1px solid var(--border); }
.process-item:last-child { border-bottom: 1px solid var(--border); }
.process-item .step-num { font-family: var(--font-mono); font-size: 26px; color: var(--border); font-weight: 600; }
.process-item h3 { font-size: 17px; margin-bottom: 6px; }
.process-item p { font-size: 14.5px; max-width: 520px; }

/* Portfolio teaser */
.portfolio-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 22px; }
.portfolio-card { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); background: var(--surface); }
.portfolio-card .thumb {
    height: 170px; background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,0.5);
    font-family: var(--font-mono); font-size: 12px;
}
.portfolio-card .body { padding: 20px; }
.portfolio-card .tag { font-family: var(--font-mono); font-size: 11px; color: var(--primary); text-transform: uppercase; letter-spacing: .05em; }
[data-theme="dark"] .portfolio-card .tag { color: var(--accent); }
.portfolio-card h3 { font-size: 16px; margin: 8px 0; }
.portfolio-card .metric { font-size: 13px; font-weight: 600; color: var(--text); margin-top: 10px; }

/* Pricing teaser */
.pricing-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 22px; }
.pricing-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px; }
.pricing-card .price { font-family: var(--font-display); font-size: 30px; margin: 10px 0 4px; }
.pricing-card .price span { font-size: 14px; color: var(--muted); font-family: var(--font-body); }
.pricing-card h3 { font-size: 15px; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .03em; font-family: var(--font-mono); }

/* Testimonials */
.testimonial-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px; }
.testimonial-card p.quote { font-size: 15.5px; color: var(--text); margin-bottom: 16px; font-style: italic; }
.testimonial-card .name { font-weight: 600; font-size: 14px; }
.testimonial-card .role { font-size: 12.5px; color: var(--muted); }

/* FAQ */
.faq-item { border-top: 1px solid var(--border); padding: 20px 0; }
.faq-item:last-child { border-bottom: 1px solid var(--border); }
.faq-item summary { cursor: pointer; font-weight: 600; font-size: 15.5px; list-style: none; display: flex; justify-content: space-between; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; color: var(--primary); font-size: 20px; }
.faq-item[open] summary::after { content: '−'; }
.faq-item p { margin-top: 12px; font-size: 14.5px; }

/* Final CTA band */
.cta-band {
    background: var(--primary); border-radius: 20px; padding: 60px 40px; text-align: center; color: #fff;
    margin: 0 24px;
}
.cta-band h2 { font-size: clamp(24px, 3vw, 34px); color: #fff; margin-bottom: 16px; }
.cta-band p { color: rgba(255,255,255,0.8); max-width: 480px; margin: 0 auto 30px; }

/* Contact form */
.contact-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; }
.contact-form .form-row { margin-bottom: 16px; }
.contact-form label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; }
.contact-form input, .contact-form select, .contact-form textarea {
    width: 100%; padding: 12px 14px; border: 1.5px solid var(--border); border-radius: 9px;
    font-family: var(--font-body); font-size: 14.5px; background: var(--surface); color: var(--text);
}
.contact-info-item { display: flex; gap: 14px; margin-bottom: 22px; align-items: flex-start; }
.contact-info-item .ic { font-size: 20px; }
.contact-info-item h4 { font-size: 15px; margin-bottom: 4px; }
.contact-info-item p { font-size: 14px; }
@media (max-width: 900px) { .contact-wrap { grid-template-columns: 1fr; } }

/* Footer */
.site-footer { border-top: 1px solid var(--border); padding: 60px 0 30px; margin-top: 60px; overflow: hidden; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 32px; margin-bottom: 40px; }
.footer-col-wide { min-width: 0; }
.footer-col { min-width: 0; }
.footer-col h4 { font-size: 13px; text-transform: uppercase; letter-spacing: .04em; margin-bottom: 16px; color: var(--muted); }
.footer-col a { display: block; font-size: 14px; margin-bottom: 10px; text-decoration: none; color: var(--text); word-break: break-word; }
.footer-col a:hover { color: var(--primary); }
.footer-bottom { border-top: 1px solid var(--border); padding-top: 24px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: 13px; color: var(--muted); }
@media (max-width: 900px) {
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px 20px; }
    .footer-col-wide { grid-column: 1 / -1; }
}
@media (max-width: 520px) {
    .footer-grid { grid-template-columns: 1fr; }
    .footer-bottom { flex-direction: column; text-align: center; }
}

/* ===========================================================
   3D / Motion Layer (added for visual richness — tilt cards,
   floating shapes, scroll reveals, animated counters)
=========================================================== */

/* Perspective wrapper for tilt cards */
.tilt-card {
    transform-style: preserve-3d;
    perspective: 1000px;
    transition: transform .15s ease-out, box-shadow .3s ease;
    will-change: transform;
}
.tilt-card:hover {
    box-shadow: 0 24px 48px -12px rgba(0,0,0,0.18);
}
[data-theme="dark"] .tilt-card:hover {
    box-shadow: 0 24px 48px -12px rgba(0,0,0,0.5);
}
.tilt-card-inner { transform: translateZ(20px); }

/* Floating 3D shapes (hero background decoration) */
.floating-shapes { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }
.shape {
    position: absolute; border-radius: 28%;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    opacity: 0.10; filter: blur(0px);
    animation: float-3d 14s ease-in-out infinite;
    transform-style: preserve-3d;
}
[data-theme="dark"] .shape { opacity: 0.16; }
.shape-1 { width: 180px; height: 180px; top: 8%; right: 6%; animation-delay: 0s; }
.shape-2 { width: 110px; height: 110px; top: 55%; right: 20%; animation-delay: -4s; border-radius: 50%; }
.shape-3 { width: 90px; height: 90px; top: 20%; right: 30%; animation-delay: -8s; }
.shape-4 { width: 60px; height: 60px; top: 70%; right: 5%; animation-delay: -11s; border-radius: 50%; }

@keyframes float-3d {
    0%, 100% { transform: translate3d(0,0,0) rotate3d(1,1,0,0deg); }
    25% { transform: translate3d(-14px,18px,30px) rotate3d(1,1,0,25deg); }
    50% { transform: translate3d(10px,-14px,-20px) rotate3d(0,1,1,-20deg); }
    75% { transform: translate3d(-8px,-10px,10px) rotate3d(1,0,1,15deg); }
}
@media (prefers-reduced-motion: reduce) {
    .shape { animation: none; }
    .tilt-card { transition: none; }
}
.hero { position: relative; }
.hero-inner { position: relative; z-index: 1; }

/* Scroll-reveal (JS adds .is-visible when the element enters the viewport) */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: .08s; }
.reveal-delay-2 { transition-delay: .16s; }
.reveal-delay-3 { transition-delay: .24s; }
.reveal-delay-4 { transition-delay: .32s; }

/* Animated stat counters */
.stats-band {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 20px;
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
    padding: 40px 30px; margin: 0 24px;
}
.stat-item { text-align: center; }
.stat-item .stat-num {
    font-family: var(--font-display); font-size: clamp(30px, 4vw, 44px); font-weight: 700;
    color: var(--primary); line-height: 1;
}
[data-theme="dark"] .stat-item .stat-num { color: var(--accent); }
.stat-item .stat-caption { font-size: 13px; color: var(--muted); margin-top: 8px; }

/* Industries grid */
.industries-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 18px; }
.industry-card {
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
    padding: 24px; text-align: center; transition: transform .25s ease, border-color .25s ease;
}
.industry-card:hover { transform: translateY(-6px) scale(1.02); border-color: var(--primary); }
.industry-card .ic { font-size: 30px; margin-bottom: 12px; }
.industry-card h3 { font-size: 15px; }

/* Testimonial carousel */
.testimonial-carousel { position: relative; max-width: 720px; margin: 0 auto; min-height: 200px; }
.testimonial-slide {
    position: absolute; inset: 0; opacity: 0; transform: translateX(24px);
    transition: opacity .5s ease, transform .5s ease; pointer-events: none;
}
.testimonial-slide.active { opacity: 1; transform: translateX(0); pointer-events: auto; position: relative; }
.carousel-dots { display: flex; gap: 8px; justify-content: center; margin-top: 24px; }
.carousel-dots button {
    width: 8px; height: 8px; border-radius: 50%; border: none; background: var(--border); cursor: pointer; padding: 0;
}
.carousel-dots button.active { background: var(--primary); width: 22px; border-radius: 4px; }

/* Pricing tier cards (redesigned) */
.pricing-tiers { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 24px; align-items: stretch; }
.tier-card {
    background: var(--surface); border: 1.5px solid var(--border); border-radius: 18px; padding: 32px 28px;
    display: flex; flex-direction: column; position: relative; transition: transform .25s ease, border-color .25s ease;
}
.tier-card:hover { transform: translateY(-6px); }
.tier-card.featured { border-color: var(--primary); box-shadow: 0 20px 50px -15px color-mix(in srgb, var(--primary) 30%, transparent); }
.tier-badge {
    position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
    background: var(--accent); color: #16210F; font-size: 11.5px; font-weight: 700;
    padding: 5px 16px; border-radius: 99px; font-family: var(--font-mono); text-transform: uppercase; letter-spacing: .04em;
}
.tier-card .tier-name { font-family: var(--font-mono); font-size: 12.5px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-bottom: 10px; }
.tier-card .tier-price { font-family: var(--font-display); font-size: 36px; margin-bottom: 6px; }
.tier-card .tier-price span { font-size: 14px; color: var(--muted); font-family: var(--font-body); }
.tier-card .tier-desc { font-size: 13.5px; margin-bottom: 22px; }
.tier-features { list-style: none; padding: 0; margin: 0 0 26px; flex: 1; }
.tier-features li { display: flex; gap: 10px; align-items: flex-start; font-size: 13.5px; padding: 7px 0; color: var(--text); }
.tier-features li::before { content: '✓'; color: var(--primary); font-weight: 700; flex-shrink: 0; }
[data-theme="dark"] .tier-features li::before { color: var(--accent); }

/* Number badges for "why us" style sections with a 3D pop */
.pop-badge {
    display: inline-flex; align-items: center; justify-content: center; width: 52px; height: 52px;
    border-radius: 16px; background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff; font-family: var(--font-display); font-weight: 700; font-size: 18px; margin-bottom: 16px;
    box-shadow: 0 10px 24px -8px color-mix(in srgb, var(--primary) 60%, transparent);
    transform: rotate(-4deg);
}

/* Section divider wave (subtle depth cue between sections) */
.section-divider { height: 60px; overflow: hidden; }
.section-divider svg { width: 100%; height: 100%; display: block; }

.whatsapp-float {
    position: fixed; bottom: 24px; right: 24px; width: 56px; height: 56px; border-radius: 50%;
    background: #25D366; display: flex; align-items: center; justify-content: center; box-shadow: 0 8px 24px rgba(0,0,0,0.25);
    z-index: 200; text-decoration: none; font-size: 26px;
}

/* ===== Customer Support Chatbot Widget ===== */
.chatbot-launcher {
    position: fixed; bottom: 24px; right: 24px; width: 58px; height: 58px; border-radius: 50%;
    background: var(--primary); color: #fff; border: none; cursor: pointer; z-index: 250;
    display: flex; align-items: center; justify-content: center; font-size: 26px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.25); transition: transform .2s ease;
}
.chatbot-launcher:hover { transform: scale(1.08); }
.chatbot-launcher .badge-dot {
    position: absolute; top: 2px; right: 2px; width: 12px; height: 12px; border-radius: 50%;
    background: var(--accent); border: 2px solid var(--surface);
}

.chatbot-panel {
    position: fixed; bottom: 92px; right: 24px; width: 340px; max-width: calc(100vw - 40px);
    height: 460px; max-height: 70vh; background: var(--surface); border: 1px solid var(--border);
    border-radius: 16px; box-shadow: 0 20px 60px rgba(0,0,0,0.25); z-index: 251;
    display: none; flex-direction: column; overflow: hidden;
}
.chatbot-panel.open { display: flex; }
.chatbot-header { background: var(--primary); color: #fff; padding: 16px 18px; display: flex; align-items: center; justify-content: space-between; }
.chatbot-header .cb-title { font-family: var(--font-display); font-weight: 700; font-size: 15px; }
.chatbot-header .cb-sub { font-size: 11.5px; color: rgba(255,255,255,0.75); }
.chatbot-header button { background: none; border: none; color: #fff; font-size: 20px; cursor: pointer; opacity: .8; }
.chatbot-messages { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.cb-msg { max-width: 85%; padding: 10px 14px; border-radius: 14px; font-size: 13.5px; line-height: 1.5; }
.cb-msg.bot { background: var(--bg); color: var(--text); align-self: flex-start; border-bottom-left-radius: 4px; }
.cb-msg.user { background: var(--primary); color: #fff; align-self: flex-end; border-bottom-right-radius: 4px; }
.cb-typing { display: flex; gap: 4px; padding: 10px 14px; align-self: flex-start; }
.cb-typing span { width: 6px; height: 6px; border-radius: 50%; background: var(--muted); animation: cb-bounce 1.2s infinite; }
.cb-typing span:nth-child(2) { animation-delay: .2s; }
.cb-typing span:nth-child(3) { animation-delay: .4s; }
@keyframes cb-bounce { 0%, 60%, 100% { transform: translateY(0); opacity: .4; } 30% { transform: translateY(-4px); opacity: 1; } }
.chatbot-input-row { display: flex; gap: 8px; padding: 14px; border-top: 1px solid var(--border); }
.chatbot-input-row input {
    flex: 1; padding: 10px 12px; border: 1.5px solid var(--border); border-radius: 10px;
    font-size: 13.5px; background: var(--bg); color: var(--text);
}
.chatbot-input-row button { background: var(--primary); color: #fff; border: none; border-radius: 10px; padding: 0 16px; cursor: pointer; font-size: 15px; }
@media (max-width: 480px) {
    .chatbot-panel { left: 12px; right: 12px; width: auto; bottom: 84px; }
    .chatbot-launcher { right: 16px; bottom: 16px; }
}

/* Process section — 2-column boxed cards (replaces the old single-column list) */
.process-grid {
    display: grid; grid-template-columns: 1fr 1fr; gap: 22px;
}
.process-box {
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
    padding: 28px; transition: transform .25s ease, border-color .25s ease;
}
.process-box:hover { transform: translateY(-5px); border-color: var(--primary); }
.process-box .step-num {
    font-family: var(--font-mono); font-size: 13px; font-weight: 700; color: #fff;
    background: var(--primary); width: 34px; height: 34px; border-radius: 10px;
    display: inline-flex; align-items: center; justify-content: center; margin-bottom: 16px;
}
.process-box h3 { font-size: 17px; margin-bottom: 8px; }
.process-box p { font-size: 14px; }
@media (max-width: 700px) {
    .process-grid { grid-template-columns: 1fr; }
}

/* ===== Hero gradient glow (dark-first, green — replaces the reference's red glow) ===== */
.hero {
    background: radial-gradient(ellipse 900px 500px at 75% 10%, color-mix(in srgb, var(--primary) 35%, transparent), transparent 70%),
                radial-gradient(ellipse 600px 400px at 90% 60%, color-mix(in srgb, var(--accent) 18%, transparent), transparent 70%);
}
[data-theme="dark"] .hero {
    background: radial-gradient(ellipse 900px 500px at 75% 10%, color-mix(in srgb, var(--primary) 45%, transparent), transparent 70%),
                radial-gradient(ellipse 600px 400px at 90% 60%, color-mix(in srgb, var(--accent) 22%, transparent), transparent 70%);
}

/* Terminal-style hero visual (macOS-style window chrome + mono content) */
.terminal-window { background: #0B120F; border: 1px solid #1E2B24; border-radius: 14px; overflow: hidden; box-shadow: 0 30px 80px -20px rgba(0,0,0,0.5); }
.terminal-titlebar { display: flex; align-items: center; gap: 8px; padding: 12px 16px; background: #101A15; border-bottom: 1px solid #1E2B24; }
.terminal-dot { width: 10px; height: 10px; border-radius: 50%; }
.terminal-dot.red { background: #FF5F57; }
.terminal-dot.yellow { background: #FEBC2E; }
.terminal-dot.green { background: #28C840; }
.terminal-url { margin-left: 10px; font-family: var(--font-mono); font-size: 11.5px; color: #93A69B; background: #0B120F; padding: 4px 10px; border-radius: 6px; }
.terminal-body { padding: 20px 18px; font-family: var(--font-mono); font-size: 12.5px; line-height: 1.9; overflow-wrap: break-word; word-break: break-word; }
@media (max-width: 480px) {
    .terminal-body { font-size: 10.5px; padding: 16px 14px; }
    .terminal-window { min-width: 0; max-width: 100%; }
}
.terminal-comment { color: #5B6B62; }
.terminal-tag { color: var(--accent); }
.terminal-tag .attr { color: #93A69B; }
.terminal-tag .val { color: #EAF0EC; }
.terminal-status { display: flex; align-items: center; gap: 8px; margin-top: 14px; padding-top: 14px; border-top: 1px solid #1E2B24; color: #28C840; font-size: 11.5px; }
.terminal-status .dot-pulse { width: 7px; height: 7px; border-radius: 50%; background: #28C840; animation: pulse 2s ease-in-out infinite; }

/* ===== Mega Menu — desktop: refined card with icon badges ===== */
.mega-menu-wrap { position: relative; }
.mega-menu-trigger { display: flex; align-items: center; gap: 5px; }
.mega-menu-trigger .caret { font-size: 9px; transition: transform .25s ease; opacity: .6; }
.mega-menu-wrap.menu-open .mega-menu-trigger .caret { transform: rotate(180deg); }
.mega-menu {
    position: absolute; top: calc(100% + 20px); left: 50%; transform: translateX(-50%) translateY(-10px) scale(0.98);
    background: var(--surface); border: 1px solid var(--border); border-radius: 18px;
    box-shadow: 0 30px 70px -16px rgba(0,0,0,0.28), 0 0 0 1px rgba(0,0,0,0.02);
    padding: 30px; display: flex; gap: 8px;
    min-width: 600px; opacity: 0; visibility: hidden; pointer-events: none;
    transition: opacity .2s ease, transform .2s cubic-bezier(.2,.8,.2,1), visibility .2s;
    z-index: 150;
}
.mega-menu::before {
    content: ''; position: absolute; top: -7px; left: 50%; transform: translateX(-50%) rotate(45deg);
    width: 14px; height: 14px; background: var(--surface); border-left: 1px solid var(--border); border-top: 1px solid var(--border);
    border-radius: 3px 0 0 0;
}
.mega-menu-wrap.menu-open .mega-menu {
    opacity: 1; visibility: visible; pointer-events: auto; transform: translateX(-50%) translateY(0) scale(1);
}
.mega-menu-col { flex: 1; min-width: 128px; padding: 4px 14px; border-right: 1px solid var(--border); }
.mega-menu-col:last-child { border-right: none; }
.mega-menu-col h4 {
    display: flex; align-items: center; gap: 8px; font-size: 11.5px; text-transform: uppercase;
    letter-spacing: .05em; color: var(--muted); margin-bottom: 14px; font-weight: 700;
}
.mega-menu-col h4 .icon-badge {
    width: 24px; height: 24px; border-radius: 8px; background: var(--bg); border: 1px solid var(--border);
    display: flex; align-items: center; justify-content: center; font-size: 12px; flex-shrink: 0;
}
.mega-menu-col a {
    display: block; font-size: 14px; padding: 8px 10px; margin: 0 -10px; border-radius: 8px;
    color: var(--text); text-decoration: none; transition: background .15s, color .15s, transform .15s;
}
.mega-menu-col a:hover { color: var(--primary); background: var(--bg); transform: translateX(2px); }
[data-theme="dark"] .mega-menu-col a:hover { color: var(--accent); }
.mega-menu-footer {
    grid-column: 1 / -1; margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--border);
    display: flex; justify-content: space-between; align-items: center;
}

/* ===== Mega Menu — mobile: real accordion cards, not a plain list ===== */
@media (max-width: 900px) {
    .mega-menu {
        position: static; transform: none; opacity: 1; visibility: visible; pointer-events: auto;
        display: none; flex-direction: column; gap: 14px; min-width: 0;
        background: var(--bg); border: none; box-shadow: none; padding: 14px 4px 6px; margin-top: 4px;
    }
    .mega-menu::before { display: none; }
    .mega-menu-wrap.menu-open .mega-menu { display: flex; }
    .mega-menu-col {
        border-right: none; padding: 14px 16px; background: var(--surface); border: 1px solid var(--border);
        border-radius: 12px;
    }
    .mega-menu-col h4 { margin-bottom: 10px; }
    .mega-menu-col a { padding: 10px 8px; margin: 0; font-size: 15px; border-bottom: 1px solid var(--border); border-radius: 0; }
    .mega-menu-col a:last-child { border-bottom: none; }
    .mega-menu-col a:hover { transform: none; background: var(--bg); }
    .mega-menu-trigger .caret { display: inline-block; }
}

/* ===== Custom cursor on interactive elements ===== */
a, button, .btn, .tilt-card, input[type="submit"], .chatbot-launcher, .theme-toggle, summary {
    cursor: pointer;
}
.btn, .chatbot-launcher, .tier-card, .service-card, .portfolio-card {
    cursor: pointer;
}
@media (hover: hover) and (pointer: fine) {
    .btn:hover, .chatbot-launcher:hover { cursor: pointer; }
}

/* ===== Enhanced scroll effects: parallax drift on hero shapes ===== */
.hero { will-change: transform; }

/* About section — text + checklist card, properly stacks on mobile (was broken by inline styles before) */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
@media (max-width: 800px) {
    .about-grid { grid-template-columns: 1fr; gap: 28px; }
}

/* Calendly badge — moved to bottom-left so it doesn't collide with the chatbot (bottom-right) */
.calendly-badge-widget { left: 24px !important; right: auto !important; }
@media (max-width: 480px) {
    .calendly-badge-widget { left: 16px !important; }
}

/* Logo sizing is now handled by the consolidated .brand img rules near the top of this file */

/* ===== Responsive 2-column grid utility classes (fixes mobile overflow from unguarded inline grids) ===== */
.responsive-grid-2 { display: grid; gap: 30px; }
@media (max-width: 700px) {
    .responsive-grid-2 { grid-template-columns: 1fr !important; gap: 20px; }
}
.about-checklist-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
@media (max-width: 480px) {
    .about-checklist-grid { grid-template-columns: 1fr; gap: 16px; }
}
.founder-grid { display: grid; grid-template-columns: 0.8fr 1.6fr; gap: 44px; align-items: center; }
@media (max-width: 700px) {
    .founder-grid { grid-template-columns: 1fr; gap: 24px; text-align: center; }
}
.service-hero-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; align-items: start; margin-top: 16px; }
@media (max-width: 800px) {
    .service-hero-grid { grid-template-columns: 1fr; }
}
.service-main-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 50px; align-items: start; }
@media (max-width: 800px) {
    .service-main-grid { grid-template-columns: 1fr; }
}
