/* ============================================
   漢語之路 — Caminho do Mandarim
   Premium Chinese Learning Platform
   ============================================ */

:root {
    --red-primary: #C41E3A;
    --red-dark: #8B0000;
    --red-deep: #4A0E0E;
    --gold: #D4A017;
    --gold-light: #F0D78C;
    --ink: #1a1a1a;
    --ink-light: #2E2E2E;
    --paper: #FDF5E6;
    --paper-dark: #F5E6C8;
    --white: #FEFEFE;
    --text: #2C2C2C;
    --text-muted: #6B6B6B;
    --font-chinese: 'Noto Serif SC', serif;
    --font-display: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    color: var(--text);
    background: var(--white);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

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

/* ============================================
   FLOATING PARTICLES
   ============================================ */
.chinese-particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.particle {
    position: absolute;
    font-family: var(--font-chinese);
    color: rgba(196, 30, 58, 0.06);
    font-size: 2rem;
    animation: float-particle linear infinite;
    user-select: none;
}

@keyframes float-particle {
    0% {
        transform: translateY(100vh) rotate(0deg);
        opacity: 0;
    }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% {
        transform: translateY(-10vh) rotate(360deg);
        opacity: 0;
    }
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1a0a0a 0%, #2d0a0a 30%, #1a1a2e 70%, #0a0a1a 100%);
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 20% 50%, rgba(196, 30, 58, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 50%, rgba(212, 160, 23, 0.1) 0%, transparent 50%);
}

.hero-pattern {
    position: absolute;
    inset: 0;
    opacity: 0.03;
    background-image:
        repeating-linear-gradient(0deg, transparent, transparent 50px, rgba(255,255,255,0.1) 50px, rgba(255,255,255,0.1) 51px),
        repeating-linear-gradient(90deg, transparent, transparent 50px, rgba(255,255,255,0.1) 50px, rgba(255,255,255,0.1) 51px);
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 2rem;
}

.hero-seal {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 120px;
    height: 120px;
    border: 3px solid var(--red-primary);
    color: var(--red-primary);
    font-family: var(--font-chinese);
    font-size: 3.5rem;
    font-weight: 900;
    margin-bottom: 2rem;
    position: relative;
    animation: seal-glow 4s ease-in-out infinite;
}

.hero-seal::before {
    content: '';
    position: absolute;
    inset: -8px;
    border: 1px solid rgba(196, 30, 58, 0.3);
}

.hero-seal::after {
    content: '';
    position: absolute;
    inset: 4px;
    border: 1px solid rgba(196, 30, 58, 0.5);
}

@keyframes seal-glow {
    0%, 100% { box-shadow: 0 0 30px rgba(196, 30, 58, 0.2); }
    50% { box-shadow: 0 0 60px rgba(196, 30, 58, 0.4); }
}

.hero-title {
    margin-bottom: 1.5rem;
}

.title-chinese {
    display: block;
    font-family: var(--font-chinese);
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 900;
    color: var(--white);
    letter-spacing: 0.15em;
    text-shadow: 0 0 40px rgba(196, 30, 58, 0.3);
}

.title-divider {
    display: block;
    width: 80px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
    margin: 1rem auto;
}

.title-portuguese {
    display: block;
    font-family: var(--font-display);
    font-size: clamp(1.2rem, 3vw, 2rem);
    font-weight: 400;
    color: var(--gold-light);
    letter-spacing: 0.3em;
    text-transform: uppercase;
}

.hero-subtitle {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.6);
    font-weight: 300;
    margin-bottom: 3rem;
    letter-spacing: 0.05em;
}

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

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--white);
}

.stat-label {
    display: block;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-top: 0.25rem;
}

.hero-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2.5rem;
    background: transparent;
    border: 1px solid var(--gold);
    color: var(--gold-light);
    text-decoration: none;
    font-size: 0.9rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.hero-cta::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--gold);
    transform: translateY(100%);
    transition: transform 0.4s ease;
}

.hero-cta:hover {
    color: var(--ink);
}

.hero-cta:hover::before {
    transform: translateY(0);
}

