*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --bg: #050507;
    --surface: #0a0a0f;
    --surface-hover: #12121a;
    --border: #1a1a24;
    --border-hover: #2a2a38;
    --text: #f4f4f7;
    --text-dim: #7c7c8a;
    --accent: #a855f7;
    --accent-soft: rgba(168, 85, 247, 0.1);
    --accent-glow: rgba(168, 85, 247, 0.25);
    --gold: #c9a263;
    --gold-soft: rgba(201, 162, 99, 0.1);
    --highlight: #ffffff;
    
    --font-mono: 'JetBrains Mono', 'Fira Code', 'Cascadia Code', monospace;
    --font-main: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

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

html { scroll-behavior: smooth; overflow-x: hidden; }

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

/* ========== PRELOADER ========== */
.preloader {
    position: fixed;
    inset: 0;
    z-index: 100000;
    background: var(--bg);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}

.preloader.hidden {
    opacity: 0;
    visibility: hidden;
}

.preloader-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.preloader-logo {
    font-family: var(--font-mono);
    font-size: clamp(32px, 6vw, 48px);
    font-weight: 700;
    letter-spacing: -1.5px;
    background: linear-gradient(90deg, var(--text) 0%, var(--accent) 50%, var(--text) 100%);
    background-size: 200% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shimmer 2s ease-in-out infinite, preloader-pulse 1.5s ease-in-out infinite;
}

.preloader-sub {
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 4px;
    color: var(--text-dim);
    text-transform: uppercase;
    animation: preloader-pulse 1.5s ease-in-out infinite 0.3s;
}

@keyframes preloader-pulse {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 1; }
}

.preloader-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--border);
}

.preloader-bar-fill {
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, var(--text-dim), var(--accent));
    animation: preloader-fill 1.2s ease-out forwards;
}

@keyframes preloader-fill {
    0% { width: 0; }
    100% { width: 100%; }
}

/* ========== CUSTOM CURSOR ========== */
.custom-cursor {
    position: fixed;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(168, 85, 247, 0.8);
    border-radius: 50%;
    pointer-events: none;
    z-index: 99999;
    transform: translate(-50%, -50%);
    transition: width 0.2s ease, height 0.2s ease, background 0.2s ease, border-color 0.2s ease;
    mix-blend-mode: difference;
}

.custom-cursor.hover {
    width: 28px;
    height: 28px;
    background: rgba(168, 85, 247, 0.15);
    border-color: rgba(255, 255, 255, 0.9);
}

/* Hide on touch devices */
@media (hover: none) {
    .custom-cursor { display: none; }
    body { cursor: auto; }
}

/* ========== COPY TOAST ========== */
.copy-toast {
    position: fixed;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: var(--surface);
    border: 1px solid var(--border);
    color: var(--text-dim);
    font-family: var(--font-mono);
    font-size: 13px;
    padding: 10px 24px;
    border-radius: 12px;
    white-space: nowrap;
    z-index: 9999;
    opacity: 0;
    pointer-events: none;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.copy-toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* ========== PARTICLE CANVAS ========== */
#particles {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: 0;
    filter: blur(0.5px);
    opacity: 0.55;
    pointer-events: none;
}

/* ========== FIXED CONTROLS ========== */
.fixed-controls {
    position: fixed;
    top: 24px;
    right: 24px;
    z-index: 100;
    display: flex;
    gap: 12px;
}

.sound-toggle, .moon-btn {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: rgba(10, 10, 15, 0.7);
    border: 1px solid var(--border);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    cursor: none;
}

.sound-toggle { color: var(--text-dim); }
.sound-toggle svg { stroke-width: 1.5; }

.moon-btn img {
    width: 20px; height: 20px;
    filter: brightness(0) invert(0.4);
    transition: all 0.3s ease;
}

.sound-toggle:hover, .moon-btn:hover {
    border-color: var(--accent);
    background: var(--surface-hover);
    box-shadow: 0 0 15px var(--accent-glow);
}

