:root {
    --bg-dark: #050608;
    --bg-card: rgba(255, 255, 255, 0.03);
    --border-glass: rgba(255, 255, 255, 0.1);
    --primary: #00b4d8;
    --primary-glow: rgba(0, 180, 216, 0.4);
    --accent: #8b5cf6;
    --accent-glow: rgba(139, 92, 246, 0.4);
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --companion: #f472b6;
    --companion-glow: rgba(244, 114, 182, 0.4);
    --text-main: #e8eaed;
    --text-muted: #9aa0a6;
    --font-outfit: 'Outfit', sans-serif;
}

* { box-sizing: border-box; }

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: 'Inter', sans-serif;
    overflow-x: hidden;
    margin: 0;
}

h1, h2, h3, h4, h5, .navbar-brand {
    font-family: var(--font-outfit);
}

/* 3D Canvas Background */
#canvas-container {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: -1;
    pointer-events: none;
}

/* Glass Navigation */
.glass-nav {
    background: rgba(5, 6, 8, 0.7);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid var(--border-glass);
    padding: 1rem 0;
    transition: all 0.3s ease;
    z-index: 1000;
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
    color: white !important;
    letter-spacing: -1px;
}

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

.nav-link {
    color: var(--text-muted) !important;
    font-weight: 500;
    margin: 0 0.75rem;
    transition: color 0.3s ease;
    font-size: 0.95rem;
}

.nav-link:hover { color: white !important; }

/* Language Toggle */
.lang-toggle {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-glass);
    border-radius: 50px;
    padding: 0.25rem;
}

.lang-btn {
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    border: none;
    background: transparent;
    color: var(--text-muted);
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.lang-btn.active {
    background: var(--primary);
    color: white;
}

/* Hero Section */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: 100px;
    padding-bottom: 60px;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.15;
    margin-bottom: 1.5rem;
    color: #ffffff;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.text-gradient {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: none;
}

.text-gradient-companion {
    background: linear-gradient(135deg, var(--companion), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: none;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: #d1d5db;
    margin-bottom: 2.5rem;
    line-height: 1.7;
}

.btn-main {
    background: var(--primary);
    color: white;
    padding: 0.8rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    box-shadow: 0 0 20px var(--primary-glow);
    border: none;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.btn-main:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 30px var(--primary-glow);
    color: white;
}

.btn-outline-glow {
    background: transparent;
    border: 1px solid var(--primary);
    color: var(--primary);
    padding: 0.8rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.btn-outline-glow:hover {
    background: var(--primary);
    color: white;
    box-shadow: 0 0 20px var(--primary-glow);
}

/* Hero Architecture Visual */
.hero-arch-visual {
    position: relative;
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
}

.arch-layer {
    padding: 0.6rem 1.2rem;
    border-radius: 12px;
    margin-bottom: 0.5rem;
    font-size: 0.8rem;
    font-weight: 600;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    cursor: default;
}

.arch-layer:hover {
    transform: translateX(5px);
    border-color: var(--primary);
}

.arch-layer .layer-tag {
    font-size: 0.65rem;
    opacity: 0.6;
    margin-right: 0.5rem;
}

/* Glass Card */
.glass-card {
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-glass);
    border-radius: 20px;
    transition: all 0.3s ease;
    height: 100%;
}

.glass-card h5, .glass-card h4 {
    color: #ffffff;
}

.glass-card p {
    color: #b0b8c1 !important;
}

.glass-card:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: var(--primary);
    transform: translateY(-5px);
}

.icon-box {
    width: 60px; height: 60px;
    background: rgba(0, 180, 216, 0.1);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 1.5rem;
}

.icon-box-accent {
    background: rgba(139, 92, 246, 0.1);
    color: var(--accent);
}

.icon-box-companion {
    background: rgba(244, 114, 182, 0.1);
    color: var(--companion);
}

.icon-box-success {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success);
}

.icon-box-warning {
    background: rgba(245, 158, 11, 0.1);
    color: var(--warning);
}

