/* ==========================================================================
   THE CIRCUIT - DESIGN SYSTEM & CUSTOM PREMIUM STYLES
   ========================================================================== */

/* Variables / Design Tokens */
:root {
    /* Colors */
    --bg-dark: #030712;
    --bg-panel: rgba(10, 15, 30, 0.7);
    --border-color: rgba(255, 255, 255, 0.06);
    --border-hover: rgba(6, 182, 212, 0.4);
    
    --primary: #2563eb;
    --primary-glow: rgba(37, 99, 235, 0.35);
    
    --cyan: #06b6d4;
    --cyan-glow: rgba(6, 182, 212, 0.35);
    
    --magenta: #d946ef;
    --magenta-glow: rgba(217, 70, 239, 0.35);
    
    --text-main: #f1f5f9;
    --text-muted: #94a3b8;
    --text-dark: #64748b;
    
    --success: #10b981;
    --warning: #f59e0b;
    
    /* Layout */
    --max-width: 1200px;
    --nav-height: 70px;
    
    /* Typography */
    --font-heading: 'Space Grotesk', sans-serif;
    --font-body: 'Outfit', sans-serif;
    --font-mono: 'Fira Code', monospace;
}

/* Base Reset & Defaults */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    background-color: var(--bg-dark);
    color: var(--text-main);
    overflow-x: hidden;
}

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

/* Common Layout Components */
.container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}

/* Glassmorphism Panel */
.glass-panel {
    background: var(--bg-panel);
    backdrop-filter: blur(12px) saturate(160%);
    -webkit-backdrop-filter: blur(12px) saturate(160%);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    overflow: hidden;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.glass-panel:hover {
    border-color: rgba(255, 255, 255, 0.1);
}

/* Typography Utilities */
h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    color: #fff;
}

.gradient-text {
    background: linear-gradient(135deg, #3b82f6 0%, #06b6d4 50%, #d946ef 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.glow-text {
    text-shadow: 0 0 10px rgba(6, 182, 212, 0.5);
    color: var(--cyan);
}

.glow-cyan { color: var(--cyan); text-shadow: 0 0 12px var(--cyan-glow); }
.glow-blue { color: var(--primary); text-shadow: 0 0 12px var(--primary-glow); }
.glow-magenta { color: var(--magenta); text-shadow: 0 0 12px var(--magenta-glow); }

/* Buttons styling */
.btn-primary, .btn-secondary, .btn-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: 8px;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--cyan) 100%);
    color: #fff;
    border: none;
    box-shadow: 0 4px 20px rgba(6, 182, 212, 0.25);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(6, 182, 212, 0.4);
}

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

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

/* Header & Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--nav-height);
    background: rgba(3, 7, 18, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    transition: background 0.3s ease;
}

.nav-container {
    max-width: var(--max-width);
    height: 100%;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.3rem;
    color: #fff;
}

.logo-icon {
    color: var(--cyan);
    display: flex;
    filter: drop-shadow(0 0 6px var(--cyan-glow));
}

.logo-text {
    letter-spacing: -0.5px;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 32px;
}

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

.nav-link:hover {
    color: #fff;
}

.nav-btn {
    padding: 8px 18px;
    background: rgba(6, 182, 212, 0.1);
    border: 1px solid var(--cyan);
    color: var(--cyan);
    border-radius: 6px;
    box-shadow: 0 0 10px rgba(6, 182, 212, 0.1);
}

.nav-btn:hover {
    background: var(--cyan);
    color: #fff;
    box-shadow: 0 0 15px rgba(6, 182, 212, 0.3);
}

.btn-icon {
    width: 16px;
    height: 16px;
    transition: transform 0.3s ease;
}

.nav-btn:hover .btn-icon {
    transform: translateX(3px);
}

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    color: #fff;
    cursor: pointer;
}

/* Hero Section */
.hero-sec {
    padding: calc(var(--nav-height) + 60px) 0 80px 0;
    min-height: 85vh;
    display: flex;
    align-items: center;
    position: relative;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 48px;
    align-items: center;
}

.badge-status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    background: rgba(16, 185, 129, 0.08);
    border: 1px solid rgba(16, 185, 129, 0.2);
    border-radius: 50px;
    margin-bottom: 24px;
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background-color: var(--success);
    border-radius: 50%;
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    animation: pulse 1.8s infinite;
}

@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 6px rgba(16, 185, 129, 0);
    }
    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
    }
}

.badge-text {
    font-size: 0.8rem;
    font-family: var(--font-mono);
    color: var(--success);
    font-weight: 500;
}

.hero-title {
    font-size: 3.2rem;
    line-height: 1.15;
    margin-bottom: 20px;
    letter-spacing: -1px;
}

.hero-desc {
    font-size: 1.15rem;
    color: var(--text-muted);
    margin-bottom: 32px;
    max-width: 540px;
}

