/* ==========================================
   AniMizuri Dub — Design System & Styles
   ========================================== */

/* --- CSS Custom Properties --- */
:root {
    /* Colors — strict 60/30/10 palette */
    --white: #ffffff;
    --white-soft: #f8f9fb;
    --black: #0a0a0f;
    --black-soft: #1a1a2e;
    --black-muted: #4a4a5a;
    --neon-blue: #00b4ff;
    --neon-blue-dim: #0090cc;
    --neon-glow: rgba(0, 180, 255, 0.35);
    --neon-glow-soft: rgba(0, 180, 255, 0.12);
    --neon-glow-subtle: rgba(0, 180, 255, 0.06);

    /* Typography */
    --font-display: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;

    /* Spacing */
    --section-pad: clamp(4rem, 10vh, 8rem);
    --container-max: 960px;

    /* Transitions */
    --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);

    /* Borders */
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
}

/* --- Reset & Base --- */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-body);
    background-color: var(--white);
    color: var(--black);
    overflow-x: hidden;
    line-height: 1.6;
}

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

/* --- Particles Canvas --- */
#particles-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

/* ==========================================
   HERO SECTION
   ========================================== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--white);
    overflow: hidden;
    z-index: 1;
}

/* Energy Lines — anime-style abstract decoration */
.energy-lines {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

.energy-line {
    position: absolute;
    background: linear-gradient(90deg, transparent, var(--neon-blue), transparent);
    opacity: 0;
    animation: energyPulse 6s ease-in-out infinite;
}

.energy-line--1 {
    top: 18%;
    left: -10%;
    width: 45%;
    height: 1px;
    animation-delay: 0s;
    transform: rotate(-8deg);
}
.energy-line--2 {
    top: 35%;
    right: -5%;
    width: 35%;
    height: 1px;
    animation-delay: 1.5s;
    transform: rotate(5deg);
}
.energy-line--3 {
    bottom: 30%;
    left: -8%;
    width: 40%;
    height: 1px;
    animation-delay: 3s;
    transform: rotate(-3deg);
}
.energy-line--4 {
    bottom: 15%;
    right: -10%;
    width: 50%;
    height: 1px;
    animation-delay: 4s;
    transform: rotate(7deg);
}
.energy-line--5 {
    top: 55%;
    left: 20%;
    width: 25%;
    height: 1px;
    animation-delay: 2s;
    transform: rotate(-12deg);
}

@keyframes energyPulse {
    0%, 100% { opacity: 0; transform: scaleX(0.3) translateX(-30%); }
    30% { opacity: 0.5; }
    50% { opacity: 0.8; transform: scaleX(1) translateX(30%); }
    70% { opacity: 0.4; }
}

/* Brush Strokes */
.brush-stroke {
    position: absolute;
    width: 140px;
    height: 100%;
    top: 0;
    pointer-events: none;
    opacity: 0.6;
}
.brush-stroke--left {
    left: 3%;
}
.brush-stroke--right {
    right: 3%;
}

/* Hero Content */
.hero__content {
    position: relative;
    text-align: center;
    z-index: 2;
    padding: 2rem;
}

/* Neon Ring */
.hero__ring {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 340px;
    height: 340px;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    border: 1px solid var(--neon-glow-soft);
    box-shadow: 
        0 0 60px var(--neon-glow-subtle),
        inset 0 0 60px var(--neon-glow-subtle);
    animation: ringPulse 4s ease-in-out infinite;
    pointer-events: none;
}

@keyframes ringPulse {
    0%, 100% { 
        opacity: 0.4; 
        transform: translate(-50%, -50%) scale(1);
        box-shadow:
            0 0 40px var(--neon-glow-subtle),
            inset 0 0 40px var(--neon-glow-subtle);
    }
    50% { 
        opacity: 0.8; 
        transform: translate(-50%, -50%) scale(1.05);
        box-shadow:
            0 0 80px var(--neon-glow-soft),
            inset 0 0 80px var(--neon-glow-soft);
    }
}

/* Title */
.hero__title {
    font-family: var(--font-display);
    font-weight: 900;
    line-height: 1;
    letter-spacing: -0.03em;
    margin-bottom: 1.5rem;
}

.hero__title-line {
    display: block;
    font-size: clamp(3rem, 10vw, 6.5rem);
    color: var(--black);
}

.neon-text {
    color: var(--neon-blue);
    text-shadow: 
        0 0 10px var(--neon-glow),
        0 0 30px var(--neon-glow-soft);
    position: relative;
}

.hero__title-sub {
    display: block;
    font-size: clamp(1.8rem, 5vw, 3.5rem);
    font-weight: 600;
    color: var(--black-soft);
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin-top: 0.2em;
}

/* Subtitle */
.hero__subtitle {
    font-family: var(--font-body);
    font-size: clamp(1rem, 2.5vw, 1.25rem);
    font-weight: 400;
    color: var(--black-muted);
    max-width: 480px;
    margin: 0 auto;
    letter-spacing: 0.02em;
}

/* Scroll Indicator */
.scroll-indicator {
    margin-top: 3.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    animation: floatDown 2.5s ease-in-out infinite;
}

.scroll-indicator__mouse {
    width: 22px;
    height: 34px;
    border: 2px solid var(--black-muted);
    border-radius: 11px;
    position: relative;
    opacity: 0.5;
}

.scroll-indicator__wheel {
    width: 3px;
    height: 8px;
    background: var(--neon-blue);
    border-radius: 2px;
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    animation: wheelScroll 2s ease-in-out infinite;
}

.scroll-indicator__text {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--black-muted);
    opacity: 0.5;
}

