@font-face {
    font-family: 'AraletN';
    src: url('../assets/AraletN%20Regular.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'FOT-Yuruka';
    src: url('../assets/FOT-Yuruka%20Std.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

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

:root {
    --bg: #0b0d14;
    --bg-card: rgba(20, 24, 38, 0.72);
    --text: #e8eaf0;
    --text-muted: #9aa3b2;
    --accent: #7dd3fc;
    --accent-glow: rgba(125, 211, 252, 0.35);
    --accent-warm: #fdba74;
    --border: rgba(255, 255, 255, 0.08);
}

html {
    height: 100%;
}

body {
    margin: 0;
    font-family: 'FOT-Yuruka', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.65;
    overflow: hidden;
    height: 100%;
}

h1 {
    font-family: 'AraletN', 'FOT-Yuruka', system-ui, sans-serif;
    margin: 0;
    line-height: 1.15;
}

a {
    color: inherit;
    text-decoration: none;
}

.stars {
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background:
        radial-gradient(ellipse at 50% 0%, rgba(125, 211, 252, 0.08) 0%, transparent 45%),
        radial-gradient(ellipse at 50% 100%, rgba(253, 186, 116, 0.06) 0%, transparent 45%),
        var(--bg);
}

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem;
}

.hero-content {
    max-width: 720px;
}

.greeting {
    color: var(--accent);
    font-size: 1.1rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
    opacity: 0;
    animation: fadeIn 0.6s ease forwards;
}

.name {
    font-size: clamp(4rem, 14vw, 9rem);
    background: linear-gradient(135deg, var(--text) 0%, var(--accent) 55%, var(--accent-warm) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    filter: drop-shadow(0 0 30px var(--accent-glow));
    margin-bottom: 1rem;
}

.name .char {
    display: inline-block;
    opacity: 0;
    animation: fadeInLeft 0.55s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.name .char:nth-child(4) {
    animation-name: fadeInUp;
}

.name .char:nth-child(3) { animation-delay: 0.10s; }
.name .char:nth-child(5) {
    animation-name: fadeInRight;
    animation-delay: 0.20s;
}
.name .char:nth-child(2) { animation-delay: 0.30s; }
.name .char:nth-child(6) {
    animation-name: fadeInRight;
    animation-delay: 0.40s;
}
.name .char:nth-child(1) { animation-delay: 0.50s; }
.name .char:nth-child(7) {
    animation-name: fadeInRight;
    animation-delay: 0.60s;
}

@keyframes fadeInLeft {
    from { opacity: 0; transform: translateX(-30px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes fadeInRight {
    from { opacity: 0; transform: translateX(30px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes dealInLeft {
    from { opacity: 0; transform: translateX(-40px) rotate(-8deg); }
    to { opacity: 1; transform: translateX(0) rotate(0); }
}

@keyframes dealInBottom {
    from { opacity: 0; transform: translateY(40px) scale(0.85); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes dealInRight {
    from { opacity: 0; transform: translateX(40px) rotate(8deg); }
    to { opacity: 1; transform: translateX(0) rotate(0); }
}

.hero-links {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-links .btn {
    opacity: 0;
    animation: dealInBottom 0.65s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.hero-links .btn:nth-child(1) {
    animation-name: dealInLeft;
    animation-delay: 1.0s;
}

.hero-links .btn:nth-child(2) {
    animation-name: dealInBottom;
    animation-delay: 1.18s;
}

.hero-links .btn:nth-child(3) {
    animation-name: dealInRight;
    animation-delay: 1.36s;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.85rem 1.75rem;
    border-radius: 999px;
    font-weight: 600;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn-social {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    color: var(--text);
    backdrop-filter: blur(8px);
    padding: 0.75rem 1.5rem;
}

.btn-social img {
    width: 22px;
    height: 22px;
    display: block;
}

.btn-social:hover {
    border-color: rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.06);
}

.btn-pixiv:hover {
    border-color: rgba(14, 165, 233, 0.45);
    box-shadow: 0 8px 28px rgba(14, 165, 233, 0.15);
}

.btn-github:hover {
    border-color: rgba(255, 255, 255, 0.35);
    box-shadow: 0 8px 28px rgba(255, 255, 255, 0.12);
}

.btn-kofi:hover {
    border-color: rgba(255, 90, 22, 0.45);
    box-shadow: 0 8px 28px rgba(255, 90, 22, 0.15);
}

@media (max-width: 560px) {
    .hero {
        padding: 1rem;
    }

    .greeting {
        font-size: 0.95rem;
    }

    .name {
        font-size: clamp(3.5rem, 18vw, 6rem);
    }

    .hero-links {
        gap: 0.6rem;
    }

    .btn-social {
        padding: 0.65rem 1.1rem;
        font-size: 0.95rem;
    }

    .btn-social img {
        width: 18px;
        height: 18px;
    }
}
