/* =============================================
   GRAFISITY — Premium SaaS Design System
   Inspired by Linear, Stripe, Vercel
   ============================================= */

/* =============================================
   UNIQUE GRAFISITY ELEMENTS
   ============================================= */

/* ===== Hero Typing Effect ===== */
.hero-typing-wrap {
    display: block; /* Replaced flex with block for natural inline wrapping */
    width: 100%;
    min-height: 2.8rem;
}

.hero-typing {
    font-size: clamp(1.8rem, 6vw, 2.5rem); /* Increased slightly for better mobile appearance */
    font-weight: 800;
    letter-spacing: -0.03em;
    background: linear-gradient(135deg, #5e17eb 0%, #a855f7 60%, #38bdf8 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1.3;
    display: inline; /* Necessary for wrap */
    -webkit-box-decoration-break: clone;
    box-decoration-break: clone;
}

.hero-cursor {
    font-size: clamp(1.8rem, 6vw, 2.5rem);
    font-weight: 300;
    color: var(--primary);
    animation: blink-cursor 0.85s step-end infinite;
    line-height: 1.3;
    -webkit-text-fill-color: var(--primary);
    display: inline-block; /* Inline block allows it to stick to the last word */
    vertical-align: baseline;
    margin-left: 2px;
}

@media (max-width: 767.98px) {
    .hero-typing-wrap {
        min-height: 5rem; /* Provides enough height to accommodate two lines without shifting layout */
    }
}

@keyframes blink-cursor {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

/* ===== Hero Terminal Widget ===== */
.hero-terminal {
    position: absolute;
    bottom: -20px;
    right: -12px;
    width: 230px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 16px 40px rgba(0,0,0,0.25);
    z-index: 3;
    font-family: 'SF Mono', 'Fira Code', 'Courier New', monospace;
}

.terminal-header {
    background: #1e1e2e;
    padding: 8px 12px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.terminal-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
    flex-shrink: 0;
}

.terminal-title {
    font-size: 0.65rem;
    color: rgba(255,255,255,0.35);
    margin-left: 6px;
    font-family: inherit;
}

.terminal-body {
    background: #13131f;
    padding: 10px 12px;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.terminal-line {
    font-size: 0.68rem;
    color: rgba(255,255,255,0.6);
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    font-family: inherit;
    display: flex;
    gap: 6px;
    align-items: center;
}

.terminal-blink {
    animation: terminalFade 1.5s ease-in-out infinite alternate;
}

@keyframes terminalFade {
    from { opacity: 0.5; }
    to { opacity: 1; }
}

.t-green { color: #28c840; font-weight: 700; }
.t-purple { color: #a855f7; font-weight: 700; }
.t-muted { color: rgba(255,255,255,0.25); }

/* --- Light Mode Overrides for Terminal --- */
[data-theme="light"] .hero-terminal { box-shadow: 0 16px 40px rgba(0,0,0,0.08); border: 1px solid #e2e8f0; }
[data-theme="light"] .terminal-header { background: #f8fafc; border-bottom: 1px solid #e2e8f0; }
[data-theme="light"] .terminal-title { color: #475569; }
[data-theme="light"] .terminal-body { background: #ffffff; }
[data-theme="light"] .terminal-line { color: #334155; }
[data-theme="light"] .t-muted { color: #94a3b8; }
/* ----------------------------------------- */

@media (max-width: 991.98px) {
    .hero-terminal {
        right: 0;
        bottom: -10px;
        width: 190px;
    }
}

/* ===== Client Chips (Colored Pills) ===== */
.client-chip {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 16px;
    border-radius: 50px;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    white-space: nowrap;
    border: 1px solid transparent;
    transition: transform 0.2s ease;
}

.client-chip:hover { transform: translateY(-2px); }

.client-chip i { font-size: 1rem; }

.chip-purple { background: rgba(94,23,235,0.08); color: #7c3aed; border-color: rgba(94,23,235,0.15); }
.chip-blue   { background: rgba(2,132,199,0.08);  color: #0284c7; border-color: rgba(2,132,199,0.15); }
.chip-red    { background: rgba(220,38,38,0.08);  color: #dc2626; border-color: rgba(220,38,38,0.15); }
.chip-amber  { background: rgba(217,119,6,0.08);  color: #d97706; border-color: rgba(217,119,6,0.15); }
.chip-green  { background: rgba(5,150,105,0.08);  color: #059669; border-color: rgba(5,150,105,0.15); }
.chip-slate  { background: rgba(100,116,139,0.08);color: #64748b; border-color: rgba(100,116,139,0.15); }
.chip-orange { background: rgba(234,88,12,0.08);  color: #ea580c; border-color: rgba(234,88,12,0.15); }
.chip-teal   { background: rgba(20,184,166,0.08); color: #14b8a6; border-color: rgba(20,184,166,0.15); }
.chip-indigo { background: rgba(99,102,241,0.08); color: #6366f1; border-color: rgba(99,102,241,0.15); }

[data-theme="dark"] .chip-purple { background: rgba(94,23,235,0.15); border-color: rgba(94,23,235,0.25); }
[data-theme="dark"] .chip-blue   { background: rgba(2,132,199,0.15);  border-color: rgba(2,132,199,0.25); }
[data-theme="dark"] .chip-red    { background: rgba(220,38,38,0.15);  border-color: rgba(220,38,38,0.25); }
[data-theme="dark"] .chip-amber  { background: rgba(217,119,6,0.15);  border-color: rgba(217,119,6,0.25); }
[data-theme="dark"] .chip-green  { background: rgba(5,150,105,0.15);  border-color: rgba(5,150,105,0.25); }
[data-theme="dark"] .chip-slate  { background: rgba(100,116,139,0.12);border-color: rgba(100,116,139,0.2); }
[data-theme="dark"] .chip-orange { background: rgba(234,88,12,0.15);  border-color: rgba(234,88,12,0.25); }
[data-theme="dark"] .chip-teal   { background: rgba(20,184,166,0.15); border-color: rgba(20,184,166,0.25); }
[data-theme="dark"] .chip-indigo { background: rgba(99,102,241,0.15); border-color: rgba(99,102,241,0.25); }

/* ===== Services Bento Grid ===== */
.services-bento {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    grid-template-rows: auto auto;
    gap: 20px;
}

.bento-card {
    display: flex;
    flex-direction: column;
    min-height: 280px;
}

.bento-large {
    grid-column: 1 / 2;
    grid-row: 1 / 3;
    min-height: 420px;
}

.bento-wide {
    grid-column: 2 / 4;
    flex-direction: column;
}

.bento-wide .d-flex {
    width: 100%;
}

.tech-stack-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 12px;
}

.tech-pill {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    padding: 3px 10px;
    border-radius: 99px;
    background: var(--primary-subtle);
    color: var(--primary);
    border: 1px solid rgba(94,23,235,0.12);
    white-space: nowrap;
}

[data-theme="dark"] .tech-pill {
    background: rgba(94,23,235,0.12);
    border-color: rgba(94,23,235,0.2);
}

.bento-feature-stat {
    display: flex;
    align-items: baseline;
    gap: 8px;
    border-top: 1px solid var(--border-light);
    padding-top: 16px;
}

.stat-num {
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: -0.04em;
    background: linear-gradient(135deg, #5e17eb, #a855f7);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.stat-label {
    font-size: 0.78rem;
    color: var(--text-muted);
    font-weight: 500;
}

.bento-badge {
    background: rgba(94,23,235,0.08);
    color: var(--primary);
    border: 1px solid rgba(94,23,235,0.15);
    border-radius: 8px;
    padding: 6px 12px;
    font-size: 0.78rem;
    font-weight: 700;
    white-space: nowrap;
    align-self: flex-start;
}

[data-theme="dark"] .bento-badge {
    background: rgba(94,23,235,0.15);
    border-color: rgba(94,23,235,0.25);
}

@media (max-width: 991.98px) {
    .services-bento {
        grid-template-columns: 1fr 1fr;
    }
    .bento-large {
        grid-column: 1 / 3;
        grid-row: auto;
        min-height: 300px;
    }
    .bento-wide {
        grid-column: 1 / 3;
    }
}

@media (max-width: 575.98px) {
    .services-bento {
        grid-template-columns: 1fr;
    }
    .bento-large,
    .bento-wide {
        grid-column: 1;
    }
}

/* ===== Process / How We Work Section ===== */
.process-section {
    background: var(--bg-section-alt);
    padding: 120px 0;
    transition: background 0.3s ease;
}

.process-timeline {
    display: flex;
    flex-direction: column;
    gap: 0;
    max-width: 780px;
    margin: 0 auto;
    position: relative;
}

.process-step {
    display: grid;
    grid-template-columns: 56px 2px 1fr;
    gap: 0 24px;
    align-items: start;
}

.process-step-icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background: color-mix(in srgb, var(--ps-color) 12%, transparent);
    border: 1px solid color-mix(in srgb, var(--ps-color) 25%, transparent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    color: var(--ps-color);
    flex-shrink: 0;
    position: relative;
    z-index: 1;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.process-step:hover .process-step-icon {
    transform: scale(1.08);
    box-shadow: 0 8px 24px color-mix(in srgb, var(--ps-color) 25%, transparent);
}

.process-step-connector {
    width: 2px;
    background: linear-gradient(to bottom, var(--border-medium), transparent);
    min-height: 80px;
    margin-top: 4px;
    align-self: stretch;
}

.process-step-connector.last {
    background: transparent;
}

.process-step-content {
    padding: 0 0 48px 0;
}

.process-step-num {
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    color: var(--text-muted);
    text-transform: uppercase;
    display: block;
    margin-bottom: 6px;
    margin-top: 14px;
}

.process-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.process-tags span {
    font-size: 0.7rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 99px;
    background: var(--bg-card-solid);
    border: 1px solid var(--border-light);
    color: var(--text-secondary);
    white-space: nowrap;
}

@media (max-width: 575.98px) {
    .process-step {
        grid-template-columns: 44px 2px 1fr;
        gap: 0 16px;
    }
    .process-step-icon {
        width: 44px;
        height: 44px;
        font-size: 1.1rem;
        border-radius: 12px;
    }
}

/* ===== Product Live Badge ===== */
.saas-product-card {
    position: relative;
}

.product-live-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #22c55e;
    background: rgba(34,197,94,0.1);
    border: 1px solid rgba(34,197,94,0.2);
    border-radius: 99px;
    padding: 3px 10px;
}

.live-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #22c55e;
    display: inline-block;
    flex-shrink: 0;
    animation: pulse 2s infinite;
}

/* ===== Testimonial Pull-Quote Style ===== */
.testimonial-pull {
    position: relative;
    overflow: visible;
}

.pull-quote-mark {
    font-size: 5rem;
    line-height: 0.5;
    color: var(--primary);
    opacity: 0.12;
    font-family: Georgia, serif;
    margin-bottom: 16px;
    display: block;
    user-select: none;
}

.testimonial-result-badge {
    display: inline-flex;
    align-items: center;
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--primary);
    background: var(--primary-subtle);
    border: 1px solid rgba(94,23,235,0.12);
    padding: 4px 12px;
    border-radius: 99px;
    margin-bottom: 20px;
    margin-top: 8px;
}

[data-theme="dark"] .testimonial-result-badge {
    background: rgba(94,23,235,0.12);
    border-color: rgba(94,23,235,0.2);
}

/* ===== Final CTA Eyebrow ===== */
.cta-eyebrow {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--primary-light);
    background: rgba(94,23,235,0.12);
    border: 1px solid rgba(94,23,235,0.25);
    border-radius: 99px;
    padding: 5px 16px;
    margin-bottom: 20px;
}

/* ===== SaaS Products Bento Grid ===== */
.saas-product-card {
    border-radius: 20px;
    border: 1px solid rgba(128,128,128,0.12);
    background: rgba(255,255,255,0.03);
    backdrop-filter: blur(12px);
    padding: 2rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
    cursor: pointer;
}
[data-theme="light"] .saas-product-card {
    background: #ffffff;
    border-color: rgba(0,0,0,0.08);
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
}
.saas-product-card:hover {
    transform: translateY(-6px);
    border-color: color-mix(in srgb, var(--pc) 40%, transparent);
    box-shadow: 0 16px 40px color-mix(in srgb, var(--pc) 15%, transparent);
}
.saas-product-icon-box {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    background: color-mix(in srgb, var(--pc) 12%, transparent);
    color: var(--pc);
    margin-bottom: 1.25rem;
    flex-shrink: 0;
}
.saas-product-tag {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 50px;
    background: color-mix(in srgb, var(--pc) 10%, transparent);
    color: var(--pc);
    margin-bottom: 0.75rem;
}
.saas-product-link {
    color: var(--pc);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 4px;
    margin-top: auto;
    transition: gap 0.2s ease;
}
.saas-product-link:hover { gap: 8px; }
.saas-product-divider {
    height: 1px;
    background: rgba(128,128,128,0.1);
    margin: 1.25rem 0;
}

/* ===== Dropdown Backdrop Blur ===== */
#dropdown-backdrop {
    position: fixed;
    inset: 0;
    z-index: 1000;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    background: rgba(0, 0, 0, 0.25);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}
#dropdown-backdrop.active {
    opacity: 1;
    pointer-events: auto;
}

/* ===== Social Proof Avatars (CSS-only initials) ===== */
.sp-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid var(--border-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.62rem;
    font-weight: 700;
    color: #fff;
    flex-shrink: 0;
    margin-right: -8px;
}
.sp-avatar:last-child { margin-right: 0; }

/* ===== Testimonials Section ===== */
.testimonials-section {
    background: var(--bg-page);
    padding: 100px 0;
    transition: background 0.3s ease;
}
.testimonial-card {
    border-radius: 20px;
    border: 1px solid var(--border-light);
    background: var(--bg-card-solid);
    padding: 32px;
    height: 100%;
    display: flex;
    flex-direction: column;
    gap: 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.testimonial-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 48px rgba(0,0,0,0.08);
    border-color: var(--primary-light);
}
.testimonial-stars { color: #f59e0b; font-size: 0.85rem; letter-spacing: 2px; }
.testimonial-text {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.75;
    flex: 1;
    font-style: italic;
}
.testimonial-author { display: flex; align-items: center; gap: 12px; }
.testimonial-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 700;
    color: #fff;
    flex-shrink: 0;
}
.testimonial-name {
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--text-main);
    display: block;
    line-height: 1.3;
}
.testimonial-role {
    font-size: 0.75rem;
    color: var(--text-muted);
    display: block;
}

/* ===== FAQ Section ===== */
.faq-section {
    background: var(--bg-section-alt);
    padding: 100px 0;
    transition: background 0.3s ease;
}
.faq-item {
    border-bottom: 1px solid var(--border-light);
    padding: 0;
    transition: border-color 0.2s ease;
}
.faq-question {
    width: 100%;
    background: none;
    border: none;
    text-align: left;
    padding: 22px 0;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-main);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    transition: color 0.2s ease;
}
.faq-question:hover { color: var(--primary); }
.faq-question i {
    font-size: 1.1rem;
    color: var(--text-muted);
    transition: transform 0.3s ease, color 0.2s ease;
    flex-shrink: 0;
}
.faq-question[aria-expanded="true"] i {
    transform: rotate(45deg);
    color: var(--primary);
}
.faq-answer {
    font-size: 0.925rem;
    color: var(--text-secondary);
    line-height: 1.8;
    padding-bottom: 22px;
}

/* ===== Final CTA Section ===== */
.final-cta-section {
    background: linear-gradient(135deg, #09090b 0%, #0a0a1a 100%);
    padding: 100px 0;
    position: relative;
    overflow: hidden;
    text-align: center;
}
.final-cta-section::before {
    content: '';
    position: absolute;
    top: -40%;
    left: 50%;
    transform: translateX(-50%);
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(94, 23, 235, 0.15) 0%, transparent 60%);
    pointer-events: none;
}
.final-cta-section > * { position: relative; z-index: 1; }
.final-cta-section h2 { color: #fff; }
.final-cta-section p { color: rgba(255,255,255,0.55); }

/* ===== Premium Feature Card (Web Solutions) ===== */
.premium-feature-card {
    background: var(--bg-card-solid);
    border: 1px solid var(--border-medium);
    border-radius: 24px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.05);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

[data-theme="dark"] .premium-feature-card {
    background: rgba(20, 20, 30, 0.4);
    backdrop-filter: blur(20px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-left: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(0, 0, 0, 0.5);
    border-right: 1px solid rgba(0, 0, 0, 0.5);
    box-shadow: 0 30px 60px rgba(0,0,0,0.4), inset 0 0 0 1px rgba(255,255,255,0.02);
}

.premium-feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 30px 60px rgba(94, 23, 235, 0.15);
}

.pfc-glow-1 {
    position: absolute;
    top: -20%;
    right: -10%;
    width: 60%;
    height: 60%;
    background: radial-gradient(circle, rgba(94, 23, 235, 0.08) 0%, transparent 70%);
    z-index: 0;
    pointer-events: none;
    border-radius: 50%;
}
.pfc-glow-2 {
    position: absolute;
    bottom: -20%;
    left: -10%;
    width: 50%;
    height: 50%;
    background: radial-gradient(circle, rgba(56, 189, 248, 0.06) 0%, transparent 70%);
    z-index: 0;
    pointer-events: none;
    border-radius: 50%;
}

[data-theme="dark"] .pfc-glow-1 { background: radial-gradient(circle, rgba(94, 23, 235, 0.25) 0%, transparent 70%); }
[data-theme="dark"] .pfc-glow-2 { background: radial-gradient(circle, rgba(56, 189, 248, 0.2) 0%, transparent 70%); }

.pfc-mockup-wrapper {
    position: relative;
    perspective: 1000px;
    padding: 20px;
}

.pfc-browser-mockup {
    background: var(--bg-page);
    border: 1px solid var(--border-medium);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 25px 50px rgba(0,0,0,0.1);
    transform: rotateY(-8deg) rotateX(4deg) scale(0.95);
    transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}

[data-theme="dark"] .pfc-browser-mockup {
    background: #0f1117;
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 25px 50px rgba(0,0,0,0.5);
}

.premium-feature-card:hover .pfc-browser-mockup {
    transform: rotateY(-2deg) rotateX(1deg) scale(1);
}

.pfc-mockup-header {
    background: var(--bg-card);
    border-bottom: 1px solid var(--border-light);
    padding: 10px 16px;
    display: flex;
    align-items: center;
    gap: 6px;
}

[data-theme="dark"] .pfc-mockup-header { background: #1a1d27; }

.pfc-mockup-header span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
}
.pfc-mockup-header span:nth-child(1) { background: #ff5f56; }
.pfc-mockup-header span:nth-child(2) { background: #ffbd2e; }
.pfc-mockup-header span:nth-child(3) { background: #27c93f; }

.pfc-url-bar {
    margin-left: 16px;
    background: var(--bg-page);
    padding: 4px 12px;
    border-radius: 6px;
    font-size: 0.6rem;
    color: var(--text-muted);
    font-family: inherit;
    flex-grow: 1;
    max-width: 200px;
    text-align: center;
    border: 1px solid var(--border-light);
}

.pfc-mockup-body {
    padding: 30px;
    background: transparent;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.pfc-mockup-hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.pfc-mockup-badge {
    height: 16px;
    width: 80px;
    border-radius: 8px;
    background: linear-gradient(90deg, rgba(94, 23, 235, 0.1), rgba(168, 85, 247, 0.1));
}

.pfc-mockup-title {
    height: 14px;
    width: 80%;
    border-radius: 4px;
    background: var(--text-main);
    opacity: 0.8;
}

.pfc-mockup-title.short {
    width: 50%;
    opacity: 0.4;
}

.pfc-mockup-btn {
    height: 24px;
    width: 100px;
    border-radius: 12px;
    background: var(--primary);
    margin-top: 8px;
}

.pfc-mockup-stats {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 10px;
    padding-top: 24px;
    border-top: 1px dashed var(--border-light);
}

.pfc-stat {
    width: 60px;
    height: 48px;
    border-radius: 8px;
    background: var(--bg-card);
    border: 1px solid var(--border-light);
}

.pfc-float-badge {
    position: absolute;
    bottom: 5%;
    left: -5%;
    background: var(--bg-card-solid);
    border: 1px solid var(--border-medium);
    padding: 8px 16px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-main);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    gap: 6px;
    transform: translateY(20px);
    opacity: 0;
    animation: pfcFloatIn 0.5s ease 0.6s forwards, pfcHover 3s ease-in-out infinite alternate;
}

[data-theme="dark"] .pfc-float-badge {
    background: #1e2130;
    border-color: rgba(255,255,255,0.1);
    box-shadow: 0 10px 30px rgba(0,0,0,0.4);
}

@keyframes pfcFloatIn {
    to { transform: translateY(0); opacity: 1; }
}
@keyframes pfcHover {
    from { transform: translateY(0); }
    to { transform: translateY(-10px); }
}

@media (max-width: 991.98px) {
    .pfc-mockup-wrapper {
        margin-top: 2rem;
        perspective: none;
    }
    .pfc-browser-mockup {
        transform: scale(1);
    }
    .premium-feature-card:hover .pfc-browser-mockup {
        transform: translateY(-5px);
    }
    .pfc-float-badge {
        left: 20px;
        bottom: -15px;
    }
}

/* ===== Client Logo Marquee ===== */
.marquee-container {
    overflow: hidden;
    white-space: nowrap;
    position: relative;
    width: 100%;
}
.marquee-container::before,
.marquee-container::after {
    content: '';
    position: absolute;
    top: 0;
    width: 150px;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}
.marquee-container::before {
    left: 0;
    background: linear-gradient(to right, var(--bg-page) 0%, transparent 100%);
}
.marquee-container::after {
    right: 0;
    background: linear-gradient(to left, var(--bg-page) 0%, transparent 100%);
}
.marquee-content {
    display: inline-flex;
    align-items: center;
    gap: 5rem;
    animation: marquee 35s linear infinite;
    padding-left: 5rem;
}
.marquee-content:hover {
    animation-play-state: paused;
}
@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}


/* ===== Modern Preloader ===== */
#preloader {
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: var(--bg-page);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.8s;
}

#preloader.fade-out {
    opacity: 0;
    visibility: hidden;
}

.preloader-content {
    text-align: center;
    max-width: 300px;
    width: 100%;
    padding: 20px;
}

.preloader-logo-wrap {
    position: relative;
    width: 80px;
    height: 80px;
    margin: 0 auto 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-card);
    border-radius: 20px;
    border: 1px solid var(--border-light);
    overflow: hidden;
}

.preloader-logo-img {
    height: 48px;
    width: auto;
    z-index: 2;
}

.preloader-scan-line {
    position: absolute;
    top: -100%;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, transparent, rgba(94, 23, 235, 0.4), transparent);
    z-index: 1;
    animation: scan 2s linear infinite;
}

@keyframes scan {
    0% { top: -100%; }
    100% { top: 100%; }
}

.preloader-brand {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--text-main);
    letter-spacing: -0.02em;
    margin-bottom: 16px;
    opacity: 0;
    transform: translateY(10px);
    animation: fadeInUp 0.5s ease forwards 0.3s;
}

.preloader-progress {
    width: 100%;
    height: 2px;
    background: var(--border-medium);
    border-radius: 10px;
    margin-bottom: 12px;
    overflow: hidden;
}

.preloader-progress-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #5e17eb, #8e5cf2);
    box-shadow: 0 0 10px rgba(94, 23, 235, 0.5);
    animation: loadProgress 2.5s cubic-bezier(0.1, 0, 0.1, 1) forwards;
}

@keyframes loadProgress {
    0% { width: 0%; }
    30% { width: 45%; }
    60% { width: 70%; }
    100% { width: 100%; }
}

.preloader-status {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--text-muted);
    opacity: 0;
    animation: fadeIn 0.5s ease forwards 0.6s;
}

@keyframes fadeInUp {
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
    to { opacity: 1; }
}


/* === Navbar (Specific adjustments for index) === */
.navbar-saas {
    height: 64px;
    border-bottom: 1px solid var(--navbar-border);
    transition: var(--transition);
    background-color: var(--navbar-bg) !important;
    backdrop-filter: blur(20px) saturate(200%);
    -webkit-backdrop-filter: blur(20px) saturate(200%);
}

/* When mobile menu is open, allow height to grow */
.navbar-saas:has(.navbar-collapse.show) {
    height: auto;
}

/* Mobile collapse panel styling */
.navbar-saas .navbar-collapse {
    background: var(--navbar-bg);
    border-top: 1px solid var(--navbar-border);
    margin: 0 -12px;
    padding: 0 12px;
    max-height: calc(100vh - 64px);
    overflow-y: auto;
}

/* Only apply panel styling when collapsed (mobile) */
@media (min-width: 992px) {
    .navbar-saas .navbar-collapse {
        background: transparent;
        border-top: none;
        margin: 0;
        padding: 0;
    }
}

.navbar-saas .navbar-brand img {
    transition: var(--transition);
}

.navbar-saas .navbar-brand img:hover {
    transform: scale(1.05);
}

.navbar-saas .nav-link {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary) !important;
    transition: color 0.2s ease, background-color 0.2s ease;
    padding: 0.45rem 0.85rem !important;
    border-radius: 8px;
}

.navbar-saas .nav-link:hover,
.navbar-saas .nav-link.active {
    color: var(--primary) !important;
    background: var(--nav-link-hover-bg);
}

/* === Dropdown Menu === */
.navbar-saas .dropdown-menu {
    background: var(--navbar-bg);
    backdrop-filter: blur(24px) saturate(200%);
    -webkit-backdrop-filter: blur(24px) saturate(200%);
    border: 1px solid var(--navbar-border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    padding: 8px;
    margin-top: 10px;
    min-width: 220px;
    opacity: 0;
    transform: translateY(10px);
    pointer-events: none;
    display: block;
    transition: var(--transition);
}

.navbar-saas .dropdown-menu.show {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.navbar-saas .dropdown-item {
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--text-secondary);
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 10px;
}

.navbar-saas .dropdown-header {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--text-muted);
    padding: 8px 14px 4px;
    margin-top: 4px;
}

.navbar-saas .dropdown-item i {
    font-size: 1rem;
    color: var(--primary);
    opacity: 0.7;
}

.navbar-saas .dropdown-item:hover {
    background: var(--nav-link-hover-bg);
    color: var(--primary);
}

.navbar-saas .dropdown-item:active {
    background: var(--primary-subtle);
}

.navbar-saas .dropdown-toggle::after {
    display: none;
}

/* Dark mode toggle button */
.theme-toggle {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    border: 1px solid var(--border-light);
    background: var(--btn-ghost-bg);
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    font-size: 1rem;
    padding: 0;
    flex-shrink: 0;
}

.theme-toggle:hover {
    background: var(--nav-link-hover-bg);
    color: var(--text-main);
}

.theme-toggle .icon-sun {
    display: block;
}

.theme-toggle .icon-moon {
    display: none;
}

[data-theme="dark"] .theme-toggle .icon-sun {
    display: none;
}

[data-theme="dark"] .theme-toggle .icon-moon {
    display: block;
}

/* === Hero === */
.hero {
    padding: 100px 0 80px;
    position: relative;
    overflow-x: hidden;
    background: var(--bg-page);
}

.hero>* {
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-size: clamp(2.8rem, 5.5vw, 5rem);
    line-height: 1.08;
    letter-spacing: -0.04em;
    font-weight: 800;
}

.hero .lead {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* Announce badge */
.announce-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px 6px 6px;
    border-radius: 999px;
    background: rgba(94, 23, 235, 0.05);
    border: 1px solid rgba(94, 23, 235, 0.12);
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.announce-badge .dot {
    padding: 3px 10px;
    border-radius: 999px;
    background: var(--primary);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.04em;
}

/* Hero image card */
.hero-card {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg), 0 0 80px rgba(94, 23, 235, 0.07);
    border: 1px solid rgba(0, 0, 0, 0.06);
    transition: var(--transition-spring);
}

.hero-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg), 0 0 120px rgba(94, 23, 235, 0.1);
}

/* Status floating card */
.hero-status {
    position: absolute;
    bottom: -16px;
    left: -24px;
    min-width: 190px;
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-md);
    z-index: 2;
}

@media (max-width: 991.98px) {
    .hero-status {
        left: 0;
        bottom: 0;
    }
}

.status-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #22c55e;
    flex-shrink: 0;
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.2);
    animation: pulse 2s infinite;
}

@keyframes pulse {

    0%,
    100% {
        box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.2);
    }

    50% {
        box-shadow: 0 0 0 6px rgba(34, 197, 94, 0.1);
    }
}

/* === Metrics Bar === */
.metrics-bar {
    padding: 48px 0;
    border-top: 1px solid var(--border-light);
    border-bottom: 1px solid var(--border-light);
    background: var(--metrics-bg);
    transition: background 0.3s ease;
}

.metric-item {
    text-align: center;
    padding: 0 24px;
}

.metric-item h3 {
    font-size: 2.25rem;
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 1;
    margin-bottom: 6px;
}

.metric-item p {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin: 0;
    font-weight: 500;
}

.metric-divider {
    width: 1px;
    height: 40px;
    background: var(--border-light);
    align-self: center;
}

/* === Clients === */
.clients-section {
    padding: 60px 0;
    background: var(--bg-page);
    border-bottom: 1px solid var(--border-light);
    transition: background 0.3s ease;
}

.trusted-label {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.client-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #bbb;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    transition: color 0.3s;
    white-space: nowrap;
}

.client-logo i {
    font-size: 1.4rem;
}

.client-logo:hover {
    color: #888;
}

/* === Cards === */
.saas-card {
    background: var(--bg-card-solid);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 36px;
    transition: var(--transition-spring);
    position: relative;
    overflow: hidden;
    height: 100%;
}

.saas-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(600px circle at var(--x, 50%) var(--y, 50%), rgba(94, 23, 235, 0.07), transparent 40%);
    opacity: 0;
    transition: opacity 0.4s;
    pointer-events: none;
}

.saas-card:hover {
    border-color: var(--primary-light);
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 40px 80px -20px var(--primary-glow);
}

.saas-card:hover::before {
    opacity: 1;
}

/* service card icon */
.service-icon-wrap {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    margin-bottom: 1.25rem;
    flex-shrink: 0;
}

.service-icon-wrap.purple {
    background: linear-gradient(135deg, #5e17eb, #8e5cf2);
    color: #fff;
    box-shadow: 0 4px 16px rgba(94, 23, 235, 0.25);
}

/* Number badge for service cards */
.card-number {
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--text-muted);
    letter-spacing: 0.08em;
    margin-bottom: 1rem;
    display: block;
}

/* === Portfolio === */
.portfolio-section {
    background: var(--bg-section-alt);
    transition: background 0.3s ease;
}

.portfolio-card {
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--bg-card-solid);
    border: 1px solid var(--border-light);
    transition: var(--transition-spring), background 0.3s ease, border-color 0.3s ease;
    box-shadow: var(--shadow-sm);
    position: relative;
    height: 480px;
}

