/* ==========================================================================
   PIONETHIX PREMIUM STYLESHEET
   --------------------------------------------------------------------------
   A design system based on glassmorphism, responsive grid architecture,
   curated HSL color palettes, and fine-tuned micro-animations.
   ========================================================================== */

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

:root {
    /* Dark Theme Variables - Obsidian & Sovereign Bronze (Default Premium) */
    --bg-primary: hsl(220, 16%, 4.5%);
    --bg-secondary: hsl(220, 12%, 8%);
    --bg-tertiary: hsl(220, 10%, 12%);
    --text-primary: hsl(0, 0%, 96%);
    --text-secondary: hsl(215, 8%, 76%);
    --text-muted: hsl(215, 6%, 54%);
    --primary: hsl(38, 24%, 56%);
    --primary-rgb: 197, 161, 114;
    --primary-glow: hsla(38, 24%, 56%, 0.08);
    --secondary: hsl(215, 10%, 75%);
    --secondary-rgb: 191, 195, 201;
    --secondary-glow: hsla(215, 10%, 75%, 0.04);
    --success: hsl(143, 28%, 45%);
    --success-rgb: 83, 147, 107;
    --accent: hsl(38, 20%, 48%);
    --border-color: rgba(255, 255, 255, 0.04);
    --glass-bg: rgba(10, 12, 16, 0.88);
    --glass-border: rgba(197, 161, 114, 0.06);
    --glass-blur: blur(16px);
    --shadow: 0 30px 60px -15px rgba(0,0,0,0.9);
    --card-shadow: 0 15px 35px -10px rgba(0, 0, 0, 0.7);
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
    --transition-smooth: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-fast: all 0.25s ease;
    --container-width: 1280px;
    --header-height: 80px;
    --glow-opacity: 0.1;
}

[data-theme="light"] {
    /* Light Theme Variables - Premium Titanium Cream & Bronze Gold */
    --bg-primary: hsl(40, 6%, 94%);
    --bg-secondary: hsl(0, 0%, 100%);
    --bg-tertiary: hsl(40, 8%, 89%);
    --text-primary: hsl(220, 24%, 12%);
    --text-secondary: hsl(220, 14%, 32%);
    --text-muted: hsl(220, 10%, 52%);
    --primary: hsl(38, 28%, 40%);
    --primary-rgb: 131, 104, 73;
    --primary-glow: hsla(38, 28%, 40%, 0.06);
    --secondary: hsl(220, 20%, 20%);
    --secondary-rgb: 40, 48, 60;
    --secondary-glow: hsla(220, 20%, 20%, 0.04);
    --success: hsl(143, 25%, 35%);
    --success-rgb: 67, 115, 87;
    --accent: hsl(38, 24%, 35%);
    --border-color: rgba(0, 0, 0, 0.06);
    --glass-bg: rgba(255, 255, 255, 0.88);
    --glass-border: rgba(131, 104, 73, 0.06);
    --glass-blur: blur(16px);
    --shadow: 0 30px 50px -15px rgba(0, 0, 0, 0.06);
    --card-shadow: 0 15px 30px -10px rgba(0, 0, 0, 0.02);
    --glow-opacity: 0.05;
}

/* ==========================================================================
   BASE & RESET
   -------------------------------------------------------------------------- */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    scroll-behavior: smooth;
}

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

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

p {
    color: var(--text-secondary);
    font-weight: 400;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition-fast);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

/* Canvas Background Alignment */
#particles-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    opacity: 0.85;
}

.content-wrapper {
    position: relative;
    z-index: 1;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
}

/* Section Common Styles */
section {
    padding: 100px 0;
    position: relative;
    border-bottom: 1px solid var(--border-color);
}

.section-tag {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--primary);
    background: var(--primary-glow);
    padding: 6px 14px;
    border-radius: 100px;
    border: 1px solid rgba(var(--primary-rgb), 0.2);
    margin-bottom: 20px;
    letter-spacing: 0.1em;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: var(--text-primary);
}

.section-desc {
    font-size: 1.125rem;
    color: var(--text-secondary);
    max-width: 650px;
    margin-bottom: 50px;
}

/* ==========================================================================
   THEME TOGGLER & BUTTONS
   -------------------------------------------------------------------------- */
.theme-toggle-btn {
    background: none;
    border: 1px solid var(--border-color);
    border-radius: 50%;
    width: 42px;
    height: 42px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    background-color: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    transition: var(--transition-smooth);
}

.theme-toggle-btn:hover {
    border-color: var(--primary);
    box-shadow: 0 0 15px var(--primary-glow);
    transform: rotate(15deg);
}

.theme-toggle-btn svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
    transition: transform 0.5s ease;
}

/* Custom styled buttons */
.btn-group {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: hsl(224, 71%, 4%);
    font-weight: 700;
    box-shadow: 0 8px 30px rgba(var(--primary-rgb), 0.25);
    border: none;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 35px rgba(var(--primary-rgb), 0.4), 0 0 15px rgba(var(--secondary-rgb), 0.3);
    color: #fff;
}

.btn-secondary {
    background: var(--glass-bg);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    backdrop-filter: var(--glass-blur);
}

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

/* ==========================================================================
   NAVIGATION
   -------------------------------------------------------------------------- */
header {
    height: var(--header-height);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: var(--glass-bg);
    border-bottom: 1px solid var(--glass-border);
    backdrop-filter: var(--glass-blur);
    transition: var(--transition-smooth);
}

header.scrolled {
    height: 70px;
    box-shadow: var(--shadow);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: -0.5px;
}

