/* AalyaCode Premium Design System & Stylesheet */

@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@300;400;600;700;800&family=Outfit:wght@300;400;500;600;700;800&display=swap');

:root {
    /* Fonts selection based on language */
    --font-en: 'Outfit', sans-serif;
    --font-ar: 'Cairo', sans-serif;

    /* Theme variables: Light Mode default */
    --bg-primary: #f8fafc;
    --bg-secondary: #ffffff;
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --card-bg: rgba(255, 255, 255, 0.7);
    --card-border: rgba(15, 23, 42, 0.06);
    --accent: #4f46e5;
    --accent-hover: #4338ca;
    --accent-rgb: 79, 70, 229;
    --accent-gradient: linear-gradient(135deg, #4f46e5 0%, #06b6d4 100%);
    --nav-bg: rgba(248, 250, 252, 0.85);
    --footer-bg: #0f172a;
    --footer-text: #94a3b8;
    --whatsapp-color: #25d366;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-premium: 0 20px 25px -5px rgba(79, 70, 229, 0.1), 0 10px 10px -5px rgba(79, 70, 229, 0.04);
}

/* Dark Mode Overrides */
html.dark {
    --bg-primary: #070a13;
    --bg-secondary: #0f1322;
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --card-bg: rgba(15, 19, 34, 0.6);
    --card-border: rgba(255, 255, 255, 0.07);
    --accent: #6366f1;
    --accent-hover: #4f46e5;
    --accent-rgb: 99, 102, 241;
    --accent-gradient: linear-gradient(135deg, #6366f1 0%, #22d3ee 100%);
    --nav-bg: rgba(7, 10, 19, 0.85);
    --shadow-premium: 0 20px 25px -5px rgba(99, 102, 241, 0.15), 0 10px 10px -5px rgba(99, 102, 241, 0.06);
}

/* Base resets */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    transition: background-color 0.3s ease, border-color 0.3s ease, color 0.2s ease;
}

html, body {
    width: 100%;
    min-height: 100%;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body[dir="rtl"] {
    font-family: var(--font-ar);
}

body[dir="ltr"] {
    font-family: var(--font-en);
}

/* Typography helper */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.25;
    margin-bottom: 0.5em;
}

p {
    line-height: 1.7;
    color: var(--text-secondary);
}

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

/* Base layout elements */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Header & Navigation */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: var(--nav-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--card-border);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 24px;
    font-weight: 800;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    cursor: pointer;
}

.logo svg {
    width: 32px;
    height: 32px;
    stroke: url(#logoGradient);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
    list-style: none;
}

.nav-links a {
    font-size: 16px;
    font-weight: 500;
    position: relative;
    padding: 8px 0;
    opacity: 0.85;
}

.nav-links a:hover,
.nav-links a.active {
    opacity: 1;
    color: var(--accent);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-gradient);
    transition: width 0.3s ease;
}

body[dir="rtl"] .nav-links a::after {
    left: auto;
    right: 0;
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 50px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
}

.btn-primary {
    background: var(--accent-gradient);
    color: #ffffff;
    box-shadow: var(--shadow-premium);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 30px rgba(var(--accent-rgb), 0.3);
}

.btn-secondary {
    background-color: var(--bg-secondary);
    color: var(--text-primary);
    border: 1px solid var(--card-border);
    box-shadow: var(--shadow-sm);
}

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

.btn-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--bg-secondary);
    border: 1px solid var(--card-border);
    color: var(--text-primary);
    cursor: pointer;
    font-size: 18px;
}

.btn-icon:hover {
    border-color: var(--accent);
    color: var(--accent);
    transform: scale(1.05);
}

/* Mobile Navigation Hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 4px;
}

.hamburger span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--text-primary);
    border-radius: 4px;
    transition: all 0.3s ease;
}

/* Hero Section */
.hero {
    position: relative;
    padding: 180px 0 100px 0;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: -10%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(var(--accent-rgb), 0.15) 0%, rgba(0,0,0,0) 70%);
    z-index: -1;
    pointer-events: none;
}

body[dir="rtl"] .hero-bg {
    right: auto;
    left: -10%;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    align-items: center;
    gap: 48px;
}