/* Section Styles */
.section-tag {
    display: inline-block;
    padding: 0.3rem 1rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.section-tag-primary {
    background: rgba(0, 180, 216, 0.1);
    color: var(--primary);
    border: 1px solid rgba(0, 180, 216, 0.3);
}

.section-tag-companion {
    background: rgba(244, 114, 182, 0.1);
    color: var(--companion);
    border: 1px solid rgba(244, 114, 182, 0.3);
}

.section-tag-accent {
    background: rgba(139, 92, 246, 0.1);
    color: var(--accent);
    border: 1px solid rgba(139, 92, 246, 0.3);
}

.section-tag-success {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success);
    border: 1px solid rgba(16, 185, 129, 0.3);
}

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

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

/* Architecture Diagram */
.arch-diagram {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    max-width: 900px;
    margin: 0 auto;
}

.arch-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    border-radius: 16px;
    border: 1px solid var(--border-glass);
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    transition: all 0.4s ease;
    cursor: pointer;
}

.arch-row:hover {
    border-color: var(--primary);
    background: rgba(0, 180, 216, 0.05);
    transform: translateX(5px);
}

.arch-row.highlight-companion {
    border-color: var(--companion);
    background: rgba(244, 114, 182, 0.05);
    box-shadow: 0 0 20px rgba(244, 114, 182, 0.1);
}

.arch-row.highlight-companion:hover {
    background: rgba(244, 114, 182, 0.1);
    box-shadow: 0 0 30px rgba(244, 114, 182, 0.2);
}

.arch-label {
    min-width: 50px;
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--primary);
}

.arch-name {
    font-weight: 600;
    min-width: 180px;
}

.arch-items {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.arch-item {
    padding: 0.2rem 0.6rem;
    border-radius: 6px;
    font-size: 0.75rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--text-muted);
}

/* Seruphine Avatar */
.seruphine-avatar {
    border-radius: 50%;
    box-shadow: 0 0 30px rgba(212, 175, 55, 0.4), 0 0 60px rgba(212, 175, 55, 0.15);
    border: 2px solid rgba(255, 215, 0, 0.3);
    transition: all 0.4s ease;
}

.seruphine-avatar:hover {
    transform: scale(1.05);
    box-shadow: 0 0 40px rgba(212, 175, 55, 0.6), 0 0 80px rgba(212, 175, 55, 0.25);
}

.seruphine-icon-avatar {
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    overflow: hidden;
}

.seruphine-icon-avatar img {
    box-shadow: 0 0 12px rgba(212, 175, 55, 0.3);
}

/* Seruphine Voice Section */
.seruphine-highlight {
    border-color: rgba(244, 114, 182, 0.3) !important;
    background: rgba(244, 114, 182, 0.03) !important;
}

.seruphine-highlight:hover {
    border-color: var(--companion) !important;
    background: rgba(244, 114, 182, 0.08) !important;
    box-shadow: 0 0 20px rgba(244, 114, 182, 0.15);
}

.seruphine-flow {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    justify-content: center;
}

.flow-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    padding: 0.6rem 0.8rem;
    border-radius: 10px;
    font-size: 0.75rem;
    font-weight: 600;
    min-width: 85px;
    text-align: center;
    transition: all 0.3s ease;
}

.flow-item i {
    font-size: 1.1rem;
}

.flow-browser {
    background: rgba(0, 180, 216, 0.08);
    border: 1px solid rgba(0, 180, 216, 0.2);
    color: var(--primary);
}

.flow-server {
    background: rgba(244, 114, 182, 0.08);
    border: 1px solid rgba(244, 114, 182, 0.2);
    color: var(--companion);
}

.flow-arrow {
    color: var(--text-muted);
    font-size: 0.9rem;
    opacity: 0.5;
}

