/* ==========================================================================
   Design System & Variables (Koravio Style - Blue, Indigo & Slate)
   ========================================================================== */
:root {
    /* Color Palette */
    --bg-main: #ffffff;
    /* Pure white background */
    --bg-alt: #f8fafc;
    /* Soft light slate */
    --bg-card: #ffffff;

    --primary: #2563eb;
    /* Electric Cobalt Blue (Trust & Consulting) */
    --primary-light: #4f46e5;
    /* Vibrant Indigo (Automation) */
    --primary-glow: rgba(37, 99, 235, 0.05);
    --dark: #0f172a;
    /* Deep Slate (Executive Strategy) */
    --dark-hover: #1e293b;

    /* Typography colors */
    --text-main: #0f172a;
    /* Deep slate main headings */
    --text-muted: #4b5563;
    /* Muted gray body text */
    --text-dimmed: #94a3b8;
    /* Slate-400 */
    --border-color: #f1f5f9;
    /* Thin light border */
    --border-dark: #e2e8f0;
    /* Darker slate borders */

    --success: #10b981;
    /* Emerald Green (Growth & ROI) */
    --success-glow: rgba(16, 185, 129, 0.08);

    /* Spacing & Borders */
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-full: 50px;
    /* Pill shape */

    /* Shadows */
    --shadow-sm: 0 4px 12px rgba(15, 23, 42, 0.02);
    --shadow-md: 0 10px 30px rgba(15, 23, 42, 0.04);
    --shadow-lg: 0 20px 40px rgba(15, 23, 42, 0.06);

    /* Transitions */
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-normal: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ==========================================================================
   Resets & Base Styles
   ========================================================================== */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    background-color: var(--bg-main);
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-muted);
    background-color: var(--bg-main);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.2;
    color: var(--text-main);
}

a {
    color: inherit;
    text-decoration: none;
}

input,
textarea,
select,
button {
    font-family: inherit;
    color: inherit;
    font-size: 0.95rem;
    outline: none;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: var(--bg-main);
}

::-webkit-scrollbar-thumb {
    background: rgba(15, 23, 42, 0.08);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

/* ==========================================================================
   Layout & Utility Classes
   ========================================================================== */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.gradient-text {
    background: linear-gradient(135deg, var(--dark) 0%, var(--primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.bg-alt {
    background-color: var(--bg-alt);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.text-center {
    text-align: center;
}

.reveal {
    opacity: 1;
    transition: transform 0.6s ease, opacity 0.6s ease;
}

/* Grid helpers */
.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

/* Badge Tag */
.badge {
    display: inline-flex;
    align-items: center;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--primary);
    background: var(--primary-glow);
    padding: 0.4rem 1.1rem;
    border-radius: var(--radius-full);
    border: 1px solid rgba(79, 70, 229, 0.1);
    margin-bottom: 1.5rem;
}

/* Section Header */
.section-header {
    text-align: center;
    margin-bottom: 4.5rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.section-title {
    font-size: clamp(2rem, 3.2vw, 2.5rem);
    margin-bottom: 1.25rem;
    font-weight: 700;
    color: var(--text-main);
}

.section-subtitle {
    color: var(--text-muted);
    font-size: 1.05rem;
    line-height: 1.6;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 0.8rem 1.75rem;
    border-radius: var(--radius-sm);
    transition: var(--transition-fast);
    cursor: pointer;
    text-decoration: none;
    border: 1px solid transparent;
}

.btn-primary {
    background-color: var(--primary);
    color: #ffffff !important;
}

.btn-primary:hover {
    background-color: var(--primary-light);
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: transparent;
    color: var(--text-main) !important;
    border-color: var(--border-dark);
}

.btn-secondary:hover {
    background-color: var(--bg-alt);
    border-color: var(--text-main);
    transform: translateY(-2px);
}

/* ==========================================================================
   Header & Dropdown/Mega-Menu Navigation
   ========================================================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: rgba(15, 23, 42, 0.3);
    /* Muted dark transparent */
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    transition: var(--transition-fast);
}

.header .logo-text,
.header .nav-link {
    color: #ffffff;
}

.header .logo-icon {
    filter: brightness(0) invert(1);
}

.header .nav-btn {
    background: #ffffff;
    color: var(--dark) !important;
}

.header .nav-btn:hover {
    background: rgba(255, 255, 255, 0.9);
}

.header.scrolled {
    background-color: rgba(255, 255, 255, 0.75);
    border-bottom: 1px solid rgba(241, 245, 249, 0.8);
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.03);
}

.header.scrolled .logo-text {
    color: var(--text-main);
}

.header.scrolled .nav-link {
    color: var(--text-muted);
}

.header.scrolled .nav-link:hover {
    color: var(--primary);
}

.header.scrolled .logo-icon {
    filter: brightness(0);
}

.header.scrolled .nav-btn {
    background: var(--dark);
    color: #ffffff !important;
}

.header.scrolled .nav-btn:hover {
    background: var(--dark-hover);
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 2rem;
}

.logo-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    z-index: 1002;
}

.logo-icon {
    width: 32px;
    height: 32px;
    transition: filter var(--transition-fast);
}

.logo-text {
    font-family: 'Outfit', sans-serif;
    font-weight: 900;
    font-size: 1.4rem;
    letter-spacing: 0.05em;
    color: var(--text-main);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 2.25rem;
}

.nav-link {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-muted);
    transition: var(--transition-fast);
}

.nav-link:hover {
    color: var(--primary);
}

.nav-btn {
    font-size: 0.9rem;
    font-weight: 700;
    background: var(--dark);
    color: #ffffff !important;
    padding: 0.65rem 1.5rem;
    border-radius: var(--radius-full);
    transition: var(--transition-fast);
}

.nav-btn:hover {
    background: var(--dark-hover);
    transform: translateY(-2px);
}

/* Mobile Toggle */
.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1002;
    padding: 0.5rem;
}

