/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #6366f1;
    --primary-dark: #4f46e5;
    --secondary-color: #8b5cf6;
    --accent-color: #ec4899;
    --text-primary: #1f2937;
    --text-secondary: #6b7280;
    --bg-primary: #ffffff;
    --bg-secondary: #f9fafb;
    --bg-dark: #111827;
    --border-color: #e5e7eb;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --error-color: #ef4444;
    --gradient-1: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-2: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --gradient-3: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-primary);
    overflow-x: hidden;
}

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

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
    z-index: 1000;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    box-shadow: var(--shadow-md);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 20px;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-color);
}

.nav-brand i {
    font-size: 1.5rem;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-link {
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

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

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

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

.github-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--primary-color);
    color: white !important;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
}

.github-link:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

.github-link::after {
    display: none;
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 4px;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 120px 20px 80px;
    overflow: hidden;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
}

.particle {
    position: absolute;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    animation: float 20s infinite ease-in-out;
}

.particle:nth-child(1) {
    width: 80px;
    height: 80px;
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.particle:nth-child(2) {
    width: 120px;
    height: 120px;
    top: 60%;
    right: 10%;
    animation-delay: 2s;
}

.particle:nth-child(3) {
    width: 60px;
    height: 60px;
    bottom: 20%;
    left: 20%;
    animation-delay: 4s;
}

.particle:nth-child(4) {
    width: 100px;
    height: 100px;
    top: 30%;
    right: 30%;
    animation-delay: 6s;
}

.particle:nth-child(5) {
    width: 70px;
    height: 70px;
    bottom: 40%;
    right: 20%;
    animation-delay: 8s;
}

@keyframes float {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg);
        opacity: 0.3;
    }
    50% {
        transform: translate(50px, -50px) rotate(180deg);
        opacity: 0.6;
    }
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    color: white;
    max-width: 800px;
    margin: 0 auto;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.gradient-text {
    background: linear-gradient(135deg, #ffffff 0%, #e0e7ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    opacity: 0.95;
}

.hero-description {
    font-size: 1.125rem;
    margin-bottom: 2.5rem;
    opacity: 0.9;
    line-height: 1.8;
}

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

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background: white;
    color: var(--primary-color);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-outline:hover {
    background: var(--primary-color);
    color: white;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
}

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

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.875rem;
    opacity: 0.8;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
    color: white;
    font-size: 1.5rem;
    opacity: 0.7;
}

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

/* Animations */
.fade-in {
    animation: fadeIn 1s ease-out;
}

.fade-in-delay-1 {
    animation: fadeIn 1s ease-out 0.2s both;
}

.fade-in-delay-2 {
    animation: fadeIn 1s ease-out 0.4s both;
}

.fade-in-delay-3 {
    animation: fadeIn 1s ease-out 0.6s both;
}

.fade-in-delay-4 {
    animation: fadeIn 1s ease-out 0.8s both;
}

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

[data-aos] {
    opacity: 0;
    transition: opacity 0.6s ease, transform 0.6s ease;
}

[data-aos].aos-animate {
    opacity: 1;
}

[data-aos="fade-up"] {
    transform: translateY(30px);
}

[data-aos="fade-up"].aos-animate {
    transform: translateY(0);
}

[data-aos="fade-left"] {
    transform: translateX(-30px);
}

[data-aos="fade-left"].aos-animate {
    transform: translateX(0);
}

[data-aos="fade-right"] {
    transform: translateX(30px);
}

[data-aos="fade-right"].aos-animate {
    transform: translateX(0);
}

[data-aos="zoom-in"] {
    transform: scale(0.9);
}

[data-aos="zoom-in"].aos-animate {
    transform: scale(1);
}

/* Section Styles */
section {
    padding: 80px 0;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.section-subtitle {
    text-align: center;
    color: var(--text-secondary);
    font-size: 1.125rem;
    margin-bottom: 3rem;
}

/* Features Section */
.features {
    background: var(--bg-secondary);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.feature-card {
    background: white;
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-color);
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient-1);
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    color: white;
}

.feature-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

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

/* Architecture Section */
.architecture {
    background: white;
}

.architecture-diagram {
    max-width: 600px;
    margin: 3rem auto;
}