.hero-typewriter {
    font-family: var(--font-mono);
    background: rgba(0, 0, 0, 0.3);
    padding: 12px 18px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.04);
    margin-bottom: 36px;
    max-width: 500px;
    font-size: 0.95rem;
}

.terminal-prompt {
    color: var(--magenta);
    font-weight: 700;
}

.typewriter-code {
    color: var(--cyan);
}

.cursor {
    animation: blink 0.9s infinite;
    color: #fff;
    margin-left: 2px;
}

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

.hero-actions {
    display: flex;
    gap: 16px;
}

/* System Dashboard Mockup */
.system-dashboard {
    width: 100%;
}

.panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 18px;
    background: rgba(0, 0, 0, 0.25);
    border-bottom: 1px solid var(--border-color);
}

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

.window-dots .dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.window-dots .red { background-color: #ef4444; }
.window-dots .yellow { background-color: #eab308; }
.window-dots .green { background-color: #22c55e; }

.panel-title {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text-muted);
    letter-spacing: 0.5px;
}

.panel-body {
    padding: 24px;
}

.dashboard-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}

.stat-card {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 12px;
    display: flex;
    flex-direction: column;
}

.stat-lbl {
    font-size: 0.75rem;
    color: var(--text-dark);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.stat-val {
    font-family: var(--font-mono);
    font-size: 1.15rem;
    font-weight: 700;
}

.graph-container {
    background: rgba(0, 0, 0, 0.15);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 20px;
}

.graph-header {
    display: flex;
    justify-content: space-between;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.svg-graph {
    width: 100%;
    overflow: hidden;
}

.terminal-mini {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 12px;
    color: var(--text-muted);
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.t-green { color: var(--success); }
.t-blue { color: var(--cyan); }

/* Section Header Shared */
.section-header {
    margin-bottom: 56px;
}

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

.section-title {
    font-size: 2.5rem;
    margin-bottom: 16px;
    letter-spacing: -0.5px;
}

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

/* Architecture Composer Section */
.composer-sec {
    padding: 100px 0;
    position: relative;
    border-top: 1px solid rgba(255, 255, 255, 0.02);
}

.composer-grid {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 32px;
    align-items: start;
}

.composer-toolbox {
    background: rgba(10, 15, 30, 0.5);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 24px;
}

.toolbox-title {
    font-size: 1.25rem;
    margin-bottom: 8px;
}

.toolbox-desc {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.toolbox-items {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.tool-btn {
    display: flex;
    align-items: center;
    gap: 16px;
    width: 100%;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    cursor: pointer;
    text-align: left;
    transition: all 0.25s ease;
}

.tool-btn:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.15);
}

.tool-btn.active {
    background: rgba(6, 182, 212, 0.08);
    border-color: var(--cyan);
    box-shadow: 0 0 15px rgba(6, 182, 212, 0.1);
}

.tool-icon {
    display: flex;
    padding: 8px;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 8px;
    color: var(--text-muted);
    transition: all 0.3s ease;
}

.tool-btn.active .tool-icon {
    background: var(--cyan);
    color: #fff;
    filter: drop-shadow(0 0 6px var(--cyan-glow));
}

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

.tool-name {
    font-size: 0.9rem;
    font-weight: 600;
    color: #fff;
}

.tool-type {
    font-size: 0.72rem;
    color: var(--text-muted);
}

.composer-sandbox {
    height: 100%;
    min-height: 520px;
    display: flex;
    flex-direction: column;
}

.sandbox-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 24px;
    background: rgba(0, 0, 0, 0.25);
    border-bottom: 1px solid var(--border-color);
}

.sandbox-title {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.header-icon {
    width: 18px;
    height: 18px;
    color: var(--cyan);
}

.sim-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    background: rgba(37, 99, 235, 0.1);
    border: 1px solid rgba(37, 99, 235, 0.3);
    border-radius: 4px;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--primary);
}

.sim-pulse {
    width: 6px;
    height: 6px;
    background-color: var(--primary);
    border-radius: 50%;
    animation: pulse-blue 1.5s infinite;
}

@keyframes pulse-blue {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(37, 99, 235, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 4px rgba(37, 99, 235, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(37, 99, 235, 0); }
}

.sandbox-body {
    flex-grow: 1;
    padding: 32px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
}

/* Circuit diagram area */
.circuit-diagram {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    grid-template-rows: repeat(3, 100px);
    gap: 20px;
    align-items: center;
    justify-items: center;
    position: relative;
    width: 100%;
    height: 320px;
}

.connection-svg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.routing-line {
    fill: none;
    stroke: var(--text-dark);
    stroke-width: 2;
    stroke-dasharray: 4,4;
    transition: all 0.4s ease;
}

.routing-line.active {
    stroke: var(--cyan);
    stroke-width: 2.5;
    stroke-dasharray: 8,4;
    animation: flow 30s linear infinite;
    filter: drop-shadow(0 0 4px var(--cyan-glow));
}

@keyframes flow {
    to { stroke-dashoffset: -1000; }
}

.circuit-node {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    z-index: 2;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0.2;
    transform: scale(0.9);
}

.circuit-node.active {
    opacity: 1;
    transform: scale(1);
    border-color: var(--cyan);
    box-shadow: 0 0 20px rgba(6, 182, 212, 0.15);
    background: radial-gradient(circle, rgba(6, 182, 212, 0.1) 0%, rgba(15, 23, 42, 0.95) 100%);
}

.circuit-node.node-input {
    grid-column: 1;
    grid-row: 2;
    opacity: 1;
    transform: scale(1);
    border-color: var(--primary);
    background: rgba(37, 99, 235, 0.08);
}

.node-icon {
    font-size: 1.2rem;
    color: var(--text-muted);
    display: flex;
    transition: color 0.3s ease;
}

.circuit-node.active .node-icon {
    color: var(--cyan);
}

.circuit-node.node-input .node-icon {
    color: var(--primary);
}

.node-label {
    font-size: 0.65rem;
    color: var(--text-muted);
    font-weight: 600;
    text-align: center;
    padding: 0 4px;
}

.circuit-node.active .node-label {
    color: #fff;
}

/* Metrics bar bottom */
.metrics-bar {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    padding-top: 24px;
    border-top: 1px solid var(--border-color);
}

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

.metric-lbl {
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.metric-val {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 700;
}

/* Services Grid & Glow Cards */
.services-sec {
    padding: 100px 0;
    position: relative;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.glow-card {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    height: 100%;
}

.card-glow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(800px circle at var(--mouse-x, 0) var(--mouse-y, 0), rgba(255, 255, 255, 0.04), transparent 40%);
    z-index: 1;
    pointer-events: none;
}

.card-content {
    padding: 40px;
    position: relative;
    z-index: 2;
}

.card-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
}

.card-icon.cyan {
    background: rgba(6, 182, 212, 0.1);
    color: var(--cyan);
    border: 1px solid rgba(6, 182, 212, 0.2);
}

.card-icon.magenta {
    background: rgba(217, 70, 239, 0.1);
    color: var(--magenta);
    border: 1px solid rgba(217, 70, 239, 0.2);
}

.card-icon.blue {
    background: rgba(37, 99, 235, 0.1);
    color: var(--primary);
    border: 1px solid rgba(37, 99, 235, 0.2);
}

.card-title {
    font-size: 1.4rem;
    margin-bottom: 16px;
    line-height: 1.3;
}

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

.card-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.card-list li {
    font-size: 0.88rem;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 8px;
}

.li-icon {
    width: 16px;
    height: 16px;
    color: var(--cyan);
}

/* Terminal Console Box */
.terminal-sec {
    padding: 100px 0;
    position: relative;
    border-top: 1px solid rgba(255, 255, 255, 0.02);
}

.terminal-wrapper {
    max-width: 800px;
    margin: 0 auto;
    border-radius: 12px;
}

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

.terminal-title {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 6px;
}

.term-title-icon {
    width: 14px;
    height: 14px;
}

.terminal-uptime {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    color: var(--success);
}

.terminal-body {
    background: rgba(3, 7, 18, 0.95);
    padding: 24px;
    height: 380px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
    font-family: var(--font-mono);
    font-size: 0.88rem;
}

.terminal-body::-webkit-scrollbar {
    width: 6px;
}

.terminal-body::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 4px;
}

.term-row {
    color: var(--text-main);
    line-height: 1.5;
    word-break: break-all;
}

.text-mute { color: var(--text-dark); }
.term-highlight { color: var(--cyan); }

.term-quick-links {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin: 8px 0;
}

.term-link-btn {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-color);
    padding: 6px 14px;
    border-radius: 6px;
    color: var(--text-muted);
    font-family: var(--font-mono);
    font-size: 0.78rem;
    cursor: pointer;
    transition: all 0.25s ease;
}

.term-link-btn:hover {
    background: rgba(6, 182, 212, 0.08);
    border-color: var(--cyan);
    color: var(--cyan);
}

.terminal-output {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.terminal-input-line {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: auto;
    padding-top: 10px;
}

.term-prompt {
    color: var(--magenta);
    font-weight: 700;
    white-space: nowrap;
}

#terminal-input {
    background: none;
    border: none;
    color: #fff;
    font-family: var(--font-mono);
    font-size: 0.88rem;
    width: 100%;
    outline: none;
}

/* Contact Section & Form */
.contact-sec {
    padding: 120px 0;
    position: relative;
    border-top: 1px solid rgba(255, 255, 255, 0.02);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}

.contact-title {
    font-size: 2.8rem;
    line-height: 1.15;
    margin-bottom: 24px;
}

.contact-desc {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 40px;
    line-height: 1.6;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.contact-detail-item {
    display: flex;
    gap: 20px;
    align-items: center;
}

.detail-icon {
    width: 52px;
    height: 52px;
    background: rgba(37, 99, 235, 0.08);
    border: 1px solid rgba(37, 99, 235, 0.2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    flex-shrink: 0;
}

.detail-content {
    display: flex;
    flex-direction: column;
}

.detail-lbl {
    font-size: 0.78rem;
    color: var(--text-dark);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.detail-val {
    font-size: 1.05rem;
    color: #fff;
    text-decoration: none;
    font-weight: 500;
}

a.detail-val:hover {
    color: var(--cyan);
}

.contact-form-panel {
    padding: 40px;
}

.tech-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.form-title {
    font-size: 1.5rem;
    margin-bottom: 8px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

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

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-wrapper.align-start {
    align-items: flex-start;
}

.input-icon {
    position: absolute;
    left: 16px;
    color: var(--text-dark);
    width: 18px;
    height: 18px;
    pointer-events: none;
    transition: color 0.3s ease;
}

.textarea-icon {
    top: 16px;
}

.form-input {
    width: 100%;
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 12px 16px 12px 48px;
    color: #fff;
    font-family: var(--font-body);
    font-size: 0.92rem;
    transition: all 0.3s ease;
}

.form-textarea {
    min-height: 110px;
    resize: vertical;
}

.form-input:focus {
    outline: none;
    border-color: var(--cyan);
    background: rgba(0, 0, 0, 0.4);
    box-shadow: 0 0 15px rgba(6, 182, 212, 0.15);
}

.form-input:focus + .input-icon {
    color: var(--cyan);
}

.btn-submit {
    margin-top: 8px;
    width: 100%;
    padding: 14px 28px;
    font-size: 1rem;
    background: linear-gradient(135deg, var(--primary) 0%, var(--cyan) 100%);
    border: none;
    color: #fff;
}

.form-feedback {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    text-align: center;
}

.form-feedback.success { color: var(--success); }
.form-feedback.error { color: #f87171; }

/* Footer */
.footer {
    background: #01030a;
    border-top: 1px solid var(--border-color);
    padding: 60px 0 40px 0;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 40px;
}

.footer-left {
    max-width: 320px;
}

.footer-slogan {
    margin-top: 12px;
    color: var(--text-muted);
    font-size: 0.88rem;
}

.footer-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 20px;
}

.footer-links {
    display: flex;
    gap: 24px;
}

.footer-links a {
    text-decoration: none;
    color: var(--text-muted);
    font-family: var(--font-heading);
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #fff;
}

.copyright {
    font-size: 0.8rem;
    color: var(--text-dark);
}

/* ==========================================================================
   RESPONSIVE DESIGN (MEDIA QUERIES)
   ========================================================================== */

@media (max-width: 1024px) {
    .hero-title {
        font-size: 2.8rem;
    }
    
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .hero-visual {
        max-width: 600px;
        margin: 0 auto;
        width: 100%;
    }
    
    .composer-grid {
        grid-template-columns: 1fr;
    }
    
    .services-grid {
        grid-template-columns: 1fr 1fr;
        gap: 24px;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }
}

@media (max-width: 768px) {
    html {
        font-size: 15px;
    }
    
    .navbar {
        height: 64px;
    }
    
    .nav-menu {
        display: none; /* Mobile menu implementation if needed, but we keep links responsive */
    }
    
    .mobile-toggle {
        display: block;
    }
    
    /* Toggle active menu styles */
    .nav-menu.open {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 64px;
        left: 0;
        width: 100%;
        background: rgba(3, 7, 18, 0.95);
        backdrop-filter: blur(12px);
        padding: 24px;
        border-bottom: 1px solid var(--border-color);
        gap: 20px;
        align-items: stretch;
        text-align: center;
    }
    
    .hero-title {
        font-size: 2.3rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .circuit-diagram {
        grid-template-columns: repeat(3, 1fr);
        grid-template-rows: repeat(4, 90px);
        height: 380px;
    }
    
    /* Reposition nodes on mobile */
    #node-traffic { grid-column: 1; grid-row: 1; }
    #node-lb { grid-column: 2; grid-row: 1; }
    #node-gateway { grid-column: 3; grid-row: 1; }
    
    #node-service { grid-column: 2; grid-row: 2; }
    #node-cache { grid-column: 3; grid-row: 2; }
    
    #node-db { grid-column: 2; grid-row: 3; }
    #node-queue { grid-column: 1; grid-row: 2; }
    
    .metrics-bar {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .dashboard-stats {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .footer-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .footer-right {
        align-items: center;
    }
}

/* ==========================================================================
   COOKIE TECH NOTICE
   ========================================================================== */
.cookie-banner {
    position: fixed;
    bottom: 24px;
    left: 24px;
    right: auto;
    max-width: 380px;
    padding: 24px;
    z-index: 9999;
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.5s ease;
    border-color: var(--cyan-glow);
    box-shadow: 0 0 20px rgba(6, 182, 212, 0.1);
}

.cookie-banner.hidden {
    transform: translateY(150%) scale(0.9);
    opacity: 0;
    pointer-events: none;
}

.cookie-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.cookie-emoji {
    font-size: 1.8rem;
    filter: drop-shadow(0 0 8px rgba(245, 158, 11, 0.6));
    animation: pulse-cookie 2.5s infinite ease-in-out;
}

@keyframes pulse-cookie {
    0%, 100% { transform: scale(1); filter: drop-shadow(0 0 6px rgba(245, 158, 11, 0.5)); }
    50% { transform: scale(1.1); filter: drop-shadow(0 0 14px rgba(245, 158, 11, 0.8)); }
}

.cookie-title {
    font-family: var(--font-mono);
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--cyan);
    letter-spacing: 0.5px;
}

.cookie-desc {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.5;
    margin-bottom: 20px;
}

.cookie-actions {
    display: flex;
    gap: 12px;
}

.btn-cookie-accept {
    flex: 1.2;
    background: linear-gradient(135deg, var(--primary) 0%, var(--cyan) 100%);
    border: none;
    color: #fff;
    padding: 8px 16px;
    border-radius: 6px;
    font-family: var(--font-mono);
    font-size: 0.78rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(6, 182, 212, 0.2);
}

.btn-cookie-accept:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 14px rgba(6, 182, 212, 0.35);
}

.btn-cookie-decline {
    flex: 0.8;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    padding: 8px 16px;
    border-radius: 6px;
    font-family: var(--font-mono);
    font-size: 0.78rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-cookie-decline:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
}

@media (max-width: 480px) {
    .cookie-banner {
        bottom: 16px;
        left: 16px;
        right: 16px;
        max-width: calc(100% - 32px);
    }
}

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

.chat-toggle-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary) 0%, var(--cyan) 100%);
    border: none;
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(6, 182, 212, 0.4);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
}

.chat-toggle-btn:hover {
    transform: scale(1.1);
}

.chat-toggle-icon {
    display: flex;
    width: 26px;
    height: 26px;
}

.chat-toggle-icon svg {
    width: 100%;
    height: 100%;
}

.chat-toggle-badge {
    position: absolute;
    top: -2px;
    right: -2px;
    background-color: var(--magenta);
    color: #fff;
    font-family: var(--font-mono);
    font-size: 0.65rem;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 10px;
    border: 2px solid var(--bg-dark);
}

.chat-window {
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 380px;
    height: 520px;
    display: flex;
    flex-direction: column;
    z-index: 10000;
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.5s ease;
    transform-origin: bottom right;
}

.chat-window.hidden {
    transform: translateY(30px) scale(0.85);
    opacity: 0;
    pointer-events: none;
}

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

.bot-avatar-icon {
    width: 18px;
    height: 18px;
}

.agent-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(6, 182, 212, 0.1);
    border: 1px solid var(--cyan);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--cyan);
    position: relative;
    box-shadow: 0 0 10px rgba(6, 182, 212, 0.2);
}

.avatar-status {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 8px;
    height: 8px;
    background-color: var(--success);
    border-radius: 50%;
    border: 2px solid var(--bg-dark);
}

.agent-info {
    flex-grow: 1;
    margin-left: 12px;
    display: flex;
    flex-direction: column;
}

.agent-name {
    font-family: var(--font-heading);
    font-size: 0.92rem;
    font-weight: 600;
    color: #fff;
}

.agent-status {
    font-size: 0.7rem;
    color: var(--success);
}

.chat-close-btn {
    background: none;
    border: none;
    color: var(--text-dark);
    cursor: pointer;
    transition: color 0.3s ease;
    display: flex;
}

.chat-close-btn:hover {
    color: #fff;
}

.chat-window-body {
    flex-grow: 1;
    padding: 20px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
    background: rgba(3, 7, 18, 0.95);
    scrollbar-width: none;
}

.chat-window-body::-webkit-scrollbar {
    width: 0;
}

.chat-msg {
    display: flex;
    flex-direction: column;
    max-width: 80%;
    animation: message-in 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes message-in {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

.chat-msg.bot {
    align-self: flex-start;
}

.chat-msg.user {
    align-self: flex-end;
}

.chat-msg-time {
    font-family: var(--font-mono);
    font-size: 0.6rem;
    color: var(--text-dark);
    margin-bottom: 4px;
}

.chat-msg.user .chat-msg-time {
    text-align: right;
}

.chat-msg-bubble {
    padding: 12px 16px;
    font-size: 0.85rem;
    line-height: 1.45;
}

.chat-msg.bot .chat-msg-bubble {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    color: #fff;
    border-radius: 16px;
    border-top-left-radius: 4px;
}

.chat-msg.user .chat-msg-bubble {
    background: rgba(6, 182, 212, 0.1);
    border: 1px solid var(--cyan);
    color: #fff;
    border-radius: 16px;
    border-top-right-radius: 4px;
    box-shadow: 0 0 10px rgba(6, 182, 212, 0.05);
}

.quick-replies {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 8px;
    width: 100%;
}

.quick-reply-btn {
    background: rgba(6, 182, 212, 0.05);
    border: 1px solid rgba(6, 182, 212, 0.25);
    color: var(--cyan);
    padding: 10px 14px;
    border-radius: 8px;
    font-family: var(--font-body);
    font-size: 0.82rem;
    text-align: left;
    cursor: pointer;
    transition: all 0.25s ease;
    font-weight: 500;
}

.quick-reply-btn:hover {
    background: var(--cyan);
    color: #fff;
    box-shadow: 0 0 12px rgba(6, 182, 212, 0.3);
}

.chat-widget-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--cyan) 100%);
    color: #fff;
    border: none;
    padding: 12px 18px;
    border-radius: 8px;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.85rem;
    text-decoration: none;
    margin-top: 8px;
    transition: transform 0.3s ease;
    box-shadow: 0 4px 15px rgba(6, 182, 212, 0.3);
}

