/* ==========================================================================
   SAMADI PRO - Design System & Custom Properties
   ========================================================================== */
: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;
    --font-mono: 'JetBrains Mono', 'Fira Code', 'Consolas', monospace;
    
    /* 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;
    
    /* Header & Layout 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 {
    background: #0F1113;
    color-scheme: dark;
    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;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1.2rem;
}

/* Language Switcher */
.lang-switcher {
    display: inline-flex;
    background: #141618; /* Surface 1 solid */
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 2px;
    gap: 1px;
    user-select: none;
    -webkit-user-select: none;
}

.lang-btn {
    display: inline-block;
    background: transparent;
    border: 1px solid transparent;
    color: var(--text-muted);
    font-family: var(--font-mono);
    font-size: 0.62rem;
    font-weight: 700;
    padding: 0.25rem 0.55rem;
    border-radius: 18px;
    cursor: pointer;
    transition: var(--transition-smooth);
    -webkit-tap-highlight-color: transparent;
    text-align: center;
}

.lang-btn:hover {
    color: var(--text-pure);
}

.lang-btn.active {
    background: #0B0C0D; /* Surface 2 active */
    color: var(--gold-primary);
    border-color: rgba(226, 180, 42, 0.15);
}

.lang-switcher.mobile-switcher {
    margin: 0.8rem 0;
    justify-content: center;
    width: max-content;
    align-self: center;
    background: #141618; /* Surface 1 */
    border: 1px solid var(--border-color);
}

.mobile-switcher .lang-btn {
    font-size: 0.58rem; /* Slightly smaller, less prominent */
    opacity: 0.65;
    color: var(--text-muted);
    padding: 0.2rem 0.5rem;
}

.mobile-switcher .lang-btn:hover {
    color: var(--text-pure);
    opacity: 0.85;
}

.mobile-switcher .lang-btn.active {
    background: #0B0C0D; /* Surface 2 active */
    color: var(--gold-primary);
    border-color: rgba(226, 180, 42, 0.12);
    opacity: 1;
}

@media (max-width: 900px) {
    .header-actions .lang-switcher {
        display: none;
    }
}

/* Logo styling */
.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    transition: var(--transition-smooth);
}

.logo-img {
    height: 68px; /* Further increased size for maximum brand visibility */
    width: auto;
    display: block;
    transition: height 0.3s ease;
}

/* Slightly shrink the logo when navigation bar shrinks on scroll */
.main-header.scrolled .logo-img {
    height: 56px;
}

/* Mobile screen constraints to prevent overlap */
@media (max-width: 900px) {
    .logo-img {
        height: 52px;
    }
    .main-header.scrolled .logo-img {
        height: 46px;
    }
}

/* 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 {
    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:hover::after {
    width: 100%;
}

/* Hamburger menu 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;
}

/* Outline Button styling */
.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);
}

/* Primary Button styling */
.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);
}

/* Button Arrow Scaling */
.icon-arrow-diagonal {
    width: 14px;
    height: 14px;
    transition: var(--transition-bounce);
}

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

/* Play/Link button style */
.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 Content Layout
   ========================================================================== */
.main-content {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: calc(var(--header-height) + 3rem) 2rem 4rem 2rem;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero-section {
    display: grid;
    grid-template-columns: 1.22fr 0.9fr;
    gap: 4.5rem;
    align-items: center;
    margin-bottom: 1.5rem; /* Reduced by ~30% */
}

/* Left Hero Text block */
.hero-text-block {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.section-tagline {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--gold-primary);
    letter-spacing: 2px;
    margin-bottom: 1.2rem;
    position: relative;
    padding-left: 0;
}

.section-tagline::before {
    content: '// ';
    color: var(--gold-primary);
    font-family: var(--font-mono);
    font-weight: 700;
}

.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.98rem;
    color: var(--text-muted);
    font-weight: 400;
    margin-bottom: 1.8rem;
    max-width: 500px;
}

/* Hero Terminal Title Style */
.hero-terminal-title {
    font-family: 'JetBrains Mono', 'Fira Code', 'Consolas', monospace;
    text-align: left;
    display: inline-flex;
    flex-direction: column;
    gap: 0.7rem;
    background: #141618; /* Surface 1 solid */
    border: 1px solid #2A2E31;
    border-radius: 12px;
    padding: 2.2rem 2.5rem;
    box-sizing: border-box;
    width: 100%;
    max-width: 680px;
    margin: 0 auto 1.5rem auto;
    font-weight: 500;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    height: auto;
}

.terminal-line {
    font-size: 1.45rem;
    line-height: 1.5;
    color: var(--text-pure);
    min-height: 2.2rem; /* Prevent layout shift during typing */
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}

.terminal-line.command-line {
    color: var(--text-pure);
}