@keyframes floatDown {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(8px); }
}

@keyframes wheelScroll {
    0% { opacity: 1; transform: translateX(-50%) translateY(0); }
    100% { opacity: 0; transform: translateX(-50%) translateY(10px); }
}

/* ==========================================
   NEON DIVIDER
   ========================================== */
.neon-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 0 2rem;
    max-width: var(--container-max);
    margin: 0 auto;
}

.neon-divider__line {
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--neon-blue), transparent);
    opacity: 0.25;
}

.neon-divider__diamond {
    width: 8px;
    height: 8px;
    background: var(--neon-blue);
    transform: rotate(45deg);
    box-shadow: 0 0 10px var(--neon-glow);
    opacity: 0.6;
}

/* ==========================================
   BRAND SECTION
   ========================================== */
.brand {
    padding: var(--section-pad) 2rem;
    position: relative;
    z-index: 1;
}

.brand__container {
    max-width: var(--container-max);
    margin: 0 auto;
    text-align: center;
    position: relative;
}

.brand__heading {
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 4vw, 2.2rem);
    font-weight: 700;
    color: var(--black);
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

.brand__description {
    font-size: clamp(0.95rem, 2vw, 1.1rem);
    color: var(--black-muted);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.8;
}

.brand__description strong {
    color: var(--neon-blue);
    font-weight: 600;
}

/* Decorative Mark */
.brand__marks {
    margin-top: 2.5rem;
    display: flex;
    justify-content: center;
}

.brand__mark {
    width: 50px;
    height: 50px;
    animation: markSpin 20s linear infinite;
}

@keyframes markSpin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* ==========================================
   LINKS SECTION
   ========================================== */
.links {
    padding: var(--section-pad) 2rem;
    position: relative;
    z-index: 1;
}

.links__container {
    max-width: var(--container-max);
    margin: 0 auto;
}

.links__heading {
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 4vw, 2.2rem);
    font-weight: 700;
    color: var(--black);
    text-align: center;
    margin-bottom: 3rem;
    letter-spacing: -0.02em;
}

.links__grid {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    max-width: 560px;
    margin: 0 auto;
}

/* --- Link Card --- */
.link-card {
    position: relative;
    display: flex;
    align-items: center;
    gap: 1.25rem;
    padding: 1.5rem 1.75rem;
    background: var(--white);
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: 
        transform 0.4s var(--ease-out-expo),
        box-shadow 0.4s var(--ease-out-expo),
        border-color 0.4s ease;
    overflow: hidden;
    box-shadow: 
        0 1px 3px rgba(0, 0, 0, 0.04),
        0 4px 12px rgba(0, 0, 0, 0.03);
}

.link-card__glow {
    position: absolute;
    inset: -1px;
    border-radius: var(--radius-lg);
    opacity: 0;
    transition: opacity 0.5s ease;
    background: transparent;
    box-shadow: 
        0 0 20px var(--neon-glow-soft),
        0 0 50px var(--neon-glow-subtle),
        inset 0 0 20px var(--neon-glow-subtle);
    pointer-events: none;
    z-index: 0;
}

