/* ========================================
   RSControl Theme - Ghost v5
   Dark theme with neon accents
   Animations: CSS keyframes + GSAP
   ======================================== */

/* CSS Variables */
:root {
    --color-bg: #0a0a1a;
    --color-bg-secondary: #0f0f23;
    --color-bg-card: #12122a;
    --color-bg-elevated: #1a1a3e;
    
    --color-text: #e0e0f0;
    --color-text-secondary: #8a8ab0;
    --color-text-muted: #555580;
    
    --color-accent: #00f0ff;
    --color-accent-dim: rgba(0, 240, 255, 0.1);
    --color-warm: #ff6b35;
    --color-warm-dim: rgba(255, 107, 53, 0.1);
    
    --color-border: #1e1e3e;
    --color-border-hover: #2a2a5a;
    
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
    
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 16px;
    
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 24px rgba(0, 0, 0, 0.4);
    --shadow-glow: 0 0 30px rgba(0, 240, 255, 0.15);
    
    --transition-fast: 0.15s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
    
    --header-height: 72px;
}

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

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-primary);
    background: var(--color-bg);
    color: var(--color-text);
    line-height: 1.6;
    overflow-x: hidden;
}

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

a:hover {
    color: var(--color-warm);
}

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

/* Skip Link */
.skip-link {
    position: absolute;
    top: -100%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--color-accent);
    color: var(--color-bg);
    padding: 12px 24px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    z-index: 10000;
    transition: top var(--transition-fast);
}

.skip-link:focus {
    top: 20px;
}

/* ========================================
   HEADER & NAVIGATION
   ======================================== */

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-height);
    background: rgba(10, 10, 26, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--color-border);
    z-index: 1000;
    transition: background var(--transition-normal);
}

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

.site-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    transition: opacity var(--transition-fast);
    color: var(--color-text);
}

.site-logo:hover {
    opacity: 0.9;
    color: var(--color-text);
}

.logo-icon {
    width: 38px;
    height: 38px;
}

.logo-brand {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0 4px;
}

.logo-rs {
    font-weight: 800;
    font-size: 1.25rem;
    color: var(--color-text);
}

.logo-ctrl {
    font-weight: 800;
    font-size: 1.25rem;
    color: #2050B0;
}

.logo-space {
    font-weight: 500;
    font-size: 0.85rem;
    color: var(--color-text-secondary);
    width: 100%;
}

/* Navigation */
.site-nav ul {
    display: flex;
    list-style: none;
    gap: 8px;
}

.site-nav a {
    display: block;
    padding: 8px 16px;
    color: var(--color-text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
    position: relative;
}

.site-nav a::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 16px;
    right: 16px;
    height: 2px;
    background: var(--color-accent);
    transform: scaleX(0);
    transition: transform var(--transition-normal);
}

.site-nav a:hover {
    color: var(--color-text);
    background: var(--color-bg-elevated);
}

.site-nav a:hover::after {
    transform: scaleX(1);
}

/* Mobile Menu */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.menu-bar {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--color-text);
    border-radius: 2px;
    transition: all var(--transition-normal);
}

.mobile-menu {
    display: none;
    position: absolute;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: var(--color-bg-secondary);
    border-bottom: 1px solid var(--color-border);
    padding: 16px 24px;
}

.mobile-menu ul {
    flex-direction: column;
    gap: 4px;
}

.mobile-menu a {
    padding: 12px 16px;
}

/* ========================================
   HERO SECTION
   ======================================== */

