:root {
    --bg: #0a0a0f;
    --bg-2: #15151f;
    --card: #1a1a26;
    --border: #2a2a3a;
    --primary: #FFD700;
    /* Gold */
    --primary-glow: #FFEC8B;
    --accent: #DAA520;
    /* Goldenrod */
    --gold: #FFD700;
    --text: #f1faee;
    --muted: #8d99ae;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: 'Manrope', sans-serif;
    overflow-x: hidden;
}

.display-font {
    font-family: 'Russo One', sans-serif;
    letter-spacing: 0.02em;
}

.jp-font {
    font-family: 'Noto Serif JP', serif;
}

/* Background atmosphere */
.bg-atmosphere {
    position: fixed;
    inset: 0;
    z-index: -2;
    background:
        radial-gradient(circle at 20% 20%, rgba(255, 215, 0, 0.15), transparent 40%),
        radial-gradient(circle at 80% 80%, rgba(218, 165, 32, 0.10), transparent 40%),
        radial-gradient(circle at 50% 50%, rgba(255, 215, 0, 0.04), transparent 60%),
        #0a0a0f;
}

.bg-atmosphere::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 215, 0, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 215, 0, 0.04) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(circle at 50% 50%, black 0%, transparent 80%);
    -webkit-mask-image: radial-gradient(circle at 50% 50%, black 0%, transparent 80%);
}

#particles {
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(10, 10, 15, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 215, 0, 0.15);
    transition: all 0.3s;
}

.navbar.scrolled {
    background: rgba(10, 10, 15, 0.92);
    border-bottom-color: rgba(255, 215, 0, 0.3);
}

.nav-link {
    position: relative;
    padding: 0.5rem 1rem;
    color: var(--muted);
    transition: color 0.3s;
    font-weight: 500;
    font-size: 0.95rem;
    text-decoration: none;
}

.nav-link:hover {
    color: var(--text);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.3s;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 60%;
}

.nav-link.active {
    color: var(--text);
}

.logo-badge {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--primary), #8a6d0b);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(255, 215, 0, 0.4);
    transition: transform 0.3s;
}

.logo-badge:hover {
    transform: rotate(-10deg) scale(1.05);
}

.logo-badge::before {
    content: '';
    position: absolute;
    inset: 2px;
    background: linear-gradient(135deg, #0a0a0f, #1a1a26);
    border-radius: 10px;
}

.logo-badge i {
    position: relative;
    color: var(--primary);
    font-size: 1.3rem;
    z-index: 1;
}

.cta-btn {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: #0a0a0f;
    /* Dark text for gold contrast */
    padding: 0.75rem 1.5rem;
    border-radius: 10px;
    font-weight: 700;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 20px rgba(255, 215, 0, 0.4);
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    text-decoration: none;
}

.cta-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.5s;
}

.cta-btn:hover::before {
    left: 100%;
}

.cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(255, 215, 0, 0.6);
}

.ghost-btn {
    background: transparent;
    color: var(--text);
    padding: 0.75rem 1.5rem;
    border-radius: 10px;
    font-weight: 600;
    border: 1px solid var(--border);
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    text-decoration: none;
}

.ghost-btn:hover {
    border-color: var(--primary);
    background: rgba(255, 215, 0, 0.08);
    color: var(--primary);
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.shuriken {
    animation: spin 8s linear infinite;
    display: inline-block;
}

.shuriken-fast {
    animation: spin 4s linear infinite;
    display: inline-block;
}

.shuriken-reverse {
    animation: spin 12s linear infinite reverse;
    display: inline-block;
}

.hero-title {
    font-size: clamp(3.5rem, 11vw, 9rem);
    line-height: 0.9;
    letter-spacing: -0.02em;
    font-weight: 900;
}

.glow-text {
    text-shadow: 0 0 60px rgba(255, 215, 0, 0.5);
}

.hero-stroke {
    -webkit-text-stroke: 2px var(--primary);
    color: transparent;
}

.card {
    background: linear-gradient(135deg, var(--card), rgba(26, 26, 38, 0.7));
    border: 1px solid var(--border);
    border-radius: 16px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
    opacity: 0;
    transition: opacity 0.4s;
}

.card:hover {
    transform: translateY(-6px);
    border-color: rgba(255, 215, 0, 0.4);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5), 0 0 30px rgba(255, 215, 0, 0.15);
}

.card:hover::before {
    opacity: 1;
}

.step-num {
    font-family: 'Russo One', sans-serif;
    font-size: 5rem;
    background: linear-gradient(180deg, var(--primary), transparent);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    line-height: 1;
    opacity: 0.9;
}

.avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: #0a0a0f;
    font-size: 1.1rem;
    flex-shrink: 0;
    border: 2px solid rgba(255, 255, 255, 0.1);
}

.star {
    color: var(--gold);
}

.form-input {
    width: 100%;
    background: var(--bg-2);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 0.875rem 1rem;
    color: var(--text);
    transition: all 0.3s;
    font-family: inherit;
    font-size: 0.95rem;
}

.form-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(255, 215, 0, 0.1);
    background: var(--card);
}

.form-input::placeholder {
    color: var(--muted);
}

.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s, transform 0.8s;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeOutDown {
    from {
        opacity: 1;
        transform: translateY(0);
    }

    to {
        opacity: 0;
        transform: translateY(-20px);
    }
}

.testi-card {
    animation: fadeInUp 0.6s ease-out backwards;
}

.testi-card.leaving {
    animation: fadeOutDown 0.4s ease-in forwards;
}

@keyframes marquee {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}

.marquee-track {
    animation: marquee 40s linear infinite;
    display: flex;
    width: max-content;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(255, 215, 0, 0.7);
    }

    50% {
        opacity: 0.8;
        transform: scale(1.2);
        box-shadow: 0 0 0 10px rgba(255, 215, 0, 0);
    }
}

.pulse-dot {
    animation: pulse 2s infinite;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-20px);
    }
}

.float-anim {
    animation: float 6s ease-in-out infinite;
}

.section-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border), transparent);
    margin: 0 auto;
    max-width: 1200px;
}

.toast {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: var(--card);
    border: 1px solid var(--primary);
    border-radius: 12px;
    padding: 1rem 1.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 20px rgba(255, 215, 0, 0.3);
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.4s;
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    max-width: 350px;
}

.toast.show {
    transform: translateY(0);
    opacity: 1;
}

html {
    scroll-behavior: smooth;
}

::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg);
}

::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

.mobile-menu {
    transform: translateX(100%);
    transition: transform 0.3s;
}

.mobile-menu.open {
    transform: translateX(0);
}

.tag {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.35rem 0.85rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.stat-num {
    font-family: 'Russo One', sans-serif;
    font-size: clamp(2rem, 5vw, 3.5rem);
    background: linear-gradient(180deg, var(--text), var(--muted));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.map-container {
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--border);
    position: relative;
}

.map-container::after {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    box-shadow: inset 0 0 60px rgba(255, 215, 0, 0.1);
    border-radius: 16px;
}

.map-container iframe {
    filter: invert(0.92) sepia(0.2) hue-rotate(10deg) brightness(0.95) contrast(0.9);
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}

@media (max-width: 768px) {
    .hero-title {
        font-size: clamp(2.5rem, 14vw, 5rem);
    }

    .step-num {
        font-size: 3.5rem;
    }
}

::selection {
    background: var(--primary);
    color: #0a0a0f;
}