/* ===== RESET & BASE STYLES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Clean Color Palette - White & Green */
    --primary-green: #10b981;
    --primary-green-light: #34d399;
    --primary-green-dark: #059669;
    --accent-green: #6ee7b7;
    --success-green: #22c55e;
    
    /* Neutral Colors */
    --white: #ffffff;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;
    
    /* Typography */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-display: 'Inter', sans-serif;
    
    /* Spacing */
    --section-padding: 120px 0;
    --container-padding: 0 24px;
    
    /* Smooth Animations */
    --transition-smooth: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    --shadow-2xl: 0 25px 50px -12px rgb(0 0 0 / 0.25);

    /* Fixed height for negotiation section on desktop */
    --neg-section-height: 560px;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: var(--font-primary);
    line-height: 1.6;
    color: var(--gray-800);
    background: var(--white);
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--container-padding);
    width: 100%;
}

/* ===== SMOOTH SCROLL ANIMATIONS ===== */
.scroll-reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: var(--transition-smooth);
}

.scroll-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

.scroll-reveal-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: var(--transition-smooth);
}

.scroll-reveal-left.revealed {
    opacity: 1;
    transform: translateX(0);
}

.scroll-reveal-right {
    opacity: 0;
    transform: translateX(50px);
    transition: var(--transition-smooth);
}

.scroll-reveal-right.revealed {
    opacity: 1;
    transform: translateX(0);
}

/* On small screens, avoid horizontal translate that can cause overflow */
@media (max-width: 768px) {
    .scroll-reveal-left { transform: translateY(30px); }
    .scroll-reveal-left.revealed { transform: translateY(0); }
    .scroll-reveal-right { transform: translateY(30px); }
    .scroll-reveal-right.revealed { transform: translateY(0); }
}

/* ===== NAVIGATION ===== */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(16, 185, 129, 0.1);
    z-index: 1000;
    padding: 20px 0;
    transition: var(--transition-fast);
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: var(--shadow-lg);
    padding: 16px 0;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 26px;
    font-weight: 800;
    color: var(--gray-900);
    text-decoration: none;
    transition: var(--transition-fast);
}

.nav-brand:hover {
    transform: scale(1.02);
}

.nav-brand .logo-icon {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, var(--primary-green) 0%, var(--primary-green-light) 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
    box-shadow: var(--shadow-md);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 40px;
}

.nav-link {
    color: var(--gray-600);
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    transition: var(--transition-fast);
    position: relative;
}

.nav-link:hover {
    color: var(--primary-green);
    transform: translateY(-1px);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-green), var(--primary-green-light));
    transition: width 0.3s ease;
    border-radius: 1px;
}

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

.cta-nav-button {
    background: linear-gradient(135deg, var(--primary-green) 0%, var(--primary-green-dark) 100%);
    color: white;
    padding: 12px 24px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 700;
    font-size: 16px;
    transition: var(--transition-fast);
    box-shadow: var(--shadow-md);
}

.cta-nav-button:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-xl);
}

.cta-nav-button:focus {
    outline: 2px solid var(--primary-green);
    outline-offset: 2px;
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--gray-700);
    border-radius: 2px;
    transition: var(--transition-fast);
}

/* ===== BUTTONS ===== */
.btn-primary {
    background: linear-gradient(135deg, var(--primary-green) 0%, var(--primary-green-dark) 100%);
    color: white;
    border: none;
    padding: 16px 32px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition-fast);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    box-shadow: var(--shadow-lg);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-2xl);
}

.btn-primary:focus {
    outline: 2px solid var(--primary-green);
    outline-offset: 2px;
}

.btn-large {
    padding: 20px 40px;
    font-size: 18px;
    border-radius: 16px;
}

.btn-secondary {
    background: rgba(16, 185, 129, 0.1);
    color: var(--primary-green);
    border: 2px solid var(--primary-green);
    padding: 16px 32px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition-fast);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: var(--primary-green);
    color: white;
    transform: translateY(-3px);
    box-shadow: var(--shadow-xl);
}

.btn-secondary:focus {
    outline: 2px solid var(--primary-green);
    outline-offset: 2px;
}

/* ===== HERO SECTION ===== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 140px 0 100px;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #fafafa 0%, #ffffff 50%, #f0fdf4 100%);
}

/* Hero visual refinements */
.hero {
    background: radial-gradient(1200px 600px at 70% 10%, #f0fdf4 0%, #ffffff 50%, #fafafa 100%);
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: linear-gradient(rgba(16,185,129,0.04) 1px, transparent 1px), linear-gradient(90deg, rgba(16,185,129,0.04) 1px, transparent 1px);
    background-size: 36px 36px, 36px 36px;
    pointer-events: none;
    z-index: 0;
}

/* Hero Background Elements */
.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
}

