/* CSS Variables */
:root {
    --bg-primary: #1a1a2e;
    --bg-secondary: #16213e;
    --bg-card: #1f2940;
    --accent: #e94560;
    --accent-hover: #ff6b6b;
    --text-primary: #eeeeee;
    --text-secondary: #b8b8b8;
    --text-muted: #888888;
    --border-color: #2a3550;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    --transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.7;
    font-size: 16px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Container */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header & Navigation */
.header {
    background-color: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1001;
    box-shadow: var(--shadow);
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.nav-logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent);
    text-decoration: none;
    transition: var(--transition);
}

.nav-logo:hover {
    color: var(--accent-hover);
}

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

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: var(--transition);
    padding: 0.5rem 0;
    position: relative;
}

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

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

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

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

.nav-toggle span {
    width: 25px;
    height: 2px;
    background-color: var(--text-primary);
    transition: var(--transition);
}

/* Main Content */
.main {
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* Hero Section */
.hero {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0;
    margin: 0;
}

.hero-content {
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem 20px;
    overflow: visible;
}

.hero-title {
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    font-weight: 300;
    line-height: 1.4;
    color: var(--text-primary);
    margin-bottom: 2rem;
}

.hero-title .highlight {
    font-weight: 600;
    color: var(--accent);
}

.divider {
    width: 100px;
    height: 3px;
    background: linear-gradient(90deg, var(--accent), transparent);
    margin: 2rem auto;
    border-radius: 2px;
}

.hero-subtitle {
    font-size: clamp(1.2rem, 3vw, 1.8rem);
    font-weight: 300;
    line-height: 1.5;
    color: var(--text-secondary);
}

.hero-subtitle .highlight {
    font-weight: 500;
    color: var(--accent);
}

/* Content Pages */
.content-section {
    padding: 4rem 20px;
    flex: 1;
}

.page-title {
    font-size: clamp(1.8rem, 5vw, 2.5rem);
    font-weight: 600;
    color: var(--accent);
    margin-bottom: 2rem;
    text-align: center;
}

.content-card {
    background-color: var(--bg-card);
    border-radius: 16px;
    padding: 2.5rem;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
}

.content-card p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    text-align: justify;
}

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

.content-card h2:first-of-type {
    margin-top: 0;
}

/* Footer */
.footer {
    background-color: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    padding: 1.5rem 20px;
    text-align: center;
    position: relative;
    z-index: 1000;
}

.footer p {
    color: var(--text-muted);
    font-size: 0.875rem;
}

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

    .nav-menu {
        position: fixed;
        top: 60px;
        left: -100%;
        flex-direction: column;
        width: 100%;
        background-color: var(--bg-secondary);
        padding: 2rem;
        gap: 1rem;
        transition: var(--transition);
        border-bottom: 1px solid var(--border-color);
    }

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

    .nav-link {
        display: block;
        padding: 0.75rem 0;
        text-align: center;
    }

    .nav-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }

    .content-card {
        padding: 1.5rem;
    }

    .hero {
        padding: 1rem 20px !important;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .content-card {
        padding: 1.25rem;
        border-radius: 12px;
    }

    .content-card h2 {
        font-size: 1.1rem;
    }
}

/* Terminal and Consent Containers */
.terminal-container,
.consent-section {
    max-width: 700px;
    margin: 0 auto;
    padding: 0;
    min-height: 0;
    height: 0;
    visibility: hidden;
    overflow: hidden;
    position: relative;
}

.terminal-container.hidden,
.consent-section.hidden {
    visibility: hidden;
}

.terminal-container.visible,
.consent-section.visible {
    visibility: visible;
    height: 250px;
    min-height: 250px;
    overflow: visible;
    margin-bottom: 0;
}

