* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-decoration: none;
}

html {
    scroll-behavior: smooth;
}

body {
    background: #080808;
    color: #f0f0f0;
    font-family: "Montserrat", sans-serif;
    overflow-x: hidden;
}

::selection {
    background: #f0f0f0;
    color: #080808;
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    html { scroll-behavior: auto; }
    .hero h1 .char { opacity: 1 !important; transform: none !important; }
    .hero-desc, .hero-line,
    .section-title, .section-num,
    .links-grid a, .placeholder-card,
    .license-text { opacity: 1 !important; transform: none !important; }
}

a {
    color: white;
}

.scroll-progress {
    position: fixed;
    top: 0; left: 0;
    height: 1px;
    width: 0%;
    background: #fff;
    z-index: 9998;
    pointer-events: none;
    mix-blend-mode: difference;
    transition: width 0.08s linear;
}


.noise {
    position: fixed;
    inset: 0;
    background-image: radial-gradient(rgba(255,255,255,0.06) 0.5px, transparent 0.5px);
    background-size: 14px 14px;
    opacity: 0.18;
    pointer-events: none;
    z-index: 1;
}

.bg-watermark {
    position: fixed;
    inset: 0;
    background-image: url("../images/watermark.svg");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 640px;
    opacity: 0.05;
    filter: blur(4px);
    pointer-events: none;
    z-index: 0;
    transform: translate3d(var(--wx,0px), var(--wy,0px), 0) scale(var(--ws,1)) rotate(var(--wr,0deg));
    transition: transform 100ms linear;
}

.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 22px 56px;
    background: rgba(8,8,8,0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid #141414;
    z-index: 100;
    transition: padding 0.3s ease;
}

.navbar.scrolled {
    padding: 14px 56px;
}

.nav-logo {
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 5px;
    color: #fff;
    text-decoration: none;
    position: relative;
}

.nav-logo::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 0%;
    height: 1px;
    background: #fff;
    transition: width 0.3s ease;
}

.nav-logo:hover::after { width: 100%; }

nav {
    display: flex;
    gap: 4px;
}

nav a {
    color: #555;
    text-decoration: none;
    font-size: 10px;
    letter-spacing: 2.5px;
    padding: 8px 14px;
    border: 1px solid transparent;
    transition: color 0.2s, border-color 0.2s, background 0.2s;
    position: relative;
}

nav a::before {
    content: '';
    position: absolute;
    bottom: 0; left: 14px; right: 14px;
    height: 1px;
    background: #fff;
    transform: scaleX(0);
    transition: transform 0.25s ease;
}

nav a:hover {
    color: #fff;
    border-color: #1e1e1e;
    background: #0e0e0e;
}

nav a:hover::before { transform: scaleX(1); }
nav a.active { color: #fff; }

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    padding: 4px;
}

.nav-toggle span {
    display: block;
    width: 22px;
    height: 1px;
    background: #fff;
    transition: transform 0.25s ease, opacity 0.25s ease;
}