.gradient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.6;
    animation: floatOrb 20s ease-in-out infinite;
}

.orb-1 {
    width: 300px;
    height: 300px;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.3), rgba(52, 211, 153, 0.2));
    top: 10%;
    right: 10%;
    animation-delay: 0s;
}

.orb-2 {
    width: 400px;
    height: 400px;
    background: linear-gradient(135deg, rgba(52, 211, 153, 0.2), rgba(110, 231, 183, 0.3));
    bottom: 20%;
    left: 5%;
    animation-delay: 7s;
}

.orb-3 {
    width: 200px;
    height: 200px;
    background: linear-gradient(135deg, rgba(110, 231, 183, 0.4), rgba(16, 185, 129, 0.2));
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-delay: 14s;
}

.floating-shapes {
    position: absolute;
    width: 100%;
    height: 100%;
}

.shape {
    position: absolute;
    opacity: 0.1;
    animation: floatShape 15s ease-in-out infinite;
}

.shape-1 {
    width: 60px;
    height: 60px;
    background: var(--primary-green);
    border-radius: 50%;
    top: 20%;
    left: 15%;
    animation-delay: 0s;
}

.shape-2 {
    width: 40px;
    height: 40px;
    background: var(--accent-green);
    transform: rotate(45deg);
    top: 60%;
    right: 20%;
    animation-delay: 3s;
}

.shape-3 {
    width: 80px;
    height: 80px;
    background: var(--primary-green-light);
    border-radius: 20px;
    bottom: 30%;
    left: 10%;
    animation-delay: 6s;
}

.shape-4 {
    width: 30px;
    height: 30px;
    background: var(--success-green);
    border-radius: 50%;
    top: 30%;
    right: 40%;
    animation-delay: 9s;
}

.shape-5 {
    width: 50px;
    height: 50px;
    background: var(--accent-green);
    clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
    bottom: 40%;
    right: 15%;
    animation-delay: 12s;
}

/* Hero Content */
.hero-content {
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.2);
    padding: 12px 24px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    color: var(--primary-green);
    margin-bottom: 32px;
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
}

.hero-badge i {
    font-size: 16px;
}

.hero-title {
    font-size: clamp(3rem, 6vw, 5rem);
    font-weight: 900;
    line-height: 1.1;
    color: var(--gray-900);
    margin-bottom: 20px;
    letter-spacing: -0.02em;
}

.gradient-text {
    background: linear-gradient(135deg, var(--primary-green) 0%, var(--primary-green-light) 50%, var(--accent-green) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
}

.hero-subtitle {
    font-size: 22px;
    color: var(--gray-600);
    margin-bottom: 24px;
    line-height: 1.6;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* AI Value Proposition */
.ai-value-proposition {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    padding: 24px;
    border-radius: 16px;
    border: 1px solid rgba(16, 185, 129, 0.1);
    margin-bottom: 48px;
    box-shadow: var(--shadow-lg);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 48px;
}

.value-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--primary-green) 0%, var(--primary-green-light) 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
    flex-shrink: 0;
    box-shadow: var(--shadow-md);
}

.value-text {
    font-size: 18px;
    line-height: 1.5;
    color: var(--gray-700);
    text-align: left;
}

.value-text strong {
    color: var(--gray-900);
}

.hero-cta {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 28px;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 32px;
    max-width: 800px;
    margin: 0 auto;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 24px;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    border-radius: 16px;
    border: 1px solid rgba(16, 185, 129, 0.1);
    transition: var(--transition-fast);
    box-shadow: var(--shadow-md);
}

.stat-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
}

.stat-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--primary-green) 0%, var(--primary-green-light) 100%);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    box-shadow: var(--shadow-md);
}

.stat-content {
    text-align: left;
}

.stat-label {
    font-size: 18px;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 4px;
}

.stat-desc {
    font-size: 14px;
    color: var(--gray-600);
}

/* ===== AI ENGINE SECTION ===== */
.ai-engine-section {
    padding: var(--section-padding);
    background: linear-gradient(135deg, var(--gray-50) 0%, var(--white) 100%);
    position: relative;
}

.section-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.2);
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    color: var(--primary-green);
    margin-bottom: 16px;
}

.section-header {
    text-align: center;
    margin-bottom: 80px;
}

.section-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    color: var(--gray-900);
    margin-bottom: 20px;
    letter-spacing: -0.02em;
}

.section-subtitle {
    font-size: 20px;
    color: var(--gray-600);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

.ai-visualization-container {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 60px;
    align-items: center;
}

/* ===== SPECTACULAR AI MARKETPLACE VISUALIZATION ===== */
.ai-marketplace-visualization {
    position: relative;
    width: 100%;
    height: 600px;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.03) 0%, rgba(52, 211, 153, 0.08) 100%);
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid rgba(16, 185, 129, 0.1);
    box-shadow: var(--shadow-2xl);
}

