/* ==========================================================================
   DESIGN SYSTEM & CUSTOM VARIABLES (Emerald & Sage Green Theme)
   ========================================================================== */
:root {
    /* Color Tokens */
    --color-bg-dark: #0a0e0c;
    --color-bg-card: rgba(18, 25, 21, 0.65);
    --color-border: rgba(52, 211, 153, 0.15);
    --color-border-hover: rgba(52, 211, 153, 0.35);
    
    --color-primary: #10b981;      /* Emerald Green */
    --color-primary-light: #6ee7b7;/* Mint Green */
    --color-primary-dark: #047857; /* Dark Forest Green */
    --color-sage: #86efac;         /* Sage Accent */
    
    --color-text-main: #f3f4f6;
    --color-text-muted: #9ca3af;
    
    /* Font Families */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    /* Transitions */
    --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-fast: all 0.2s ease-in-out;
}

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--color-bg-dark);
    color: var(--color-text-main);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
}

/* ==========================================================================
   AMBIENT GLOWS
   ========================================================================== */
.ambient-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    z-index: -1;
    opacity: 0.15;
    pointer-events: none;
}

.glow-1 {
    top: -10%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--color-primary) 0%, transparent 70%);
}

.glow-2 {
    bottom: 10%;
    left: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, var(--color-primary-dark) 0%, transparent 70%);
}

.glow-3 {
    top: 40%;
    right: 30%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, var(--color-sage) 0%, transparent 70%);
}

/* ==========================================================================
   TYPOGRAPHY & UTILITIES
   ========================================================================== */
h1, h2, h3, h4 {
    font-family: var(--font-heading);
    letter-spacing: -0.02em;
}

.text-gradient {
    background: linear-gradient(135deg, var(--color-primary-light) 0%, var(--color-primary) 50%, var(--color-primary-dark) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 800;
}

.text-green {
    color: var(--color-primary-light);
}

/* ==========================================================================
   GLASSMORPHISM UTILITY CARD
   ========================================================================== */
.glass-card {
    background: var(--color-bg-card);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--color-border);
    border-radius: 20px;
    box-shadow: 0 8px 32px 0 rgba(16, 185, 129, 0.05);
    transition: var(--transition-smooth);
}

.glass-card:hover {
    border-color: var(--color-border-hover);
    box-shadow: 0 12px 40px 0 rgba(16, 185, 129, 0.12);
}

/* ==========================================================================
   BUTTONS
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 28px;
    border-radius: 12px;
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition-smooth);
    border: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--color-primary-light) 0%, var(--color-primary) 100%);
    color: #050806;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(16, 185, 129, 0.4);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: var(--color-text-main);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.btn-glow {
    background: transparent;
    color: var(--color-primary-light);
    border: 1px solid var(--color-border);
    position: relative;
    overflow: hidden;
}

.btn-glow::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(110, 231, 183, 0.2), transparent);
    transition: 0.5s;
}

.btn-glow:hover::before {
    left: 100%;
}

.btn-glow:hover {
    background: rgba(16, 185, 129, 0.1);
    border-color: var(--color-primary);
    box-shadow: 0 0 15px rgba(16, 185, 129, 0.2);
}

.btn-block {
    display: flex;
    width: 100%;
}

.btn-square {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    border: 1px solid var(--color-border);
    background: rgba(255, 255, 255, 0.05);
    color: var(--color-text-main);
    cursor: pointer;
    transition: var(--transition-fast);
}

.btn-square:hover {
    background: var(--color-primary);
    color: #050806;
    border-color: var(--color-primary);
    transform: scale(1.05);
}

/* ==========================================================================
   NAVIGATION
   ========================================================================== */
.glass-header {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 1200px;
    z-index: 1000;
    background: rgba(10, 14, 12, 0.7);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid var(--color-border);
    border-radius: 16px;
    padding: 12px 24px;
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 500;
    color: var(--color-text-main);
    text-decoration: none;
}

.logo-accent {
    color: var(--color-primary-light);
}

.logo-bold {
    font-weight: 800;
    color: var(--color-primary);
}

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

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

.nav-link:hover, .nav-link.active {
    color: var(--color-primary-light);
}

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

.cart-badge {
    position: relative;
    cursor: pointer;
    font-size: 1.25rem;
    color: var(--color-text-main);
    transition: var(--transition-fast);
}