.mobile-toggle .bar {
    width: 22px;
    height: 2px;
    background-color: var(--text-main);
    transition: var(--transition-fast);
}

/* ==========================================================================
   Hero Section & Browser Mockup
   ========================================================================== */
.hero-section {
    padding: 100px 0 0 0;
    /* No bottom padding, let the dashboard sit on the edge */
    position: relative;
    background-color: #0f172a;
    /* 60% top dark blue slate with glowing meshes, 40% bottom pure white */
    background-image: radial-gradient(circle at 80% 20%, rgba(37, 99, 235, 0.15) 0%, transparent 40%),
        radial-gradient(circle at 20% 40%, rgba(79, 70, 229, 0.1) 0%, transparent 40%),
        linear-gradient(to bottom, #0f172a 60%, #ffffff 60%);
    color: #ffffff;
    overflow: hidden;
}

.hero-section .hero-title {
    color: #ffffff;
}

.hero-section .hero-subtitle {
    color: #94a3b8;
}

.hero-section .btn-secondary {
    background: transparent;
    color: #ffffff !important;
    border-color: rgba(255, 255, 255, 0.2);
}

.hero-section .btn-secondary:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.4);
}

.hero-container-centered {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    max-width: 1000px;
    margin: 0 auto;
}

.hero-title {
    font-size: clamp(2.75rem, 5vw, 4.5rem);
    line-height: 1.1;
    font-weight: 800;
    color: var(--text-main);
    margin: 1rem 0 1.5rem 0;
    letter-spacing: -0.03em;
}

.hero-subtitle {
    font-size: clamp(0.95rem, 1.5vw, 1.1rem);
    color: var(--text-muted);
    max-width: 620px;
    margin: 0 auto 2.5rem auto;
    line-height: 1.6;
}

.hero-ctas {
    display: flex;
    gap: 1.25rem;
    justify-content: center;
    margin-bottom: 5rem;
}

/* Browser Frame */
.browser-frame {
    width: 110%;
    max-width: 1320px;
    border-radius: 24px;
    background: #ffffff;
    background-clip: padding-box;
    /* Prevents solid background from bleeding under the translucent border */
    border: 20px solid rgba(255, 255, 255, 0.25);
    /* High-visibility translucent border */
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.25),
        0 0 0 1px rgba(255, 255, 255, 0.35),
        0 40px 80px rgba(15, 23, 42, 0.2);
    overflow: hidden;
    position: relative;
    z-index: 2;
    margin-top: 1.5rem;
    margin-bottom: 5rem;
    /* Safe margins inside the flow */
}

.browser-header {
    height: 44px;
    background: #f8fafc;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    padding: 0 1.25rem;
    position: relative;
}

.browser-dots {
    display: flex;
    gap: 0.45rem;
    position: absolute;
    left: 1.25rem;
}