.hero-content h1 {
    font-size: 54px;
    line-height: 1.15;
    margin-bottom: 24px;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-content p {
    font-size: 18px;
    margin-bottom: 40px;
    max-width: 580px;
}

.hero-ctas {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Glassmorphism Graphic Design representing AalyaCode App Systems */
.system-visual-container {
    width: 100%;
    max-width: 450px;
    height: 400px;
    position: relative;
}

.blob-gradient {
    position: absolute;
    width: 300px;
    height: 300px;
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.4) 0%, rgba(6, 182, 212, 0.4) 100%);
    border-radius: 50%;
    filter: blur(40px);
    animation: float 8s infinite alternate;
}

.glass-card-main {
    position: absolute;
    top: 10%;
    left: 10%;
    width: 80%;
    height: 70%;
    background: var(--card-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--card-border);
    border-radius: 24px;
    box-shadow: var(--shadow-premium);
    padding: 32px;
    z-index: 2;
    animation: float 6s infinite ease-in-out;
}

.glass-card-sub {
    position: absolute;
    bottom: 5%;
    right: 5%;
    width: 55%;
    height: 45%;
    background: var(--card-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--card-border);
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
    padding: 20px;
    z-index: 3;
    animation: float 6s infinite ease-in-out;
    animation-delay: -2s;
}

/* Products Section */
.section {
    padding: 100px 0;
    position: relative;
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 60px auto;
}

.section-header h2 {
    font-size: 40px;
    margin-bottom: 16px;
}

.section-header p {
    font-size: 16px;
}

/* Ecosystem / Products Grid */
.products-layout {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.crm-main-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 32px;
    padding: 48px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: var(--shadow-md);
    position: relative;
    overflow: hidden;
}

.crm-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
}