.terminal-line.output-line {
    color: var(--gold-primary);
}

.term-prompt {
    color: #4B5563; /* Gray prompt */
    user-select: none;
    margin-right: 0.6rem;
}

.term-cursor {
    color: var(--gold-light);
    font-weight: 700;
    animation: blinkCursor 1s step-end infinite;
    display: inline-block;
    margin-left: 0.2rem;
}

/* Responsive Terminal Title adjustments */
@media (max-width: 900px) {
    .hero-terminal-title {
        padding: 1.5rem 1.8rem;
        max-width: 100%;
        margin-bottom: 1.2rem;
    }
    
    .terminal-line {
        font-size: 1.05rem;
        min-height: 1.6rem;
    }
}

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

/* Right Vertical Stack features */
.features-vertical-stack {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* ==========================================================================
   Premium Glassmorphic Cards (Framework)
   ========================================================================== */
.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(-5px);
    border-color: var(--gold-primary);
    box-shadow: 0 12px 40px rgba(242, 201, 76, 0.06);
    background: var(--bg-card-hover);
}

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

/* Shared Feature Card Structure */
.feature-card {
    padding: 1.2rem 1.5rem;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 1.2rem;
    cursor: pointer;
}

.card-icon-wrapper {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-md);
    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);
}

.feature-card:hover .card-icon-wrapper {
    background: rgba(212, 175, 55, 0.1);
    border-color: var(--gold-primary);
    transform: scale(1.05);
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.15);
}

.card-icon {
    width: 20px;
    height: 20px;
    transition: var(--transition-smooth);
}

.card-content {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.card-title {
    font-family: var(--font-heading);
    font-size: 0.98rem;
    font-weight: 600;
    letter-spacing: 1px;
    color: var(--text-pure);
    transition: var(--transition-smooth);
}

.feature-card:hover .card-title {
    color: var(--gold-light);
}

.card-desc {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.5;
}

/* Slide arrow transition inside card */
.card-arrow-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    transition: var(--transition-smooth);
}

.card-arrow {
    width: 18px;
    height: 18px;
    transition: var(--transition-bounce);
}

.feature-card:hover .card-arrow-wrapper {
    color: var(--gold-light);
    transform: translateX(4px);
}


/* ==========================================================================
   Hero Metrics & AI Workspace (Linear Redesign)
   ========================================================================== */
.hero-metrics {
    display: flex;
    flex-wrap: wrap;
    gap: 1.2rem;
    margin-top: 2rem;
    width: 100%;
}

.metric-item {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.metric-value {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--gold-primary);
}

.metric-label {
    font-size: 0.72rem;
    color: var(--text-muted);
    letter-spacing: 0.3px;
}

.metric-item-divider {
    width: 1px;
    height: 32px;
    background: rgba(255, 255, 255, 0.08);
    align-self: center;
}

.hero-workspace-block {
    position: relative;
    width: 100%;
    margin-top: 2.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

.workspace-window {
    width: 100%;
    max-width: 325px;
    height: 330px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    z-index: 3; /* Elevated layer above cables overlay */
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.workspace-window:hover {
    border-color: rgba(226, 180, 42, 0.25);
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.6);
}

.workspace-header {
    height: 38px;
    background: #0B0C0D;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 0.95rem;
    flex-shrink: 0;
}

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

.window-controls .dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
}

.dot.red { background: #FF5F56; }
.dot.yellow { background: #FFBD2E; }
.dot.green { background: #27C93F; }

.window-title {
    font-size: 0.7rem;
    color: var(--text-muted);
    font-family: var(--font-mono);
    font-weight: 500;
    letter-spacing: 0.5px;
}

.window-status {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.status-indicator {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #4B5563;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.status-indicator.online {
    background: #27C93F;
    animation: pulseGreen 2s infinite ease-in-out;
}

@keyframes pulseGreen {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(39, 201, 63, 0.7);
    }
    70% {
        transform: scale(1.05);
        box-shadow: 0 0 0 5px rgba(39, 201, 63, 0);
    }
    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(39, 201, 63, 0);
    }
}

.status-text {
    font-size: 0.65rem;
    color: var(--text-muted);
    font-weight: 500;
    font-family: var(--font-mono);
}

.status-text.online {
    color: #27C93F;
}

.workspace-container {
    display: flex;
    flex: 1;
    min-height: 0;
    background: var(--bg-secondary);
}

.workspace-sidebar {
    width: 130px;
    background: #0B0C0D;
    border-right: 1px solid rgba(255, 255, 255, 0.04);
    display: flex;
    flex-direction: column;
    padding: 0.8rem 0.5rem;
    gap: 0.25rem;
    flex-shrink: 0;
    min-height: 0;
    user-select: none;
}

.sidebar-item {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.4rem 0.55rem;
    border-radius: var(--radius-sm);
    font-size: 0.62rem;
    color: var(--text-muted);
    font-weight: 500;
    transition: background-color 0.2s ease, color 0.2s ease;
    cursor: pointer;
    font-family: var(--font-mono);
}

.sidebar-item.active {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-pure);
}

.sidebar-item:hover:not(.active) {
    background: rgba(255, 255, 255, 0.02);
    color: var(--text-pure);
}

.sidebar-icon {
    font-size: 0.72rem;
}

.sidebar-label {
    letter-spacing: 0.2px;
    font-family: var(--font-mono);
}

.workspace-body {
    flex: 1;
    padding: 0.85rem;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    background: var(--bg-secondary);
    min-height: 0;
}

.workspace-body::-webkit-scrollbar {
    width: 4px;
}

.workspace-body::-webkit-scrollbar-track {
    background: transparent;
}

.workspace-body::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 2px;
}