.seruphine-components {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.seru-comp-card {
    text-align: center;
    padding: 1.25rem 0.75rem;
    border-radius: 12px;
    border: 1px solid var(--border-glass);
    background: rgba(255, 255, 255, 0.02);
    transition: all 0.3s ease;
}

.seru-comp-card:hover {
    border-color: var(--companion);
    background: rgba(244, 114, 182, 0.05);
    transform: translateY(-3px);
}

.seru-comp-card h6 {
    color: #ffffff;
    font-size: 0.85rem;
    margin-bottom: 0.4rem;
}

.seru-comp-card p {
    color: #b0b8c1 !important;
}

.seru-comp-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 0.75rem;
    font-size: 1.1rem;
}

/* Companion Feature Cards */
.companion-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.companion-card {
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-glass);
    border-radius: 20px;
    padding: 2rem;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.companion-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 3px;
    background: linear-gradient(90deg, var(--companion), var(--accent));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.companion-card:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--companion);
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

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

.companion-card .card-icon {
    width: 50px; height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    margin-bottom: 1.25rem;
}

.companion-card h4 {
    font-size: 1.15rem;
    margin-bottom: 0.75rem;
}

.companion-card p {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
    line-height: 1.6;
}

.feature-tag {
    display: inline-block;
    padding: 0.15rem 0.5rem;
    border-radius: 4px;
    font-size: 0.7rem;
    margin-right: 0.3rem;
    margin-bottom: 0.3rem;
    background: rgba(0, 180, 216, 0.1);
    color: var(--primary);
    border: 1px solid rgba(0, 180, 216, 0.2);
}

/* Companion Card Detail List */
.companion-card .detail-list {
    list-style: none;
    padding: 0;
    margin: 0.75rem 0 1rem;
}

.companion-card .detail-list li {
    padding: 0.35rem 0;
    padding-left: 1.25rem;
    position: relative;
    font-size: 0.82rem;
    color: var(--text-muted);
    line-height: 1.5;
}

.companion-card .detail-list li::before {
    content: '\f26a';
    font-family: 'bootstrap-icons';
    position: absolute;
    left: 0;
    font-size: 0.65rem;
    top: 0.45rem;
}

.companion-card .detail-list.list-pink li::before { color: var(--companion); }
.companion-card .detail-list.list-purple li::before { color: var(--accent); }
.companion-card .detail-list.list-cyan li::before { color: var(--primary); }
.companion-card .detail-list.list-amber li::before { color: var(--warning); }
.companion-card .detail-list.list-green li::before { color: var(--success); }

/* Companion Dashboard Preview */
.companion-dashboard {
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: 20px;
    padding: 2rem;
    backdrop-filter: blur(10px);
}

.dashboard-stat {
    text-align: center;
    padding: 1.25rem 0.5rem;
    border-radius: 12px;
    border: 1px solid var(--border-glass);
    background: rgba(255, 255, 255, 0.02);
    transition: all 0.3s ease;
}

.dashboard-stat:hover {
    border-color: var(--companion);
    background: rgba(244, 114, 182, 0.05);
}

.dashboard-stat .ds-number {
    font-size: 1.75rem;
    font-weight: 700;
    font-family: var(--font-outfit);
}

.dashboard-stat .ds-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
}

/* API Endpoint Badge */
.api-endpoint {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 0.75rem;
    border-radius: 8px;
    font-size: 0.75rem;
    font-family: 'Courier New', monospace;
    margin-bottom: 0.5rem;
    margin-right: 0.5rem;
    border: 1px solid var(--border-glass);
    background: rgba(255, 255, 255, 0.02);
    color: var(--text-muted);
    transition: all 0.3s ease;
}

.api-endpoint:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.api-method {
    padding: 0.1rem 0.35rem;
    border-radius: 4px;
    font-size: 0.65rem;
    font-weight: 700;
}

.method-get { background: rgba(16, 185, 129, 0.15); color: var(--success); }
.method-post { background: rgba(0, 180, 216, 0.15); color: var(--primary); }
.method-put { background: rgba(245, 158, 11, 0.15); color: var(--warning); }
.method-delete { background: rgba(239, 68, 68, 0.15); color: var(--danger); }

