:root {
    --bg-main: #060b13;
    --bg-card: #0f1623;
    --bg-card-hover: #151f30;
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --primary: #0ea5e9;
    --primary-glow: rgba(14, 165, 233, 0.4);
    --secondary: #38bdf8;
    --accent-orange: #f97316;
    --accent-orange-glow: rgba(249, 115, 22, 0.4);
    --accent-green: #22c55e;
    --accent-red: #ef4444;
    --border-color: #1e293b;
    --card-radius: 16px;
    --transition: 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-main);
    color: var(--text-main);
    line-height: 1.6;
    font-size: 16px;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Encode Sans', sans-serif;
    line-height: 1.3;
}

h3 {
    font-size: 1.6rem;
    font-weight: 700;
}

h4 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

p {
    margin-bottom: 1rem;
}

b, strong {
    color: #fff;
}

/* Container */
.container {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
}

.container-sm {
    max-width: 700px;
}

.section {
    padding: 4rem 0;
    border-bottom: 1px solid var(--border-color);
    position: relative;
    z-index: 10;
}

/* Utilities */
.text-orange { color: var(--accent-orange); }
.text-blue { color: var(--secondary); }
.text-green { color: var(--accent-green); }
.text-red { color: var(--accent-red); }
.text-gray { color: var(--text-muted); }
.mt-3 { margin-top: 1rem; }
.mt-4 { margin-top: 2rem; }
.mb-3 { margin-bottom: 1rem; }
.text-center { text-align: center; }

/* SVG Background Decor */
.bg-decoration {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: 0;
    pointer-events: none;
    opacity: 0.6;
}

.bg-decoration svg {
    width: 100%;
    height: 100%;
}

@keyframes float1 {
    0% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-30px) scale(1.05); }
    100% { transform: translateY(0) scale(1); }
}

@keyframes float2 {
    0% { transform: translateY(0) scale(1); }
    50% { transform: translateY(20px) scale(1.03); }
    100% { transform: translateY(0) scale(1); }
}

.glow-path {
    animation: float1 15s ease-in-out infinite;
}

.glow-path-2 {
    animation: float2 20s ease-in-out infinite reverse;
}

/* Animations */
.block-reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: var(--transition);
}

.block-reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Section Header */
.section-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 2.5rem;
}

.section-number {
    font-family: 'Encode Sans', sans-serif;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--bg-main);
    background: linear-gradient(135deg, var(--secondary), var(--primary));
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    box-shadow: 0 0 15px var(--primary-glow);
}

.section-title {
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--secondary);
}

/* Hero Section */
.hero {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    padding: 6rem 0 4rem;
    border-bottom: 1px solid var(--border-color);
    background: radial-gradient(circle at 50% 30%, rgba(14, 165, 233, 0.15) 0%, var(--bg-main) 70%);
}

.hero-badge {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(249, 115, 22, 0.1);
    color: var(--accent-orange);
    border: 1px solid rgba(249, 115, 22, 0.3);
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 1px;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    text-transform: uppercase;
    text-shadow: 0 0 30px rgba(14, 165, 233, 0.3);
}

.highlight-text {
    background: linear-gradient(90deg, #facc15, #f97316);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.glow-text {
    text-shadow: 0 0 20px rgba(250, 204, 21, 0.5);
    color: #facc15;
}

.hero-subtitle {
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    font-family: 'Inter', sans-serif;
}

.countdown-box {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    padding: 12px 24px;
    border-radius: 12px;
    color: #fca5a5;
    font-size: 1.2rem;
    margin-bottom: 2rem;
    box-shadow: 0 0 20px rgba(239, 68, 68, 0.15);
}

.countdown-box svg {
    color: var(--accent-red);
}

.hero-sapo {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 700px;
    margin: 0 auto;
    border-top: 1px solid var(--border-color);
    padding-top: 1.5rem;
}

/* Timeline */
.timeline {
    position: relative;
    padding-left: 30px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 7px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--border-color);
}