.chat-log {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    width: 100%;
}

.message-bubble {
    max-width: 85%;
    padding: 0.5rem 0.75rem;
    border-radius: var(--radius-md);
    font-size: 0.72rem;
    line-height: 1.35;
    animation: scaleUp 0.25s ease forwards;
    font-family: var(--font-mono);
}

.message-bubble.user {
    align-self: flex-end;
    background: #2A2E31;
    color: var(--text-pure);
    border-bottom-right-radius: 1px;
}

.message-bubble.ai {
    align-self: flex-start;
    background: #0B0C0D;
    color: var(--text-pure);
    border-top-left-radius: 1px;
    border: 1px solid rgba(255, 255, 255, 0.04);
}

.step-execution {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    margin: 0.35rem 0;
    padding-left: 0.45rem;
    border-left: 1px dashed rgba(255, 255, 255, 0.12);
}

.step-item {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.68rem;
    color: var(--text-muted);
    font-family: var(--font-mono);
    opacity: 0;
    transform: translateY(4px);
    animation: fadeInUp 0.25s ease forwards;
}

.step-item.success {
    color: var(--text-pure); /* White text for premium readability */
}

.step-item .check-icon {
    width: 9px;
    height: 9px;
    color: var(--gold-primary);
}

.step-status-thinking {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.68rem;
    color: var(--text-muted);
    font-family: var(--font-mono);
}

.thinking-spinner {
    width: 8px;
    height: 8px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-top-color: var(--gold-primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

.output-widget {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 0.5rem 0.7rem;
    margin-top: 0.4rem;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    min-width: 150px;
    animation: scaleUp 0.3s ease forwards;
}

.output-title {
    font-size: 0.6rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.4px;
    font-family: var(--font-mono);
}

.output-value {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-pure);
    font-family: var(--font-mono);
}

.output-trend {
    font-size: 0.65rem;
    color: #27C93F;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.15rem;
    font-family: var(--font-mono);
}

.floating-cards-container {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
    display: none; /* Desktop only */
}

.floating-card {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.6rem;
    background: rgba(20, 22, 24, 0.55); /* Glassmorphism background */
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.08); /* Translucent border */
    border-radius: var(--radius-sm);
    font-size: 0.65rem;
    font-weight: 500;
    color: var(--text-pure);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
    pointer-events: auto;
    transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
    animation: float 6s ease-in-out infinite;
    z-index: 3; /* Elevated layer above cables overlay */
}

.floating-card:hover {
    border-color: var(--gold-primary);
    box-shadow: 0 0 10px rgba(226, 180, 42, 0.15);
    transform: scale(1.02);
}

.floating-card.active-pulse {
    border-color: var(--gold-primary);
    box-shadow: 0 0 12px rgba(226, 180, 42, 0.2);
}

.data-cables-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    display: none; /* Desktop only */
}

