/* ============================================
   TLL OS — High Frame Rate Language Website
   Shock-tech visual design system
   ============================================ */

/* === CSS Variables === */
:root {
    --bg-primary: #050810;
    --bg-secondary: #0a0e1a;
    --bg-card: rgba(10, 16, 30, 0.6);
    --accent-cyan: #00f0ff;
    --accent-green: #00ff88;
    --accent-magenta: #ff00aa;
    --accent-purple: #8b5cf6;
    --text-primary: #e8f4f8;
    --text-secondary: #8899aa;
    --text-muted: #556677;
    --border-glow: rgba(0, 240, 255, 0.3);
    --border-subtle: rgba(255, 255, 255, 0.08);
    --glass-bg: rgba(10, 18, 35, 0.55);
    --glass-border: rgba(0, 240, 255, 0.15);
    --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
    --font-display: 'Orbitron', sans-serif;
    --font-body: 'Inter', -apple-system, sans-serif;
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-normal: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
    scrollbar-width: thin;
    scrollbar-color: var(--accent-cyan) var(--bg-primary);
}

::-webkit-scrollbar {
    width: 8px;
}

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

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--accent-cyan), var(--accent-green));
    border-radius: 4px;
}

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

/* === Background Canvases === */
#particle-canvas,
#matrix-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

#matrix-canvas {
    opacity: 0.15;
    z-index: 1;
}

/* === Scanlines & Grid Overlay === */
.scanlines {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    pointer-events: none;
    background: repeating-linear-gradient(
        0deg,
        rgba(0, 0, 0, 0.1) 0px,
        rgba(0, 0, 0, 0.1) 1px,
        transparent 1px,
        transparent 3px
    );
    opacity: 0.4;
}

.grid-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
    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: 50px 50px;
    mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
}

/* === Glass Effect === */
.glass {
    background: var(--glass-bg);
    backdrop-filter: blur(16px) saturate(1.4);
    -webkit-backdrop-filter: blur(16px) saturate(1.4);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    position: relative;
    overflow: hidden;
}

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

/* === Navbar === */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 16px 0;
    background: rgba(5, 8, 16, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-subtle);
    transition: var(--transition-normal);
}

.navbar.scrolled {
    padding: 10px 0;
    background: rgba(5, 8, 16, 0.9);
    border-bottom-color: var(--border-glow);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.logo-icon {
    width: 36px;
    height: 36px;
    animation: logoPulse 3s ease-in-out infinite;
}

@keyframes logoPulse {
    0%, 100% { filter: drop-shadow(0 0 4px rgba(0, 240, 255, 0.4)); }
    50% { filter: drop-shadow(0 0 12px rgba(0, 240, 255, 0.8)); }
}

.logo-text {
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--text-primary);
}

.logo-dot {
    color: var(--accent-cyan);
}

.nav-links {
    display: flex;
    gap: 8px;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    padding: 8px 14px;
    border-radius: 6px;
    transition: var(--transition-fast);
    position: relative;
}

.nav-link:hover {
    color: var(--accent-cyan);
    background: rgba(0, 240, 255, 0.08);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--accent-cyan);
    transition: var(--transition-fast);
    transform: translateX(-50%);
}

.nav-link:hover::after {
    width: 60%;
}

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

/* === Buttons === */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition-fast);
    border: none;
    font-family: var(--font-body);
    white-space: nowrap;
}

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

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 30px rgba(0, 240, 255, 0.5);
}

.btn-outline {
    background: transparent;
    color: var(--accent-cyan);
    border: 1px solid var(--accent-cyan);
}

.btn-outline:hover {
    background: rgba(0, 240, 255, 0.1);
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.2);
}

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

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

.btn-lg {
    padding: 14px 28px;
    font-size: 15px;
}

/* === Hero Section === */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 120px 32px 80px;
    position: relative;
    z-index: 10;
    max-width: 1400px;
    margin: 0 auto;
    gap: 60px;
}

.hero-content {
    flex: 1;
    max-width: 680px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 16px;
    background: rgba(0, 240, 255, 0.08);
    border: 1px solid var(--border-glow);
    border-radius: 100px;
    font-size: 12px;
    font-family: var(--font-mono);
    color: var(--accent-cyan);
    margin-bottom: 28px;
    animation: fadeInUp 0.8s ease-out;
}

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

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

.badge-sep {
    color: var(--text-muted);
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(36px, 5vw, 64px);
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 24px;
    letter-spacing: -1px;
}

.title-line {
    display: block;
    animation: fadeInUp 0.8s ease-out both;
}

