:root {
    /* Color Palette - Cyber Enterprise */
    --bg-main: #06070a;
    --bg-surface: #0f111a;
    --bg-surface-glass: rgba(15, 17, 26, 0.5);
    --border-light: rgba(255, 255, 255, 0.06);
    --border-accent: rgba(45, 212, 191, 0.3);

    --accent-blue: #007AFF;
    --accent-blue-glow: rgba(0, 122, 255, 0.4);
    --accent-teal: #2dd4bf;
    --accent-teal-glow: rgba(45, 212, 191, 0.4);
    --gradient-primary: linear-gradient(135deg, var(--accent-blue), var(--accent-teal));

    --text-primary: #FFFFFF;
    --text-muted: #94a3b8;
    --text-dim: #64748b;

    /* Typography */
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-heading: 'Space Grotesk', var(--font-sans);
    --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;

    /* Layout */
    --radius-lg: 16px;
    --radius-md: 12px;
    --radius-sm: 6px;
    --container-width: 1280px;

    /* Animations */
    --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-fast: all 0.2s ease;
}

/* Base Reset & Smooth Scroll */
html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;
    font-family: var(--font-sans);
    background-color: var(--bg-main);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.015) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.015) 1px, transparent 1px);
    background-size: 30px 30px;
    pointer-events: none;
    z-index: 0;
}

h1,
h2,
h3,
h4,
.brand-logo {
    font-family: var(--font-heading);
    margin: 0;
    font-weight: 700;
}

a {
    text-decoration: none;
    color: inherit;
}

.font-mono {
    font-family: var(--font-mono);
}

.text-teal {
    color: var(--accent-teal);
}

.text-blue {
    color: var(--accent-blue);
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 10;
}

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

.mb-3 {
    margin-bottom: 1rem;
}

.mb-4 {
    margin-bottom: 1.5rem;
}

.mb-5 {
    margin-bottom: 3rem;
}

.mt-2 {
    margin-top: 0.5rem;
}

.mt-3 {
    margin-top: 1rem;
}

.mt-4 {
    margin-top: 1.5rem;
}

.p-5 {
    padding: 3rem;
}

.relative {
    position: relative;
}

.z-10 {
    z-index: 10;
}

.flex-between {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.text-xs {
    font-size: 0.75rem;
}

.text-gradient {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.dim-text {
    color: var(--text-dim);
}

.fw-normal {
    font-weight: 400;
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-sm);
    font-weight: 600;
    transition: var(--transition-smooth);
    border: 1px solid transparent;
    cursor: pointer;
    font-family: var(--font-sans);
    font-size: 0.95rem;
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.tech-btn {
    background: rgba(0, 122, 255, 0.1);
    color: var(--accent-teal);
    border-color: rgba(45, 212, 191, 0.3);
    box-shadow: inset 0 0 20px rgba(0, 122, 255, 0.1), 0 0 20px rgba(45, 212, 191, 0.1);
}

.tech-btn:hover {
    background: rgba(45, 212, 191, 0.15);
    border-color: var(--accent-teal);
    box-shadow: inset 0 0 20px rgba(45, 212, 191, 0.3), 0 0 30px var(--accent-teal-glow);
    color: #fff;
    transform: translateY(-2px);
}

.btn-scan {
    position: absolute;
    top: -50%;
    bottom: -50%;
    width: 20px;
    background: rgba(255, 255, 255, 0.5);
    filter: blur(5px);
    transform: rotate(30deg) translateX(-150px);
    animation: scanLine 3s infinite linear;
    opacity: 0.5;
}

@keyframes scanLine {
    0% {
        transform: rotate(30deg) translateX(-150px);
    }

    100% {
        transform: rotate(30deg) translateX(300px);
    }
}

.btn-primary {
    background: var(--gradient-primary);
    color: #fff;
    border-radius: 100px;
    border: none;
}

.btn-primary:hover {
    box-shadow: 0 10px 30px var(--accent-blue-glow);
}

.btn-lg {
    padding: 1rem 2.5rem;
    font-size: 1rem;
    letter-spacing: 1px;
}

/* --- Glassmorphism & Tech Panels --- */
.glass-panel {
    background: var(--bg-surface-glass);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    position: relative;
}

.outline-glow::before {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), transparent, var(--accent-blue-glow));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

/* --- Animated Logo Container --- */
.animated-logo-container {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* --- Navbar --- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(6, 7, 10, 0.85);
    backdrop-filter: blur(24px);
    border-bottom: 1px solid var(--border-light);
    transition: var(--transition-smooth);
}

.nav-container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-size: 1.25rem;
    letter-spacing: -0.5px;
}