.connector-lines {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.conn-line {
    fill: none;
    stroke: url(#lineFade);
    stroke-width: 1;
    filter: url(#lineGlow);
    stroke-dasharray: 6 4;
    animation: dashFlow 3s linear infinite;
    transition: stroke 0.3s ease, stroke-width 0.3s ease, filter 0.3s ease;
    stroke-opacity: 0.35; /* Base visibility in state of rest */
}

.conn-line.active-pulse {
    stroke: #E2B42A; /* active bright gold color */
    stroke-width: 1.5; /* slightly thicker active wire */
    filter: drop-shadow(0 0 4px #E2B42A) url(#lineGlow); /* intense glow */
}

/* Animations */
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}

@keyframes dashFlow {
    to { stroke-dashoffset: -20; }
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

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

@keyframes scaleUp {
    from { opacity: 0; transform: scale(0.96); }
    to { opacity: 1; transform: scale(1); }
}

/* ==========================================================================
   Cases & Business Scenarios Section
   ========================================================================== */
.cases-section {
    padding: 2.2rem 1.5rem; /* Reduced padding-top to compress layout gaps */
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.cases-header {
    text-align: center;
    margin-bottom: 2.2rem;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--text-pure);
    margin-top: 0.5rem;
    margin-bottom: 0.6rem;
    letter-spacing: -0.5px;
}

.section-subtitle {
    font-size: 0.88rem;
    color: var(--text-muted);
    max-width: 500px;
    margin: 0 auto;
    line-height: 1.45;
}

.cases-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.2rem;
    width: 100%;
}

.case-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1.4rem 1.6rem;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    transition: border-color 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
    position: relative;
    overflow: hidden;
}

.case-card:hover {
    border-color: rgba(226, 180, 42, 0.25);
    background: var(--bg-surface-hover);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
    transform: translateY(-4px);
}

.case-icon-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.case-badge {
    font-size: 0.62rem;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--gold-primary);
    background: rgba(226, 180, 42, 0.06);
    padding: 0.2rem 0.5rem;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(226, 180, 42, 0.12);
    font-family: var(--font-mono);
}

.case-title {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-pure);
}

.case-desc {
    font-size: 0.82rem;
    color: var(--text-muted);
    line-height: 1.45;
    margin-bottom: 1rem;
}

.case-result {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    margin-top: 0.3rem;
}

.result-value {
    font-family: var(--font-mono);
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--gold-primary);
}

.result-label {
    font-size: 0.72rem;
    color: var(--text-muted);
    font-weight: 500;
}

/* ==========================================================================
   Technologies & Partner Footer
   ========================================================================== */
.tech-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.03);
    padding: 3rem 0;
    margin-top: 2rem;
}

.footer-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.8rem;
}

.footer-label {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
    letter-spacing: 1.5px;
    opacity: 0.75;
}

.partners-logo-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

.partner-logo {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    color: var(--text-muted);
    font-size: 0.85rem;
    font-weight: 500;
    opacity: 0.65;
    transition: var(--transition-smooth);
    cursor: pointer;
    font-family: var(--font-mono);
}

.partner-logo:hover {
    opacity: 1;
    color: var(--text-pure);
    transform: translateY(-2px);
}

.logo-svg {
    width: 22px;
    height: 22px;
    transition: var(--transition-smooth);
}

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

/* ==========================================================================
   Interactive Modals & Success Frames
   ========================================================================== */
.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%;
}

/* Success messaging view */
.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;
}

/* ==========================================================================
   Responsive Adaptations (Breakpoints)
   ========================================================================== */

/* Tablet Layout (max-width: 1024px) */
@media (max-width: 1024px) {
    .hero-section {
        grid-template-columns: 1.1fr 1fr;
        gap: 2.5rem;
    }
    
    .features-horizontal-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem;
    }
    
    .partners-logo-grid {
        gap: 1.5rem;
    }
}

/* Small Laptops / Tablets (max-width: 900px) */
@media (max-width: 900px) {
    .nav-links, #header-cta-btn {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    /* Change hero split to single column */
    .hero-section {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }
    
    .hero-text-block {
        align-items: center;
    }
    
    .cta-actions {
        justify-content: center;
    }
    
    .subtitle {
        max-width: 600px;
    }
    
    /* Stack bottom grids to single/double columns */
    .features-horizontal-grid {
        grid-template-columns: 1fr;
        gap: 1.2rem;
    }
    
    .features-horizontal-grid .feature-card {
        min-height: auto;
        grid-template-columns: auto 1fr auto;
        grid-template-rows: 1fr;
        align-items: center;
    }
    
    .features-horizontal-grid .card-icon-wrapper {
        margin-bottom: 0;
    }
    
    .features-horizontal-grid .card-arrow-wrapper {
        margin-top: 0;
    }
    
    .partners-logo-grid {
        justify-content: center;
        gap: 2rem 3rem;
    }
    
    /* Workspace block mobile responsive updates */
    .hero-workspace-block.centered-workspace {
        width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
        margin-top: 1rem !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        gap: 1rem !important;
    }
    
    .workspace-window {
        width: 100% !important;
        max-width: 340px !important;
        height: 330px !important;
        position: relative !important;
        z-index: 3;
    }
    
    .workspace-sidebar {
        display: none !important; /* Hide sidebar on mobile to give chat full screen space */
    }
    
    .floating-cards-container {
        display: grid !important;
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 0.6rem !important;
        width: 100% !important;
        max-width: 340px !important;
        position: relative !important;
        top: auto !important;
        left: auto !important;
        right: auto !important;
        bottom: auto !important;
        height: auto !important;
        pointer-events: auto !important;
        margin-top: 0.5rem !important;
    }
    
    .floating-card {
        position: relative !important;
        top: auto !important;
        left: auto !important;
        right: auto !important;
        bottom: auto !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 0.3rem !important;
        padding: 0.45rem 0.5rem !important;
        font-size: 0.65rem !important;
        width: 100% !important;
        box-sizing: border-box !important;
        animation: none !important; /* Stop floating animation on mobile */
    }
    
    .data-cables-overlay {
        display: none !important; /* Hide wires on mobile to prevent overflow */
    }


}