.portfolio-card:hover {
    transform: translateY(-10px) scale(1.01);
    box-shadow: 0 40px 80px -20px rgba(0, 0, 0, 0.3);
    border-color: var(--primary-light);
}

.portfolio-img-wrap {
    position: absolute;
    inset: 0;
    height: 100% !important;
    z-index: 1;
    background: var(--bg-section-alt);
    overflow: hidden;
    transition: background 0.3s ease;
}

.portfolio-card .p-4 {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 2;
    background: linear-gradient(to top, 
        rgba(0, 0, 0, 0.95) 0%, 
        rgba(0, 0, 0, 0.7) 40%, 
        rgba(0, 0, 0, 0.3) 70%, 
        transparent 100%);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    color: #fff !important;
    padding: 2.5rem 1.5rem 1.5rem !important;
    transition: var(--transition);
}

.portfolio-card:hover .p-4 {
    padding-bottom: 2rem !important;
    background: linear-gradient(to top, 
        rgba(0, 0, 0, 1) 0%, 
        rgba(0, 0, 0, 0.8) 50%, 
        rgba(0, 0, 0, 0.4) 80%, 
        transparent 100%);
}

.portfolio-card h3,
.portfolio-card p,
.portfolio-card .text-secondary,
.portfolio-card .text-primary,
.portfolio-card a {
    color: #fff !important;
}

