:root {
    /* Color Palette (Based on SAMADI PRO Design System) */
    --bg-dark: #0F1113;
    --bg-secondary: #141618;
    --bg-card: #141618;
    --bg-card-hover: #0B0C0D;
    --border-color: #2A2E31;
    
    /* Accent Yellow Palette (Screenshot Exact Match: #E2B42A) */
    --gold-primary: #E2B42A;
    --gold-light: #F2C94C;
    --gold-dark: #C9A227;
    --gold-glow: rgba(226, 180, 42, 0.1);
    --gold-glow-intense: rgba(226, 180, 42, 0.25);
    
    /* Text Colors */
    --text-pure: #FFFFFF;
    --text-muted: #4B5563;
    --text-muted-dark: #374151;
    --text-dark: #0F1113;
    
    /* Fonts */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    /* Transitions */
    --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-bounce: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    
    /* Border Radius */
    --radius-lg: 16px;
    --radius-md: 10px;
    --radius-sm: 6px;
    
    /* Sizes */
    --header-height: 80px;
    --max-width: 1200px;
}

/* ==========================================================================
   Reset & Core Setup
   ========================================================================== */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    scrollbar-width: thin;
    scrollbar-color: #2A2E31 #0F1113;
}

/* Custom Scrollbar Styles */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: #0F1113;
}
::-webkit-scrollbar-thumb {
    background: #2A2E31;
    border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
    background: #E2B42A;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background: transparent;
    color: var(--text-pure);
    font-family: var(--font-body);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* ==========================================================================
   Atmospheric Glows & Interactive Canvas Background
   ========================================================================== */
#particle-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -2;
    pointer-events: none;
    background: #0F1113; /* Pure dark obsidian background from SAMADI PRO palette */
}

/* ==========================================================================
   Navigation Header
   ========================================================================== */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    display: flex;
    align-items: center;
    z-index: 100;
    background: rgba(7, 7, 7, 0.4);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    transition: var(--transition-smooth);
}

.main-header.scrolled {
    background: rgba(7, 7, 7, 0.85);
    border-bottom: 1px solid rgba(212, 175, 55, 0.08);
    height: 70px;
}

.header-container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Logo */
.logo {
    font-family: var(--font-heading);
    font-size: 1.45rem;
    font-weight: 700;
    text-decoration: none;
    color: var(--text-pure);
    letter-spacing: 0.5px;
    transition: var(--transition-smooth);
}

.logo-accent {
    background: linear-gradient(135deg, var(--gold-light), var(--gold-primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 800;
}

/* Nav links */
.nav-links {
    display: flex;
    gap: 2.2rem;
}

.nav-link {
    font-size: 0.9rem;
    font-weight: 400;
    color: var(--text-muted);
    text-decoration: none;
    position: relative;
    padding: 0.5rem 0;
    transition: var(--transition-smooth);
}

.nav-link:hover, .nav-link.active {
    color: var(--text-pure);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold-primary), transparent);
    transition: var(--transition-smooth);
}

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

/* Mobile Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 18px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 101;
}

.mobile-menu-toggle .bar {
    width: 100%;
    height: 2px;
    background-color: var(--text-pure);
    border-radius: 1px;
    transition: var(--transition-smooth);
}

/* ==========================================================================
   Buttons Framework
   ========================================================================== */
.btn {
    font-family: var(--font-heading);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: 25px;
    padding: 0.75rem 1.6rem;
    cursor: pointer;
    transition: var(--transition-smooth);
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.btn-outline {
    background: transparent;
    color: var(--gold-primary);
    border: 1.5px solid var(--border-color);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.btn-outline:hover {
    border-color: var(--gold-primary);
    background: rgba(242, 201, 76, 0.08);
    box-shadow: 0 0 20px var(--gold-glow);
    transform: translateY(-2px);
}

.btn-outline::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 120%;
    height: 120%;
    background: radial-gradient(circle, var(--gold-glow) 0%, transparent 70%);
    transform: translate(-50%, -50%) scale(0);
    transition: var(--transition-smooth);
    z-index: -1;
}

.btn-outline:hover::before {
    transform: translate(-50%, -50%) scale(1.2);
}

.btn-primary {
    background: var(--gold-primary);
    color: var(--text-dark);
    border: none;
    box-shadow: 0 4px 20px var(--gold-glow);
}

.btn-primary:hover {
    box-shadow: 0 0 30px var(--gold-glow-intense);
    transform: translateY(-2px);
    background: var(--gold-light);
}

.icon-arrow-diagonal {
    width: 14px;
    height: 14px;
    transition: var(--transition-bounce);
}

.btn:hover .icon-arrow-diagonal {
    transform: translate(2px, -2px);
}

.btn-text {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    color: var(--text-pure);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: var(--transition-smooth);
}

.btn-text:hover {
    color: var(--gold-light);
}

.play-btn-circle {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-bounce);
    position: relative;
}

