/* ═══════════════════════════════════════════════════════════════
   AI天天報 Landing Page — site.css
═══════════════════════════════════════════════════════════════ */

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

:root {
    --bg-darkest: #060b14;
    --bg-dark:    #0a1120;
    --bg-card:    #111827;
    --bg-card2:   #1a2235;
    --border:     #1e2d45;
    --cyan:       #00d4ff;
    --cyan-dim:   rgba(0,212,255,.15);
    --line-green: #06C755;
    --text-1:     #f1f5f9;
    --text-2:     #94a3b8;
    --text-3:     #475569;
    --radius:     16px;
    --radius-lg:  24px;
}

html { scroll-behavior: smooth; }

body {
    font-family: 'Noto Sans TC', 'Inter', sans-serif;
    background: var(--bg-darkest);
    color: var(--text-1);
    line-height: 1.7;
    overflow-x: hidden;
}

/* ── Helpers ─────────────────────────────────────────────────── */
.container   { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.text-cyan   { color: var(--cyan); }
.d-pc        { display: none; }
@media(min-width:768px){ .d-pc{ display: inline; } }

/* ── Buttons ─────────────────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: 100px;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    transition: transform .2s, box-shadow .2s, opacity .2s;
    white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-sm  { padding: 8px 18px;  font-size: .875rem; }
.btn-lg  { padding: 14px 32px; font-size: 1rem; }
.btn-xl  { padding: 18px 40px; font-size: 1.1rem; }

.btn-line {
    background: var(--line-green);
    color: #fff;
    box-shadow: 0 4px 24px rgba(6,199,85,.35);
}
.btn-line:hover { box-shadow: 0 8px 32px rgba(6,199,85,.5); opacity:.95; }

.btn-ghost {
    background: transparent;
    color: var(--text-2);
    border: 1.5px solid var(--border);
}
.btn-ghost:hover { border-color: var(--cyan); color: var(--cyan); }

/* ── Navbar ──────────────────────────────────────────────────── */
.navbar {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    padding: 14px 24px;
    background: rgba(6,11,20,.85);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
    transition: background .3s;
}
.nav-inner {
    max-width: 1120px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.nav-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}
.nav-logo  { height: 36px; object-fit: contain; }
.nav-title { font-size: 1.1rem; font-weight: 700; color: var(--text-1); letter-spacing: .03em; }

/* ── Hero ────────────────────────────────────────────────────── */
.hero {
    position: relative;
    min-height: 100svh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 100px 24px 60px;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 60% at 50% -10%, rgba(0,212,255,.18) 0%, transparent 70%),
        radial-gradient(ellipse 60% 40% at 80% 80%, rgba(99,102,241,.12) 0%, transparent 60%),
        var(--bg-darkest);
    z-index: 0;
}
.hero-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(0,212,255,.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0,212,255,.04) 1px, transparent 1px);
    background-size: 48px 48px;
}

.hero-content { position: relative; z-index: 1; max-width: 760px; }

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(0,212,255,.1);
    border: 1px solid rgba(0,212,255,.25);
    border-radius: 100px;
    padding: 6px 16px;
    font-size: .875rem;
    color: var(--cyan);
    margin-bottom: 32px;
    font-weight: 500;
}
.badge-dot {
    width: 7px; height: 7px;
    background: var(--cyan);
    border-radius: 50%;
    animation: pulse 2s infinite;
}
@keyframes pulse {
    0%,100% { opacity: 1; transform: scale(1); }
    50%      { opacity: .5; transform: scale(.8); }
}

.hero-logo {
    width: min(220px, 55vw);
    object-fit: contain;
    margin-bottom: 28px;
    filter: drop-shadow(0 0 32px rgba(0,212,255,.3));
}

.hero-title {
    font-size: clamp(2rem, 6vw, 3.6rem);
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: 20px;
    letter-spacing: -.02em;
}

.hero-desc {
    font-size: clamp(.95rem, 2vw, 1.15rem);
    color: var(--text-2);
    margin-bottom: 36px;
    line-height: 1.8;
}

.hero-cta {
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 52px;
}

.hero-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    background: rgba(255,255,255,.04);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px 32px;
    gap: 0;
    display: inline-flex;
}
.stat { text-align: center; padding: 0 28px; }
.stat-num   { font-size: 1.5rem; font-weight: 800; color: var(--cyan); line-height: 1.1; }
.stat-label { font-size: .8rem; color: var(--text-2); margin-top: 4px; }
.stat-divider { width: 1px; height: 40px; background: var(--border); }

.hero-scroll-hint {
    position: absolute;
    bottom: 28px;
    left: 50%;
    transform: translateX(-50%);
}
.scroll-arrow {
    width: 24px; height: 24px;
    border-right: 2px solid var(--text-3);
    border-bottom: 2px solid var(--text-3);
    transform: rotate(45deg);
    animation: bounce 2s infinite;
    margin: 0 auto;
}
@keyframes bounce {
    0%,100% { transform: rotate(45deg) translateY(0); }
    50%      { transform: rotate(45deg) translateY(6px); }
}

