.navbar {
    position: fixed;
    top: 16px;
    left: 0;
    right: 0;
    z-index: 1000;
}

.nav-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    min-height: 68px;
    padding: 0 18px 0 20px;
    border: 1px solid rgba(248, 251, 252, 0.18);
    border-radius: var(--radius-md);
    background: rgba(12, 15, 18, 0.76);
    box-shadow: var(--shadow-dark);
    backdrop-filter: blur(18px);
    transition: background 0.2s ease, min-height 0.2s ease, border-color 0.2s ease;
}

.navbar.scrolled .nav-wrapper {
    min-height: 60px;
    border-color: rgba(248, 251, 252, 0.14);
    background: rgba(12, 15, 18, 0.92);
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--white);
    font-weight: 800;
    text-decoration: none;
}

.logo-mark {
    width: 34px;
    height: 38px;
    object-fit: contain;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 6px;
    list-style: none;
}

.nav-link,
.nav-cta {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    padding: 0 12px;
    border-radius: var(--radius-sm);
    color: rgba(248, 251, 252, 0.72);
    font-size: 0.92rem;
    font-weight: 800;
    text-decoration: none;
}

.nav-link:hover,
.nav-link.active {
    background: rgba(248, 251, 252, 0.1);
    color: var(--white);
}

.nav-cta {
    border: 1px solid rgba(248, 251, 252, 0.28);
    color: var(--white);
}

.hamburger {
    display: none;
    width: 42px;
    height: 42px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    border: 1px solid rgba(248, 251, 252, 0.22);
    border-radius: var(--radius-sm);
    background: rgba(248, 251, 252, 0.06);
    cursor: pointer;
}

.hamburger span {
    width: 20px;
    height: 2px;
    background: var(--white);
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.hamburger.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.hero {
    position: relative;
    min-height: 100svh;
    overflow: hidden;
    display: flex;
    align-items: center;
    background:
        radial-gradient(circle at 70% 48%, rgba(248, 251, 252, 0.11), transparent 24%),
        radial-gradient(circle at 67% 74%, rgba(179, 58, 58, 0.22), transparent 32%),
        rgba(12, 15, 18, 0.96);
    color: var(--white);
}

.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background:
        linear-gradient(116deg, transparent 0 8%, rgba(248, 251, 252, 0.11) 8% 8.5%, transparent 8.5% 100%),
        linear-gradient(64deg, transparent 0 14%, rgba(179, 58, 58, 0.1) 14% 22%, transparent 22% 100%),
        radial-gradient(circle at 78% 46%, rgba(248, 251, 252, 0.14), transparent 30%),
        radial-gradient(circle at 72% 62%, rgba(179, 58, 58, 0.2), transparent 28%);
    mix-blend-mode: screen;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background:
        linear-gradient(90deg, transparent 0 63px, rgba(248, 251, 252, 0.042) 63px 64px, transparent 64px 128px),
        linear-gradient(0deg, transparent 0 63px, rgba(248, 251, 252, 0.034) 63px 64px, transparent 64px 128px);
    background-size: 128px 128px;
    opacity: 0.72;
}

.hero-visual,
.hero-shade {
    position: absolute;
    inset: 0;
}

.hero-visual {
    opacity: 0;
    will-change: opacity;
}

.boot-sequence {
    position: fixed;
    inset: 0;
    z-index: 2400;
    overflow: hidden;
    pointer-events: none;
    will-change: opacity, transform;
    background:
        linear-gradient(90deg, transparent 0 63px, rgba(248, 251, 252, 0.026) 63px 64px, transparent 64px 128px),
        linear-gradient(0deg, transparent 0 63px, rgba(248, 251, 252, 0.022) 63px 64px, transparent 64px 128px),
        radial-gradient(circle at 50% 50%, rgba(248, 251, 252, 0.11), transparent 16%),
        radial-gradient(circle at 51% 54%, rgba(179, 58, 58, 0.16), transparent 24%),
        #080b0e;
    background-size: 128px 128px, 128px 128px, auto, auto, auto;
}

.boot-sequence::before,
.boot-sequence::after {
    content: "";
    position: absolute;
    inset: -12% -18%;
    pointer-events: none;
}