/* Burger Animation states */
.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);
}

/* Mobile Screens (max-width: 480px) */
@media (max-width: 480px) {
    .main-content {
        padding: calc(var(--header-height) + 1.5rem) 1.2rem 3rem 1.2rem;
    }
    
    .hero-section {
        gap: 2.2rem;
    }
    
    .main-title {
        font-size: 2.3rem;
    }
    
    .subtitle {
        font-size: 0.95rem;
    }
    
    .cta-actions {
        flex-direction: column;
        gap: 1.2rem;
        width: 100%;
    }
    
    .cta-actions .btn, .cta-actions .btn-text {
        width: 100%;
        justify-content: center;
    }
    
    .feature-card {
        padding: 1.5rem;
        gap: 1.2rem;
    }
    
    .card-icon-wrapper {
        width: 48px;
        height: 48px;
    }
    
    .card-icon {
        width: 22px;
        height: 22px;
    }
    
    .features-horizontal-grid .feature-card {
        grid-template-columns: 1fr auto;
        gap: 1rem;
    }
    
    .features-horizontal-grid .card-icon-wrapper {
        display: none; /* Hide icon wrapper on very small screens to fit text */
    }
    
    .modal-window {
        padding: 2rem 1.5rem;
    }
    
    .modal-title {
        font-size: 1.5rem;
    }
}

/* ==========================================================================
   Desktop Scroll-free (Single Screen) Layout Mode
   ========================================================================== */
@media (min-width: 901px) and (min-height: 650px) and (min-aspect-ratio: 1/1) {
    body {
        height: auto;
        overflow-y: auto;
    }
    
    .main-content {
        max-width: none;
        padding: 0;
        margin: 0;
        display: block;
        height: auto;
    }
    
    .hero-section.centered-hero {
        height: 100vh;
        min-height: 0;
        display: flex;
        flex-direction: column;
        justify-content: flex-start; /* Lift the whole layout unit up! */
        align-items: center;
        padding-top: calc(var(--header-height) + 0.3rem); /* Further compressed top padding */
        padding-bottom: 1rem;
        box-sizing: border-box;
        max-width: var(--max-width);
        margin: 0 auto;
    }
    
    .hero-text-block.centered-text {
        text-align: center;
        align-items: center;
        justify-content: center;
        margin-top: 0.4rem; /* Tighter margin from top header */
        margin-bottom: 0.2rem;
        flex: 0 0 auto;
        padding-bottom: 0;
    }
    
    .main-title {
        font-size: clamp(1.8rem, 2.9vw, 2.3rem); /* Decreased by 12% */
        line-height: 1.25; /* More line height */
        margin-bottom: 0.8rem;
    }
    
    .subtitle {
        font-size: 0.9rem;
        color: #9CA3AF; /* Slightly lighter */
        margin-bottom: 1.5rem;
        margin-left: auto;
        margin-right: auto;
        max-width: 480px; /* Two lines vertical feel */
        line-height: 1.5;
    }
    
    .cta-actions.centered-buttons {
        justify-content: center;
        gap: 1.5rem;
        margin-bottom: 0;
    }
    
    .hero-workspace-block.centered-workspace {
        flex: 0 0 auto;
        margin-top: -6rem; /* Pulled workspace block higher to dock below stats cards */
        min-height: 0;
        width: 900px;
        height: 420px; /* Extended height for cleaner wiring */
        display: flex;
        justify-content: center;
        align-items: center;
    }
    
    .workspace-window {
        width: 580px; /* 20% larger */
        height: 320px; /* 20% larger */
        max-width: none;
    }
    
    .workspace-sidebar {
        display: flex;
    }
    
    .workspace-body {
        padding: 0.8rem 1.1rem;
    }
    
    .chat-log {
        gap: 0.6rem;
    }
    
    .message-bubble {
        max-width: 82%;
        padding: 0.45rem 0.75rem;
        font-size: 0.72rem;
    }
    
    .floating-cards-container {
        display: block;
    }
    
    /* 20% larger cards */
    .floating-card {
        padding: 0.45rem 0.75rem;
        font-size: 0.75rem;
    }
    
    /* Absolute Positioning for 6 floating integration cards relative to 900x420 container */
    #card-telegram { top: 60px; left: 30px; }
    #card-whatsapp { top: 195px; left: 20px; }
    #card-crm { top: 330px; left: 40px; }
    
    #card-calendar { top: 60px; right: 30px; }
    #card-email { top: 195px; right: 20px; }
    #card-api { top: 330px; right: 40px; }
    
    .data-cables-overlay {
        display: block;
    }
    
    /* Screen 2: Cases Section style */
    .cases-section {
        height: 100vh;
        min-height: 0;
        box-sizing: border-box;
        padding-top: calc(var(--header-height) + 0.8rem); /* Lifted up by ~30% */
        padding-bottom: 2.5rem;
        display: flex;
        flex-direction: column;
        justify-content: center;
        max-width: var(--max-width);
        margin: 0 auto;
    }
    
    .cases-header {
        margin-bottom: 3.5rem;
    }
    
    .section-title {
        font-size: 2.2rem;
    }
    
    .cases-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
    
    .case-card {
        padding: 1.8rem 2.2rem;
        gap: 0.9rem;
    }
    
    .case-title {
        font-size: 1.25rem;
    }
    
    .case-desc {
        font-size: 0.88rem;
    }
    
    .result-value {
        font-size: 1.6rem;
    }
    
    .tech-footer {
        border-top: 1px solid rgba(255, 255, 255, 0.03);
        padding: 4rem 0;
        margin-top: 4rem;
        height: auto;
        display: block;
    }
    
    .footer-container {
        gap: 1.8rem;
    }
}