.timeline-item {
    position: relative;
    margin-bottom: 2.5rem;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-dot {
    position: absolute;
    left: -30px;
    top: 5px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--bg-card);
    border: 3px solid var(--primary);
    box-shadow: 0 0 10px var(--primary-glow);
    transition: var(--transition);
}

.highlight-dot {
    border-color: var(--accent-orange);
    box-shadow: 0 0 15px var(--accent-orange-glow);
    background: var(--accent-orange);
}

.timeline-date {
    font-family: 'Encode Sans', sans-serif;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.timeline-content {
    background: var(--bg-card);
    padding: 20px;
    border-radius: var(--card-radius);
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.timeline-content:hover {
    border-color: var(--primary);
    transform: translateX(5px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.3);
}

.stat-box {
    display: flex;
    align-items: baseline;
    gap: 10px;
    margin: 10px 0;
}

.stat-num {
    font-size: 3rem;
    font-weight: 800;
    font-family: 'Encode Sans', sans-serif;
    line-height: 1;
}

.stat-label {
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--text-muted);
}

/* Buttons */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, var(--primary), #0284c7);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    cursor: pointer;
    margin-top: 15px;
    transition: var(--transition);
    box-shadow: 0 4px 15px var(--primary-glow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(14, 165, 233, 0.6);
}

/* Grid System */
.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
}

.grid-2-asym {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 30px;
    align-items: center;
}

/* Cards */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--card-radius);
    padding: 30px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.card:hover {
    transform: translateY(-5px);
    border-color: rgba(255,255,255,0.1);
    box-shadow: 0 10px 30px rgba(0,0,0,0.4);
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: transparent;
    transition: var(--transition);
}

.card-glow-orange:hover::before {
    background: linear-gradient(90deg, #facc15, var(--accent-orange));
}

.card-glow-blue:hover::before {
    background: linear-gradient(90deg, var(--secondary), var(--primary));
}

.card-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: rgba(255,255,255,0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    color: var(--secondary);
}

.card-glow-orange .card-icon {
    color: var(--accent-orange);
    background: rgba(249, 115, 22, 0.1);
}

/* Compare Data */
.big-compare {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 25px 0;
    background: rgba(0,0,0,0.2);
    padding: 20px;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.05);
}

.compare-item {
    display: flex;
    flex-direction: column;
}

.compare-val {
    font-size: 2.2rem;
    font-weight: 800;
    font-family: 'Encode Sans', sans-serif;
    line-height: 1;
}

.compare-val small {
    font-size: 1rem;
    font-weight: 500;
    margin-left: 4px;
}

.compare-lbl {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 5px;
}

.compare-arrow {
    color: var(--accent-orange);
    opacity: 0.8;
}

/* Personnel list */
.personnel-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 20px;
}

.person-item {
    background: rgba(255,255,255,0.03);
    padding: 15px;
    border-radius: 10px;
    border-left: 3px solid var(--primary);
}

.person-company {
    font-weight: 700;
    color: white;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.badge {
    font-size: 0.75rem;
    font-weight: 500;
    padding: 3px 8px;
    background: rgba(14, 165, 233, 0.15);
    color: var(--secondary);
    border-radius: 4px;
}

.person-item p {
    margin: 0;
    font-size: 0.95rem;
    color: var(--text-muted);
}

/* Barrier Section */
.barrier-card {
    display: flex;
    padding: 0;
    border: 1px solid rgba(249, 115, 22, 0.3);
    background: linear-gradient(to right, rgba(249, 115, 22, 0.05), var(--bg-card));
}

.barrier-content {
    flex: 1;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.huge-number {
    font-size: 4.5rem;
    font-weight: 800;
    font-family: 'Encode Sans', sans-serif;
    line-height: 1.1;
    margin: 15px 0 5px;
    text-shadow: 0 0 30px var(--accent-orange-glow);
}

.unit {
    font-size: 1.5rem;
    font-weight: 600;
}

.barrier-side {
    flex: 1;
    padding: 40px;
    border-left: 1px solid var(--border-color);
    background: rgba(0,0,0,0.2);
}

.alert-box {
    background: rgba(239, 68, 68, 0.05);
    border: 1px solid rgba(239, 68, 68, 0.2);
    border-radius: 12px;
    padding: 25px;
}

.alert-box h5 {
    color: #fca5a5;
    font-size: 1.1rem;
    margin-bottom: 15px;
}

.alert-box ul {
    list-style: none;
    margin-bottom: 20px;
}

.alert-box ul li {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    color: var(--text-muted);
}

.alert-box ul li svg {
    color: var(--accent-red);
}

.alert-footer {
    padding-top: 15px;
    border-top: 1px dashed rgba(239, 68, 68, 0.2);
    font-weight: 600;
    color: white;
}

/* Data Cards */
.data-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--card-radius);
    padding: 30px;
    position: relative;
    overflow: hidden;
}