/* Floating AI Nodes */
.ai-nodes-container {
    position: absolute;
    width: 100%;
    height: 100%;
}

.ai-node {
    position: absolute;
    width: 70px;
    height: 70px;
    background: white;
    border-radius: 50%;
    box-shadow: 0 10px 30px rgba(16, 185, 129, 0.2);
    border: 3px solid var(--primary-green);
    display: flex;
    align-items: center;
    justify-content: center;
    animation: floatNode 6s ease-in-out infinite;
    cursor: pointer;
    transition: var(--transition-fast);
}

.ai-node:hover {
    transform: scale(1.1);
    box-shadow: 0 15px 40px rgba(16, 185, 129, 0.3);
}

.ai-node .node-icon {
    font-size: 28px;
    color: var(--primary-green);
}

.ai-node .node-pulse {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 3px solid var(--primary-green);
    animation: pulseRing 3s infinite;
}

.node-1 {
    top: 15%;
    left: 20%;
    animation-delay: 0s;
}

.node-2 {
    top: 10%;
    right: 25%;
    animation-delay: 1s;
}

.node-3 {
    top: 40%;
    left: 10%;
    animation-delay: 2s;
}

.node-4 {
    top: 35%;
    right: 15%;
    animation-delay: 3s;
}

.node-5 {
    bottom: 25%;
    left: 25%;
    animation-delay: 4s;
}

.node-6 {
    bottom: 20%;
    right: 30%;
    animation-delay: 5s;
}

/* Connection Lines */
.connection-lines {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.connection-line {
    stroke-dasharray: 8,8;
    animation: flowLine 4s linear infinite;
    stroke-width: 3;
}

.line-1 { animation-delay: 0s; }
.line-2 { animation-delay: 0.8s; }
.line-3 { animation-delay: 1.6s; }
.line-4 { animation-delay: 2.4s; }
.line-5 { animation-delay: 3.2s; }

/* Central AI Hub */
.central-ai-hub {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    text-align: center;
}

.hub-core {
    position: relative;
    width: 120px;
    height: 120px;
    background: linear-gradient(135deg, var(--primary-green) 0%, var(--primary-green-light) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 20px 40px rgba(16, 185, 129, 0.4);
    animation: hubPulse 4s ease-in-out infinite;
}

.hub-icon {
    font-size: 48px;
    color: white;
}

.hub-rings {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.ring {
    position: absolute;
    border: 3px solid var(--primary-green);
    border-radius: 50%;
    opacity: 0.4;
}

.ring-1 {
    width: 140px;
    height: 140px;
    top: -70px;
    left: -70px;
    animation: rotateRing 12s linear infinite;
}

.ring-2 {
    width: 170px;
    height: 170px;
    top: -85px;
    left: -85px;
    animation: rotateRing 18s linear infinite reverse;
}

.ring-3 {
    width: 200px;
    height: 200px;
    top: -100px;
    left: -100px;
    animation: rotateRing 24s linear infinite;
}

.hub-label {
    margin-top: 20px;
    font-size: 16px;
    font-weight: 700;
    color: var(--primary-green);
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* Floating Data Particles */
.data-particles {
    position: absolute;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.particle {
    position: absolute;
    width: 6px;
    height: 6px;
    background: var(--primary-green);
    border-radius: 50%;
    animation: floatParticle 10s linear infinite;
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.5);
}

.particle-1 { top: 20%; left: 15%; animation-delay: 0s; }
.particle-2 { top: 30%; right: 20%; animation-delay: 1.25s; }
.particle-3 { bottom: 40%; left: 25%; animation-delay: 2.5s; }
.particle-4 { bottom: 30%; right: 15%; animation-delay: 3.75s; }
.particle-5 { top: 60%; left: 40%; animation-delay: 5s; }
.particle-6 { top: 25%; right: 40%; animation-delay: 6.25s; }
.particle-7 { bottom: 50%; left: 60%; animation-delay: 7.5s; }
.particle-8 { top: 45%; right: 60%; animation-delay: 8.75s; }

/* Activity Indicators */
.activity-indicators {
    position: absolute;
    width: 100%;
    height: 100%;
}

.activity-card {
    position: absolute;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.1);
    min-width: 180px;
    animation: cardFloat 6s ease-in-out infinite;
}

.card-1 {
    top: 20%;
    left: 5%;
    animation-delay: 0s;
}

.card-2 {
    top: 60%;
    right: 5%;
    animation-delay: 2s;
}

.card-3 {
    bottom: 15%;
    left: 50%;
    transform: translateX(-50%);
    animation-delay: 4s;
}

.activity-card .card-icon {
    width: 40px;
    height: 40px;
    background: var(--primary-green);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 18px;
    margin-bottom: 12px;
}

.activity-card .card-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--gray-800);
    margin-bottom: 6px;
}

.activity-card .card-status {
    font-size: 12px;
    color: var(--gray-600);
}

.activity-card .card-pulse {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 10px;
    height: 10px;
    background: var(--success-green);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

/* AI Explanation */
.ai-explanation {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

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

.explanation-number {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--primary-green) 0%, var(--primary-green-light) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 800;
    font-size: 18px;
    flex-shrink: 0;
    box-shadow: var(--shadow-md);
}

.explanation-content h4 {
    font-size: 20px;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 8px;
}

.explanation-content p {
    color: var(--gray-600);
    line-height: 1.6;
}

/* ===== ANIMATIONS ===== */
@keyframes floatOrb {
    0%, 100% { transform: translateY(0px) translateX(0px); }
    25% { transform: translateY(-20px) translateX(10px); }
    50% { transform: translateY(0px) translateX(20px); }
    75% { transform: translateY(20px) translateX(10px); }
}

@keyframes floatShape {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-30px) rotate(180deg); }
}