.crm-visual-showcase {
    position: relative;
    height: 350px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mockup-desktop {
    width: 85%;
    height: 220px;
    background: #1e293b;
    border-radius: 12px;
    border: 4px solid #475569;
    position: absolute;
    top: 15%;
    left: 5%;
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.mockup-phone {
    width: 110px;
    height: 220px;
    background: #0f172a;
    border-radius: 20px;
    border: 5px solid #334155;
    position: absolute;
    bottom: 5%;
    right: 5%;
    box-shadow: var(--shadow-premium);
    z-index: 4;
    overflow: hidden;
}

.mockup-header {
    height: 16px;
    background: #334155;
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 0 8px;
}
.mockup-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #ef4444;
}
.mockup-dot:nth-child(2) { background: #eab308; }
.mockup-dot:nth-child(3) { background: #22c55e; }

.mockup-body {
    flex-grow: 1;
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.mockup-bar {
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

.mockup-bar-gradient {
    height: 12px;
    background: var(--accent-gradient);
    border-radius: 6px;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.product-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 24px;
    padding: 32px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    gap: 20px;
    position: relative;
    overflow: hidden;
}

.product-card:hover {
    transform: translateY(-8px);
    border-color: var(--accent);
    box-shadow: var(--shadow-premium);
}

.product-icon {
    width: 54px;
    height: 54px;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(var(--accent-rgb), 0.1) 0%, rgba(6, 182, 212, 0.1) 100%);
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.product-card h3 {
    font-size: 20px;
    margin-bottom: 0px;
}

.product-card p {
    font-size: 15px;
    flex-grow: 1;
}

.product-card .link-arrow {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--accent);
    font-weight: 600;
    font-size: 14px;
}

.product-card .link-arrow svg {
    width: 16px;
    height: 16px;
    transition: transform 0.3s ease;
}

.product-card:hover .link-arrow svg {
    transform: translateX(4px);
}

body[dir="rtl"] .product-card:hover .link-arrow svg {
    transform: translateX(-4px);
}

/* Call to Action Section (Got an Idea) */
.idea-cta-section {
    background: var(--accent-gradient);
    color: #ffffff;
    border-radius: 32px;
    padding: 60px;
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-premium);
}

.idea-cta-section .section-bg {
    position: absolute;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255,255,255,0.15) 0%, rgba(255,255,255,0) 70%);
    bottom: -150px;
    right: -150px;
}

.idea-cta-section h2 {
    font-size: 42px;
    margin-bottom: 16px;
}

.idea-cta-section p {
    color: rgba(255, 255, 255, 0.85);
    font-size: 18px;
    max-width: 600px;
    margin: 0 auto 40px auto;
}

.idea-cta-section .ctas {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

/* About Page / Section Styling */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 60px;
    align-items: center;
}

.about-features {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.about-feature-item {
    display: flex;
    gap: 20px;
}

.about-feature-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: var(--accent-gradient);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.about-feature-content h4 {
    font-size: 18px;
    margin-bottom: 6px;
}

.about-feature-content p {
    font-size: 14px;
}

/* Contact Page Form & Styling */
.contact-layout {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 60px;
}

.contact-card-form {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 24px;
    padding: 40px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: var(--shadow-md);
}

.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
}

.form-control {
    width: 100%;
    padding: 14px 20px;
    border-radius: 12px;
    border: 1px solid var(--card-border);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-size: 15px;
    transition: all 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(var(--accent-rgb), 0.15);
}

.contact-info-panel {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.info-icon {
    width: 50px;
    height: 50px;
    border-radius: 14px;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    box-shadow: var(--shadow-sm);
}

.info-text h4 {
    font-size: 16px;
    margin-bottom: 6px;
}

.info-text p {
    font-size: 15px;
}

.map-mock {
    height: 240px;
    width: 100%;
    background-color: var(--bg-secondary);
    border: 1px solid var(--card-border);
    border-radius: 20px;
    margin-top: 16px;
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.map-background-mock {
    width: 100%;
    height: 100%;
    opacity: 0.15;
    background-image: radial-gradient(var(--text-secondary) 1px, transparent 1px);
    background-size: 16px 16px;
}

.map-pin {
    position: absolute;
    color: var(--accent);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    animation: float 4s infinite ease-in-out;
}

/* Privacy Policy Layout */
.privacy-container {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 24px;
    padding: 48px;
    max-width: 800px;
    margin: 0 auto;
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
}

.privacy-container h1 {
    font-size: 32px;
    margin-bottom: 8px;
}

.privacy-meta {
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 32px;
    border-bottom: 1px solid var(--card-border);
    padding-bottom: 16px;
}

.privacy-section {
    margin-bottom: 32px;
}

.privacy-section h2 {
    font-size: 22px;
    margin-bottom: 12px;
}

/* Floating WhatsApp widget */
.whatsapp-float {
    position: fixed;
    bottom: 32px;
    right: 32px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: var(--whatsapp-color);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    box-shadow: 0 4px 10px rgba(37, 211, 102, 0.3), var(--shadow-lg);
    z-index: 999;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.whatsapp-float:hover {
    transform: scale(1.1) rotate(15deg);
    box-shadow: 0 8px 20px rgba(37, 211, 102, 0.4), var(--shadow-premium);
}

body[dir="rtl"] .whatsapp-float {
    right: auto;
    left: 32px;
}

/* Footer Section */
footer {
    background-color: var(--footer-bg);
    color: var(--footer-text);
    padding: 80px 0 30px 0;
    border-top: 1px solid rgba(255,255,255,0.05);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 60px;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 15px;
    max-width: 320px;
}

.footer-links-col h4 {
    color: #ffffff;
    font-size: 16px;
    margin-bottom: 24px;
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links a {
    font-size: 15px;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #ffffff;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
}

/* Reveal Animations (Scroll Reveal) */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Form success alert */
.alert-success {
    background-color: rgba(37, 211, 102, 0.15);
    border: 1px solid var(--whatsapp-color);
    color: var(--text-primary);
    padding: 16px;
    border-radius: 12px;
    margin-bottom: 24px;
    font-weight: 500;
}

/* Responsive styles */
@media (max-width: 992px) {
    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 32px;
    }
    .hero-content p {
        margin: 0 auto 32px auto;
    }
    .hero-ctas {
        justify-content: center;
    }
    .crm-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .about-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .contact-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none; /* Mobile menu toggled via JS */
        flex-direction: column;
        position: absolute;
        top: 80px;
        left: 0;
        width: 100%;
        background-color: var(--bg-secondary);
        padding: 32px;
        border-bottom: 1px solid var(--card-border);
        gap: 20px;
        box-shadow: var(--shadow-lg);
    }
    .nav-links.show {
        display: flex;
    }
    .hamburger {
        display: flex;
    }
    .nav-actions {
        margin-left: auto;
        margin-right: 16px;
    }
    body[dir="rtl"] .nav-actions {
        margin-right: auto;
        margin-left: 16px;
    }
    .products-grid {
        grid-template-columns: 1fr;
    }
    .hero-content h1 {
        font-size: 38px;
    }
    .idea-cta-section {
        padding: 40px 20px;
    }
    .idea-cta-section h2 {
        font-size: 32px;
    }
}

/* ============================================================
   ANIMATED STATS SECTION
   ============================================================ */
.stats-section {
    background: var(--bg-primary);
}
.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 48px;
}
.stat-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 20px;
    padding: 32px 24px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    position: relative;
    overflow: hidden;
}
.stat-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--accent-gradient);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 0;
}
.stat-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(99,102,241,0.15);
    border-color: var(--accent);
}
.stat-card:hover::before {
    opacity: 0.04;
}
.stat-icon {
    width: 52px;
    height: 52px;
    background: var(--accent-gradient);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    color: white;
    position: relative;
    z-index: 1;
}
.stat-number {
    display: block;
    font-size: 48px;
    font-weight: 800;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.1;
    margin-bottom: 8px;
    position: relative;
    z-index: 1;
}
.stat-label {
    font-size: 14px;
    font-weight: 600;
    opacity: 0.6;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    z-index: 1;
}

