/* ==========================================
   THE AI FORGE - Modern Design System & Style
   ========================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=Outfit:wght@400;500;600;700;800&display=swap');

:root {
    /* Fonts */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;

    /* Theme: Dark (Default) */
    --bg-primary: #090d16;
    --bg-secondary: #111827;
    --bg-card: rgba(17, 24, 39, 0.7);
    --bg-card-hover: rgba(26, 36, 56, 0.85);
    --text-main: #f3f4f6;
    --text-muted: #9ca3af;
    --text-inverse: #111827;
    --border-color: rgba(255, 255, 255, 0.08);
    --border-hover: rgba(99, 102, 241, 0.4);
    
    /* Branding Colors */
    --primary: #6366f1; /* Indigo */
    --primary-glow: rgba(99, 102, 241, 0.3);
    --secondary: #06b6d4; /* Electric Cyan */
    --secondary-glow: rgba(6, 182, 212, 0.3);
    --accent: #f97316; /* Forge Orange */
    --accent-glow: rgba(249, 115, 22, 0.3);
    --accent-molten: #ff5722;
    
    /* UI Helpers */
    --glass-bg: rgba(15, 23, 42, 0.65);
    --glass-border: rgba(255, 255, 255, 0.08);
    --shadow-main: 0 10px 30px -10px rgba(0, 0, 0, 0.7);
    --shadow-glow: 0 0 25px rgba(99, 102, 241, 0.2);
    --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    --radius-lg: 20px;
    --radius-md: 12px;
    --radius-sm: 8px;
}

/* Light Theme Variables */
[data-theme="light"] {
    --bg-primary: #f8fafc;
    --bg-secondary: #ffffff;
    --bg-card: rgba(255, 255, 255, 0.75);
    --bg-card-hover: rgba(255, 255, 255, 0.95);
    --text-main: #0f172a;
    --text-muted: #64748b;
    --text-inverse: #ffffff;
    --border-color: rgba(0, 0, 0, 0.08);
    --border-hover: rgba(99, 102, 241, 0.5);
    
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(0, 0, 0, 0.08);
    --shadow-main: 0 10px 30px -10px rgba(99, 102, 241, 0.1);
    --shadow-glow: 0 10px 30px -5px rgba(99, 102, 241, 0.15);
}

/* Base resets */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-primary);
    color: var(--text-main);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    transition: background-color 0.3s ease, color 0.3s ease;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

/* Decorative grid overlay for the cyber forge theme */
.grid-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-image: 
        linear-gradient(var(--border-color) 1px, transparent 1px),
        linear-gradient(90deg, var(--border-color) 1px, transparent 1px);
    background-size: 80px 80px;
    background-position: center top;
    opacity: 0.25;
    pointer-events: none;
    z-index: 0;
}

/* Scroll Progress Bar */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--secondary), var(--accent));
    width: 0%;
    z-index: 1000;
    transition: width 0.1s ease-out;
}

/* Container */
.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 1;
}

/* Button styles */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.85rem 2rem;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: var(--transition);
    border: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: #ffffff;
    box-shadow: 0 4px 20px var(--primary-glow);
    position: relative;
    overflow: hidden;
}

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

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

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(99, 102, 241, 0.5), 0 0 15px var(--secondary-glow);
}

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

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

.btn-accent {
    background: linear-gradient(135deg, var(--accent), var(--accent-molten));
    color: #ffffff;
    box-shadow: 0 4px 20px var(--accent-glow);
}

.btn-accent:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px var(--accent-glow), 0 0 15px var(--accent-glow);
}

/* Header & Navigation */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    transition: var(--transition);
}

header.scrolled {
    background-color: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--glass-border);
    box-shadow: var(--shadow-main);
}

.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 85px;
    transition: var(--transition);
}

header.scrolled .navbar {
    height: 70px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: var(--text-main);
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.5rem;
    letter-spacing: -0.03em;
}

.logo-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--accent), var(--primary));
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    animation: morphLogo 8s ease-in-out infinite alternate;
}

@keyframes morphLogo {
    0% { border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%; }
    50% { border-radius: 50% 50% 30% 70% / 50% 60% 40% 50%; }
    100% { border-radius: 70% 30% 50% 50% / 30% 30% 70% 70%; }
}