.sound-toggle:hover { color: var(--text); }
.moon-btn:hover img { filter: brightness(0) invert(0.8); }
.moon-btn:hover { transform: rotate(-15deg); }
.sound-toggle.active { border-color: var(--accent); color: var(--accent); }
.moon-btn.active { border-color: var(--accent); }
.moon-btn.active img { filter: brightness(0) invert(0.7) sepia(1) saturate(5) hue-rotate(240deg); transform: rotate(180deg); }

/* Tooltips */
[data-tooltip]::after {
    content: attr(data-tooltip);
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: var(--surface-hover);
    color: var(--text);
    font-family: var(--font-mono);
    font-size: 10px;
    padding: 5px 10px;
    border-radius: 8px;
    border: 1px solid var(--border);
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
}
[data-tooltip]:hover::after { opacity: 1; }

/* ========== LAYOUT ========== */
.container {
    position: relative;
    z-index: 1;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ========== NAVBAR ========== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 70px;
    background: rgba(5, 5, 7, 0.75);
    border-bottom: 1px solid rgba(26, 26, 36, 0.5);
    backdrop-filter: blur(12px);
    z-index: 99;
}

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

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

.logo-svg {
    width: 28px;
    height: 28px;
    filter: drop-shadow(0 0 8px var(--accent-glow));
}

.logo-text {
    font-family: var(--font-mono);
    font-weight: 700;
    font-size: 18px;
    letter-spacing: 1px;
    color: var(--text);
}

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

.nav-link {
    font-family: var(--font-mono);
    font-size: 13px;
    color: var(--text-dim);
    text-decoration: none;
    transition: color 0.3s ease;
    cursor: none;
}

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

.nav-btn-primary {
    font-family: var(--font-mono);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--accent);
    border: 1px solid var(--accent);
    padding: 8px 16px;
    border-radius: 8px;
    text-decoration: none;
    background: rgba(168, 85, 247, 0.05);
    transition: all 0.3s ease;
    cursor: none;
}

.nav-btn-primary:hover {
    background: var(--accent);
    color: var(--bg);
    box-shadow: 0 0 15px var(--accent-glow);
}

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

/* ========== HERO SECTION ========== */
.hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    text-align: center;
    position: relative;
    padding: 120px 0 60px 0;
}

.hero-glow {
    position: absolute;
    width: 600px; height: 600px;
    background: radial-gradient(circle, rgba(168, 85, 247, 0.04) 0%, transparent 70%);
    border-radius: 50%;
    top: 50%; left: 50%;
    transform: translate(-50%, -55%);
    animation: pulse-glow 8s ease-in-out infinite;
    pointer-events: none;
}

@keyframes pulse-glow {
    0%, 100% { opacity: 0.5; transform: translate(-50%, -55%) scale(1); }
    50% { opacity: 1; transform: translate(-50%, -55%) scale(1.15); }
}

/* ========== TELEMETRY CARD ========== */
.discord-card {
    position: relative;
    display: flex;
    align-items: center;
    gap: 18px;
    background: rgba(10, 10, 15, 0.8);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 18px 24px;
    margin-bottom: 32px;
    max-width: 480px;
    width: 100%;
    opacity: 0;
    animation: fade-up 0.8s 0.2s ease forwards;
    transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: none;
    backdrop-filter: blur(8px);
}

.discord-card:hover {
    border-color: var(--accent);
    transform: translateY(-3px);
    box-shadow: 0 8px 32px rgba(168, 85, 247, 0.15);
}

.dc-left { flex-shrink: 0; }
.dc-avatar-wrap { position: relative; }
.dc-avatar { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; border: 1.5px solid var(--border); }

.dc-status-dot {
    position: absolute; bottom: 1px; right: 1px;
    width: 16px; height: 16px; border-radius: 50%;
    background: #52525b; border: 3px solid var(--surface);
    transition: background 0.3s ease;
}
.dc-status-dot.online { background: #22c55e; }

.dc-info { display: flex; flex-direction: column; gap: 3px; min-width: 0; overflow: hidden; flex: 1; text-align: left; }
.dc-username-row { display: flex; align-items: center; gap: 8px; }
.dc-username { font-family: var(--font-mono); font-size: 15px; font-weight: 600; color: var(--text); }

.telemetry-pill {
    font-family: var(--font-mono);
    font-size: 9px;
    font-weight: 700;
    color: #22c55e;
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.2);
    padding: 1px 6px;
    border-radius: 20px;
    letter-spacing: 0.5px;
}