.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: calc(var(--header-height) + 48px) 24px 48px;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.grid-overlay {
    position: absolute;
    inset: 0;
    background-image: 
        linear-gradient(rgba(0, 240, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 240, 255, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    animation: gridMove 20s linear infinite;
}

@keyframes gridMove {
    0% { transform: translate(0, 0); }
    100% { transform: translate(60px, 60px); }
}

.particles-container {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.particles-container::before,
.particles-container::after {
    content: '';
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--color-accent);
    border-radius: 50%;
    opacity: 0.6;
    animation: particleFloat 8s ease-in-out infinite;
}

.particles-container::before {
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.particles-container::after {
    top: 60%;
    right: 15%;
    animation-delay: 4s;
}

@keyframes particleFloat {
    0%, 100% { transform: translateY(0) scale(1); opacity: 0.6; }
    50% { transform: translateY(-30px) scale(1.5); opacity: 0.3; }
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}

/* Hero Text */
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: var(--color-accent-dim);
    border: 1px solid rgba(0, 240, 255, 0.2);
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--color-accent);
    margin-bottom: 24px;
}

.badge-dot {
    width: 8px;
    height: 8px;
    background: var(--color-accent);
    border-radius: 50%;
    animation: badgePulse 2s ease-in-out infinite;
}

@keyframes badgePulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(0.8); }
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.03em;
    margin-bottom: 24px;
}

.title-line {
    display: block;
}

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

.hero-description {
    font-size: 1.15rem;
    color: var(--color-text-secondary);
    max-width: 520px;
    margin-bottom: 32px;
}

.hero-description strong {
    color: var(--color-text);
    font-weight: 600;
}

/* CTA Buttons */
.hero-cta {
    display: flex;
    gap: 16px;
    margin-bottom: 48px;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 0.95rem;
    transition: all var(--transition-normal);
    border: none;
    cursor: pointer;
}

.btn-primary {
    background: linear-gradient(135deg, var(--color-accent), #0088ff);
    color: var(--color-bg);
    box-shadow: 0 4px 20px rgba(0, 240, 255, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 240, 255, 0.4);
    color: var(--color-bg);
}

.btn-secondary {
    background: transparent;
    color: var(--color-text);
    border: 1px solid var(--color-border-hover);
}

.btn-secondary:hover {
    border-color: var(--color-accent);
    color: var(--color-accent);
    background: var(--color-accent-dim);
}

.btn-ghost {
    background: transparent;
    color: var(--color-text-secondary);
    border: 1px solid var(--color-border);
}

.btn-ghost:hover {
    border-color: var(--color-text-secondary);
    color: var(--color-text);
}

.btn-small {
    padding: 10px 20px;
    font-size: 0.85rem;
}

.btn-large {
    padding: 18px 36px;
    font-size: 1rem;
}

.btn svg {
    width: 18px;
    height: 18px;
}

.btn-arrow {
    transition: transform var(--transition-fast);
}

.btn-primary:hover .btn-arrow {
    transform: translateX(4px);
}

/* Hero Stats */
.hero-stats {
    display: flex;
    gap: 40px;
}

.stat-item {
    display: flex;
    align-items: baseline;
    gap: 4px;
    flex-wrap: wrap;
}

.stat-number {
    font-size: 2rem;
    font-weight: 800;
    color: var(--color-accent);
    font-family: var(--font-mono);
}

.stat-suffix {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-warm);
}

.stat-label {
    width: 100%;
    font-size: 0.85rem;
    color: var(--color-text-secondary);
    margin-top: 4px;
}

/* Hero Visual */
.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.building-container {
    position: relative;
    width: 100%;
    max-width: 400px;
}

.building-svg {
    width: 100%;
    height: auto;
}

/* Window animations */
.window {
    animation: windowFlicker var(--dur, 3s) var(--delay, 0s) ease-in-out infinite;
}