.nav-links a {
    color: var(--text-muted);
    font-weight: 500;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0 1rem;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--accent-teal);
}

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

.lang-switcher {
    display: flex;
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-sm);
    padding: 0.25rem;
    border: 1px solid var(--border-light);
}

.lang-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.4rem 0.6rem;
    border-radius: 4px;
    cursor: pointer;
    transition: var(--transition-fast);
}

.lang-btn.active {
    background: var(--accent-blue);
    color: #fff;
    box-shadow: 0 0 10px var(--accent-blue-glow);
}

/* --- Hero Section & Canvas --- */
.hero-section {
    position: relative;
    padding-top: 160px;
    padding-bottom: 20px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    overflow: hidden;
}

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

.tech-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background: rgba(15, 17, 26, 0.8);
    border: 1px solid var(--border-accent);
    color: var(--accent-teal);
    padding: 0.5rem 1.25rem;
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 700;
    font-family: var(--font-mono);
    letter-spacing: 1px;
    box-shadow: inset 0 0 15px rgba(45, 212, 191, 0.1);
}

.scanning-led {
    width: 8px;
    height: 8px;
    background: var(--accent-teal);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--accent-teal);
    animation: ledPulse 1s infinite alternate;
}

@keyframes ledPulse {
    0% {
        opacity: 0.3;
    }

    100% {
        opacity: 1;
        transform: scale(1.2);
    }
}

.hero-title {
    font-size: clamp(3.5rem, 6vw, 5.5rem);
    line-height: 1.05;
    letter-spacing: -2px;
    margin-bottom: 1.5rem;
}

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

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    margin-bottom: 3rem;
}

/* Dashboard Mockup Tech Shell */
.tech-panel-container {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
    perspective: 1200px;
}

.mockup-panel {
    border-radius: var(--radius-md);
    overflow: hidden;
    transform: rotateX(8deg) scale(0.95);
    transition: transform 1s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 1s;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 1), 0 0 60px rgba(0, 122, 255, 0.2);
    border: 1px solid rgba(0, 122, 255, 0.3);
}

.tech-panel-container:hover .mockup-panel {
    transform: rotateX(0) scale(1.02);
    box-shadow: 0 40px 100px rgba(0, 0, 0, 1), 0 0 80px rgba(45, 212, 191, 0.3);
    border-color: rgba(45, 212, 191, 0.5);
}

.tech-header {
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1.25rem;
    border-bottom: 1px solid var(--border-light);
    font-family: var(--font-mono);
    font-size: 0.75rem;
}

.sys-status {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
}

.status-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent-teal);
}

.pulsing {
    animation: pulseHeartbeat 2s infinite;
}

@keyframes pulseHeartbeat {
    0% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.4;
        transform: scale(0.8);
    }

    100% {
        opacity: 1;
        transform: scale(1);
    }
}

.cyber-bar {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-light);
    border-radius: 4px;
    padding: 0.25rem 1rem;
    color: var(--text-dim);
    text-align: center;
}

.mockup-img {
    width: 100%;
    display: block;
    filter: contrast(1.05) saturate(1.1);
}

/* Holographic scan over image */
.hologram-scan {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--accent-teal);
    box-shadow: 0 0 20px 5px rgba(45, 212, 191, 0.5);
    opacity: 0.5;
    animation: hologram 6s infinite linear;
    pointer-events: none;
}

@keyframes hologram {
    0% {
        top: 0;
    }

    100% {
        top: 100%;
    }
}

.cyber-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--accent-blue-glow), transparent 60%);
    transform: translate(-50%, -50%);
    z-index: -1;
    filter: blur(80px);
    opacity: 0.6;
}