.typing-cursor {
    display: inline-block;
    width: 2px;
    height: 11px;
    background: var(--text-pure);
    margin-left: 2px;
    animation: blinkCursor 0.8s infinite;
    vertical-align: middle;
}

@keyframes blinkCursor {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

/* Trustbar Stats Block (Premium Surface Cards) */
.stats {
    display: flex;
    justify-content: center;
    align-items: stretch; /* Equal height cards */
    gap: 1rem;
    margin-top: 0.8rem; /* Compressed spacing */
    flex-wrap: wrap;
    width: 100%;
    max-width: 900px;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 0.15rem;
    background: #141618; /* Surface 1 solid */
    border: 1px solid #2A2E31; /* Graphite border */
    border-radius: 8px;
    padding: 0.5rem 1rem; /* Compact padding */
    flex: 1 1 170px; /* Card size responsiveness */
    max-width: 200px;
    transition: background 0.3s ease, border-color 0.3s ease;
}

.stat-item:hover {
    background: #0B0C0D; /* Surface 2 solid hover */
    border-color: var(--gold-primary);
}

.stat-value {
    font-size: 1.45rem; /* Slightly smaller digits */
    font-weight: 700;
    color: var(--gold-primary);
    font-family: var(--font-mono);
    letter-spacing: -0.5px;
}

.stat-label {
    font-size: 0.6rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    font-weight: 500;
    line-height: 1.3;
}

/* Simulation Active Dimming Styles */
.hero-workspace-block.simulation-running .floating-card {
    opacity: 0.45;
    filter: grayscale(0.3);
    border-color: rgba(255, 255, 255, 0.04);
    box-shadow: none;
    transition: opacity 0.4s ease, filter 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease, transform 0.4s ease;
}

.hero-workspace-block.simulation-running .floating-card.active-pulse {
    opacity: 1;
    filter: none;
    border-color: var(--gold-primary);
    box-shadow: 0 0 15px rgba(226, 180, 42, 0.25);
    transform: scale(1.03);
}

.hero-workspace-block.simulation-running .conn-line {
    stroke-opacity: 0.12;
    transition: stroke-opacity 0.4s ease;
}

.hero-workspace-block.simulation-running .conn-line.active-pulse {
    stroke-opacity: 1;
    stroke-width: 1.5;
    filter: drop-shadow(0 0 4px #E2B42A) url(#lineGlow);
}



/* Workspace Input Pulsing Border Animation */
.ws-input {
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    animation: wsInputBorderPulse 3s infinite ease-in-out;
    border: 1px solid rgba(255, 255, 255, 0.06) !important;
    border-radius: 4px;
    font-family: var(--font-mono);
}

.ws-input:focus {
    animation: none !important;
    border-color: var(--gold-primary) !important;
    box-shadow: 0 0 8px rgba(226, 180, 42, 0.25) !important;
}

@keyframes wsInputBorderPulse {
    0%, 100% {
        border-color: rgba(255, 255, 255, 0.06);
        box-shadow: none;
    }
    50% {
        border-color: rgba(226, 180, 42, 0.2);
        box-shadow: 0 0 5px rgba(226, 180, 42, 0.08);
    }
}

/* Bottom CTA & Sales Bot Section */
.bottom-cta-section {
    padding: 5rem 1.5rem;
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    box-sizing: border-box;
}

.bottom-cta-container {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 4rem;
    align-items: center;
    background: #141618; /* Surface 1 solid */
    border: 1px solid #2A2E31; /* Graphite border */
    border-radius: var(--radius-lg);
    padding: 3rem;
    position: relative;
    overflow: hidden;
}

.bottom-cta-text-wrapper {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.bottom-cta-title {
    font-family: var(--font-heading);
    font-size: 2.1rem;
    font-weight: 800;
    color: var(--text-pure);
    line-height: 1.25;
    margin-top: 0.5rem;
    margin-bottom: 1.2rem;
    letter-spacing: -0.5px;
}

.bottom-cta-desc {
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 2rem;
    max-width: 520px;
}

.bottom-cta-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Sales Bot Widget Styling */
.sales-bot-widget {
    background: #0B0C0D; /* Surface 2 solid */
    border: 1px solid #2A2E31;
    border-radius: 12px;
    height: 310px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
}

.sales-bot-header {
    background: #141618;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    padding: 0.65rem 0.95rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.sales-bot-avatar {
    font-size: 1.1rem;
    background: rgba(226, 180, 42, 0.1);
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.sales-bot-meta {
    display: flex;
    flex-direction: column;
}

.sales-bot-name {
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--text-pure);
}

.sales-bot-status {
    font-size: 0.55rem;
    color: #27C93F; /* Green status */
    font-weight: 500;
}

.sales-bot-chat {
    flex: 1;
    overflow-y: auto;
    padding: 0.9rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    background: #0F1113; /* Primary dark background */
}

/* Custom Scrollbar for Chat box */
.sales-bot-chat::-webkit-scrollbar {
    width: 4px;
}
.sales-bot-chat::-webkit-scrollbar-track {
    background: #0F1113;
}
.sales-bot-chat::-webkit-scrollbar-thumb {
    background: #2A2E31;
    border-radius: 2px;
}
.sales-bot-chat::-webkit-scrollbar-thumb:hover {
    background: var(--gold-primary);
}

.sales-msg {
    max-width: 85%;
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
    font-size: 0.68rem;
    line-height: 1.45;
    word-break: break-word;
}

.sales-msg.bot {
    background: #141618;
    color: var(--text-pure);
    border: 1px solid rgba(255, 255, 255, 0.04);
    align-self: flex-start;
    border-bottom-left-radius: 2px;
}

.sales-msg.user {
    background: var(--gold-primary);
    color: #0F1113;
    font-weight: 500;
    align-self: flex-end;
    border-bottom-right-radius: 2px;
}

.sales-bot-input-form {
    background: #141618;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
    padding: 0.5rem 0.8rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.sales-bot-input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    font-size: 0.68rem;
    color: var(--text-pure);
    padding: 0.15rem 0;
}

.sales-bot-send-btn {
    background: transparent;
    border: none;
    outline: none;
    color: var(--gold-primary);
    cursor: pointer;
    padding: 0 0.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease;
}

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

.sales-bot-send-btn:disabled {
    color: var(--text-muted);
    cursor: not-allowed;
}

/* Mobile adjustments for Bottom CTA */
@media (max-width: 900px) {
    .bottom-cta-container {
        grid-template-columns: 1fr;
        gap: 2.5rem;
        padding: 2rem 1.5rem;
    }
    
    .bottom-cta-text-wrapper {
        align-items: center;
        text-align: center;
    }
    
    .bottom-cta-buttons {
        justify-content: center;
    }
    
    .bottom-cta-title {
        font-size: 1.7rem;
    }
    
    .sales-bot-widget {
        max-width: 340px;
        width: 100%;
        margin: 0 auto;
    }
}

/* Hero Business Types tag */
.hero-business-types {
    font-size: 0.82rem;
    color: var(--gold-light);
    margin-top: 0.5rem;
    margin-bottom: 1.6rem;
    font-weight: 500;
}

/* Sales Bot Hint Above Widget */
.sales-bot-wrapper {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    width: 100%;
}

.sales-bot-hint {
    font-size: 0.65rem;
    color: var(--text-muted);
    text-align: center;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Main Footer Styles */
.main-footer {
    background: #0B0C0D; /* Surface 2 solid background */
    border-top: 1px solid #2A2E31;
    padding: 3.5rem 2rem 2rem 2rem;
    width: 100%;
    box-sizing: border-box;
}

.main-footer .footer-container {
    max-width: var(--max-width);
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 3rem;
    flex-wrap: wrap;
}

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

.footer-tagline {
    font-size: 0.78rem;
    color: var(--text-muted);
    line-height: 1.5;
}

.footer-links-grid {
    display: flex;
    gap: 4rem;
    flex-wrap: wrap;
}

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

.footer-col-title {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-pure);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.3rem;
}

.footer-column a {
    font-size: 0.78rem;
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.3s ease;
}

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

.footer-tg-link {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.footer-icon-tg {
    color: #24A1DE; /* Telegram blue */
}

.footer-bottom {
    max-width: var(--max-width);
    margin: 2.5rem auto 0 auto;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.03);
    display: flex;
    justify-content: center;
    align-items: center;
}

.footer-bottom .copyright {
    font-size: 0.65rem;
    color: rgba(255, 255, 255, 0.25);
    text-align: center;
    font-family: var(--font-mono);
    letter-spacing: 0.5px;
}

/* Mobile responsive styles overrides */
@media (max-width: 900px) {
    .logo-img {
        height: 36px !important; /* Scaled down logo to fit cleanly inside navbar */
    }

    .main-header {
        height: 60px !important; /* Fixed navbar height on mobile */
    }

    /* Force background and borders on the sales widget on mobile */
    .sales-bot-widget {
        background: #0B0C0D !important;
        border: 1px solid #2A2E31 !important;
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5) !important;
    }

    .main-footer .footer-container {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 2.5rem;
    }

    .footer-brand {
        align-items: center;
    }

    .footer-links-grid {
        justify-content: center;
        gap: 3rem;
    }

    .footer-column {
        align-items: center;
    }
}

/* Local Workspace Telegram Bubble */
.tg-local-bubble {
    position: absolute;
    left: 20px; /* Floats next to the Workspace window on desktop */
    top: 60px;
    width: 220px;
    background: #141618; /* Surface 1 solid */
    border: 1px solid #2A2E31;
    border-left: 3px solid #24A1DE; /* Telegram blue left accent */
    border-radius: 8px;
    padding: 0.65rem 0.8rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    z-index: 100;
    opacity: 0;
    pointer-events: none;
    transform: scale(0.9) translateY(10px);
    transition: opacity 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    text-align: left;
    user-select: none;
}

.tg-local-bubble.show {
    opacity: 1;
    pointer-events: auto;
    transform: scale(1) translateY(0);
}

.tg-bubble-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.58rem;
    color: var(--text-muted);
    font-family: var(--font-mono);
}

.tg-bubble-icon {
    font-size: 0.65rem;
    color: #4da3ff;
}

.tg-bubble-title {
    font-weight: 700;
    color: var(--text-pure);
    margin-left: 0.2rem;
}

.tg-bubble-time {
    margin-left: auto;
}

.tg-bubble-text {
    font-size: 0.65rem;
    color: #D1D5DB;
    line-height: 1.35;
    white-space: pre-line;
}

.tg-bubble-disclaimer {
    font-size: 0.48rem;
    color: var(--text-muted);
    line-height: 1.25;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
    padding-top: 0.3rem;
    margin-top: 0.1rem;
}

/* Mobile responsive local bubble placement */
@media (max-width: 900px) {
    .tg-local-bubble {
        left: 50% !important;
        transform: translateX(-50%) translateY(20px) scale(0.9) !important;
        top: auto !important;
        bottom: 85px !important; /* Positioned below the terminal window, above the cards! */
        width: 90% !important;
        max-width: 280px !important;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.6) !important;
    }
    
    .tg-local-bubble.show {
        transform: translateX(-50%) translateY(0) scale(1) !important;
    }
}
    margin-top: 0.2rem;
}