.cart-badge:hover {
    color: var(--color-primary-light);
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -10px;
    background: var(--color-primary);
    color: #050806;
    font-size: 0.7rem;
    font-weight: 700;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ==========================================================================
   CONTENT STRUCTURE
   ========================================================================== */
.content-wrapper {
    width: 90%;
    max-width: 1200px;
    margin: 120px auto 40px;
}

.section {
    padding: 80px 0;
}

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

.section-tag {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--color-primary);
    font-weight: 600;
    display: block;
    margin-bottom: 8px;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.section-desc {
    color: var(--color-text-muted);
    max-width: 600px;
    margin: 0 auto;
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero-container {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 40px;
    align-items: center;
}

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

.badge-dot {
    width: 8px;
    height: 8px;
    background-color: var(--color-primary);
    border-radius: 50%;
    display: inline-block;
    animation: pulse 2s infinite;
}

.hero-title {
    font-size: 3.8rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 20px;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: var(--color-text-muted);
    margin-bottom: 36px;
    max-width: 520px;
}

.hero-cta-group {
    display: flex;
    gap: 20px;
    margin-bottom: 50px;
}

.hero-stats {
    display: flex;
    gap: 40px;
}

.stat-card {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--color-text-main);
    line-height: 1;
}

.stat-label {
    font-size: 0.8rem;
    color: var(--color-text-muted);
    margin-top: 4px;
}

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

.visual-wrapper {
    position: relative;
    padding: 10px;
    overflow: hidden;
}

.hero-mockup-img {
    max-width: 100%;
    border-radius: 14px;
    display: block;
}

.visual-badge {
    position: absolute;
    background: rgba(10, 14, 12, 0.85);
    backdrop-filter: blur(10px);
    border: 1px solid var(--color-border);
    padding: 8px 16px;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 600;
}

.badge-top-right {
    top: 25px;
    right: 25px;
}

/* ==========================================================================
   PRODUCTS SECTION
   ========================================================================== */
.products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.product-card {
    position: relative;
    overflow: hidden;
    padding: 16px;
}

.product-img-wrapper {
    position: relative;
    width: 100%;
    height: 250px;
    border-radius: 14px;
    overflow: hidden;
    margin-bottom: 20px;
}

.product-img-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    color: rgba(255, 255, 255, 0.9);
}

.green-gradient-1 {
    background: linear-gradient(135deg, #064e3b 0%, #059669 100%);
}

.green-gradient-2 {
    background: linear-gradient(135deg, #0f172a 0%, #047857 100%);
}

.green-gradient-3 {
    background: linear-gradient(135deg, #111827 0%, #10b981 100%);
}

.product-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: rgba(10, 14, 12, 0.8);
    backdrop-filter: blur(5px);
    border: 1px solid var(--color-border);
    padding: 4px 10px;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--color-primary-light);
}

.product-info {
    padding: 0 4px;
}

.product-name {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 4px;
}

.product-category {
    font-size: 0.8rem;
    color: var(--color-text-muted);
    margin-bottom: 16px;
}

.product-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.product-price {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--color-primary-light);
}

/* ==========================================================================
   AI SIMULATOR SECTION
   ========================================================================== */
.ai-container {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 30px;
}

.ai-control-panel {
    padding: 30px;
}

.ai-panel-title {
    font-size: 1.35rem;
    font-weight: 600;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.ai-panel-subtitle {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    margin-bottom: 24px;
}

.input-group {
    margin-bottom: 20px;
}

.input-group label {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--color-text-muted);
    display: block;
    margin-bottom: 8px;
}

.form-input {
    width: 100%;
    padding: 12px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--color-border);
    border-radius: 10px;
    color: var(--color-text-main);
    font-family: var(--font-body);
    outline: none;
    transition: var(--transition-fast);
}

.form-input:focus {
    border-color: var(--color-primary);
}

/* AI Console Panel */
.ai-console-panel {
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.console-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(0, 0, 0, 0.4);
    padding: 14px 20px;
    border-bottom: 1px solid var(--color-border);
}

.console-dots {
    display: flex;
    gap: 6px;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
}

.dot.red { background-color: #ef4444; }
.dot.yellow { background-color: #f59e0b; }
.dot.green { background-color: #10b981; }

.console-title {
    font-size: 0.8rem;
    font-family: monospace;
    color: var(--color-text-muted);
}

.console-status {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--color-primary-light);
    display: flex;
    align-items: center;
    gap: 6px;
}

.console-body {
    flex: 1;
    background: rgba(0, 0, 0, 0.5);
    padding: 24px;
    font-family: monospace;
    font-size: 0.85rem;
    overflow-y: auto;
    max-height: 350px;
    min-height: 250px;
}

.console-line {
    margin-bottom: 12px;
    line-height: 1.5;
}

.system-line {
    color: #3b82f6; /* light blue */
}

.prompt-line {
    color: var(--color-text-muted);
}

.ai-output-line {
    color: var(--color-text-main);
    border-left: 2px solid var(--color-primary);
    padding-left: 10px;
}

/* ==========================================================================
   FLOATING CHAT WIDGET
   ========================================================================== */
.chat-widget {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 999;
}

.chat-button {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--color-primary-light) 0%, var(--color-primary) 100%);
    color: #050806;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(16, 185, 129, 0.3);
    position: relative;
    transition: var(--transition-smooth);
}

.chat-button:hover {
    transform: scale(1.05);
}

.chat-pulse {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 2px solid var(--color-primary);
    animation: ripple 2.5s infinite;
}

.chat-window {
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 360px;
    height: 480px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transform: translateY(20px) scale(0.95);
    opacity: 0;
    pointer-events: none;
    transition: var(--transition-smooth);
}

.chat-window.open {
    transform: translateY(0) scale(1);
    opacity: 1;
    pointer-events: auto;
}

