/* =========================================
   Dirhamy Premium SaaS Theme v2 (Creative Overhaul)
   Scoped under .home-page to protect global styles
   ========================================= */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root {
    /* Brand Palette - Strictly Matched to base.css */
    --p-primary: var(--primary-color);
    /* Teal 600 */
    /* Teal - Core Brand */
    --p-primary-dark: var(--lighter-primary-color);
    /* Teal 700 */
    /* Darker Teal for Hover/Active */
    --p-primary-light: #e0f2f1;
    /* Generated tint closest to base teal */

    --p-accent: #f59e0b;
    /* Kept as accent if needed, or remove if too far */

    --p-bg-page: var(--secondary-color);
    --p-bg-subtle: var(--lightest-gray-color);
    /* Slate 50 */
    /* Slate-50 */
    --p-bg-glass: rgba(255, 255, 255, 0.9);

    /* Text Colors - Strictly Matched */
    --p-text-main: var(--black-text-color);
    /* #18212c */
    /* Slate-800 - Contrast */
    --p-text-body: var(--gray-color);
    /* rgb(91, 97, 105) */
    /* Slate-600 - Readable */
    --p-text-muted: var(--slightly-gray-color);
    /* #959aa1 */
    /* Slate-400 - Subtle */

    /* Spacing & Layout */
    --nav-height: 80px;
    /* Taller, premium nav */
    --radius-sm: 12px;
    --radius-md: 20px;
    --radius-lg: 16px;
    --radius-pill: 9999px;
    --radius-full: 9999px;
    /* Modern Pill Shape */

    /* Depth */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    /* Tinted Shadow */
    --shadow-inner: inset 0 2px 4px 0 rgba(0, 0, 0, 0.05);
}

/* Global Reset & Smooth Scroll */
html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    margin: 0;
    padding: 0;
    color: var(--p-text-body);
    background-color: #ffffff;
    line-height: 1.6;
    overflow-x: hidden;
    /* Prevent horizontal scroll */
}

/* Accessibility Focus Ring */
:focus-visible {
    outline: 2px solid var(--p-primary);
    outline-offset: 2px;
}

/* Reduced Motion Preference */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* --- Global Reset for Home Only --- */
.home-page {
    font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
    -webkit-font-smoothing: antialiased;
    background-color: var(--p-bg-page);
    color: var(--p-text-body);
    line-height: 1.6;
    width: 100%;
    overflow-x: hidden;
}

.home-page * {
    box-sizing: border-box;
}

/* Wrapper */
.container {
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Typography Overrides */
.home-page h1,
.home-page h2,
.home-page h3 {
    color: var(--p-text-main);
    letter-spacing: -0.025em;
    /* Tight trucking for modern look */
    line-height: 1.1;
    font-weight: 700;
}

.home-page p {
    margin-bottom: 1.5rem;
}

/* --- BUTTONS: The "Super UI" Polish --- */
/* Overriding any base.css .btn styles heavily */
/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 24px;
    height: 48px;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    transition: all 0.2s cubic-bezier(0.2, 0.8, 0.2, 1);
    cursor: pointer;
    border: none;
}

.btn:active {
    transform: scale(0.98);
}

.btn-primary {
    background-color: var(--p-text-main);
    /* Black/Dark Slate */
    color: white;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.btn-primary:hover {
    background-color: var(--p-primary);
    /* Brand Teal */
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 12px -2px rgba(13, 148, 136, 0.3);
}

/* Outline/Secondary Button */
.home-page .btn-outline {
    background: transparent;
    border: 2px solid var(--border-color);
    color: var(--black-text-color) !important;
}

.home-page .btn-outline:hover {
    border-color: var(--black-text-color);
    background: var(--lightest-gray-color);
}

/* White Pill Button (Elevated) */
.btn-white-pill {
    background: white;
    color: var(--black-text-color);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
}

.btn-white-pill:hover {
    background: white;
    color: var(--primary-color);
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.home-page .btn-login {
    background: transparent;
    color: var(--gray-color);
    height: 40px;
    padding: 0 20px;
}

.home-page .btn-login:hover {
    color: var(--black-text-color);
    background: var(--lightest-gray-color);
}

/* --- 1. NAVBAR (Glassmorphism) --- */
.home-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--nav-height);
    z-index: 1000;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.03);
    transition: all 0.3s ease;
}

