/* ===== Base ===== */
:root {
    --bg: #0a121b;
    --bg-deep: #0d1a27;
    --text: #fbfdff;
    --accent: #b7d9df;
}

* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
    background: var(--bg);
    scroll-behavior: smooth;
    scroll-padding-top: 72px;
}

body {
    min-height: 100dvh;
    margin: 0;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    color: var(--text);
    background: var(--bg);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    line-height: 1.5;
}

a {
    color: inherit;
}

/* ===== Navigation ===== */
.site-header {
    position: fixed;
    inset: 0 0 auto;
    z-index: 20;
    height: 72px;
    border-bottom: 1px solid rgba(158, 229, 255, 0.16);
    background: linear-gradient(180deg, rgba(10, 20, 30, 0.8), rgba(10, 20, 30, 0.46));
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

.site-nav {
    max-width: 1320px;
    height: 100%;
    margin: 0 auto;
    padding: 0 clamp(1.25rem, 4vw, 4rem);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    text-decoration: none;
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: 0;
    color: #f8fdff;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: clamp(0.8rem, 2vw, 1.4rem);
}

.nav-link {
    position: relative;
    text-decoration: none;
    color: rgba(229, 247, 255, 0.82);
    font-size: 0.92rem;
    transition: color 180ms ease;
}

.nav-link::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -0.38rem;
    height: 1px;
    background: var(--accent);
    opacity: 0;
    transform: scaleX(0.72);
    transition: opacity 180ms ease, transform 180ms ease;
}

.nav-link:hover,
.nav-link:focus-visible {
    color: #f8fdff;
}

.nav-link:hover::after,
.nav-link:focus-visible::after {
    opacity: 1;
    transform: scaleX(1);
}

.nav-status {
    padding: 0.35rem 0.72rem;
    border: 1px solid rgba(158, 229, 255, 0.28);
    border-radius: 999px;
    color: rgba(229, 247, 255, 0.84);
    background: rgba(13, 33, 50, 0.56);
    font-size: 0.84rem;
    font-variant-numeric: tabular-nums;
}

/* ===== Hero ===== */
.hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    min-height: calc(100dvh - 3.4rem);
    flex: 1;
    display: flex;
    align-items: center;
    padding: clamp(6rem, 13vh, 8rem) clamp(1.25rem, 5vw, 5rem) clamp(4rem, 9vh, 6rem);
    background: var(--bg-deep);
}

.hero-background {
    position: absolute;
    inset: 0;
    z-index: -4;
    background-image:
        linear-gradient(90deg, rgba(6, 12, 18, 0.92) 0%, rgba(7, 16, 24, 0.58) 42%, rgba(10, 25, 36, 0.12) 100%),
        linear-gradient(180deg, rgba(9, 21, 31, 0.08) 0%, rgba(6, 15, 23, 0.56) 100%),
        url("assets/industrial-robot-arm-bg-v2.png");
    background-position: center, center, 66% center;
    background-size: 100% 100%, 100% 100%, auto 118%;
    background-repeat: no-repeat;
    filter: brightness(1.08) saturate(0.94) contrast(1.18);
    transform: scale(1.04);
    animation: backgroundDrift 24s ease-in-out infinite alternate;
}

.hero-grid {
    position: absolute;
    inset: 0;
    z-index: -3;
    opacity: 0.36;
    background-image:
        linear-gradient(rgba(131, 200, 212, 0.045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(131, 200, 212, 0.04) 1px, transparent 1px),
        linear-gradient(115deg, transparent 0%, rgba(131, 200, 212, 0.04) 44%, transparent 58%);
    background-size: 54px 54px, 54px 54px, 100% 100%;
    mask-image: linear-gradient(90deg, rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0.22) 66%, rgba(0, 0, 0, 0.68));
    animation: gridDrift 18s linear infinite;
}

.hero::before,
.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.hero::before {
    z-index: -2;
    background:
        linear-gradient(180deg, transparent 0%, rgba(131, 200, 212, 0.07) 48%, transparent 49%),
        linear-gradient(90deg, rgba(131, 200, 212, 0.08), transparent 18%, transparent 100%);
    background-size: 100% 340px, 100% 100%;
    opacity: 0.18;
    animation: scanLayer 10s ease-in-out infinite;
}

.hero::after {
    z-index: -1;
    background:
        linear-gradient(90deg, rgba(6, 12, 18, 0.54), transparent 56%),
        linear-gradient(180deg, rgba(10, 22, 32, 0.1), rgba(6, 15, 23, 0.52));
}

.hero-content {
    width: min(1120px, 100%);
    margin-left: clamp(2rem, 5.8vw, 6.75rem);
    animation: contentIn 820ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

#hero-title {
    max-width: 12.8em;
    margin: 0;
    color: var(--text);
    font-size: 4.55rem;
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: 0.045em;
    text-wrap: balance;
    text-shadow:
        0 2px 2px rgba(0, 0, 0, 0.42),
        0 22px 68px rgba(0, 0, 0, 0.72);
}

#hero-title > span {
    display: block;
}