/* ============================================================
   PROCESS TIMELINE SECTION
   ============================================================ */
.process-timeline {
    margin-top: 48px;
    display: flex;
    flex-direction: column;
    gap: 0;
}
.process-step {
    display: flex;
    gap: 24px;
    cursor: pointer;
}
.process-step-left {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex-shrink: 0;
}
.process-step-icon {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    border: 2px solid;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background: transparent;
}
.process-step:hover .process-step-icon,
.process-step.expanded .process-step-icon {
    transform: scale(1.1);
    box-shadow: 0 0 24px rgba(99,102,241,0.3);
}
.process-connector {
    width: 2px;
    flex: 1;
    min-height: 24px;
    background: linear-gradient(to bottom, var(--card-border), transparent);
    margin: 6px 0;
}
.process-step-content {
    flex: 1;
    padding-bottom: 28px;
    padding-top: 12px;
}
.process-step-header {
    display: flex;
    align-items: center;
    gap: 12px;
}
.process-step-num {
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 1px;
    opacity: 0.8;
    min-width: 28px;
}
.process-step-title {
    font-size: 18px;
    font-weight: 700;
    flex: 1;
    margin: 0;
}
.process-chevron {
    opacity: 0.4;
    transition: transform 0.3s ease, opacity 0.3s ease;
    flex-shrink: 0;
}
.process-step.expanded .process-chevron {
    transform: rotate(180deg);
    opacity: 0.8;
}
.process-step-desc {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.4s ease, opacity 0.4s ease, margin 0.4s ease;
    margin-top: 0;
    font-size: 15px;
    line-height: 1.7;
    color: var(--text-secondary);
}
.process-step.expanded .process-step-desc {
    max-height: 200px;
    opacity: 1;
    margin-top: 12px;
}

/* ============================================================
   COST ESTIMATOR SECTION
   ============================================================ */
.estimator-layout {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 32px;
    align-items: start;
    margin-top: 48px;
}
.estimator-options {
    display: flex;
    flex-direction: column;
    gap: 28px;
}
.est-group-label {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.5;
    margin-bottom: 14px;
}
.est-toggle-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.est-toggle {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    border-radius: 12px;
    border: 1px solid var(--card-border);
    background: var(--card-bg);
    cursor: pointer;
    transition: all 0.25s ease;
    position: relative;
}
.est-toggle input[type="checkbox"] {
    display: none;
}
.est-toggle:hover {
    border-color: var(--accent);
    background: rgba(99,102,241,0.05);
}
.est-toggle.checked {
    border-color: var(--accent);
    background: rgba(99,102,241,0.08);
}
.est-toggle-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: var(--bg-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    flex-shrink: 0;
    transition: all 0.25s;
}
.est-toggle.checked .est-toggle-icon {
    background: var(--accent-gradient);
    color: white;
}
.est-toggle span {
    flex: 1;
    font-weight: 600;
    font-size: 14px;
}
.est-check {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 2px solid var(--card-border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    background: transparent;
    transition: all 0.25s;
    flex-shrink: 0;
}
.est-toggle.checked .est-check {
    background: var(--accent);
    border-color: var(--accent);
}
.est-features-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.est-feature-chip {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 100px;
    border: 1px solid var(--card-border);
    background: var(--card-bg);
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.2s ease;
}
.est-feature-chip input {
    display: none;
}
.est-feature-chip:hover {
    border-color: var(--accent);
    color: var(--accent);
}
.est-feature-chip.checked {
    background: var(--accent-gradient);
    border-color: transparent;
    color: white;
}
.est-result-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 20px;
    padding: 28px;
    position: sticky;
    top: 90px;
}
.est-result-card h4 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 16px;
}
.est-result-platforms {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    min-height: 32px;
    margin-bottom: 20px;
}
.est-platform-badge {
    font-size: 12px;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 100px;
    border: 1px solid;
}
.est-metric {
    margin-bottom: 20px;
}
.est-metric-label {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    opacity: 0.5;
    display: block;
    margin-bottom: 8px;
}
.est-metric-bar-wrapper {
    height: 8px;
    background: rgba(99,102,241,0.1);
    border-radius: 100px;
    overflow: hidden;
    margin-bottom: 6px;
}
.est-metric-bar {
    height: 100%;
    background: var(--accent-gradient);
    border-radius: 100px;
    transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}
