/* ==========================================================================
   B2H TECH - DESIGN SYSTEM & STYLESHEET
   ========================================================================== */

/* --- Custom Variables & Tokens --- */
:root {
    --bg-main: #040408;
    --bg-card: rgba(13, 13, 27, 0.7);
    --bg-card-hover: rgba(20, 20, 42, 0.85);
    --border-color: rgba(255, 255, 255, 0.08);
    --border-color-glow: rgba(0, 242, 254, 0.4);
    
    --primary: #00f2fe;
    --primary-glow: rgba(0, 242, 254, 0.3);
    --secondary: #7f00ff;
    --secondary-glow: rgba(127, 0, 255, 0.3);
    
    --text-main: #ffffff;
    --text-muted: #a3a8c3;
    --text-dark: #64748b;
    
    --success: #10b981;
    --error: #ef4444;
    
    --font-family: 'Outfit', sans-serif;
    --container-width: 1200px;
    --header-height: 80px;
    --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* --- Base Resets & Typography --- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    overflow-x: hidden;
}

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

/* --- Background Neural Network Canvas --- */
#neural-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    pointer-events: all;
    opacity: 0.6;
}

/* --- Layout Containers --- */
.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 2rem;
}

.section-padding {
    padding: 8rem 0;
}

/* --- Reusable Components --- */

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.85rem 1.8rem;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    text-decoration: none;
    transition: var(--transition-smooth);
    border: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: #000000;
    box-shadow: 0 4px 20px var(--primary-glow);
    font-weight: 700;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(0, 242, 254, 0.6);
    color: #000000;
}

.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);
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.25);
}

.btn-glow {
    position: relative;
    background: transparent;
    color: var(--text-main);
    border: 1.5px solid var(--primary);
    box-shadow: 0 0 10px var(--primary-glow);
}

.btn-glow:hover {
    background: var(--primary);
    color: #000;
    box-shadow: 0 0 20px var(--primary);
    transform: translateY(-2px);
}

.btn-full {
    width: 100%;
}

/* Glassmorphism Cards */
.glass-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    transition: var(--transition-smooth);
}

.glass-card:hover {
    border-color: var(--border-color-glow);
    background: var(--bg-card-hover);
    box-shadow: 0 10px 30px rgba(0, 242, 254, 0.05);
}

/* Text Gradients */
.gradient-text {
    background: linear-gradient(135deg, var(--primary), #a855f7);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Badge */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 1rem;
    background: rgba(0, 242, 254, 0.06);
    border: 1px solid rgba(0, 242, 254, 0.2);
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1.5rem;
}

.badge-dot {
    width: 6px;
    height: 6px;
    background-color: var(--primary);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--primary);
    animation: pulse 2s infinite;
}

/* Section Header */
.section-header {
    margin-bottom: 4.5rem;
}

.section-title {
    font-size: 2.75rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.25rem;
    letter-spacing: -0.02em;
}

.section-subtitle {
    color: var(--text-muted);
    font-size: 1.15rem;
    max-width: 650px;
    margin: 0 auto;
}

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

/* --- Header / Navigation --- */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background: rgba(4, 4, 8, 0.65);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    transition: var(--transition-smooth);
}

.main-header.scrolled {
    height: 70px;
    background: rgba(4, 4, 8, 0.85);
    box-shadow: 0 5px 25px rgba(0,0,0,0.5);
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.logo-link {
    display: flex;
    align-items: center;
}

.b2h-logo {
    height: 38px;
    color: var(--text-main);
    transition: var(--transition-smooth);
}

.logo-link:hover .b2h-logo {
    color: var(--primary);
    filter: drop-shadow(0 0 8px var(--primary-glow));
}

.main-nav ul {
    display: flex;
    gap: 2.5rem;
    list-style: none;
}

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

.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-smooth);
}

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

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

.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.mobile-nav-toggle {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 6px;
    width: 30px;
    z-index: 1001;
}

.mobile-nav-toggle .bar {
    width: 100%;
    height: 2px;
    background-color: var(--text-main);
    border-radius: 2px;
    transition: var(--transition-smooth);
}

/* --- Hero Section --- */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: var(--header-height);
    overflow: hidden;
}

