:root {
    color-scheme: dark;
    --bg: #07090d;
    --bg-soft: #0d121a;
    --panel: rgba(255, 255, 255, 0.075);
    --panel-strong: rgba(255, 255, 255, 0.12);
    --line: rgba(255, 255, 255, 0.13);
    --text: #f7f9ff;
    --muted: rgba(239, 245, 255, 0.68);
    --faint: rgba(239, 245, 255, 0.48);
    --cyan: #5ee6ff;
    --blue: #4f7dff;
    --gold: #e8c77a;
    --green: #67f5ba;
    --danger: #ff746e;
    --radius: 8px;
    --shadow: 0 24px 70px rgba(0, 0, 0, 0.38);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    min-width: 320px;
    margin: 0;
    background:
        linear-gradient(128deg, rgba(95, 230, 255, 0.12), transparent 28%),
        linear-gradient(214deg, rgba(232, 199, 122, 0.1), transparent 34%),
        linear-gradient(180deg, #080a10 0%, #090d14 44%, #05070a 100%);
    color: var(--text);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    letter-spacing: 0;
    overflow-x: hidden;
}

button,
input,
textarea {
    font: inherit;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

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

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

.app-shell {
    width: min(100%, 480px);
    margin: 0 auto;
    position: relative;
    overflow: hidden;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent 26%),
        var(--bg);
    min-height: 100vh;
    padding-bottom: calc(86px + env(safe-area-inset-bottom));
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.06), 0 30px 90px rgba(0, 0, 0, 0.4);
}

.topbar {
    position: sticky;
    top: 0;
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 12px 18px;
    background: rgba(7, 9, 13, 0.75);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(18px);
}

.brand-lockup {
    display: inline-flex;
    align-items: center;
    min-width: 0;
    gap: 10px;
}

.brand-mark {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    border-radius: 8px;
    color: #071018;
    font-weight: 900;
    background: linear-gradient(135deg, var(--cyan), var(--gold));
    box-shadow: 0 12px 24px rgba(94, 230, 255, 0.22);
}

.brand-copy {
    min-width: 0;
}

.brand-copy strong,
.brand-copy small {
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.brand-copy strong {
    font-size: 14px;
}

.brand-copy small {
    margin-top: 2px;
    color: var(--faint);
    font-size: 10px;
    text-transform: uppercase;
}

.top-action {
    flex: 0 0 auto;
    padding: 9px 12px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 999px;
    color: var(--text);
    font-size: 12px;
    background: rgba(255, 255, 255, 0.06);
}

.hero-section {
    position: relative;
    min-height: 720px;
    padding: 34px 18px 28px;
    isolation: isolate;
}

.hero-section::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -2;
    background:
        linear-gradient(135deg, rgba(79, 125, 255, 0.18), transparent 34%),
        linear-gradient(220deg, rgba(232, 199, 122, 0.12), transparent 38%);
}

.hero-grid {
    position: absolute;
    inset: 0;
    z-index: -1;
    opacity: 0.28;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px);
    background-size: 28px 28px;
    mask-image: linear-gradient(180deg, black, transparent 76%);
}

.hero-copy {
    position: relative;
    z-index: 2;
}

.eyebrow,
.section-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--gold);
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
}

.eyebrow::before,
.section-kicker::before {
    content: "";
    width: 18px;
    height: 1px;
    background: currentColor;
}

.hero-copy h1 {
    margin: 14px 0 14px;
    font-size: 40px;
    line-height: 1.08;
    font-weight: 900;
    letter-spacing: 0;
}

.hero-copy p {
    margin: 0;
    max-width: 33em;
    color: var(--muted);
    font-size: 15px;
    line-height: 1.85;
}

.hero-points {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 18px;
}

.hero-points span {
    padding: 8px 10px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 999px;
    color: rgba(247, 249, 255, 0.86);
    font-size: 12px;
    background: rgba(255, 255, 255, 0.055);
}

.hero-actions {
    display: flex;
    gap: 10px;
    margin-top: 22px;
}

.btn {
    min-height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 8px;
    padding: 0 18px;
    cursor: pointer;
    font-weight: 800;
    transition: transform 0.2s ease, filter 0.2s ease, border-color 0.2s ease;
}

.btn:active,
.project-open:active,
.bottom-contact a:active,
.bottom-contact button:active {
    transform: scale(0.97);
}

