:root {
    --bg-dark: #0a0e14;
    --accent-blue: #00d4ff;
    --text-main: #e8e8e8;
    --text-muted: #a8b2bd;
    --card-bg: rgba(255, 255, 255, 0.04);
    --card-border: rgba(255, 255, 255, 0.12);
}

body, html {
    margin: 0;
    padding: 0;
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: "Noto Sans TC", "Inter", system-ui, sans-serif;
    line-height: 1.65;
}

a {
    color: rgba(255, 255, 255, 0.88);
}

a:hover {
    color: var(--accent-blue);
}

/* Fixed background layers */
.bg-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse 120% 80% at 50% 20%, #15202b 0%, #0a0e14 55%, #06080c 100%);
    z-index: -3;
}

.bg-grid {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("https://www.transparenttextures.com/patterns/grid-me.png");
    opacity: 0.12;
    z-index: -2;
}

.bg-world {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
    opacity: 0.22;
    background-image: url("https://www.transparenttextures.com/patterns/stardust.png");
    background-size: 400px 400px;
    mask-image: radial-gradient(ellipse 70% 60% at 50% 45%, black 20%, transparent 75%);
}

.main-layout {
    position: relative;
    z-index: 1;
}

/* Layout container */
.container {
    max-width: 1040px;
    margin: 0 auto;
    padding: 48px 20px 72px;
    text-align: center;
}

.container--index {
    padding-top: 32px;
}

/* Titles */
.logo {
    font-size: clamp(1.75rem, 4vw, 2.35rem);
    letter-spacing: 0.45em;
    margin-bottom: 2.5rem;
    font-weight: 400;
    color: #fff;
}

.page-title {
    font-size: clamp(1.75rem, 3.5vw, 2.4rem);
    letter-spacing: 0.35em;
    margin-bottom: 0.35rem;
    font-weight: 300;
    color: #fff;
}

.sub-tag {
    color: var(--text-muted);
    letter-spacing: 0.2em;
    font-size: 0.88rem;
    margin-bottom: 2.25rem;
    font-weight: 300;
}

.sub-tag--ruled {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2.5rem;
    max-width: 100%;
    flex-wrap: wrap;
    justify-content: center;
}

.sub-tag--ruled::before,
.sub-tag--ruled::after {
    content: "";
    width: min(100px, 18vw);
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.28), transparent);
}

.page-intro {
    color: var(--text-muted);
    font-size: 0.95rem;
    max-width: 560px;
    margin: 0 auto 1.5rem;
    line-height: 1.8;
}

.page-intro--tight {
    margin-bottom: 0.75rem;
}

/* Hero (index) */
.hero-claim {
    margin: 2rem auto 3rem;
}

.hero-line1 {
    font-size: clamp(1.05rem, 2vw, 1.25rem);
    letter-spacing: 0.2em;
    font-weight: 400;
    color: #fff;
    margin: 0 0 0.75rem;
}

.hero-line2 {
    font-size: 0.9rem;
    letter-spacing: 0.12em;
    color: var(--text-muted);
    margin: 0;
    line-height: 1.8;
}

.hero-map-wrap {
    position: relative;
    margin: 0 auto 2.5rem;
    max-width: 920px;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(0, 0, 0, 0.25);
}

.hero-map-wrap svg {
    display: block;
    width: 100%;
    height: auto;
    vertical-align: middle;
}

/* Cards */
.card-grid {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 8px;
    flex-wrap: wrap;
}

.card-grid--2 .card {
    min-width: 300px;
    flex: 1 1 320px;
    max-width: 480px;
}

.card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    backdrop-filter: blur(12px);
    padding: 28px 22px 26px;
    flex: 1;
    min-width: 260px;
    max-width: 340px;
    border-radius: 8px;
    transition: border-color 0.25s, background 0.25s, box-shadow 0.25s;
    text-align: center;
}

.card:hover {
    border-color: rgba(0, 212, 255, 0.35);
    background: rgba(255, 255, 255, 0.06);
    box-shadow: 0 0 24px rgba(0, 212, 255, 0.08);
}

.card h3 {
    font-size: 1.15rem;
    margin-bottom: 14px;
    letter-spacing: 0.2em;
    font-weight: 500;
    color: #fff;
}

.card h3 .sub-en {
    display: block;
    font-size: 0.75rem;
    letter-spacing: 0.15em;
    color: var(--text-muted);
    font-weight: 400;
    margin-top: 6px;
}

.card hr {
    border: none;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin: 14px auto 16px;
    width: 72%;
}

.card p {
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.75;
    margin: 0 0 4px;
}