.hero-container {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 4rem;
    align-items: center;
}

.hero-content {
    max-width: 650px;
}

.hero-title {
    font-size: 4rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: -0.03em;
}

.hero-subtitle {
    color: var(--text-muted);
    font-size: 1.2rem;
    line-height: 1.7;
    margin-bottom: 2.5rem;
}

.hero-actions {
    display: flex;
    gap: 1.25rem;
}

/* Hero Console Mockup */
.hero-visual {
    position: relative;
}

.hero-card {
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0,0,0,0.6);
}

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

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

.dot.red { background-color: #ff5f56; }
.dot.yellow { background-color: #ffbd2e; }
.dot.green { background-color: #27c93f; }

.card-title {
    font-size: 0.8rem;
    font-family: monospace;
    color: var(--text-dark);
    margin-left: 0.5rem;
}

.console-body {
    padding: 1.5rem;
    font-family: monospace;
    font-size: 0.9rem;
    color: #e2e8f0;
    background: rgba(3, 3, 6, 0.65);
    min-height: 200px;
    line-height: 1.8;
}

.console-line {
    margin-bottom: 0.5rem;
}

.c-accent { color: var(--primary); }
.c-success { color: var(--success); }
.c-glow { 
    color: #ffd700; 
    text-shadow: 0 0 5px rgba(255,215,0,0.4);
}

.console-line-animated {
    margin-top: 1rem;
    display: flex;
    align-items: center;
}

.typing-text {
    border-right: 2px solid var(--primary);
    white-space: nowrap;
    overflow: hidden;
    animation: caret 1s step-end infinite;
}

/* Scroll indicator */
.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-dark);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.mouse-icon {
    width: 22px;
    height: 36px;
    border: 2px solid var(--border-color);
    border-radius: 20px;
    position: relative;
}

.wheel {
    width: 4px;
    height: 8px;
    background-color: var(--primary);
    border-radius: 2px;
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    animation: scrollWheel 2s ease-in-out infinite;
}

/* --- Stats Section --- */
.stats-section {
    position: relative;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    background: rgba(255,255,255,0.01);
    padding: 4rem 0;
}

.stats-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    text-align: center;
}

.stat-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.stat-number {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--text-main);
    font-variant-numeric: tabular-nums;
    background: linear-gradient(135deg, #fff, var(--text-muted));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* --- Solutions Section --- */
.solutions-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.solution-card {
    padding: 3rem;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.card-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    background: rgba(0, 242, 254, 0.06);
    border: 1px solid rgba(0, 242, 254, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    margin-bottom: 2rem;
    transition: var(--transition-smooth);
    box-shadow: 0 4px 15px rgba(0, 242, 254, 0.05);
}

.solution-card:hover .card-icon {
    background: var(--primary);
    color: #000;
    transform: scale(1.05);
    box-shadow: 0 0 20px var(--primary);
}

.card-heading {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

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

.card-bullets {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    width: 100%;
}

.card-bullets li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.9rem;
    color: #e2e8f0;
}

.card-bullets li::before {
    content: '→';
    color: var(--primary);
    font-weight: bold;
}

/* --- Philosophy Section --- */
.philosophy-container {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 6rem;
    align-items: center;
}

.philosophy-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 350px;
}

.visual-glow-circle {
    position: absolute;
    width: 250px;
    height: 250px;
    border-radius: 50%;
    background: radial-gradient(circle, var(--secondary-glow) 0%, transparent 70%);
    filter: blur(20px);
    z-index: 0;
    animation: pulsate 6s infinite alternate;
}

/* Brain Network Node Visual */
.interactive-brain-visual {
    position: relative;
    width: 320px;
    height: 320px;
    z-index: 1;
}

.node {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 0.85rem;
    font-weight: 700;
    color: #fff;
    cursor: default;
    transition: var(--transition-smooth);
    user-select: none;
}

.central-node {
    width: 80px;
    height: 80px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: #000;
    font-size: 1.1rem;
    box-shadow: 0 0 30px var(--primary-glow);
    z-index: 10;
}

.sub-node {
    width: 70px;
    height: 70px;
    background: var(--bg-card);
    border: 1.5px solid var(--border-color);
    backdrop-filter: blur(10px);
}

.sub-node:hover {
    border-color: var(--primary);
    box-shadow: 0 0 15px var(--primary-glow);
    transform: scale(1.08);
}

.node-1 { top: 10%; left: 10%; }
.node-2 { top: 10%; right: 10%; }
.node-3 { bottom: 10%; left: 15%; }
.node-4 { bottom: 10%; right: 15%; }

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

.connection-line {
    stroke: rgba(255,255,255,0.06);
    stroke-width: 1.5;
    stroke-dasharray: 4;
    animation: dash 15s linear infinite;
}

.philosophy-tagline {
    font-size: 1.5rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.philosophy-text {
    color: var(--text-muted);
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.philosophy-pillars {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-top: 2rem;
}

.pillar {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.pillar-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 28px;
    height: 28px;
    background: rgba(0, 242, 254, 0.08);
    border: 1px solid rgba(0, 242, 254, 0.3);
    border-radius: 50%;
    color: var(--primary);
    font-weight: bold;
    font-size: 0.85rem;
}

.pillar strong {
    display: block;
    font-size: 1.05rem;
    margin-bottom: 0.25rem;
}

.pillar p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* --- Interactive Demo Section --- */
.demo-card {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    overflow: hidden;
    border-radius: 16px;
    box-shadow: 0 25px 60px rgba(0,0,0,0.5);
}

.demo-sidebar {
    padding: 3rem;
    border-right: 1px solid var(--border-color);
    background: rgba(2, 2, 5, 0.4);
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.demo-sidebar h3 {
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-dark);
}

.demo-options {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.demo-option-btn {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.25rem;
    border-radius: 10px;
    background: rgba(255,255,255,0.02);
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    cursor: pointer;
    font-family: var(--font-family);
    font-size: 0.95rem;
    font-weight: 500;
    transition: var(--transition-smooth);
    text-align: left;
}

.demo-option-btn:hover {
    background: rgba(255,255,255,0.05);
    border-color: rgba(255,255,255,0.15);
    color: #fff;
}

.demo-option-btn.active {
    background: rgba(0, 242, 254, 0.05);
    border-color: var(--primary);
    color: var(--primary);
    box-shadow: 0 0 15px rgba(0, 242, 254, 0.1);
}

.demo-option-btn span {
    font-size: 1.25rem;
}

.demo-controls {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
}

.control-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.control-group label {
    font-size: 0.9rem;
    color: var(--text-muted);
    display: flex;
    justify-content: space-between;
}

.control-group input[type="range"] {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 5px;
    background: var(--border-color);
    border-radius: 5px;
    outline: none;
}

.control-group input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background: var(--primary);
    cursor: pointer;
    box-shadow: 0 0 10px var(--primary);
    transition: var(--transition-smooth);
}

/* RAG Toggle */
.toggle-switch {
    position: relative;
    width: 50px;
    height: 26px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-label {
    position: absolute;
    cursor: pointer;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: var(--border-color);
    border-radius: 34px;
    transition: 0.4s;
    border: 1px solid rgba(255,255,255,0.05);
}

.toggle-label:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: var(--text-muted);
    border-radius: 50%;
    transition: 0.4s;
}

.toggle-switch input:checked + .toggle-label {
    background-color: rgba(0, 242, 254, 0.2);
    border-color: var(--primary);
}

.toggle-switch input:checked + .toggle-label:before {
    transform: translateX(24px);
    background-color: var(--primary);
}

/* Demo Display Area */
.demo-display {
    padding: 3rem;
    background: rgba(3, 3, 7, 0.7);
    display: flex;
    flex-direction: column;
}

.demo-header-bar {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 1.5rem;
}

.status-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.status-indicator.live {
    background-color: var(--primary);
    box-shadow: 0 0 8px var(--primary);
}

.status-indicator.processing {
    background-color: #ffd700;
    box-shadow: 0 0 8px #ffd700;
    animation: flash 1s infinite alternate;
}

.display-title {
    font-size: 0.85rem;
    font-family: monospace;
    color: var(--text-dark);
}

.demo-content-area {
    font-family: monospace;
    font-size: 0.95rem;
    color: #e2e8f0;
    line-height: 1.8;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.pipeline-flow {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.pipeline-step {
    padding: 1.25rem;
    border-radius: 8px;
    background: rgba(255,255,255,0.015);
    border: 1px solid var(--border-color);
    display: flex;
    gap: 1.25rem;
}

.step-in {
    border-left: 3px solid var(--secondary);
}

.step-waiting {
    border-left: 3px solid var(--text-dark);
    color: var(--text-dark);
}

.step-success {
    border-left: 3px solid var(--success);
    animation: slideInUp 0.5s ease-out;
}

.step-num {
    font-weight: 800;
    color: var(--text-dark);
    font-size: 0.85rem;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    padding: 0.1rem 0.4rem;
    height: fit-content;
}

.step-success .step-num {
    color: var(--success);
    border-color: rgba(16, 185, 129, 0.3);
}

.step-details p.quote {
    font-style: italic;
    color: var(--text-muted);
    margin-top: 0.25rem;
}

.pipeline-divider {
    height: 25px;
    width: 2px;
    background: var(--border-color);
    margin-left: 35px;
    position: relative;
}

.pipeline-divider::after {
    content: '↓';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    color: var(--text-dark);
    font-size: 0.85rem;
}

/* --- Contact Section --- */
.contact-container {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 5rem;
    align-items: center;
}

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

.contact-desc {
    color: var(--text-muted);
    font-size: 1.15rem;
    line-height: 1.7;
    margin-bottom: 3rem;
    margin-top: 1rem;
}

.contact-details-list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

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

.detail-icon {
    font-size: 1.5rem;
    width: 50px;
    height: 50px;
    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(--primary);
}

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

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

.contact-detail-item p {
    color: var(--text-muted);
}

/* Form Styles */
.contact-form-card {
    padding: 3rem;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.75rem;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.form-group label {
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
}

.form-group input, 
.form-group select, 
.form-group textarea {
    width: 100%;
    padding: 0.95rem 1.25rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1.5px solid var(--border-color);
    border-radius: 10px;
    color: var(--text-main);
    font-family: var(--font-family);
    font-size: 0.95rem;
    transition: var(--transition-smooth);
    outline: none;
}

.form-group input:focus, 
.form-group select:focus, 
.form-group textarea:focus {
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.04);
    box-shadow: 0 0 15px rgba(0, 242, 254, 0.1);
}

.form-group select {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml;utf8,<svg fill='white' height='24' viewBox='0 0 24 24' width='24' xmlns='http://www.w3.org/2000/svg'><path d='M7 10l5 5 5-5z'/></svg>");
    background-repeat: no-repeat;
    background-position: right 1.25rem center;
    background-size: 1.25rem;
    cursor: pointer;
}

.form-group select option {
    background-color: var(--bg-main);
    color: var(--text-main);
}

.form-status {
    font-size: 0.95rem;
    text-align: center;
    font-weight: 500;
    min-height: 24px;
}

.form-status.success { color: var(--success); }
.form-status.error { color: var(--error); }

/* --- Footer --- */
.main-footer {
    background: #020205;
    border-top: 1px solid var(--border-color);
    padding: 6rem 0 2rem;
    position: relative;
    z-index: 10;
}

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

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    max-width: 350px;
}

.footer-logo {
    height: 42px;
}

.footer-brand p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.footer-link-col h4 {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-main);
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.footer-link-col ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.footer-link-col a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.95rem;
    transition: var(--transition-smooth);
}

.footer-link-col a:hover {
    color: var(--primary);
    padding-left: 4px;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.03);
    padding-top: 2rem;
}

.footer-bottom-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-dark);
    font-size: 0.85rem;
}

.footer-domain {
    font-weight: 700;
    color: var(--text-muted);
}

/* --- Scrollbar Customization --- */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg-main);
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 5px;
    border: 2px solid var(--bg-main);
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 242, 254, 0.3);
}