.logo-text span {
    background: linear-gradient(90deg, var(--text-main), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-menu {
    display: flex;
    align-items: center;
    list-style: none;
    gap: 2rem;
}

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

.nav-link:hover {
    color: var(--text-main);
}

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

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

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

/* Theme Toggle Button */
.theme-toggle {
    background: none;
    border: 1px solid var(--border-color);
    color: var(--text-main);
    width: 42px;
    height: 42px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.theme-toggle:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--primary);
    transform: scale(1.05);
}

.theme-toggle .sun-icon {
    display: none;
}

[data-theme="light"] .theme-toggle .moon-icon {
    display: none;
}

[data-theme="light"] .theme-toggle .sun-icon {
    display: block;
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 110;
}

.menu-toggle span {
    width: 100%;
    height: 3px;
    background-color: var(--text-main);
    border-radius: 3px;
    transition: var(--transition);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 140px 0 80px;
    position: relative;
    z-index: 1;
}

.hero-wrapper {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 4rem;
    align-items: center;
}

.hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 1rem;
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.25);
    border-radius: 100px;
    color: var(--secondary);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
}

.hero-tag span {
    width: 6px;
    height: 6px;
    background: var(--accent);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--accent);
    animation: pulseGlow 1.5s infinite alternate;
}

@keyframes pulseGlow {
    from { opacity: 0.4; transform: scale(0.8); }
    to { opacity: 1; transform: scale(1.3); }
}

.hero h1 {
    font-size: clamp(2.5rem, 5vw, 4.2rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.hero h1 span.gradient-text {
    background: linear-gradient(135deg, var(--text-main) 20%, var(--secondary) 60%, var(--primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p.lead {
    font-size: clamp(1.05rem, 2vw, 1.25rem);
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    max-width: 580px;
}

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

/* Glowing background blob */
.hero-glow {
    position: absolute;
    top: 25%;
    right: 5%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.15) 0%, rgba(6, 182, 212, 0.05) 50%, transparent 100%);
    filter: blur(80px);
    z-index: 0;
    pointer-events: none;
    animation: floatGlow 12s ease-in-out infinite alternate;
}

@keyframes floatGlow {
    0% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(50px, -30px) scale(1.1); }
    100% { transform: translate(-30px, 40px) scale(0.95); }
}

/* Hero Interactive Visual - 3D Cyber Forge */
.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.forge-chamber {
    width: 380px;
    height: 380px;
    border-radius: 50%;
    border: 1px dashed rgba(255, 255, 255, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.forge-core {
    width: 180px;
    height: 180px;
    background: radial-gradient(circle, var(--accent) 0%, var(--primary) 70%, transparent 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    box-shadow: 
        0 0 50px rgba(249, 115, 22, 0.6),
        inset 0 0 30px rgba(255, 255, 255, 0.3);
    animation: corePulse 4s ease-in-out infinite alternate;
}

@keyframes corePulse {
    0% { transform: scale(0.9); box-shadow: 0 0 40px rgba(249, 115, 22, 0.5); }
    100% { transform: scale(1.1); box-shadow: 0 0 70px rgba(249, 115, 22, 0.8), 0 0 30px rgba(99, 102, 241, 0.4); }
}

.forge-core::after {
    content: '🔥';
    font-size: 4rem;
    animation: flameFloat 3s ease-in-out infinite alternate;
}

@keyframes flameFloat {
    0% { transform: translateY(5px) scale(0.95); filter: brightness(0.9); }
    100% { transform: translateY(-8px) scale(1.05); filter: brightness(1.2); }
}

.forge-ring {
    position: absolute;
    border: 2px solid transparent;
    border-radius: 50%;
    animation: spinRing 20s linear infinite;
}

.forge-ring-1 {
    width: 280px;
    height: 280px;
    border-top: 2px solid var(--secondary);
    border-bottom: 2px solid var(--secondary);
    animation-duration: 12s;
}

.forge-ring-2 {
    width: 330px;
    height: 330px;
    border-left: 2px solid var(--primary);
    border-right: 2px solid var(--primary);
    animation-duration: 18s;
    animation-direction: reverse;
}

.forge-nodes {
    position: absolute;
    width: 100%;
    height: 100%;
    animation: spinRing 25s linear infinite;
}

.forge-node {
    position: absolute;
    width: 12px;
    height: 12px;
    background-color: var(--secondary);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--secondary);
}

.node-1 { top: 0; left: 50%; transform: translateX(-50%); }
.node-2 { bottom: 20%; left: 10%; }
.node-3 { bottom: 20%; right: 10%; }

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

/* Sections General */
section {
    padding: 100px 0;
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: 5rem;
    position: relative;
    z-index: 1;
}

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

.section-title {
    font-size: clamp(2rem, 3.5vw, 2.75rem);
    font-weight: 800;
    margin-bottom: 1.25rem;
}

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

/* Services (Modules) */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
    gap: 2.5rem;
}

.service-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 3rem 2.25rem;
    position: relative;
    overflow: hidden;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 80% 20%, var(--primary-glow) 0%, transparent 50%);
    opacity: 0;
    transition: var(--transition);
}

.service-card:hover {
    background-color: var(--bg-card-hover);
    transform: translateY(-8px);
    border-color: var(--border-hover);
    box-shadow: var(--shadow-main), 0 10px 40px rgba(99, 102, 241, 0.05);
}

.service-card:hover::before {
    opacity: 1;
}

.service-icon-wrapper {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
    transition: var(--transition);
    color: var(--secondary);
}

.service-card:hover .service-icon-wrapper {
    background: var(--primary);
    border-color: var(--primary);
    color: #ffffff;
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 0 20px var(--primary-glow);
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.service-card p {
    color: var(--text-muted);
    font-size: 0.98rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.service-features {
    list-style: none;
    margin-top: 1rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
}

.service-features li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.88rem;
    color: var(--text-main);
    margin-bottom: 0.75rem;
}

.service-features li svg {
    color: var(--secondary);
    flex-shrink: 0;
}

/* Playground Configurator (ROI Estimator) */
.playground-box {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 3.5rem;
    box-shadow: var(--shadow-main);
    max-width: 1000px;
    margin: 0 auto;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    position: relative;
    overflow: hidden;
}

.playground-box::after {
    content: '';
    position: absolute;
    bottom: -150px;
    right: -150px;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(6, 182, 212, 0.15) 0%, transparent 70%);
    filter: blur(40px);
    pointer-events: none;
}

.playground-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 3.5rem;
}