.title-line:nth-child(2) { animation-delay: 0.1s; }
.title-line:nth-child(3) { animation-delay: 0.2s; }

.title-gradient {
    background: linear-gradient(135deg, var(--accent-cyan) 0%, var(--accent-green) 50%, var(--accent-cyan) 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 4s ease infinite;
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% center; }
    50% { background-position: 100% center; }
}

.title-sub {
    font-size: 0.55em;
    font-weight: 400;
    color: var(--text-secondary);
    letter-spacing: 4px;
    text-transform: uppercase;
    margin-top: 8px;
}

.hero-desc {
    font-size: 17px;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 36px;
    max-width: 600px;
    animation: fadeInUp 0.8s ease-out 0.3s both;
}

.hero-actions {
    display: flex;
    gap: 16px;
    margin-bottom: 56px;
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    animation: fadeInUp 0.8s ease-out 0.5s both;
}

.stat-card {
    padding: 20px 16px;
    text-align: center;
    transition: var(--transition-normal);
}

.stat-card:hover {
    transform: translateY(-4px);
    border-color: var(--border-glow);
    box-shadow: 0 8px 32px rgba(0, 240, 255, 0.15);
}

.stat-label {
    font-size: 11px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
    font-family: var(--font-mono);
}

.stat-value {
    font-family: var(--font-display);
    font-size: 28px;
    font-weight: 700;
    color: var(--accent-cyan);
    text-shadow: 0 0 20px rgba(0, 240, 255, 0.4);
}

.stat-sub {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 4px;
}

/* === Hero Code Window === */
.hero-code {
    flex: 1;
    max-width: 520px;
    animation: fadeInRight 1s ease-out 0.3s both;
}

.code-window {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 0 0 40px rgba(0, 240, 255, 0.1);
    transform: perspective(1000px) rotateY(-3deg);
    transition: var(--transition-slow);
}

.code-window:hover {
    transform: perspective(1000px) rotateY(0deg);
    box-shadow: 0 20px 80px rgba(0, 0, 0, 0.6), 0 0 60px rgba(0, 240, 255, 0.2);
}

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

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

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

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

.code-title {
    flex: 1;
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--text-muted);
    text-align: center;
}

.code-status {
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: var(--font-mono);
    font-size: 10px;
    color: var(--accent-green);
}

.status-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent-green);
    animation: pulse 1.5s ease-in-out infinite;
}

.code-body {
    padding: 20px;
    background: rgba(5, 10, 20, 0.8);
    max-height: 420px;
    overflow: hidden;
}

.code-body pre {
    margin: 0;
    font-family: var(--font-mono);
    font-size: 13px;
    line-height: 1.7;
    color: var(--text-primary);
}

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

.kw { color: var(--accent-cyan); }
.num { color: var(--accent-green); }
.str { color: #ffd700; }
.com { color: var(--text-muted); font-style: italic; }

.code-footer {
    display: flex;
    gap: 16px;
    padding: 10px 16px;
    background: rgba(0, 0, 0, 0.4);
    border-top: 1px solid var(--border-subtle);
}

.footer-item {
    font-family: var(--font-mono);
    font-size: 10px;
    color: var(--text-muted);
}

/* === Section Base === */
.section {
    padding: 100px 32px;
    position: relative;
    z-index: 10;
    max-width: 1400px;
    margin: 0 auto;
}

.section-dark {
    background: linear-gradient(180deg, transparent, rgba(0, 240, 255, 0.02), transparent);
    max-width: 100%;
    padding-left: 0;
    padding-right: 0;
}

.section-dark > * {
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 32px;
    padding-right: 32px;
}

.section-header {
    text-align: center;
    margin-bottom: 64px;
}

.section-tag {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--accent-cyan);
    letter-spacing: 3px;
    text-transform: uppercase;
    padding: 6px 16px;
    border: 1px solid var(--border-glow);
    border-radius: 100px;
    margin-bottom: 20px;
    background: rgba(0, 240, 255, 0.05);
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(28px, 4vw, 48px);
    font-weight: 700;
    margin-bottom: 16px;
    letter-spacing: -0.5px;
}

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

.section-desc {
    font-size: 17px;
    color: var(--text-secondary);
    max-width: 640px;
    margin: 0 auto;
    line-height: 1.7;
}

/* === Capability Grid === */
.capability-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.cap-card {
    padding: 28px 24px;
    transition: var(--transition-normal);
    cursor: default;
}

.cap-card:hover {
    transform: translateY(-6px);
    border-color: var(--border-glow);
    box-shadow: 0 12px 40px rgba(0, 240, 255, 0.15);
}