/* Inline Telegram Message Card (Non-intrusive container simulation) */
.inline-tg-msg {
    background: #0B0C0D; /* Surface 2 active dark background */
    border: 1px solid #2A2E31;
    border-left: 3px solid #24A1DE; /* Telegram blue left accent line */
    border-radius: 8px;
    padding: 0.65rem 0.8rem;
    margin-top: 0.6rem;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    align-self: flex-start;
    width: 100%;
    max-width: 320px;
    box-sizing: border-box;
    animation: fadeIn 0.4s ease;
    text-align: left;
}

.inline-tg-header {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.62rem;
    color: var(--text-muted);
}

.inline-tg-icon {
    font-size: 0.7rem;
}

.inline-tg-title {
    font-weight: 700;
    color: var(--text-pure);
    font-family: var(--font-mono);
}

.inline-tg-time {
    margin-left: auto;
    font-size: 0.55rem;
    font-family: var(--font-mono);
}

.inline-tg-text {
    font-size: 0.68rem;
    color: #D1D5DB;
    line-height: 1.35;
    white-space: pre-line;
}

.inline-tg-disclaimer {
    font-size: 0.5rem;
    color: var(--text-muted);
    line-height: 1.25;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
    padding-top: 0.35rem;
    margin-top: 0.15rem;
}

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




/* Link back to the SAMADI PRO hub (samadipro.link) */
.nav-link.nav-home,
.mobile-nav-link.nav-home {
    color: var(--gold-primary, #E2B42A);
    font-weight: 600;
}