.home-nav.scrolled {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: var(--shadow-sm);
}

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

.logo-img {
    height: 36px;
    width: auto;
    display: block;
}

.nav-desktop-links {
    display: flex;
    gap: 32px;
}

.nav-link {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--p-text-body);
    position: relative;
}

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

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    right: 0;
    left: 0;
    height: 2px;
    background: var(--p-primary);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s ease;
}

.nav-link:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

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

/* Mobile Menu Button */
.menu-toggle {
    display: none;
    background: transparent;
    border: none;
    color: var(--p-text-main);
    padding: 8px;
    cursor: pointer;
}


/* --- 2. HERO SECTION (Split & Clean) --- */
.hero-section {
    padding-top: calc(var(--nav-height) + 60px);
    /* Clear nav */
    padding-bottom: 80px;
    position: relative;
    overflow: hidden;
}

/* Creative Background Blobs */
.hero-blob {
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.4;
    z-index: -1;
}

.blob-1 {
    background: #ccfbf1;
    top: -200px;
    right: -100px;
}

.blob-2 {
    background: #fee2e2;
    bottom: 0;
    left: -200px;
    opacity: 0.3;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    /* Vertical Center ! */
    gap: 80px;
}

.hero-content {
    max-width: 580px;
}

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    background: var(--p-primary-light);
    color: var(--p-primary-dark);
    font-size: 0.85rem;
    font-weight: 700;
    border-radius: var(--radius-pill);
    margin-bottom: 24px;
}

.feat-badge {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--primary-color);
    background: var(--p-primary-light);
    padding: 6px 12px;
    border-radius: var(--radius-full);
    margin-bottom: 20px;
}

.feat-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--black-text-color);
}

.text-gradient {
    background: linear-gradient(135deg, var(--p-primary), #2dd4bf);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero-sub {
    font-size: 1.25rem;
    color: var(--p-text-body);
    margin-bottom: 2.5rem;
    font-weight: 400;
}

.hero-btns {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 48px;
}

/* Trust Strip (Inline) */
.hero-trust {
    display: flex;
    align-items: center;
    gap: 32px;
    padding-top: 24px;
    /* Removed border-top for cleaner look */
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--p-text-main);
}

.check-icon {
    color: var(--p-primary);
    background: rgba(13, 148, 136, 0.1);
    /* Softer tint */
    border-radius: 50%;
    padding: 4px;
    display: flex;
}

/* Hero UI Mockup (Creative Tilt) */
.hero-visual {
    position: relative;
}

.mockup-container {
    background: white;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(255, 255, 255, 0.6);
    padding: 24px;
    transform: perspective(1000px) rotateY(-8deg) rotateX(4deg);
    transition: transform 0.5s ease;
    position: relative;
}

.mockup-container:hover {
    transform: perspective(1000px) rotateY(0) rotateX(0);
}

.mock-stat-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 20px;
}

.mock-card {
    background: var(--p-bg-subtle);
    border-radius: var(--radius-sm);
    padding: 20px;
}

.mock-big-num {
    font-size: 2rem;
    font-weight: 700;
    color: var(--p-text-main);
}

.mock-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    color: var(--p-text-muted);
    letter-spacing: 0.05em;
    margin-bottom: 8px;
}

/* Floating Badge */
.float-badge {
    position: absolute;
    bottom: 40px;
    left: -40px;
    background: white;
    padding: 16px 24px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    display: flex;
    gap: 16px;
    align-items: center;
    animation: float-y 4s ease-in-out infinite;
}