.playground-ctrl h3 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
}

.ctrl-group {
    margin-bottom: 2rem;
}

.ctrl-group label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.75rem;
}

/* Range input style */
.range-slider {
    width: 100%;
    margin-bottom: 0.5rem;
}

.slider-val {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--secondary);
}

/* Multi-select chips for automated systems */
.chips-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
}

.chip-btn {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    padding: 0.75rem 1rem;
    border-radius: var(--radius-md);
    cursor: pointer;
    font-size: 0.88rem;
    font-weight: 500;
    text-align: left;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.chip-btn:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(99, 102, 241, 0.3);
    color: var(--text-main);
}

.chip-btn.active {
    background: rgba(99, 102, 241, 0.15);
    border-color: var(--primary);
    color: var(--text-main);
    box-shadow: 0 0 15px rgba(99, 102, 241, 0.15);
}

.chip-btn .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--text-muted);
    transition: var(--transition);
}

.chip-btn.active .dot {
    background: var(--secondary);
    box-shadow: 0 0 8px var(--secondary);
}

/* Result metrics column */
.playground-results {
    background: rgba(99, 102, 241, 0.03);
    border: 1px solid rgba(99, 102, 241, 0.15);
    border-radius: var(--radius-md);
    padding: 2.25rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    text-align: center;
}

.result-card {
    margin-bottom: 2rem;
}

.result-card:last-of-type {
    margin-bottom: 0;
}

.result-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
}

.result-value {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 2.75rem;
    color: var(--text-main);
    line-height: 1;
}