/* --- Animations & Keyframes --- */
@keyframes pulse {
    0% { transform: scale(1); box-shadow: 0 0 5px var(--primary-glow); }
    50% { transform: scale(1.2); box-shadow: 0 0 15px var(--primary); }
    100% { transform: scale(1); box-shadow: 0 0 5px var(--primary-glow); }
}

@keyframes pulsate {
    0% { transform: scale(0.9) translate(-5%, -5%); opacity: 0.5; }
    100% { transform: scale(1.1) translate(5%, 5%); opacity: 0.8; }
}

@keyframes scrollWheel {
    0% { top: 6px; opacity: 1; }
    50% { top: 18px; opacity: 0; }
    100% { top: 6px; opacity: 1; }
}

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

@keyframes dash {
    to {
        stroke-dashoffset: -100;
    }
}

@keyframes flash {
    0% { opacity: 0.4; }
    100% { opacity: 1; }
}

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

/* Scroll Animation Reveal Classes */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease-out, transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.fade-in {
    opacity: 0;
    animation: fadeIn 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.fade-in.delay-1 { animation-delay: 0.2s; }
.fade-in.delay-2 { animation-delay: 0.4s; }
.fade-in.delay-3 { animation-delay: 0.6s; }

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


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

/* Large Tablets and Laptops (max-width: 1024px) */
@media screen and (max-width: 1024px) {
    :root {
        font-size: 15px;
    }
    
    .hero-container {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }
    
    .hero-content {
        max-width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .hero-title {
        font-size: 3.5rem;
    }
    
    .hero-visual {
        max-width: 500px;
        margin: 0 auto;
    }
    
    .stats-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 3rem;
    }
    
    .philosophy-container {
        grid-template-columns: 1fr;
        gap: 4rem;
        text-align: center;
    }
    
    .philosophy-pillars {
        align-items: center;
    }
    
    .pillar {
        text-align: left;
        max-width: 500px;
    }
    
    .demo-card {
        grid-template-columns: 1fr;
    }
    
    .demo-sidebar {
        border-right: none;
        border-bottom: 1px solid var(--border-color);
        padding: 2.5rem;
    }
    
    .contact-container {
        grid-template-columns: 1fr;
        gap: 4rem;
    }
    
    .contact-info {
        text-align: center;
        align-items: center;
    }
    
    .contact-details-list {
        align-items: center;
    }
}

/* Tablets & Mobile Navigation (max-width: 768px) */
@media screen and (max-width: 768px) {
    .main-header {
        height: 70px;
    }
    
    .mobile-nav-toggle {
        display: flex;
    }
    
    .main-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background: rgba(4, 4, 8, 0.95);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        display: flex;
        align-items: center;
        justify-content: center;
        transition: right 0.5s cubic-bezier(0.16, 1, 0.3, 1);
        z-index: 1000;
    }
    
    .main-nav.open {
        right: 0;
    }
    
    .main-nav ul {
        flex-direction: column;
        align-items: center;
        gap: 3rem;
    }
    
    .nav-link {
        font-size: 1.5rem;
    }
    
    /* Toggle states */
    .mobile-nav-toggle.open .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    
    .mobile-nav-toggle.open .bar:nth-child(2) {
        opacity: 0;
    }
    
    .mobile-nav-toggle.open .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
    
    .hero-title {
        font-size: 2.85rem;
    }
    
    .solutions-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .solution-card {
        padding: 2rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .contact-form-card {
        padding: 2rem;
    }
    
    .footer-container {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .footer-brand {
        max-width: 100%;
        text-align: center;
        align-items: center;
    }
    
    .footer-links {
        justify-items: center;
        text-align: center;
    }
    
    .footer-bottom-container {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}

/* Small Mobiles (max-width: 480px) { */
@media screen and (max-width: 480px) {
    .container {
        padding: 0 1.25rem;
    }
    
    .section-padding {
        padding: 5rem 0;
    }
    
    .hero-title {
        font-size: 2.35rem;
    }
    
    .hero-actions {
        flex-direction: column;
        width: 100%;
    }
    
    .hero-actions .btn {
        width: 100%;
    }
    
    .stats-container {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    
    .stat-number {
        font-size: 2.75rem;
    }
    
    .interactive-brain-visual {
        width: 280px;
        height: 280px;
    }
    
    .node {
        font-size: 0.75rem;
    }
    
    .central-node {
        width: 70px;
        height: 70px;
        font-size: 1rem;
    }
    
    .sub-node {
        width: 60px;
        height: 60px;
    }
    
    .demo-sidebar, .demo-display {
        padding: 1.5rem;
    }
}