.play-btn-circle svg {
    width: 14px;
    height: 14px;
    color: var(--text-pure);
    transform: translateX(1.5px);
    transition: var(--transition-smooth);
}

.btn-text:hover .play-btn-circle {
    border-color: var(--gold-primary);
    background: rgba(212, 175, 55, 0.1);
    transform: scale(1.08);
}

.btn-text:hover .play-btn-circle svg {
    color: var(--gold-light);
}

/* ==========================================================================
   Mobile Nav Menu Drawer
   ========================================================================== */
.mobile-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    background: rgba(7, 7, 7, 0.96);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    z-index: 99;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: var(--transition-smooth);
}

.mobile-nav.active {
    right: 0;
}

.mobile-nav-links {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2.5rem;
}

.mobile-nav-link {
    font-size: 1.5rem;
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
    font-family: var(--font-heading);
    transition: var(--transition-smooth);
}

.mobile-nav-link:hover {
    color: var(--gold-light);
    transform: scale(1.05);
}

.mobile-cta-btn {
    margin-top: 1.5rem;
}

/* ==========================================================================
   Main Grid Layout (Isolated)
   ========================================================================== */
.main-content {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: calc(var(--header-height) + 1.5rem) 2rem 2rem 2rem;
    box-sizing: border-box;
}

.demo-grid-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.15fr 0.85fr;
    gap: 2rem;
    align-items: center;
}

/* ==========================================================================
   Left Hero Column
   ========================================================================== */
.left-hero-block {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.section-tagline {
    font-family: var(--font-heading);
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--gold-primary);
    letter-spacing: 1.8px;
    margin-bottom: 1rem;
    position: relative;
    padding-left: 1.5rem;
}

.section-tagline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 12px;
    height: 1px;
    background-color: var(--gold-primary);
}

.main-title {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 3.4vw, 2.7rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -1px;
    margin-bottom: 1rem;
}

.title-highlight {
    background: linear-gradient(135deg, var(--gold-light) 0%, var(--gold-primary) 50%, var(--gold-dark) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.subtitle {
    font-size: 0.95rem;
    color: var(--text-muted);
    font-weight: 400;
    margin-bottom: 1.8rem;
    max-width: 480px;
}

.cta-actions {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-bottom: 2.2rem;
}

/* Bottom Stats Column list */
.stats-grid {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    width: 100%;
}

.stat-card {
    padding: 0.9rem 1.2rem;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.stat-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.stat-number {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-pure);
}

.stat-arrow {
    width: 14px;
    height: 14px;
    color: var(--gold-primary);
    opacity: 0.8;
}

.stat-desc {
    font-size: 0.76rem;
    color: var(--text-muted);
}

/* ==========================================================================
   Center Chat Widget Column
   ========================================================================== */
.center-widget-container {
    position: relative;
    width: 100%;
}

/* Glassmorphic chat device window styling */
.chat-device-window {
    width: 100%;
    min-height: 380px;
    display: grid;
    grid-template-columns: 55px 1fr;
    border-radius: var(--radius-lg);
    background: rgba(12, 12, 12, 0.4);
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.5), inset 0 1px 1px rgba(255, 255, 255, 0.08);
    position: relative;
    z-index: 2;
}

/* Device Sidebar styling */
.chat-device-sidebar {
    background: rgba(255, 255, 255, 0.01);
    border-right: 1px solid rgba(255, 255, 255, 0.04);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1.2rem 0;
}

.sidebar-logo {
    color: var(--gold-primary);
    width: 20px;
    height: 20px;
    margin-bottom: 2.2rem;
}

.sidebar-logo svg {
    width: 100%;
    height: 100%;
}

.sidebar-icons {
    display: flex;
    flex-direction: column;
    gap: 1.4rem;
    width: 100%;
    align-items: center;
}

.sidebar-icon-btn {
    width: 32px;
    height: 32px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    cursor: pointer;
    transition: var(--transition-smooth);
}

.sidebar-icon-btn svg {
    width: 16px;
    height: 16px;
}

.sidebar-icon-btn.active, .sidebar-icon-btn:hover {
    color: var(--gold-light);
    background: rgba(212, 175, 55, 0.08);
}

/* Main Chat Panel */
.chat-main-panel {
    display: flex;
    flex-direction: column;
    background: transparent;
}

.chat-top-bar {
    padding: 1rem 1.4rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.assistant-info {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.status-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #2ec4b6;
    box-shadow: 0 0 10px rgba(46, 196, 182, 0.6);
}

.info-text {
    display: flex;
    flex-direction: column;
}

.info-title {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-pure);
}

.info-status {
    font-size: 0.68rem;
    color: var(--text-muted);
}

.top-bar-controls {
    display: flex;
    gap: 0.35rem;
}

.top-bar-controls span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.2);
}