.result-value span {
    background: linear-gradient(135deg, var(--secondary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.result-hint {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 0.5rem;
}

/* AI Chatbot Simulator Widget */
.chatbot-section {
    background-color: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.chatbot-wrapper {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 4rem;
    align-items: center;
}

.chatbot-preview {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-main);
    height: 480px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.chat-header {
    padding: 1rem 1.5rem;
    background: rgba(255, 255, 255, 0.02);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.chat-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}

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

.chat-status {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.75rem;
    color: #10b981;
}

.chat-status span {
    width: 6px;
    height: 6px;
    background-color: #10b981;
    border-radius: 50%;
    display: inline-block;
}

.chat-body {
    flex-grow: 1;
    padding: 1.5rem;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.chat-msg {
    max-width: 80%;
    padding: 0.85rem 1.1rem;
    border-radius: var(--radius-md);
    font-size: 0.88rem;
    line-height: 1.5;
    animation: bubblePop 0.3s ease-out forwards;
}

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

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

.msg-user {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark, #4f46e5));
    color: #ffffff;
    align-self: flex-end;
    border-bottom-right-radius: 3px;
}

.chat-suggested {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    padding: 0 1.5rem 1rem;
}

.chat-suggested button {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    padding: 0.5rem 0.85rem;
    border-radius: 100px;
    cursor: pointer;
    font-size: 0.78rem;
    font-weight: 500;
    transition: var(--transition);
}

.chat-suggested button:hover {
    border-color: var(--secondary);
    color: var(--text-main);
    background: rgba(6, 182, 212, 0.05);
}

.chat-input-area {
    padding: 1rem 1.5rem;
    background: rgba(0, 0, 0, 0.15);
    border-top: 1px solid var(--border-color);
    display: flex;
    gap: 0.75rem;
}

.chat-input {
    flex-grow: 1;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-main);
    padding: 0.75rem 1rem;
    font-size: 0.88rem;
    font-family: var(--font-body);
    outline: none;
    transition: var(--transition);
}

.chat-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 10px rgba(99, 102, 241, 0.15);
}

.chat-send-btn {
    width: 42px;
    height: 42px;
    background: var(--primary);
    border: none;
    border-radius: var(--radius-sm);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
}

.chat-send-btn:hover {
    background: var(--secondary);
    box-shadow: 0 0 15px rgba(6, 182, 212, 0.4);
}

/* Case Studies Section */
.case-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
    gap: 2.5rem;
}

.case-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.case-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-8px);
    box-shadow: var(--shadow-main);
}

.case-img-container {
    height: 220px;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, var(--bg-secondary), rgba(99, 102, 241, 0.2));
    display: flex;
    align-items: center;
    justify-content: center;
}

.case-svg {
    width: 100%;
    height: 100%;
    padding: 2rem;
}

.case-tag {
    position: absolute;
    top: 1.25rem;
    left: 1.25rem;
    padding: 0.35rem 0.85rem;
    background: rgba(9, 13, 22, 0.8);
    border: 1px solid var(--border-color);
    border-radius: 100px;
    color: var(--secondary);
    font-size: 0.78rem;
    font-weight: 600;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.case-body {
    padding: 2.25rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.case-body h3 {
    font-size: 1.4rem;
    margin-bottom: 0.75rem;
}

.case-desc {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.case-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-top: auto;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
}

.case-stat-val {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--accent);
}

.case-stat-lbl {
    font-size: 0.78rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Process Section (The Forge Steps) */
.process-timeline {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
}

.process-timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, var(--primary), var(--secondary), var(--accent), transparent);
    transform: translateX(-50%);
}

.process-step {
    display: flex;
    justify-content: flex-end;
    padding-right: 50%;
    position: relative;
    margin-bottom: 4rem;
}

.process-step:nth-child(even) {
    justify-content: flex-start;
    padding-left: 50%;
    padding-right: 0;
}

.process-step:last-child {
    margin-bottom: 0;
}

.process-badge {
    width: 46px;
    height: 46px;
    background: var(--bg-primary);
    border: 3px solid var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.1rem;
    color: var(--text-main);
    position: absolute;
    left: 50%;
    top: 0;
    transform: translateX(-50%);
    z-index: 2;
    transition: var(--transition);
}

.process-step:hover .process-badge {
    border-color: var(--accent);
    box-shadow: 0 0 15px var(--accent-glow);
    transform: translateX(-50%) scale(1.1);
}

.process-content {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 2.25rem;
    width: 90%;
    box-shadow: var(--shadow-main);
    transition: var(--transition);
    position: relative;
}

.process-step:nth-child(odd) .process-content {
    margin-right: 2.5rem;
    text-align: right;
}

.process-step:nth-child(even) .process-content {
    margin-left: 2.5rem;
}

.process-content:hover {
    border-color: var(--border-hover);
    background-color: var(--bg-card-hover);
}

.process-content h3 {
    font-size: 1.35rem;
    margin-bottom: 0.75rem;
}

.process-content p {
    color: var(--text-muted);
    font-size: 0.92rem;
    line-height: 1.6;
}

/* Testimonials (Client Reviews) */
.testimonials-slider {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
}

.testimonials-track {
    overflow: hidden;
    position: relative;
    height: 300px;
}

.testimonial-slide {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    transform: translateX(100px);
    transition: opacity 0.6s ease, transform 0.6s ease;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    pointer-events: none;
}