.portfolio-card p.small {
    color: rgba(255, 255, 255, 0.8) !important;
}

.portfolio-card .portfolio-tag {
    background: rgba(255, 255, 255, 0.15) !important;
    color: #fff !important;
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.portfolio-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
    transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.portfolio-card:hover img {
    transform: scale(1.08);
}

.portfolio-tag {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 99px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

/* === Solution Cards === */
#web-solutions .solution-card {
    transition: var(--transition-spring);
    display: flex;
    flex-direction: column;
}

#web-solutions .solution-card:hover {
    background: var(--bg-card-solid);
    border-color: var(--primary);
    box-shadow: 0 40px 80px -20px var(--primary-glow);
}

#web-solutions .service-icon-wrap {
    width: 48px;
    height: 48px;
    border-radius: 12px;
}

/* === Pricing === */
.pricing-section {
    background: var(--bg-page);
    transition: background 0.3s ease;
}

.pricing-card {
    border-radius: var(--radius-lg);
    padding: 40px;
    border: 1px solid var(--border-light);
    background: var(--bg-card-solid);
    transition: var(--transition-spring);
    position: relative;
    overflow: hidden;
    height: 100%;
}

.pricing-card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 40px 80px -20px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-light);
}

.pricing-card.featured {
    border: 2px solid var(--primary);
    background: var(--primary-subtle);
    box-shadow: var(--shadow-glow);
}