.arch-layer {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 2rem;
    background: var(--bg-secondary);
    border-radius: 1rem;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

.arch-layer.highlight {
    background: var(--gradient-1);
    color: white;
    box-shadow: var(--shadow-lg);
}

.arch-layer:hover {
    transform: translateX(10px);
}

.layer-icon {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.arch-layer.highlight .layer-icon {
    background: rgba(255, 255, 255, 0.3);
}

.layer-content h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.layer-content p {
    opacity: 0.8;
}

.arch-arrow {
    text-align: center;
    color: var(--primary-color);
    font-size: 1.5rem;
    margin: 0.5rem 0;
}

.architecture-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.arch-feature {
    text-align: center;
    padding: 2rem;
}

.arch-feature i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.arch-feature h4 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.arch-feature p {
    color: var(--text-secondary);
}

/* Quick Start Section */
.quickstart {
    background: var(--bg-secondary);
}

.quickstart-steps {
    max-width: 800px;
    margin: 3rem auto;
}

.step {
    display: flex;
    gap: 2rem;
    margin-bottom: 2rem;
    align-items: flex-start;
}

.step-number {
    width: 50px;
    height: 50px;
    background: var(--gradient-1);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    flex-shrink: 0;
}

.step-content {
    flex: 1;
    background: white;
    padding: 1.5rem;
    border-radius: 0.5rem;
    box-shadow: var(--shadow-md);
}

.step-content h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.step-content pre {
    background: var(--bg-dark);
    color: #10b981;
    padding: 1rem;
    border-radius: 0.5rem;
    overflow-x: auto;
    font-family: 'Courier New', monospace;
    font-size: 0.875rem;
}

.step-content code {
    color: #10b981;
}

.quickstart-links {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 3rem;
    flex-wrap: wrap;
}

/* Updates Section */
.updates {
    background: white;
}

.updates-timeline {
    max-width: 900px;
    margin: 3rem auto;
    position: relative;
    padding-left: 2rem;
}

.updates-timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--gradient-1);
}

.update-item {
    display: flex;
    gap: 2rem;
    margin-bottom: 3rem;
    position: relative;
}

.update-item::before {
    content: '';
    position: absolute;
    left: -2.5rem;
    top: 0.5rem;
    width: 12px;
    height: 12px;
    background: var(--primary-color);
    border-radius: 50%;
    border: 3px solid white;
    box-shadow: 0 0 0 3px var(--primary-color);
}

.update-date {
    width: 80px;
    text-align: center;
    flex-shrink: 0;
    padding-top: 0.5rem;
}

.date-day {
    display: block;
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary-color);
    line-height: 1;
}

.date-month {
    display: block;
    font-size: 0.875rem;
    text-transform: uppercase;
    color: var(--text-secondary);
    margin-top: 0.25rem;
}

.date-year {
    display: block;
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-top: 0.25rem;
}

.update-content {
    flex: 1;
    background: var(--bg-secondary);
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: var(--shadow-md);
}

.update-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: var(--primary-color);
    color: white;
    border-radius: 0.25rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.update-content h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.update-content p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    line-height: 1.7;
}

.update-list {
    list-style: none;
    margin: 1rem 0;
}

.update-list li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
    color: var(--text-secondary);
}

.update-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--success-color);
    font-weight: 700;
}

.update-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    margin-top: 1rem;
    transition: gap 0.3s ease;
}

.update-link:hover {
    gap: 1rem;
}

.updates-footer {
    text-align: center;
    margin-top: 3rem;
    color: var(--text-secondary);
}

.updates-footer a {
    color: var(--primary-color);
    text-decoration: none;
}

.updates-footer a:hover {
    text-decoration: underline;
}

/* Footer */
.footer {
    background: var(--bg-dark);
    color: white;
    padding: 4rem 0 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-section h3,
.footer-section h4 {
    margin-bottom: 1rem;
    color: white;
}

.footer-section p {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.7;
    margin-bottom: 1rem;
}

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

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: white;
}

.footer-social {
    display: flex;
    gap: 1rem;
}

.footer-social a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-social a:hover {
    background: var(--primary-color);
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.7);
}

.footer-bottom p {
    margin-bottom: 0.5rem;
}

.footer-bottom i {
    color: var(--error-color);
}