.btn-primary {
    color: #071019;
    background: linear-gradient(135deg, var(--cyan), var(--gold));
    box-shadow: 0 18px 38px rgba(94, 230, 255, 0.19);
}

.btn-ghost {
    color: var(--text);
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: rgba(255, 255, 255, 0.07);
}

.hero-visual {
    position: relative;
    z-index: 1;
    width: min(86%, 336px);
    margin: 28px auto 0;
    transform: rotate(-4deg);
    animation: floatPhone 5.8s ease-in-out infinite;
}

.hero-visual::before {
    content: "";
    position: absolute;
    inset: 10% 0 8%;
    z-index: -1;
    border-radius: 32px;
    background: linear-gradient(135deg, rgba(94, 230, 255, 0.28), rgba(232, 199, 122, 0.18));
    filter: blur(34px);
}

.hero-visual img {
    border-radius: 28px;
    box-shadow: var(--shadow);
}

.hero-metrics {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-top: 22px;
}

.hero-metrics span {
    min-height: 66px;
    padding: 11px 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: var(--faint);
    font-size: 11px;
    background: rgba(255, 255, 255, 0.055);
}

.hero-metrics strong {
    display: block;
    margin-bottom: 5px;
    color: var(--text);
    font-size: 18px;
}

.section {
    padding: 38px 18px;
}

.section-head {
    margin-bottom: 20px;
}

.section-head h2 {
    margin: 9px 0 0;
    font-size: 27px;
    line-height: 1.22;
    font-weight: 900;
}

.section-head p {
    margin: 10px 0 0;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.75;
}

.intro-band {
    padding-top: 16px;
    background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.035), transparent);
}

.featured-track,
.gallery-strip {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(255px, 78%);
    gap: 12px;
    overflow-x: auto;
    padding: 2px 18px 14px;
    margin: 0 -18px;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
}

.featured-track::-webkit-scrollbar,
.gallery-strip::-webkit-scrollbar,
.category-tabs::-webkit-scrollbar {
    display: none;
}

.feature-panel,
.gallery-shot {
    scroll-snap-align: start;
}

.project-open,
.gallery-shot {
    width: 100%;
    border: 0;
    padding: 0;
    color: inherit;
    cursor: pointer;
    text-align: left;
    background: transparent;
}

.feature-panel .project-open {
    position: relative;
    min-height: 350px;
    overflow: hidden;
    border-radius: 8px;
    background: var(--panel);
    box-shadow: 0 20px 48px rgba(0, 0, 0, 0.24);
}

.feature-panel img {
    height: 350px;
    object-fit: cover;
}

.feature-panel .project-open::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 42%, rgba(0, 0, 0, 0.78));
}

.feature-label,
.feature-copy {
    position: absolute;
    z-index: 2;
    left: 16px;
    right: 16px;
}

.feature-label {
    top: 16px;
    width: fit-content;
    padding: 7px 10px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 999px;
    color: rgba(255, 255, 255, 0.84);
    font-size: 11px;
    background: rgba(0, 0, 0, 0.32);
    backdrop-filter: blur(12px);
}

.feature-copy {
    bottom: 16px;
}

.feature-copy strong,
.feature-copy em {
    display: block;
    font-style: normal;
}

.feature-copy strong {
    font-size: 20px;
    line-height: 1.28;
}

.feature-copy em {
    margin-top: 7px;
    color: rgba(255, 255, 255, 0.68);
    font-size: 13px;
    line-height: 1.55;
}

.category-tabs {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 2px 18px 12px;
    margin: 0 -18px 8px;
    scrollbar-width: none;
}

.tab {
    flex: 0 0 auto;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 999px;
    padding: 10px 13px;
    color: var(--muted);
    cursor: pointer;
    background: rgba(255, 255, 255, 0.05);
}

.tab.active {
    color: #061017;
    border-color: transparent;
    background: linear-gradient(135deg, var(--cyan), var(--gold));
}

.project-list {
    display: grid;
    gap: 12px;
}

.project-row {
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.project-row.is-hidden,
.feature-panel.is-hidden {
    display: none;
}

.project-row .project-open {
    display: grid;
    grid-template-columns: 112px minmax(0, 1fr);
    gap: 14px;
    align-items: stretch;
    min-height: 132px;
    padding: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.035));
}