#hero-title > .line-nowrap {
    white-space: nowrap;
}

.text-nowrap {
    display: inline-block;
    white-space: nowrap;
}

#hero-title strong {
    color: var(--accent);
    font-weight: inherit;
    text-shadow:
        0 1px 2px rgba(0, 0, 0, 0.34),
        0 0 18px rgba(183, 217, 223, 0.14);
}

.coming-soon {
    margin: clamp(1.65rem, 3vw, 2.8rem) 0 0;
    color: #f6fcff;
    font-size: 1.86rem;
    font-weight: 700;
    letter-spacing: 0;
}

.coming-soon::before {
    content: "";
    display: block;
    width: 72px;
    height: 1px;
    margin-bottom: 1rem;
    background: linear-gradient(90deg, var(--accent), transparent);
}

/* ===== About ===== */
.about-section {
    position: relative;
    overflow: hidden;
    padding: clamp(4.5rem, 10vw, 8rem) clamp(1.25rem, 5vw, 5rem);
    border-top: 1px solid rgba(158, 229, 255, 0.16);
    background:
        linear-gradient(180deg, rgba(10, 18, 27, 0.98), rgba(9, 20, 30, 0.96)),
        radial-gradient(circle at 78% 18%, rgba(183, 217, 223, 0.13), transparent 34%);
}

.about-section::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(131, 200, 212, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(131, 200, 212, 0.035) 1px, transparent 1px);
    background-size: 64px 64px;
    opacity: 0.26;
    mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.7), transparent 76%);
}

.about-inner {
    position: relative;
    z-index: 1;
    max-width: 1180px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
    gap: clamp(2.5rem, 7vw, 6rem);
    align-items: start;
}

.about-copy h2 {
    margin: 0;
    color: #f8fdff;
    font-size: clamp(2.2rem, 5vw, 4.2rem);
    line-height: 1.08;
    letter-spacing: 0.02em;
}

.about-text {
    padding: clamp(1.1rem, 2.8vw, 1.8rem);
    border: 1px solid rgba(158, 229, 255, 0.16);
    border-radius: 8px;
    background: rgba(13, 33, 50, 0.46);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.about-text p {
    margin: 0;
    color: rgba(225, 241, 248, 0.76);
    font-size: clamp(0.98rem, 1.45vw, 1.08rem);
    line-height: 1.86;
}

.about-text p + p {
    margin-top: 0.8rem;
}

/* ===== Footer ===== */
.site-footer {
    position: relative;
    z-index: 5;
    padding: 1.1rem clamp(1.25rem, 4vw, 4rem);
    border-top: 1px solid rgba(158, 229, 255, 0.16);
    color: rgba(220, 237, 246, 0.68);
    background: #0a121b;
    font-size: 0.78rem;
}

.site-footer p {
    max-width: 1320px;
    margin: 0 auto;
}

.footer-record {
    display: inline-block;
    margin-left: 0.8rem;
    white-space: nowrap;
}

@keyframes contentIn {
    from {
        opacity: 0;
        transform: translate3d(0, 18px, 0);
    }

    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

@keyframes backgroundDrift {
    from {
        transform: scale(1.04) translate3d(-0.4%, 0, 0);
    }

    to {
        transform: scale(1.07) translate3d(0.5%, -0.5%, 0);
    }
}

@keyframes gridDrift {
    from {
        background-position: 0 0, 0 0, 0 0;
    }

    to {
        background-position: 54px 54px, 54px 54px, 0 0;
    }
}

@keyframes scanLayer {
    0%,
    100% {
        background-position: 0 -240px, 0 0;
        opacity: 0.2;
    }

    50% {
        background-position: 0 180px, 0 0;
        opacity: 0.34;
    }
}

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

    .hero-background {
        transform: scale(1.04);
    }
}

@media (max-width: 900px) {
    html {
        scroll-padding-top: 64px;
    }

    .site-header {
        height: 64px;
    }

    .site-nav {
        padding: 0 1.25rem;
    }

    .hero {
        align-items: flex-end;
        padding: 7rem 1.25rem 4.5rem;
    }

    .hero-background {
        background-position: center, center, 68% center;
        background-size: 100% 100%, 100% 100%, auto 124%;
    }

    .hero-content {
        margin-left: 0;
    }

    #hero-title {
        max-width: 100%;
        font-size: 2.95rem;
        line-height: 1.14;
        letter-spacing: 0.032em;
    }

    .about-inner {
        grid-template-columns: 1fr;
    }

    .about-text {
        padding: 1.15rem;
    }
}

@media (max-width: 520px) {
    .nav-status {
        font-size: 0.78rem;
        padding-inline: 0.6rem;
    }

    .hero {
        padding-bottom: 3.8rem;
    }

    .hero-background {
        background-position: center, center, 72% center;
        background-size: 100% 100%, 100% 100%, auto 132%;
    }

    #hero-title {
        font-size: 1.95rem;
        letter-spacing: 0.02em;
    }

    .coming-soon {
        font-size: 1.32rem;
    }
}
