/* ════════════════════════════════════════════════════
   SVRRVF — Design System
   Everything Is Dark Here
   ════════════════════════════════════════════════════ */

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

@font-face {
    font-family: 'SVRRVF-FONT';
    src: url('../fonts/svrrvf-font.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

:root {
    --black: #000000;
    --white: #ffffff;
    --white-80: rgba(255, 255, 255, 0.80);
    --white-50: rgba(255, 255, 255, 0.50);
    --white-30: rgba(255, 255, 255, 0.30);
    --white-12: rgba(255, 255, 255, 0.12);
    --white-06: rgba(255, 255, 255, 0.06);
    --white-04: rgba(255, 255, 255, 0.04);

    --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', sans-serif;

    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-inout: cubic-bezier(0.65, 0, 0.35, 1);

    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 18px;

    --spacing-unit: 8px;
}

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

body {
    background-color: var(--black);
    color: var(--white);
    font-family: var(--font);
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

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

img {
    display: block;
    max-width: 100%;
}

::selection {
    background: var(--white);
    color: var(--black);
}

::-webkit-scrollbar {
    width: 3px;
}

::-webkit-scrollbar-track {
    background: var(--black);
}

::-webkit-scrollbar-thumb {
    background: var(--white-30);
    border-radius: 3px;
}

/* ════════════════════════════════════════════════════
   HERO
   ════════════════════════════════════════════════════ */

.hero {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100dvh;
    padding: 80px 24px 64px;
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        transparent 0%,
        var(--white-04) 50%,
        transparent 100%
    );
    pointer-events: none;
}

.hero__inner {
    text-align: center;
    position: relative;
    z-index: 1;
}

.hero__wordmark {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.hero__symbol {
    position: absolute;
    top: 8%;
    left: 50%;
    transform: translate(-50%, 0);
    width: 200px;
    height: 200px;
    opacity: 0.5;
    pointer-events: none;
}

.hero__symbol img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    animation: rotateSymbol 30s linear infinite;
    filter: brightness(1.2) contrast(1.1);
}

@keyframes rotateSymbol {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.hero__title {
    font-family: 'SVRRVF-FONT', sans-serif !important;
    font-size: clamp(100px, 18vw, 180px);
    font-weight: normal;
    letter-spacing: 0.05em;
    line-height: 1;
    color: var(--white);
    user-select: none;
    animation: heroTitleIn 3s var(--ease-out) both;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

/* Parallax readiness */
.hero__symbol,
.hero__title,
.hero__subtitle,
.hero__tagline {
    will-change: transform;
}

.hero__subtitle {
    font-size: clamp(11px, 2.2vw, 14px);
    font-weight: 400;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: var(--white-50);
    animation: heroFadeIn 1.6s var(--ease-out) 0.3s both;
}

.hero__tagline {
    font-size: clamp(12px, 2.4vw, 15px);
    font-weight: 300;
    letter-spacing: 0.16em;
    color: var(--white-30);
    animation: heroFadeIn 1.6s var(--ease-out) 0.6s both;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: 36px;
    left: 50%;
    transform: translateX(-50%);
    width: 1px;
    height: 48px;
    background: linear-gradient(to bottom, var(--white-30), transparent);
    animation: scrollCue 2s var(--ease-inout) 1.8s both;
}

@keyframes heroTitleIn {
    from {
        opacity: 0;
        transform: translateY(24px);
        letter-spacing: 0.2em;
    }

    to {
        opacity: 1;
        transform: translateY(0);
        letter-spacing: 0.05em;
    }
}

@keyframes heroFadeIn {
    from {
        opacity: 0;
        transform: translateY(12px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes scrollCue {
    from {
        opacity: 0;
        transform: translateX(-50%) scaleY(0);
        transform-origin: top;
    }

    to {
        opacity: 1;
        transform: translateX(-50%) scaleY(1);
        transform-origin: top;
    }
}

/* Hero motion enhancements */
.hero__inner,
.hero__symbol {
    will-change: transform, opacity, filter;
}

.hero.is-fading .hero__inner {
    transition: opacity 0.18s linear, filter 0.18s linear, transform 0.18s linear;
}

.hero.is-fading .hero__symbol {
    transition: opacity 0.18s linear, filter 0.18s linear, transform 0.18s linear;
}

/* ════════════════════════════════════════════════════
   HUB
   ════════════════════════════════════════════════════ */

.hub {
    flex: 1;
    padding: 0 24px 120px;
}

.hub__container {
    max-width: 620px;
    margin: 0 auto;
}

.hub__list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.hub__loading {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    padding: 80px 0;
}

.hub__loading span {
    display: block;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--white-30);
    animation: dotPulse 1.2s var(--ease-inout) infinite;
}

.hub__loading span:nth-child(2) {
    animation-delay: 0.2s;
}

.hub__loading span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes dotPulse {
    0%, 100% {
        opacity: 0.3;
        transform: scale(1);
    }

    50% {
        opacity: 1;
        transform: scale(1.5);
    }
}

/* ════════════════════════════════════════════════════
   LINK ITEMS
   ════════════════════════════════════════════════════ */

.link-item {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 28px 0;
    border-bottom: 1px solid var(--white-06);
    cursor: pointer;
    position: relative;
    transition: opacity 0.3s var(--ease-out), transform 0.3s var(--ease-out);
    animation: itemIn 0.8s var(--ease-out) both;
    transform-origin: center;
}

.link-item:first-child {
    border-top: 1px solid var(--white-06);
}

.link-item:hover {
    opacity: 0.55;
}

.link-item:hover .link-item__arrow {
    transform: translateX(4px);
    opacity: 1;
}

.link-item:active {
    transform: scale(0.985);
    opacity: 0.4;
}

.link-item.is-pressed {
    transform: scale(0.985);
    opacity: 0.42;
}

.link-item__thumb {
    flex-shrink: 0;
    width: 56px;
    height: 56px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    background: var(--white-06);
    display: flex;
    align-items: center;
    justify-content: center;
}

.link-item__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%) brightness(0.9);
    transition: filter 0.3s var(--ease-out);
}

.link-item:hover .link-item__thumb img {
    filter: grayscale(100%) brightness(1.1);
}

.link-item__thumb--empty {
    border: 1px solid var(--white-12);
}

.link-item__thumb--empty::after {
    content: '';
    width: 18px;
    height: 18px;
    border: 1.5px solid var(--white-30);
    border-radius: 3px;
}

.link-item__thumb--platform {
    border: 1px solid var(--white-12);
    background: var(--white-06);
    color: var(--white);
}

.link-item__thumb--platform svg {
    width: 32px;
    height: 32px;
    display: block;
    opacity: 0.95;
}

.link-item__thumb--platform svg path,
.link-item__thumb--platform svg circle,
.link-item__thumb--platform svg rect,
.link-item__thumb--platform svg polyline,
.link-item__thumb--platform svg line {
    stroke: currentColor;
    fill: none;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.link-item__content {
    flex: 1;
    min-width: 0;
}

.link-item__title {
    font-size: clamp(19px, 4.5vw, 24px);
    font-weight: 600;
    letter-spacing: -0.01em;
    color: var(--white);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.25;
    margin-bottom: 4px;
}

.link-item__label {
    font-size: clamp(11px, 2.5vw, 12px);
    font-weight: 400;
    letter-spacing: 0.04em;
    color: var(--white-30);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1;
}

.link-item__arrow {
    flex-shrink: 0;
    width: 16px;
    height: 16px;
    opacity: 0.25;
    transition: transform 0.3s var(--ease-out), opacity 0.3s var(--ease-out);
}

.link-item__arrow svg {
    width: 100%;
    height: 100%;
    fill: none;
    stroke: var(--white);
    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.link-item__thumb,
.link-item__content,
.link-item__arrow {
    transition: transform 0.28s var(--ease-out), opacity 0.28s var(--ease-out), filter 0.28s var(--ease-out);
}

.link-item:hover .link-item__thumb {
    transform: scale(1.04);
}

.link-item:hover .link-item__content {
    transform: translateX(2px);
}

.link-item:hover .link-item__arrow {
    transform: translateX(6px);
    opacity: 1;
}

@keyframes itemIn {
    from {
        opacity: 0;
        transform: translateY(16px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hub__empty {
    text-align: center;
    padding: 80px 0;
    color: var(--white-30);
    font-size: 13px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

/* ════════════════════════════════════════════════════
   FOOTER
   ════════════════════════════════════════════════════ */

.footer {
    padding: 32px 24px;
    text-align: center;
    border-top: 1px solid var(--white-06);
}

.footer__copy {
    font-size: 11px;
    font-weight: 400;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--white-30);
}

/* ════════════════════════════════════════════════════
   RESPONSIVE
   ════════════════════════════════════════════════════ */

@media (min-width: 768px) {
    .hero {
        padding: 120px 48px 80px;
    }

    .hub {
        padding: 0 48px 160px;
    }

    .link-item {
        padding: 32px 0;
        gap: 24px;
    }

    .link-item__thumb {
        width: 60px;
        height: 60px;
    }
}

@media (min-width: 1200px) {
    .hub__container {
        max-width: 680px;
    }
}

/* ════════════════════════════════════════════════════
   ACCESSIBILITY
   ════════════════════════════════════════════════════ */

:focus-visible {
    outline: 1.5px solid var(--white-50);
    outline-offset: 4px;
    border-radius: 2px;
}