.w-1 { --dur: 4s; --delay: 0s; }
.w-2 { --dur: 3s; --delay: 0.5s; }
.w-3 { --dur: 5s; --delay: 1s; }
.w-4 { --dur: 3.5s; --delay: 1.5s; }
.w-5 { --dur: 4.5s; --delay: 2s; }
.w-6 { --dur: 3s; --delay: 0.3s; }
.w-7 { --dur: 5s; --delay: 0.8s; }
.w-8 { --dur: 4s; --delay: 1.3s; }
.w-9 { --dur: 3.5s; --delay: 1.8s; }
.w-10 { --dur: 4.5s; --delay: 2.3s; }
.w-11 { --dur: 3s; --delay: 0.6s; }
.w-12 { --dur: 5s; --delay: 1.1s; }
.w-13 { --dur: 4s; --delay: 1.6s; }
.w-14 { --dur: 3.5s; --delay: 2.1s; }
.w-15 { --dur: 4.5s; --delay: 2.6s; }
.w-16 { --dur: 3s; --delay: 0.9s; }
.w-17 { --dur: 5s; --delay: 1.4s; }
.w-18 { --dur: 4s; --delay: 1.9s; }
.w-19 { --dur: 3.5s; --delay: 2.4s; }
.w-20 { --dur: 4.5s; --delay: 2.9s; }
.w-21 { --dur: 3s; --delay: 1.2s; }
.w-22 { --dur: 5s; --delay: 1.7s; }
.w-23 { --dur: 4s; --delay: 2.2s; }
.w-24 { --dur: 3.5s; --delay: 2.7s; }
.w-25 { --dur: 4.5s; --delay: 3.2s; }

@keyframes windowFlicker {
    0%, 100% { fill: #1a1a3e; }
    50% { fill: url(#windowGrad); }
}

/* AI Nodes */
.node {
    animation: nodePulse 3s ease-in-out infinite;
}

.n-1 { animation-delay: 0s; }
.n-2 { animation-delay: 0.5s; }
.n-3 { animation-delay: 1s; }
.n-4 { animation-delay: 1.5s; }
.n-5 { animation-delay: 2s; }
.n-6 { animation-delay: 2.5s; }

@keyframes nodePulse {
    0%, 100% { opacity: 0.6; r: 3; }
    50% { opacity: 1; r: 5; }
}

/* Connection lines */
.conn {
    stroke-dasharray: 100;
    stroke-dashoffset: 100;
    animation: connDraw 4s ease-in-out infinite;
}

.c-1 { animation-delay: 0s; }
.c-2 { animation-delay: 0.5s; }
.c-3 { animation-delay: 1s; }
.c-4 { animation-delay: 1.5s; }
.c-5 { animation-delay: 2s; }
.c-6 { animation-delay: 2.5s; }
.c-7 { animation-delay: 3s; }

@keyframes connDraw {
    0% { stroke-dashoffset: 100; opacity: 0; }
    50% { stroke-dashoffset: 0; opacity: 0.5; }
    100% { stroke-dashoffset: -100; opacity: 0; }
}

/* Brain center */
.brain-ring-1 {
    animation: brainRing1 3s ease-in-out infinite;
}

@keyframes brainRing1 {
    0%, 100% { r: 12; opacity: 0.6; }
    50% { r: 16; opacity: 0.3; }
}

.brain-ring-2 {
    animation: brainRing2 3s ease-in-out infinite;
}

@keyframes brainRing2 {
    0%, 100% { r: 18; opacity: 0.3; }
    50% { r: 22; opacity: 0.1; }
}

.brain-core {
    animation: brainCore 2s ease-in-out infinite;
}

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

/* Data Cards */
.data-cards {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.data-card {
    position: absolute;
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 16px;
    width: 180px;
    backdrop-filter: blur(10px);
    animation: cardFloat var(--float-dur, 6s) ease-in-out infinite;
}

.card-1 {
    top: 10%;
    right: -10%;
    --float-dur: 5s;
}

.card-2 {
    bottom: 20%;
    right: -5%;
    --float-dur: 7s;
}

.card-3 {
    top: 40%;
    left: -10%;
    --float-dur: 6s;
}

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

.card-icon {
    width: 32px;
    height: 32px;
    margin-bottom: 8px;
}

.card-content {
    margin-bottom: 8px;
}

.card-value {
    display: block;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--color-accent);
    font-family: var(--font-mono);
}

.card-label {
    font-size: 0.75rem;
    color: var(--color-text-secondary);
}

.card-chart {
    display: flex;
    gap: 3px;
    align-items: flex-end;
    height: 30px;
}

.chart-bar {
    flex: 1;
    height: var(--h);
    background: var(--color-border-hover);
    border-radius: 2px;
    transition: all var(--transition-normal);
    animation: barGrow 2s ease-in-out infinite;
}

.chart-bar.active {
    background: var(--color-accent);
}

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

.card-pulse {
    width: 8px;
    height: 8px;
    background: var(--color-warm);
    border-radius: 50%;
    animation: pulseDot 2s ease-in-out infinite;
}

@keyframes pulseDot {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.5); opacity: 0.5; }
}

.card-dots {
    display: flex;
    gap: 4px;
}

.card-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--color-border-hover);
    animation: dotSequence 1.5s ease-in-out infinite;
}