.cap-card:hover .cap-icon {
    transform: scale(1.1) rotate(5deg);
    color: var(--accent-cyan);
}

.cap-icon {
    width: 44px;
    height: 44px;
    color: var(--accent-cyan);
    margin-bottom: 16px;
    transition: var(--transition-normal);
}

.cap-status {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1px;
    padding: 4px 10px;
    border-radius: 4px;
    margin-bottom: 12px;
}

.status-complete {
    background: rgba(0, 255, 136, 0.1);
    color: var(--accent-green);
    border: 1px solid rgba(0, 255, 136, 0.3);
}

.cap-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.cap-desc {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 16px;
}

.cap-evidence {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.ev-tag {
    font-family: var(--font-mono);
    font-size: 10px;
    padding: 3px 8px;
    background: rgba(0, 240, 255, 0.08);
    border: 1px solid rgba(0, 240, 255, 0.15);
    border-radius: 4px;
    color: var(--accent-cyan);
}

/* === Architecture === */
.arch-container {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.arch-layer {
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 24px 28px;
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    position: relative;
    transition: var(--transition-normal);
    animation: archSlideIn 0.6s ease-out both;
    animation-delay: calc(var(--layer) * 0.08s);
}

@keyframes archSlideIn {
    from { opacity: 0; transform: translateX(-30px); }
    to { opacity: 1; transform: translateX(0); }
}

.arch-layer:hover {
    border-color: var(--border-glow);
    box-shadow: 0 0 30px rgba(0, 240, 255, 0.1);
    transform: translateX(8px);
}

.arch-layer-base {
    background: linear-gradient(135deg, rgba(0, 240, 255, 0.1), rgba(0, 255, 136, 0.05));
    border-color: var(--border-glow);
}

.arch-layer-num {
    font-family: var(--font-display);
    font-size: 36px;
    font-weight: 900;
    color: rgba(0, 240, 255, 0.2);
    min-width: 60px;
    text-align: center;
}

.arch-layer:hover .arch-layer-num {
    color: var(--accent-cyan);
}

.arch-layer-content {
    flex: 1;
}

.arch-layer-content h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 4px;
    color: var(--text-primary);
}

.arch-layer-content p {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.arch-meta {
    display: flex;
    gap: 12px;
}

.arch-meta span {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--accent-cyan);
    padding: 2px 8px;
    background: rgba(0, 240, 255, 0.08);
    border-radius: 4px;
}

.arch-arrow {
    width: 2px;
    height: 16px;
    background: linear-gradient(180deg, var(--accent-cyan), transparent);
    margin: 0 auto;
    position: relative;
}

.arch-arrow::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 6px solid var(--accent-cyan);
}

/* === Evidence Section === */
.evidence-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 20px;
    margin-bottom: 24px;
}

.evidence-main {
    padding: 28px;
}

.evidence-main-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.evidence-main-header h3 {
    font-size: 18px;
    font-weight: 600;
}

.ci-badge {
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 700;
    padding: 6px 14px;
    border-radius: 100px;
    letter-spacing: 1px;
}

.ci-green {
    background: rgba(0, 255, 136, 0.1);
    color: var(--accent-green);
    border: 1px solid rgba(0, 255, 136, 0.3);
}

.ci-platforms {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 24px;
}

.ci-platform {
    display: flex;
    align-items: center;
    gap: 16px;
}

.ci-platform-icon {
    width: 36px;
    height: 36px;
    color: var(--accent-cyan);
    display: flex;
    align-items: center;
    justify-content: center;
}

.ci-platform-info {
    flex: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.ci-platform-name {
    font-size: 14px;
    font-weight: 500;
}

.ci-platform-status {
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 700;
}

.status-green {
    color: var(--accent-green);
}

.ci-progress {
    width: 120px;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    overflow: hidden;
}

.ci-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--accent-cyan), var(--accent-green));
    border-radius: 2px;
    animation: progressFill 1.5s ease-out;
}

@keyframes progressFill {
    from { width: 0; }
}

.ci-detail {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    padding-top: 20px;
    border-top: 1px solid var(--border-subtle);
}