.logo-dot {
    width: 10px;
    height: 10px;
    background-color: var(--primary);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--primary);
    animation: pulseBeacon 2s infinite;
}

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

.nav-link {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-secondary);
    position: relative;
    padding: 6px 0;
}

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

.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::after, .nav-link.active::after {
    width: 100%;
}

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

/* Mobile Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1010;
}

.hamburger span {
    display: block;
    width: 25px;
    height: 2px;
    background-color: var(--text-primary);
    transition: var(--transition-smooth);
}

/* ==========================================================================
   HERO SECTION
   -------------------------------------------------------------------------- */
.hero {
    min-height: 100vh;
    padding-top: calc(var(--header-height) + 40px);
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

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

.hero-content {
    position: relative;
    z-index: 10;
}

.hero-headline {
    font-size: 3.75rem;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 24px;
    background: linear-gradient(135deg, var(--text-primary) 50%, var(--text-muted));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-headline span {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    position: relative;
}

.hero-subhead {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 36px;
    max-width: 600px;
}

.hero-meta {
    margin-top: 40px;
    display: flex;
    align-items: center;
    gap: 20px;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.hero-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(var(--primary-rgb), 0.08);
    border: 1px solid rgba(var(--primary-rgb), 0.2);
    padding: 6px 16px;
    border-radius: 100px;
    color: var(--primary);
    font-weight: 600;
}

/* Interactive Floating Console inside Hero */
.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
}

.console-mockup {
    width: 100%;
    max-width: 480px;
    height: 380px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    backdrop-filter: var(--glass-blur);
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
    animation: floatNode 6s ease-in-out infinite;
}

.console-mockup::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 100% 0%, var(--primary-glow) 0%, transparent 70%);
    pointer-events: none;
    z-index: 1;
}

.console-header {
    height: 40px;
    background: rgba(0,0,0,0.25);
    display: flex;
    align-items: center;
    padding: 0 16px;
    gap: 6px;
    border-bottom: 1px solid var(--border-color);
}

.console-btn {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}
.console-btn.red { background: #ff5f56; }
.console-btn.yellow { background: #ffbd2e; }
.console-btn.green { background: #27c93f; }

.console-title {
    margin-left: 10px;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--text-muted);
}

.console-body {
    flex: 1;
    padding: 20px;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--primary);
    overflow-y: auto;
    position: relative;
    z-index: 2;
}

.console-line {
    margin-bottom: 10px;
    white-space: pre-wrap;
    line-height: 1.4;
}

.console-line.success { color: var(--success); }
.console-line.secondary { color: var(--secondary); }
.console-line.neutral { color: var(--text-primary); }

.console-prompt {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
}

.console-prompt::before {
    content: '❯';
    color: var(--secondary);
    font-weight: bold;
}

.glow-ambient {
    position: absolute;
    width: 250px;
    height: 250px;
    border-radius: 50%;
    filter: blur(80px);
    z-index: -1;
}
.glow-primary {
    background-color: var(--primary);
    top: -50px;
    right: -50px;
    opacity: calc(var(--glow-opacity) * 1.5);
}
.glow-secondary {
    background-color: var(--secondary);
    bottom: -50px;
    left: -50px;
    opacity: var(--glow-opacity);
}

/* ==========================================================================
   TRUST SECTION
   -------------------------------------------------------------------------- */
.trust-grid {
    display: grid;
    grid-template-columns: 0.85fr 1.15fr;
    gap: 50px;
    align-items: center;
}

.trust-content h2 {
    font-size: 2.25rem;
    margin-bottom: 20px;
}

.trust-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

.trust-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    background: var(--glass-bg);
    border: 1px solid var(--border-color);
    padding: 20px;
    border-radius: 12px;
    backdrop-filter: var(--glass-blur);
    transition: var(--transition-smooth);
}

.trust-item:hover {
    transform: translateX(8px);
    border-color: var(--primary);
    box-shadow: var(--card-shadow);
}

.trust-icon {
    width: 28px;
    height: 28px;
    background: var(--primary-glow);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    flex-shrink: 0;
    margin-top: 2px;
    border: 1px solid rgba(var(--primary-rgb), 0.3);
}

.trust-item-body h4 {
    font-size: 1.1rem;
    margin-bottom: 4px;
    color: var(--text-primary);
}

.trust-item-body p {
    font-size: 0.95rem;
    color: var(--text-secondary);
}

/* ==========================================================================
   SERVICES SECTION
   -------------------------------------------------------------------------- */
.services-layout {
    margin-top: 40px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
    gap: 30px;
}

.service-card {
    background: var(--glass-bg);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 40px;
    position: relative;
    overflow: hidden;
    backdrop-filter: var(--glass-blur);
    box-shadow: var(--card-shadow);
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.service-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, transparent 75%, var(--primary-glow));
    opacity: 0;
    transition: var(--transition-smooth);
    pointer-events: none;
}

.service-card:hover {
    transform: translateY(-8px);
    border-color: var(--primary);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 0 0 25px var(--primary-glow);
}

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

.service-header {
    margin-bottom: 24px;
}

.service-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.1), rgba(var(--secondary-rgb), 0.1));
    border: 1px solid var(--border-color);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    margin-bottom: 24px;
    transition: var(--transition-smooth);
}

.service-card:hover .service-icon {
    color: hsl(224, 71%, 4%);
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    transform: scale(1.1);
    box-shadow: 0 0 15px var(--primary-glow);
}

.service-card h3 {
    font-size: 1.45rem;
    margin-bottom: 12px;
}

.service-card p {
    font-size: 0.95rem;
    line-height: 1.6;
}