.link-card:hover {
    transform: translateY(-3px) scale(1.015);
    border-color: rgba(0, 180, 255, 0.2);
    box-shadow: 
        0 8px 30px rgba(0, 0, 0, 0.06),
        0 2px 10px var(--neon-glow-soft);
}

.link-card:hover .link-card__glow {
    opacity: 1;
}

.link-card:hover .link-card__icon {
    color: var(--neon-blue);
    border-color: rgba(0, 180, 255, 0.2);
    background: var(--neon-glow-subtle);
    box-shadow: 0 0 15px var(--neon-glow-subtle);
}

.link-card:hover .link-card__arrow {
    opacity: 1;
    transform: translateX(0);
    color: var(--neon-blue);
}

.link-card:active {
    transform: translateY(-1px) scale(1.005);
}

/* Icon */
.link-card__icon {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    min-width: 50px;
    border-radius: var(--radius-md);
    border: 1px solid rgba(0, 0, 0, 0.08);
    background: var(--white-soft);
    color: var(--black);
    transition: 
        color 0.4s ease,
        border-color 0.4s ease,
        background 0.4s ease,
        box-shadow 0.4s ease;
}

.link-card__icon svg {
    width: 24px;
    height: 24px;
}

/* Content */
.link-card__content {
    position: relative;
    z-index: 1;
    flex: 1;
}

.link-card__title {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--black);
    margin-bottom: 0.15rem;
}

.link-card__desc {
    font-size: 0.82rem;
    color: var(--black-muted);
    letter-spacing: 0.01em;
}

/* Arrow */
.link-card__arrow {
    position: relative;
    z-index: 1;
    opacity: 0;
    transform: translateX(-8px);
    transition: 
        opacity 0.4s var(--ease-out-expo),
        transform 0.4s var(--ease-out-expo),
        color 0.3s ease;
    color: var(--black-muted);
}

.link-card__arrow svg {
    width: 20px;
    height: 20px;
}

/* ==========================================
   FOOTER
   ========================================== */
.footer {
    padding: 2.5rem 2rem 2rem;
    text-align: center;
    position: relative;
    z-index: 1;
}

.footer__accent-line {
    width: 60px;
    height: 2px;
    background: var(--neon-blue);
    margin: 0 auto 1.5rem;
    border-radius: 1px;
    box-shadow: 0 0 10px var(--neon-glow);
    opacity: 0.6;
}

.footer__text {
    font-family: var(--font-body);
    font-size: 0.8rem;
    color: var(--black-muted);
    letter-spacing: 0.06em;
}

/* ==========================================
   SCROLL ANIMATIONS
   ========================================== */
[data-animate] {
    opacity: 0;
    transform: translateY(30px);
    transition: 
        opacity 0.8s var(--ease-out-expo),
        transform 0.8s var(--ease-out-expo);
}

[data-animate].is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* ==========================================
   RESPONSIVE
   ========================================== */

/* Tablet */
@media (max-width: 768px) {
    .brush-stroke {
        width: 80px;
        opacity: 0.3;
    }
    .brush-stroke--left { left: 0; }
    .brush-stroke--right { right: 0; }

    .hero__ring {
        width: 260px;
        height: 260px;
    }

    .link-card {
        padding: 1.25rem 1.5rem;
    }

    .link-card__icon {
        width: 44px;
        height: 44px;
        min-width: 44px;
    }

    .link-card__icon svg {
        width: 20px;
        height: 20px;
    }
}

/* Mobile */
@media (max-width: 480px) {
    .brush-stroke {
        display: none;
    }

    .hero__ring {
        width: 220px;
        height: 220px;
    }

    .hero__title-sub {
        letter-spacing: 0.08em;
    }

    .scroll-indicator {
        margin-top: 2.5rem;
    }

    .link-card {
        padding: 1.15rem 1.25rem;
        gap: 1rem;
    }

    .link-card__arrow {
        display: none;
    }

    .links__heading {
        margin-bottom: 2rem;
    }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.001ms !important;
        transition-duration: 0.001ms !important;
    }
    .scroll-indicator { display: none; }
}