.browser-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
}

.browser-search {
    margin: 0 auto;
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    width: 240px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    color: var(--text-dimmed);
    font-weight: 500;
}

.browser-image {
    width: 100%;
    height: 600px;
    display: block;
}

/* ==========================================================================
   Trusted By Logos
   ========================================================================== */
.trusted-section {
    padding: 4rem 0;
    /* Back to normal padding since no negative margin overlap is needed */
    border-bottom: 1px solid var(--border-color);
    background-color: var(--bg-main);
}

.trusted-container {
    display: flex;
    justify-content: center;
}

.trusted-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 2rem 5rem;
    opacity: 0.65;
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 700;
    font-family: 'Outfit', sans-serif;
}

/* ==========================================================================
   Detailed Feature Cards & Mini-UIs
   ========================================================================== */
.feature-card-detailed {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 3rem;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    transition: var(--transition-normal);
}

.feature-card-detailed:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.feature-visual-panel {
    background: var(--bg-alt);
    border-radius: var(--radius-md);
    height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    overflow: hidden;
}

.feature-card-title {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--text-main);
}

.feature-card-desc {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* Mini UI Cards */
.mini-ui-card {
    background: #ffffff;
    border: 1px solid var(--border-dark);
    border-radius: var(--radius-md);
    padding: 1.25rem;
    width: 100%;
    max-width: 320px;
    box-shadow: var(--shadow-sm);
}

.task-row {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    font-size: 0.8rem;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border-color);
}

.task-row:last-child {
    border-bottom: none;
}

.task-text {
    flex-grow: 1;
    font-weight: 500;
    color: var(--text-main);
}

.task-text.done {
    text-decoration: line-through;
    color: var(--text-dimmed);
}

.task-badge {
    font-size: 0.65rem;
    font-weight: 700;
    padding: 0.15rem 0.5rem;
    border-radius: 4px;
}

.task-badge.design {
    background: #e0e7ff;
    color: #4338ca;
}

.task-badge.dev {
    background: #ecfdf5;
    color: #047857;
}

.ai-summary-box {
    background: var(--primary-glow);
    border-left: 3px solid var(--primary);
    border-radius: 4px;
    padding: 0.75rem 1rem;
}

.node-item {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--bg-alt);
    padding: 0.5rem 1rem;
    border-radius: 6px;
    border: 1px solid var(--border-color);
}

.node-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.node-dot.trigger {
    background: var(--primary);
}

.node-dot.action {
    background: var(--success);
}

.node-arrow {
    text-align: center;
    font-size: 0.85rem;
    color: var(--text-dimmed);
    font-weight: 700;
}

/* ==========================================================================
   Stats Panel
   ========================================================================== */
.stats-panel-card {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    box-shadow: var(--shadow-sm);
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    text-align: center;
}

.stat-item {
    border-right: 1px solid var(--border-color);
}

.stat-item:last-child {
    border-right: none;
}

.stat-item strong {
    font-size: 2.5rem;
    font-family: 'Outfit', sans-serif;
    color: var(--text-main);
    display: block;
    line-height: 1.2;
}

.stat-item span {
    font-size: 0.85rem;
    color: var(--text-dimmed);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ==========================================================================
   Testimonial Cards
   ========================================================================== */
.testimonial-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 2rem;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: var(--transition-fast);
}

.testimonial-card:hover {
    transform: translateY(-2px);
    border-color: var(--primary-light);
}

.testimonial-quote {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.testimonial-client {
    display: flex;
    align-items: center;
    gap: 0.85rem;
}

.client-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 700;
}

.client-meta h4 {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-main);
}

.client-meta p {
    font-size: 0.75rem;
    color: var(--text-dimmed);
}

/* ==========================================================================
   Pricing Cards
   ========================================================================== */
.pricing-card.popular {
    transform: scale(1.02);
}

.toggle-btn {
    background: transparent;
    color: var(--text-muted);
}

.toggle-btn.active {
    background: #ffffff;
    color: var(--text-main);
    box-shadow: var(--shadow-sm);
}

/* ==========================================================================
   Forms & Inputs
   ========================================================================== */
.form-group {
    margin-bottom: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-main);
}

.form-input {
    width: 100%;
    padding: 0.75rem 1rem;
    background: var(--bg-card);
    border: 1px solid var(--border-dark);
    border-radius: var(--radius-sm);
    color: var(--text-main);
    transition: var(--transition-fast);
}