.chat-header {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(0, 0, 0, 0.4);
    padding: 16px 20px;
    border-bottom: 1px solid var(--color-border);
}

.chat-user-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid var(--color-border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-primary-light);
}

.chat-user-info {
    flex: 1;
}

.chat-name {
    font-size: 0.95rem;
    font-weight: 600;
}

.chat-status {
    font-size: 0.75rem;
    color: var(--color-primary-light);
    display: flex;
    align-items: center;
    gap: 4px;
}

.chat-close-btn {
    background: none;
    border: none;
    color: var(--color-text-muted);
    font-size: 1.5rem;
    cursor: pointer;
}

.chat-messages {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.chat-msg {
    max-width: 80%;
    padding: 12px 16px;
    border-radius: 14px;
    font-size: 0.85rem;
}

.chat-msg.bot {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--color-border);
    align-self: flex-start;
    border-bottom-left-radius: 4px;
}

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

.chat-suggestions {
    padding: 10px 20px 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.chat-suggest-btn {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--color-border);
    border-radius: 50px;
    padding: 6px 12px;
    font-size: 0.75rem;
    color: var(--color-primary-light);
    cursor: pointer;
    transition: var(--transition-fast);
}

.chat-suggest-btn:hover {
    background: var(--color-primary);
    color: #050806;
    border-color: var(--color-primary);
}

/* ==========================================================================
   CART MODAL
   ========================================================================== */
.cart-modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(10px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition-smooth);
}

.cart-modal-backdrop.open {
    opacity: 1;
    pointer-events: auto;
}

.cart-modal {
    width: 90%;
    max-width: 460px;
    padding: 30px;
}

.cart-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.close-modal-btn {
    background: none;
    border: none;
    color: var(--color-text-muted);
    font-size: 1.8rem;
    cursor: pointer;
}

.cart-items-list {
    margin-bottom: 24px;
    max-height: 250px;
    overflow-y: auto;
}

.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.cart-item-name {
    font-weight: 600;
    font-size: 0.95rem;
}

.cart-item-price {
    color: var(--color-primary-light);
    font-weight: 700;
}

.empty-cart-msg {
    text-align: center;
    color: var(--color-text-muted);
    font-size: 0.9rem;
    padding: 20px 0;
}

.cart-summary {
    border-top: 1px solid var(--color-border);
    padding-top: 20px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 20px;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.main-footer {
    text-align: center;
    padding: 40px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--color-text-muted);
    font-size: 0.8rem;
}

/* ==========================================================================
   ANIMATIONS & KEYFRAMES
   ========================================================================== */
@keyframes pulse {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    }
    70% {
        transform: scale(1);
        box-shadow: 0 0 0 10px rgba(16, 185, 129, 0);
    }
    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
    }
}

@keyframes ripple {
    0% {
        transform: scale(1);
        opacity: 0.8;
    }
    100% {
        transform: scale(1.6);
        opacity: 0;
    }
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-12px);
    }
    100% {
        transform: translateY(0px);
    }
}

@keyframes pulseGlow {
    0% {
        box-shadow: 0 8px 32px 0 rgba(16, 185, 129, 0.05);
        border-color: var(--color-border);
    }
    50% {
        box-shadow: 0 8px 32px 0 rgba(16, 185, 129, 0.18);
        border-color: rgba(52, 211, 153, 0.4);
    }
    100% {
        box-shadow: 0 8px 32px 0 rgba(16, 185, 129, 0.05);
        border-color: var(--color-border);
    }
}

@keyframes blink {
    from, to { color: transparent; }
    50% { color: var(--color-primary-light); }
}

.pulse-dot {
    width: 6px;
    height: 6px;
    background-color: var(--color-primary-light);
    border-radius: 50%;
    display: inline-block;
    animation: pulse 2s infinite;
}

/* Float Animation Application */
.visual-wrapper {
    position: relative;
    padding: 10px;
    overflow: hidden;
    animation: float 6s ease-in-out infinite;
}

/* Pulsing Staging Active Glow */
.ai-console-panel {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    animation: pulseGlow 8s ease-in-out infinite;
}

.ai-control-panel {
    padding: 30px;
    animation: pulseGlow 8s ease-in-out infinite;
    animation-delay: 2s;
}

/* Blinking cursor for simulated typewriter output */
.ai-output-line::after {
    content: '_';
    font-weight: bold;
    display: inline-block;
    margin-left: 3px;
    color: var(--color-primary-light);
    animation: blink 0.8s step-end infinite;
}

/* Bouncing typing indicator */
.typing-ind .msg-content {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 8px 12px;
}

.typing-ind .pulse-dot {
    width: 5px;
    height: 5px;
    background-color: var(--color-primary-light);
    animation: pulse 1.2s infinite alternate;
}

/* ==========================================================================
   RESPONSIVENESS (Responsive Layouts)
   ========================================================================== */
@media (max-width: 992px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-text-content {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .hero-title {
        font-size: 3rem;
    }
    
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .ai-container {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none; /* Hide nav links on tablet/mobile for clean UI */
    }
    
    .products-grid {
        grid-template-columns: 1fr;
    }
}

