:root {
    --brand: #c80317;
    --brand-dark: #0d0d0d;
    --life: #c80317;
    --ink: #141414;
    --muted: #5f5f5f;
}

[x-cloak] { display: none !important; }

html { scroll-behavior: smooth; }

body {
    background:
        radial-gradient(ellipse 70% 45% at 100% 0%, rgba(200, 3, 23, 0.06), transparent),
        linear-gradient(180deg, #ffffff 0%, #faf8f8 100%);
    color: var(--ink);
}

.bg-surface { background-color: transparent; }
.text-ink { color: var(--ink); }
.text-muted { color: var(--muted); }

.font-display {
    font-weight: 700;
    letter-spacing: -0.015em;
}

.hero-plane {
    position: relative;
    min-height: 88vh;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
    background:
        linear-gradient(115deg, rgba(13, 13, 13, 0.96) 0%, rgba(13, 13, 13, 0.85) 45%, rgba(161, 2, 19, 0.85) 100%),
        url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E"),
        #0d0d0d;
}

.hero-plane::before {
    content: '';
    position: absolute;
    right: 6%;
    top: 50%;
    width: min(40vw, 480px);
    aspect-ratio: 1;
    transform: translateY(-50%);
    background: url('/assets/images/icon-512.png') center / contain no-repeat;
    opacity: 0.12;
    pointer-events: none;
}

.hero-plane::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 78% 45%, rgba(224, 22, 43, 0.35), transparent 30%);
    pointer-events: none;
    animation: pulseGlow 2.4s ease-in-out infinite;
}

@keyframes pulseGlow {
    0%, 100% { opacity: 0.7; }
    15% { opacity: 1; }
    30% { opacity: 0.75; }
    45% { opacity: 0.95; }
}

@keyframes riseIn {
    from { opacity: 0; transform: translateY(24px); }
    to { opacity: 1; transform: translateY(0); }
}

.animate-rise { animation: riseIn 0.8s ease-out both; }
.animate-rise-delay { animation: riseIn 0.9s ease-out 0.15s both; }
.animate-rise-late { animation: riseIn 1s ease-out 0.3s both; }

.btn-brand {
    background: var(--brand);
    color: #fff;
    transition: filter 0.2s ease, transform 0.2s ease;
}

.btn-brand:hover {
    filter: brightness(1.1);
    transform: translateY(-1px);
}

.btn-life {
    background: var(--life);
    color: #fff;
    transition: filter 0.2s ease, transform 0.2s ease;
}

.btn-life:hover {
    filter: brightness(1.1);
    transform: translateY(-1px);
}

.btn-ghost {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.35);
    transition: background 0.2s ease;
}

.btn-ghost:hover {
    background: rgba(255, 255, 255, 0.18);
}

.section-band {
    background:
        linear-gradient(180deg, #f7f5f5, #f2efef);
}

.value-chip {
    border-left: 3px solid var(--life);
    background: #fff;
}

.course-tile {
    position: relative;
    overflow: hidden;
    background: #fff;
    border: 1px solid rgba(13, 13, 13, 0.08);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.course-tile:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 40px rgba(200, 3, 23, 0.12);
}

.course-tile::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #0d0d0d, var(--brand));
}

.nav-link.active {
    color: var(--brand);
    font-weight: 600;
}

.page-banner {
    background:
        linear-gradient(120deg, rgba(13, 13, 13, 0.97) 0%, rgba(13, 13, 13, 0.9) 55%, rgba(161, 2, 19, 0.92) 100%),
        repeating-linear-gradient(45deg, transparent, transparent 12px, rgba(255,255,255,0.03) 12px, rgba(255,255,255,0.03) 24px);
}

.page-banner .text-brand-100 { color: #e5e5e5; }

.pulse-ring { position: relative; }

.pulse-ring::before {
    content: '';
    position: absolute;
    inset: -10px;
    border-radius: 9999px;
    border: 2px solid rgba(200, 3, 23, 0.35);
    animation: ringPulse 2.4s ease-out infinite;
}

@keyframes ringPulse {
    0% { transform: scale(0.85); opacity: 0.8; }
    100% { transform: scale(1.35); opacity: 0; }
}

.founder-panel {
    background: linear-gradient(160deg, #ffffff 0%, #fff5f6 100%);
    border: 1px solid rgba(200, 3, 23, 0.12);
}

.quote-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-top: 3px solid var(--brand);
}

.whatsapp-float {
    position: fixed;
    right: 1.25rem;
    bottom: 1.25rem;
    z-index: 70;
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 9999px;
    background: #25d366;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.85rem;
    box-shadow: 0 10px 24px rgba(37, 211, 102, 0.4);
    transition: transform 0.2s ease, filter 0.2s ease;
}

.whatsapp-float:hover {
    transform: translateY(-2px) scale(1.05);
    filter: brightness(1.05);
    color: #fff;
}

@media (prefers-reduced-motion: reduce) {
    .animate-rise,
    .animate-rise-delay,
    .animate-rise-late,
    .hero-plane::after,
    .pulse-ring::before {
        animation: none !important;
    }
}