.card__icon {
    width: 56px;
    height: 56px;
    margin: 4px auto 18px;
    color: var(--accent-blue);
    filter: drop-shadow(0 0 10px rgba(0, 212, 255, 0.45));
}

/* 向量圖示改由 site-svgs.css 的 .card__icon--* 背景呈現 */

.card--wide {
    max-width: none;
    text-align: left;
}

.card--spotlight {
    border-color: rgba(0, 212, 255, 0.25);
    box-shadow: 0 0 32px rgba(0, 212, 255, 0.12);
}

.card-media {
    margin: 0 -22px 16px;
    border-radius: 6px 6px 0 0;
    overflow: hidden;
    min-height: 140px;
    background: linear-gradient(145deg, #1a2330 0%, #0d1218 100%);
    border-bottom: 1px solid var(--card-border);
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-media--chart {
    padding: 16px;
}

.card-media img,
.card-media svg {
    max-width: 100%;
    height: auto;
}

.about-photo-wrap {
    margin: -28px -22px 16px;
    border-radius: 8px 8px 0 0;
    overflow: hidden;
    background: linear-gradient(160deg, #2a3344 0%, #0e141c 100%);
    aspect-ratio: 3 / 4;
    max-height: 320px;
}

.about-photo-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.about-caption {
    padding: 0 8px 4px;
}

.about-caption strong {
    display: block;
    font-size: 1.05rem;
    letter-spacing: 0.12em;
    color: #fff;
}

.about-caption span {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.card h4 {
    margin: 0;
    font-size: 1rem;
    letter-spacing: 0.15em;
}

/* Buttons & links */
.btn {
    display: inline-block;
    padding: 10px 22px;
    border: 1px solid rgba(255, 255, 255, 0.35);
    color: #fff !important;
    text-decoration: none !important;
    font-size: 0.78rem;
    letter-spacing: 0.12em;
    margin-top: 18px;
    border-radius: 4px;
    transition: background 0.25s, color 0.25s, border-color 0.25s, box-shadow 0.25s;
}

.btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff !important;
    border-color: var(--accent-blue);
    box-shadow: 0 0 16px rgba(0, 212, 255, 0.2);
}

.link-chevron {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 18px;
    padding: 10px 20px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 4px;
    font-size: 0.78rem;
    letter-spacing: 0.1em;
    color: #fff !important;
    text-decoration: none !important;
    transition: border-color 0.25s, box-shadow 0.25s;
}

.link-chevron:hover {
    border-color: var(--accent-blue);
    box-shadow: 0 0 14px rgba(0, 212, 255, 0.15);
}

.link-chevron .chev {
    font-size: 1.1em;
    opacity: 0.85;
}

.badge-note {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 1.25rem;
    padding: 10px 18px;
    border: 1px solid rgba(0, 212, 255, 0.35);
    border-radius: 6px;
    font-size: 0.82rem;
    color: var(--text-muted);
    background: rgba(0, 0, 0, 0.2);
}

/* Lists */
.list-diamond {
    list-style: none;
    padding: 0;
    margin: 1rem 0 0;
    text-align: left;
}

.list-diamond li {
    position: relative;
    padding-left: 1.1rem;
    margin-bottom: 0.55rem;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.list-diamond li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.55em;
    width: 5px;
    height: 5px;
    background: var(--accent-blue);
    transform: rotate(45deg);
    box-shadow: 0 0 6px rgba(0, 212, 255, 0.6);
}

.list-dot {
    list-style: none;
    padding: 0;
    margin: 0.5rem 0 0;
    text-align: left;
}

.list-dot li {
    position: relative;
    padding-left: 1rem;
    margin-bottom: 0.45rem;
    font-size: 0.88rem;
    color: var(--text-muted);
}

.list-dot li::before {
    content: "·";
    position: absolute;
    left: 0;
    color: rgba(255, 255, 255, 0.45);
}

/* Investing chart */
.chart-placeholder {
    width: 100%;
    min-height: 120px;
}

.chart-note {
    font-size: 0.72rem !important;
    color: rgba(168, 178, 189, 0.85) !important;
    margin-top: 12px !important;
}

/* Technology split */
.tech-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
    align-items: center;
    margin: 2rem 0 2.5rem;
    text-align: left;
}

@media (max-width: 768px) {
    .tech-split {
        grid-template-columns: 1fr;
    }
}

.tech-visual {
    border-radius: 10px;
    border: 1px solid var(--card-border);
    background: linear-gradient(160deg, rgba(15, 25, 38, 0.9) 0%, rgba(6, 10, 16, 0.95) 100%);
    min-height: 220px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: center;
    justify-content: center;
}

.tech-screen {
    width: 100%;
    height: 90px;
    border-radius: 6px;
    border: 1px solid rgba(0, 212, 255, 0.15);
    background: linear-gradient(180deg, #0f1824 0%, #0a1018 100%);
    position: relative;
    overflow: hidden;
}

.tech-screen::after {
    content: "";
    position: absolute;
    inset: 12px;
    background: repeating-linear-gradient(
        90deg,
        transparent,
        transparent 8px,
        rgba(0, 212, 255, 0.08) 8px,
        rgba(0, 212, 255, 0.08) 9px
    );
    opacity: 0.6;
}

.tech-screen--sm {
    height: 72px;
    max-width: 85%;
}

.tech-split__text h2 {
    font-size: 1.15rem;
    letter-spacing: 0.12em;
    font-weight: 500;
    margin: 0 0 10px;
    color: #fff;
}

.tech-split__text > p {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin: 0 0 0.5rem;
}

/* Map CTA */
.map-cta {
    margin: 1.25rem auto 0;
}

.nomad-footer-brand {
    font-size: 0.85rem;
    color: var(--text-muted);
    letter-spacing: 0.2em;
    margin-top: 8px;
}

/* Resource section (Global Wave) */
.resource-links {
    margin-top: 52px;
    padding-top: 44px;
    border-top: 1px solid var(--card-border);
}

.resource-links-title {
    font-size: 1.15rem;
    letter-spacing: 0.25em;
    font-weight: 400;
    margin-bottom: 8px;
    color: #fff;
}

.resource-links-intro {
    font-size: 0.88rem;
    color: var(--text-muted);
    margin-bottom: 24px;
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
}

/* Contact form */
.contact-lead {
    max-width: 520px;
    margin: 0 auto 2rem;
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.85;
}

.form-minimal {
    max-width: 520px;
    margin: 0 auto;
    text-align: left;
    padding: 32px 28px;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 8px;
    backdrop-filter: blur(10px);
}

.form-minimal label {
    display: block;
    font-size: 0.75rem;
    letter-spacing: 0.12em;
    color: var(--text-muted);
    margin-bottom: 6px;
}

.form-minimal input,
.form-minimal textarea {
    width: 100%;
    box-sizing: border-box;
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.22);
    color: #fff;
    padding: 10px 4px 12px;
    margin-bottom: 22px;
    font-family: inherit;
    font-size: 0.95rem;
    outline: none;
    transition: border-color 0.2s;
}

.form-minimal input:focus,
.form-minimal textarea:focus {
    border-bottom-color: var(--accent-blue);
}

.form-minimal textarea {
    min-height: 120px;
    resize: vertical;
}

.form-minimal .btn {
    display: block;
    width: 100%;
    text-align: center;
    margin-top: 8px;
    cursor: pointer;
    background: transparent;
    font-family: inherit;
}

/* Page footer block (in-page) */
.page-footer {
    margin-top: 56px;
    padding-top: 36px;
    border-top: 1px solid var(--card-border);
}

.page-footer .sub-tag--ruled {
    margin-bottom: 1rem;
}

.page-footer .slogan {
    font-size: 1.05rem;
    letter-spacing: 0.18em;
    color: #fff;
    margin: 0 0 10px;
    font-weight: 400;
}

.page-footer .brand-name {
    font-size: 0.82rem;
    color: var(--text-muted);
    letter-spacing: 0.2em;
}

.page-footer-divider {
    width: min(220px, 70%);
    height: 1px;
    margin: 1.25rem auto 1rem;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.22), transparent);
}