.dc-status-text { font-family: var(--font-mono); font-size: 12px; color: var(--text-dim); }

.dc-activity { display: flex; flex-direction: row; align-items: center; gap: 10px; min-width: 0; margin-top: 4px; }
.dc-activity-text { display: flex; flex-direction: column; gap: 1px; min-width: 0; flex: 1; }
.dc-activity-label { font-family: var(--font-mono); font-size: 9px; color: var(--text-dim); text-transform: uppercase; letter-spacing: 0.5px; }
.dc-activity-name { font-family: var(--font-mono); font-size: 11px; color: var(--text); font-weight: 500; }
.dc-activity-details { font-family: var(--font-mono); font-size: 11px; color: var(--accent); }
.dc-lanyard-hint { font-family: var(--font-mono); font-size: 9px; color: var(--text-dim); opacity: 0.5; margin-top: 4px; }

/* ========== TITLE & TYPOGRAPHY ========== */
.title {
    font-family: var(--font-mono);
    font-size: clamp(48px, 10vw, 84px);
    font-weight: 700;
    letter-spacing: -2px;
    position: relative;
    opacity: 0;
    background: linear-gradient(90deg, var(--text) 0%, var(--accent) 50%, var(--text) 100%);
    background-size: 200% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: fade-up 0.8s 0.4s ease forwards, shimmer 8s ease-in-out infinite;
}

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

.tagline {
    font-family: var(--font-mono);
    font-size: clamp(11px, 2.5vw, 13px);
    margin-top: 16px;
    letter-spacing: 3px;
    text-transform: uppercase;
    opacity: 0;
    animation: fade-up 0.8s 0.6s ease forwards;
    color: var(--text-dim);
}
.separator { color: var(--accent); margin: 0 4px; }

.hero-desc {
    max-width: 720px;
    font-size: 15px;
    color: var(--text-dim);
    margin-top: 24px;
    line-height: 1.6;
    opacity: 0;
    animation: fade-up 0.8s 0.8s ease forwards;
}

.hero-desc strong { color: var(--text); }

.hero-buttons {
    display: flex;
    gap: 16px;
    margin-top: 40px;
    opacity: 0;
    animation: fade-up 0.8s 1s ease forwards;
}

.aws-badge-hero {
    margin-top: 48px;
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--text-dim);
    letter-spacing: 1px;
    opacity: 0;
    animation: fade-up 0.8s 1.2s ease forwards;
}
.aws-badge-icon { color: var(--accent); margin-right: 4px; }

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

/* ========== BUTTONS ========== */
.btn {
    font-family: var(--font-mono);
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    padding: 14px 28px;
    border-radius: 12px;
    border: 1px solid transparent;
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: none;
}

.btn-primary {
    background: var(--accent);
    color: var(--bg);
    font-weight: 700;
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px var(--accent-glow);
}

.btn-secondary {
    background: rgba(10, 10, 15, 0.7);
    border: 1px solid var(--border);
    color: var(--text);
}
.btn-secondary:hover {
    border-color: var(--accent);
    background: var(--surface-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(168, 85, 247, 0.1);
}

/* ========== SECTIONS GENERAL ========== */
section {
    padding: 100px 0;
    position: relative;
    border-top: 1px dashed rgba(26, 26, 36, 0.3);
}

.section-title {
    font-family: var(--font-mono);
    font-size: clamp(20px, 4vw, 26px);
    font-weight: 500;
    text-align: center;
    margin-bottom: 56px;
    color: var(--text-dim);
}
.title-decoration { color: var(--accent); font-weight: 300; }

.section-desc {
    max-width: 680px;
    margin: -36px auto 56px auto;
    text-align: center;
    font-size: 14px;
    color: var(--text-dim);
    line-height: 1.6;
}

/* ========== COMPARISON GRID ========== */
.comparison-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.comparison-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    padding: 36px;
    transition: all 0.4s ease;
    opacity: 0;
    transform: translateY(30px);
}
.comparison-card.visible { opacity: 1; transform: translateY(0); }

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