.card-dots span:nth-child(1) { animation-delay: 0s; }
.card-dots span:nth-child(2) { animation-delay: 0.2s; }
.card-dots span:nth-child(3) { animation-delay: 0.4s; }
.card-dots span:nth-child(4) { animation-delay: 0.6s; }

@keyframes dotSequence {
    0%, 100% { background: var(--color-border-hover); }
    50% { background: var(--color-accent); }
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.scroll-mouse {
    width: 24px;
    height: 36px;
    border: 2px solid var(--color-text-secondary);
    border-radius: 12px;
    position: relative;
}

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

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

.scroll-text {
    font-size: 0.7rem;
    color: var(--color-text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* ========================================
   SECTIONS - Common Styles
   ======================================== */

.section {
    padding: 120px 24px;
    position: relative;
}

.section-container {
    max-width: 1200px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 64px;
}

.section-badge {
    display: inline-block;
    padding: 6px 16px;
    background: var(--color-accent-dim);
    border: 1px solid rgba(0, 240, 255, 0.2);
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--color-accent);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 16px;
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.02em;
    margin-bottom: 16px;
}

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

.section-description {
    font-size: 1.1rem;
    color: var(--color-text-secondary);
}

.section-cta {
    text-align: center;
    margin-top: 48px;
}

/* ========================================
   SERVICES SECTION
   ======================================== */

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

.service-card {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 32px;
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--color-accent), transparent);
    transform: scaleX(0);
    transition: transform var(--transition-normal);
}

.service-card:hover {
    border-color: var(--color-border-hover);
    transform: translateY(-4px);
    box-shadow: var(--shadow-glow);
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-icon {
    width: 56px;
    height: 56px;
    color: var(--color-accent);
    margin-bottom: 20px;
}

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

.service-card p {
    color: var(--color-text-secondary);
    font-size: 0.95rem;
    margin-bottom: 16px;
}

.service-stats {
    display: flex;
    gap: 8px;
}

.service-stats .stat {
    padding: 4px 12px;
    background: var(--color-accent-dim);
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--color-accent);
    font-family: var(--font-mono);
}

/* LED animation */
.led-active {
    animation: ledBlink 2s ease-in-out infinite;
}

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

.node-pulse {
    animation: nodePulse 3s ease-in-out infinite;
}

/* ========================================
   DASHBOARD SECTION
   ======================================== */

.section-dashboard {
    background: var(--color-bg-secondary);
    position: relative;
    overflow: hidden;
}

.section-dashboard::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--color-accent), transparent);
    opacity: 0.3;
}

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

.dashboard-features {
    list-style: none;
    margin-top: 32px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.dashboard-features li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.95rem;
}

.dashboard-features svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

/* Dashboard Mockup */
.dashboard-mockup {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.mockup-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    border-bottom: 1px solid var(--color-border);
    background: rgba(0, 0, 0, 0.2);
}

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

.mockup-dots span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--color-border-hover);
}