/* --- Ticker Strip --- */
.data-ticker-wrap {
    width: 100%;
    background: #000;
    border-top: 1px solid var(--border-light);
    border-bottom: 1px solid var(--border-light);
    overflow: hidden;
    padding: 0.75rem 0;
    position: relative;
    z-index: 20;
}

.data-ticker {
    display: flex;
    align-items: center;
    white-space: nowrap;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--accent-teal);
    animation: ticker 25s infinite linear;
}

.data-ticker span {
    margin: 0 1rem;
}

.ticker-dot {
    width: 4px;
    height: 4px;
    background: var(--accent-blue);
    display: inline-block;
    transform: rotate(45deg);
}

@keyframes ticker {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* --- Section Formatting --- */
.section {
    padding: 6rem 0;
}

.tech-eyebrow {
    color: var(--accent-teal);
    font-weight: 700;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    letter-spacing: 2px;
    display: block;
    margin-bottom: 0.75rem;
}

.h2-title {
    font-size: clamp(2.5rem, 4vw, 3.5rem);
    letter-spacing: -1.5px;
    margin-bottom: 1rem;
}

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

/* --- Tech Bento Grid --- */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-gap: 1.5rem;
    margin-top: 4rem;
}

.bbox-large {
    grid-column: span 2;
    grid-row: span 2;
}

.bbox-medium {
    grid-column: span 1;
    grid-row: span 1;
}

.bbox-small {
    grid-column: span 1;
    grid-row: span 1;
}

@media(max-width: 900px) {

    .bbox-large,
    .bbox-medium,
    .bbox-small {
        grid-column: span 3;
        grid-row: auto;
    }
}

.tech-box {
    background: var(--bg-surface);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 2.5rem;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: var(--transition-smooth);
}

.tech-box:hover {
    border-color: rgba(45, 212, 191, 0.4);
    transform: translateY(-3px);
}

.box-glow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at top right, rgba(0, 122, 255, 0.05), transparent 50%);
    pointer-events: none;
}

.tech-box:hover .box-glow {
    background: radial-gradient(circle at top right, rgba(45, 212, 191, 0.1), transparent 50%);
}

.box-content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.bento-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.tech-icon {
    font-size: 2.5rem;
    color: var(--accent-blue);
    margin-bottom: 1rem;
}

.box-status {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--accent-teal);
    border: 1px solid var(--border-accent);
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
}

.tech-box h3 {
    font-size: 1.6rem;
    margin-bottom: 0.75rem;
    letter-spacing: -0.5px;
}

.tech-box p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.7;
    flex-grow: 1;
}

/* Micro UI 1: Server Rack */
.server-rack {
    display: flex;
    flex-direction: column;
    gap: 8px;
    border: 1px solid var(--border-light);
    background: rgba(0, 0, 0, 0.5);
    padding: 1rem;
    border-radius: var(--radius-sm);
}

.rack-slot {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text-muted);
}

.rack-slot .led {
    width: 6px;
    height: 6px;
    border-radius: 50%;
}

.rack-slot.active .led {
    background: var(--accent-teal);
    box-shadow: 0 0 5px var(--accent-teal);
}

.rack-slot.warning .led {
    background: #f59e0b;
    box-shadow: 0 0 5px #f59e0b;
    animation: ledPulse 0.5s infinite alternate;
}

.load-bar {
    flex-grow: 1;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    overflow: hidden;
}

.load-bar .fill {
    height: 100%;
    background: var(--accent-blue);
    transition: width 1s;
}

.rack-slot.warning .fill {
    background: #f59e0b;
}

/* Micro UI 2: Wave */
.signal-wave {
    display: flex;
    align-items: center;
    gap: 4px;
    height: 40px;
    margin-top: 1rem;
}

.signal-wave span {
    width: 4px;
    background: var(--accent-blue);
    border-radius: 2px;
    animation: signal 1s infinite alternate;
}

.signal-wave span:nth-child(2) {
    animation-delay: 0.2s;
}