.hero-cta span,
.hero-cta svg {
    position: relative;
    z-index: 1;
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
}

.scroll-line {
    width: 1px;
    height: 60px;
    background: linear-gradient(to bottom, rgba(255,255,255,0.4), transparent);
    animation: scroll-pulse 2s ease-in-out infinite;
}

@keyframes scroll-pulse {
    0%, 100% { opacity: 1; transform: scaleY(1); }
    50% { opacity: 0.3; transform: scaleY(0.5); }
}

/* ============================================
   SECTION TAGS & TITLES
   ============================================ */
.section-tag {
    display: inline-block;
    font-family: var(--font-chinese);
    font-size: 0.85rem;
    color: var(--red-primary);
    letter-spacing: 0.1em;
    margin-bottom: 1rem;
    position: relative;
    padding-bottom: 0.75rem;
}

.section-tag::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background: var(--red-primary);
}

.section-tag.center {
    display: block;
    text-align: center;
}

.section-tag.center::after {
    left: 50%;
    transform: translateX(-50%);
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    color: var(--ink);
    text-align: center;
    margin-bottom: 1rem;
}

.section-desc {
    text-align: center;
    color: var(--text-muted);
    font-size: 1.05rem;
    margin-bottom: 3rem;
}

/* ============================================
   PHILOSOPHY SECTION
   ============================================ */
.philosophy {
    padding: 8rem 0;
    background: var(--paper);
    position: relative;
}

.philosophy::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.philosophy-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.philosophy-text h2 {
    font-family: var(--font-chinese);
    font-size: 2rem;
    color: var(--ink);
    margin-bottom: 0.5rem;
}

.philosophy-translation {
    font-family: var(--font-display);
    font-style: italic;
    font-size: 1.2rem;
    color: var(--red-primary);
    margin-bottom: 0.25rem;
}

.philosophy-author {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.philosophy-body {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text);
}

.philosophy-art {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

.ink-circle {
    width: 250px;
    height: 250px;
    border-radius: 50%;
    border: 2px solid var(--ink-light);
    position: absolute;
    opacity: 0.1;
    animation: ink-breathe 6s ease-in-out infinite;
}

@keyframes ink-breathe {
    0%, 100% { transform: scale(1); opacity: 0.1; }
    50% { transform: scale(1.1); opacity: 0.05; }
}

.calligraphy-display {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
}

.cal-char {
    font-family: var(--font-chinese);
    font-size: 5rem;
    font-weight: 900;
    color: var(--ink);
    opacity: 0;
    transform: translateY(20px);
    animation: char-appear 0.8s ease forwards;
    animation-delay: calc(var(--delay, 0) * 0.3s + 0.5s);
}

.cal-char[data-delay="0"] { --delay: 0; }
.cal-char[data-delay="1"] { --delay: 1; }
.cal-char[data-delay="2"] { --delay: 2; }

@keyframes char-appear {
    to { opacity: 1; transform: translateY(0); }
}

.cal-meaning {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-style: italic;
    position: relative;
    z-index: 1;
}

/* ============================================
   METHOD / PILLARS SECTION
   ============================================ */
.method {
    padding: 8rem 0;
    background: var(--white);
}

.pillars {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}

.pillar {
    text-align: center;
    padding: 2.5rem 1.5rem;
    border: 1px solid #eee;
    transition: all 0.5s ease;
    position: relative;
    overflow: hidden;
}

.pillar::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--red-primary);
    transform: scaleX(0);
    transition: transform 0.5s ease;
}

.pillar:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08);
    border-color: transparent;
}

.pillar:hover::before {
    transform: scaleX(1);
}

.pillar-icon {
    font-family: var(--font-chinese);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--red-primary);
    margin-bottom: 1rem;
}

.pillar h3 {
    font-family: var(--font-display);
    font-size: 1.2rem;
    margin-bottom: 0.75rem;
    color: var(--ink);
}

.pillar p {
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--text-muted);
}

/* ============================================
   TRADUTOR IA
   ============================================ */
