/* tanso.bar - Luxury Carbon Data Platform */
/* Colors: #1a1a2e (deep base), #4a90d9 (primary blue), #f5f0e8 (warm off-white), #e8b84b (accent gold), #6c757d (muted gray) */
/* Fonts: Lora, Inter */

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: #1a1a2e;
    color: #f5f0e8;
    overflow-x: hidden;
    line-height: 1.6;
}

/* Skeleton Loading Overlay */
.skeleton-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #1a1a2e;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}

.skeleton-overlay.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.skeleton-content {
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 300px;
}

.skeleton-line {
    height: 12px;
    border-radius: 6px;
    background: linear-gradient(90deg, #2a2a3e 25%, #e8b84b22 50%, #2a2a3e 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

.skeleton-line-lg { width: 100%; height: 16px; }
.skeleton-line-md { width: 75%; }
.skeleton-line-sm { width: 50%; }

.skeleton-dots {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin-top: 12px;
}

.skeleton-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #e8b84b;
    animation: dotPulse 1.2s infinite;
}

.skeleton-dot:nth-child(2) { animation-delay: 0.2s; }
.skeleton-dot:nth-child(3) { animation-delay: 0.4s; }

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

@keyframes dotPulse {
    0%, 100% { opacity: 0.2; transform: scale(0.8); }
    50% { opacity: 1; transform: scale(1.2); }
}

/* Navigation */
.main-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 48px;
    background: rgba(26, 26, 46, 0.85);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(232, 184, 75, 0.08);
    transition: transform 0.4s ease, background 0.3s ease;
}

.main-nav.nav-hidden {
    transform: translateY(-100%);
}

.nav-brand {
    font-family: 'Lora', serif;
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.brand-mark {
    color: #f5f0e8;
}

.brand-accent {
    color: #e8b84b;
}

.nav-links {
    display: flex;
    gap: 32px;
}

.nav-link {
    color: #6c757d;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: #e8b84b;
    transition: width 0.3s ease;
}

.nav-link:hover {
    color: #e8b84b;
}

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

/* Hero Section */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 120px 48px 80px;
    overflow: hidden;
}

.hero-botanical {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 200px;
    pointer-events: none;
}

.hero-botanical-left {
    left: 24px;
}

.hero-botanical-right {
    right: 24px;
}

.botanical-svg {
    width: 100%;
    height: 100%;
}

.botanical-leaf {
    animation: leafSway 6s ease-in-out infinite;
    transform-origin: center;
}

.leaf-1 { animation-delay: 0s; }
.leaf-2 { animation-delay: 0.8s; }
.leaf-3 { animation-delay: 1.6s; }
.leaf-4 { animation-delay: 2.4s; }
.leaf-5 { animation-delay: 0.4s; }
.leaf-6 { animation-delay: 1.2s; }
.leaf-7 { animation-delay: 2.0s; }

@keyframes leafSway {
    0%, 100% { transform: rotate(0deg) scale(1); }
    25% { transform: rotate(2deg) scale(1.05); }
    75% { transform: rotate(-2deg) scale(0.95); }
}

.botanical-bud {
    animation: budGlow 3s ease-in-out infinite;
}

@keyframes budGlow {
    0%, 100% { opacity: 0.15; }
    50% { opacity: 0.35; }
}

.hero-content {
    max-width: 800px;
    text-align: center;
    position: relative;
    z-index: 2;
}

.hero-eyebrow {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #e8b84b;
    margin-bottom: 24px;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 0.8s ease forwards;
    animation-delay: 0.5s;
}

.hero-title {
    font-family: 'Lora', serif;
    font-size: clamp(3rem, 8vw, 7rem);
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: -0.03em;
    margin-bottom: 24px;
}