.signal-wave span:nth-child(3) {
    animation-delay: 0.4s;
    background: var(--accent-teal);
}

.signal-wave span:nth-child(4) {
    animation-delay: 0.6s;
}

.signal-wave span:nth-child(5) {
    animation-delay: 0.8s;
}

@keyframes signal {
    0% {
        height: 10px;
        opacity: 0.5;
    }

    100% {
        height: 40px;
        opacity: 1;
    }
}

/* Micro UI 3: Metric */
.metric-display {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.metric-value {
    font-size: 3.5rem;
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1;
}

.metric-label {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text-dim);
    margin-top: 0.5rem;
    letter-spacing: 1px;
}

.mini-chart {
    width: 100%;
    height: 50px;
}

/* --- Strategic Pillars (Enterprise Protocol) --- */
.pillars-section {
    background: #0a0b10;
    border-top: 1px solid var(--border-light);
}

.circuit-bg {
    position: absolute;
    inset: 0;
    opacity: 0.05;
    background-image: url("data:image/svg+xml,%3Csvg width='100' height='100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M10 10h80v80h-80z' stroke='%23ffffff' fill='none' stroke-width='1' stroke-dasharray='4'/%3E%3C/svg%3E");
    background-size: 100px 100px;
}

.pillars-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 4rem;
}

@media(max-width: 900px) {
    .pillars-grid {
        grid-template-columns: 1fr;
    }
}

.tech-card {
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.03), transparent);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-sm);
    padding: 2.5rem 2rem;
    position: relative;
    overflow: hidden;
}

.card-border {
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-teal);
    transition: width 0.4s ease;
}

.tech-card:hover .card-border {
    width: 100%;
}

.tech-card:hover {
    background: linear-gradient(to bottom, rgba(45, 212, 191, 0.05), transparent);
    border-color: rgba(255, 255, 255, 0.1);
}

.pillar-number {
    font-family: var(--font-mono);
    font-size: 1.5rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.1);
    margin-bottom: 1rem;
    border-bottom: 1px solid var(--border-light);
    padding-bottom: 0.5rem;
}

.tech-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    color: #fff;
}

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

/* --- Footer CTA --- */
.tech-cta {
    background: radial-gradient(circle at center, rgba(0, 122, 255, 0.1), rgba(15, 17, 26, 0.8));
    border: 1px solid rgba(0, 122, 255, 0.3);
    position: relative;
    overflow: hidden;
}

.scanning-line {
    position: absolute;
    width: 100%;
    height: 2px;
    background: var(--accent-blue);
    top: -100px;
    left: 0;
    box-shadow: 0 0 20px var(--accent-blue);
    animation: ctaScan 8s infinite linear;
    opacity: 0.5;
}

@keyframes ctaScan {
    0% {
        top: -10%;
    }

    100% {
        top: 110%;
    }
}

.icon-pulse {
    font-size: 3rem;
    display: inline-block;
    animation: floatPulse 3s infinite ease-in-out alternate;
}

@keyframes floatPulse {
    0% {
        transform: translateY(0) scale(1);
        filter: drop-shadow(0 0 10px var(--accent-blue-glow));
    }

    100% {
        transform: translateY(-10px) scale(1.05);
        filter: drop-shadow(0 0 20px var(--accent-blue));
    }
}

/* Footer */
.footer {
    padding: 3rem 0;
    border-top: 1px solid var(--border-light);
    background: #000;
}

.footer-logo svg circle {
    transform-origin: center;
    animation: spinSlow 20s infinite linear;
}

@keyframes spinSlow {
    100% {
        transform: rotate(360deg);
    }
}

/* --- Reveal Classes --- */
.reveal-up,
.fade-in-up,
.reveal-scale {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-scale {
    transform: translateY(40px) scale(0.95);
}

.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.delay-1 {
    transition-delay: 0.15s;
}

.delay-2 {
    transition-delay: 0.3s;
}

.delay-3 {
    transition-delay: 0.45s;
}

.delay-4 {
    transition-delay: 0.6s;
}

/* Hide Desktop classes on Mobile */
@media(max-width: 768px) {
    .desktop-only {
        display: none;
    }
}