/* =========================================
   Takashima RP - Shared Design System
   ========================================= */

/* ===== BASE ===== */
html { scroll-behavior: smooth; }
body {
    font-family: 'Outfit', sans-serif;
    background-color: #0F1419;
    color: #F5F5F5;
    overflow-x: hidden;
}

/* ===== SCROLL ANIMATIONS ===== */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered hero reveals */
.hero-reveal {
    opacity: 0;
    animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.hero-reveal-1 { animation-delay: 0.15s; }
.hero-reveal-2 { animation-delay: 0.3s; }
.hero-reveal-3 { animation-delay: 0.45s; }
.hero-reveal-4 { animation-delay: 0.6s; }

/* ===== TORII GATE DIVIDER ===== */
.torii-divider {
    position: relative;
    text-align: center;
    margin: 3rem 0;
}
.torii-divider::before,
.torii-divider::after {
    content: '';
    position: absolute;
    top: 50%;
    width: calc(50% - 20px);
    height: 1px;
    background: linear-gradient(90deg, transparent, #8B2020, transparent);
}
.torii-divider::before { left: 0; }
.torii-divider::after { right: 0; }

/* ===== CARDS ===== */
.mc-card {
    position: relative;
    transition: all 0.45s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}
.mc-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, #8B2020, #D4A574, #8B2020, transparent);
    opacity: 0;
    transition: opacity 0.45s ease;
}
.mc-card:hover::before {
    opacity: 1;
}
.mc-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 25px rgba(45, 74, 78, 0.3), 0 20px 40px rgba(0, 0, 0, 0.3);
    border-color: #2D4A4E;
}

/* Legacy card hover (backwards compat) */
.card-glow:hover {
    box-shadow: 0 0 20px rgba(45, 74, 78, 0.3);
}

/* ===== BUTTONS ===== */
@keyframes glowPulse {
    0%, 100% { box-shadow: 0 0 15px rgba(139, 32, 32, 0.2), 0 0 40px rgba(139, 32, 32, 0.06); }
    50% { box-shadow: 0 0 25px rgba(139, 32, 32, 0.4), 0 0 60px rgba(139, 32, 32, 0.12); }
}
.btn-glow {
    animation: glowPulse 3.5s ease-in-out infinite;
}

/* ===== BACKGROUNDS ===== */
.grid-pattern {
    background-image:
        linear-gradient(rgba(45, 74, 78, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(45, 74, 78, 0.03) 1px, transparent 1px);
    background-size: 40px 40px;
}

.noise-overlay {
    position: relative;
}
.noise-overlay::after {
    content: '';
    position: absolute;
    inset: 0;
    opacity: 0.012;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    background-repeat: repeat;
    pointer-events: none;
    z-index: 1;
}

/* ===== CTA GLOW ===== */
.cta-glow {
    position: relative;
}
.cta-glow::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 300px;
    background: radial-gradient(ellipse, rgba(139, 32, 32, 0.06), transparent 70%);
    pointer-events: none;
}

/* ===== FLOAT ANIMATION ===== */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}
.animate-float {
    animation: float 5s ease-in-out infinite;
}