.comparison-card.good:hover {
    border-color: rgba(201, 162, 99, 0.6);
    box-shadow: 0 10px 40px rgba(201, 162, 99, 0.08);
}

.card-header-line { height: 3px; width: 100%; position: absolute; top: 0; left: 0; background: var(--border); }
.card-header-line.gold { background: var(--gold); }

.card-icon-wrap {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-mono);
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 24px;
}
.card-icon-wrap.bad-color { background: rgba(239, 68, 68, 0.1); color: #ef4444; border: 1px solid rgba(239, 68, 68, 0.2); }
.card-icon-wrap.good-color { background: rgba(201, 162, 99, 0.1); color: var(--gold); border: 1px solid rgba(201, 162, 99, 0.2); }

.comparison-card h3 { font-family: var(--font-mono); font-size: 18px; font-weight: 600; color: var(--text); margin-bottom: 6px; }
.card-subtitle { font-size: 12px; color: var(--text-dim); margin-bottom: 24px; }

.comparison-list { list-style: none; display: flex; flex-direction: column; gap: 14px; }
.comparison-list li { font-size: 13.5px; color: var(--text-dim); line-height: 1.6; padding-left: 12px; position: relative; }
.comparison-list li strong { color: var(--text); }
.comparison-list .bullet { color: var(--accent); position: absolute; left: 0; }
.comparison-card.good .bullet { color: var(--gold); }

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

/* ========== AWS ARCHITECTURE ========== */
.architecture-diagram {
    background: rgba(10, 10, 15, 0.7);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 48px 24px;
    margin-bottom: 48px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    position: relative;
    overflow: hidden;
}

.arch-flow {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    width: 100%;
}

.arch-flow-vertical {
    font-size: 20px;
    color: var(--border);
}

.arch-node {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 16px 20px;
    text-align: center;
    min-width: 210px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    position: relative;
}

.node-title {
    font-family: var(--font-mono);
    font-size: 12px;
    font-weight: 700;
    color: var(--text);
}

.node-sub {
    font-size: 11px;
    color: var(--text-dim);
}

.node-badge {
    font-family: var(--font-mono);
    font-size: 9px;
    color: var(--accent);
    background: var(--accent-soft);
    padding: 2px 8px;
    border-radius: 10px;
    margin-top: 4px;
}

.arch-node.gate { border-color: rgba(255, 255, 255, 0.2); }
.arch-node.api { border-color: var(--accent); }
.arch-node.core { border-color: var(--gold); }
.arch-node.core .node-badge { color: var(--gold); background: var(--gold-soft); }
.arch-node.bedrock { border-color: var(--accent); box-shadow: 0 0 15px rgba(168, 85, 247, 0.1); }

.arch-arrow {
    font-size: 16px;
    color: var(--border);
}

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

.tech-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 28px;
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(30px);
}
.tech-card.visible { opacity: 1; transform: translateY(0); }

.tech-card:hover {
    border-color: var(--accent);
    transform: translateY(-3px);
}

.tech-icon-wrapper {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    background: var(--accent-soft);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.tech-card-icon {
    width: 22px;
    height: 22px;
    filter: brightness(0) invert(0.85);
}

.tech-card h4 {
    font-family: var(--font-mono);
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 12px;
}

.tech-card p {
    font-size: 12px;
    color: var(--text-dim);
    line-height: 1.6;
}

@media (max-width: 900px) {
    .arch-flow { flex-direction: column; }
    .arch-arrow { transform: rotate(90deg); margin: 8px 0; }
    .tech-grid { grid-template-columns: 1fr; }
}

/* ========== COGNITIVE CONTROLS & TABS ========== */
.features-tabs-container {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 24px;
    overflow: hidden;
}

.features-tabs {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    background: rgba(10, 10, 15, 0.4);
    border-bottom: 1px solid var(--border);
}

.tab-btn {
    font-family: var(--font-mono);
    font-size: 12px;
    letter-spacing: 1px;
    padding: 20px;
    background: transparent;
    border: none;
    color: var(--text-dim);
    transition: all 0.3s ease;
    cursor: none;
    text-transform: uppercase;
}

.tab-btn:hover { color: var(--text); }
.tab-btn.active { color: var(--accent); background: rgba(168, 85, 247, 0.03); font-weight: 700; border-bottom: 2px solid var(--accent); }

.tab-content {
    display: none;
    padding: 40px;
}
.tab-content.active { display: block; }

.tab-content-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 40px;
    align-items: center;
}