/* Messages Scroller styling */
.chat-messages-scroll {
    flex: 1;
    padding: 1.2rem 1.4rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    overflow-y: auto;
}

.message {
    display: flex;
    width: 100%;
}

.message-bubble {
    padding: 0.75rem 1rem;
    border-radius: 12px;
    font-size: 0.82rem;
    line-height: 1.4;
    max-width: 80%;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* AI Message */
.ai-msg {
    justify-content: flex-start;
}

.ai-msg .message-bubble {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-bottom-left-radius: 2px;
    color: var(--text-pure);
}

/* User Message */
.user-msg {
    justify-content: flex-end;
}

.user-msg .message-bubble {
    background: rgba(212, 175, 55, 0.04);
    border: 1.2px solid rgba(212, 175, 55, 0.4);
    border-bottom-right-radius: 2px;
    color: var(--gold-light);
}

/* Sparkles AI Message container format */
.ai-msg.ai-msg-report {
    display: flex;
    gap: 0.6rem;
    align-items: flex-start;
}

.report-icon-container {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(212, 175, 55, 0.08);
    border: 1px solid rgba(212, 175, 55, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold-primary);
    flex-shrink: 0;
    margin-top: 2px;
}

.report-icon-container svg {
    width: 14px;
    height: 14px;
}

/* Chat Input Bar styling */
.chat-input-bar {
    padding: 0.9rem 1.4rem;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
    display: flex;
    gap: 0.8rem;
    align-items: center;
}

.chat-input-bar input {
    flex: 1;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 20px;
    padding: 0.55rem 1.1rem;
    color: var(--text-pure);
    font-size: 0.8rem;
}

.chat-send-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--gold-primary);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-dark);
    cursor: pointer;
    transition: var(--transition-bounce);
}

.chat-send-btn svg {
    width: 14px;
    height: 14px;
    transform: translate(-1px, 0.5px);
}

.chat-send-btn:hover {
    background: var(--gold-light);
    transform: scale(1.08);
}

/* Hidden elements class for interactive animations */
.msg-hidden {
    opacity: 0;
    transform: translateY(15px);
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.msg-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Animated connecting wire overlay paths */
.connection-wires-overlay {
    position: absolute;
    top: 0;
    left: 100%;
    width: calc(100% * 0.15 + 20px); /* spans between chat window and right stack */
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

.wire-pulse {
    fill: none;
    stroke-linecap: round;
    stroke-dasharray: 6 30;
    animation: flowPulse 2s linear infinite;
}

@keyframes flowPulse {
    to {
        stroke-dashoffset: -36;
    }
}

/* ==========================================================================
   Right Column Connections Stack (4 Cards)
   ========================================================================== */
.right-features-stack {
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
    width: 100%;
}



.connect-card {
    padding: 0.85rem 1.1rem;
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: 1rem;
    cursor: pointer;
}

.connect-icon-wrapper {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-sm);
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold-primary);
    transition: var(--transition-smooth);
}

