@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+TC:wght@400;500;700;900&family=Orbitron:wght@500;700&display=swap');

:root {
    --bg: #050816;
    --bg-soft: #0b1024;
    --panel: rgba(13, 22, 48, 0.72);
    --line: rgba(116, 172, 255, 0.18);
    --text: #f5f7ff;
    --muted: #a7b3d3;
    --cyan: #38e8ff;
    --blue: #5275ff;
    --purple: #9f5cff;
    --shadow: 0 0 35px rgba(56, 232, 255, 0.14);
}

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

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    overflow-x: hidden;
    color: var(--text);
    background:
        radial-gradient(circle at 10% 10%, rgba(82, 117, 255, 0.18), transparent 32%),
        radial-gradient(circle at 85% 20%, rgba(159, 92, 255, 0.16), transparent 28%),
        var(--bg);
    font-family: "Noto Sans TC", Arial, sans-serif;
    line-height: 1.7;
}

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

button {
    font: inherit;
}

.background-grid {
    position: fixed;
    inset: 0;
    pointer-events: none;
    opacity: 0.35;
    background-image:
        linear-gradient(rgba(82, 117, 255, 0.08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(82, 117, 255, 0.08) 1px, transparent 1px);
    background-size: 46px 46px;
    mask-image: linear-gradient(to bottom, black, transparent 90%);
    z-index: -1;
}

.navbar {
    position: fixed;
    top: 0;
    left: 50%;
    width: min(1180px, calc(100% - 32px));
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 22px;
    margin-top: 14px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 18px;
    background: rgba(5, 8, 22, 0.78);
    backdrop-filter: blur(18px);
    z-index: 50;
    transition: 0.3s ease;
}

.navbar.scrolled {
    box-shadow: var(--shadow);
    border-color: rgba(56, 232, 255, 0.22);
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: "Orbitron", sans-serif;
    font-weight: 700;
    letter-spacing: 0.12em;
}

.logo-mark {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border: 1px solid var(--cyan);
    border-radius: 10px;
    color: var(--cyan);
    box-shadow: inset 0 0 18px rgba(56, 232, 255, 0.16), 0 0 15px rgba(56, 232, 255, 0.18);
}

.nav-links {
    display: flex;
    gap: 28px;
}

.nav-links a {
    position: relative;
    color: var(--muted);
    font-size: 0.95rem;
    transition: 0.25s ease;
}

.nav-links a:hover {
    color: var(--cyan);
}

.nav-links a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--cyan), var(--purple));
    transition: 0.25s ease;
}

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

.menu-toggle {
    display: none;
    border: 0;
    color: var(--text);
    background: transparent;
    font-size: 1.6rem;
    cursor: pointer;
}

main {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
}

.hero {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1.08fr 0.92fr;
    align-items: center;
    gap: 60px;
    padding: 120px 0 70px;
}

.eyebrow {
    margin-bottom: 14px;
    color: var(--cyan);
    font-family: "Orbitron", sans-serif;
    font-size: 0.78rem;
    letter-spacing: 0.24em;
}

.hero h1 {
    font-size: clamp(3rem, 7vw, 6rem);
    line-height: 1.08;
    letter-spacing: -0.05em;
}