.tradutor-section {
    padding: 8rem 0;
    background: var(--white);
    position: relative;
}

.tradutor-box {
    max-width: 900px;
    margin: 0 auto;
}

/* Direction buttons */
.tradutor-direcao {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 2rem;
}

.dir-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.5rem;
    border: 1px solid #e0e0e0;
    background: #fff;
    cursor: pointer;
    font-family: inherit;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.3s ease;
    color: var(--text-muted);
}

.dir-btn:hover {
    border-color: var(--red-primary);
    color: var(--red-primary);
}

.dir-btn.active {
    background: var(--red-primary);
    border-color: var(--red-primary);
    color: #fff;
}

.dir-btn .dir-from,
.dir-btn .dir-to {
    font-weight: 700;
}

/* Input / Output grid */
.tradutor-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.tradutor-input-area,
.tradutor-output-area {
    display: flex;
    flex-direction: column;
}

.tradutor-input-area textarea {
    width: 100%;
    padding: 1.5rem;
    border: 1px solid #e0e0e0;
    font-family: var(--font-body);
    font-size: 1.05rem;
    line-height: 1.7;
    resize: none;
    outline: none;
    transition: border-color 0.3s;
    min-height: 160px;
    background: #fff;
}

.tradutor-input-area textarea:focus {
    border-color: var(--red-primary);
}

.tradutor-input-area textarea::placeholder {
    color: #bbb;
}

.tradutor-input-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 0.75rem;
}

.char-count {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.tradutor-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.7rem 2rem;
    background: var(--red-primary);
    color: #fff;
    border: none;
    cursor: pointer;
    font-family: inherit;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    transition: all 0.3s ease;
    position: relative;
}

.tradutor-btn:hover {
    background: var(--red-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(196, 30, 58, 0.3);
}

.tradutor-btn.loading .btn-text {
    opacity: 0;
}

.tradutor-btn .btn-loading {
    display: none;
    position: absolute;
    inset: 0;
    align-items: center;
    justify-content: center;
}

.tradutor-btn.loading .btn-loading {
    display: flex;
}

.tradutor-btn.loading {
    pointer-events: none;
}

/* Dot pulse animation */
.dot-pulse {
    display: inline-flex;
    gap: 4px;
}

.dot-pulse::before,
.dot-pulse::after,
.dot-pulse {
    position: relative;
}

.dot-pulse::before,
.dot-pulse::after {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #fff;
    animation: dotPulse 1.2s ease-in-out infinite;
}

.dot-pulse::before { animation-delay: 0s; }
.dot-pulse::after { animation-delay: 0.4s; }

@keyframes dotPulse {
    0%, 80%, 100% { opacity: 0.3; transform: scale(0.8); }
    40% { opacity: 1; transform: scale(1); }
}

/* Output area */
.tradutor-output {
    min-height: 160px;
    padding: 1.5rem;
    border: 1px solid #e0e0e0;
    background: var(--paper);
    font-size: 1.05rem;
    line-height: 1.8;
    position: relative;
    overflow-y: auto;
}

.output-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    min-height: 120px;
    color: #ccc;
    gap: 0.5rem;
}

.placeholder-char {
    font-family: var(--font-chinese);
    font-size: 3rem;
    opacity: 0.3;
}

.output-placeholder span {
    font-size: 0.9rem;
}

/* Streaming output */
.tradutor-output .output-line {
    margin-bottom: 0.3rem;
}