@keyframes floatNode {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(10deg); }
}

@keyframes pulseRing {
    0% { transform: scale(1); opacity: 0.8; }
    50% { transform: scale(1.3); opacity: 0.4; }
    100% { transform: scale(1.6); opacity: 0; }
}

@keyframes flowLine {
    0% { stroke-dashoffset: 0; }
    100% { stroke-dashoffset: -32; }
}

@keyframes hubPulse {
    0%, 100% { transform: translate(-50%, -50%) scale(1); }
    50% { transform: translate(-50%, -50%) scale(1.05); }
}

@keyframes rotateRing {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes floatParticle {
    0% { transform: translateY(0px) translateX(0px); opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { transform: translateY(-120px) translateX(30px); opacity: 0; }
}

@keyframes cardFloat {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.3); }
}

/* ===== PROBLEM SECTION ===== */
.problem {
    padding: var(--section-padding);
    background: var(--gray-50);
}

.problem-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
}

.problem-card {
    background: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--gray-200);
    text-align: center;
    transition: var(--transition-smooth);
    position: relative;
}

.problem-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-2xl);
}

.problem-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    color: white;
    margin: 0 auto 32px;
    box-shadow: var(--shadow-lg);
}

.problem-card h3 {
    font-size: 26px;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 20px;
}

.problem-impact {
    font-size: 18px;
    font-weight: 600;
    color: #b91c1c;
    margin-bottom: 20px;
    font-style: italic;
}

.problem-card p:not(.problem-impact) {
    color: var(--gray-600);
    line-height: 1.7;
    font-size: 16px;
}

/* Refined problem layout */
.problem-grid.refined {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
}
.problem-item {
    background: white;
    border: 1px solid var(--gray-200);
    border-radius: 16px;
    padding: 24px;
    box-shadow: var(--shadow-md);
    transition: var(--transition-fast);
}
.problem-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
}
.problem-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
}
.problem-head h3 {
    font-size: 20px;
    font-weight: 800;
    color: var(--gray-900);
}
.problem-tag {
    background: rgba(16,185,129,0.1);
    color: var(--primary-green-dark);
    border: 1px solid rgba(16,185,129,0.2);
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}
.problem-item p { color: var(--gray-600); }

@media (max-width: 768px) {
    .problem-head { flex-direction: column; align-items: flex-start; gap: 6px; }
}

/* ===== SOLUTION SECTION ===== */
.solution {
    padding: var(--section-padding);
    background: white;
}

.solution-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.solution-text h2 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    color: var(--gray-900);
    margin-bottom: 32px;
    letter-spacing: -0.02em;
}

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

.solution-text p {
    font-size: 20px;
    color: var(--gray-600);
    margin-bottom: 40px;
    line-height: 1.7;
}

.solution-benefits {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.benefit-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    background: var(--gray-50);
    border-radius: 16px;
    border-left: 4px solid var(--primary-green);
    transition: var(--transition-fast);
}

.benefit-item:hover {
    transform: translateX(4px);
    box-shadow: var(--shadow-md);
}

.benefit-icon {
    width: 40px;
    height: 40px;
    background: var(--primary-green);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 18px;
}

.benefit-text {
    font-weight: 600;
    color: var(--gray-800);
    font-size: 16px;
}

.solution-visual {
    position: relative;
}

.ai-workflow {
    background: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow: var(--shadow-2xl);
    border: 1px solid var(--gray-200);
}

.workflow-step {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 24px 0;
    border-bottom: 1px solid var(--gray-200);
    transition: var(--transition-smooth);
}

.workflow-step:last-child {
    border-bottom: none;
}

.workflow-step:hover {
    background: var(--gray-50);
    margin: 0 -20px;
    padding: 24px 20px;
    border-radius: 12px;
}