.pricing-card.featured:hover {
    box-shadow: var(--shadow-glow-lg);
}

.pricing-tag {
    position: absolute;
    top: -1px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 5px 18px;
    border-radius: 0 0 10px 10px;
}

.price-number {
    font-size: 3.25rem;
    font-weight: 800;
    letter-spacing: -0.05em;
    line-height: 1;
}

.price-period {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-left: 4px;
}

.feature-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.feature-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 8px 0;
    font-size: 0.9rem;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border-light);
}

.feature-list li:last-child {
    border-bottom: none;
}

.feature-list li i {
    color: var(--primary);
    font-size: 0.95rem;
    margin-top: 2px;
    flex-shrink: 0;
}

/* === Contact / Dark Section === */
.contact-section {
    background: #09090b;
    position: relative;
    overflow: hidden;
}

.contact-section::before {
    content: '';
    position: absolute;
    top: -30%;
    left: -10%;
    width: 700px;
    height: 700px;
    background: radial-gradient(circle, rgba(94, 23, 235, 0.12) 0%, transparent 65%);
    pointer-events: none;
}

.contact-section::after {
    content: '';
    position: absolute;
    bottom: -20%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(168, 85, 247, 0.08) 0%, transparent 65%);
    pointer-events: none;
}

.contact-section>* {
    position: relative;
    z-index: 1;
}