.form-input:focus {
    border-color: var(--primary);
    background: var(--primary-glow);
}

.form-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
}

textarea.form-input {
    resize: none;
    min-height: 100px;
}

.select-input {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23475569'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1.1rem;
}

/* ==========================================================================
   Footer (Contrast Dark Slate matching Evalua)
   ========================================================================== */
.footer {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 5rem 0 2.5rem 0;
    background-color: #0c111d;
    /* Rich Slate Black matching reference */
    color: #94a3b8;
}

.footer h1,
.footer h2,
.footer h3,
.footer h4,
.footer h5,
.footer h6,
.footer .logo-text {
    color: #ffffff;
}

.footer-container {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-info {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-subtext {
    font-size: 0.85rem;
    color: #94a3b8;
    max-width: 320px;
}

.footer-nav {
    display: flex;
    justify-content: space-between;
    gap: 2rem;
}

.footer-col {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.footer-col-title {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #ffffff;
    margin-bottom: 0.35rem;
}

.footer-link {
    font-size: 0.85rem;
    color: #94a3b8;
    transition: var(--transition-fast);
}

.footer-link:hover {
    color: #ffffff;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 2rem;
}

.footer-bottom-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    color: #64748b;
}

/* Toast Notifications */
.toast-container {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.toast {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-left: 4px solid var(--primary);
    border-radius: var(--radius-sm);
    padding: 1rem 1.5rem;
    color: var(--text-main);
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.85rem;
    font-weight: 500;
    animation: slideIn var(--transition-normal);
}

.toast.toast-success {
    border-left-color: var(--success);
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(4px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ==========================================================================
   Responsive Adaptability
   ========================================================================== */
@media (max-width: 968px) {

    .grid-4,
    .grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }

    .stats-panel-card {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem 0;
    }

    .stat-item {
        border-right: none;
    }

    .stat-item:nth-child(odd) {
        border-right: 1px solid var(--border-color);
    }

    .footer-container {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
}

@media (max-width: 768px) {
    .grid-2 {
        grid-template-columns: 1fr;
    }

    .hero-container-centered {
        text-align: center;
    }

    .header-container {
        height: 56px;
    }

    .nav-menu {
        position: fixed;
        top: 56px;
        left: 0;
        width: 100%;
        height: calc(100vh - 56px);
        background: var(--bg-main);
        flex-direction: column;
        align-items: flex-start;
        padding: 3rem 2rem;
        gap: 1.5rem;
        transform: translateX(-100%);
        transition: transform var(--transition-normal);
        overflow-y: auto;
        z-index: 1001;
    }

    .nav-menu.active {
        transform: translateX(0);
    }

    .mobile-toggle {
        display: flex;
    }

    .mobile-toggle.active .bar:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }

    .mobile-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }

    .mobile-toggle.active .bar:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }

    .hero-section {
        padding: 90px 0 60px 0;
    }

    .hero-title {
        font-size: 2.25rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .hero-ctas {
        flex-direction: column;
        width: 100%;
        max-width: 320px;
    }

    .pricing-card.popular {
        transform: none;
    }
}

.footer .logo-icon {
    filter: brightness(0) invert(1);
}

/* ==========================================================================
   Header Dropdown / Mega-Menu Styling
   ========================================================================== */
.nav-item {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.dropdown-toggle {
    display: flex;
    align-items: center;
    cursor: pointer;
}

.dropdown-chevron {
    width: 10px;
    height: 10px;
    margin-left: 6px;
    transition: transform var(--transition-fast);
}

.nav-item:hover .dropdown-chevron {
    transform: rotate(180deg);
}

/* Dropdown Menu Container */
.dropdown-menu {
    position: absolute;
    top: calc(100% + 15px);
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 0.75rem;
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--transition-fast), transform var(--transition-fast), visibility var(--transition-fast);
    z-index: 1000;
    width: 240px;
}

/* Invisible bridge to maintain hover status over the gap */
.dropdown-menu::after {
    content: '';
    position: absolute;
    bottom: 100%;
    left: 0;
    width: 100%;
    height: 20px;
    background: transparent;
}

.nav-item:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

/* Dropdown Grids */
.products-grid,
.services-grid,
.industries-grid {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

/* Dropdown Items */
.dropdown-item {
    position: relative;
    padding: 0.75rem 1.25rem;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    transition: all var(--transition-fast);
    background: transparent;
    overflow: hidden;
}

.dropdown-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%) scaleY(0);
    width: 3px;
    height: 50%;
    background-color: var(--primary);
    border-radius: 0 4px 4px 0;
    transition: transform var(--transition-fast);
}

.dropdown-item:hover::before {
    transform: translateY(-50%) scaleY(1);
}

.dropdown-item-title {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-main);
    transition: color var(--transition-fast);
}

.dropdown-item:hover {
    background-color: rgba(37, 99, 235, 0.04);
    padding-left: 1.5rem;
}

.dropdown-item:hover .dropdown-item-title {
    color: var(--primary);
}

/* Header link transition safety */
.header .logo-text,
.header .nav-link,
.header.scrolled .logo-text,
.header.scrolled .nav-link {
    transition: color var(--transition-fast);
}

/* Mobile Dropdown styles */
@media (max-width: 768px) {
    .nav-item {
        flex-direction: column;
        align-items: flex-start;
        width: 100%;
    }

    .dropdown-toggle {
        justify-content: space-between;
        width: 100%;
    }

    .dropdown-menu {
        position: static;
        transform: none;
        opacity: 1;
        visibility: visible;
        box-shadow: none;
        border: none;
        background: transparent;
        padding: 0.5rem 1rem;
        display: none;
        width: 100%;
    }

    .dropdown-menu.active {
        display: block;
    }

    .products-grid,
    .services-grid,
    .industries-grid {
        display: flex;
        flex-direction: column;
        gap: 0.25rem;
    }

    .dropdown-item {
        padding: 0.5rem 0.75rem;
    }

    .dropdown-item::before {
        display: none;
    }

    .dropdown-item:hover {
        padding-left: 0.75rem;
        background-color: transparent;
    }

    .dropdown-item-title {
        font-size: 0.9rem;
    }

    .nav-item.active .dropdown-chevron {
        transform: rotate(180deg);
    }
}

/* ==========================================================================
   Hero Section Connected Nodes Styling & Keyframes
   ========================================================================== */
.nodes-decor {
    position: absolute;
    top: 15%;
    pointer-events: none;
    z-index: 1;
    opacity: 0.85;
    animation: nodeFloat 10s ease-in-out infinite;
}

.left-nodes {
    left: 4%;
}

.right-nodes {
    right: 4%;
    animation-delay: -5s;
}

@keyframes nodeFloat {

    0%,
    100% {
        transform: translateY(0) rotate(0deg) scale(1);
    }

    50% {
        transform: translateY(-12px) rotate(1deg) scale(1.02);
    }
}

@media (max-width: 1150px) {
    .nodes-decor {
        display: none;
    }
}
/* ==========================================================================
   How We Automate Section Styles
   ========================================================================== */
.process-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.process-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: var(--radius-md);
    padding: 2.5rem 1.75rem;
    transition: all var(--transition-normal);
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.process-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.06) 0%, transparent 100%);
    opacity: 0;
    transition: opacity var(--transition-fast);
    z-index: -1;
}