.float-icon {
    width: 48px;
    height: 48px;
    background: #d1fae5;
    color: #059669;
    border-radius: 12px;
    display: grid;
    place-items: center;
}

.float-content strong {
    display: block;
    color: var(--p-text-main);
}

.float-content span {
    font-size: 0.9rem;
    color: #059669;
    font-weight: 500;
}


/* --- 3. SECTIONS --- */
.section-padding {
    padding: 100px 0;
}

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

.section-pill {
    display: inline-block;
    padding: 6px 16px;
    border-radius: var(--radius-pill);
    background: var(--p-bg-subtle);
    color: var(--p-primary);
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 16px;
}

/* Feature Tiles (Full Width Segmented Control) */
.tiles-wrapper {
    padding: 40px 0;
    border-bottom: 1px solid var(--p-bg-subtle);
    background: white;
    /* Removed display:flex so container works normally */
}

.tiles-track {
    display: flex;
    width: 100%;
    align-items: center;
    gap: 8px;
    padding: 8px;
    background: var(--p-bg-subtle);
    border-radius: 24px;
    border: 1px solid rgba(0, 0, 0, 0.02);
}

.tile-btn {
    flex: 1;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 20px;
    border-radius: 18px;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.2, 0.8, 0.2, 1);
    border: 1px solid transparent;
    color: var(--p-text-body);
}

.tile-btn:hover {
    background: rgba(255, 255, 255, 0.6);
    color: var(--p-text-main);
}

.tile-btn.active {
    background: white;
    color: var(--p-primary-dark);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    /* Soft pop */
    border: 1px solid rgba(0, 0, 0, 0.04);
}

.tile-icon-box {
    width: 24px;
    height: 24px;
    /* Smaller icon for dock */
    background: transparent;
    color: inherit;
    /* Inherit from btn */
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0;
}

.tile-btn.active .tile-icon-box {
    background: transparent;
    color: var(--p-primary);
}


.tile-btn.active .tile-label {
    color: var(--p-text-main);
}


/* --- 4. FEATURES SECTION (Premium Overhaul) --- */
.features-section {
    position: relative;
    background: linear-gradient(180deg, #ffffff 0%, #f0fdfa 100%);
    /* Subtle tint */
    overflow: hidden;
}

/* Background Blob Decoration */
.features-bg-blob {
    position: absolute;
    top: -100px;
    right: -100px;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(13, 148, 136, 0.08) 0%, transparent 70%);
    z-index: 0;
    pointer-events: none;
}

/* Features Grid Layout */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    position: relative;
    /* Above blob */
    z-index: 1;
}

/* Section Header Polishing */
.header-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 99px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--p-primary-dark);
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
}

.pill-dot {
    width: 6px;
    height: 6px;
    background: var(--p-primary);
    border-radius: 50%;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--p-text-body);
    margin-top: 16px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}


/* Premium Feature Card */
.feat-card {
    background: white;
    border-radius: 20px;
    padding: 32px;
    border: 1px solid rgba(0, 0, 0, 0.04);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
}

.feat-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px -5px rgba(13, 148, 136, 0.15);
    border-color: rgba(13, 148, 136, 0.2);
}

.feat-icon-box {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, #f0fdfa, #ccfbf1);
    color: var(--p-primary);
    border-radius: 16px;
    display: grid;
    place-items: center;
    margin-bottom: 20px;
    transition: transform 0.4s ease;
}

.feat-card:hover .feat-icon-box {
    transform: rotate(3deg) scale(1.05);
    /* Micro-interaction */
    color: var(--p-primary-dark);
}

.feat-card h3 {
    font-size: 1.25rem;
    color: var(--p-text-main);
    margin-bottom: 8px;
}

.feat-benefit {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--p-primary-dark);
    margin-bottom: 8px;
}

.feat-desc {
    font-size: 0.95rem;
    color: var(--p-text-body);
    line-height: 1.6;
    margin-bottom: 20px;
}