.hero h1 span,
.section-heading h2 span {
    background: linear-gradient(90deg, var(--cyan), #8ba2ff 48%, var(--purple));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: 0 0 40px rgba(56, 232, 255, 0.15);
}

.hero-text {
    max-width: 650px;
    margin: 24px 0 30px;
    color: var(--muted);
    font-size: 1.08rem;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 140px;
    padding: 13px 24px;
    border: 1px solid transparent;
    border-radius: 12px;
    cursor: pointer;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.button:hover {
    transform: translateY(-3px);
}

.button.primary {
    color: #04101a;
    background: linear-gradient(90deg, var(--cyan), #95f4ff);
    box-shadow: 0 0 26px rgba(56, 232, 255, 0.25);
}

.button.secondary {
    color: var(--text);
    border-color: rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.04);
}

.button.secondary:hover {
    border-color: var(--purple);
    box-shadow: 0 0 24px rgba(159, 92, 255, 0.16);
}

.hero-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    margin-top: 42px;
}

.hero-stats div {
    min-width: 120px;
}

.hero-stats strong {
    display: block;
    color: var(--cyan);
    font-family: "Orbitron", sans-serif;
    font-size: 1.6rem;
}

.hero-stats span {
    color: var(--muted);
    font-size: 0.82rem;
}

.ai-visual {
    position: relative;
    width: min(430px, 80vw);
    aspect-ratio: 1;
    margin: auto;
    display: grid;
    place-items: center;
    filter: drop-shadow(0 0 40px rgba(82, 117, 255, 0.25));
}

.core {
    position: relative;
    width: 180px;
    height: 180px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(56, 232, 255, 0.5);
    border-radius: 50%;
    background:
        radial-gradient(circle at 30% 30%, rgba(56, 232, 255, 0.32), transparent 28%),
        linear-gradient(135deg, rgba(82, 117, 255, 0.55), rgba(159, 92, 255, 0.35));
    box-shadow:
        inset 0 0 45px rgba(56, 232, 255, 0.18),
        0 0 55px rgba(82, 117, 255, 0.35);
    animation: pulse 3s ease-in-out infinite;
    z-index: 3;
}

.core::before,
.core::after {
    content: "";
    position: absolute;
    inset: 15px;
    border: 1px dashed rgba(255, 255, 255, 0.22);
    border-radius: 50%;
}

.core::after {
    inset: 36px;
}

.core span {
    font-family: "Orbitron", sans-serif;
    font-size: 3.4rem;
    font-weight: 700;
    color: white;
    text-shadow: 0 0 18px var(--cyan);
}

.core small {
    position: absolute;
    bottom: 38px;
    color: var(--cyan);
    font-size: 0.62rem;
    letter-spacing: 0.18em;
}

.orbit {
    position: absolute;
    border: 1px solid rgba(125, 162, 255, 0.26);
    border-radius: 50%;
    animation: rotate 12s linear infinite;
}

.orbit-one {
    inset: 18%;
}

.orbit-two {
    inset: 7%;
    border-style: dashed;
    animation-duration: 18s;
    animation-direction: reverse;
}

.orbit-three {
    inset: -2%;
    border-color: rgba(159, 92, 255, 0.22);
    animation-duration: 26s;
}

.node {
    position: absolute;
    width: 13px;
    height: 13px;
    border: 2px solid white;
    border-radius: 50%;
    background: var(--cyan);
    box-shadow: 0 0 20px var(--cyan);
    z-index: 4;
}

.node-one { top: 15%; left: 22%; }
.node-two { top: 28%; right: 6%; background: var(--purple); box-shadow: 0 0 20px var(--purple); }
.node-three { bottom: 8%; left: 40%; }
.node-four { bottom: 28%; left: 3%; background: var(--blue); box-shadow: 0 0 20px var(--blue); }

.section {
    padding: 110px 0;
}

.section-heading {
    max-width: 720px;
    margin-bottom: 46px;
}

.section-heading h2,
.future-content h2 {
    font-size: clamp(2rem, 5vw, 4rem);
    line-height: 1.2;
    letter-spacing: -0.04em;
}

.section-heading > p:last-child,
.future-content > p {
    margin-top: 18px;
    color: var(--muted);
}

.glass-panel {
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
    backdrop-filter: blur(18px);
    box-shadow: var(--shadow);
}

.about-panel {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    overflow: hidden;
}

.about-panel > div {
    min-height: 260px;
    padding: 34px;
    border-right: 1px solid rgba(255, 255, 255, 0.08);
    transition: 0.3s ease;
}

.about-panel > div:last-child {
    border-right: 0;
}

.about-panel > div:hover {
    background: linear-gradient(180deg, rgba(56, 232, 255, 0.1), transparent);
}

.panel-number {
    display: block;
    margin-bottom: 44px;
    color: var(--cyan);
    font-family: "Orbitron", sans-serif;
}

.about-panel h3,
.tech-card h3,
.application-display h3 {
    margin-bottom: 12px;
    font-size: 1.45rem;
}

.about-panel p,
.tech-card p,
.application-display p {
    color: var(--muted);
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.tech-card {
    min-height: 310px;
    padding: 28px;
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 22px;
    background: linear-gradient(180deg, rgba(12, 22, 49, 0.9), rgba(8, 13, 31, 0.82));
    transition: 0.3s ease;
}

.tech-card:hover {
    transform: translateY(-8px);
    border-color: rgba(56, 232, 255, 0.34);
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.28), var(--shadow);
}

.card-icon {
    width: 68px;
    height: 68px;
    margin-bottom: 34px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(56, 232, 255, 0.42);
    border-radius: 18px;
    color: var(--cyan);
    font-family: "Orbitron", sans-serif;
    font-weight: 700;
    background: rgba(56, 232, 255, 0.06);
    box-shadow: inset 0 0 18px rgba(56, 232, 255, 0.08);
}

.tech-card > span {
    display: block;
    margin-top: 30px;
    color: #6f80aa;
    font-size: 0.78rem;
    letter-spacing: 0.08em;
}

.application-layout {
    display: grid;
    grid-template-columns: 0.35fr 0.65fr;
    gap: 24px;
}

.application-tabs {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.app-tab {
    padding: 18px 20px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    text-align: left;
    color: var(--muted);
    background: rgba(255, 255, 255, 0.03);
    cursor: pointer;
    transition: 0.25s ease;
}

.app-tab:hover,
.app-tab.active {
    color: var(--text);
    border-color: rgba(56, 232, 255, 0.38);
    background: linear-gradient(90deg, rgba(56, 232, 255, 0.12), rgba(82, 117, 255, 0.06));
}

.application-display {
    min-height: 320px;
    padding: 42px;
    border: 1px solid rgba(56, 232, 255, 0.18);
    border-radius: 22px;
    background:
        linear-gradient(135deg, rgba(82, 117, 255, 0.14), rgba(159, 92, 255, 0.05)),
        rgba(8, 14, 34, 0.9);
    box-shadow: var(--shadow);
}

.application-label {
    display: inline-block;
    margin-bottom: 60px;
    color: var(--cyan);
    font-family: "Orbitron", sans-serif;
    font-size: 0.76rem;
    letter-spacing: 0.16em;
}

.application-display h3 {
    font-size: clamp(1.7rem, 4vw, 2.8rem);
}

.progress-line {
    height: 3px;
    margin-top: 36px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.08);
}

.progress-line span {
    display: block;
    width: 42%;
    height: 100%;
    background: linear-gradient(90deg, var(--cyan), var(--purple));
    box-shadow: 0 0 14px var(--cyan);
    animation: scan 2.8s ease-in-out infinite alternate;
}

.future-section {
    display: grid;
    grid-template-columns: 1fr 0.9fr;
    align-items: center;
    gap: 50px;
    padding-bottom: 140px;
}

.future-content .button {
    margin-top: 28px;
}

.future-message {
    min-height: 32px;
    margin-top: 16px !important;
    color: var(--cyan) !important;
}

.future-terminal {
    overflow: hidden;
    border: 1px solid rgba(56, 232, 255, 0.22);
    border-radius: 20px;
    background: rgba(3, 7, 18, 0.95);
    box-shadow: 0 0 40px rgba(56, 232, 255, 0.12);
}

.terminal-top {
    display: flex;
    gap: 8px;
    padding: 14px 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    background: rgba(255, 255, 255, 0.03);
}

.terminal-top span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #ff5f57;
}