.service-points {
    margin: 24px 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.service-point {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.service-point svg {
    color: var(--primary);
    flex-shrink: 0;
}

.service-action-btn {
    background: none;
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 10px 18px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: var(--transition-fast);
}

.service-card:hover .service-action-btn {
    border-color: var(--primary);
    color: var(--primary);
    background: rgba(var(--primary-rgb), 0.05);
}

/* System Spec Modal overlay styling */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(3, 7, 18, 0.8);
    backdrop-filter: blur(10px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition-smooth);
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-content {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    width: 90%;
    max-width: 600px;
    padding: 40px;
    box-shadow: var(--shadow);
    transform: scale(0.9);
    transition: var(--transition-smooth);
    position: relative;
}

.modal-overlay.active .modal-content {
    transform: scale(1);
}

.modal-close {
    position: absolute;
    top: 24px;
    right: 24px;
    background: var(--glass-bg);
    border: 1px solid var(--border-color);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    transition: var(--transition-fast);
}

.modal-close:hover {
    border-color: var(--secondary);
    color: var(--secondary);
}

.modal-icon {
    width: 50px;
    height: 50px;
    background: var(--primary-glow);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    margin-bottom: 20px;
}

.modal-title {
    font-size: 1.85rem;
    margin-bottom: 12px;
}

.modal-desc {
    color: var(--text-secondary);
    margin-bottom: 24px;
    font-size: 1rem;
}

.modal-sub {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.modal-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 30px;
}

.modal-list-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.modal-list-item::before {
    content: '';
    width: 6px;
    height: 6px;
    background: var(--secondary);
    border-radius: 50%;
}

/* ==========================================================================
   SUPPORT & AUTOMATION SIMULATOR
   -------------------------------------------------------------------------- */
.simulator-layout {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 50px;
    align-items: flex-start;
}

.simulator-controls {
    background: var(--glass-bg);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 30px;
    backdrop-filter: var(--glass-blur);
    box-shadow: var(--card-shadow);
}

.simulator-controls h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.simulator-controls p {
    font-size: 0.95rem;
    margin-bottom: 24px;
    color: var(--text-secondary);
}

.scenario-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.scenario-btn {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    padding: 16px 20px;
    border-radius: 10px;
    cursor: pointer;
    text-align: left;
    transition: var(--transition-smooth);
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.scenario-btn:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px var(--primary-glow);
}

.scenario-btn.active {
    background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.1), rgba(var(--secondary-rgb), 0.1));
    border-color: var(--primary);
    box-shadow: 0 0 15px var(--primary-glow);
}

.scenario-details {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.scenario-name {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1rem;
    color: var(--text-primary);
}

.scenario-desc-short {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.scenario-tag-status {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    padding: 4px 10px;
    border-radius: 100px;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
    border: 1px solid var(--border-color);
}

.scenario-btn.active .scenario-tag-status {
    background: var(--primary-glow);
    color: var(--primary);
    border-color: rgba(var(--primary-rgb), 0.3);
}

/* Console Dashboard Panel */
.simulator-panel {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    box-shadow: var(--shadow);
    backdrop-filter: var(--glass-blur);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    height: 480px;
    position: relative;
    transition: var(--transition-smooth);
}

[data-theme="light"] .simulator-panel {
    border-color: rgba(131, 104, 73, 0.15);
}

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

[data-theme="light"] .simulator-panel-header {
    background: rgba(0, 0, 0, 0.03);
}

.simulator-panel-tabs {
    display: flex;
    gap: 6px;
}

.sim-panel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
}
.sim-panel-dot.r { background-color: #ff5f56; }
.sim-panel-dot.y { background-color: #ffbd2e; }
.sim-panel-dot.g { background-color: #27c93f; }

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

.sim-pulse-active {
    width: 6px;
    height: 6px;
    background-color: var(--success);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--success);
    display: inline-block;
    animation: simPulse 1.5s infinite ease-in-out;
}

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

.sim-telemetry {
    background: rgba(0, 0, 0, 0.15);
    border-bottom: 1px solid var(--border-color);
    padding: 10px 20px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text-muted);
}

[data-theme="light"] .sim-telemetry {
    background: rgba(0, 0, 0, 0.02);
}

.telemetry-item span {
    color: var(--primary);
    font-weight: 600;
}

.sim-screen {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    line-height: 1.5;
    background: rgba(0, 0, 0, 0.05);
}

[data-theme="light"] .sim-screen {
    background: rgba(255, 255, 255, 0.35);
}

.sim-log {
    margin-bottom: 8px;
    opacity: 0;
    transform: translateY(4px);
    animation: simLogFadeIn 0.3s forwards ease-out;
}

@keyframes simLogFadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.sim-log.info { color: var(--text-muted); }
.sim-log.success { color: var(--success); }
.sim-log.warning { color: var(--accent); }
.sim-log.system { color: var(--secondary); }
.sim-log.highlight { color: var(--primary); }

.sim-progress-bar {
    width: 100%;
    height: 6px;
    background: #1e293b;
    border-radius: 10px;
    overflow: hidden;
    margin: 10px 0;
}

.sim-progress-fill {
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    transition: width 0.1s ease-out;
}

.simulator-panel-footer {
    height: 50px;
    background: #0f172a;
    border-top: 1px solid #1e293b;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.trigger-trigger-btn {
    background: var(--primary);
    color: #060913;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.85rem;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.trigger-trigger-btn:hover {
    background: var(--secondary);
    color: #fff;
    box-shadow: 0 0 15px rgba(var(--secondary-rgb), 0.4);
}

/* ==========================================================================
   HOW IT WORKS (TIMELINE)
   -------------------------------------------------------------------------- */
.timeline-layout {
    max-width: 900px;
    margin: 40px auto 0 auto;
    position: relative;
}

.timeline-layout::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: 0;
    width: 2px;
    height: 100%;
    background: linear-gradient(180deg, var(--border-color) 0%, var(--primary) 20%, var(--secondary) 80%, var(--border-color) 100%);
    z-index: 1;
}

.timeline-item {
    margin-bottom: 60px;
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: space-between;
    width: 100%;
}

.timeline-item:nth-child(even) {
    flex-direction: row-reverse;
}

.timeline-node {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--bg-secondary);
    border: 2px solid var(--border-color);
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3;
    transition: var(--transition-smooth);
    font-family: var(--font-mono);
    font-weight: bold;
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.timeline-item:hover .timeline-node {
    border-color: var(--primary);
    color: var(--primary);
    box-shadow: 0 0 15px var(--primary-glow);
    transform: translateX(-50%) scale(1.1);
}

.timeline-content {
    width: 42%;
    background: var(--glass-bg);
    border: 1px solid var(--border-color);
    padding: 30px;
    border-radius: 16px;
    backdrop-filter: var(--glass-blur);
    box-shadow: var(--card-shadow);
    transition: var(--transition-smooth);
}

.timeline-item:hover .timeline-content {
    border-color: var(--primary);
    transform: translateY(-4px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3), 0 0 10px var(--primary-glow);
}

.timeline-content h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.timeline-content p {
    font-size: 0.95rem;
    color: var(--text-secondary);
}

/* ==========================================================================
   THE VISION
   -------------------------------------------------------------------------- */
.vision-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 60px;
    align-items: center;
}