.feat-proof {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: #64748b;
    background: #f8fafc;
    padding: 6px 12px;
    border-radius: 6px;
    margin-bottom: 24px;
    margin-top: auto;
    /* Push to bottom if content varies */
}

.feat-link {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--p-primary);
    display: inline-flex;
    align-items: center;
    gap: 4px;
    text-decoration: none;
}

.feat-link:hover .arrow {
    transform: translateX(4px);
}

.arrow {
    transition: transform 0.2s ease;
}


/* AI Chat Section */
.ai-demo-wrapper {
    background: radial-gradient(circle at 50% 0%, #0f172a 0%, #1e293b 100%);
    color: white;
    border-radius: var(--radius-lg);
    overflow: hidden;
    position: relative;
    text-align: center;
    padding: 80px 24px;
}

.ai-demo-wrapper h2 {
    color: white;
    margin-bottom: 16px;
}

.ai-demo-wrapper p {
    color: #94a3b8;
    max-width: 500px;
    margin: 0 auto 40px;
}


/* --- 4. FEATURES GRID --- */
/* (Features Grid Styles are handled by .features-grid above) */

/* --- 4b. HOW IT WORKS (Organic Flow) --- */
.works-flow-container {
    position: relative;
    width: 100%;
    max-width: 1000px;
    margin: 60px auto 0;
    height: 400px;
    /* Space for the wave */
}

/* Background Wavy Line */
.flow-line-svg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    opacity: 0.6;
}

/* Individual Steps */
.flow-step {
    position: absolute;
    z-index: 1;
    width: 220px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.flow-step:hover {
    transform: translateY(-8px) scale(1.02);
    z-index: 5;
    /* Bring to front */
}

/* Step Card (Visual) */
.flow-card {
    background: white;
    padding: 12px;
    border-radius: 16px;
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 10px 15px -3px rgba(0, 0, 0, 0.02);
    width: 100%;
    aspect-ratio: 4/3;
    /* Consistent shape */
    display: grid;
    place-items: center;
    position: relative;
    transition: transform 0.3s, border-color 0.3s;
}

.flow-card:hover,
.flow-card.active-card {
    border-color: var(--primary-color);
    transform: translateY(-4px);
    box-shadow: 0 12px 24px -6px rgba(13, 148, 136, 0.15);
}

/* Floating Badges */
.flow-float-badge {
    position: absolute;
    top: -10px;
    right: -10px;
    width: 28px;
    height: 28px;
    background: var(--primary-color);
    border: 3px solid white;
    border-radius: 50%;
    display: grid;
    place-items: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Text Content */
.flow-text {
    text-align: center;
}

.flow-text h4 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--black-text-color);
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.step-num {
    font-size: 0.85rem;
    color: var(--primary-color);
    background: var(--p-primary-light);
    padding: 2px 8px;
    border-radius: 12px;
}

.flow-text p {
    font-size: 0.9rem;
    color: var(--gray-color);
}

/* Responsive: Stack Vertically */
@media (max-width: 900px) {
    .works-flow-container {
        height: auto;
        display: flex;
        flex-direction: column;
        gap: 40px;
        padding-bottom: 40px;
    }

    .flow-line-svg {
        display: none;
    }

    /* Hide wave on mobile */

    .flow-step {
        position: relative;
        top: auto !important;
        left: auto !important;
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }
}

/* --- 5. AI COACH SECTION (Dark Premium) --- */
.ai-hero-card {
    background: var(--black-text-color);
    /* Deep Slate (Brand Dark) */
    border-radius: 32px;
    padding: 60px 40px;
    position: relative;
    overflow: hidden;
    text-align: center;
    color: white;
    box-shadow: 0 20px 60px -10px rgba(24, 33, 44, 0.4);
}

/* Watermark Logo */
.ai-watermark {
    position: absolute;
    top: -50px;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    opacity: 0.03;
    pointer-events: none;
    z-index: 0;
}

.ai-header {
    position: relative;
    z-index: 2;
    margin-bottom: 40px;
}

.ai-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 6px 16px;
    border-radius: 99px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--primary-color);
    /* Teal Accent */
    margin-bottom: 20px;
}