/* Form inputs */
.saas-input {
    background: transparent !important;
    border: none !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12) !important;
    border-radius: 0 !important;
    color: #fff !important;
    padding: 10px 0 !important;
    transition: border-color 0.25s ease;
    box-shadow: none !important;
    font-size: 0.95rem;
}

.saas-input:focus {
    border-bottom-color: var(--primary-light) !important;
    background: transparent !important;
}

.saas-input::placeholder {
    color: rgba(255, 255, 255, 0.25) !important;
}

.form-label-dark {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.4);
    margin-bottom: 6px;
}

/* === Footer === */
.site-footer {
    background: #09090b;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 40px 0;
}

.footer-link {
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.4);
    text-decoration: none;
    transition: color 0.2s;
}

.footer-link:hover {
    color: rgba(255, 255, 255, 0.75);
}

/* === Mega Dropdown === */
.mega-dropdown {
    position: static;
}

.mega-menu {
    position: fixed !important;
    left: 50% !important;
    transform: translateX(-50%) translateY(10px) !important;
    width: min(660px, 96vw);
    border-radius: var(--radius-lg) !important;
    background: var(--navbar-bg) !important;
    backdrop-filter: blur(28px) saturate(200%);
    -webkit-backdrop-filter: blur(28px) saturate(200%);
    border: 1px solid var(--navbar-border) !important;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.12), 0 4px 16px rgba(0, 0, 0, 0.06) !important;
    margin-top: 10px !important;
    opacity: 0;
    pointer-events: none;
    display: block;
    transition: opacity 0.25s ease, transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 1050;
}