.data-icon {
    position: absolute;
    top: 30px;
    right: 30px;
    color: rgba(255,255,255,0.1);
    transform: scale(2.5);
    transform-origin: top right;
}

.scale-card .data-icon { color: rgba(34, 197, 94, 0.1); }
.tax-card .data-icon { color: rgba(14, 165, 233, 0.1); }

.data-card h5 {
    font-size: 1.1rem;
    color: white;
    margin-bottom: 5px;
    position: relative;
    z-index: 1;
}

.data-timeline {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}

.data-number {
    font-size: 3rem;
    font-weight: 800;
    font-family: 'Encode Sans', sans-serif;
    line-height: 1.1;
    margin-bottom: 15px;
    position: relative;
    z-index: 1;
}

.trend {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    position: relative;
    z-index: 1;
    margin-bottom: 15px;
}

.trend.up {
    background: rgba(34, 197, 94, 0.15);
    color: var(--accent-green);
}

.data-desc {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin: 0;
    position: relative;
    z-index: 1;
}

.tax-details {
    background: rgba(0,0,0,0.2);
    border-radius: 10px;
    padding: 15px;
    margin-top: 15px;
    position: relative;
    z-index: 1;
}

.tax-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
}

.tax-row:not(:last-child) {
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.tax-row span {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.tax-row b {
    color: var(--secondary);
    font-size: 1.05rem;
}

/* Chart Container */
.chart-container {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--card-radius);
    padding: 30px;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.donut-wrapper {
    position: relative;
    width: 220px;
    height: 220px;
    margin: 20px auto;
}

.donut-center-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    pointer-events: none;
}

#donut-val {
    display: block;
    font-size: 2rem;
    font-weight: 800;
    color: var(--accent-red);
    line-height: 1.1;
}

.donut-lbl {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
}

.stats-row {
    display: flex;
    gap: 15px;
}

.stat-mini {
    flex: 1;
    background: rgba(0,0,0,0.2);
    padding: 15px;
    border-radius: 10px;
    text-align: center;
}

.stat-mini-val {
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    margin-bottom: 5px;
}

.stat-mini-lbl {
    font-size: 0.8rem;
    color: var(--text-muted);
    line-height: 1.3;
}

.price-drop {
    padding: 15px;
    background: rgba(239, 68, 68, 0.1);
    border-left: 3px solid var(--accent-red);
    border-radius: 4px 8px 8px 4px;
    margin-top: 15px;
    color: #fca5a5;
}

.price-drop p {
    margin: 0;
    font-size: 0.95rem;
}

.price-drop b {
    color: white;
}

/* Criteria Custom Bars */
.criteria-container {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.bar-chart-custom {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.bar-item {
    width: 100%;
}

.bar-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-family: 'Inter', sans-serif;
}

.bar-label {
    font-weight: 500;
    color: white;
}

.bar-percent {
    font-weight: 700;
    color: var(--secondary);
}

.bar-track {
    width: 100%;
    height: 12px;
    background: rgba(255,255,255,0.05);
    border-radius: 10px;
    overflow: hidden;
    position: relative;
}

.bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    border-radius: 10px;
    width: 0; /* Will be set by JS */
    transition: width 1.5s cubic-bezier(0.2, 0.8, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.bar-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.3) 50%, rgba(255,255,255,0) 100%);
    transform: translateX(-100%);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    100% { transform: translateX(100%); }
}

