:root {
    --bg-primary: #0a0a0f;
    --bg-secondary: #13141c;
    --accent-primary: #6366f1;
    --accent-secondary: #a855f7;
    --accent-glow: rgba(99, 102, 241, 0.4);
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --border-color: rgba(255, 255, 255, 0.08);
    --glass-bg: rgba(19, 20, 28, 0.6);
    --success: #10b981;
    --danger: #ef4444;
}

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

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    overflow: hidden; /* Prevent body scroll, handle in main */
    background-image: 
        radial-gradient(circle at 15% 50%, rgba(99, 102, 241, 0.08), transparent 25%),
        radial-gradient(circle at 85% 30%, rgba(168, 85, 247, 0.08), transparent 25%);
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Outfit', sans-serif;
}

/* Layout */
.app-container {
    display: flex;
    height: 100vh;
    width: 100vw;
}

/* Sidebar */
.sidebar {
    width: 320px;
    display: flex;
    flex-direction: column;
    border-right: 1px solid var(--border-color);
    z-index: 10;
}

.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.sidebar-header {
    padding: 32px 24px;
    border-bottom: 1px solid var(--border-color);
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 8px;
}

.logo-icon {
    font-size: 32px;
    filter: drop-shadow(0 0 8px var(--accent-glow));
    animation: float 3s ease-in-out infinite;
}

.logo-text {
    font-size: 24px;
    line-height: 1.1;
    letter-spacing: -0.5px;
}

.logo-text span {
    color: var(--accent-primary);
    font-weight: 800;
}

.subtitle {
    font-size: 13px;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.sidebar-nav {
    flex: 1;
    padding: 24px 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    overflow-y: auto;
}

.nav-btn {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    padding: 16px 20px;
    text-align: left;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: 'Inter', sans-serif;
}

.nav-btn:hover {
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-primary);
    transform: translateX(4px);
}

.nav-btn.active {
    background: linear-gradient(90deg, rgba(99, 102, 241, 0.15) 0%, transparent 100%);
    color: var(--accent-primary);
    border-left: 3px solid var(--accent-primary);
}

.sidebar-footer {
    padding: 24px;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: var(--text-secondary);
}

.status-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
}

.dot {
    width: 8px;
    height: 8px;
    background-color: var(--success);
    border-radius: 50%;
}

.dot.pulse {
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4);
    animation: pulse 2s infinite;
}

/* Main Content */
.content-area {
    flex: 1;
    position: relative;
    overflow-y: auto;
    padding: 64px;
    scroll-behavior: smooth;
}

.content-section {
    display: none;
    max-width: 900px;
    margin: 0 auto;
    opacity: 0;
    transform: translateY(20px);
}