.mega-menu.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0) !important;
    pointer-events: auto;
}

.mega-menu-inner {
    display: flex;
    gap: 0;
}

/* Main column: full width since side column removed */
.mega-col-main {
    flex: 1;
    padding: 24px 28px;
    border-right: none;
}

/* Mini CTA Bar at bottom of dropdown */
.mega-cta-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 28px;
    border-top: 1px solid var(--border-light);
    background: color-mix(in srgb, var(--primary) 4%, transparent);
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}

.mega-cta-bar p {
    margin: 0;
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Right column: Ecosystem + CTA */
.mega-col-side {
    width: 260px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.mega-label {
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--text-muted);
    margin: 0 0 14px 0;
}

/* Service items grid */
.mega-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px;
}

.mega-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 10px;
    border-radius: 12px;
    text-decoration: none;
    transition: background 0.2s ease, transform 0.2s ease;
    color: inherit;
}

.mega-item:hover {
    background: var(--nav-link-hover-bg);
    transform: translateX(2px);
}

.mega-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
    transition: transform 0.2s ease;
}

.mega-item:hover .mega-icon {
    transform: scale(1.1);
}

.mega-icon.purple {
    background: rgba(94, 23, 235, 0.1);
    color: #5e17eb;
}

.mega-icon.blue {
    background: rgba(59, 130, 246, 0.1);
    color: #3b82f6;
}