.chat-widget-link:hover {
    transform: translateY(-1px);
}

/* Typing indicator */
.chat-typing-indicator {
    align-self: flex-start;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    padding: 12px 20px;
    border-radius: 16px;
    border-top-left-radius: 4px;
    display: flex;
    gap: 4px;
}

.chat-typing-dot {
    width: 6px;
    height: 6px;
    background-color: var(--cyan);
    border-radius: 50%;
    animation: chat-bounce 1.4s infinite ease-in-out;
}

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

@keyframes chat-bounce {
    0%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-6px); }
}

.chat-window-footer {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    background: rgba(0, 0, 0, 0.3);
    border-top: 1px solid var(--border-color);
    gap: 12px;
}

.chat-window-footer.hidden {
    display: none;
}

#chat-user-input {
    flex-grow: 1;
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 10px 14px;
    color: #fff;
    font-family: var(--font-body);
    font-size: 0.88rem;
    outline: none;
    transition: border-color 0.3s ease;
}

#chat-user-input:focus {
    border-color: var(--cyan);
}

.chat-send-btn {
    background: none;
    border: none;
    color: var(--cyan);
    cursor: pointer;
    display: flex;
    padding: 8px;
    transition: transform 0.2s ease;
}

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

@media (max-width: 480px) {
    .chat-window {
        position: fixed;
        bottom: 16px;
        right: 16px;
        left: 16px;
        width: calc(100% - 32px);
        height: calc(100% - 32px);
        max-height: 520px;
    }
}