.vision-card-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.vision-card {
    background: var(--glass-bg);
    border: 1px solid var(--border-color);
    padding: 24px;
    border-radius: 12px;
    backdrop-filter: var(--glass-blur);
    transition: var(--transition-smooth);
}

.vision-card:hover {
    border-color: var(--secondary);
    transform: translateY(-4px);
    box-shadow: 0 10px 25px var(--secondary-glow);
}

.vision-card-icon {
    width: 40px;
    height: 40px;
    background: var(--secondary-glow);
    border-radius: 8px;
    color: var(--secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    border: 1px solid rgba(var(--secondary-rgb), 0.2);
}

.vision-card h4 {
    font-size: 1.1rem;
    margin-bottom: 8px;
}

.vision-card p {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* ==========================================================================
   ABOUT SECTION
   -------------------------------------------------------------------------- */
.about-grid {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 60px;
    align-items: center;
}

.about-graphics {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Interactive 3D Architecture Stack Scene */
.arch-3d-scene {
    position: relative;
    width: 360px;
    height: 480px;
    perspective: 1200px;
    display: flex;
    justify-content: center;
    align-items: center;

    /* 3D Stack Variables for responsive depth and scaling */
    --plate-bottom-z: -80px;
    --plate-top-z: 80px;
    --plate-bottom-hover: -120px;
    --plate-top-hover: 120px;

    --srv-w: 80px;
    --srv-h: 30px;
    --srv-d: 24px;

    --cube-size: 20px;
    --core-size: 32px;
}

.arch-plates-container {
    position: relative;
    width: 300px;
    height: 300px;
    transform-style: preserve-3d;
    transform: rotateX(55deg) rotateZ(-35deg);
    transition: transform 0.25s ease-out;
}

.arch-plate {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    transition: var(--transition-smooth);
}

.arch-plate.plate-bottom {
    transform: translateZ(var(--plate-bottom-z));
    z-index: 1;
}

.arch-plate.plate-middle {
    transform: translateZ(0px);
    z-index: 2;
}

.arch-plate.plate-top {
    transform: translateZ(var(--plate-top-z));
    z-index: 3;
}

/* Expansion on hover */
.arch-3d-scene:hover .arch-plate.plate-bottom {
    transform: translateZ(var(--plate-bottom-hover));
}

.arch-3d-scene:hover .arch-plate.plate-top {
    transform: translateZ(var(--plate-top-hover));
}

.plate-glass {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 12, 16, 0.76) radial-gradient(rgba(197, 161, 114, 0.15) 1px, transparent 1px) 0 0 / 16px 16px;
    border: 1.5px solid rgba(197, 161, 114, 0.15);
    border-radius: 16px;
    backdrop-filter: blur(12px);
    box-shadow: 0 15px 45px rgba(0,0,0,0.65), inset 0 0 25px rgba(197, 161, 114, 0.04);
    transition: var(--transition-smooth);
}

[data-theme="light"] .plate-glass {
    background: rgba(255, 255, 255, 0.76) radial-gradient(rgba(131, 104, 73, 0.12) 1px, transparent 1px) 0 0 / 16px 16px;
    border-color: rgba(131, 104, 73, 0.15);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.05), inset 0 0 25px rgba(131, 104, 73, 0.03);
}

.arch-3d-scene:hover .plate-glass {
    border-color: rgba(197, 161, 114, 0.45);
    background: rgba(10, 12, 16, 0.82) radial-gradient(rgba(197, 161, 114, 0.2) 1px, transparent 1px) 0 0 / 16px 16px;
    box-shadow: 0 25px 55px rgba(0,0,0,0.75), 0 0 20px rgba(197, 161, 114, 0.12);
}

[data-theme="light"] .arch-3d-scene:hover .plate-glass {
    border-color: rgba(131, 104, 73, 0.45);
    background: rgba(255, 255, 255, 0.88) radial-gradient(rgba(131, 104, 73, 0.15) 1px, transparent 1px) 0 0 / 16px 16px;
    box-shadow: 0 25px 45px rgba(0,0,0,0.08), 0 0 20px rgba(131, 104, 73, 0.12);
}

.plate-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    padding: 24px;
    z-index: 2;
    pointer-events: none;
    transform-style: preserve-3d;
}