.testimonial-slide.active {
    opacity: 1;
    transform: translateX(0);
    pointer-events: auto;
}

.testimonial-quote {
    font-size: clamp(1.1rem, 2vw, 1.45rem);
    font-style: italic;
    color: var(--text-main);
    line-height: 1.6;
    margin-bottom: 2rem;
    max-width: 750px;
}

.testimonial-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    color: #ffffff;
    font-weight: 700;
    margin-bottom: 1rem;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.testimonial-author {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.1rem;
}

.testimonial-meta {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.slider-controls {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 2.5rem;
}

.slide-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: var(--border-color);
    border: none;
    cursor: pointer;
    transition: var(--transition);
}

.slide-dot.active {
    background-color: var(--primary);
    width: 25px;
    border-radius: 100px;
    box-shadow: 0 0 10px var(--primary-glow);
}

/* Contact Quote Builder */
.contact-container {
    display: grid;
    grid-template-columns: 0.95fr 1.05fr;
    gap: 4rem;
}

.contact-info-panel h3 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

.contact-info-panel p {
    color: var(--text-muted);
    margin-bottom: 2.5rem;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.contact-item-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--secondary);
}

.contact-item-text h4 {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.contact-item-text p {
    margin-bottom: 0;
    font-size: 1rem;
    font-weight: 600;
}

.contact-item-text a {
    color: var(--text-main);
    text-decoration: none;
    transition: var(--transition);
}

.contact-item-text a:hover {
    color: var(--primary);
}

/* Multi-step Contact Form */
.contact-form-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 3rem;
    box-shadow: var(--shadow-main);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.form-step {
    display: none;
    animation: stepFade 0.4s ease-out forwards;
}

.form-step.active {
    display: block;
}

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

.form-step-title {
    font-size: 1.4rem;
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.form-step-title span {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary);
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
}

.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.form-input, .form-textarea, .form-select {
    width: 100%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-main);
    padding: 0.85rem 1.1rem;
    font-family: var(--font-body);
    font-size: 0.95rem;
    outline: none;
    transition: var(--transition);
}

.form-input:focus, .form-textarea:focus, .form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 10px rgba(99, 102, 241, 0.15);
}

.form-textarea {
    resize: none;
    height: 120px;
}

.form-buttons {
    display: flex;
    justify-content: space-between;
    margin-top: 2rem;
    gap: 1rem;
}

/* Success Form screen */
.form-success-screen {
    text-align: center;
    padding: 2rem 0;
}

.success-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(16, 185, 129, 0.1);
    border: 2px solid #10b981;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: #10b981;
    margin-bottom: 1.5rem;
    animation: successPulse 2s infinite alternate;
}

@keyframes successPulse {
    from { transform: scale(1); box-shadow: 0 0 10px rgba(16, 185, 129, 0.2); }
    to { transform: scale(1.08); box-shadow: 0 0 25px rgba(16, 185, 129, 0.4); }
}

/* Footer Section */
footer {
    background-color: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    padding: 5rem 0 2.5rem;
    position: relative;
    z-index: 1;
}

.footer-top {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr 1fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-desc {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-top: 1rem;
    max-width: 350px;
}

.footer-col h4 {
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1.5rem;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    text-decoration: none;
    color: var(--text-muted);
    font-size: 0.92rem;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--text-main);
    padding-left: 5px;
}

.footer-newsletter p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.newsletter-form {
    display: flex;
    gap: 0.5rem;
}

.newsletter-input {
    flex-grow: 1;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-main);
    padding: 0.75rem 1rem;
    outline: none;
    font-size: 0.88rem;
}

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

.newsletter-btn {
    padding: 0 1.25rem;
    border-radius: var(--radius-md);
    background: var(--primary);
    color: #ffffff;
    border: none;
    cursor: pointer;
    transition: var(--transition);
}