/* ==========================================================================
   PHONE MOCKUP SIMULATOR
   ========================================================================== */
.phone-container {
    width: 100%;
    max-width: 330px;
    margin: 0 auto;
    perspective: 1000px;
}

.phone-frame {
    width: 100%;
    height: 560px;
    background: #000;
    border: 10px solid #1e293b;
    border-radius: 36px;
    position: relative;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7), 0 0 30px rgba(6, 182, 212, 0.15);
    overflow: hidden;
    transition: transform 0.5s ease, box-shadow 0.5s ease;
}

.phone-frame:hover {
    transform: rotateY(-5deg) rotateX(5deg);
    box-shadow: -10px 25px 50px -12px rgba(0, 0, 0, 0.8), 10px 0 30px rgba(217, 70, 239, 0.15);
}

.phone-notch {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 20px;
    background-color: #1e293b;
    border-bottom-left-radius: 12px;
    border-bottom-right-radius: 12px;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.phone-camera {
    width: 6px;
    height: 6px;
    background-color: #0b1120;
    border-radius: 50%;
}

.phone-speaker {
    width: 40px;
    height: 3px;
    background-color: #334155;
    border-radius: 10px;
}

.phone-screen {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    background: radial-gradient(circle at 50% 50%, #0f172a 0%, #020617 100%);
    padding-top: 15px; /* Offset status bar from top */
}

.phone-status-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 18px;
    color: var(--text-muted);
    font-size: 0.68rem;
    font-family: var(--font-mono);
}

.status-icons {
    display: flex;
    gap: 6px;
    align-items: center;
}

.status-icon-svg {
    width: 10px;
    height: 10px;
}

.phone-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 16px;
    border-bottom: 1px solid var(--border-color);
    background: rgba(0, 0, 0, 0.25);
}