.ai-header h2 {
    color: white;
    font-size: 2.5rem;
    margin-bottom: 12px;
}

.ai-header p {
    color: var(--slightly-gray-color);
    font-size: 1.1rem;
}

/* Glassy Chat Interface */
.chat-interface-glass {
    position: relative;
    z-index: 2;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    max-width: 500px;
    margin: 0 auto;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.chat-stream {
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-height: 220px;
    max-height: 300px;
    overflow-y: auto;
    /* Hide scrollbar */
    scrollbar-width: none;
}

.chat-msg {
    padding: 12px 16px;
    border-radius: 16px;
    font-size: 0.95rem;
    line-height: 1.5;
    max-width: 85%;
    animation: popIn 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.chat-msg.bot {
    background: white;
    color: var(--black-text-color);
    align-self: flex-start;
    border-bottom-left-radius: 4px;
}

.chat-msg.user {
    background: var(--primary-color);
    color: white;
    align-self: flex-end;
    border-bottom-right-radius: 4px;
}

/* Prompt Chips */
.chat-chips {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: none;
}

.ai-chip {
    background: rgba(255, 255, 255, 0.1);
    color: #e2e8f0;
    border: 1px solid transparent;
    padding: 6px 12px;
    border-radius: 99px;
    font-size: 0.8rem;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s;
}

.ai-chip:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    color: white;
}

/* Input Area */
.chat-input-area {
    display: flex;
    gap: 10px;
    background: rgba(0, 0, 0, 0.2);
    padding: 8px;
    border-radius: 99px;
}

#chat-input {
    flex: 1;
    background: transparent;
    border: none;
    color: white;
    padding: 0 16px;
    outline: none;
    font-size: 0.95rem;
}

#chat-input::placeholder {
    color: #64748b;
}

.chat-send-btn {
    width: 36px;
    height: 36px;
    background: var(--p-primary);
    border: none;
    border-radius: 50%;
    color: white;
    display: grid;
    place-items: center;
    cursor: pointer;
    transition: transform 0.2s;
}

.chat-send-btn:hover {
    transform: scale(1.1);
}

@keyframes popIn {
    from {
        opacity: 0;
        transform: translateY(10px) scale(0.95);
    }

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

/* Typing Dot Animation */
.typing-indicator span {
    display: inline-block;
    width: 6px;
    height: 6px;
    background-color: #94a3b8;
    border-radius: 50%;
    margin: 0 2px;
    animation: bounce 1.4s infinite ease-in-out both;
}

.typing-indicator span:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-indicator span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes bounce {

    0%,
    80%,
    100% {
        transform: scale(0);
        opacity: 0.5;
    }

    40% {
        transform: scale(1);
        opacity: 1;
    }
}

@media (max-width: 768px) {
    .ai-hero-card {
        padding: 40px 20px;
        border-radius: 20px;
    }

    .ai-header h2 {
        font-size: 1.8rem;
    }
}

.chat-interface {
    max-width: 500px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(12px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 20px;
    text-align: left;
}

.chat-bubbles {
    min-height: 200px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
}

.c-bubble {
    padding: 12px 16px;
    border-radius: 12px;
    font-size: 0.95rem;
    max-width: 85%;
}

.c-bot {
    background: white;
    color: var(--p-text-main);
    border-bottom-left-radius: 4px;
}

.c-user {
    background: var(--p-primary);
    color: white;
    border-bottom-right-radius: 4px;
    align-self: flex-end;
}

.chat-input {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 99px;
    padding: 8px 8px 8px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #cbd5e1;
    font-size: 0.9rem;
}

.chat-send {
    width: 36px;
    height: 36px;
    background: var(--p-primary);
    border-radius: 50%;
    display: grid;
    place-items: center;
    color: white;
    cursor: pointer;
}


/* CTA Banner */
.cta-banner {
    background: var(--p-bg-subtle);
    border-radius: var(--radius-lg);
    padding: 80px 40px;
    text-align: center;
}

.cta-banner h2 {
    font-size: 2.5rem;
    margin-bottom: 24px;
}


/* --- 6. PREMIUM FOOTER --- */
.home-footer {
    background: var(--lightest-gray-color);
    border-top: 1px solid var(--border-color);
    margin-top: 60px;
    font-size: 0.95rem;
    color: var(--gray-color);
}

/* Trust Strip */
.footer-trust-strip {
    /* No border needed if pills separate it */
    border-bottom: 1px solid transparent;
    padding: 24px 0;
}

.trust-row {
    display: flex;
    justify-content: center;
    gap: 24px;
    flex-wrap: wrap;
}

.t-item {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: white;
    padding: 10px 24px;
    border-radius: 99px;
    border: 1px solid var(--border-color);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--black-text-color);
    transition: transform 0.2s;
}

.t-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    border-color: var(--primary-color);
}