.feature-tag-pink {
    background: rgba(244, 114, 182, 0.1);
    color: var(--companion);
    border-color: rgba(244, 114, 182, 0.2);
}

.feature-tag-purple {
    background: rgba(139, 92, 246, 0.1);
    color: var(--accent);
    border-color: rgba(139, 92, 246, 0.2);
}

/* Dialogue Engine Section */
.dialogue-modes {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.dialogue-mode-card {
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: 16px;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
}

.dialogue-mode-card:hover {
    border-color: var(--companion);
    transform: translateY(-5px);
    background: rgba(244, 114, 182, 0.05);
}

.dialogue-mode-card h5 {
    color: #ffffff;
    margin-bottom: 0.75rem;
}

.dialogue-mode-card p {
    color: #b0b8c1 !important;
    font-size: 0.88rem;
    line-height: 1.6;
}

.dialogue-mode-card .mode-icon {
    width: 60px; height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin: 0 auto 1rem;
}

/* Pipeline Section */
.pipeline-wrapper {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
}

.pipeline-steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.pipeline-step {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.25rem;
    border-radius: 16px;
    border: 1px solid var(--border-glass);
    background: var(--bg-card);
    transition: all 0.3s ease;
}

.pipeline-step:hover {
    border-color: var(--primary);
    background: rgba(0, 180, 216, 0.05);
    transform: translateY(-3px);
}

.step-num {
    width: 36px; height: 36px;
    min-width: 36px;
    border-radius: 50%;
    background: rgba(0, 180, 216, 0.15);
    border: 2px solid var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--primary);
}

.step-content h5 {
    font-size: 0.95rem;
    margin-bottom: 0.25rem;
    color: #ffffff;
}

.step-content p {
    font-size: 0.8rem;
    color: #b0b8c1;
    margin: 0;
}

/* Memory Layer */
.memory-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.memory-card {
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
}

.memory-card:hover {
    border-color: var(--accent);
    transform: translateY(-5px);
    background: rgba(139, 92, 246, 0.05);
}

.memory-card .mem-icon {
    width: 70px; height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.25rem;
    font-size: 1.75rem;
}