.connect-card:hover .connect-icon-wrapper {
    background: rgba(226, 180, 42, 0.08);
    border-color: var(--gold-primary);
    box-shadow: 0 0 10px rgba(226, 180, 42, 0.15);
}

.connect-icon {
    width: 16px;
    height: 16px;
}

.connect-text {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}

.connect-title {
    font-size: 0.78rem;
    color: var(--text-muted);
}

.connect-desc {
    font-size: 0.85rem;
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--text-pure);
}

.connect-card:hover .connect-desc {
    color: var(--gold-light);
}

/* Active animation state triggered by demo.js chat flow */
.connect-card.active-pulse {
    border-color: rgba(226, 180, 42, 0.4);
    box-shadow: 0 0 20px rgba(226, 180, 42, 0.08);
}

/* ==========================================================================
   Premium Card base styling (Solid Dark)
   ========================================================================== */
.glass-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.45);
    position: relative;
    z-index: 1;
    overflow: hidden;
    transition: var(--transition-smooth);
}

.glass-card::before {
    display: none;
}

.glass-card:hover {
    transform: translateY(-4px);
    border-color: var(--gold-primary);
    box-shadow: 0 12px 40px rgba(226, 180, 42, 0.06);
    background: var(--bg-card-hover);
}

.glass-card:hover::before {
    display: none;
}

/* ==========================================================================
   Footer Section
   ========================================================================== */
.demo-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.03);
    padding: 1.5rem 0;
}

.demo-footer-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-tagline-block {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.tagline-dot {
    width: 6px;
    height: 6px;
    background-color: var(--gold-primary);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--gold-glow-intense);
}

.tagline-text {
    font-family: var(--font-heading);
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--text-muted);
    letter-spacing: 1.2px;
}

.footer-tech-block {
    display: flex;
    align-items: center;
    gap: 1.4rem;
}

.tech-label {
    font-family: var(--font-heading);
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--text-muted);
    letter-spacing: 1px;
    opacity: 0.7;
    text-transform: uppercase;
}

.tech-logos-row {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.tech-item {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--text-muted);
    font-size: 0.85rem;
    font-weight: 500;
    opacity: 0.6;
    transition: var(--transition-smooth);
    cursor: pointer;
}

.tech-item svg {
    width: 18px;
    height: 18px;
    transition: var(--transition-smooth);
}

.tech-item span {
    font-size: 0.8rem;
}

.tech-item:hover {
    opacity: 1;
    color: var(--text-pure);
    transform: translateY(-1.5px);
}

.tech-item:hover svg {
    color: var(--gold-light);
    filter: drop-shadow(0 0 4px rgba(212, 175, 55, 0.4));
}

/* ==========================================================================
   Modals
   ========================================================================== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(4, 4, 4, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease-out;
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.modal-window {
    width: 90%;
    max-width: 520px;
    max-height: 90vh;
    overflow-y: auto;
    padding: 3rem;
    position: relative;
    transform: translateY(30px) scale(0.95);
    transition: var(--transition-bounce);
    border: 1px solid rgba(212, 175, 55, 0.15);
}

.modal-overlay.active .modal-window {
    transform: translateY(0) scale(1);
}

.modal-close {
    position: absolute;
    top: 1.5rem;
    right: 1.8rem;
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 2rem;
    cursor: pointer;
    line-height: 1;
    transition: var(--transition-smooth);
}

.modal-close:hover {
    color: var(--gold-light);
}

.modal-title {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 0.8rem;
    background: linear-gradient(135deg, var(--text-pure) 0%, var(--gold-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.modal-subtitle {
    font-size: 0.88rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
    line-height: 1.5;
}

.modal-form {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    transition: var(--transition-smooth);
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.form-group label {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-muted);
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.form-group input,
.form-group textarea {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-md);
    color: var(--text-pure);
    padding: 0.8rem 1rem;
    font-family: var(--font-body);
    font-size: 0.92rem;
    transition: var(--transition-smooth);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--gold-primary);
    background: rgba(255, 255, 255, 0.06);
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.1);
}

.btn-submit {
    margin-top: 1rem;
    width: 100%;
}

.form-success-message {
    display: none;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1.5rem;
    animation: fadeIn 0.5s ease-out forwards;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.success-icon-wrapper {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: rgba(212, 175, 55, 0.1);
    border: 2px solid var(--gold-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold-light);
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.2);
}

.success-icon-wrapper svg {
    width: 32px;
    height: 32px;
}

.form-success-message h3 {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    color: var(--text-pure);
}

.form-success-message p {
    font-size: 0.9rem;
    color: var(--text-muted);
    max-width: 320px;
    line-height: 1.6;
}

.success-close-btn {
    margin-top: 1rem;
    padding: 0.6rem 2.2rem;
}

/* ==========================================================================
   Desktop Scroll-free (Single Screen) Layout Mode
   ========================================================================== */