.plate-label {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    font-weight: 600;
    color: var(--primary);
    letter-spacing: 0.12em;
    margin-bottom: 12px;
    opacity: 0.85;
}

/* 3D Box layout constructor */
.box-3d {
    position: absolute;
    transform-style: preserve-3d;
}

.box-3d .face {
    position: absolute;
    box-sizing: border-box;
    backface-visibility: visible;
}

/* 3D Blade Servers (Bottom Plate) */
.server-chassis-3d {
    width: var(--srv-w);
    height: var(--srv-h);
    --srv-d-half: calc(var(--srv-d) / 2);
    --srv-w-half: calc(var(--srv-w) / 2);
    --srv-h-half: calc(var(--srv-h) / 2);
    transform: rotateZ(20deg);
    transition: transform var(--transition-smooth);
}

.server-chassis-3d .face {
    background: rgba(15, 22, 33, 0.9);
    border: 1px solid rgba(197, 161, 114, 0.35);
}

[data-theme="light"] .server-chassis-3d .face {
    background: rgba(235, 230, 222, 0.95);
    border-color: rgba(131, 104, 73, 0.35);
}

.server-chassis-3d .face.front {
    width: 100%;
    height: 100%;
    transform: rotateY(0deg) translateZ(var(--srv-d-half));
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    padding: 3px 6px;
    background: linear-gradient(135deg, rgba(20, 28, 42, 0.95), rgba(10, 15, 24, 0.98));
}

[data-theme="light"] .server-chassis-3d .face.front {
    background: linear-gradient(135deg, rgba(240, 235, 225, 0.95), rgba(220, 215, 205, 0.98));
}

.server-chassis-3d .face.back {
    width: 100%;
    height: 100%;
    transform: rotateY(180deg) translateZ(var(--srv-d-half));
}

.server-chassis-3d .face.left {
    width: var(--srv-d);
    height: 100%;
    left: calc(50% - var(--srv-d-half));
    transform: rotateY(-90deg) translateZ(var(--srv-w-half));
}

.server-chassis-3d .face.right {
    width: var(--srv-d);
    height: 100%;
    left: calc(50% - var(--srv-d-half));
    transform: rotateY(90deg) translateZ(var(--srv-w-half));
}

.server-chassis-3d .face.top {
    width: 100%;
    height: var(--srv-d);
    top: calc(50% - var(--srv-d-half));
    transform: rotateX(90deg) translateZ(var(--srv-h-half));
}

.server-chassis-3d .face.bottom {
    width: 100%;
    height: var(--srv-d);
    top: calc(50% - var(--srv-d-half));
    transform: rotateX(-90deg) translateZ(var(--srv-h-half));
}

.srv-label {
    font-family: var(--font-mono);
    font-size: 0.45rem;
    color: var(--text-muted);
    letter-spacing: 0.05em;
    line-height: 1;
}

.srv-drive-slot {
    height: 3px;
    background: rgba(0, 0, 0, 0.6);
    border: 0.5px solid rgba(255, 255, 255, 0.05);
    border-radius: 1px;
}

[data-theme="light"] .srv-drive-slot {
    background: rgba(0, 0, 0, 0.15);
    border-color: rgba(0, 0, 0, 0.05);
}

.srv-led-green, .srv-led-orange {
    width: 3px;
    height: 3px;
    border-radius: 50%;
    display: inline-block;
}

.srv-led-green {
    background: var(--success);
    box-shadow: 0 0 6px var(--success);
    animation: srvLedPulse 1.2s infinite ease-in-out;
}

.srv-led-orange {
    background: var(--primary);
    box-shadow: 0 0 6px var(--primary);
    animation: srvLedPulse 0.8s infinite ease-in-out;
}

@keyframes srvLedPulse {
    0%, 100% { opacity: 0.3; filter: brightness(0.7); }
    50% { opacity: 1; filter: brightness(1.3); }
}

/* Active Pipelines (Middle Plate) */
.pipeline-svg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.pipeline-svg path {
    stroke-linecap: round;
}

.pulse-line {
    stroke-dasharray: 8 32;
    animation: pipelineFlow 5s linear infinite;
}

@keyframes pipelineFlow {
    to {
        stroke-dashoffset: -40;
    }
}

/* Floating 3D Data Cubes (Middle Plate) */
.data-cube-3d {
    width: var(--cube-size);
    height: var(--cube-size);
    --cube-half: calc(var(--cube-size) / 2);
}

.data-cube-3d .face {
    width: 100%;
    height: 100%;
    background: rgba(197, 161, 114, 0.08);
    border: 1px solid rgba(197, 161, 114, 0.5);
    box-shadow: inset 0 0 8px rgba(197, 161, 114, 0.2);
}

[data-theme="light"] .data-cube-3d .face {
    background: rgba(131, 104, 73, 0.08);
    border-color: rgba(131, 104, 73, 0.5);
    box-shadow: inset 0 0 8px rgba(131, 104, 73, 0.2);
}

.data-cube-3d .face.front  { transform: rotateY(0deg) translateZ(var(--cube-half)); }
.data-cube-3d .face.back   { transform: rotateY(180deg) translateZ(var(--cube-half)); }
.data-cube-3d .face.left   { transform: rotateY(-90deg) translateZ(var(--cube-half)); }
.data-cube-3d .face.right  { transform: rotateY(90deg) translateZ(var(--cube-half)); }
.data-cube-3d .face.top    { transform: rotateX(90deg) translateZ(var(--cube-half)); }
.data-cube-3d .face.bottom { transform: rotateX(-90deg) translateZ(var(--cube-half)); }