@media (max-width: 768px) {
    .workflow-step:hover {
        background: var(--gray-50);
        margin: 0;            /* prevent horizontal overflow */
        padding: 24px 0;      /* keep spacing without widening */
        border-radius: 12px;
    }
}

.step-number {
    width: 48px;
    height: 48px;
    background: var(--primary-green);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 800;
    font-size: 20px;
}

.step-content h4 {
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 6px;
    font-size: 18px;
}

.step-content p {
    color: var(--gray-600);
    font-size: 15px;
    margin: 0;
    line-height: 1.5;
}

/* ===== USE CASES SECTION ===== */
.use-cases {
    padding: var(--section-padding);
    background: var(--gray-50);
}

.use-cases-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
    gap: 40px;
}

.use-case-card {
    background: white;
    padding: 48px;
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--gray-200);
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.use-case-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-green), var(--primary-green-light));
}

.use-case-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-2xl);
}

.use-case-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-green) 0%, var(--primary-green-light) 100%);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    color: white;
    margin-bottom: 32px;
    box-shadow: var(--shadow-lg);
}

.use-case-card h3 {
    font-size: 26px;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 20px;
}

.use-case-card p {
    color: var(--gray-600);
    margin-bottom: 24px;
    line-height: 1.7;
    font-size: 16px;
}

.use-case-benefit {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary-green);
    display: flex;
    align-items: center;
    gap: 8px;
}

/* ===== FEATURES SECTION ===== */
.features {
    padding: var(--section-padding);
    background: white;
}

.differentiation-statement {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.05) 0%, rgba(52, 211, 153, 0.1) 100%);
    padding: 24px 40px;
    border-radius: 16px;
    border-left: 4px solid var(--primary-green);
    font-size: 20px;
    font-weight: 700;
    color: var(--gray-800);
    margin-bottom: 60px;
    text-align: center;
    box-shadow: var(--shadow-md);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
}

/* Mobile adjustments for features */
@media (max-width: 640px) {
    .features-grid { grid-template-columns: 1fr; gap: 24px; }
    .feature-card { padding: 32px; }
}

.feature-card {
    background: white;
    padding: 48px;
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--gray-200);
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-green), var(--primary-green-light));
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-2xl);
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-green) 0%, var(--primary-green-light) 100%);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    color: white;
    margin-bottom: 32px;
    box-shadow: var(--shadow-lg);
}

.feature-card h3 {
    font-size: 26px;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 20px;
}

.feature-card p {
    color: var(--gray-600);
    margin-bottom: 32px;
    line-height: 1.7;
    font-size: 16px;
}

.feature-benefits {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.feature-benefit {
    display: flex;
    align-items: center;
    font-size: 16px;
    color: var(--primary-green);
    font-weight: 700;
}

/* ===== TRUST SECTION ===== */
.trust-section {
    padding: 80px 0;
    background: var(--gray-50);
}

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

.trust-badge {
    display: inline-flex;
    align-items: center;
    gap: 16px;
    background: white;
    padding: 20px 32px;
    border-radius: 50px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--gray-200);
    font-weight: 700;
    color: var(--gray-800);
    margin-bottom: 20px;
    font-size: 16px;
}

.trust-badge i {
    color: var(--primary-green);
    font-size: 24px;
}

.trust-content p {
    color: var(--gray-600);
    font-size: 18px;
    line-height: 1.6;
}

/* ===== CTA SECTION ===== */
.cta-section {
    padding: var(--section-padding);
    background: linear-gradient(135deg, var(--primary-green) 0%, var(--primary-green-dark) 100%);
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="white" opacity="0.1"/><circle cx="75" cy="75" r="1" fill="white" opacity="0.1"/><circle cx="50" cy="10" r="0.5" fill="white" opacity="0.1"/><circle cx="90" cy="40" r="0.5" fill="white" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}

.cta-content {
    position: relative;
    z-index: 1;
}

.cta-content h2 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    margin-bottom: 32px;
    letter-spacing: -0.02em;
}

.cta-content p {
    font-size: 22px;
    margin-bottom: 48px;
    opacity: 0.95;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

.cta-form {
    max-width: 600px;
    margin: 0 auto 32px;
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
}

.cta-input {
    flex: 1;
    min-width: 300px;
    padding: 20px 24px;
    border: none;
    border-radius: 16px;
    font-size: 18px;
    background: rgba(255, 255, 255, 0.95);
    color: var(--gray-800);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-lg);
}

.cta-input:focus {
    outline: 2px solid rgba(255, 255, 255, 0.5);
    outline-offset: 2px;
}

.cta-button {
    background: var(--gray-900);
    color: white;
    border: none;
    padding: 20px 40px;
    border-radius: 16px;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition-fast);
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    box-shadow: var(--shadow-lg);
}