@media (min-width: 901px) and (min-height: 650px) {
    body {
        height: 100vh;
        overflow: hidden;
        display: flex;
        flex-direction: column;
    }
    
    .main-content {
        flex: 1;
        display: flex;
        flex-direction: column;
        justify-content: center;
        padding-top: calc(var(--header-height) + 1rem);
        padding-bottom: 1rem;
        height: calc(100vh - var(--header-height) - 80px);
        min-height: 0;
    }
    
    .demo-grid-wrapper {
        min-height: 0;
    }
    
    .left-hero-block {
        justify-content: center;
        padding-bottom: 0;
    }
    
    .stats-grid {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 0.5rem;
        width: 100%;
    }
    
    .stat-card {
        padding: 0.5rem 0.6rem;
        min-height: 0;
        display: flex;
        flex-direction: column;
        gap: 0.15rem;
    }
    
    .stat-number {
        font-size: 1.1rem;
    }
    
    .stat-desc {
        font-size: 0.65rem;
    }
    
    .chat-device-window {
        min-height: 330px;
    }
    
    .chat-messages-scroll {
        max-height: 210px;
    }
    
    .right-features-stack {
        gap: 0.5rem;
    }
    
    .connect-card {
        padding: 0.45rem 0.75rem;
    }
    
    .connect-icon-wrapper {
        width: 28px;
        height: 28px;
        border-radius: var(--radius-sm);
    }
    
    .connect-icon {
        width: 12px;
        height: 12px;
    }
    
    .connect-title {
        font-size: 0.68rem;
    }
    
    .connect-desc {
        font-size: 0.73rem;
    }
}

/* ==========================================================================
   Tablet / Mobile Responsiveness
   ========================================================================== */
@media (max-width: 1024px) {
    .demo-grid-wrapper {
        grid-template-columns: 1fr 1.2fr 0.8fr;
        gap: 1.5rem;
    }
}

@media (max-width: 900px) {
    .nav-links, #header-cta-btn {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .main-content {
        padding-top: calc(var(--header-height) + 2rem);
    }
    
    .demo-grid-wrapper {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .left-hero-block {
        align-items: center;
        text-align: center;
    }
    
    .section-tagline {
        padding-left: 0;
    }
    
    .section-tagline::before {
        display: none;
    }
    
    .cta-actions {
        justify-content: center;
        width: 100%;
    }
    
    .stats-grid {
        flex-direction: row;
        justify-content: center;
        gap: 1rem;
    }
    
    .stat-card {
        flex: 1;
    }
    
    /* Connection lines are useless on single column mobile vertical stacks */
    .connection-wires-overlay {
        display: none;
    }
    
    .right-features-stack {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .demo-footer-container {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }
    
    .footer-tech-block {
        flex-direction: column;
        gap: 0.8rem;
    }
}

/* Burger Open State animations */
.mobile-menu-toggle.open .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

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

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

@media (max-width: 480px) {
    .main-title {
        font-size: 2.3rem;
    }
    
    .stats-grid {
        flex-direction: column;
        width: 100%;
    }
    
    .cta-actions {
        flex-direction: column;
        width: 100%;
    }
    
    .cta-actions .btn, .cta-actions .btn-text {
        width: 100%;
        justify-content: center;
    }
    
    .right-features-stack {
        grid-template-columns: 1fr;
    }
    
    .tech-logos-row {
        flex-wrap: wrap;
        justify-content: center;
        gap: 1.2rem;
    }
    
    .chat-device-window {
        grid-template-columns: 45px 1fr;
    }
}