.data-cube-3d.cube-1 {
    animation: floatCube1 8s infinite ease-in-out;
}
.data-cube-3d.cube-2 {
    animation: floatCube2 10s infinite ease-in-out;
}
.data-cube-3d.cube-3 {
    animation: floatCube3 12s infinite ease-in-out;
}

@keyframes floatCube1 {
    0%, 100% { transform: translate3d(0, 0, 5px) rotateX(0deg) rotateY(0deg); }
    50% { transform: translate3d(0, 0, 20px) rotateX(180deg) rotateY(180deg); }
}

@keyframes floatCube2 {
    0%, 100% { transform: translate3d(0, 0, 15px) rotateX(0deg) rotateY(180deg); }
    50% { transform: translate3d(0, 0, 5px) rotateX(180deg) rotateY(360deg); }
}

@keyframes floatCube3 {
    0%, 100% { transform: translate3d(0, 0, 8px) rotateX(180deg) rotateY(0deg); }
    50% { transform: translate3d(0, 0, 25px) rotateX(360deg) rotateY(180deg); }
}

/* Concentric HUD rings (Top Plate) */
.hud-ring-outer {
    position: absolute;
    left: calc(50% - 75px);
    top: calc(50% - 75px);
    width: 150px;
    height: 150px;
    border: 1.5px dashed rgba(197, 161, 114, 0.25);
    border-radius: 50%;
    animation: spinCW 25s linear infinite;
    pointer-events: none;
}

.hud-ring-inner {
    position: absolute;
    left: calc(50% - 50px);
    top: calc(50% - 50px);
    width: 100px;
    height: 100px;
    border: 1px dashed rgba(197, 161, 114, 0.45);
    border-top-color: transparent;
    border-bottom-color: transparent;
    border-radius: 50%;
    animation: spinCCW 15s linear infinite;
    pointer-events: none;
}

[data-theme="light"] .hud-ring-outer {
    border-color: rgba(131, 104, 73, 0.25);
}

[data-theme="light"] .hud-ring-inner {
    border-color: rgba(131, 104, 73, 0.45);
    border-top-color: transparent;
    border-bottom-color: transparent;
}

@keyframes spinCW {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes spinCCW {
    from { transform: rotate(360deg); }
    to { transform: rotate(0deg); }
}

/* 3D Central Core Diamond (Top Plate) */
.core-3d {
    left: 50%;
    top: 50%;
    width: var(--core-size);
    height: var(--core-size);
    --core-half: calc(var(--core-size) / 2);
    margin-left: calc(-1 * var(--core-half));
    margin-top: calc(-1 * var(--core-half));
    animation: spinCore 14s linear infinite;
}

.core-3d .face {
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(197, 161, 114, 0.25) 0%, rgba(197, 161, 114, 0.05) 100%);
    border: 1px solid var(--primary);
    box-shadow: 0 0 15px var(--primary-glow);
}

[data-theme="light"] .core-3d .face {
    background: radial-gradient(circle, rgba(131, 104, 73, 0.25) 0%, rgba(131, 104, 73, 0.05) 100%);
    border-color: var(--primary);
}

.core-3d .face.front  { transform: rotateY(0deg) translateZ(var(--core-half)); }
.core-3d .face.back   { transform: rotateY(180deg) translateZ(var(--core-half)); }
.core-3d .face.left   { transform: rotateY(-90deg) translateZ(var(--core-half)); }
.core-3d .face.right  { transform: rotateY(90deg) translateZ(var(--core-half)); }
.core-3d .face.top    { transform: rotateX(90deg) translateZ(var(--core-half)); }
.core-3d .face.bottom { transform: rotateX(-90deg) translateZ(var(--core-half)); }

@keyframes spinCore {
    0% { transform: rotateX(45deg) rotateY(0deg) rotateZ(45deg); }
    100% { transform: rotateX(45deg) rotateY(360deg) rotateZ(45deg); }
}

/* Dynamic Stretching Vertical Laser Beams */
.laser-beam-3d {
    position: absolute;
    left: var(--x);
    top: var(--y);
    width: 1.5px;
    height: calc(var(--plate-top-z) - var(--plate-bottom-z));
    background: linear-gradient(180deg, 
                transparent 0%, 
                var(--primary) 20%, 
                rgba(var(--primary-rgb), 0.8) 50%, 
                var(--primary) 80%, 
                transparent 100%);
    background-size: 100% 200%;
    transform-style: preserve-3d;
    transform: translate3d(-50%, -50%, var(--plate-bottom-z)) rotateX(90deg);
    transform-origin: top center;
    box-shadow: 0 0 8px rgba(var(--primary-rgb), 0.5);
    opacity: 0.6;
    pointer-events: none;
    transition: height var(--transition-smooth), transform var(--transition-smooth);
    animation: laserPulse 3s linear infinite;
}

.arch-3d-scene:hover .laser-beam-3d {
    height: calc(var(--plate-top-hover) - var(--plate-bottom-hover));
    transform: translate3d(-50%, -50%, var(--plate-bottom-hover)) rotateX(90deg);
    opacity: 0.8;
}

@keyframes laserPulse {
    0% { background-position: 0% 0%; }
    100% { background-position: 0% 200%; }
}

.about-content h2 {
    font-size: 2.25rem;
    margin-bottom: 20px;
}

