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

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

:root {
    --text: #1a1a1a;
    --text-muted: #666;
    --bg: #fff;
    --bg-alt: #f5f5f5;
    --border: #e5e5e5;
    --accent: #6366F1;
    --accent-dark: #4F46E5;
}

@media (prefers-color-scheme: dark) {
    :root {
        --text: #f5f5f5;
        --text-muted: #999;
        --bg: #0a0a0a;
        --bg-alt: #141414;
        --border: #2a2a2a;
    }
}

html { scroll-behavior: smooth; }

body {
    font-family: 'Noto Sans TC', -apple-system, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

/* ========================================
   SPLIT HERO - 左右分割佈局
   ======================================== */
.split-hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 100vh;
}

@media (max-width: 900px) {
    .split-hero {
        grid-template-columns: 1fr;
        min-height: auto;
    }
}

.hero-left {
    display: flex;
    flex-direction: column;
    padding: 32px 48px 48px;
    background: var(--bg);
}

@media (max-width: 900px) {
    .hero-left {
        padding: 24px;
    }
}

.header {
    margin-bottom: auto;
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 18px;
}

.logo img {
    width: 36px;
    height: 36px;
    border-radius: 10px;
}

.hero-content {
    max-width: 480px;
}

.tags {
    display: flex;
    gap: 8px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.tags span {
    padding: 6px 14px;
    background: var(--bg-alt);
    border: 1px solid var(--border);
    border-radius: 100px;
    font-size: 13px;
    font-weight: 500;
}

.hero-content h1 {
    font-size: 48px;
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.02em;
    margin-bottom: 20px;
}

@media (max-width: 600px) {
    .hero-content h1 {
        font-size: 36px;
    }
}

.hero-content > p {
    font-size: 17px;
    color: var(--text-muted);
    margin-bottom: 32px;
    line-height: 1.7;
}

.cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 28px;
    background: #1a1a1a;
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    border-radius: 12px;
    transition: all 0.2s;
    cursor: pointer;
}

.cta-btn:hover {
    background: #333;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

@media (prefers-color-scheme: dark) {
    .cta-btn {
        background: #f5f5f5;
        color: #1a1a1a;
    }
    .cta-btn:hover {
        background: #fff;
    }
}

.cta-btn svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

.cta-btn.light {
    background: #fff;
    color: var(--accent);
}

.cta-btn.light:hover {
    background: #f5f5f5;
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}

.ai-powered {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 40px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
}

.ai-powered span {
    font-size: 13px;
    color: var(--text-muted);
}

.ai-powered img {
    width: 28px;
    height: 28px;
    object-fit: contain;
}

/* Hero Right - 視覺區 */
.hero-right {
    background: var(--bg-alt);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

@media (max-width: 900px) {
    .hero-right {
        min-height: 300px;
        padding: 48px 24px;
    }
}

.lottery-showcase {
    position: relative;
    width: 280px;
    height: 280px;
}

.lottery-float {
    position: absolute;
    background: var(--bg);
    border-radius: 20px;
    padding: 20px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.08);
    transition: transform 0.3s;
}

@media (prefers-color-scheme: dark) {
    .lottery-float {
        box-shadow: 0 8px 32px rgba(0,0,0,0.3);
    }
}

.lottery-float:hover {
    transform: scale(1.05);
}

.lottery-float img {
    width: 64px;
    height: 64px;
    object-fit: contain;
}

.lottery-1 { top: 0; left: 50%; transform: translateX(-50%); }
.lottery-2 { bottom: 20px; left: 0; }
.lottery-3 { bottom: 20px; right: 0; }

.lottery-1:hover { transform: translateX(-50%) scale(1.05); }

/* ========================================
   FEATURES - 2x2 網格
   ======================================== */
.features-section {
    padding: 0;
}

.features-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
}

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

.feature-block {
    padding: 64px 48px;
    border: 1px solid var(--border);
    margin: -1px 0 0 -1px;
    transition: background 0.2s;
}

.feature-block:hover {
    filter: brightness(0.97);
}