.kinetic-line {
    display: block;
    opacity: 0;
    transform: translateY(60px) skewY(3deg);
    animation: kineticReveal 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.kinetic-line[data-delay='0'] { animation-delay: 0.7s; }
.kinetic-line[data-delay='200'] { animation-delay: 0.9s; }
.kinetic-line[data-delay='400'] { animation-delay: 1.1s; }

.kinetic-accent {
    color: #e8b84b;
    font-style: italic;
}

@keyframes kineticReveal {
    to {
        opacity: 1;
        transform: translateY(0) skewY(0);
    }
}

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

.hero-subtitle {
    font-size: 1.1rem;
    color: #6c757d;
    max-width: 520px;
    margin: 0 auto 48px;
    line-height: 1.7;
    opacity: 0;
    animation: fadeUp 0.8s ease forwards;
    animation-delay: 1.4s;
}

/* Hero Metric Strip */
.hero-metric-strip {
    display: flex;
    gap: 40px;
    justify-content: center;
    opacity: 0;
    animation: fadeUp 0.8s ease forwards;
    animation-delay: 1.7s;
}

.metric-card {
    text-align: center;
    padding: 20px 28px;
    border: 1px solid rgba(232, 184, 75, 0.12);
    border-radius: 8px;
    background: rgba(232, 184, 75, 0.03);
    transition: border-color 0.3s ease, transform 0.3s ease;
}

.metric-card:hover {
    border-color: rgba(232, 184, 75, 0.3);
    transform: translateY(-2px);
}

.metric-value {
    display: block;
    font-family: 'Lora', serif;
    font-size: 2.2rem;
    font-weight: 700;
    color: #e8b84b;
    letter-spacing: -0.02em;
}

.metric-label {
    display: block;
    font-size: 0.72rem;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-top: 4px;
}

/* Metrics Section */
.metrics-section {
    padding: 120px 48px;
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: 64px;
}

.section-title {
    font-family: 'Lora', serif;
    font-size: clamp(2rem, 4vw, 3.2rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 12px;
    color: #f5f0e8;
}

.section-subtitle {
    font-size: 1rem;
    color: #6c757d;
    max-width: 480px;
    margin: 0 auto;
}

.metrics-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr;
    gap: 24px;
    max-width: 1200px;
    margin: 0 auto;
}

/* Chart Cards */
.chart-card {
    background: rgba(42, 42, 62, 0.5);
    border: 1px solid rgba(232, 184, 75, 0.08);
    border-radius: 12px;
    padding: 28px;
    transition: border-color 0.3s ease, transform 0.3s ease;
}

.chart-card:hover {
    border-color: rgba(232, 184, 75, 0.2);
    transform: translateY(-3px);
}

.chart-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}

.chart-title {
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    font-weight: 500;
    color: #f5f0e8;
}

.chart-badge {
    font-size: 0.7rem;
    font-weight: 600;
    color: #e8b84b;
    background: rgba(232, 184, 75, 0.1);
    padding: 4px 10px;
    border-radius: 20px;
    letter-spacing: 0.05em;
}

.chart-badge-positive {
    color: #4a90d9;
    background: rgba(74, 144, 217, 0.1);
}

/* Bar Chart */
.bar-chart {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.bar-group {
    display: flex;
    align-items: center;
    gap: 12px;
}

.bar-label {
    font-size: 0.78rem;
    color: #6c757d;
    min-width: 80px;
    text-align: right;
}

.bar-track {
    flex: 1;
    height: 24px;
    background: rgba(42, 42, 62, 0.8);
    border-radius: 4px;
    overflow: hidden;
    position: relative;
}

.bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #e8b84b, #e8b84bcc);
    border-radius: 4px;
    width: 0;
    transition: width 1.2s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
}

.bar-fill::after {
    content: attr(data-value);
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.7rem;
    font-weight: 600;
    color: #1a1a2e;
    opacity: 0;
    transition: opacity 0.3s ease 0.8s;
}

.bar-fill.animated::after {
    opacity: 1;
}

/* Donut Chart */
.donut-chart-container {
    position: relative;
    width: 180px;
    height: 180px;
    margin: 0 auto 20px;
}