.project-media {
    overflow: hidden;
    border-radius: 7px;
    background: #111822;
}

.project-media img {
    height: 100%;
    object-fit: cover;
}

.project-info {
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.project-info small {
    color: var(--gold);
    font-size: 11px;
}

.project-info strong {
    margin-top: 7px;
    font-size: 17px;
    line-height: 1.28;
}

.project-info em {
    margin-top: 6px;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.55;
    font-style: normal;
}

.tag-line {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 9px;
}

.tag-line b,
.modal-tags b {
    display: inline-flex;
    padding: 5px 7px;
    border-radius: 999px;
    color: rgba(255, 255, 255, 0.75);
    font-size: 10px;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.08);
}

.capability-section {
    background:
        linear-gradient(180deg, rgba(94, 230, 255, 0.065), transparent 32%),
        rgba(255, 255, 255, 0.018);
}

.capability-list {
    display: grid;
    gap: 6px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.capability-item {
    display: grid;
    grid-template-columns: 34px 42px minmax(0, 1fr);
    gap: 10px;
    align-items: center;
    padding: 17px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.capability-index {
    color: var(--faint);
    font-size: 12px;
}

.capability-icon {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    color: var(--cyan);
    background: rgba(255, 255, 255, 0.06);
}

.capability-copy {
    min-width: 0;
}

.capability-copy strong,
.capability-copy em {
    display: block;
    font-style: normal;
}

.capability-copy strong {
    font-size: 16px;
}

.capability-copy em {
    margin-top: 5px;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.55;
}

.gallery-shot {
    overflow: hidden;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.06);
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.24);
}

.gallery-shot img {
    height: 330px;
    object-fit: cover;
}

.process-line {
    position: relative;
    display: grid;
    gap: 12px;
}

.process-line::before {
    content: "";
    position: absolute;
    top: 14px;
    bottom: 14px;
    left: 22px;
    width: 1px;
    background: linear-gradient(180deg, var(--cyan), rgba(255, 255, 255, 0.08));
}

.process-step {
    position: relative;
    display: grid;
    grid-template-columns: 46px minmax(0, 1fr);
    gap: 12px;
    padding: 14px 0;
}

.process-step span {
    z-index: 1;
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    border: 1px solid rgba(94, 230, 255, 0.28);
    border-radius: 8px;
    color: var(--cyan);
    font-size: 12px;
    font-weight: 900;
    background: #09101a;
}

.process-step strong,
.process-step em {
    grid-column: 2;
    display: block;
    font-style: normal;
}

.process-step strong {
    align-self: end;
    font-size: 16px;
}

.process-step em {
    margin-top: -8px;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.6;
}

.contact-section {
    padding-bottom: 24px;
}

.contact-visual {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 96px;
    gap: 14px;
    align-items: end;
    padding: 18px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    background:
        linear-gradient(145deg, rgba(94, 230, 255, 0.11), rgba(232, 199, 122, 0.08)),
        rgba(255, 255, 255, 0.052);
}

.contact-copy h2 {
    margin: 10px 0 9px;
    font-size: 24px;
    line-height: 1.24;
}

.contact-copy p {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.7;
}

.contact-methods {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
}

.contact-methods a,
.contact-methods button {
    border: 1px solid rgba(255, 255, 255, 0.13);
    border-radius: 999px;
    padding: 8px 10px;
    color: var(--text);
    font-size: 11px;
    background: rgba(0, 0, 0, 0.16);
}

.qr {
    border-radius: 8px;
    background: #fff;
}

.inquiry-form {
    display: grid;
    gap: 12px;
    margin-top: 14px;
}

.inquiry-form label {
    display: grid;
    gap: 7px;
}

.inquiry-form span {
    color: var(--muted);
    font-size: 12px;
}

.inquiry-form input,
.inquiry-form textarea {
    width: 100%;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    padding: 13px 14px;
    color: var(--text);
    outline: none;
    background: rgba(255, 255, 255, 0.065);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.inquiry-form textarea {
    resize: vertical;
    min-height: 112px;
}

.inquiry-form input:focus,
.inquiry-form textarea:focus {
    border-color: rgba(94, 230, 255, 0.55);
    box-shadow: 0 0 0 3px rgba(94, 230, 255, 0.08);
}

.submit-btn {
    width: 100%;
}

.site-footer {
    padding: 16px 18px 0;
    color: var(--faint);
    font-size: 11px;
    text-align: center;
}

.bottom-contact {
    position: fixed;
    left: 50%;
    bottom: 0;
    z-index: 80;
    width: min(100%, 480px);
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 7px;
    padding: 10px 10px calc(10px + env(safe-area-inset-bottom));
    transform: translateX(-50%);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(7, 9, 13, 0.82);
    backdrop-filter: blur(18px);
}

.bottom-contact a,
.bottom-contact button {
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: var(--text);
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.07);
}