.ci-detail-item {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.ci-detail-label {
    font-size: 11px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.ci-detail-value {
    font-family: var(--font-mono);
    font-size: 13px;
    color: var(--text-primary);
}

.evidence-side {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.evidence-card {
    padding: 20px;
    text-align: center;
    transition: var(--transition-normal);
}

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

.evidence-card-icon {
    width: 32px;
    height: 32px;
    color: var(--accent-cyan);
    margin: 0 auto 12px;
}

.evidence-card-value {
    font-family: var(--font-display);
    font-size: 32px;
    font-weight: 700;
    color: var(--accent-cyan);
    text-shadow: 0 0 16px rgba(0, 240, 255, 0.3);
    margin-bottom: 4px;
}

.evidence-card-label {
    font-size: 12px;
    color: var(--text-secondary);
    font-weight: 500;
    margin-bottom: 2px;
}

.evidence-card-sub {
    font-size: 10px;
    color: var(--text-muted);
    font-family: var(--font-mono);
}

/* === Commit Stream === */
.commit-stream {
    padding: 24px 28px;
}

.commit-stream-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.commit-stream-header h3 {
    font-size: 16px;
    font-weight: 600;
}

.commit-link {
    font-size: 13px;
    color: var(--accent-cyan);
    text-decoration: none;
    transition: var(--transition-fast);
}

.commit-link:hover {
    text-decoration: underline;
}

.commit-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.commit-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-subtle);
    transition: var(--transition-fast);
}

.commit-item:last-child {
    border-bottom: none;
}

.commit-item:hover {
    background: rgba(0, 240, 255, 0.03);
    padding-left: 8px;
    padding-right: 8px;
}

.commit-hash {
    font-family: var(--font-mono);
    font-size: 13px;
    color: var(--accent-cyan);
    min-width: 70px;
    font-weight: 500;
}

.commit-msg {
    flex: 1;
    font-size: 14px;
    color: var(--text-primary);
}

.commit-meta {
    display: flex;
    gap: 8px;
}

.commit-meta span {
    font-family: var(--font-mono);
    font-size: 10px;
    padding: 3px 8px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
}

.commit-phase {
    font-weight: 700;
}

.phase-25 { color: var(--accent-cyan); background: rgba(0, 240, 255, 0.1) !important; }
.phase-24 { color: var(--accent-green); background: rgba(0, 255, 136, 0.1) !important; }
.phase-23 { color: #ffd700; background: rgba(255, 215, 0, 0.1) !important; }
.phase-22 { color: var(--accent-magenta); background: rgba(255, 0, 170, 0.1) !important; }
.phase-21 { color: var(--accent-purple); background: rgba(139, 92, 246, 0.1) !important; }

/* === Performance === */
.perf-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
}

.perf-card {
    padding: 28px 24px;
    transition: var(--transition-normal);
}

.perf-card:hover {
    transform: translateY(-6px);
    border-color: var(--border-glow);
    box-shadow: 0 12px 40px rgba(0, 240, 255, 0.15);
}

.perf-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.perf-header h3 {
    font-size: 15px;
    font-weight: 600;
}

.perf-badge {
    font-family: var(--font-mono);
    font-size: 9px;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 4px;
    background: rgba(0, 240, 255, 0.1);
    color: var(--accent-cyan);
    border: 1px solid rgba(0, 240, 255, 0.2);
    letter-spacing: 0.5px;
}

.perf-value {
    font-family: var(--font-display);
    font-size: 42px;
    font-weight: 900;
    color: var(--text-primary);
    margin-bottom: 4px;
    line-height: 1;
}

.perf-unit {
    font-size: 24px;
    color: var(--accent-cyan);
}

.perf-label {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 16px;
}

.perf-bar {
    height: 6px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 12px;
}

.perf-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent-cyan), var(--accent-green));
    border-radius: 3px;
    box-shadow: 0 0 10px rgba(0, 240, 255, 0.5);
    animation: progressFill 2s ease-out;
}

.perf-note {
    font-size: 11px;
    color: var(--text-muted);
    font-family: var(--font-mono);
    line-height: 1.5;
}

/* === Agent Section === */
.agent-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
}

.agent-principle {
    position: sticky;
    top: 100px;
}

.principle-diagram {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.principle-layer {
    padding: 20px;
    border-radius: 12px;
    text-align: center;
}

.principle-top {
    background: rgba(139, 92, 246, 0.1);
    border: 1px solid rgba(139, 92, 246, 0.3);
}

.principle-middle {
    background: rgba(0, 240, 255, 0.08);
    border: 1px solid var(--border-glow);
    margin: 8px 0;
}

.principle-bottom {
    background: rgba(0, 255, 136, 0.05);
    border: 1px solid rgba(0, 255, 136, 0.2);
}

.principle-box {
    font-family: var(--font-display);
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.principle-box-core {
    color: var(--accent-cyan);
    font-size: 18px;
}

.principle-sub {
    font-size: 11px;
    color: var(--text-muted);
    font-family: var(--font-mono);
    line-height: 1.6;
}

.principle-arrow {
    text-align: center;
    font-family: var(--font-mono);
    font-size: 10px;
    color: var(--text-muted);
    padding: 6px 0;
}

.principle-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
}

.principle-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    font-weight: 600;
    color: var(--accent-green);
}