.donut-chart {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.donut-segment {
    transition: stroke-dasharray 1.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.donut-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}

.donut-total {
    display: block;
    font-family: 'Lora', serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: #f5f0e8;
}

.donut-unit {
    display: block;
    font-size: 0.65rem;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.donut-legend {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.78rem;
    color: #6c757d;
}

.legend-color {
    width: 10px;
    height: 10px;
    border-radius: 2px;
    flex-shrink: 0;
}

/* Line Chart */
.line-chart-container {
    width: 100%;
}

.line-chart {
    width: 100%;
    height: auto;
}

.line-path {
    stroke-dasharray: 600;
    stroke-dashoffset: 600;
    transition: stroke-dashoffset 2s cubic-bezier(0.16, 1, 0.3, 1);
}

.line-path.animated {
    stroke-dashoffset: 0;
}

.line-area {
    transition: opacity 1s ease 1s;
}

.line-area.animated {
    opacity: 1;
}

.line-dot {
    opacity: 0;
    transition: opacity 0.3s ease;
}

.line-dot.animated {
    opacity: 1;
}

/* Data Section */
.data-section {
    padding: 120px 48px;
    background: linear-gradient(180deg, #1a1a2e 0%, #151528 100%);
}

.data-cards {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 24px;
    max-width: 1200px;
    margin: 0 auto;
}

.data-card {
    background: rgba(42, 42, 62, 0.4);
    border: 1px solid rgba(232, 184, 75, 0.06);
    border-radius: 12px;
    padding: 36px;
    position: relative;
    overflow: hidden;
    transition: border-color 0.3s ease, transform 0.3s ease;
}

.data-card:hover {
    border-color: rgba(232, 184, 75, 0.2);
    transform: translateY(-4px);
}

.data-card-wide {
    display: flex;
    gap: 36px;
    align-items: center;
}

.data-card-botanical {
    flex-shrink: 0;
    width: 120px;
    height: 120px;
    opacity: 0.7;
}

.data-card-botanical svg {
    width: 100%;
    height: 100%;
}

.data-card-number {
    display: block;
    font-family: 'Lora', serif;
    font-size: 3rem;
    font-weight: 700;
    color: rgba(232, 184, 75, 0.12);
    line-height: 1;
    margin-bottom: 12px;
}

.data-card-title {
    font-family: 'Lora', serif;
    font-size: 1.3rem;
    font-weight: 600;
    color: #f5f0e8;
    margin-bottom: 12px;
}

.data-card-text {
    font-size: 0.9rem;
    color: #6c757d;
    line-height: 1.7;
    margin-bottom: 20px;
}

.data-card-stat {
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.stat-number {
    font-family: 'Lora', serif;
    font-size: 1.6rem;
    font-weight: 700;
    color: #e8b84b;
}

.stat-label {
    font-size: 0.72rem;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* Impact Section */
.impact-section {
    padding: 120px 48px;
    position: relative;
    overflow: hidden;
}

.impact-bg-botanical {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
}

.impact-botanical-svg {
    width: 100%;
    height: 100%;
}

.impact-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
    position: relative;
    z-index: 2;
}

.impact-description {
    font-size: 1.1rem;
    color: #6c757d;
    line-height: 1.8;
    margin-top: 20px;
}

.impact-numbers {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.impact-number-card {
    padding: 28px 32px;
    border-left: 2px solid #e8b84b;
    background: rgba(232, 184, 75, 0.03);
    border-radius: 0 8px 8px 0;
    transition: background 0.3s ease;
}

.impact-number-card:hover {
    background: rgba(232, 184, 75, 0.06);
}

.impact-value {
    font-family: 'Lora', serif;
    font-size: 2.8rem;
    font-weight: 700;
    color: #e8b84b;
    letter-spacing: -0.02em;
}

.impact-suffix {
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    font-weight: 500;
    color: #f5f0e8;
    margin-left: 8px;
}

.impact-detail {
    display: block;
    font-size: 0.78rem;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-top: 4px;
}

/* About Section */
.about-section {
    padding: 120px 48px;
    background: linear-gradient(180deg, #1a1a2e 0%, #151528 100%);
}

.about-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 80px;
    align-items: center;
}

.about-description {
    font-size: 1.05rem;
    color: #6c757d;
    line-height: 1.8;
    margin-top: 20px;
}

.about-botanical-panel {
    display: flex;
    justify-content: center;
    align-items: center;
}

.about-botanical {
    width: 280px;
    height: 280px;
    animation: botanicalRotate 60s linear infinite;
}

@keyframes botanicalRotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Footer */
.site-footer {
    padding: 60px 48px 40px;
    border-top: 1px solid rgba(232, 184, 75, 0.08);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 24px;
}

.footer-brand {
    font-family: 'Lora', serif;
    font-size: 1.3rem;
    font-weight: 700;
}

.footer-tagline {
    font-size: 0.78rem;
    color: #6c757d;
    margin-top: 4px;
    font-family: 'Inter', sans-serif;
    font-weight: 400;
}

.footer-links {
    display: flex;
    gap: 24px;
}

.footer-link {
    color: #6c757d;
    text-decoration: none;
    font-size: 0.85rem;
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: #e8b84b;
}

.footer-bottom {
    width: 100%;
    text-align: center;
    padding-top: 24px;
    margin-top: 24px;
    border-top: 1px solid rgba(108, 117, 125, 0.15);
}

.footer-copy {
    font-size: 0.75rem;
    color: #6c757d;
}

/* Scroll Reveal */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

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

    .chart-card-large {
        grid-column: 1 / -1;
    }

    .data-cards {
        grid-template-columns: 1fr 1fr;
    }

    .data-card-wide {
        grid-column: 1 / -1;
    }
}

@media (max-width: 768px) {
    .main-nav {
        padding: 16px 24px;
    }

    .nav-links {
        display: none;
    }

    .hero-section {
        padding: 100px 24px 60px;
    }

    .hero-botanical {
        width: 100px;
        opacity: 0.5;
    }

    .hero-metric-strip {
        flex-direction: column;
        gap: 16px;
        align-items: center;
    }

    .metrics-section,
    .data-section,
    .impact-section,
    .about-section {
        padding: 80px 24px;
    }

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

    .data-cards {
        grid-template-columns: 1fr;
    }

    .data-card-wide {
        flex-direction: column;
    }

    .impact-content {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }
}