/* Responsive Design */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        flex-direction: column;
        background: white;
        width: 100%;
        padding: 2rem;
        box-shadow: var(--shadow-lg);
        transition: left 0.3s ease;
        gap: 1rem;
    }

    .nav-menu.active {
        left: 0;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.25rem;
    }

    .hero-description {
        font-size: 1rem;
    }

    .section-title {
        font-size: 2rem;
    }

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

    .step {
        flex-direction: column;
    }

    .step-number {
        align-self: flex-start;
    }

    .update-item {
        flex-direction: column;
    }

    .update-date {
        width: 100%;
        text-align: left;
    }

    .hero-stats {
        gap: 2rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: stretch;
    }

    .btn {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }

    .container {
        padding: 0 15px;
    }

    section {
        padding: 60px 0;
    }
}

/* Page Header (for sub-pages) */
.page-header {
    background: var(--gradient-1);
    color: white;
    padding: 120px 20px 60px;
    text-align: center;
}

.page-header h1 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

.page-header p {
    font-size: 1.25rem;
    opacity: 0.9;
}

/* Content Sections */
.content-section {
    padding: 60px 0;
}

.content-section.bg-light {
    background: var(--bg-secondary);
}

.content-card {
    background: white;
    padding: 2.5rem;
    border-radius: 1rem;
    box-shadow: var(--shadow-md);
    margin-bottom: 2rem;
}

.content-card h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.content-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 2rem 0 1rem;
    color: var(--text-primary);
}

.content-card h4 {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 1.5rem 0 1rem;
    color: var(--text-primary);
}

.content-card p {
    margin-bottom: 1rem;
    line-height: 1.8;
    color: var(--text-secondary);
}

.content-card ul, .content-card ol {
    margin: 1rem 0;
    padding-left: 2rem;
    line-height: 1.8;
}

.content-card li {
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
}

/* Info and Warning Boxes */
.info-box {
    background: #dbeafe;
    border-left: 4px solid var(--primary-color);
    padding: 1.5rem;
    margin: 1.5rem 0;
    border-radius: 0.5rem;
    display: flex;
    gap: 1rem;
}

.info-box i {
    color: var(--primary-color);
    font-size: 1.5rem;
    flex-shrink: 0;
}

.warning-box {
    background: #fef3c7;
    border-left: 4px solid var(--warning-color);
    padding: 1.5rem;
    margin: 1.5rem 0;
    border-radius: 0.5rem;
    display: flex;
    gap: 1rem;
}

.warning-box.large {
    padding: 2rem;
}

.warning-box i {
    color: var(--warning-color);
    font-size: 1.5rem;
    flex-shrink: 0;
}

.warning-box h2 {
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.warning-box ul {
    margin-top: 1rem;
}

/* Process Timeline */
.process-timeline {
    max-width: 800px;
    margin: 2rem auto;
}

.timeline-item {
    display: flex;
    gap: 2rem;
    margin-bottom: 2rem;
    align-items: flex-start;
}

.timeline-marker {
    width: 50px;
    height: 50px;
    background: var(--gradient-1);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    flex-shrink: 0;
}

.timeline-content {
    flex: 1;
    background: white;
    padding: 1.5rem;
    border-radius: 0.5rem;
    box-shadow: var(--shadow-md);
}

.timeline-content h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.timeline-content ul {
    margin-top: 1rem;
}

/* Process Flow */
.process-flow {
    max-width: 700px;
    margin: 2rem auto;
}

.flow-step {
    background: white;
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: var(--shadow-md);
    margin-bottom: 1rem;
    text-align: center;
}

.flow-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient-1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
    color: white;
}

.flow-step h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.flow-step ul {
    text-align: left;
    max-width: 500px;
    margin: 1rem auto;
}

.flow-arrow {
    text-align: center;
    color: var(--primary-color);
    font-size: 2rem;
    margin: 1rem 0;
}

/* Backup Diagram */
.backup-diagram {
    margin: 2rem 0;
}

.backup-step {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 1.5rem 0;
    justify-content: center;
}

.backup-box {
    padding: 1.5rem 2rem;
    border-radius: 0.5rem;
    font-weight: 600;
    text-align: center;
    min-width: 150px;
}

.backup-box.new {
    background: var(--gradient-1);
    color: white;
}

.backup-box.a {
    background: #dbeafe;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.backup-box.b {
    background: #e0e7ff;
    color: var(--secondary-color);
    border: 2px solid var(--secondary-color);
}