.est-metric-value {
    font-size: 20px;
    font-weight: 800;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.est-result-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 20px;
}

/* ============================================================
   UPTURNCRM WALKTHROUGH SECTION
   ============================================================ */
.walkthrough-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 40px;
    align-items: start;
    margin-top: 48px;
}
.wt-step-indicators {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.wt-step-indicator {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    border-radius: 12px;
    cursor: pointer;
    transition: background 0.25s ease;
}
.wt-step-indicator:hover {
    background: var(--card-bg);
}
.wt-step-indicator.active {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
}
.wt-step-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid;
    flex-shrink: 0;
    transition: all 0.3s ease;
}
.wt-step-indicator-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.wt-step-num {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1px;
}
.wt-step-name {
    font-size: 13px;
    font-weight: 600;
    opacity: 0.8;
    line-height: 1.3;
}
.wt-content-panel {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 20px;
    overflow: hidden;
    display: grid;
    grid-template-rows: 220px 1fr;
}
.wt-screen {
    background: #0b0f1a;
    border-bottom: 1px solid var(--card-border);
    min-height: 220px;
    transition: all 0.4s ease;
    overflow: hidden;
}
.wt-text-panel {
    padding: 28px 32px;
}
.wt-step-badge {
    display: inline-block;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.wt-nav {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}

/* ============================================================
   RESPONSIVE ADJUSTMENTS FOR NEW SECTIONS
   ============================================================ */
@media (max-width: 1024px) {
    .estimator-layout {
        grid-template-columns: 1fr;
    }
    .est-result-card {
        position: static;
    }
    .walkthrough-layout {
        grid-template-columns: 1fr;
    }
    .wt-step-indicators {
        flex-direction: row;
        flex-wrap: wrap;
    }
    .wt-step-indicator {
        flex: 1;
        min-width: 120px;
    }
}
@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .stat-number {
        font-size: 38px;
    }
    .wt-content-panel {
        grid-template-rows: 200px auto;
    }
}
@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr 1fr;
        gap: 16px;
    }
    .stat-card {
        padding: 24px 16px;
    }
}

/* ============================================================
   ADVANCED / AI FEATURES CHIPS
   ============================================================ */
.est-group-label--advanced {
    background: linear-gradient(90deg, #6366f1, #06b6d4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    opacity: 1;
    font-size: 12px;
}
.est-adv-chip {
    border-color: rgba(99, 102, 241, 0.3);
    background: rgba(99, 102, 241, 0.04);
}
.est-adv-chip:hover {
    border-color: #6366f1;
    background: rgba(99, 102, 241, 0.1);
    color: #a5b4fc;
}
.est-adv-chip.checked {
    background: linear-gradient(135deg, #6366f1, #06b6d4);
    border-color: transparent;
    color: white;
    box-shadow: 0 4px 14px rgba(99, 102, 241, 0.35);
}

/* ============================================================
   LOGO IMAGE — NAV & FOOTER
   ============================================================ */
.logo-img {
    height: 36px;
    width: auto;
    object-fit: contain;
    display: block;
    transition: opacity 0.3s ease;
}

/* Dark mode (default): show dark logo (white bg), hide light logo */
.logo-img--light { display: none; }
.logo-img--dark  { display: block; }

/* Light mode: show light logo (white bg), hide dark logo */
body.light-mode .logo-img--light { display: block; }
body.light-mode .logo-img--dark  { display: none; }

/* Footer always uses the dark logo (dark bg) */
.logo-img--footer {
    height: 32px;
    width: auto;
    object-fit: contain;
    opacity: 0.9;
}
.logo-img--footer:hover { opacity: 1; }

/* Override old .logo sizing now that it holds an img not svg+span */
a.logo {
    display: flex;
    align-items: center;
    gap: 0;
    text-decoration: none;
}

/* ============================================================
   LOGO TEXT — icon + name layout
   ============================================================ */
.logo-text {
    font-size: 20px;
    letter-spacing: -0.3px;
    line-height: 1;
}