.cta-button:hover {
    background: var(--gray-800);
    transform: translateY(-2px);
    box-shadow: var(--shadow-2xl);
}

.cta-button:focus {
    outline: 2px solid rgba(255, 255, 255, 0.5);
    outline-offset: 2px;
}

.cta-note {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    font-size: 16px;
    opacity: 0.9;
    max-width: 500px;
    margin: 0 auto;
}

.cta-note i {
    font-size: 18px;
}

/* ===== FOOTER ===== */
.footer {
    background: var(--gray-900);
    color: white;
    padding: 80px 0 40px;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-brand h3 {
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 16px;
}

.footer-brand .logo-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary-green) 0%, var(--primary-green-light) 100%);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.footer-brand p {
    color: var(--gray-400);
    line-height: 1.7;
    font-size: 16px;
}

.footer-nav {
    display: flex;
    gap: 24px;
}
.footer-nav a {
    color: var(--gray-400);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition-fast);
}
.footer-nav a:hover { color: var(--primary-green); }

.footer-links {
    display: flex;
    gap: 40px;
    justify-content: center;
    flex-wrap: wrap;
}

.footer-links .link-group { text-align: center; }
.footer-links .link-group h4 { margin-bottom: 12px; }

.link-group h4 {
    font-weight: 700;
    margin-bottom: 20px;
    color: white;
    font-size: 18px;
}

.link-group a {
    display: block;
    color: var(--gray-400);
    text-decoration: none;
    margin-bottom: 12px;
    transition: var(--transition-fast);
    font-size: 16px;
}

.link-group a:hover {
    color: var(--primary-green);
    transform: translateX(4px);
}

.link-group a:focus {
    outline: 2px solid var(--primary-green);
    outline-offset: 2px;
    border-radius: 4px;
}

.footer-bottom {
    border-top: 1px solid var(--gray-800);
    padding-top: 40px;
    text-align: center;
    color: var(--gray-400);
    font-size: 16px;
}

/* ===== MODAL ===== */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 2000;
    backdrop-filter: blur(10px);
}

.modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    border-radius: 24px;
    padding: 48px;
    max-width: 600px;
    width: 90%;
    text-align: center;
    box-shadow: var(--shadow-2xl);
}

.modal-icon {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, var(--primary-green) 0%, var(--primary-green-light) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    color: white;
    margin: 0 auto 32px;
    box-shadow: var(--shadow-lg);
}

.modal h3 {
    font-size: 32px;
    font-weight: 800;
    color: var(--gray-900);
    margin-bottom: 20px;
}

.modal p {
    color: var(--gray-600);
    margin-bottom: 40px;
    line-height: 1.7;
    font-size: 18px;
}

/* Negotiation Simulation Overlay */
.negotiation-overlay {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 380px;
    max-width: 45%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(16, 185, 129, 0.15);
    border-radius: 16px;
    box-shadow: var(--shadow-xl);
    z-index: 20;
    display: flex;
    flex-direction: column;
}

.negotiation-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 14px;
    border-bottom: 1px solid var(--gray-200);
    background: rgba(16, 185, 129, 0.06);
    border-top-left-radius: 16px;
    border-top-right-radius: 16px;
}

.negotiation-header .agent {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    color: var(--gray-800);
}

.negotiation-header .agent.seller { color: var(--primary-green-dark); }
.negotiation-header .agent.buyer { color: var(--gray-700); }

.negotiation-header .item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--gray-600);
    font-weight: 600;
}

.negotiation-chat {
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: 220px;
    overflow-y: auto;
}

.message {
    max-width: 85%;
    padding: 12px 14px;
    border-radius: 12px;
    font-size: 14px;
    line-height: 1.5;
    box-shadow: var(--shadow-sm);
}

.message.seller {
    align-self: flex-start;
    background: var(--gray-50);
    border-left: 3px solid var(--primary-green);
    color: var(--gray-800);
}

.message.buyer {
    align-self: flex-end;
    background: linear-gradient(135deg, var(--primary-green), var(--primary-green-light));
    color: white;
}

/* Typing indicator */
.typing {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 12px;
    border-radius: 12px;
    background: var(--gray-100);
    color: var(--gray-600);
    font-size: 12px;
}

.typing .dot {
    width: 6px;
    height: 6px;
    background: currentColor;
    border-radius: 50%;
    opacity: 0.5;
    animation: blink 1.2s infinite ease-in-out;
}

.typing .dot:nth-child(2) { animation-delay: 0.2s; }
.typing .dot:nth-child(3) { animation-delay: 0.4s; }

@keyframes blink {
    0%, 100% { opacity: 0.2; transform: translateY(0); }
    50% { opacity: 1; transform: translateY(-2px); }
}

/* Buyer typing variant */
.typing.buyer { background: rgba(16, 185, 129, 0.15); color: var(--primary-green); }