.backup-box.deleted {
    background: #fee2e2;
    color: var(--error-color);
    border: 2px dashed var(--error-color);
}

.backup-box small {
    display: block;
    font-size: 0.75rem;
    margin-top: 0.5rem;
    opacity: 0.8;
}

/* Memory Layout */
.memory-layout {
    margin: 2rem 0;
}

.memory-block {
    border: 2px solid var(--border-color);
    border-radius: 0.5rem;
    margin-bottom: 1rem;
    overflow: hidden;
}

.block-header {
    background: var(--bg-secondary);
    padding: 1rem;
    font-weight: 700;
    border-bottom: 2px solid var(--border-color);
}

.block-details {
    padding: 1.5rem;
    line-height: 1.8;
}

.memory-block.firmware .block-header {
    background: #dbeafe;
    color: var(--primary-color);
}

.memory-block.src .block-header {
    background: var(--gradient-1);
    color: white;
}

.memory-block.reserved .block-header {
    background: #f3f4f6;
    color: var(--text-secondary);
}

/* State Diagram */
.state-diagram {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin: 2rem 0;
}

.state-box {
    padding: 1.5rem 2rem;
    border-radius: 0.5rem;
    text-align: center;
    font-weight: 600;
    min-width: 150px;
    background: var(--bg-secondary);
    border: 2px solid var(--border-color);
}

.state-box.init {
    background: #dbeafe;
    border-color: var(--primary-color);
}

.state-box.checking {
    background: #fef3c7;
    border-color: var(--warning-color);
}

.state-box.success {
    background: #d1fae5;
    border-color: var(--success-color);
}

.state-box.backup {
    background: #dbeafe;
    border-color: var(--primary-color);
}

.state-box.failed {
    background: #fee2e2;
    border-color: var(--error-color);
}

.state-box.recovering {
    background: #fef3c7;
    border-color: var(--warning-color);
}

.state-box.disabled {
    background: #f3f4f6;
    border-color: var(--text-secondary);
}

.state-box.removing {
    background: #fee2e2;
    border-color: var(--error-color);
}

.state-box small {
    display: block;
    font-size: 0.75rem;
    margin-top: 0.5rem;
    opacity: 0.7;
}

.state-arrow {
    color: var(--primary-color);
    font-size: 1.5rem;
}

.state-branch {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    margin-top: 1rem;
}

/* Removal Steps */
.removal-steps {
    max-width: 900px;
    margin: 2rem auto;
}

.removal-step {
    background: white;
    border-radius: 1rem;
    box-shadow: var(--shadow-md);
    margin-bottom: 2rem;
    overflow: hidden;
}

.step-header {
    background: var(--gradient-1);
    color: white;
    padding: 2rem;
    display: flex;
    align-items: center;
    gap: 2rem;
}

.step-number-large {
    width: 70px;
    height: 70px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 800;
    flex-shrink: 0;
}

.step-header h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
}

.step-content {
    padding: 2rem;
}

.confirmation-box {
    background: var(--bg-secondary);
    border-left: 4px solid var(--primary-color);
    padding: 1.5rem;
    margin: 1.5rem 0;
    border-radius: 0.5rem;
}

.confirmation-box.warning {
    border-color: var(--warning-color);
    background: #fef3c7;
}