.process-card:hover::before {
    opacity: 1;
}

.process-card:hover {
    transform: translateY(-8px);
    border-color: rgba(99, 102, 241, 0.25);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35);
}

/* Active Highlighted State */
.process-card.active {
    background: rgba(99, 102, 241, 0.04);
    border: 1px solid rgba(99, 102, 241, 0.35);
    box-shadow: 0 0 25px rgba(99, 102, 241, 0.15), 0 20px 40px rgba(0, 0, 0, 0.3);
}

.process-card.active::before {
    opacity: 1;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, transparent 100%);
}

.process-number {
    font-size: 3rem;
    font-weight: 800;
    color: #818cf8; /* Light Indigo */
    font-family: 'Outfit', sans-serif;
    line-height: 1;
    margin-bottom: 1.25rem;
    letter-spacing: -0.02em;
}

.process-card-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 1rem;
    font-family: 'Outfit', sans-serif;
    letter-spacing: -0.01em;
}

.process-card-desc {
    font-size: 0.85rem;
    color: #94a3b8;
    line-height: 1.6;
    margin: 0;
}

@media (max-width: 1024px) {
    .process-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.25rem;
    }
}

@media (max-width: 640px) {
    .process-grid {
        grid-template-columns: 1fr;
    }
    .process-card {
        padding: 2rem 1.5rem;
    }
}