.t-item svg {
    color: var(--primary-color);
    width: 18px;
    height: 18px;
}


/* Main Footer Grid */
.footer-main {
    padding: 60px 20px;
    display: grid;
    grid-template-columns: 1.5fr 2fr;
    /* Brand col vs Links Group */
    gap: 60px;
}

.footer-col.brand-col {
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-width: 320px;
}

.footer-logo {
    display: inline-block;
}

.footer-tagline {
    font-weight: 600;
    color: var(--black-text-color);
    margin: 0;
}

.footer-desc {
    font-size: 0.9rem;
    margin: 0;
    line-height: 1.5;
    color: var(--gray-color);
}

/* Social Icons */
.social-row {
    display: flex;
    gap: 12px;
    margin-top: 8px;
}

.social-btn {
    width: 36px;
    height: 36px;
    border: 1px solid var(--border-color);
    border-radius: 50%;
    display: grid;
    place-items: center;
    color: var(--slightly-gray-color);
    transition: all 0.2s;
}

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

/* Links Columns */
.footer-links-group {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.footer-col h4 {
    font-family: inherit;
    /* Reset typography */
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--black-text-color);
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.footer-col a:not(.footer-logo):not(.social-btn) {
    display: block;
    color: var(--gray-color);
    margin-bottom: 12px;
    text-decoration: none;
    transition: color 0.2s;
}

.footer-col a:hover {
    color: var(--primary-color);
}

/* Bottom Bar */
.footer-bottom {
    background: var(--lightest-gray-color);
    padding: 20px 0;
    font-size: 0.85rem;
    color: var(--slightly-gray-color);
}

.bottom-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.bottom-links {
    display: flex;
    align-items: center;
    gap: 6px;
}

.bottom-links a {
    color: var(--slightly-gray-color);
    text-decoration: none;
}

.bottom-links a:hover {
    text-decoration: underline;
}

.dot {
    opacity: 0.5;
}


/* Responsive Footer */
@media (max-width: 900px) {
    .footer-main {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

@media (max-width: 600px) {
    .footer-links-group {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .trust-row {
        gap: 20px;
    }

    .bottom-row {
        flex-direction: column;
        text-align: center;
    }
}


/* --- ANIMATIONS --- */
@keyframes pulse {
    0% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.6;
        transform: scale(1.2);
    }

    100% {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes float-y {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}


/* --- RESPONSIVE --- */
@media (max-width: 1024px) {
    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }

    .hero-btns,
    .hero-trust {
        justify-content: center;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .nav-desktop-links,
    .nav-actions {
        display: none;
    }

    .menu-toggle {
        display: block;
    }

    .mockup-container {
        transform: none;
        margin-top: 40px;
    }

    .float-badge {
        position: relative;
        bottom: auto;
        left: auto;
        margin: 20px auto;
        max-width: 300px;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .footer-row {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-content .hero-btns {
        flex-direction: column;
        width: 100%;
    }

    .hero-btns .btn {
        width: 100%;
    }
}