.negotiation-status {
    padding: 10px 14px;
    border-top: 1px solid var(--gray-200);
    color: var(--gray-700);
    font-size: 13px;
    display: none;
}

.negotiation-status.show { display: block; }

.negotiation-status.success {
    color: var(--primary-green-dark);
    font-weight: 700;
}

/* Negotiation grid layout */
.negotiation-grid {
    display: grid;
    grid-template-columns: 1fr; /* Stack on small screens */
    gap: 32px;
    align-items: stretch; /* Ensures equal height */
}

.chat-panel {
    background: rgba(255,255,255,0.9);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(16,185,129,0.15);
    border-radius: 20px;
    box-shadow: var(--shadow-2xl);
    overflow: hidden;
}

.chat-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    background: linear-gradient(135deg, rgba(16,185,129,0.08), rgba(52,211,153,0.08));
    border-bottom: 1px solid var(--gray-200);
}

.chat-header .party {
    font-weight: 800;
    color: var(--gray-800);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.chat-header .party.seller { color: var(--primary-green-dark); }
.chat-header .party.buyer { color: var(--gray-700); }

.chat-header .item {
    color: var(--gray-700);
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.chat-list {
    list-style: none;
    padding: 20px;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-height: 420px;
    overflow-y: auto;
}

.chat-list li {
    display: flex;
}

.chat-bubble {
    max-width: 80%;
    padding: 12px 14px;
    border-radius: 14px;
    font-size: 14px;
    line-height: 1.6;
    box-shadow: var(--shadow-md);
}

.chat-bubble.seller {
    background: var(--gray-50);
    border-left: 3px solid var(--primary-green);
    color: var(--gray-800);
}

.chat-bubble.buyer {
    background: linear-gradient(135deg, var(--primary-green), var(--primary-green-light));
    color: white;
}

.chat-list li.seller { justify-content: flex-start; }
.chat-list li.buyer { justify-content: flex-end; }

.chat-typing {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px 20px 20px;
    color: var(--gray-500);
}

.chat-typing .dot {
    width: 6px;
    height: 6px;
    background: currentColor;
    border-radius: 50%;
    opacity: 0.5;
    animation: blink 1.2s infinite ease-in-out;
}

.chat-typing .dot:nth-child(2) { animation-delay: 0.2s; }
.chat-typing .dot:nth-child(3) { animation-delay: 0.4s; }

/* Deal panel */
.deal-panel {
    position: sticky;
    top: 100px;
}

.deal-card {
    background: white;
    border: 1px solid var(--gray-200);
    border-radius: 20px;
    box-shadow: var(--shadow-2xl);
    padding: 20px;
}

.deal-title {
    font-weight: 800;
    color: var(--gray-900);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.deal-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px dashed var(--gray-200);
    color: var(--gray-700);
    font-weight: 600;
}

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

.deal-row.highlight {
    color: var(--gray-900);
}

.deal-terms {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 14px 0;
}

.term-chip {
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    color: var(--gray-700);
    font-size: 12px;
    padding: 6px 10px;
    border-radius: 999px;
}

.deal-status {
    padding: 10px 12px;
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    border-radius: 12px;
    color: var(--gray-700);
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
    margin-bottom: 12px;
}

/* Human review panel */
.human-panel {
    background: rgba(255,255,255,0.9);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(16,185,129,0.15);
    border-radius: 20px;
    box-shadow: var(--shadow-2xl);
    overflow: hidden;
}

.human-card { padding: 20px; }

.human-title {
    font-weight: 800;
    color: var(--gray-900);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.review-list {
    list-style: none;
    margin: 0 0 12px 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.review-item {
    display: grid;
    grid-template-columns: 1fr auto auto;
    gap: 10px;
    align-items: center;
    padding: 10px 12px;
    border: 1px solid var(--gray-200);
    border-radius: 12px;
    background: var(--gray-50);
}

.review-item .label { font-weight: 700; color: var(--gray-800); }
.review-item .value { color: var(--gray-700); font-weight: 600; }

.status-chip {
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    border: 1px solid var(--gray-200);
}

.status-chip.pending { background: #fff7ed; color: #c2410c; border-color: #fdba74; }
.status-chip.approved { background: #ecfdf5; color: var(--primary-green-dark); border-color: #86efac; }

.human-note {
    margin-top: 10px;
    color: var(--gray-600);
    font-size: 13px;
}

/* Update negotiation grid to 3 columns on wide screens */
@media (min-width: 1200px) {
    .negotiation-grid {
        grid-template-columns: 1fr 1.2fr 1fr;
    }
}

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

/* Responsive */
@media (max-width: 1024px) {
    .negotiation-grid {
        grid-template-columns: 1fr;
    }
    .deal-panel { position: static; }
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
    :root {
        --section-padding: 80px 0;
    }
    
    .container {
        padding: 0 20px;
    }
    
    .nav-links {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .hero {
        padding: 120px 0 80px;
    }
    
    .hero-title {
        font-size: clamp(2.5rem, 8vw, 3.5rem);
    }
    
    .hero-subtitle {
        font-size: 18px;
    }
    
    .hero-cta {
        flex-direction: column;
        align-items: center;
    }
    
    .hero-stats {
        grid-template-columns: 1fr;
    }
    
    .ai-value-proposition {
        flex-direction: column;
        text-align: center;
    }
    
    .ai-visualization-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .ai-marketplace-visualization {
        height: 400px;
    }
    
    .solution-content {
        grid-template-columns: 1fr;
        gap: 60px;
    }
    
    .cta-form {
        flex-direction: column;
        align-items: stretch;
    }
    
    .cta-input {
        min-width: auto;
    }
    
    .footer-content { grid-template-columns: 1fr; gap: 24px; text-align: center; }
    .footer-nav { justify-content: center; flex-wrap: wrap; }
    
    .activity-card {
        min-width: 140px;
        padding: 16px;
    }
    
    .activity-card .card-title {
        font-size: 12px;
    }
    
    .activity-card .card-status {
        font-size: 10px;
    }
    
    .differentiation-statement {
        font-size: 18px;
        padding: 20px 24px;
    }
    
    .section-title {
        font-size: clamp(2rem, 6vw, 3rem);
    }
}

@media (max-width: 480px) {
    .btn-primary,
    .btn-secondary {
        width: 100%;
        justify-content: center;
    }
    
    .ai-marketplace-visualization {
        height: 350px;
    }
    
    .cta-note {
        flex-direction: column;
        gap: 8px;
    }
    
    .hero-badge {
        font-size: 12px;
        padding: 10px 20px;
    }
    
    .stat-item {
        padding: 20px;
    }
    
    .modal-content {
        padding: 32px 24px;
    }
}

/* ===== SMOOTH SCROLLING ENHANCEMENTS ===== */
@media (prefers-reduced-motion: no-preference) {
    .scroll-reveal {
        transition-delay: 0.1s;
    }
    
    .scroll-reveal:nth-child(2) {
        transition-delay: 0.2s;
    }
    
    .scroll-reveal:nth-child(3) {
        transition-delay: 0.3s;
    }
    
    .scroll-reveal:nth-child(4) {
        transition-delay: 0.4s;
    }
}

/* ===== ACCESSIBILITY ===== */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
}

/* Focus styles for accessibility */
.btn-primary:focus,
.btn-secondary:focus,
.cta-button:focus,
.cta-input:focus,
.nav-link:focus,
.cta-nav-button:focus {
    outline: 2px solid var(--primary-green);
    outline-offset: 2px;
}

/* Ensure sufficient color contrast */
.problem-impact {
    color: #b91c1c;
}

/* Screen reader only content */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
} 

/* System note bubble */
.chat-list li.system { justify-content: center; }
.chat-bubble.system {
    background: var(--gray-100);
    color: var(--gray-600);
    font-style: italic;
    box-shadow: var(--shadow-sm);
} 

/* Equal height panels */
.negotiation-grid {
    align-items: stretch;
}

.human-panel,
.chat-panel,
.deal-panel {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.human-card,
.deal-card {
    display: flex;
    flex-direction: column;
    flex: 1;
}

/* Make chat fill available height */
.chat-list {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
}

/* Disable sticky so heights stay matched */
.deal-panel { position: static; top: auto; }

/* Lock height on desktop and make inner scroll */
@media (min-width: 1024px) {
    .negotiation-grid { height: var(--neg-section-height); }
    .human-panel, .chat-panel, .deal-panel { height: 100%; }
    .human-card, .deal-card { height: 100%; }
    .chat-panel { height: 100%; }
    .chat-list { height: auto; } /* Let flex handle height */
    .negotiation-grid { grid-template-columns: 1fr 1.2fr 1fr; } /* Equal side widths from 1024px */
} 

/* Benefits list */
.hero-benefits {
    list-style: none;
    padding: 0;
    margin: 0 0 24px 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 12px 20px;
}
.hero-benefits li {
    background: rgba(255,255,255,0.85);
    border: 1px solid rgba(16,185,129,0.15);
    border-left: 4px solid var(--primary-green);
    border-radius: 12px;
    padding: 12px 16px;
    font-weight: 600;
    color: var(--gray-800);
}

/* Trust strip */
.hero-trust {
    color: var(--gray-600);
    font-weight: 600;
    font-size: 14px;
}

/* Subtle parallax (reduce motion respected) */
@media (prefers-reduced-motion: no-preference) {
    .hero .gradient-orb { will-change: transform; }
    .hero .floating-shapes { will-change: transform; }
} 