/* Terminal Window */
.terminal-window {
    background-color: #0d0d14;
    border-radius: 8px;
    box-shadow: 0 10px 50px rgba(233, 69, 96, 0.2);
    border: 1px solid rgba(233, 69, 96, 0.3);
    overflow: hidden;
    font-family: 'Courier New', monospace;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.terminal-header {
    background-color: #1a1a2e;
    padding: 8px 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    border-bottom: 1px solid rgba(233, 69, 96, 0.2);
}

.terminal-buttons {
    display: flex;
    gap: 5px;
}

.terminal-btn {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.terminal-btn.close {
    background-color: #ff5f56;
}

.terminal-btn.minimize {
    background-color: #ffbd2e;
}

.terminal-btn.maximize {
    background-color: #27ca40;
}

.terminal-title {
    color: #b8b8b8;
    font-size: 11px;
    font-weight: 500;
    margin-left: 8px;
}

.terminal-body {
    padding: 15px;
    min-height: 250px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.terminal-content {
    color: #e94560;
    font-size: 12px;
    line-height: 1.6;
    flex: 1;
    overflow-y: auto;
    margin-bottom: 0;
    text-shadow: 0 0 5px rgba(233, 69, 96, 0.3);
    min-height: 0;
}

.terminal-content::-webkit-scrollbar {
    width: 4px;
}

.terminal-content::-webkit-scrollbar-track {
    background: #1a1a2e;
}

.terminal-content::-webkit-scrollbar-thumb {
    background: #e94560;
    border-radius: 2px;
}

.loading-line {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 3px;
}

.prompt {
    color: #e94560;
    font-weight: 700;
}

.command {
    color: #b8b8b8;
}

/* Progress Bar */
.progress-container {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
    height: 25px;
}

.progress-bar {
    flex: 1;
    height: 16px;
    background-color: #1a1a2e;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid rgba(233, 69, 96, 0.3);
}

.progress-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #e94560, #ff6b6b);
    border-radius: 8px;
    transition: width 0.3s ease;
    box-shadow: 0 0 10px rgba(233, 69, 96, 0.5);
}

.progress-text {
    color: #e94560;
    font-size: 12px;
    font-weight: 700;
    min-width: 35px;
    text-align: right;
}

.consent-box {
    background: #1a1a1a;
    border: 2px solid #f39c12;
    border-radius: 8px;
    padding: 30px;
    max-width: 500px;
    width: 100%;
    margin: 0 auto;
    text-align: center;
    box-shadow: 0 10px 30px rgba(243, 156, 18, 0.3);
}

.debug-id {
    display: block;
    font-size: 12px;
    color: #3498db;
    margin-bottom: 15px;
    font-family: monospace;
    background: rgba(52, 152, 219, 0.1);
    padding: 5px 10px;
    border-radius: 4px;
}

.consent-icon {
    font-size: 32px;
    margin-bottom: 8px;
    line-height: 1;
}

.consent-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--accent);
    margin-bottom: 10px;
    line-height: 1.3;
}

.consent-message {
    color: var(--text-secondary);
    font-size: 13px;
    line-height: 1.5;
    margin-bottom: 15px;
}

.consent-details {
    color: var(--accent-hover);
    font-size: 11px;
    display: block;
    margin-top: 5px;
    line-height: 1.4;
}

.consent-buttons {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 10px;
}

.consent-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 130px;
    height: 40px;
    flex: 1;
    max-width: 180px;
}

.consent-yes {
    background-color: var(--accent);
    color: white;
}

.consent-yes:hover {
    background-color: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(233, 69, 96, 0.4);
}

.consent-no {
    background-color: transparent;
    color: var(--text-secondary);
    border: 2px solid var(--border-color);
}

.consent-no:hover {
    border-color: var(--accent);
    color: var(--accent);
    transform: translateY(-2px);
}

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

.hero-content {
    animation: fadeIn 0.6s ease-out;
}

.content-card {
    animation: fadeIn 0.6s ease-out;
}

/* Blink cursor effect */
@keyframes blink {
    0%, 50% {
        opacity: 1;
    }
    51%, 100% {