.tab-text h3 {
    font-family: var(--font-mono);
    font-size: 20px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 16px;
}

.tab-text p {
    font-size: 13.5px;
    color: var(--text-dim);
    line-height: 1.6;
    margin-bottom: 24px;
}

.tab-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.tab-list li {
    font-size: 13px;
    color: var(--text-dim);
    position: relative;
    padding-left: 14px;
}

.tab-list li strong { color: var(--text); }
.tab-list li::before {
    content: '→';
    color: var(--accent);
    position: absolute;
    left: 0;
}

/* Tab Code Visual */
.code-editor {
    background: #030305;
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
}

.editor-header {
    background: rgba(10, 10, 15, 0.8);
    padding: 10px 16px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 6px;
}

.editor-header .dot { width: 10px; height: 10px; border-radius: 50%; }
.editor-header .dot.red { background: #ef4444; }
.editor-header .dot.yellow { background: #eab308; }
.editor-header .dot.green { background: #22c55e; }

.editor-title {
    font-family: var(--font-mono);
    font-size: 10px;
    color: var(--text-dim);
    margin-left: 10px;
    letter-spacing: 0.5px;
}

.code-editor pre {
    padding: 20px;
    font-family: var(--font-mono);
    font-size: 11.5px;
    overflow-x: auto;
    color: #e4e4e7;
    line-height: 1.6;
}

.code-editor .comment { color: #52525b; }

/* Timeline Visual */
.timeline-visual {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.timeline-hour {
    background: rgba(10, 10, 15, 0.5);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 12px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: var(--font-mono);
    font-size: 12px;
}

.timeline-hour .status { color: var(--text-dim); }
.timeline-hour.sleeping { border-color: rgba(168, 85, 247, 0.4); color: var(--accent); }
.timeline-hour.sleeping .status { color: var(--accent); }
.timeline-hour.burst { border-color: rgba(201, 162, 99, 0.4); color: var(--gold); }
.timeline-hour.burst .status { color: var(--gold); }

/* HITL Preview Card */
.hitl-preview-card {
    background: #030305;
    border: 1px solid #eab308;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(234, 179, 8, 0.05);
}

.hitl-header {
    background: rgba(234, 179, 8, 0.1);
    border-bottom: 1px solid #eab308;
    padding: 10px 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-mono);
    font-size: 10px;
    font-weight: 700;
    color: #eab308;
}

.hitl-body { padding: 20px; font-size: 12px; }
.hitl-body p { margin-bottom: 10px; line-height: 1.5; }
.risk-label { font-family: var(--font-mono); color: #ef4444; background: rgba(239, 68, 68, 0.05); padding: 4px 8px; border-radius: 4px; display: inline-block; }

.hitl-buttons { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 0 20px 20px 20px; }
.hitl-btn {
    font-family: var(--font-mono);
    font-size: 10px;
    padding: 10px;
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--text-dim);
    border-radius: 6px;
    cursor: none;
    transition: all 0.3s ease;
}
.hitl-btn:hover { border-color: var(--text-dim); color: var(--text); }
.hitl-btn.accent { background: #eab308; color: #000; border-color: #eab308; font-weight: 700; }
.hitl-btn.accent:hover { opacity: 0.9; }

/* Fact Store Visual */
.fact-store-mock {
    background: #030305;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 24px;
}

.fact-store-mock h5 {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--text-dim);
    margin-bottom: 16px;
    letter-spacing: 0.5px;
}

.fact-row {
    display: flex;
    border-bottom: 1px solid var(--border);
    padding: 10px 0;
    font-family: var(--font-mono);
    font-size: 12px;
}
.fact-row:last-of-type { border-bottom: none; }
.fact-row span:first-of-type { width: 110px; color: var(--accent); flex-shrink: 0; }
.fact-row span:last-of-type { color: var(--text); }

@media (max-width: 768px) {
    .features-tabs { grid-template-columns: 1fr; }
    .tab-content-grid { grid-template-columns: 1fr; }
}

/* ========== INTERACTIVE SANDBOX ========== */
.sandbox-grid {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 24px;
}

.chat-container {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    height: 520px;
    overflow: hidden;
}

.chat-header {
    background: rgba(10, 10, 15, 0.6);
    border-bottom: 1px solid var(--border);
    padding: 14px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.chat-header-avatar { position: relative; display: flex; }
.chat-header-avatar img { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--border); }
.status-dot-inner {
    position: absolute; bottom: 0; right: 0; width: 12px; height: 12px; border-radius: 50%;
    border: 2px solid var(--surface);
}
.status-dot-inner.online { background: #22c55e; }

.chat-header-info { display: flex; flex-direction: column; gap: 2px; }
.chat-title { font-family: var(--font-mono); font-size: 13.5px; font-weight: 600; color: var(--text); }
.chat-status { font-family: var(--font-mono); font-size: 11px; color: var(--text-dim); }

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.message {
    display: flex;
    flex-direction: column;
    max-width: 75%;
}

.message.bot { align-self: flex-start; }
.message.user { align-self: flex-end; }

.message-content {
    padding: 12px 16px;
    border-radius: 14px;
    font-size: 13.5px;
    line-height: 1.5;
    word-break: break-word;
}

.message.bot .message-content {
    background: var(--border);
    color: var(--text);
    border-top-left-radius: 2px;
}

.message.user .message-content {
    background: var(--accent-soft);
    color: var(--text);
    border: 1px solid rgba(168, 85, 247, 0.3);
    border-top-right-radius: 2px;
}

.message.system {
    align-self: center;
    max-width: 90%;
    text-align: center;
}

.message.system .message-content {
    background: rgba(10, 10, 15, 0.4);
    border: 1px dashed var(--border);
    color: var(--text-dim);
    font-family: var(--font-mono);
    font-size: 11px;
    padding: 8px 16px;
    border-radius: 8px;
}

.message-time {
    font-family: var(--font-mono);
    font-size: 9px;
    color: var(--text-dim);
    margin-top: 4px;
    align-self: flex-end;
}
.message.bot .message-time { align-self: flex-start; }

.suggestions-row {
    padding: 0 20px 10px 20px;
    display: flex;
    gap: 8px;
    overflow-x: auto;
    flex-shrink: 0;
}
.suggestions-row::-webkit-scrollbar { display: none; }

.suggest-chip {
    font-family: var(--font-mono);
    font-size: 10px;
    color: var(--text-dim);
    background: rgba(10, 10, 15, 0.5);
    border: 1px solid var(--border);
    padding: 6px 12px;
    border-radius: 20px;
    white-space: nowrap;
    cursor: none;
    transition: all 0.3s ease;
    flex-shrink: 0;
}
.suggest-chip:hover { border-color: var(--accent); color: var(--text); }

.chat-input-area {
    border-top: 1px solid var(--border);
    padding: 16px 20px;
    display: flex;
    gap: 12px;
}

.chat-input-area input {
    flex: 1;
    background: #030305;
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 12px 16px;
    color: var(--text);
    font-size: 13px;
    outline: none;
    transition: border-color 0.3s ease;
    cursor: none;
}
.chat-input-area input:focus { border-color: var(--accent); }

.chat-send-btn {
    width: 44px;
    height: 44px;
    background: var(--accent-soft);
    border: 1px solid rgba(168, 85, 247, 0.3);
    border-radius: 10px;
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: none;
    transition: all 0.3s ease;
}
.chat-send-btn:hover { background: var(--accent); color: var(--bg); }

/* Telemetry Sidebar */
.telemetry-sidebar {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 24px;
    display: flex;
    flex-direction: column;
}

.telemetry-sidebar h3 {
    font-family: var(--font-mono);
    font-size: 14px;
    color: var(--text);
    margin-bottom: 20px;
    border-bottom: 1px solid var(--border);
    padding-bottom: 10px;
}

.telemetry-metric {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid rgba(26, 26, 36, 0.4);
    font-family: var(--font-mono);
    font-size: 11.5px;
}
.telemetry-metric:last-of-type { border-bottom: none; }

.metric-label { color: var(--text-dim); }
.metric-value { color: var(--text); font-weight: 500; }
.metric-value.green-text { color: #22c55e; }
.metric-value.orange-text { color: #eab308; }
.metric-value.red-text { color: #ef4444; }

.telemetry-log {
    margin-top: 20px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: #030305;
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    min-height: 140px;
}

.telemetry-log h4 {
    font-family: var(--font-mono);
    font-size: 9.5px;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: rgba(10, 10, 15, 0.8);
    padding: 8px 12px;
    border-bottom: 1px solid var(--border);
}

.log-lines {
    padding: 10px 12px;
    overflow-y: auto;
    font-family: var(--font-mono);
    font-size: 10px;
    color: #52525b;
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
}

.log-line { word-break: break-word; }
.log-line.incoming { color: var(--text-dim); }
.log-line.system-alert { color: #eab308; }
.log-line.risk-alert { color: #ef4444; }

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

/* ========== TIMELINE / ROADMAP ========== */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    padding: 20px 0;
}

.timeline-line {
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 1px;
    background: var(--border);
    transform: translateX(-50%);
}

.timeline-year {
    position: relative;
    font-family: var(--font-mono);
    font-size: 14px;
    font-weight: 700;
    color: var(--accent);
    text-align: center;
    background: var(--bg);
    width: fit-content;
    margin: 36px auto 16px;
    padding: 4px 16px;
    z-index: 2;
    letter-spacing: 1.5px;
    border: 1px solid var(--border);
    border-radius: 20px;
}

.timeline-year:first-of-type { margin-top: 0; }

.timeline-item {
    position: relative;
    width: 50%;
    padding: 8px 40px;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1), transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.timeline-item.visible {
    opacity: 1;
    transform: translateY(0);
}

.timeline-item.left {
    left: 0;
    text-align: right;
}

.timeline-item.right {
    left: 50%;
    text-align: left;
}

.timeline-dot {
    position: absolute;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--border);
    top: 26px;
    z-index: 2;
    transition: background 0.3s ease;
}

.timeline-item.left .timeline-dot { right: -5px; }
.timeline-item.right .timeline-dot { left: -5px; }

.timeline-item.visible .timeline-dot {
    background: var(--accent);
    box-shadow: 0 0 10px var(--accent);
}

.timeline-card {
    display: inline-flex;
    align-items: center;
    gap: 16px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 16px 20px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    cursor: none;
    text-align: left;
    width: 100%;
}

.timeline-card:hover {
    border-color: var(--border-hover);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.timeline-card.highlight-card {
    border-color: rgba(168, 85, 247, 0.3);
    background: rgba(168, 85, 247, 0.02);
}

.timeline-card.highlight-card:hover {
    border-color: var(--accent);
    box-shadow: 0 8px 24px var(--accent-soft);
}

.timeline-item.left .timeline-card {
    flex-direction: row-reverse;
}

.timeline-card-icon {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.timeline-card-icon img {
    width: 32px;
    height: 32px;
    filter: grayscale(100%) brightness(0.6);
    transition: filter 0.3s ease;
}

.timeline-card:hover .timeline-card-icon img {
    filter: grayscale(0%) brightness(1);
}

.timeline-card-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.timeline-card-title {
    font-family: var(--font-mono);
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
}

.timeline-card-date {
    font-size: 11px;
    color: var(--text-dim);
    line-height: 1.5;
}

@media (max-width: 768px) {
    .timeline-line { left: 24px; }
    .timeline-item { width: 100%; left: 0 !important; padding: 10px 0 10px 48px; text-align: left !important; }
    .timeline-item .timeline-dot { left: 19px !important; }
    .timeline-item.left .timeline-card { flex-direction: row; }
}

/* ========== AWS STARTUP PITCH ========== */
.aws-pitch-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.aws-pitch-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 32px;
    opacity: 0;
    transform: translateY(30px);
}
.aws-pitch-card.visible { opacity: 1; transform: translateY(0); }

.aws-pitch-card h3 {
    font-family: var(--font-mono);
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 16px;
    position: relative;
    padding-bottom: 10px;
}
.aws-pitch-card h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 1.5px;
    background: var(--accent);
}

.aws-pitch-card p {
    font-size: 12px;
    color: var(--text-dim);
    line-height: 1.6;
}

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

/* ========== MODAL ========== */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(5, 5, 7, 0.85);
    backdrop-filter: blur(8px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal-overlay.show { opacity: 1; visibility: visible; }

.modal-container {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 24px;
    max-width: 800px;
    width: 100%;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transform: translateY(30px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.modal-overlay.show .modal-container { transform: translateY(0); }

.modal-header {
    background: rgba(10, 10, 15, 0.6);
    border-bottom: 1px solid var(--border);
    padding: 20px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 { font-family: var(--font-mono); font-size: 15px; color: var(--text); }
.modal-close {
    background: transparent;
    border: none;
    color: var(--text-dim);
    font-size: 24px;
    line-height: 1;
    cursor: none;
    transition: color 0.3s ease;
}
.modal-close:hover { color: var(--text); }

.modal-body {
    flex: 1;
    overflow-y: auto;
    padding: 32px 24px;
}

.modal-body h4 { font-family: var(--font-mono); font-size: 13.5px; color: var(--text); margin: 24px 0 12px 0; }
.modal-body h4:first-of-type { margin-top: 0; }
.modal-body p { font-size: 13px; color: var(--text-dim); line-height: 1.6; margin-bottom: 16px; }
.modal-body ul { list-style: none; margin-bottom: 16px; display: flex; flex-direction: column; gap: 8px; }
.modal-body li { font-size: 12.5px; color: var(--text-dim); position: relative; padding-left: 14px; }
.modal-body li::before { content: '▲'; color: var(--accent); font-size: 8px; position: absolute; left: 0; top: 4px; }

/* Table inside Modal */
.modal-body table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    font-size: 12px;
}

.modal-body th, .modal-body td {
    padding: 10px 12px;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

.modal-body th { font-family: var(--font-mono); font-size: 11px; color: var(--text-dim); background: rgba(10, 10, 15, 0.4); }
.modal-body td { color: var(--text); }

.modal-footer-note {
    font-family: var(--font-mono);
    font-size: 11px !important;
    background: var(--accent-soft);
    color: var(--accent) !important;
    border: 1px solid rgba(168, 85, 247, 0.2);
    padding: 16px;
    border-radius: 12px;
    margin-top: 24px;
}

/* ========== FOOTER ========== */
.footer {
    padding: 80px 0 40px 0;
}

.footer-line {
    width: 100%;
    height: 1px;
    background: var(--border);
    margin-bottom: 48px;
}

.footer-grid {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 32px;
}

.footer-logo-section {
    max-width: 320px;
}

.footer-logo {
    width: 32px;
    height: 32px;
    margin-bottom: 16px;
}

.footer-logo-section p {
    font-size: 12px;
    color: var(--text-dim);
    line-height: 1.5;
}

.footer-links-section {
    display: flex;
    gap: 32px;
}

.footer-links-section a {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--text-dim);
    text-decoration: none;
    transition: color 0.3s ease;
    cursor: none;
}
.footer-links-section a:hover { color: var(--text); }

.copyright {
    margin-top: 48px;
    font-size: 11px;
    color: #3f3f46;
    text-align: center;
}

@media (max-width: 600px) {
    .footer-grid { flex-direction: column; align-items: center; text-align: center; }
    .footer-links-section { flex-direction: column; gap: 16px; align-items: center; }
}