.bottom-contact button:last-child {
    color: #061017;
    border-color: transparent;
    background: linear-gradient(135deg, var(--cyan), var(--gold));
}

.modal,
.image-preview {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: none;
}

.modal.is-open,
.image-preview.is-open {
    display: block;
}

.modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.72);
    backdrop-filter: blur(10px);
}

.modal-panel {
    position: absolute;
    left: 50%;
    bottom: 0;
    width: min(100%, 480px);
    max-height: 92vh;
    margin: 0;
    overflow-y: auto;
    transform: translateX(-50%);
    border-radius: 18px 18px 0 0;
    background: #090d14;
    box-shadow: 0 -26px 80px rgba(0, 0, 0, 0.55);
    animation: rise 0.28s ease both;
}

.modal-close,
.image-preview button {
    position: absolute;
    z-index: 3;
    right: 14px;
    top: 14px;
    width: 36px;
    height: 36px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 999px;
    color: var(--text);
    cursor: pointer;
    background: rgba(0, 0, 0, 0.42);
}

.modal-media {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 86%;
    gap: 10px;
    overflow-x: auto;
    padding: 18px;
    scrollbar-width: none;
}

.modal-media::-webkit-scrollbar {
    display: none;
}

.modal-media img {
    height: 360px;
    border-radius: 8px;
    object-fit: cover;
}

.modal-content {
    padding: 0 18px calc(22px + env(safe-area-inset-bottom));
}

.modal-content > span {
    color: var(--gold);
    font-size: 12px;
}

.modal-content h3 {
    margin: 9px 0 8px;
    font-size: 25px;
    line-height: 1.25;
}

.modal-content p {
    margin: 0;
    color: var(--muted);
    line-height: 1.75;
}

.modal-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 13px;
}

.modal-highlights {
    display: grid;
    gap: 8px;
    margin: 16px 0;
}

.modal-highlights span {
    padding: 10px 12px;
    border-left: 2px solid var(--cyan);
    border-radius: 0 8px 8px 0;
    color: rgba(255, 255, 255, 0.82);
    font-size: 13px;
    background: rgba(255, 255, 255, 0.06);
}

.modal-detail {
    margin-bottom: 16px !important;
}

.image-preview {
    background: rgba(0, 0, 0, 0.9);
}

.image-preview img {
    position: absolute;
    inset: 50% auto auto 50%;
    width: min(92vw, 440px);
    max-height: 86vh;
    object-fit: contain;
    transform: translate(-50%, -50%);
    border-radius: 8px;
}

.toast {
    position: fixed;
    left: 50%;
    bottom: calc(84px + env(safe-area-inset-bottom));
    z-index: 120;
    max-width: min(88%, 420px);
    padding: 10px 14px;
    border-radius: 999px;
    color: #061017;
    font-size: 13px;
    font-weight: 800;
    pointer-events: none;
    opacity: 0;
    transform: translate(-50%, 12px);
    background: linear-gradient(135deg, var(--cyan), var(--gold));
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.toast.show {
    opacity: 1;
    transform: translate(-50%, 0);
}

.reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.65s ease, transform 0.65s ease;
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

@keyframes floatPhone {
    0%,
    100% {
        transform: rotate(-4deg) translateY(0);
    }
    50% {
        transform: rotate(-4deg) translateY(-10px);
    }
}

@keyframes rise {
    from {
        transform: translate(-50%, 28px);
        opacity: 0;
    }
    to {
        transform: translate(-50%, 0);
        opacity: 1;
    }
}

@media (max-width: 370px) {
    .hero-copy h1 {
        font-size: 34px;
    }

    .hero-section {
        min-height: 690px;
    }

    .project-row .project-open {
        grid-template-columns: 98px minmax(0, 1fr);
    }

    .contact-visual {
        grid-template-columns: 1fr;
    }

    .qr {
        width: 112px;
    }
}

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