.mega-icon.green {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
}

.mega-icon.orange {
    background: rgba(245, 158, 11, 0.1);
    color: #f59e0b;
}

.mega-icon.indigo {
    background: rgba(99, 102, 241, 0.1);
    color: #6366f1;
}

.mega-icon.teal {
    background: rgba(20, 184, 166, 0.1);
    color: #14b8a6;
}

.mega-item-title {
    display: block;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-main);
    line-height: 1.3;
}

.mega-item-desc {
    display: block;
    font-size: 0.72rem;
    color: var(--text-muted);
    line-height: 1.45;
    margin-top: 2px;
}

/* Ecosystem list */
.mega-ecosystem {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.ecosystem-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    border-radius: 10px;
    text-decoration: none;
    transition: background 0.2s ease;
}

.ecosystem-item:hover {
    background: var(--nav-link-hover-bg);
}

.ecosystem-item>i {
    font-size: 1.1rem;
    color: var(--primary);
    width: 22px;
    text-align: center;
    flex-shrink: 0;
}

.ecosystem-title {
    display: block;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-main);
    line-height: 1.2;
}

.ecosystem-sub {
    display: block;
    font-size: 0.68rem;
    color: var(--text-muted);
}

/* CTA Card at bottom of side column */
.mega-cta {
    padding: 16px;
    border-radius: 12px;
    background: var(--primary-subtle);
    border: 1px solid rgba(94, 23, 235, 0.1);
    margin-top: auto;
}