.mockup-dots span:nth-child(1) { background: #ff5f56; }
.mockup-dots span:nth-child(2) { background: #ffbd2e; }
.mockup-dots span:nth-child(3) { background: #27c93f; }

.mockup-title {
    font-size: 0.8rem;
    color: var(--color-text-secondary);
    font-family: var(--font-mono);
}

.mockup-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.mockup-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.mock-card {
    background: var(--color-bg-elevated);
    border-radius: var(--radius-sm);
    padding: 16px;
}

.mock-label {
    display: block;
    font-size: 0.7rem;
    color: var(--color-text-secondary);
    margin-bottom: 8px;
    font-family: var(--font-mono);
}

.mock-value {
    display: block;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 4px;
    font-family: var(--font-mono);
}

.mock-trend {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 100px;
    display: inline-block;
}

.mock-trend.down {
    background: rgba(0, 240, 255, 0.1);
    color: var(--color-accent);
}

.mock-trend.up {
    background: rgba(255, 107, 53, 0.1);
    color: var(--color-warm);
}

.mock-trend.stable {
    background: rgba(100, 200, 100, 0.1);
    color: #64c864;
}

.mockup-chart {
    background: var(--color-bg-elevated);
    border-radius: var(--radius-sm);
    padding: 16px;
}

.chart-header {
    font-size: 0.75rem;
    color: var(--color-text-secondary);
    margin-bottom: 12px;
    font-family: var(--font-mono);
}

.chart-bars {
    display: flex;
    align-items: flex-end;
    gap: 8px;
    height: 100px;
}

.c-bar {
    flex: 1;
    height: var(--h);
    background: var(--color-border-hover);
    border-radius: 4px 4px 0 0;
    position: relative;
    transition: all var(--transition-normal);
    animation: barBounce 3s ease-in-out infinite;
}

.c-bar.active {
    background: linear-gradient(180deg, var(--color-accent), rgba(0, 240, 255, 0.2));
}

.c-bar:nth-child(1) { animation-delay: 0s; }
.c-bar:nth-child(2) { animation-delay: 0.2s; }
.c-bar:nth-child(3) { animation-delay: 0.4s; }
.c-bar:nth-child(4) { animation-delay: 0.6s; }
.c-bar:nth-child(5) { animation-delay: 0.8s; }
.c-bar:nth-child(6) { animation-delay: 1s; }
.c-bar:nth-child(7) { animation-delay: 1.2s; }

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

.bar-label {
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.6rem;
    color: var(--color-text-muted);
    font-family: var(--font-mono);
}

.mockup-status {
    display: flex;
    gap: 16px;
}

.status-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    color: var(--color-text-secondary);
}

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

.status-dot.green {
    background: #27c93f;
    animation: statusPulse 2s ease-in-out infinite;
}

.status-dot.yellow {
    background: #ffbd2e;
}

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

/* ========================================
   BLUEPRINT SECTION
   ======================================== */

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

.blueprint-visual {
    background: var(--color-bg-secondary);
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-border);
    overflow: hidden;
}

.blueprint-svg {
    width: 100%;
    height: auto;
    display: block;
}

.sensor-pulse {
    animation: sensorPulse 4s ease-in-out infinite;
}

@keyframes sensorPulse {
    0%, 100% { opacity: 0.4; r: 3; }
    50% { opacity: 1; r: 6; }
}

.blueprint-steps {
    margin-top: 32px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.step {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 16px;
    align-items: start;
}

.step-number {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-accent);
    background: var(--color-accent-dim);
    padding: 4px 10px;
    border-radius: var(--radius-sm);
}

.step h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 4px;
}

.step p {
    font-size: 0.9rem;
    color: var(--color-text-secondary);
}

/* ========================================
   BLOG SECTION
   ======================================== */

.section-blog {
    background: var(--color-bg-secondary);
}

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

.post-card {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all var(--transition-normal);
}

.post-card:hover {
    border-color: var(--color-border-hover);
    transform: translateY(-4px);
    box-shadow: var(--shadow-glow);
}

.post-card-image {
    display: block;
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
}

