:root {
    --bg: #050505;
    --panel: rgba(255, 255, 255, 0.055);
    --panel-strong: rgba(255, 255, 255, 0.09);
    --line: rgba(255, 255, 255, 0.12);
    --line-soft: rgba(255, 255, 255, 0.07);
    --text: #ffffff;
    --text-soft: rgba(255, 255, 255, 0.74);
    --text-muted: rgba(255, 255, 255, 0.48);
    --max-width: 1140px;
}

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

html {
    scroll-behavior: auto;
    overscroll-behavior: none;
}

body {
    min-height: 100vh;
    overflow-x: hidden;
    overscroll-behavior: none;
    background: var(--bg);
    color: var(--text);
    font-family: Inter, "Segoe UI", Arial, Helvetica, sans-serif;
    -webkit-font-smoothing: antialiased;
    text-rendering: geometricPrecision;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -2;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
    background-size: 72px 72px;
}

body::after {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.035), transparent 260px),
        rgba(0, 0, 0, 0.48);
}

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

button {
    font: inherit;
}

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

main {
    width: 100%;
}

.hero,
.section {
    position: relative;
    min-height: 100vh;
}

.hero {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 90px 24px 112px;
    text-align: center;
}

.hero::after,
.preview::after,
.modules::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 0;
    width: min(760px, calc(100% - 48px));
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--line), transparent);
    transform: translateX(-50%);
}

.hero-content {
    width: min(760px, 100%);
    padding: 0 8px;
}

.hero h1 {
    font-size: clamp(52px, 9vw, 108px);
    font-weight: 780;
    letter-spacing: -0.045em;
    line-height: 0.96;
}

.hero-text {
    max-width: 585px;
    margin: 24px auto 0;
    color: var(--text-soft);
    font-size: 17px;
    line-height: 1.7;
}

.button {
    display: inline-flex;
    min-width: 150px;
    height: 50px;
    align-items: center;
    justify-content: center;
    margin-top: 32px;
    padding: 0 22px;
    border: 1px solid rgba(255, 255, 255, 0.76);
    border-radius: 6px;
    background: #050505;
    color: #ffffff;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.08),
        0 10px 28px rgba(0, 0, 0, 0.26);
    font-size: 14px;
    font-weight: 760;
    transition:
        background-color 220ms ease,
        border-color 220ms ease,
        box-shadow 220ms ease;
}

.button:hover {
    background-color: rgba(255, 255, 255, 0.14);
    border-color: rgba(255, 255, 255, 0.9);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.12),
        0 10px 28px rgba(0, 0, 0, 0.26);
}

.button:focus-visible {
    outline: 2px solid rgba(255, 255, 255, 0.85);
    outline-offset: 4px;
}

.section {
    width: min(var(--max-width), calc(100% - 48px));
    margin: 0 auto;
    padding: 92px 0 110px;
}

.section-header {
    margin-bottom: 32px;
}

.section-header p {
    margin-bottom: 11px;
    color: var(--text-muted);
    font-size: 12px;
    font-weight: 760;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.section-header h2 {
    font-size: clamp(36px, 5vw, 58px);
    font-weight: 760;
    letter-spacing: -0.04em;
    line-height: 1;
}

.ui-showcase {
    position: relative;
}

.ui-showcase img {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 34px 90px rgba(0, 0, 0, 0.54);
}

.module-section {
    position: relative;
    display: grid;
    grid-template-columns: minmax(150px, 0.32fr) 1fr;
    gap: 20px;
    align-items: start;
    padding: 24px 0;
}

.module-section::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    height: 1px;
    background: linear-gradient(90deg, var(--line), var(--line-soft));
}

.module-section h3 {
    color: var(--text);
    font-size: 21px;
    font-weight: 720;
    letter-spacing: -0.025em;
}

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tags span {
    min-height: 36px;
    padding: 9px 14px;
    border: 1px solid rgba(255, 255, 255, 0.58);
    border-radius: 6px;
    background: #050505;
    color: #ffffff;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.06),
        0 8px 20px rgba(0, 0, 0, 0.2);
    font-size: 13px;
    line-height: 1.25;
}

.footer {
    display: flex;
    width: min(var(--max-width), calc(100% - 48px));
    align-items: center;
    justify-content: space-between;
    margin: 0 auto;
    padding: 28px 0 96px;
    color: var(--text-muted);
    font-size: 12px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text);
    font-weight: 760;
    letter-spacing: 0.1em;
}

.footer-brand img {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.scroll-control {
    position: fixed;
    left: 50%;
    bottom: 20px;
    z-index: 20;
    display: grid;
    width: 48px;
    height: 48px;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.72);
    border-radius: 8px;
    background: #050505;
    color: #ffffff;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.08),
        0 12px 34px rgba(0, 0, 0, 0.34);
    cursor: pointer;
    transform: translateX(-50%);
}

.scroll-control-icon {
    width: 13px;
    height: 13px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg) translate(-2px, -2px);
}

.scroll-control.is-top .scroll-control-icon {
    transform: rotate(225deg) translate(-2px, -2px);
}

.reveal {
    opacity: 0;
    transform: translateY(16px);
    transition:
        opacity 560ms ease,
        transform 560ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

.reveal.show {
    opacity: 1;
    transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 1ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: 1ms !important;
    }
}

@media (max-width: 760px) {
    body::before {
        background-size: 56px 56px;
    }

    .hero {
        min-height: 100svh;
        padding: 76px 18px 104px;
    }

    .hero-content {
        padding: 28px 20px;
    }

    .hero h1 {
        font-size: clamp(48px, 16vw, 74px);
    }

    .hero-text {
        font-size: 15px;
    }

    .section {
        width: calc(100% - 36px);
        min-height: 100svh;
        padding: 76px 0 96px;
    }

    .module-section {
        grid-template-columns: 1fr;
        gap: 14px;
        padding: 22px 0;
    }

    .module-section h3 {
        font-size: 22px;
    }

    .footer {
        width: calc(100% - 36px);
        flex-direction: column;
        gap: 14px;
        padding-bottom: 96px;
        text-align: center;
    }

    .scroll-control {
        bottom: 14px;
    }
}