.newsletter-btn:hover {
    background: var(--secondary);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 2.5rem;
    border-top: 1px solid var(--border-color);
    color: var(--text-muted);
    font-size: 0.88rem;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-link {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    text-decoration: none;
    transition: var(--transition);
}

.social-link:hover {
    color: var(--text-main);
    background-color: var(--primary);
    border-color: var(--primary);
    transform: translateY(-3px);
}

/* Animations / Scroll Reveal */
.reveal-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

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

/* Responsive Styles */
@media (max-width: 1024px) {
    .hero-wrapper {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }

    .hero-visual {
        order: -1;
    }

    .hero p.lead {
        margin: 0 auto 2.5rem;
    }

    .hero-buttons {
        justify-content: center;
    }

    .playground-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .chatbot-wrapper {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .chatbot-preview {
        max-width: 550px;
        margin: 0 auto;
        width: 100%;
    }

    .contact-container {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .footer-top {
        grid-template-columns: 1fr 1fr;
    }

    .footer-col:first-of-type {
        grid-column: span 2;
    }
}

@media (max-width: 768px) {
    section {
        padding: 60px 0;
    }

    .navbar {
        height: 70px;
    }

    /* Keep theme toggle accessible on the mobile header next to hamburger */
    .nav-actions {
        display: flex;
        align-items: center;
        gap: 0.5rem;
        margin-right: 1rem;
    }

    .nav-actions .btn {
        display: none; /* Hide main header button on mobile, keep theme toggle */
    }

    .menu-toggle {
        display: flex;
    }

    /* Native-feeling slide-in side drawer */
    .nav-menu {
        position: fixed;
        top: 0;
        right: 0;
        width: 280px;
        height: 100vh;
        background-color: var(--bg-secondary);
        border-left: 1px solid var(--border-color);
        flex-direction: column;
        justify-content: center;
        padding: 3rem 2rem;
        gap: 2rem;
        transform: translateX(100%);
        transition: var(--transition);
        z-index: 100;
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.4);
    }

    .nav-menu.active {
        transform: translateX(0);
    }

    .nav-menu .nav-actions-mobile {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 1.25rem;
        width: 100%;
        padding-top: 1rem;
        border-top: 1px solid var(--border-color);
    }

    /* Process timeline mobile adjustments */
    .process-timeline::before {
        left: 20px;
    }

    .process-step {
        padding-left: 45px;
        padding-right: 0;
        justify-content: flex-start;
        margin-bottom: 2.5rem;
    }

    .process-step:nth-child(even) {
        padding-left: 45px;
    }

    .process-badge {
        left: 20px;
        transform: translateX(-50%);
    }

    .process-step:hover .process-badge {
        transform: translateX(-50%) scale(1.1);
    }

    .process-content {
        width: 100%;
        padding: 1.75rem;
    }

    .process-step:nth-child(odd) .process-content {
        margin-right: 0;
        text-align: left;
    }

    .process-step:nth-child(even) .process-content {
        margin-left: 0;
    }

    /* ROI Configurator */
    .playground-box {
        padding: 1.75rem;
    }

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

    /* Quote Builder Form - Zoom Safe Typography (16px) */
    .contact-form-card {
        padding: 1.75rem;
    }

    .form-input, .form-textarea, .form-select {
        font-size: 16px;
        padding: 0.8rem 1rem;
    }

    .form-buttons {
        flex-direction: column;
        gap: 0.75rem;
    }

    .form-buttons .btn {
        width: 100%;
    }

    /* Testimonials Mobile Height Expansion */
    .testimonials-track {
        height: 380px;
    }

    .footer-top {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .footer-col:first-of-type {
        grid-column: span 1;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }
}

/* Specific viewports sizing overrides */
@media (max-width: 480px) {
    /* Hero Visual scale-down to avoid viewport overflow */
    .forge-chamber {
        width: 290px;
        height: 290px;
    }

    .forge-core {
        width: 140px;
        height: 140px;
        box-shadow: 0 0 35px rgba(249, 115, 22, 0.6);
    }

    .forge-core::after {
        font-size: 3rem;
    }

    .forge-ring-1 {
        width: 220px;
        height: 220px;
    }

    .forge-ring-2 {
        width: 260px;
        height: 260px;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: stretch;
        width: 100%;
        gap: 0.75rem;
    }

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

    /* Chatbot suggestions - premium horizontal swipe bar */
    .chat-suggested {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        padding: 0 1.25rem 0.75rem;
        gap: 0.5rem;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
    }

    .chat-suggested::-webkit-scrollbar {
        display: none;
    }

    .chat-suggested button {
        flex: 0 0 auto;
        white-space: nowrap;
        padding: 0.45rem 0.8rem;
    }

    .chatbot-preview {
        height: 460px;
    }

    .chat-body {
        padding: 1.25rem;
    }

    .testimonials-track {
        height: 440px;
    }

    .testimonial-quote {
        font-size: 1rem;
    }
}