/* Evolution Table */
.evolution-table {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.evo-row {
    display: grid;
    grid-template-columns: 120px 150px 1fr;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 20px 30px;
    align-items: center;
    transition: var(--transition);
}

.evo-row:hover {
    transform: translateX(10px);
    border-color: rgba(255,255,255,0.1);
    background: var(--bg-card-hover);
}

.highlight-row {
    border-color: rgba(34, 197, 94, 0.3);
    background: linear-gradient(90deg, rgba(34, 197, 94, 0.05), var(--bg-card));
}

.evo-year {
    font-size: 1.5rem;
    font-weight: 800;
    font-family: 'Encode Sans', sans-serif;
    color: white;
}

.evo-year small {
    display: block;
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 400;
}

.evo-status {
    font-size: 1.2rem;
    font-weight: 700;
    text-transform: uppercase;
}

.evo-desc {
    color: var(--text-muted);
}

.insight-box {
    display: flex;
    gap: 20px;
    background: rgba(14, 165, 233, 0.1);
    border: 1px dashed rgba(14, 165, 233, 0.3);
    padding: 25px;
    border-radius: 12px;
    align-items: center;
}

.insight-box svg {
    color: var(--secondary);
    flex-shrink: 0;
    width: 32px;
    height: 32px;
}

.insight-box p {
    margin: 0;
    font-size: 1.05rem;
    color: var(--text-main);
}

.insight-box b {
    color: var(--secondary);
}

/* Summary Section */
.summary-section {
    padding: 5rem 0;
    background: var(--bg-card);
    border-top: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.summary-tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin: 20px 0 30px;
}

.tag {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    padding: 6px 15px;
    border-radius: 30px;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.summary-text {
    font-size: 1.2rem;
    line-height: 1.8;
    color: rgba(255,255,255,0.85);
    margin-bottom: 2rem;
}

.summary-text b {
    color: var(--secondary);
}

.author-credits {
    border-top: 1px solid rgba(255,255,255,0.05);
    padding-top: 20px;
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* Modal */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: 0.3s ease;
}

.modal.active {
    opacity: 1;
    visibility: visible;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    backdrop-filter: blur(5px);
}

.modal-card {
    position: relative;
    width: 90%;
    max-width: 500px;
    background: var(--bg-main);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    z-index: 1001;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
    transform: translateY(30px) scale(0.95);
    transition: 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.modal.active .modal-card {
    transform: translateY(0) scale(1);
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.8rem;
    cursor: pointer;
    line-height: 1;
    transition: 0.2s;
}

.modal-close:hover {
    color: white;
}

.modal-header {
    padding: 30px 30px 20px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    display: flex;
    align-items: center;
    gap: 15px;
}

.modal-header h4 {
    margin: 0;
    color: white;
}

.modal-body {
    padding: 30px;
}

.styled-list {
    list-style: none;
}

.styled-list li {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.styled-list li:last-child {
    margin-bottom: 0;
}

.list-icon {
    font-family: 'Encode Sans', sans-serif;
    font-weight: 800;
    color: rgba(34, 197, 94, 0.3);
    font-size: 1.5rem;
    line-height: 1;
}

.list-text {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.list-text b {
    display: block;
    color: white;
    margin-bottom: 3px;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.2rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .grid-2, .grid-2-asym {
        grid-template-columns: 1fr;
    }
    
    .barrier-card {
        flex-direction: column;
    }
    
    .barrier-side {
        border-left: none;
        border-top: 1px solid var(--border-color);
    }
    
    .evo-row {
        grid-template-columns: 1fr;
        gap: 10px;
        padding: 20px;
    }
    
    .evo-year {
        display: flex;
        align-items: baseline;
        gap: 10px;
    }
    
    .evo-year small {
        display: inline-block;
    }
    
    .chart-container {
        border-bottom: none;
        border-radius: var(--card-radius) var(--card-radius) 0 0;
    }
    
    .criteria-container {
        padding: 30px;
        background: var(--bg-card);
        border: 1px solid var(--border-color);
        border-top: none;
        border-radius: 0 0 var(--card-radius) var(--card-radius);
    }
}