.phone-profile {
    display: flex;
    align-items: center;
    gap: 8px;
}

.phone-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: rgba(6, 182, 212, 0.1);
    border: 1px solid var(--cyan);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--cyan);
}

.phone-avatar-icon {
    width: 14px;
    height: 14px;
}

.phone-user-info {
    display: flex;
    flex-direction: column;
}

.phone-user-name {
    font-family: var(--font-heading);
    font-size: 0.78rem;
    font-weight: 600;
    color: #fff;
}

.phone-user-status {
    font-size: 0.6rem;
    color: var(--success);
}

.phone-header-actions {
    display: flex;
    gap: 12px;
    color: var(--text-muted);
}

.phone-header-icon-svg {
    width: 14px;
    height: 14px;
}

.phone-chat-body {
    flex-grow: 1;
    overflow-y: auto;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    scrollbar-width: none;
}

.phone-chat-body::-webkit-scrollbar {
    display: none;
}

.phone-msg {
    display: flex;
    flex-direction: column;
    max-width: 82%;
    animation: message-in 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.phone-msg.bot {
    align-self: flex-start;
}

.phone-msg.client {
    align-self: flex-end;
}

.phone-msg-time {
    font-family: var(--font-mono);
    font-size: 0.58rem;
    color: var(--text-dark);
    margin-bottom: 2px;
}

.phone-msg.client .phone-msg-time {
    text-align: right;
}

.phone-msg-bubble {
    padding: 8px 12px;
    font-size: 0.75rem;
    line-height: 1.4;
    border-radius: 12px;
}

.phone-msg.bot .phone-msg-bubble {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    color: #f1f5f9;
    border-top-left-radius: 2px;
}

.phone-msg.client .phone-msg-bubble {
    background: rgba(6, 182, 212, 0.1);
    border: 1px solid var(--cyan);
    color: #fff;
    border-top-right-radius: 2px;
}

.phone-typing-indicator {
    align-self: flex-start;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    padding: 8px 14px;
    border-radius: 12px;
    border-top-left-radius: 2px;
    display: flex;
    gap: 3px;
    margin-bottom: 4px;
}

.phone-typing-dot {
    width: 4px;
    height: 4px;
    background-color: var(--cyan);
    border-radius: 50%;
    animation: phone-bounce 1.4s infinite ease-in-out;
}

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

@keyframes phone-bounce {
    0%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-4px); }
}

