:root {
    /* Brand Colors */
    --color-main: #373B40;
    --color-accent: #DDBE7C;
    --color-accent-glow: rgba(221, 190, 124, 0.2);
    --color-bg: #0B0D10;
    --color-card-bg: #12161B;
    --color-card-border: #1E242B;
    --color-text-main: #E8EDF2;
    --color-text-sub: #A9B2BC;

    /* High Tech Visuals */
    --glow-shadow: 0 0 20px var(--color-accent-glow);
    --tech-border: 1px solid rgba(221, 190, 124, 0.3);

    /* Spacing & Layout - High Density */
    --gap-sm: 8px;
    --gap-md: 16px;
    --gap-lg: 24px;
    --gap-xl: 40px;

    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;

    /* Transitions */
    --trans-fast: 0.2s ease;
    --trans-med: 0.4s ease;
}

/* Reset & Base */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--color-bg);
    color: var(--color-text-main);
    font-family: "PingFang HK", "Noto Sans TC", system-ui, -apple-system, Arial, sans-serif;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    background-image:
        radial-gradient(circle at 10% 10%, rgba(221, 190, 124, 0.03) 0%, transparent 40%),
        radial-gradient(circle at 90% 90%, rgba(221, 190, 124, 0.03) 0%, transparent 40%);
    background-attachment: fixed;
    padding-top: 60px;
    /* Prevent content jump smoothly */
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--trans-fast);
}

ul {
    list-style: none;
}

img,
svg {
    max-width: 100%;
    display: block;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--color-text-main);
    font-weight: 600;
    line-height: 1.3;
    letter-spacing: 0.02em;
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
}

@media (max-width: 768px) {
    h1 {
        font-size: 1.6rem;
    }

    h2 {
        font-size: 1.4rem;
    }

    h3 {
        font-size: 1.2rem;
    }
}

.text-sub {
    color: var(--color-text-sub);
    font-size: 0.9rem;
}

.text-accent {
    color: var(--color-accent);
}

/* Utilities */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 var(--gap-lg);
    width: 100%;
}

@media (max-width: 600px) {
    .container {
        padding: 0 20px;
    }
}

.section {
    padding: 80px 0;
}

@media (max-width: 768px) {
    .section {
        padding: 50px 0;
    }
}

.grid {
    display: grid;
    gap: var(--gap-lg);
}

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

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

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

@media (max-width: 900px) {
    .grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }

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

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

@media (max-width: 600px) {
    .grid-3 {
        grid-template-columns: 1fr;
    }
}

.flex {
    display: flex;
    gap: var(--gap-md);
}

.flex-col {
    flex-direction: column;
}

.flex-center {
    align-items: center;
    justify-content: center;
}

.flex-between {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Components: Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    border-radius: var(--radius-sm);
    font-weight: 500;
    border: 1px solid transparent;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all var(--trans-fast);
    letter-spacing: 0.5px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--color-accent) 0%, #C8A965 100%);
    color: #0B0D10;
    border: none;
    box-shadow: 0 4px 15px rgba(221, 190, 124, 0.3);
}

.btn-outline {
    background-color: transparent;
    border: 1px solid var(--color-accent);
    color: var(--color-accent);
}

/* Components: Cards */
.card {
    background: rgba(18, 22, 27, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--color-card-border);
    padding: var(--gap-lg);
    border-radius: var(--radius-md);
    transition: all var(--trans-med);
    position: relative;
    height: 100%;
    /* Equal height */
}

/* Header: Premium Glass Strip */
header {
    background: rgba(5, 6, 8, 0.85);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-bottom: 1px solid rgba(221, 190, 124, 0.1);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    height: 80px;
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
}

header .container {
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-link img {
    height: 32px;
    width: auto;
}

/* Nav Menu Desktop */
.nav-links {
    display: flex;
    gap: 32px;
    align-items: center;
}

.nav-links a {
    color: var(--color-text-sub);
    font-size: 0.8rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    padding: 8px 0;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--color-accent);
    transition: width 0.3s ease;
}

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

.nav-links a:hover,
.nav-links a.active {
    color: var(--color-text-main);
}

/* Mobile Toggle: Clean Lines */
.mobile-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--color-text-main);
    z-index: 1002;
    padding: 10px;
}

/* Mobile Menu: Full Screen Overlay */
@media (max-width: 900px) {
    header {
        height: 70px;
    }

    .nav-links {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: #0B0D10;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 30px;
        transform: translateY(-100%);
        transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
        z-index: 1001;
        /* Behind toggle */
    }

    .nav-links.open {
        transform: translateY(0);
        display: flex;
        /* Ensure flex is active when open */
    }

    .nav-links a {
        font-size: 1rem;
        font-weight: 300;
        color: var(--color-text-main);
    }

    .mobile-toggle {
        display: block;
    }

    body.menu-open {
        overflow: hidden;
    }
}

/* Hero Mobile Fix */
.hero {
    min-height: 80vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: 80px;
    overflow: hidden;
    /* Ensure SVG doesn't overflow */
}

/* New Minimalist SVG Animation */
.hero-svg-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.8;
    /* Increased from 0.4 */
}

.hero-ring {
    fill: none;
    stroke: var(--color-accent);
    stroke-width: 2;
    /* Increased from 1 */
    vector-effect: non-scaling-stroke;
}

.ring-1 {
    animation: spin 60s linear infinite;
    opacity: 0.4;
    /* Increased from 0.3 */
}

.ring-2 {
    animation: spin-reverse 40s linear infinite;
    opacity: 0.3;
    /* Increased from 0.2 */
    stroke-dasharray: 10 20;
}

.ring-3 {
    animation: pulse-scale 8s ease-in-out infinite;
    opacity: 0.5;
    /* Increased from 0.15 */
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }

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

@keyframes spin-reverse {
    from {
        transform: rotate(360deg);
    }

    to {
        transform: rotate(0deg);
    }
}

@keyframes pulse-scale {

    0%,
    100% {
        transform: scale(0.95);
        opacity: 0.1;
    }

    50% {
        transform: scale(1.05);
        opacity: 0.2;
    }
}

@media (max-width: 768px) {
    .hero {
        flex-direction: column;
        justify-content: center;
        text-align: center;
        min-height: auto;
        padding-bottom: 60px;
    }

    .hero-content {
        padding-right: 0;
        margin-top: 20px;
    }

    .hero .flex {
        justify-content: center;
    }
}

/* Footer Mobile Fix */
.footer-content {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
}

/* Footer - Final Redesign (3-Col) */
.footer {
    background: #050608;
    border-top: 1px solid rgba(221, 190, 124, 0.1);
    padding: 80px 0 30px;
    margin-top: 100px;
    font-size: 0.8rem;
    position: relative;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 60px;
}

.footer-logo {
    width: 120px;
    margin-bottom: 20px;
    opacity: 0.9;
}

.footer-desc {
    color: #7A828C;
    max-width: 300px;
    line-height: 1.6;
}

.footer-heading {
    color: #E8EDF2;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 24px;
    opacity: 0.5;
}

.footer-nav li {
    margin-bottom: 12px;
}

.footer-nav a {
    color: #A9B2BC;
    transition: color 0.2s;
}

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

.footer-text {
    color: #A9B2BC;
    margin-bottom: 12px;
    line-height: 1.6;
}

.footer-bar {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 30px;
    text-align: center;
    color: #4A5059;
    font-size: 0.8rem;
}

@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}