.about-content h2 {
    font-size: 2.25rem;
    margin-bottom: 20px;
}

/* ==========================================================================
   FINAL CALL TO ACTION & CONTACT
   -------------------------------------------------------------------------- */
.cta-layout {
    background: var(--glass-bg);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 60px;
    box-shadow: var(--shadow);
    backdrop-filter: var(--glass-blur);
    position: relative;
    overflow: hidden;
}

.cta-layout::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, var(--primary-glow) 0%, transparent 70%);
    pointer-events: none;
}

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

.cta-body h2 {
    font-size: 2.5rem;
    margin-bottom: 16px;
    background: linear-gradient(135deg, var(--text-primary), var(--text-muted));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.cta-body p {
    font-size: 1.1rem;
    margin-bottom: 30px;
}

.cta-contact-meta {
    display: flex;
    flex-direction: column;
    gap: 14px;
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.cta-contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.cta-contact-item svg {
    color: var(--primary);
    flex-shrink: 0;
}

/* Intake Form */
.cta-form {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border-color);
    padding: 30px;
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

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

.cta-form-label {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-primary);
}

.cta-form-input {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    padding: 12px 16px;
    border-radius: 8px;
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 0.95rem;
    transition: var(--transition-fast);
}

.cta-form-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 10px var(--primary-glow);
}

select.cta-form-input {
    cursor: pointer;
}

.cta-form-submit {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: hsl(224, 71%, 4%);
    font-family: var(--font-heading);
    font-weight: 700;
    padding: 14px 20px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    transition: var(--transition-smooth);
}

.cta-form-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(var(--primary-rgb), 0.3);
    color: #fff;
}

/* Success Overlay */
.form-success-overlay {
    text-align: center;
    padding: 40px 20px;
}

.form-success-icon {
    width: 64px;
    height: 64px;
    background: var(--primary-glow);
    border-radius: 50%;
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px auto;
    border: 1px solid rgba(var(--primary-rgb), 0.3);
}

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

/* ==========================================================================
   FOOTER
   -------------------------------------------------------------------------- */
footer {
    background: var(--bg-secondary);
    padding: 60px 0 30px 0;
    font-size: 0.95rem;
    border-top: 1px solid var(--border-color);
}

.footer-top {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 60px;
    margin-bottom: 40px;
}

.footer-brand h3 {
    font-size: 1.5rem;
    margin-bottom: 12px;
    letter-spacing: -0.5px;
}

.footer-brand p {
    color: var(--text-muted);
    font-size: 0.9rem;
    max-width: 400px;
    line-height: 1.5;
}

.footer-links {
    display: flex;
    justify-content: flex-end;
    gap: 60px;
}