.nav-toggle.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.hero {
    position: relative;
    z-index: 2;
    align-items: center;
    min-height: calc(100vh - 65px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0 56px 72px;
}

.small-hero {
    min-height: 42vh;
    justify-content: center;
    padding-top: 0;
}

.hero.revealed { opacity: 1; transform: none; }

.hero h1 {
    font-size: clamp(64px, 11vw, 140px);
    font-weight: 900;
    line-height: 0.88;
    letter-spacing: -5px;
    margin-bottom: 32px;
}

.hero h1,
.hero-desc {
    text-align: center;
}

.hero h1 .char {
    display: inline-block;
    opacity: 0;
    transform: translateY(105%);
    transition: opacity 0.55s ease, transform 0.55s cubic-bezier(0.16,1,0.3,1);
}
.hero h1 .word {
    display: inline-block;
    overflow: hidden;
    line-height: 1;
    margin-right: 0.06em;
    vertical-align: bottom;
}
.hero h1.revealed .char { opacity: 1; transform: none; }

.hero-desc {
    max-width: 520px;
    color: #4a4a4a;
    line-height: 2;
    font-size: 15px;
    opacity: 0;
    transform: translateY(14px);
    transition: opacity 0.6s ease 0.5s, transform 0.6s ease 0.5s;
}
.hero.revealed .hero-desc { opacity: 1; transform: none; }

.hero-line {
    position: absolute;
    bottom: 0; left: 56px; right: 56px;
    height: 1px;
    background: linear-gradient(90deg, transparent, #1c1c1c 20%, #1c1c1c 80%, transparent);
    transform: scaleX(0);
    transition: transform 1s ease 0.8s;
}
.hero.revealed .hero-line { transform: scaleX(1); }

.status-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: "JetBrains Mono", monospace;
    font-size: 9px;
    letter-spacing: 2px;
    color: #3a3a3a;
    border: 1px solid #1c1c1c;
    padding: 8px 14px;
    margin-bottom: 28px;
}

.status-dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #fff;
    animation: blink 2.4s ease infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0.15; }
}

.section {
    position: relative;
    z-index: 2;
    padding: 64px 56px;
    border-top: 1px solid #111;
}

.section-header {
    display: flex;
    align-items: baseline;
    gap: 20px;
    margin-bottom: 40px;
}