/* ── Sections ────────────────────────────────────────────────── */
.section { padding: 96px 0; }
.section-dark   { background: var(--bg-dark); }
.section-darker { background: var(--bg-darkest); }
.section-cta    { background: var(--bg-dark); }

.section-header {
    text-align: center;
    margin-bottom: 60px;
}
.section-tag {
    display: inline-block;
    color: var(--cyan);
    font-size: .875rem;
    font-weight: 600;
    letter-spacing: .1em;
    text-transform: uppercase;
    margin-bottom: 12px;
}
.section-title {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 800;
    line-height: 1.25;
    letter-spacing: -.02em;
}

/* ── Features Grid ───────────────────────────────────────────── */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}
.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px;
    transition: transform .25s, border-color .25s, box-shadow .25s;
    opacity: 0;
    transform: translateY(24px);
}
.feature-card.aos-visible {
    opacity: 1;
    transform: translateY(0);
    transition: opacity .5s ease, transform .5s ease, border-color .25s, box-shadow .25s;
}
.feature-card:hover {
    border-color: rgba(0,212,255,.35);
    box-shadow: 0 8px 32px rgba(0,212,255,.08);
    transform: translateY(-4px) !important;
}
.feature-icon {
    width: 56px; height: 56px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
}
.feature-card h3 {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--text-1);
}
.feature-card p {
    font-size: .9rem;
    color: var(--text-2);
    line-height: 1.7;
}

/* ── Timeline ────────────────────────────────────────────────── */
.timeline {
    position: relative;
    max-width: 700px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 0;
}
.timeline::before {
    content: '';
    position: absolute;
    left: 28px;
    top: 0; bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, var(--cyan), transparent);
}
.timeline-item {
    display: flex;
    gap: 24px;
    padding: 0 0 48px 0;
    opacity: 0;
    transform: translateX(-20px);
}
.timeline-item.aos-visible {
    opacity: 1;
    transform: translateX(0);
    transition: opacity .5s ease, transform .5s ease;
}
.timeline-num {
    flex-shrink: 0;
    width: 56px; height: 56px;
    background: var(--bg-card);
    border: 2px solid var(--cyan);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .875rem;
    font-weight: 800;
    color: var(--cyan);
    position: relative;
    z-index: 1;
    box-shadow: 0 0 20px rgba(0,212,255,.2);
}
.timeline-content {
    padding-top: 14px;
}
.timeline-content h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-1);
}
.timeline-content p {
    font-size: .9rem;
    color: var(--text-2);
    line-height: 1.7;
}

/* ── CTA Section ─────────────────────────────────────────────── */
.cta-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 56px 48px;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 64px;
    align-items: center;
    position: relative;
    overflow: hidden;
}
.cta-card::before {
    content: '';
    position: absolute;
    top: -60px; right: -60px;
    width: 300px; height: 300px;
    background: radial-gradient(circle, rgba(6,199,85,.12), transparent 70%);
    pointer-events: none;
}

.cta-desc {
    color: var(--text-2);
    line-height: 1.75;
    margin-bottom: 28px;
    font-size: .95rem;
}
.cta-benefits {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 32px;
}
.cta-benefits li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: .95rem;
    color: var(--text-1);
}
.cta-hint {
    font-size: .8rem;
    color: var(--text-3);
    margin-top: 12px;
    text-align: center;
}

.cta-qr { flex-shrink: 0; }
.qr-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}
.qr-img {
    width: 200px;
    height: 200px;
    object-fit: contain;
    border-radius: var(--radius);
    background: #fff;
    padding: 12px;
    box-shadow: 0 8px 32px rgba(0,0,0,.4);
}
.qr-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: .8rem;
    color: var(--line-green);
    font-weight: 600;
}

@media(max-width: 768px) {
    .cta-card {
        grid-template-columns: 1fr;
        padding: 36px 24px;
        gap: 36px;
    }
    .cta-qr { order: -1; }
    .qr-wrapper { flex-direction: row; justify-content: center; }
    .qr-img { width: 150px; height: 150px; }
}

/* ── Footer ──────────────────────────────────────────────────── */
.footer {
    background: var(--bg-darkest);
    border-top: 1px solid var(--border);
    padding: 48px 0 24px;
}
.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 24px;
    margin-bottom: 32px;
}
.footer-tagline {
    font-size: .95rem;
    font-weight: 700;
    color: var(--text-2);
}
.footer-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
    justify-content: center;
}
.footer-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    font-size: .875rem;
    font-weight: 600;
    padding: 8px 18px;
    border-radius: 100px;
    transition: opacity .2s;
}
.footer-link:hover { opacity: .8; }
.footer-link-line {
    background: var(--line-green);
    color: #fff;
}
.footer-bottom {
    text-align: center;
    border-top: 1px solid var(--border);
    padding-top: 20px;
    font-size: .78rem;
    color: var(--text-3);
}

/* ── AOS animations ──────────────────────────────────────────── */
[data-aos] { transition: opacity .5s ease, transform .5s ease; }