.boot-sequence::before {
    left: 31%;
    right: auto;
    top: -28%;
    bottom: auto;
    width: clamp(18px, 1.9vw, 32px);
    height: 154vh;
    background: linear-gradient(180deg, transparent 0 3%, rgba(248, 251, 252, 0.66) 15% 78%, transparent 100%);
    box-shadow: 0 0 24px rgba(248, 251, 252, 0.12);
    opacity: 0.68;
    transform: rotate(28deg);
    transform-origin: center;
}

.boot-sequence::after {
    left: auto;
    right: 24%;
    top: -20%;
    bottom: auto;
    width: clamp(88px, 7.6vw, 142px);
    height: 146vh;
    background: linear-gradient(180deg, transparent 0 4%, rgba(179, 58, 58, 0.38) 18% 82%, transparent 100%);
    opacity: 0.44;
    transform: rotate(-13deg);
    transform-origin: center;
}

.boot-ray {
    position: absolute;
    top: -26%;
    z-index: 1;
    height: 156vh;
    pointer-events: none;
    transform-origin: center;
}

.boot-ray-left-red {
    left: 12%;
    width: clamp(70px, 6.4vw, 118px);
    background: linear-gradient(180deg, transparent 0 4%, rgba(179, 58, 58, 0.34) 18% 82%, transparent 100%);
    opacity: 0.38;
    transform: rotate(-18deg);
}

.boot-ray-right-white {
    right: 13%;
    width: clamp(18px, 1.9vw, 32px);
    background: linear-gradient(180deg, transparent 0 6%, rgba(248, 251, 252, 0.62) 18% 78%, transparent 100%);
    box-shadow: 0 0 24px rgba(248, 251, 252, 0.12);
    opacity: 0.66;
    transform: rotate(24deg);
}

.boot-shards span {
    position: absolute;
    left: 52%;
    top: 48%;
    width: clamp(34px, 4vw, 76px);
    aspect-ratio: 1;
    border: 1px solid rgba(248, 251, 252, 0.1);
    border-radius: 5px;
    background: linear-gradient(145deg, rgba(248, 251, 252, 0.1), rgba(248, 251, 252, 0.02));
    box-shadow: 0 18px 52px rgba(0, 0, 0, 0.32);
}

.boot-shards span:nth-child(2n) {
    background: rgba(179, 58, 58, 0.14);
    border-color: rgba(179, 58, 58, 0.18);
}

.boot-ornaments {
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
}