.terminal-top span:nth-child(2) {
    background: #febc2e;
}

.terminal-top span:nth-child(3) {
    background: #28c840;
}

.future-terminal pre {
    padding: 32px;
    overflow-x: auto;
    color: #8ed9ff;
    font-family: "Courier New", monospace;
    line-height: 2;
}

.typing {
    color: var(--cyan);
    text-shadow: 0 0 12px var(--cyan);
    animation: blink 1s steps(2) infinite;
}

footer {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
    padding: 28px 0 38px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--muted);
}

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

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

@keyframes rotate {
    to { transform: rotate(360deg); }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.04); }
}

@keyframes scan {
    from { width: 20%; }
    to { width: 92%; }
}

@keyframes blink {
    50% { opacity: 0.35; }
}

@media (max-width: 980px) {
    .hero,
    .future-section {
        grid-template-columns: 1fr;
    }

    .ai-visual {
        margin-top: 30px;
    }

    .card-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

    .about-panel > div {
        border-right: 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    }

    .about-panel > div:last-child {
        border-bottom: 0;
    }
}

@media (max-width: 760px) {
    .navbar {
        width: calc(100% - 20px);
        margin-top: 8px;
    }

    .menu-toggle {
        display: block;
    }

    .nav-links {
        position: absolute;
        top: 72px;
        left: 0;
        right: 0;
        display: none;
        flex-direction: column;
        gap: 0;
        padding: 10px;
        border: 1px solid rgba(255, 255, 255, 0.08);
        border-radius: 16px;
        background: rgba(5, 8, 22, 0.97);
    }

    .nav-links.open {
        display: flex;
    }

    .nav-links a {
        padding: 12px;
    }

    .hero {
        padding-top: 140px;
    }

    .hero h1 {
        font-size: clamp(2.8rem, 15vw, 4.8rem);
    }

    .hero-stats {
        gap: 18px;
    }

    .card-grid,
    .application-layout {
        grid-template-columns: 1fr;
    }

    .application-tabs {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
    }

    .application-display {
        padding: 28px;
    }

    .application-label {
        margin-bottom: 36px;
    }

    footer {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    main {
        width: min(100% - 26px, 1180px);
    }

    .section {
        padding: 80px 0;
    }

    .card-grid,
    .application-tabs {
        grid-template-columns: 1fr;
    }

    .hero-buttons .button {
        width: 100%;
    }

    .ai-visual {
        width: min(340px, 90vw);
    }

    .core {
        width: 145px;
        height: 145px;
    }
}