.post-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.post-card:hover .post-card-image img {
    transform: scale(1.05);
}

.post-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 50%, rgba(10, 10, 26, 0.8));
}

.post-card-content {
    padding: 24px;
}

.post-card-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    font-size: 0.8rem;
}

.post-card-tag {
    padding: 4px 10px;
    background: var(--color-accent-dim);
    border-radius: 100px;
    color: var(--color-accent);
    font-weight: 500;
}

.post-card-meta time {
    color: var(--color-text-muted);
}

.post-card-title {
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 8px;
}

.post-card-title a {
    color: var(--color-text);
}

.post-card-title a:hover {
    color: var(--color-accent);
}

.post-card-excerpt {
    font-size: 0.9rem;
    color: var(--color-text-secondary);
    margin-bottom: 16px;
    line-height: 1.5;
}

.post-card-readmore {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    font-weight: 600;
}

.post-card-readmore svg {
    width: 14px;
    height: 14px;
    transition: transform var(--transition-fast);
}

.post-card-readmore:hover svg {
    transform: translateX(4px);
}

/* ========================================
   CTA SECTION
   ======================================== */

.section-cta {
    position: relative;
    overflow: hidden;
    padding: 160px 24px;
}

.cta-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 640px;
    margin: 0 auto;
}

.cta-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 16px;
}

.cta-description {
    font-size: 1.1rem;
    color: var(--color-text-secondary);
    margin-bottom: 32px;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.cta-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.cta-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    border: 1px solid rgba(0, 240, 255, 0.1);
}

.cta-ring:nth-child(1) {
    width: 300px;
    height: 300px;
    animation: ctaRing 4s ease-in-out infinite;
}

.cta-ring:nth-child(2) {
    width: 500px;
    height: 500px;
    animation: ctaRing 4s ease-in-out infinite 1s;
}

.cta-ring:nth-child(3) {
    width: 700px;
    height: 700px;
    animation: ctaRing 4s ease-in-out infinite 2s;
}

@keyframes ctaRing {
    0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.3; }
    50% { transform: translate(-50%, -50%) scale(1.1); opacity: 0.1; }
}

/* ========================================
   FOOTER
   ======================================== */

.site-footer {
    background: var(--color-bg-secondary);
    border-top: 1px solid var(--color-border);
    position: relative;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 64px 24px 32px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 48px;
    margin-bottom: 48px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
    color: var(--color-text);
}

.footer-logo-icon {
    width: 38px;
    height: 38px;
}

.footer-brand {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0 3px;
}

.footer-rs {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--color-text);
}

.footer-ctrl {
    font-weight: 700;
    font-size: 1.1rem;
    color: #2050B0;
}

.footer-space {
    font-weight: 500;
    font-size: 0.75rem;
    color: var(--color-text-secondary);
    width: 100%;
}

.footer-tagline {
    color: var(--color-text-secondary);
    font-size: 0.9rem;
    margin-bottom: 20px;
}

.footer-social {
    display: flex;
    gap: 12px;
}

.footer-social a {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-bg-elevated);
    border-radius: var(--radius-sm);
    color: var(--color-text-secondary);
    transition: all var(--transition-fast);
}

.footer-social a:hover {
    background: var(--color-accent-dim);
    color: var(--color-accent);
}

.footer-social svg {
    width: 18px;
    height: 18px;
}

.footer-links h3,
.footer-contact h3 {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: var(--color-text-secondary);
    font-size: 0.9rem;
    transition: color var(--transition-fast);
}

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

.footer-contact p {
    color: var(--color-text-secondary);
    font-size: 0.9rem;
    margin-bottom: 8px;
}

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

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

.footer-legal a {
    color: var(--color-text-muted);
}

.footer-legal a:hover {
    color: var(--color-text-secondary);
}

.footer-line {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    overflow: hidden;
}

