:root {
    --primary-blue: #3b82f6;
    --primary-purple: #8b5cf6;
    --primary-green: #10b981;
    --primary-red: #ef4444;
    --primary-orange: #f59e0b;
    --bg-dark: #0f172a;
    --bg-card: #1e293b;
    --border-color: #334155;
    --text-primary: #ffffff;
    --text-secondary: #cbd5e1;
    --text-muted: #94a3b8;
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, var(--bg-dark) 0%, var(--bg-card) 100%);
    min-height: 100vh;
    padding: 0;
    color: var(--text-primary);
    line-height: 1.6;
}

/* Navbar */
.navbar {
    background: linear-gradient(135deg, var(--bg-dark) 0%, var(--bg-card) 100%);
    padding: 1rem 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar ul {
    list-style: none;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.navbar a {
    color: var(--text-secondary);
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-weight: 500;
}

.navbar a:hover {
    background: rgba(59, 130, 246, 0.2);
    color: var(--primary-blue);
}

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

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #1e3a8a 0%, #3730a3 50%, #4f46e5 100%);
    border-radius: 24px;
    padding: 60px 50px;
    margin-bottom: 40px;
    box-shadow: 0 25px 80px rgba(59, 130, 246, 0.3);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
    animation: pulse 15s ease-in-out infinite;
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 0.5;
    }

    50% {
        transform: scale(1.1);
        opacity: 0.3;
    }
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-logo {
    font-size: 4em;
    margin-bottom: 10px;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
}

.hero h1 {
    font-size: 3.5em;
    font-weight: 800;
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    letter-spacing: -0.02em;
}

.hero-subtitle {
    font-size: 1.8em;
    font-weight: 300;
    opacity: 0.95;
    margin-bottom: 25px;
    letter-spacing: 0.02em;
}

.hero-description {
    font-size: 1.15em;
    opacity: 0.9;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.8;
}

.hero-description strong {
    color: #fbbf24;
}

/* Section Styles */
.section {
    background: var(--bg-card);
    border-radius: 20px;
    padding: 40px;
    margin-bottom: 30px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-color);
}

.section-title {
    font-size: 1.8em;
    font-weight: 700;
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 3px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 15px;
}

.section-icon {
    font-size: 1.3em;
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Comparison Grid */
.comparison-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    margin-top: 25px;
}

.comparison-card {
    background: linear-gradient(145deg, var(--bg-dark) 0%, rgba(30, 41, 59, 0.8) 100%);
    border-radius: 16px;
    padding: 30px;
    border: 3px solid;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.comparison-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: inherit;
    border-color: inherit;
}

.comparison-card.observation {
    border-color: var(--primary-blue);
}

.comparison-card.observation::before {
    background: linear-gradient(90deg, var(--primary-blue), #60a5fa);
}

.comparison-card.temporality {
    border-color: var(--primary-purple);
}

.comparison-card.temporality::before {
    background: linear-gradient(90deg, var(--primary-purple), #a78bfa);
}

.comparison-card.truth {
    border-color: var(--primary-green);
}

.comparison-card.truth::before {
    background: linear-gradient(90deg, var(--primary-green), #34d399);
}

.comparison-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(59, 130, 246, 0.25);
}

.card-header {
    font-size: 1.4em;
    font-weight: 700;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.card-icon {
    font-size: 1.8em;
}

.card-content {
    line-height: 2;
    color: var(--text-secondary);
    font-size: 0.95em;
}

.card-content strong {
    display: block;
    margin-top: 15px;
    margin-bottom: 8px;
    font-size: 1em;
}

/* Highlight Boxes */
.highlight-box {
    border-radius: 16px;
    padding: 30px;
    margin: 25px 0;
    border-left: 5px solid;
    position: relative;
}

.highlight-box.info {
    background: linear-gradient(135deg, rgba(30, 58, 138, 0.6) 0%, rgba(55, 48, 163, 0.4) 100%);
    border-left-color: var(--primary-blue);
}

.highlight-box.warning {
    background: linear-gradient(135deg, rgba(120, 53, 15, 0.6) 0%, rgba(146, 64, 14, 0.4) 100%);
    border-left-color: var(--primary-orange);
}

.highlight-box.success {
    background: linear-gradient(135deg, rgba(6, 95, 70, 0.6) 0%, rgba(4, 120, 87, 0.4) 100%);
    border-left-color: var(--primary-green);
}

.highlight-box h3 {
    margin-bottom: 15px;
    font-size: 1.4em;
    font-weight: 700;
}

.highlight-box p {
    line-height: 1.9;
    opacity: 0.95;
}

/* Scenario Cards */
.scenario-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    margin-top: 25px;
}

.scenario-card {
    background: linear-gradient(145deg, var(--bg-dark) 0%, rgba(30, 41, 59, 0.6) 100%);
    border-radius: 20px;
    padding: 35px;
    border-left: 6px solid;
    position: relative;
    overflow: hidden;
}

.scenario-card::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.03) 0%, transparent 70%);
    border-radius: 50%;
    transform: translate(50%, -50%);
}

.scenario-card.degradation {
    border-left-color: var(--primary-orange);
}

.scenario-card.invisible {
    border-left-color: var(--primary-purple);
}

.scenario-card.anticipation {
    border-left-color: var(--primary-green);
}

.scenario-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 25px;
    flex-wrap: wrap;
    gap: 15px;
}

.scenario-number {
    color: var(--text-muted);
    font-size: 0.85em;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 8px;
}

.scenario-title {
    font-size: 1.6em;
    font-weight: 700;
    color: #f1f5f9;
}

.scenario-badge {
    padding: 10px 20px;
    border-radius: 25px;
    font-size: 0.8em;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    white-space: nowrap;
}