.tradutor-output .output-label {
    font-weight: 700;
    color: var(--red-primary);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.tradutor-output .output-chinese {
    font-family: var(--font-chinese);
    font-size: 1.6rem;
    color: var(--ink);
    line-height: 1.5;
    margin-bottom: 0.5rem;
}

.tradutor-output .output-pinyin {
    color: var(--red-primary);
    font-size: 1rem;
}

.tradutor-output .output-literal {
    color: var(--text-muted);
    font-size: 0.9rem;
    font-style: italic;
}

/* Cursor blink while streaming */
.tradutor-output .streaming-cursor::after {
    content: '▊';
    animation: blink 0.7s step-end infinite;
    color: var(--red-primary);
    font-size: 0.9em;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

/* Output footer */
.tradutor-output-footer {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.75rem;
}

.tts-result-btn,
.copy-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 0.8rem;
    border: 1px solid #ddd;
    background: #fff;
    cursor: pointer;
    font-family: inherit;
    font-size: 0.8rem;
    color: var(--text-muted);
    transition: all 0.3s ease;
}

.tts-result-btn:hover,
.copy-btn:hover {
    border-color: var(--red-primary);
    color: var(--red-primary);
}

.copy-btn.copied {
    border-color: #2ECC71;
    color: #2ECC71;
}

/* Example buttons */
.tradutor-exemplos {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.exemplos-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.exemplo-btn {
    padding: 0.35rem 0.8rem;
    border: 1px solid #e0e0e0;
    background: #fff;
    cursor: pointer;
    font-family: inherit;
    font-size: 0.8rem;
    color: var(--text);
    transition: all 0.3s ease;
}

.exemplo-btn:hover {
    border-color: var(--red-primary);
    color: var(--red-primary);
    transform: translateY(-1px);
}

@media (max-width: 768px) {
    .tradutor-grid {
        grid-template-columns: 1fr;
    }
    .tradutor-direcao {
        flex-wrap: wrap;
    }
}

/* ============================================
   TRILHAS / TIMELINE
   ============================================ */
.trilhas-section {
    padding: 8rem 0;
    background: linear-gradient(180deg, var(--white) 0%, var(--paper) 100%);
}

.trilhas-timeline {
    position: relative;
    padding: 2rem 0;
}

.timeline-line {
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, var(--red-primary), var(--gold), var(--red-dark));
    transform: translateX(-50%);
}

.trilha-card {
    display: flex;
    align-items: flex-start;
    margin-bottom: 4rem;
    position: relative;
}

.trilha-card:nth-child(odd) {
    flex-direction: row;
    padding-right: calc(50% + 3rem);
}

.trilha-card:nth-child(odd) .trilha-content {
    text-align: right;
}

.trilha-card:nth-child(odd) .trilha-topicos {
    justify-content: flex-end;
}

.trilha-card:nth-child(odd) .trilha-meta {
    justify-content: flex-end;
}

.trilha-card:nth-child(even) {
    flex-direction: row-reverse;
    padding-left: calc(50% + 3rem);
}

.trilha-node {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    z-index: 2;
    box-shadow: 0 0 0 6px var(--white), 0 0 0 8px currentColor;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.trilha-card:hover .trilha-node {
    transform: translateX(-50%) scale(1.15);
    box-shadow: 0 0 0 6px var(--white), 0 0 0 8px currentColor, 0 0 30px rgba(196, 30, 58, 0.3);
}

.trilha-content {
    background: var(--white);
    padding: 2.5rem;
    border: 1px solid #eee;
    transition: all 0.5s ease;
    position: relative;
    flex: 1;
}

.trilha-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--red-primary), var(--gold));
    opacity: 0;
    transition: opacity 0.5s ease;
}

.trilha-card:hover .trilha-content {
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08);
    border-color: transparent;
    transform: translateY(-4px);
}

.trilha-card:hover .trilha-content::before {
    opacity: 1;
}

.trilha-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.trilha-card:nth-child(odd) .trilha-header {
    justify-content: flex-end;
}

.trilha-badge {
    display: inline-block;
    padding: 0.3rem 1rem;
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.trilha-lock {
    font-size: 0.9rem;
}

.trilha-titulo {
    font-family: var(--font-display);
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--ink);
    margin-bottom: 0.25rem;
}

.trilha-subtitulo {
    font-size: 0.95rem;
    color: var(--text-muted);
    font-style: italic;
    margin-bottom: 1rem;
}

.trilha-descricao {
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--text);
    margin-bottom: 1.5rem;
}

.trilha-meta {
    display: flex;
    gap: 2rem;
    margin-bottom: 1.5rem;
}

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

.meta-value {
    display: block;
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--ink);
}