.mega-cta-title {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--text-main);
    margin: 0 0 4px;
}

.mega-cta-desc {
    font-size: 0.72rem;
    color: var(--text-muted);
    margin: 0 0 12px;
    line-height: 1.45;
}

/* Chevron animation */
.mega-chevron {
    transition: transform 0.25s ease;
}

.mega-dropdown .nav-link[aria-expanded="true"] .mega-chevron {
    transform: rotate(180deg);
}

/* Dark mode adaptations for mega */
[data-theme="dark"] .mega-icon.purple {
    background: rgba(94, 23, 235, 0.18);
}

[data-theme="dark"] .mega-icon.blue {
    background: rgba(59, 130, 246, 0.15);
}

[data-theme="dark"] .mega-icon.green {
    background: rgba(16, 185, 129, 0.15);
}

[data-theme="dark"] .mega-icon.orange {
    background: rgba(245, 158, 11, 0.15);
}

[data-theme="dark"] .mega-icon.indigo {
    background: rgba(99, 102, 241, 0.15);
}

[data-theme="dark"] .mega-icon.teal {
    background: rgba(20, 184, 166, 0.15);
}

[data-theme="dark"] .mega-cta {
    background: rgba(94, 23, 235, 0.1);
    border-color: rgba(94, 23, 235, 0.2);
}

/* === Responsive === */
@media (max-width: 991.98px) {
    section {
        padding: 72px 0;
    }

    .hero {
        padding: 80px 0 60px;
        text-align: center;
    }

    .hero .d-flex {
        justify-content: center;
    }

    .hero-status {
        left: 0;
        bottom: -8px;
    }

    .metric-divider {
        display: none;
    }

    .metric-item {
        padding: 12px 8px;
    }

    /* On mobile, mega menu goes back to normal flow */
    .mega-menu {
        position: static !important;
        transform: none !important;
        width: 100% !important;
        border-radius: var(--radius-sm) !important;
        opacity: 1 !important;
        pointer-events: auto !important;
        box-shadow: none !important;
        border: none !important;
        background: transparent !important;
        backdrop-filter: none !important;
        margin-top: 0 !important;
        display: none;
        z-index: 1050;
    }

    .mega-menu.show {
        display: block !important;
    }

    .mega-menu-inner {
        flex-direction: column;
    }

    .mega-col-side {
        width: 100%;
        border-top: 1px solid var(--border-light);
        padding-top: 16px;
    }

    .mega-col-main {
        border-right: none;
    }

    .mega-grid {
        grid-template-columns: 1fr;
        gap: 2px;
    }

    /* Hide CTA card on mobile */
    .mega-cta {
        display: none;
    }

    /* ---- Mobile Navbar layout ---- */
    .navbar-saas .navbar-nav {
        align-items: stretch !important;
        gap: 2px !important;
        padding: 12px 0 16px;
        width: 100%;
    }

    .navbar-saas .nav-item {
        width: 100%;
    }

    .navbar-saas .nav-link {
        width: 100%;
        padding: 10px 14px !important;
    }

    /* CTA button full width on mobile */
    .navbar-saas .nav-item.ms-lg-1 {
        margin-top: 8px;
        margin-left: 0 !important;
    }

    .navbar-saas .nav-item.ms-lg-1 .btn-saas {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 767.98px) {
    .hero h1 {
        font-size: 2.4rem;
    }

    section {
        padding: 52px 0;
    }
}
/* --- Product Carousel Refinements --- */
.product-swiper {
    padding-bottom: 60px !important;
}

.product-swiper .swiper-slide {
    height: auto;
}

.product-swiper .portfolio-card {
    display: block;
    height: 480px !important;
}

.product-swiper .portfolio-card .p-4 {
    display: block;
}

/* Enterprise Pagination Bullets */
.product-swiper .swiper-pagination-bullet {
    width: 20px;
    height: 3px;
    border-radius: 4px;
    background: var(--primary) !important;
    opacity: 0.2;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    margin: 0 4px !important;
}

.product-swiper .swiper-pagination-bullet-active {
    width: 40px;
    opacity: 1;
    background: var(--primary) !important;
}