.confirmation-box h4 {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.confirmation-box .note {
    margin-top: 0.5rem;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.checklist {
    list-style: none;
    padding-left: 0;
}

.checklist li {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem 0;
}

.checklist i {
    color: var(--success-color);
    font-size: 1.25rem;
}

.numbered-list {
    counter-reset: step-counter;
    list-style: none;
    padding-left: 0;
}

.numbered-list li {
    counter-increment: step-counter;
    padding-left: 3rem;
    position: relative;
    margin-bottom: 1rem;
}

.numbered-list li::before {
    content: counter(step-counter);
    position: absolute;
    left: 0;
    top: 0;
    width: 2rem;
    height: 2rem;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

/* Troubleshooting */
.troubleshooting-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.troubleshooting-item {
    background: white;
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: var(--shadow-md);
}

.troubleshooting-item h3 {
    color: var(--error-color);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.troubleshooting-item ol {
    margin-top: 1rem;
}

/* Emergency Steps */
.emergency-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.emergency-step {
    background: white;
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: var(--shadow-md);
    text-align: center;
}

.emergency-step h3 {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.emergency-step i {
    color: var(--primary-color);
}

/* FAQ */
.faq-list {
    max-width: 800px;
    margin: 2rem auto;
}

.faq-item {
    background: white;
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: var(--shadow-md);
    margin-bottom: 1.5rem;
}

.faq-item h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.faq-item p {
    color: var(--text-secondary);
    line-height: 1.8;
}

/* Wiki Styles */
.wiki-toc {
    background: white;
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: var(--shadow-md);
    margin-bottom: 2rem;
}

.wiki-toc h2 {
    margin-bottom: 1.5rem;
}

.wiki-toc ul {
    list-style: none;
    padding-left: 0;
}

.wiki-toc li {
    margin-bottom: 0.75rem;
}

.wiki-toc a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.wiki-toc a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

.wiki-article {
    background: white;
    padding: 3rem;
    border-radius: 1rem;
    box-shadow: var(--shadow-md);
    margin-bottom: 2rem;
}

.wiki-article h2 {
    font-size: 2rem;
    font-weight: 700;
    margin: 2rem 0 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--border-color);
}

.wiki-article h2:first-child {
    margin-top: 0;
}

.wiki-article h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 1.5rem 0 1rem;
}

.wiki-article p {
    margin-bottom: 1rem;
    line-height: 1.8;
}

.wiki-infobox {
    background: var(--bg-secondary);
    border: 2px solid var(--border-color);
    border-radius: 0.5rem;
    padding: 2rem;
    margin: 2rem 0;
    float: right;
    width: 300px;
    margin-left: 2rem;
}

.wiki-infobox h3 {
    margin-top: 0;
    margin-bottom: 1rem;
}

.wiki-infobox table {
    width: 100%;
}

.wiki-infobox td {
    padding: 0.5rem 0;
    vertical-align: top;
}

.wiki-infobox td:first-child {
    font-weight: 600;
    padding-right: 1rem;
}

.wiki-table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
}

.wiki-table th,
.wiki-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.wiki-table th {
    background: var(--bg-secondary);
    font-weight: 700;
}

.wiki-table tr:hover {
    background: var(--bg-secondary);
}

.timeline {
    list-style: none;
    padding-left: 0;
    position: relative;
    padding-left: 2rem;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--gradient-1);
}

.timeline li {
    position: relative;
    padding-left: 2rem;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
}

.timeline li::before {
    content: '';
    position: absolute;
    left: -0.5rem;
    top: 0;
    width: 12px;
    height: 12px;
    background: var(--primary-color);
    border-radius: 50%;
    border: 3px solid white;
    box-shadow: 0 0 0 3px var(--primary-color);
}

/* Terms Styles */
.terms-content {
    max-width: 900px;
    margin: 0 auto;
}

.terms-section {
    background: white;
    padding: 2.5rem;
    border-radius: 1rem;
    box-shadow: var(--shadow-md);
    margin-bottom: 2rem;
}

.terms-section h2 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--border-color);
}

.terms-section p {
    margin-bottom: 1rem;
    line-height: 1.8;
    color: var(--text-secondary);
}

.terms-section ul {
    margin: 1rem 0;
    padding-left: 2rem;
}

.terms-section li {
    margin-bottom: 0.5rem;
    line-height: 1.8;
}

.terms-acknowledgment {
    background: var(--gradient-1);
    color: white;
    padding: 3rem;
    border-radius: 1rem;
    text-align: center;
    margin-top: 3rem;
}

.terms-acknowledgment h2 {
    color: white;
    border: none;
    margin-bottom: 1.5rem;
}

.terms-acknowledgment p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.125rem;
}

/* Responsive adjustments for new pages */
@media (max-width: 768px) {
    .page-header h1 {
        font-size: 2rem;
    }

    .wiki-infobox {
        float: none;
        width: 100%;
        margin-left: 0;
    }

    .state-diagram {
        flex-direction: column;
    }

    .backup-step {
        flex-direction: column;
    }

    .step-header {
        flex-direction: column;
        text-align: center;
    }

    .content-card,
    .wiki-article,
    .terms-section {
        padding: 1.5rem;
    }
}