.boot-ornament {
    position: absolute;
    width: clamp(190px, 19vw, 340px);
    height: clamp(128px, 13vw, 230px);
    opacity: 0.32;
    background:
        linear-gradient(90deg, rgba(248, 251, 252, 0.12) 0 2px, transparent 2px 20px, rgba(248, 251, 252, 0.06) 20px 22px, transparent 22px 44px),
        linear-gradient(0deg, rgba(248, 251, 252, 0.1) 0 2px, transparent 2px 20px, rgba(248, 251, 252, 0.05) 20px 22px, transparent 22px 44px);
    background-size: 44px 44px;
    mask:
        linear-gradient(#000 0 0) left top / 100% 2px no-repeat,
        linear-gradient(#000 0 0) left top / 2px 100% no-repeat,
        linear-gradient(#000 0 0) right bottom / 64% 2px no-repeat,
        linear-gradient(#000 0 0) right bottom / 2px 64% no-repeat;
}

.boot-ornament::after {
    content: "";
    position: absolute;
    inset: 18px;
    border: 1px solid rgba(179, 58, 58, 0.14);
    opacity: 0.68;
}

.boot-ornament-a {
    left: 13%;
    top: 17%;
}

.boot-ornament-b {
    right: 12%;
    top: 16%;
    transform: scaleX(-1);
}

.boot-ornament-c {
    left: 14%;
    bottom: 14%;
    transform: scaleY(-1);
    opacity: 0.24;
}

.boot-ornament-d {
    right: 13%;
    bottom: 13%;
    transform: scale(-1);
    opacity: 0.24;
}

.boot-mark {
    position: absolute;
    left: 50%;
    top: 50%;
    z-index: 5;
    width: clamp(168px, 13vw, 248px);
    aspect-ratio: 214 / 241;
    transform: translate(-50%, -50%);
    filter: drop-shadow(0 0 34px rgba(248, 251, 252, 0.18)) drop-shadow(0 18px 64px rgba(0, 0, 0, 0.46));
}

.boot-piece {
    position: absolute;
    overflow: hidden;
    border: 1px solid rgba(248, 251, 252, 0.18);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.34);
}

.boot-rail {
    left: 0.7%;
    top: 0.6%;
    width: 22%;
    height: 99%;
    background: linear-gradient(180deg, rgba(248, 251, 252, 0.92), rgba(202, 210, 216, 0.74));
}

.boot-base {
    left: 28.7%;
    bottom: 0;
    width: 70%;
    height: 19%;
    background: linear-gradient(90deg, rgba(248, 251, 252, 0.9), rgba(202, 210, 216, 0.68));
}

.boot-blade {
    left: 28.7%;
    top: 0.6%;
    width: 70%;
    height: 48%;
    clip-path: polygon(0 50%, 50% 0, 100% 0, 0 100%);
    background: linear-gradient(135deg, #c74747, #922929 62%, #5d1818);
    border-color: rgba(179, 58, 58, 0.44);
}

.boot-step {
    right: 0;
    top: 39%;
    width: 44%;
    height: 36%;
    clip-path: polygon(0 0, 46% 0, 46% 50%, 100% 50%, 100% 100%, 0 100%);
    background: linear-gradient(135deg, #c74747, #922929 58%, #5d1818);
    border-color: rgba(179, 58, 58, 0.46);
}

.boot-cut {
    position: absolute;
    left: -12%;
    right: -12%;
    height: 2px;
    z-index: 3;
    background: linear-gradient(90deg, transparent, rgba(248, 251, 252, 0.24), rgba(179, 58, 58, 0.22), transparent);
    box-shadow: 0 0 18px rgba(248, 251, 252, 0.14);
    transform: rotate(-9deg);
}

.boot-cut-a { top: 42%; }
.boot-cut-b { top: 57%; opacity: 0.46; }

.hero-design {
    background:
        radial-gradient(circle at 60% 40%, rgba(248, 251, 252, 0.17), transparent 26%),
        radial-gradient(circle at 64% 66%, rgba(179, 58, 58, 0.24), transparent 30%),
        linear-gradient(135deg, #0c0f12 0%, #151a1f 56%, #0c0f12 100%);
}

.hero-design::before {
    content: "";
    position: absolute;
    inset: 6% -10% 6% 34%;
    background:
        linear-gradient(120deg, transparent 0 16%, rgba(248, 251, 252, 0.1) 16% 17%, transparent 17% 42%, rgba(179, 58, 58, 0.24) 42% 57%, transparent 57% 100%),
        linear-gradient(22deg, transparent 0 38%, rgba(248, 251, 252, 0.08) 38% 39%, transparent 39% 100%);
    clip-path: polygon(8% 18%, 88% 0, 100% 34%, 70% 62%, 92% 100%, 18% 86%, 0 48%);
    filter: none;
    opacity: 0.74;
    pointer-events: none;
}

.design-frame {
    position: absolute;
    z-index: 2;
    top: 7%;
    left: 34%;
    right: auto;
    width: min(72vw, 1260px);
    aspect-ratio: 1.82;
    border: 0;
    border-radius: 0;
    overflow: visible;
    background: transparent;
    box-shadow: none;
    transform: none;
    transform-style: preserve-3d;
    opacity: 0;
    will-change: opacity, transform;
}

.logo-field {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    mask-image: radial-gradient(circle at 52% 54%, #000 0 62%, transparent 84%);
}

.pattern-huiwen {
    background:
        linear-gradient(90deg, rgba(248, 251, 252, 0.07) 0 2px, transparent 2px 18px, rgba(248, 251, 252, 0.04) 18px 20px, transparent 20px 42px),
        linear-gradient(0deg, rgba(248, 251, 252, 0.055) 0 2px, transparent 2px 18px, rgba(248, 251, 252, 0.035) 18px 20px, transparent 20px 42px);
    background-size: 84px 84px;
    opacity: 0.38;
}

.pattern-window {
    inset: 4% 0 4% 12%;
    background:
        linear-gradient(90deg, transparent 0 31px, rgba(248, 251, 252, 0.06) 31px 33px, transparent 33px 64px),
        linear-gradient(0deg, transparent 0 31px, rgba(248, 251, 252, 0.052) 31px 33px, transparent 33px 64px),
        radial-gradient(circle at 48% 54%, rgba(248, 251, 252, 0.12), transparent 44%);
    background-size: 64px 64px, 64px 64px, auto;
    opacity: 0.28;
}

.hero-visual::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background:
        linear-gradient(90deg, rgba(12, 15, 18, 0.98), rgba(12, 15, 18, 0.82) 30%, rgba(12, 15, 18, 0.28) 58%, transparent 82%),
        linear-gradient(180deg, rgba(12, 15, 18, 0.16), transparent 48%, rgba(12, 15, 18, 0.7));
}

.hero-shade {
    z-index: 1;
    background:
        linear-gradient(90deg, rgba(12, 15, 18, 0.98), rgba(12, 15, 18, 0.78) 35%, rgba(12, 15, 18, 0.16) 78%),
        linear-gradient(180deg, rgba(12, 15, 18, 0.48), rgba(12, 15, 18, 0.04) 48%, rgba(12, 15, 18, 0.92));
}

.hero-inner {
    position: relative;
    z-index: 20;
    width: min(1120px, calc(100% - 96px));
    max-width: none;
    margin: 0 auto;
    padding: 132px 0 92px;
    text-align: center;
}

.hero-title {
    position: relative;
    display: grid;
    gap: 0.08em;
    max-width: 1120px;
    margin: 0 auto;
    padding-bottom: clamp(16px, 1.6vw, 28px);
    font-size: clamp(5.2rem, 6.55vw, 7.35rem);
    line-height: 1.02;
    letter-spacing: 0;
    text-shadow: 0 18px 46px rgba(0, 0, 0, 0.42);
}

.hero-title::before {
    content: "";
    position: absolute;
    pointer-events: none;
}

.hero-title::before {
    left: 50%;
    bottom: 0;
    width: clamp(180px, 23vw, 360px);
    height: clamp(5px, 0.46vw, 8px);
    background: linear-gradient(90deg, transparent, rgba(199, 71, 71, 0.96), rgba(248, 251, 252, 0.45), transparent);
    clip-path: polygon(5% 0, 100% 0, 95% 100%, 0 100%);
    transform: translateX(-50%) skewX(-18deg);
}

.hero-title span {
    position: relative;
    display: block;
    white-space: nowrap;
}

.hero-title .title-context {
    font-size: 0.68em;
    line-height: 1.02;
    color: rgba(248, 251, 252, 0.94);
}

.hero-title .title-core {
    line-height: 1.02;
    color: var(--white);
}

.hero-subtitle {
    max-width: 590px;
    margin: 28px auto 0;
    color: rgba(248, 251, 252, 0.78);
    font-size: var(--fs-lead);
}

.hero-rail {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    width: min(760px, 100%);
    margin: 42px auto 0;
    border: 1px solid rgba(248, 251, 252, 0.12);
    border-radius: var(--card-radius);
    background: rgba(248, 251, 252, 0.08);
    overflow: hidden;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.22);
}

.hero-rail span {
    position: relative;
    overflow: hidden;
    min-height: 58px;
    padding: 16px;
    background: rgba(9, 12, 15, 0.66);
    color: rgba(248, 251, 252, 0.72);
    font-size: 0.88rem;
    font-weight: 800;
    transition: transform 0.32s cubic-bezier(0.16, 1, 0.3, 1), color 0.32s ease, background 0.32s ease;
}

.hero-rail span::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(135deg, rgba(199, 71, 71, 0.18), transparent 44%),
        linear-gradient(90deg, transparent, rgba(248, 251, 252, 0.08), transparent);
    opacity: 0;
    transform: translateX(-34%) skewX(-14deg);
    transition: opacity 0.32s ease, transform 0.52s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-rail span::after {
    content: "";
    position: absolute;
    left: 18px;
    right: 18px;
    bottom: 12px;
    height: 2px;
    background: linear-gradient(90deg, rgba(199, 71, 71, 0.96), transparent);
    opacity: 0;
    transform: scaleX(0);
    transform-origin: left;
    transition: opacity 0.24s ease, transform 0.34s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-rail span:hover {
    z-index: 1;
    color: var(--white);
    background: rgba(22, 27, 32, 0.9);
    transform: translateY(-4px);
}

.hero-rail span:hover::before {
    opacity: 1;
    transform: translateX(18%) skewX(-14deg);
}

.hero-rail span:hover::after {
    opacity: 1;
    transform: scaleX(1);
}

.hero-rail span:not(:last-child) {
    border-right: 1px solid rgba(248, 251, 252, 0.12);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-top: 38px;
}

main section {
    padding: 82px 0;
}

.footer {
    background: var(--dark);
    color: rgba(248, 251, 252, 0.64);
    padding: 58px 0 24px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 0.8fr 1fr;
    gap: 48px;
}

.footer h3 {
    margin-bottom: 14px;
    color: var(--white);
}

.footer a {
    display: block;
    margin-top: 8px;
    text-decoration: none;
}

.footer a:hover {
    color: var(--white);
}

.footer-logo {
    margin-bottom: 14px;
}

.footer-bottom {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 18px;
    align-items: center;
    justify-content: space-between;
    margin-top: 36px;
    padding-top: 20px;
    border-top: 1px solid rgba(248, 251, 252, 0.12);
    font-size: 0.9rem;
}

.footer-bottom a {
    margin-top: 0;
}

@media (min-width: 1600px) {
    .design-frame {
        top: 7%;
        left: 35%;
        width: min(70vw, 1280px);
    }

    .hero-inner {
        margin: 0 auto;
    }
}

@media (min-width: 1081px) and (max-width: 1280px) {
    .design-frame {
        top: 10%;
        left: 38%;
        width: 76vw;
        opacity: 0.82;
    }

    .hero-inner {
        width: min(900px, calc(100% - 64px));
        margin: 0 auto;
    }

    .hero-title {
        max-width: 900px;
        font-size: clamp(4.2rem, 6.1vw, 5.7rem);
    }

    .hero-subtitle {
        max-width: 640px;
    }
}

@media (max-width: 1080px) {
    .hero {
        display: block;
        min-height: 100svh;
    }

    .hero-inner {
        width: min(100% - 48px, 760px);
        margin: 0 auto;
    }

    .design-frame {
        top: 34%;
        left: auto;
        right: -42%;
        width: 128vw;
        opacity: 0.62;
    }
}

@media (max-width: 960px) {
    .hamburger {
        display: inline-flex;
    }

    .nav-menu {
        position: fixed;
        top: 94px;
        left: 16px;
        right: 16px;
        display: none;
        flex-direction: column;
        align-items: stretch;
        padding: 12px;
        border: 1px solid rgba(248, 251, 252, 0.16);
        border-radius: var(--radius-md);
        background: rgba(12, 15, 18, 0.96);
        box-shadow: var(--shadow-dark);
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-link,
    .nav-cta {
        min-height: 48px;
    }
}

@media (max-width: 720px) {
    .nav-wrapper {
        min-height: 62px;
    }

    .logo span {
        max-width: 9em;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .hero-shade {
        background:
            linear-gradient(180deg, rgba(12, 15, 18, 0.94), rgba(12, 15, 18, 0.7) 52%, rgba(12, 15, 18, 0.94)),
            linear-gradient(90deg, rgba(12, 15, 18, 0.92), rgba(12, 15, 18, 0.24));
    }

    .design-frame {
        top: 36%;
        left: auto;
        right: -112%;
        width: 190vw;
        opacity: 0.34;
    }

    .hero-inner {
        padding: 112px 0 72px;
    }

    .hero-title {
        padding-left: 0;
        font-size: clamp(2.35rem, 10vw, 3.35rem);
        line-height: 1.1;
    }

    .hero-title::before {
        width: 132px;
    }

    .hero-title .title-context {
        font-size: 0.62em;
    }

    .hero-subtitle {
        margin-top: 22px;
    }

    .hero-actions {
        flex-direction: column;
        margin-top: 30px;
    }

    .hero-actions .btn {
        width: 100%;
    }

    .hero-rail {
        grid-template-columns: 1fr 1fr;
        margin-top: 28px;
    }

    .hero-rail span {
        min-height: 48px;
        padding: 12px;
        font-size: 0.78rem;
    }

    main section {
        padding: 76px 0;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }
}