.section-title {
    font-size: 10px;
    letter-spacing: 5px;
    font-weight: 700;
    color: #fff;
    opacity: 0;
    transform: translateX(-16px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.section-num {
    font-family: "JetBrains Mono", monospace;
    font-size: 10px;
    color: #282828;
    letter-spacing: 1px;
    opacity: 0;
    transition: opacity 0.5s ease 0.1s;
}

.section.in-view .section-title,
.section.in-view .section-num { opacity: 1; transform: none; }

.section.in-view {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.section.in-view .section-header {
    justify-content: center;
    width: 100%;
}

.section.in-view .links-grid {
    justify-content: center;
}

.links-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

.links-grid a {
    text-decoration: none;
    color: #555;
    border: 1px solid #161616;
    background: transparent;
    padding: 16px 22px;
    font-size: 11px;
    letter-spacing: 2.5px;
    transition: color 0.2s, border-color 0.2s, background 0.2s, transform 0.2s;
    opacity: 0;
    transform: translateY(18px);
    position: relative;
    overflow: hidden;
}

.links-grid a::after {
    content: '';
    position: absolute;
    inset: 0;
    background: #fff;
    transform: translateY(101%);
    transition: transform 0.3s cubic-bezier(0.16,1,0.3,1);
    z-index: 0;
}

.links-grid a span { position: relative; z-index: 1; }

.links-grid a:hover {
    color: #080808;
    border-color: #fff;
    transform: translateY(-2px) !important;
}

.links-grid a:hover::after { transform: translateY(0); }

.section.in-view .links-grid a { opacity: 1; transform: translateY(0); }
.section.in-view .links-grid a:nth-child(1)  { transition-delay: 0.06s; }
.section.in-view .links-grid a:nth-child(2)  { transition-delay: 0.12s; }
.section.in-view .links-grid a:nth-child(3)  { transition-delay: 0.18s; }
.section.in-view .links-grid a:nth-child(4)  { transition-delay: 0.24s; }
.section.in-view .links-grid a:nth-child(5)  { transition-delay: 0.30s; }
.section.in-view .links-grid a:nth-child(6)  { transition-delay: 0.36s; }
.section.in-view .links-grid a:nth-child(7)  { transition-delay: 0.42s; }
.section.in-view .links-grid a:nth-child(8)  { transition-delay: 0.48s; }
.section.in-view .links-grid a:nth-child(9)  { transition-delay: 0.54s; }
.section.in-view .links-grid a:nth-child(10) { transition-delay: 0.60s; }

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1px;
    background: #111;
    border: 1px solid #111;
}

.card {
    background: #080808;
    padding: 32px;
    opacity: 0;
    transform: translateY(14px);
    transition: opacity 0.5s ease, transform 0.5s ease, background 0.2s;
}

.card:hover { background: #0d0d0d; }

.section.in-view .card { opacity: 1; transform: none; }
.section.in-view .card:nth-child(1) { transition-delay: 0.06s; }
.section.in-view .card:nth-child(2) { transition-delay: 0.12s; }
.section.in-view .card:nth-child(3) { transition-delay: 0.18s; }
.section.in-view .card:nth-child(4) { transition-delay: 0.24s; }
.section.in-view .card:nth-child(5) { transition-delay: 0.30s; }
.section.in-view .card:nth-child(6) { transition-delay: 0.36s; }
.section.in-view .card:nth-child(7) { transition-delay: 0.42s; }
.section.in-view .card:nth-child(8) { transition-delay: 0.48s; }

.card-label {
    font-family: "JetBrains Mono", monospace;
    font-size: 9px;
    letter-spacing: 3px;
    color: #2a2a2a;
    margin-bottom: 12px;
}

.card-value {
    font-size: 13px;
    color: #d0d0d0;
    line-height: 1.7;
}

.card-value a {
    color: #d0d0d0;
    text-decoration: none;
    border-bottom: 1px solid #222;
    transition: border-color 0.2s, color 0.2s;
}

.card-value a:hover {
    color: #fff;
    border-color: #fff;
}

.license-wrap {
    position: relative;
    z-index: 2;
    padding: 0 56px 100px;
}

.license-text {
    font-family: "JetBrains Mono", monospace;
    font-size: 13px;
    color: #4a4a4a;
    line-height: 1.9;
    white-space: pre-wrap;
    border: 1px solid #141414;
    background: rgba(255,255,255,0.015);
    padding: 48px;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
    overflow-x: auto;
}

.license-wrap.in-view .license-text { opacity: 1; transform: none; }

.placeholder-card {
    border: 1px dashed #1c1c1c;
    padding: 40px;
    color: #2a2a2a;
    font-family: "JetBrains Mono", monospace;
    font-size: 10px;
    letter-spacing: 2px;
    line-height: 2;
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.section.in-view .placeholder-card { opacity: 1; transform: none; }

footer {
    position: relative;
    z-index: 2;
    border-top: 1px solid #0e0e0e;
    padding: 48px 56px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-logo {
    width: 32px;
    opacity: 0.18;
    transition: opacity 0.3s, transform 0.3s;
}

.footer-logo:hover { opacity: 0.6; transform: rotate(12deg) scale(1.1); }

.footer-copy {
    font-family: "JetBrains Mono", monospace;
    font-size: 9px;
    color: #282828;
    letter-spacing: 2px;
}

.footer-links {
    display: flex;
    gap: 20px;
}

.footer-links a {
    font-size: 9px;
    letter-spacing: 2px;
    color: #2e2e2e;
    text-decoration: none;
    transition: color 0.2s;
}

.footer-links a:hover { color: #fff; }

@media (max-width: 860px) {
    .navbar {
        padding: 18px 20px;
        flex-wrap: wrap;
        gap: 0;
    }
    .navbar.scrolled { padding: 14px 20px; }

    .nav-toggle { display: flex; }

    nav {
        display: none;
        flex-direction: column;
        width: 100%;
        padding: 12px 0 4px;
        gap: 0;
    }
    nav.open { display: flex; }

    nav a {
        padding: 10px 0;
        border: none;
        border-bottom: 1px solid #111;
    }

    nav a::before { display: none; }

    .hero { padding: 0 20px 56px; }
    .hero h1 { letter-spacing: -2px; }
    .hero-line { left: 20px; right: 20px; }

    .section { padding: 48px 20px; }
    .license-wrap { padding: 0 20px 80px; }

    footer { padding: 36px 20px; flex-direction: column; gap: 20px; text-align: center; }
    .footer-links { justify-content: center; }
}