/* Site footer (layout) */
.site-footer {
    font-size: 0.78rem;
    color: var(--text-muted);
    padding: 24px 16px 32px;
    text-align: center;
    border-top: 1px solid var(--card-border);
    margin-top: 0;
    background: rgba(0, 0, 0, 0.25);
}

.site-footer .site-footer-line {
    margin: 0;
}

.site-footer .site-footer-line--links {
    margin-top: 10px;
}

.site-footer .site-footer-line--links a {
    color: var(--accent-blue);
    letter-spacing: 0.06em;
    text-decoration: none;
}

.site-footer .site-footer-line--links a:hover {
    text-decoration: underline;
}

/* Utilities */
.text-muted {
    color: var(--text-muted);
}

.mt-gap {
    margin-top: 1.25rem;
}

.align-stretch {
    align-items: stretch;
}

/* Navbar — dark theme (overrides legacy style.css) */
.nav-menu {
    background: rgba(8, 12, 18, 0.88) !important;
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.nav-menu a {
    color: rgba(220, 225, 232, 0.85) !important;
    font-size: 0.82rem;
    letter-spacing: 0.06em;
}

.nav-menu a:hover {
    color: var(--accent-blue) !important;
}

.nav-menu a.active {
    color: var(--accent-blue) !important;
}