.memory-card h4 { margin-bottom: 0.5rem; color: #ffffff; }
.memory-card p { color: #b0b8c1 !important; }
.memory-card .mem-tech {
    font-size: 0.8rem;
    color: var(--accent);
    margin-bottom: 1rem;
}

/* Agent Mesh */
.agent-mesh-wrapper {
    position: relative;
    width: 900px;
    height: 550px;
    margin: 60px auto;
    display: flex;
    justify-content: center;
    align-items: center;
}

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

.mesh-line {
    fill: none;
    stroke: var(--primary);
    stroke-width: 2;
    stroke-dasharray: 8, 8;
    opacity: 0.3;
    animation: dashOffset 30s linear infinite;
}

@keyframes dashOffset {
    from { stroke-dashoffset: 500; }
    to { stroke-dashoffset: 0; }
}

.mesh-core {
    width: 130px; height: 130px;
    background: rgba(0, 180, 216, 0.15);
    border: 2px solid var(--primary);
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 3;
    box-shadow: 0 0 40px var(--primary-glow);
    text-align: center;
}

.mesh-core i {
    font-size: 2.2rem;
    color: var(--primary);
    margin-bottom: 4px;
}

.mesh-agent-node {
    position: absolute;
    width: 250px;
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-glass);
    padding: 1.25rem;
    border-radius: 16px;
    z-index: 10;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.mesh-agent-node h5 { color: #ffffff; }
.mesh-agent-node p { color: #b0b8c1 !important; }

.mesh-agent-node:hover {
    border-color: var(--primary);
    transform: translateY(-8px) !important;
    background: rgba(0, 180, 216, 0.08);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
}

.node-icon {
    font-size: 1.75rem;
    color: var(--primary);
}

.node-1 { top: -20px; left: 50%; margin-left: -125px; }
.node-2 { top: 160px; right: -60px; }
.node-3 { bottom: 10px; right: 60px; }
.node-4 { bottom: 10px; left: 60px; }
.node-5 { top: 160px; left: -60px; }

/* Interface Grid */
.interface-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
}

.interface-card {
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: 16px;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
}

.interface-card:hover {
    border-color: var(--primary);
    transform: translateY(-5px);
    background: rgba(0, 180, 216, 0.05);
}

.interface-card h5 { color: #ffffff; }
.interface-card p { color: #b0b8c1 !important; }

.interface-card .iface-icon {
    width: 50px; height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 1.3rem;
}

/* Framework Grid (Orchestration) */
.framework-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1rem;
}

.framework-card {
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-glass);
    padding: 1.25rem;
    border-radius: 16px;
    text-align: center;
    transition: all 0.4s ease;
}

.framework-card h5 { color: #ffffff; font-size: 0.95rem; }
.framework-card p { color: #b0b8c1 !important; }

.framework-card:hover {
    border-color: var(--accent);
    transform: translateY(-5px);
    background: rgba(139, 92, 246, 0.05);
}

.framework-maestro {
    grid-column: 1 / -1;
    background: rgba(0, 180, 216, 0.08);
    border-color: rgba(0, 180, 216, 0.3);
    box-shadow: 0 0 30px var(--primary-glow);
}

.framework-maestro:hover {
    background: rgba(0, 180, 216, 0.12);
    border-color: var(--primary);
}

/* Automation Section Extended */
.auto-features-extended {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
}

/* Automation Section */
.auto-features {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
}

.auto-card {
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: 16px;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
}

.auto-card:hover {
    border-color: var(--success);
    transform: translateY(-5px);
    background: rgba(16, 185, 129, 0.05);
}

.auto-card h5 { color: #ffffff; }
.auto-card p { color: #b0b8c1 !important; }

.auto-card .auto-icon {
    width: 50px; height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 1.3rem;
}

/* Tech Stack */
.tech-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 1rem;
}

.tech-item {
    padding: 1rem;
    border-radius: 12px;
    text-align: center;
    border: 1px solid var(--border-glass);
    background: var(--bg-card);
    transition: all 0.3s ease;
    font-size: 0.85rem;
}

.tech-item:hover {
    border-color: var(--primary);
    transform: translateY(-3px);
}

.tech-item i {
    font-size: 1.5rem;
    display: block;
    margin-bottom: 0.5rem;
}

/* Tech Grid Mini (for categorized tech stacks) */
.tech-grid-mini {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
}

.tech-item-mini {
    padding: 0.6rem 0.5rem;
    border-radius: 8px;
    text-align: center;
    border: 1px solid var(--border-glass);
    background: rgba(255, 255, 255, 0.02);
    transition: all 0.3s ease;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.tech-item-mini:hover {
    border-color: var(--primary);
    background: rgba(0, 180, 216, 0.05);
}

.tech-item-mini i {
    display: block;
    margin-bottom: 0.25rem;
    font-size: 1.2rem;
}

/* Security Badges */
.security-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
}

.security-badge {
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.85rem;
    transition: all 0.3s ease;
}

.security-badge:hover { transform: translateY(-3px); }

.badge-privacy {
    background: rgba(0, 180, 216, 0.1);
    border: 1px solid var(--primary);
    color: var(--primary);
}

.badge-encrypt {
    background: rgba(139, 92, 246, 0.1);
    border: 1px solid var(--accent);
    color: var(--accent);
}

.badge-tls {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid var(--success);
    color: var(--success);
}

.badge-local {
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid var(--warning);
    color: var(--warning);
}

/* Footer */
.footer {
    border-top: 1px solid var(--border-glass);
    background: rgba(5, 6, 8, 0.9);
}

.footer h5, .footer h6 {
    color: #e8eaed;
}

.footer p, .footer .text-muted, .footer .small {
    color: #9aa0a6 !important;
}

.footer a {
    color: #b0b8c1;
    text-decoration: none;
    transition: color 0.3s ease;
}

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

/* Glow Background */
.glow-bg {
    position: absolute;
    width: 400px; height: 400px;
    background: radial-gradient(circle, rgba(0, 180, 216, 0.1) 0%, transparent 70%);
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    z-index: -1;
    pointer-events: none;
}

.glow-bg-companion {
    background: radial-gradient(circle, rgba(244, 114, 182, 0.1) 0%, transparent 70%);
}

/* Animations */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease;
}

.fade-in.active {
    opacity: 1;
    transform: translateY(0);
}

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

.floating { animation: float 6s ease-in-out infinite; }

@keyframes pulse-glow {
    0%, 100% { box-shadow: 0 0 20px var(--primary-glow); }
    50% { box-shadow: 0 0 40px var(--primary-glow), 0 0 60px rgba(0, 180, 216, 0.2); }
}

/* Scroll indicator */
.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
}

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

/* Stats */
.stat-box {
    text-align: center;
    padding: 1.5rem;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    font-family: var(--font-outfit);
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
}

/* Feature List */
.feature-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.feature-list li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.feature-list li::before {
    content: '\f26a';
    font-family: 'bootstrap-icons';
    position: absolute;
    left: 0;
    color: var(--primary);
    font-size: 0.75rem;
}

/* Companion Feature List */
.companion-feature-list li::before {
    color: var(--companion);
}

/* Utility */
.text-primary-custom { color: var(--primary) !important; }
.text-accent { color: var(--accent) !important; }
.text-companion { color: var(--companion) !important; }
.text-success-custom { color: var(--success) !important; }
.bg-dim { background: rgba(255, 255, 255, 0.01); }

/* Global text-muted override for dark background visibility */
.text-muted { color: #b0b8c1 !important; }
.text-secondary { color: #a0a8b4 !important; }
.section-desc { color: #b0b8c1; }

/* Responsive */
@media (max-width: 991px) {
    .hero-title { font-size: 2.5rem; }
    .section-title { font-size: 2rem; }
    .companion-grid { grid-template-columns: repeat(2, 1fr); }
    .dialogue-modes { grid-template-columns: repeat(2, 1fr); }
    .pipeline-steps { grid-template-columns: repeat(2, 1fr); }
    .memory-cards { grid-template-columns: 1fr; }
    .auto-features { grid-template-columns: repeat(2, 1fr); }

    .interface-grid { grid-template-columns: repeat(2, 1fr); }
    .framework-grid { grid-template-columns: repeat(2, 1fr); }
    .auto-features-extended { grid-template-columns: repeat(2, 1fr); }
    .seruphine-components { grid-template-columns: repeat(2, 1fr); }

    .agent-mesh-wrapper {
        width: 100%; height: auto;
        flex-direction: column;
        padding: 30px 0; gap: 20px; margin: 0;
    }
    .mesh-svg { display: none; }
    .mesh-agent-node {
        position: relative !important;
        width: 90% !important;
        left: auto !important; right: auto !important;
        top: auto !important; bottom: auto !important;
        margin: 0 auto !important;
        transform: none !important;
    }
    .mesh-core {
        position: relative;
        margin-bottom: 30px;
    }
    .arch-row { flex-direction: column; text-align: center; }
    .arch-name { min-width: auto; }
    .arch-items { justify-content: center; }
}

@media (max-width: 575px) {
    .hero-title { font-size: 2rem; }
    .companion-grid { grid-template-columns: 1fr; }
    .dialogue-modes { grid-template-columns: 1fr; }
    .pipeline-steps { grid-template-columns: 1fr; }
    .auto-features { grid-template-columns: 1fr; }
    .auto-features-extended { grid-template-columns: 1fr; }
    .interface-grid { grid-template-columns: 1fr; }
    .framework-grid { grid-template-columns: 1fr; }
    .seruphine-components { grid-template-columns: 1fr; }
    .stat-number { font-size: 2rem; }
}