.line-glow {
    width: 200px;
    height: 100%;
    background: linear-gradient(90deg, transparent, var(--color-accent), transparent);
    animation: lineGlow 4s ease-in-out infinite;
}

@keyframes lineGlow {
    0% { transform: translateX(-200px); }
    100% { transform: translateX(calc(100vw + 200px)); }
}

/* ========================================
   POST / PAGE TEMPLATES
   ======================================== */

.post-template .site-header,
.page-template .site-header {
    position: relative;
    background: var(--color-bg);
}

.post-header,
.page-header {
    padding: 64px 24px 32px;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.post-title,
.page-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 16px;
}

.post-meta {
    display: flex;
    justify-content: center;
    gap: 16px;
    color: var(--color-text-secondary);
    font-size: 0.9rem;
}

.post-feature-image {
    max-width: 1000px;
    margin: 0 auto 48px;
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.post-feature-image img {
    width: 100%;
    height: auto;
}

.post-content,
.page-content {
    max-width: 720px;
    margin: 0 auto;
    padding: 0 24px 64px;
}

.post-content h2,
.page-content h2 {
    font-size: 1.75rem;
    font-weight: 700;
    margin: 48px 0 20px;
    color: var(--color-text);
}

.post-content h3,
.page-content h3 {
    font-size: 1.35rem;
    font-weight: 600;
    margin: 32px 0 16px;
}

.post-content p,
.page-content p {
    margin-bottom: 20px;
    color: var(--color-text-secondary);
    line-height: 1.7;
}

.post-content a,
.page-content a {
    color: var(--color-accent);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.post-content ul,
.page-content ul,
.post-content ol,
.page-content ol {
    margin-bottom: 20px;
    padding-left: 24px;
    color: var(--color-text-secondary);
}

.post-content li,
.page-content li {
    margin-bottom: 8px;
}

.post-content blockquote,
.page-content blockquote {
    border-left: 3px solid var(--color-accent);
    padding-left: 20px;
    margin: 32px 0;
    color: var(--color-text);
    font-style: italic;
}

.post-content code,
.page-content code {
    background: var(--color-bg-elevated);
    padding: 2px 6px;
    border-radius: 4px;
    font-family: var(--font-mono);
    font-size: 0.9em;
}

.post-content pre,
.page-content pre {
    background: var(--color-bg-elevated);
    padding: 20px;
    border-radius: var(--radius-md);
    overflow-x: auto;
    margin-bottom: 20px;
}

.post-content pre code,
.page-content pre code {
    background: none;
    padding: 0;
}

/* ========================================
   RESPONSIVE
   ======================================== */

@media (max-width: 1024px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-text {
        order: 1;
    }
    
    .hero-visual {
        order: 0;
        max-width: 300px;
        margin: 0 auto;
    }
    
    .hero-stats {
        justify-content: center;
    }
    
    .hero-cta {
        justify-content: center;
    }
    
    .dashboard-content,
    .blueprint-content {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .data-cards {
        display: none;
    }
}

@media (max-width: 768px) {
    .site-nav {
        display: none;
    }
    
    .menu-toggle {
        display: flex;
    }
    
    .mobile-menu[hidden="false"] {
        display: block;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .posts-grid {
        grid-template-columns: 1fr;
    }
    
    .mockup-cards {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
    
    .section {
        padding: 80px 24px;
    }
    
    .hero-stats {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .stat-item {
        min-width: 120px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hero-cta {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
    }
    
    .cta-buttons {
        flex-direction: column;
    }
}

/* ========================================
   ACCESSIBILITY
   ======================================== */

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .scroll-indicator {
        display: none;
    }
}

/* Focus styles */
a:focus-visible,
button:focus-visible {
    outline: 2px solid var(--color-accent);
    outline-offset: 2px;
}

/* Print styles */
@media print {
    .site-header,
    .site-footer,
    .scroll-indicator,
    .hero-visual,
    .cta-bg,
    .data-cards {
        display: none !important;
    }
    
    body {
        background: white;
        color: black;
    }
}