.badge-degradation {
    background: linear-gradient(135deg, var(--primary-orange), #fbbf24);
    color: #1f2937;
}

.badge-invisible {
    background: linear-gradient(135deg, var(--primary-purple), #a78bfa);
    color: white;
}

.badge-anticipation {
    background: linear-gradient(135deg, var(--primary-green), #34d399);
    color: #1f2937;
}

.scenario-section {
    margin: 25px 0;
    padding: 25px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.scenario-section-title {
    font-weight: 700;
    color: var(--primary-green);
    margin-bottom: 15px;
    font-size: 1.15em;
    display: flex;
    align-items: center;
    gap: 10px;
}

.scenario-section-content {
    color: var(--text-secondary);
    line-height: 1.9;
}

.invisible-signal {
    background: linear-gradient(135deg, rgba(30, 27, 75, 0.8) 0%, rgba(49, 46, 129, 0.6) 100%);
    border-left: 4px solid var(--primary-purple);
    padding: 20px;
    border-radius: 10px;
    margin: 15px 0;
}

.invisible-signal strong {
    color: #c4b5fd;
    display: block;
    margin-bottom: 10px;
    font-size: 1.05em;
}

/* Timeline Comparison */
.timeline-comparison {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
    margin: 20px 0;
}

.timeline-column {
    background: var(--bg-dark);
    border-radius: 16px;
    padding: 25px;
    border: 2px solid;
}

.timeline-column.it {
    border-color: var(--primary-red);
}

.timeline-column.sinaapp {
    border-color: var(--primary-green);
}

.timeline-header {
    font-size: 1.2em;
    font-weight: 700;
    margin-bottom: 20px;
    text-align: center;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
}

.timeline-item {
    padding: 15px;
    margin: 12px 0;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 10px;
    border-left: 4px solid;
}

.timeline-item.it {
    border-left-color: var(--primary-red);
}

.timeline-item.sinaapp {
    border-left-color: var(--primary-green);
}

.timeline-day {
    font-weight: 700;
    color: var(--text-muted);
    margin-bottom: 8px;
    font-size: 0.9em;
}

.timeline-event {
    color: var(--text-secondary);
    line-height: 1.7;
}

.timeline-result {
    text-align: center;
    margin-top: 20px;
    padding: 15px;
    border-radius: 10px;
    font-weight: 700;
}

.timeline-column.it .timeline-result {
    background: rgba(239, 68, 68, 0.15);
    color: var(--primary-red);
}

.timeline-column.sinaapp .timeline-result {
    background: rgba(16, 185, 129, 0.15);
    color: var(--primary-green);
}

/* Metrics Grid */
.metrics-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin: 25px 0;
}

.metric-card {
    background: linear-gradient(145deg, var(--bg-dark) 0%, rgba(30, 41, 59, 0.6) 100%);
    border-radius: 16px;
    padding: 25px;
    text-align: center;
    border: 2px solid var(--border-color);
    transition: all 0.3s ease;
}

.metric-card:hover {
    border-color: var(--primary-blue);
    transform: translateY(-5px);
}

.metric-label {
    color: var(--text-muted);
    font-size: 0.9em;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 15px;
}

.metric-value {
    font-size: 2.8em;
    font-weight: 800;
    color: var(--primary-green);
    margin: 10px 0;
    line-height: 1;
}

.metric-detail {
    color: var(--text-muted);
    font-size: 0.85em;
    line-height: 1.6;
    margin-top: 12px;
}

/* Summary Table */
.summary-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin-top: 25px;
    border-radius: 12px;
    overflow: hidden;
}

.summary-table thead tr {
    background: linear-gradient(135deg, var(--bg-dark) 0%, rgba(30, 41, 59, 0.8) 100%);
}

.summary-table th {
    padding: 18px 15px;
    text-align: left;
    font-weight: 700;
    color: var(--text-primary);
    border-bottom: 2px solid var(--border-color);
    font-size: 0.9em;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.summary-table td {
    padding: 15px;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-secondary);
}

.summary-table tbody tr {
    transition: background 0.2s ease;
}

.summary-table tbody tr:hover {
    background: rgba(59, 130, 246, 0.1);
}

.summary-table tbody tr.degradation {
    background: rgba(245, 158, 11, 0.08);
}

.summary-table tbody tr.invisible {
    background: rgba(139, 92, 246, 0.08);
}

.summary-table tbody tr.anticipation {
    background: rgba(16, 185, 129, 0.08);
}

.summary-table tbody tr.total {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.2) 0%, rgba(16, 185, 129, 0.1) 100%);
    font-weight: 700;
    font-size: 1.1em;
}

.summary-table tbody tr.total td {
    color: var(--primary-green);
    border-bottom: none;
}

.signal-name {
    font-weight: 600;
    color: var(--text-primary);
}

.signal-detail {
    font-size: 0.85em;
    color: var(--text-muted);
    margin-top: 5px;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .comparison-grid {
        grid-template-columns: 1fr;
    }

    .timeline-comparison {
        grid-template-columns: 1fr;
    }

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

    .hero h1 {
        font-size: 2.5em;
    }

    .hero-subtitle {
        font-size: 1.4em;
    }
}

@media (max-width: 768px) {
    .section {
        padding: 25px;
    }

    .hero {
        padding: 40px 25px;
    }

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

    .scenario-header {
        flex-direction: column;
    }

    .summary-table {
        font-size: 0.85em;
    }

    .summary-table th,
    .summary-table td {
        padding: 12px 8px;
    }
}

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

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.section {
    animation: fadeInUp 0.6s ease-out;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

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

::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-blue);
}
