:root {
    --bg-main: #07070b;
    --bg-alt: #0d0f14;
    --text-main: #e8e8e8;
    --text-muted: #a0a6ab;
    --accent: #00e5ff;
    --accent-glow: rgba(0, 229, 255, 0.4);
    --purple: #b300ff;
    --glass-bg: rgba(25, 25, 35, 0.4);
    --glass-border: rgba(255, 255, 255, 0.08);
}

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

body {
    font-family: 'Noto Sans TC', 'Inter', sans-serif;
    background-color: var(--bg-main);
    color: var(--text-main);
    line-height: 1.8;
    letter-spacing: 0.03em;
    overflow-x: hidden;
}

.container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 3rem;
}

/* Typography */
h1, h2, h3 {
    font-weight: 700;
    letter-spacing: 0.05em;
    line-height: 1.3;
}

.section-title {
    font-size: 2.8rem;
    margin-bottom: 2rem;
    background: linear-gradient(90deg, var(--accent), var(--purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

p {
    margin-bottom: 2rem;
    font-size: 1.15rem;
    color: var(--text-muted);
}

strong {
    color: #fff;
    font-weight: 600;
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background-image: url('assets/hero_bg.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(7,7,11,0.5) 0%, rgba(7,7,11,1) 100%);
    backdrop-filter: blur(4px);
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    max-width: 900px;
}

.hero h1 {
    font-size: 4.5rem;
    color: #fff;
    margin-bottom: 1.5rem;
    text-shadow: 0 0 30px var(--accent-glow);
}

.hero .subtitle {
    font-size: 1.6rem;
    color: var(--text-muted);
    margin-bottom: 3rem;
}

.btn {
    display: inline-block;
    padding: 1.2rem 3rem;
    font-size: 1.2rem;
    font-weight: 600;
    color: #fff;
    text-decoration: none;
    background: linear-gradient(45deg, var(--accent), var(--purple));
    border-radius: 50px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 0 20px rgba(179, 0, 255, 0.4);
}

.btn:hover {
    transform: translateY(-4px);
    box-shadow: 0 0 35px rgba(0, 229, 255, 0.6);
}

/* Sections */
.section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 8rem 0;
}

.dark-alt {
    background-color: var(--bg-alt);
    border-top: 1px solid var(--glass-border);
    border-bottom: 1px solid var(--glass-border);
}

.split-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6rem;
    align-items: center;
}

.split-layout.reverse {
    direction: rtl;
}
.split-layout.reverse > * {
    direction: ltr;
}

/* Features */
.feature-list {
    list-style: none;
    margin-top: 2.5rem;
}

.feature-list li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1.5rem;
    font-size: 1.15rem;
}

.feature-list .icon {
    font-size: 1.8rem;
    margin-right: 1.5rem;
    margin-top: -0.2rem;
}

/* Directory Tree Box */
.directory-tree {
    background: rgba(10, 15, 25, 0.6);
    border: 1px solid var(--glass-border);
    border-left: 4px solid var(--accent);
    padding: 2rem;
    border-radius: 12px;
    margin-top: 2rem;
    font-family: monospace;
    font-size: 1.1rem;
    line-height: 2;
    color: var(--text-muted);
}
.directory-tree span.folder { color: var(--accent); font-weight: bold; }
.directory-tree span.file { color: #fff; }
.directory-tree span.comment { color: #666; font-style: italic; }

/* Cards */
.agent-cards {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-top: 3rem;
}

.card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    padding: 2rem;
    border-radius: 16px;
    backdrop-filter: blur(12px);
    transition: transform 0.4s, border-color 0.4s, box-shadow 0.4s;
}

.card:hover {
    transform: translateX(15px);
    border-color: var(--accent);
    box-shadow: -10px 0 30px var(--accent-glow);
}

.card h3 {
    color: var(--accent);
    margin-bottom: 1rem;
    font-size: 1.4rem;
}

/* Images */
.glass-panel {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    padding: 1.5rem;
    border-radius: 24px;
    backdrop-filter: blur(20px);
    box-shadow: 0 30px 60px rgba(0,0,0,0.6);
    position: relative;
}

.rounded-img {
    width: 100%;
    border-radius: 16px;
    display: block;
}

footer {
    text-align: center;
    padding: 4rem 0;
    color: var(--text-muted);
    border-top: 1px solid var(--glass-border);
}

/* Responsive */
@media (max-width: 1024px) {
    .split-layout {
        grid-template-columns: 1fr;
        gap: 4rem;
    }
    .hero h1 {
        font-size: 3.5rem;
    }
    .section {
        min-height: auto;
        padding: 6rem 0;
    }
}

/* New Layout Adjustments for Detail Density */
.split-layout {
    align-items: start; /* Allow sticky images */
}

.image-content {
    position: sticky;
    top: 120px;
}

.card-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-top: 2.5rem;
}

.info-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    padding: 1.8rem;
    border-radius: 16px;
    backdrop-filter: blur(12px);
    transition: border-color 0.3s;
}

.info-card:hover {
    border-color: var(--accent);
}

.info-card h3 {
    color: var(--accent);
    margin-bottom: 0.8rem;
    font-size: 1.3rem;
}