.pi-icon {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(0, 255, 136, 0.1);
    border: 1px solid rgba(0, 255, 136, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-size: 12px;
    font-weight: 700;
}

.agent-docs {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.doc-card {
    padding: 24px;
    transition: var(--transition-normal);
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.doc-card:hover {
    transform: translateX(6px);
    border-color: var(--border-glow);
    box-shadow: -4px 0 20px rgba(0, 240, 255, 0.1);
}

.doc-num {
    font-family: var(--font-display);
    font-size: 14px;
    font-weight: 700;
    color: var(--accent-cyan);
    opacity: 0.6;
}

.doc-card h3 {
    font-size: 17px;
    font-weight: 600;
    color: var(--text-primary);
}

.doc-card p {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.6;
    flex: 1;
}

.doc-link {
    font-size: 13px;
    color: var(--accent-cyan);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition-fast);
    margin-top: 4px;
}

.doc-link:hover {
    text-decoration: underline;
    color: var(--accent-green);
}

/* === CTA Section === */
.cta-section {
    padding: 100px 32px;
    text-align: center;
    position: relative;
    z-index: 10;
    background: linear-gradient(180deg, transparent, rgba(0, 240, 255, 0.03), transparent);
}

.cta-content {
    max-width: 700px;
    margin: 0 auto;
}

.cta-title {
    font-family: var(--font-display);
    font-size: clamp(28px, 4vw, 44px);
    font-weight: 700;
    margin-bottom: 16px;
}

.cta-desc {
    font-size: 17px;
    color: var(--text-secondary);
    margin-bottom: 36px;
    line-height: 1.7;
}

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

/* === Footer === */
.footer {
    border-top: 1px solid var(--border-subtle);
    padding: 60px 32px 24px;
    position: relative;
    z-index: 10;
    background: rgba(5, 8, 16, 0.8);
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.5fr 2fr;
    gap: 48px;
    margin-bottom: 40px;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.footer-desc {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
    max-width: 320px;
}

.footer-security {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.security-badge {
    font-family: var(--font-mono);
    font-size: 11px;
    padding: 6px 12px;
    border-radius: 4px;
    background: rgba(0, 255, 136, 0.08);
    color: var(--accent-green);
    border: 1px solid rgba(0, 255, 136, 0.2);
    width: fit-content;
}

.security-warn {
    background: rgba(255, 215, 0, 0.08);
    color: #ffd700;
    border-color: rgba(255, 215, 0, 0.2);
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.footer-col h4 {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-col a {
    display: block;
    font-size: 13px;
    color: var(--text-secondary);
    text-decoration: none;
    padding: 4px 0;
    transition: var(--transition-fast);
}

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

.footer-bottom {
    max-width: 1400px;
    margin: 0 auto;
    padding-top: 24px;
    border-top: 1px solid var(--border-subtle);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: var(--text-muted);
}

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

/* === Animations === */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(40px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}

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

/* === Responsive === */
@media (max-width: 1024px) {
    .hero {
        flex-direction: column;
        padding-top: 100px;
    }

    .hero-code {
        max-width: 100%;
    }

    .evidence-grid {
        grid-template-columns: 1fr;
    }

    .agent-container {
        grid-template-columns: 1fr;
    }

    .agent-principle {
        position: static;
    }

    .footer-container {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .hero-stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .capability-grid {
        grid-template-columns: 1fr;
    }

    .evidence-side {
        grid-template-columns: 1fr 1fr;
    }

    .ci-detail {
        grid-template-columns: 1fr;
    }

    .footer-links {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }

    .section {
        padding: 60px 20px;
    }

    .hero {
        padding: 100px 20px 60px;
    }

    .code-window {
        transform: none;
    }

    .arch-layer {
        flex-direction: column;
        text-align: center;
        gap: 12px;
    }

    .arch-meta {
        justify-content: center;
    }

    .commit-meta {
        display: none;
    }
}

@media (max-width: 480px) {
    .hero-stats {
        grid-template-columns: 1fr;
    }

    .evidence-side {
        grid-template-columns: 1fr;
    }

    .principle-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero-actions {
        flex-direction: column;
    }

    .btn-lg {
        width: 100%;
        justify-content: center;
    }
}