/* 四塊不同顏色 - 柔和色調 */
.feature-block.color-1 {
    background: #fdf6f0; /* 暖米色 */
}
.feature-block.color-2 {
    background: #f0faf5; /* 薄荷綠 */
}
.feature-block.color-3 {
    background: #f5f0fa; /* 淡紫色 */
}
.feature-block.color-4 {
    background: #faf5f0; /* 淺杏色 */
}

@media (prefers-color-scheme: dark) {
    .feature-block.color-1 {
        background: #1f1a17; /* 深暖棕 */
    }
    .feature-block.color-2 {
        background: #171f1a; /* 深薄荷 */
    }
    .feature-block.color-3 {
        background: #1a171f; /* 深紫 */
    }
    .feature-block.color-4 {
        background: #1f1a17; /* 深杏色 */
    }
}

@media (max-width: 700px) {
    .feature-block {
        padding: 40px 24px;
    }
}

.feature-num {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-muted);
    margin-bottom: 16px;
    letter-spacing: 0.05em;
}

.feature-block h2 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 12px;
}

@media (max-width: 600px) {
    .feature-block h2 {
        font-size: 24px;
    }
}

.feature-block p {
    font-size: 15px;
    color: var(--text-muted);
    line-height: 1.7;
}

/* ========================================
   HOW - 水平時間軸
   ======================================== */
.how-section {
    padding: 80px 24px;
    background: var(--bg);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.how-inner {
    max-width: 900px;
    margin: 0 auto;
}

.how-section h2 {
    font-size: 32px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 48px;
}

.timeline {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 0;
}

@media (max-width: 700px) {
    .timeline {
        flex-direction: column;
        align-items: stretch;
        gap: 24px;
    }
}

.timeline-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    flex: 1;
    max-width: 200px;
}

@media (max-width: 700px) {
    .timeline-item {
        flex-direction: row;
        text-align: left;
        max-width: none;
        gap: 16px;
    }
}

.timeline-dot {
    width: 16px;
    height: 16px;
    background: var(--accent);
    border-radius: 50%;
    margin-bottom: 20px;
    flex-shrink: 0;
}

@media (max-width: 700px) {
    .timeline-dot {
        margin-bottom: 0;
    }
}

.timeline-line {
    flex: 1;
    height: 2px;
    background: var(--border);
    margin-top: 7px;
    max-width: 80px;
}

@media (max-width: 700px) {
    .timeline-line {
        display: none;
    }
}

.timeline-step {
    font-size: 11px;
    font-weight: 700;
    color: var(--accent);
    letter-spacing: 0.1em;
    margin-bottom: 8px;
    display: block;
}

.timeline-content h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 4px;
}

.timeline-content p {
    font-size: 14px;
    color: var(--text-muted);
}


/* ========================================
   DOWNLOAD SECTION
   ======================================== */
.download-section {
    padding: 48px 24px;
    text-align: center;
    border-top: 1px solid var(--border);
    background: #f0f5fa; /* 淡藍灰色 */
}

@media (prefers-color-scheme: dark) {
    .download-section {
        background: #171a1f; /* 深藍灰色 */
    }
}

.download-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    flex-wrap: wrap;
}

.download-inner p {
    font-size: 18px;
    font-weight: 600;
}

.download-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: var(--bg-alt);
    border: 1px solid var(--border);
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    transition: all 0.2s;
    cursor: pointer;
}

.download-link:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.download-link svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

/* ========================================
   FOOTER
   ======================================== */
.footer {
    padding: 32px 24px;
    border-top: 1px solid var(--border);
}

.footer-inner {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
}

@media (max-width: 700px) {
    .footer-inner {
        flex-direction: column;
        text-align: center;
    }
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    font-size: 15px;
}

.footer-brand img {
    width: 28px;
    height: 28px;
    border-radius: 8px;
}

.footer-nav {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
}

@media (max-width: 700px) {
    .footer-nav {
        justify-content: center;
    }
}

.footer-nav a {
    font-size: 14px;
    color: var(--text-muted);
    transition: color 0.2s;
}

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

.footer-copy {
    font-size: 13px;
    color: var(--text-muted);
}

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