.meta-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.trilha-topicos {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.topico-tag {
    display: inline-block;
    padding: 0.3rem 0.8rem;
    background: var(--paper);
    font-size: 0.8rem;
    color: var(--text);
    border: 1px solid var(--paper-dark);
    transition: all 0.3s ease;
}

.topico-tag:hover {
    background: var(--red-primary);
    color: white;
    border-color: var(--red-primary);
}

.trilha-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 2rem;
    color: white;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.trilha-btn:hover {
    transform: translateX(4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.trilha-btn.locked {
    background: #ccc !important;
    cursor: not-allowed;
    opacity: 0.7;
}

/* ============================================
   NUMBERS SECTION
   ============================================ */
.numbers-section {
    padding: 6rem 0;
    background: linear-gradient(135deg, #1a0a0a 0%, #2d0a0a 50%, #1a1a2e 100%);
}

.numbers-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.number-card {
    text-align: center;
    padding: 3rem 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.5s ease;
    position: relative;
    overflow: hidden;
}

.number-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--gold);
    transform: scaleX(0);
    transition: transform 0.5s ease;
}

.number-card:hover {
    border-color: rgba(212, 160, 23, 0.3);
    transform: translateY(-6px);
}

.number-card:hover::after {
    transform: scaleX(1);
}

.number-chinese {
    display: block;
    font-family: var(--font-chinese);
    font-size: 1.5rem;
    color: var(--gold);
    margin-bottom: 0.5rem;
    opacity: 0.6;
}

.number-big {
    display: block;
    font-family: var(--font-display);
    font-size: 3rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 0.5rem;
}

.number-label {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
    letter-spacing: 0.05em;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    padding: 4rem 0;
    background: var(--ink);
    text-align: center;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-family: var(--font-chinese);
    font-size: 1.3rem;
    color: var(--white);
}

.footer-seal {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 2px solid var(--red-primary);
    color: var(--red-primary);
    font-family: var(--font-chinese);
    font-size: 1.2rem;
    font-weight: 900;
}

.footer-quote {
    font-family: var(--font-chinese);
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.5);
    line-height: 1.8;
}

.footer-quote em {
    font-family: var(--font-display);
    font-size: 0.85rem;
}

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.4);
    text-decoration: none;
    font-size: 0.85rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--gold);
}

/* ============================================
   SCROLL REVEAL ANIMATIONS
   ============================================ */
.reveal {
    opacity: 0;
    transform: translateY(60px);
    transition: all 1s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.reveal-child {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    transition-delay: calc(var(--delay, 0) * 0.15s);
}

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

.reveal-card {
    opacity: 0;
    transform: translateY(80px) scale(0.95);
    transition: all 0.9s cubic-bezier(0.16, 1, 0.3, 1);
    transition-delay: calc(var(--card-delay, 0) * 0.12s);
}

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

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
    .pillars {
        grid-template-columns: repeat(3, 1fr);
    }

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

@media (max-width: 768px) {
    .philosophy-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

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

    .hero-stats {
        gap: 2rem;
    }

    .stat-number {
        font-size: 2rem;
    }

    /* Timeline mobile: tudo alinhado à esquerda */
    .timeline-line {
        left: 25px;
    }

    .trilha-card,
    .trilha-card:nth-child(odd),
    .trilha-card:nth-child(even) {
        flex-direction: row;
        padding-left: 4rem;
        padding-right: 0;
    }

    .trilha-card:nth-child(odd) .trilha-content {
        text-align: left;
    }

    .trilha-card:nth-child(odd) .trilha-topicos,
    .trilha-card:nth-child(odd) .trilha-meta,
    .trilha-card:nth-child(odd) .trilha-header {
        justify-content: flex-start;
    }

    .trilha-node {
        left: 25px;
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }

    .trilha-content {
        padding: 1.5rem;
    }

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

@media (max-width: 480px) {
    .pillars {
        grid-template-columns: 1fr;
    }

    .trilha-meta {
        gap: 1rem;
    }

    .hero-stats {
        flex-direction: column;
        gap: 1rem;
    }
}