.phone-input-bar {
    display: flex;
    align-items: center;
    padding: 10px 14px;
    background: rgba(0, 0, 0, 0.25);
    border-top: 1px solid var(--border-color);
    gap: 10px;
    color: var(--text-muted);
}

.phone-input-icon-svg {
    width: 14px;
    height: 14px;
}

.mock-input-field {
    flex-grow: 1;
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid var(--border-color);
    border-radius: 15px;
    padding: 6px 12px;
    font-size: 0.7rem;
    color: var(--text-dark);
}

.phone-home-indicator {
    width: 80px;
    height: 4px;
    background-color: #334155;
    border-radius: 10px;
    align-self: center;
    margin: 8px 0;
}

.phone-btn-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--cyan) 100%);
    color: #fff;
    border: none;
    padding: 10px 14px;
    border-radius: 6px;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.72rem;
    text-decoration: none;
    margin-top: 4px;
    box-shadow: 0 4px 10px rgba(6, 182, 212, 0.25);
    transition: transform 0.2s ease;
}

.phone-btn-link:hover {
    transform: scale(1.02);
}

/* ==========================================================================
   BENTO GRID INTEGRATIONS & CHANNELS
   ========================================================================== */
.integrations-sec {
    padding: 100px 0;
    position: relative;
    border-bottom: 1px solid var(--border-color);
}