.content-section.active {
    display: block;
    animation: sectionFadeUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.section-header {
    margin-bottom: 48px;
}

.badge {
    display: inline-block;
    padding: 6px 12px;
    background: rgba(99, 102, 241, 0.1);
    color: var(--accent-primary);
    border-radius: 100px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 16px;
    border: 1px solid rgba(99, 102, 241, 0.2);
}

.section-header h2 {
    font-size: 48px;
    font-weight: 800;
    margin-bottom: 16px;
    background: linear-gradient(135deg, #fff 0%, #94a3b8 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.lead {
    font-size: 20px;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Components */
.glass-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 32px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.glass-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px -8px rgba(0, 0, 0, 0.5);
    border-color: rgba(255, 255, 255, 0.15);
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    margin-bottom: 32px;
}

.card-icon {
    font-size: 24px;
    width: 56px;
    height: 56px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    font-weight: bold;
}

.glass-card h3 {
    font-size: 22px;
    margin-bottom: 12px;
    color: white;
}

.glass-card p {
    color: var(--text-secondary);
    line-height: 1.7;
}

.content-block {
    margin-bottom: 24px;
}

.styled-list {
    list-style: none;
    margin-top: 16px;
}

.styled-list li {
    position: relative;
    padding-left: 28px;
    margin-bottom: 16px;
    color: var(--text-secondary);
    line-height: 1.6;
}

.styled-list li strong {
    color: var(--text-primary);
}

.styled-list li::before {
    content: "→";
    position: absolute;
    left: 0;
    color: var(--accent-primary);
}

.styled-list.slim li {
    margin-bottom: 8px;
}

/* Timeline */
.timeline {
    position: relative;
    padding-left: 40px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 20px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, var(--accent-primary), transparent);
}

.timeline-item {
    position: relative;
    margin-bottom: 32px;
}

.timeline-marker {
    position: absolute;
    left: -40px;
    width: 32px;
    height: 32px;
    background: var(--bg-primary);
    border: 2px solid var(--accent-primary);
    border-radius: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-family: 'Outfit';
    color: var(--accent-primary);
    z-index: 2;
}

.timeline-content {
    background: rgba(255, 255, 255, 0.02);
}

/* AI Visual */
.split-layout {
    display: flex;
    gap: 48px;
    align-items: center;
}

.text-col {
    flex: 1;
}

.visual-col {
    flex: 1;
    display: flex;
    justify-content: center;
}

.ai-visual {
    position: relative;
    width: 200px;
    height: 200px;
}

.orb {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: var(--accent-primary);
    border-radius: 50%;
    box-shadow: 0 0 40px var(--accent-primary);
    animation: orbPulse 4s ease-in-out infinite;
}

.ring {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    border: 1px solid rgba(168, 85, 247, 0.3);
}

.ring-1 { width: 100px; height: 100px; animation: spin 10s linear infinite; border-top-color: transparent; }
.ring-2 { width: 140px; height: 140px; animation: spin 15s linear infinite reverse; border-right-color: transparent; }
.ring-3 { width: 180px; height: 180px; animation: spin 20s linear infinite; border-bottom-color: transparent; }

/* Styling specifically for Do/Dont */
.danger .card-icon {
    color: var(--danger);
    background: rgba(239, 68, 68, 0.1);
}
.success .card-icon {
    color: var(--success);
    background: rgba(16, 185, 129, 0.1);
}

/* Tech Tags */
.tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.tag {
    background: rgba(255, 255, 255, 0.05);
    padding: 6px 14px;
    border-radius: 100px;
    font-size: 12px;
    font-weight: 500;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Animations */
@keyframes sectionFadeUp {
    0% { opacity: 0; transform: translateY(20px); filter: blur(4px); }
    100% { opacity: 1; transform: translateY(0); filter: blur(0); }
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4); }
    70% { box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); }
    100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

@keyframes float {
    0% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-8px) rotate(5deg); }
    100% { transform: translateY(0px) rotate(0deg); }
}

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

@keyframes spin {
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Custom Additions for Rocket Launch Bible Update */
.mt-8 {
    margin-top: 32px !important;
}

.subsection-title {
    font-size: 28px;
    margin-bottom: 24px;
    font-weight: 600;
    color: var(--text-primary);
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 12px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.service-item {
    padding: 24px;
}

.service-icon {
    font-size: 28px;
    margin-bottom: 16px;
    background: linear-gradient(135deg, rgba(99,102,241,0.2) 0%, transparent 100%);
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    border: 1px solid rgba(99,102,241,0.3);
}

.service-item h4 {
    font-size: 18px;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.service-item p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
}

.time-badge {
    font-size: 14px;
    background: rgba(168, 85, 247, 0.2);
    color: var(--accent-secondary);
    padding: 4px 10px;
    border-radius: 100px;
    margin-left: 8px;
    font-weight: 500;
    vertical-align: middle;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 24px;
    margin-bottom: 40px;
}

.stat-box {
    background: linear-gradient(180deg, rgba(255,255,255,0.05) 0%, transparent 100%);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 32px 24px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.stat-box:hover {
    transform: translateY(-5px);
    border-color: var(--accent-primary);
    box-shadow: 0 10px 30px -10px var(--accent-glow);
}

.stat-number {
    font-size: 48px;
    font-weight: 800;
    font-family: 'Outfit', sans-serif;
    background: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-secondary) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 8px;
}

.stat-label {
    font-size: 14px;
    color: var(--text-secondary);
    font-weight: 500;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.cases-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.case-card {
    display: flex;
    flex-direction: column;
}

.case-header {
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.case-industry {
    font-size: 11px;
    color: var(--accent-secondary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
    display: inline-block;
    background: rgba(168, 85, 247, 0.1);
    padding: 4px 12px;
    border-radius: 100px;
}

.case-card h3 {
    font-size: 22px;
    color: var(--text-primary);
}

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

.code-block {
    background: rgba(0, 0, 0, 0.4);
    padding: 24px;
    border-radius: 16px;
    font-family: 'Monaco', 'Consolas', monospace;
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-secondary);
    border: 1px solid rgba(255, 255, 255, 0.08);
    position: relative;
    overflow-x: auto;
}

.code-block::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 6px;
    height: 100%;
    background: linear-gradient(to bottom, var(--accent-primary), var(--accent-secondary));
}