.footer-link-group h4 {
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.footer-link-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-link-list a {
    color: var(--text-secondary);
}

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

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

/* ==========================================================================
   ANIMATIONS
   -------------------------------------------------------------------------- */
@keyframes pulseBeacon {
    0% { transform: scale(0.9); opacity: 0.7; box-shadow: 0 0 0 0 rgba(var(--primary-rgb), 0.4); }
    50% { transform: scale(1.1); opacity: 1; box-shadow: 0 0 0 8px rgba(var(--primary-rgb), 0); }
    100% { transform: scale(0.9); opacity: 0.7; box-shadow: 0 0 0 0 rgba(var(--primary-rgb), 0); }
}

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

/* Scroll Animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* ==========================================================================
   MEDIA QUERIES (RESPONSIVENESS)
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
    .hero-headline {
        font-size: 3rem;
    }
    
    .hero-grid, .trust-grid, .simulator-layout, .vision-grid, .about-grid, .cta-grid, .footer-top {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .hero-visual {
        order: -1;
    }
    
    .timeline-layout::before {
        left: 24px;
    }
    
    .timeline-node {
        left: 24px;
    }
    
    .timeline-item {
        flex-direction: row !important;
        margin-bottom: 40px;
    }
    
    .timeline-content {
        width: calc(100% - 60px);
        margin-left: 60px;
    }
    
    .footer-links {
        justify-content: flex-start;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        display: none; /* Hide default nav for mobile drawer toggle */
    }
    
    .hamburger {
        display: flex;
    }
    
    /* Mobile slide in drawer styles */
    .nav-menu.mobile-open {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: 0;
        right: 0;
        width: 280px;
        height: 100vh;
        background: var(--bg-secondary);
        border-left: 1px solid var(--border-color);
        padding: 100px 30px 30px 30px;
        z-index: 1005;
        box-shadow: var(--shadow);
        animation: slideIn 0.3s forwards ease-out;
    }
    
    @keyframes slideIn {
        from { transform: translateX(100%); }
        to { transform: translateX(0); }
    }
    
    .hamburger.open span:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }
    
    .hamburger.open span:nth-child(2) {
        opacity: 0;
    }
    
    .hamburger.open span:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }
    
    .hero-headline {
        font-size: 2.5rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .cta-layout {
        padding: 40px 24px;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .modal-content {
        padding: 30px 20px;
    }
    
    .modal-list {
        grid-template-columns: 1fr;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .vision-card-list {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 580px) {
    .nav-actions .btn {
        display: none; /* Hide 'Get Support' header button on mobile to save width */
    }
    
    .hamburger {
        padding: 6px;
    }
}

@media (max-width: 480px) {
    body {
        font-size: 15px; /* Slightly smaller base font */
    }
    
    section {
        padding: 60px 0; /* Compact sections */
    }
    
    .section-title {
        font-size: 1.85rem;
    }
    
    .section-desc {
        font-size: 1rem;
        margin-bottom: 30px;
    }
    
    .hero {
        padding-top: calc(var(--header-height) + 20px);
        min-height: auto;
    }
    
    .hero-headline {
        font-size: 2.1rem;
        line-height: 1.2;
    }
    
    .hero-subhead {
        font-size: 1.05rem;
        margin-bottom: 24px;
    }
    
    .btn-group {
        flex-direction: column;
        gap: 12px;
        width: 100%;
    }
    
    .btn-group .btn {
        width: 100%;
        text-align: center;
        padding: 12px 20px;
    }
    
    /* 3D Stack Mobile Shrinkage */
    .arch-3d-scene {
        width: 100%;
        max-width: 270px;
        height: 340px;
        margin: 0 auto;

        --plate-bottom-z: -45px;
        --plate-top-z: 45px;
        --plate-bottom-hover: -60px;
        --plate-top-hover: 60px;

        --srv-w: 55px;
        --srv-h: 22px;
        --srv-d: 16px;

        --cube-size: 14px;
        --core-size: 22px;
    }
    
    .arch-plates-container {
        width: 200px;
        height: 200px;
    }

    .hud-ring-outer {
        width: 100px;
        height: 100px;
        left: calc(50% - 50px);
        top: calc(50% - 50px);
    }

    .hud-ring-inner {
        width: 66px;
        height: 66px;
        left: calc(50% - 33px);
        top: calc(50% - 33px);
    }
    
    .plate-content {
        padding: 16px;
    }
    
    .plate-label {
        font-size: 0.55rem;
        margin-bottom: 6px;
    }
    
    /* Grid & Cards optimization */
    .service-card {
        padding: 24px 20px;
    }
    
    .service-icon {
        width: 48px;
        height: 48px;
        margin-bottom: 16px;
    }
    
    .service-icon svg {
        width: 22px;
        height: 22px;
    }
    
    .service-card h3 {
        font-size: 1.25rem;
    }
    
    .trust-item {
        padding: 16px;
        gap: 12px;
    }
    
    /* Simulator Optimization */
    .simulator-controls {
        padding: 20px 16px;
    }
    
    .scenario-btn {
        padding: 12px 14px;
    }
    
    .scenario-name {
        font-size: 0.9rem;
    }
    
    .simulator-panel {
        height: 420px;
    }
    
    .sim-telemetry {
        grid-template-columns: 1fr;
        gap: 6px;
        padding: 10px 16px;
    }
    
    .sim-screen {
        padding: 16px;
        font-size: 0.8rem;
    }
    
    /* CTA Intake Form */
    .cta-layout {
        padding: 30px 16px;
        border-radius: 16px;
    }
    
    .cta-form {
        padding: 20px 16px;
        gap: 16px;
    }
    
    .cta-contact-meta {
        font-size: 0.85rem;
    }
}

/* ==========================================================================
   AESTHETIC UPGRADE & MICRO-INTERACTIONS
   -------------------------------------------------------------------------- */

/* 1. Cinematic Analog Grain static overlay */
.grain-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    pointer-events: none;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 250 250' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    opacity: 0.035; /* Sub-visual high-fidelity hardware texture */
}

/* 2. Infinite Tech Ticker Brand Marquee */
.tech-marquee-wrapper {
    width: 100%;
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    padding: 24px 0;
    overflow: hidden;
    position: relative;
    z-index: 10;
}

.tech-marquee-content {
    display: flex;
    white-space: nowrap;
    align-items: center;
    gap: 40px;
    animation: infiniteScrollMarquee 35s linear infinite;
    width: max-content;
}

.tech-marquee-content span {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    transition: var(--transition-fast);
    cursor: default;
}

.tech-marquee-content span:hover {
    color: var(--primary);
    text-shadow: 0 0 10px var(--primary-glow);
}

.marquee-dot {
    color: var(--secondary) !important;
    opacity: 0.6;
}

@keyframes infiniteScrollMarquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* 3. Dynamic Spotlight Background highlight variables */
.service-card, .vision-card {
    --mouse-x: 0px;
    --mouse-y: 0px;
    position: relative;
}

.service-card::before, .vision-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(400px circle at var(--mouse-x) var(--mouse-y), rgba(var(--primary-rgb), 0.07), transparent 40%);
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: 1;
    pointer-events: none;
    border-radius: inherit;
}

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

/* 4. Scroll Timeline Node Active Pulsing */
.timeline-item.active-step .timeline-node {
    border-color: var(--primary);
    color: var(--primary);
    box-shadow: 0 0 20px rgba(var(--primary-rgb), 0.5);
    background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.1), rgba(var(--secondary-rgb), 0.1));
    transform: translateX(-50%) scale(1.15);
}

.timeline-item.active-step .timeline-content {
    border-color: var(--primary);
    box-shadow: 0 10px 30px rgba(var(--primary-rgb), 0.08);
}

/* 5. Infinite Rotating border animations for premium widgets */
.console-mockup, .cta-layout {
    position: relative;
}

.console-mockup::before {
    content: '';
    position: absolute;
    top: -1px;
    left: -1px;
    right: -1px;
    bottom: -1px;
    background: linear-gradient(90deg, var(--primary), var(--secondary), var(--success), var(--primary));
    background-size: 400% 400%;
    z-index: -1;
    border-radius: inherit;
    opacity: 0.15;
    animation: rotateBorderGlow 15s linear infinite;
}

.console-mockup:hover::before {
    opacity: 0.4;
    filter: blur(1px);
}

@keyframes rotateBorderGlow {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Dynamic glow button pulse outline overrides */
.btn-primary::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.25), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.btn-primary:hover::after {
    transform: translateX(100%);
}