.sec-badge {
    display: inline-block;
    padding: 4px 10px;
    background: rgba(6, 182, 212, 0.05);
    border: 1px solid rgba(6, 182, 212, 0.2);
    color: var(--cyan);
    font-family: var(--font-mono);
    font-size: 0.7rem;
    border-radius: 4px;
    margin-bottom: 12px;
    letter-spacing: 0.05em;
}

.bento-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 50px;
}

.bento-card {
    display: flex;
    flex-direction: column;
    padding: 24px;
    border-radius: 16px;
    background: rgba(3, 7, 18, 0.4);
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.bento-card:hover {
    transform: translateY(-4px);
    border-color: rgba(6, 182, 212, 0.3);
}

.bento-card.col-span-2 {
    grid-column: span 2;
}

.bento-card.col-span-1 {
    grid-column: span 1;
}

.bento-visual {
    height: 160px;
    background: rgba(255, 255, 255, 0.01);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    margin-bottom: 20px;
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.bento-svg {
    width: 100%;
    height: 100%;
}

/* Particle along offset-path */
.animated-particle {
    animation: particles-flow 4s infinite linear;
    offset-rotate: 0deg;
}

@keyframes particles-flow {
    0% { offset-distance: 0%; }
    100% { offset-distance: 100%; }
}

.glow-box {
    filter: drop-shadow(0 0 8px rgba(6, 182, 212, 0.4));
    animation: pulse-glow 3s infinite ease-in-out;
}

@keyframes pulse-glow {
    0%, 100% { opacity: 0.8; stroke-width: 1.5px; }
    50% { opacity: 1; stroke-width: 2.5px; }
}

/* Integrations list style */
.flex-col-center {
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 12px;
}

.integrations-list {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.integration-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 0.75rem;
}

.integration-icon {
    width: 22px;
    height: 22px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 0.7rem;
    color: #fff;
}

.integration-icon.hubspot {
    background: #ff7a59;
}

.integration-icon.salesforce {
    background: #009fdb;
}

.integration-icon.pipedrive {
    background: #00b65d;
}

.integration-name {
    flex-grow: 1;
    font-weight: 500;
    color: #f1f5f9;
}

.integration-status {
    font-family: var(--font-mono);
    font-size: 0.58rem;
}

.integration-status.connected {
    color: var(--success);
}

.integration-status.sync {
    color: var(--cyan);
}

/* Calendar styling */
.calendar-grid-visual {
    padding: 16px;
}

.mock-calendar {
    width: 100%;
    max-width: 180px;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 10px;
    font-family: var(--font-mono);
}

.calendar-header-mock {
    font-size: 0.65rem;
    text-align: center;
    margin-bottom: 8px;
    color: var(--cyan);
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 4px;
}

.calendar-days {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 6px;
    font-size: 0.58rem;
    text-align: center;
    color: var(--text-dark);
}

.calendar-days span:nth-child(-n+5) {
    color: var(--text-muted);
    font-weight: bold;
}

.calendar-days .active-slot {
    background: var(--cyan);
    color: #000;
    font-weight: bold;
    border-radius: 2px;
}

.calendar-time-badge {
    margin-top: 10px;
    font-size: 0.6rem;
    background: rgba(6, 182, 212, 0.1);
    border: 1px solid var(--cyan);
    border-radius: 4px;
    padding: 4px 6px;
    text-align: center;
    color: var(--cyan);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

.calendar-slot-indicator {
    width: 4px;
    height: 4px;
    background-color: var(--cyan);
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 6px var(--cyan);
}

/* Pipeline Reactivator visual */
.pipeline-flow-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    width: 100%;
    padding: 10px;
}

.pipeline-node {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 12px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    width: 110px;
    background: rgba(0, 0, 0, 0.3);
}

.pipeline-node.dead {
    border-color: #3b82f6;
    box-shadow: inset 0 0 8px rgba(59, 130, 246, 0.1);
}

.pipeline-node.warm {
    border-color: var(--magenta);
    box-shadow: inset 0 0 8px rgba(217, 70, 239, 0.1);
}

.node-emoji {
    font-size: 1.5rem;
    margin-bottom: 4px;
}

.node-name {
    font-size: 0.68rem;
    font-family: var(--font-heading);
    color: #f1f5f9;
}

.pipeline-arrow {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    color: var(--cyan);
    border: 1px dashed var(--cyan);
    padding: 4px 10px;
    border-radius: 20px;
    background: rgba(6, 182, 212, 0.05);
    text-align: center;
}

.bento-info {
    text-align: left;
}

.bento-title {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 8px;
}

.bento-desc {
    font-size: 0.8rem;
    line-height: 1.45;
    color: var(--text-muted);
}

/* Responsive bento grid */
@media (max-width: 991px) {
    .bento-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 767px) {
    .bento-grid {
        grid-template-columns: 1fr;
    }
    .bento-card.col-span-2,
    .bento-card.col-span-1 {
        grid-column: span 1;
    }
    .integrations-sec {
        padding: 60px 0;
    }
}

/* Language switch in footer */
.lang-switch-container {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-left: 12px;
    padding: 2px 8px;
    border: 1px solid var(--border-color);
    background: rgba(255, 255, 255, 0.02);
    border-radius: 4px;
}

.btn-lang {
    background: none;
    border: none;
    color: var(--text-dark);
    font-family: var(--font-mono);
    font-size: 0.68rem;
    font-weight: 600;
    cursor: pointer;
    padding: 0;
    transition: color 0.2s ease;
}

.btn-lang:hover {
    color: #fff;
}

.btn-lang.active {
    color: var(--cyan);
    text-shadow: 0 0 6px var(--cyan);
}

.lang-divider {
    color: var(--border-color);
    font-size: 0.65rem;
}
