/* =========================================
   Base & Reset
========================================= */
:root {
    /* Colors */
    --bg-dark: #f8fafc;
    /* Now Light Background */
    --bg-card: rgba(255, 255, 255, 0.7);
    --bg-card-hover: rgba(255, 255, 255, 0.95);

    --primary: #647F99;
    /* 使用者指定的主題色 */
    --primary-hover: #4d667d;
    /* 稍暗的 hover 顏色 */
    --secondary: #f1f5f9;
    --secondary-hover: #e2e8f0;

    --accent-cyan: #3b82f6;
    /* Adjusted to match Google Maps style blue */
    --accent-purple: #7c3aed;
    /* Adjusted to Naviking purple */
    --accent-gold: linear-gradient(135deg, #fbbf24, #d97706);

    /* Text */
    --text-main: #0f172a;
    --text-muted: #64748b;

    /* Borders & UI */
    --border-light: rgba(15, 23, 42, 0.1);
    --gold-border: rgba(251, 191, 36, 0.6);

    /* Layout */
    --container-width: 1200px;
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;

    /* Animations */
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    overflow-x: hidden;
    width: 100%;
    position: relative;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
    width: 100%;
    /* Ensure container stays within parent on narrow screens */
}

/* =========================================
   Typography & Utilities
========================================= */
h1,
h2,
h3,
h4 {
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.text-center {
    text-align: center;
}

.justify-center {
    justify-content: center;
}

.w-100 {
    width: 100%;
}

.relative-z {
    position: relative;
    z-index: 10;
}

.highlight {
    background: linear-gradient(135deg, var(--primary), var(--accent-purple));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.gradient-text {
    background: var(--accent-gold);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Background Glowing Orbs */
.bg-glow {
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.15;
    z-index: 0;
    pointer-events: none;
}

.bg-glow-1 {
    top: -100px;
    left: -200px;
    background: var(--primary);
    animation: breathe 8s ease-in-out infinite alternate;
}

.bg-glow-2 {
    bottom: 20%;
    right: -100px;
    background: var(--accent-purple);
    animation: breathe 10s ease-in-out infinite alternate-reverse;
}

.bg-glow-3 {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--accent-cyan);
    opacity: 0.1;
    animation: breathe 12s ease-in-out infinite alternate;
}

@keyframes breathe {
    0% {
        transform: scale(0.9) translate(0, 0);
        opacity: 0.1;
    }

    100% {
        transform: scale(1.2) translate(30px, -20px);
        opacity: 0.25;
    }
}

/* Glassmorphism */
.glass-card {
    background: var(--bg-card);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    transition: var(--transition);
}

/* =========================================
   Buttons
========================================= */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 100px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    outline: none;
}

.btn-large {
    padding: 16px 32px;
    font-size: 1.125rem;
}

.btn-primary {
    background: var(--primary);
    color: #ffffff;
    font-weight: 700;
    position: relative;
    overflow: hidden;
}

.btn-primary:hover {
    background: #e69500;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.4);
}

.btn-primary::after,
.btn-gold::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(to right, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.4) 50%, rgba(255, 255, 255, 0) 100%);
    transform: skewX(-25deg);
    /* 每 4 秒掃掠一次 */
    animation: shineSweepLoop 4s linear infinite;
    z-index: 10;
}

.btn-primary:hover::after,
.btn-gold:hover::after {
    /* 滑鼠懸停時固定發出一道較快的光澤 */
    animation: shineSweep 1s ease-out;
}

@keyframes shineSweep {
    0% {
        left: -100%;
    }

    100% {
        left: 200%;
    }
}

@keyframes shineSweepLoop {
    0% {
        left: -100%;
    }

    20% {
        left: 200%;
    }

    100% {
        left: 200%;
    }
}

.btn-secondary {
    background: var(--secondary);
    color: #ffffff;
    border: 1px solid var(--border-light);
}

.btn-secondary:hover {
    background: var(--secondary-hover);
    transform: translateY(-2px);
}

.btn-gold {
    background: var(--accent-gold);
    color: #111;
    box-shadow: 0 4px 14px rgba(251, 191, 36, 0.3);
}

.btn-gold:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(251, 191, 36, 0.5);
}

/* =========================================
   Navigation
========================================= */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px 0;
    z-index: 100;
    transition: var(--transition);
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    padding: 16px 0;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.03);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.25rem;
    font-weight: 800;
    letter-spacing: -0.05em;
}

.logo-text {
    font-family: 'Fredoka', 'Nunito', sans-serif;
    color: var(--text-main);
    font-weight: 500;
    /* 降低字體粗細，讓它看起來更清爽圓潤 */
}

.logo-number {
    font-size: 1.35em;
    color: var(--primary);
    margin: 0 2px;
    display: inline-block;
    vertical-align: middle;
    transform: translateY(-1px);
    font-weight: 600;
    /* 數字可以稍微粗一點點作為強調，但也不要到 800 */
}

.brand-logo {
    height: 36px;
    width: auto;
    object-fit: contain;
}

.logo-icon {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, var(--primary), #fb923c);
    border-radius: 8px;
    position: relative;
}

.logo-icon::after {
    content: '';
    position: absolute;
    width: 12px;
    height: 12px;
    background: white;
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.nav-links {
    display: flex;
    gap: 32px;
}

.nav-links a {
    color: var(--text-muted);
    font-weight: 500;
    transition: var(--transition);
}

.nav-links a:hover {
    color: var(--text-main);
}

/* =========================================
   Hero Section
========================================= */
.hero {
    position: relative;
    padding-top: 180px;
    padding-bottom: 100px;
    overflow: hidden;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
    position: relative;
    z-index: 10;
}

.hero-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-right: 20px;
}

.badge {
    display: inline-flex;
    align-items: center;
    align-self: flex-start;
    padding: 8px 18px;
    background: rgba(100, 127, 153, 0.1);
    color: var(--primary);
    border: 1px solid var(--border-light);
    border-radius: 100px;
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 32px;
    letter-spacing: 0.5px;
}

.badge i {
    margin-right: 6px;
}

.hero-title {
    font-size: 4.5rem;
    line-height: 1.15;
    margin-bottom: 32px;
    font-weight: 900;
    letter-spacing: -0.5px;
    color: #0f172a;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 48px;
    line-height: 1.8;
    max-width: 540px;
}

.hero-actions {
    display: flex;
    gap: 16px;
    margin-bottom: 56px;
}

.trust-indicators {
    display: flex;
    align-items: center;
    gap: 16px;
}

.avatars {
    display: flex;
}

.avatars img {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 3px solid var(--bg-dark);
    margin-left: -16px;
    object-fit: cover;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.avatars img:first-child {
    margin-left: 0;
}

.trust-indicators span {
    font-size: 1rem;
    color: var(--text-muted);
}

.trust-indicators strong {
    color: var(--text-main);
    font-weight: 800;
}

.stats {
    display: flex;
    gap: 40px;
    border-top: 1px solid var(--border-light);
    padding-top: 32px;
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-value {
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-main);
}

.stat-label {
    color: var(--text-muted);
    font-size: 0.875rem;
}

/* Hero UI Mockup (Modern Flagship Style) */
.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    perspective: 1200px;
}

.phone-mockup {
    width: 304px;
    height: 640px;
    border-radius: 28px;
    padding: 8px;
    /* 金屬邊框厚度 */
    position: relative;
    background: linear-gradient(135deg, #52525b 0%, #27272a 20%, #18181b 80%, #3f3f46 100%);
    box-shadow:
        0 20px 40px rgba(0, 0, 0, 0.2),
        inset 0 0 0 1px rgba(255, 255, 255, 0.1),
        0 0 0 1px rgba(0, 0, 0, 0.8);
    animation: floatPhoneBox 6s ease-in-out infinite;
    z-index: 10;
}

@keyframes floatPhoneBox {
    0% {
        transform: translateY(0px);
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2), 0 20px 80px rgba(100, 127, 153, 0.15);
    }

    50% {
        transform: translateY(-16px);
        box-shadow: 0 35px 50px rgba(0, 0, 0, 0.1), 0 30px 100px rgba(100, 127, 153, 0.4);
    }

    100% {
        transform: translateY(0px);
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2), 0 20px 80px rgba(100, 127, 153, 0.15);
    }
}

.phone-mockup::before {
    /* 側邊按鈕 (Power / Volume) */
    content: '';
    position: absolute;
    right: -3px;
    top: 150px;
    width: 3px;
    height: 45px;
    background: #52525b;
    border-radius: 0 3px 3px 0;
    box-shadow: 0 70px 0 0 #52525b;
}

/* 挖孔螢幕 */
.phone-notch {
    position: absolute;
    top: 14px;
    left: 50%;
    transform: translateX(-50%);
    width: 14px;
    height: 14px;
    background: #0b0b0b;
    border-radius: 50%;
    z-index: 20;
    box-shadow: inset 0 -1px 3px rgba(255, 255, 255, 0.2);
}

.phone-screen {
    width: 100%;
    height: 100%;
    position: relative;
    background: #000;
    overflow: hidden;
    display: flex;
    justify-content: center;
    border-radius: 20px;
}

/* 螢幕玻璃反光特效 */
.phone-screen::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0) 45%);
    pointer-events: none;
    z-index: 30;
}

.app-screenshot {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    border-radius: 20px;
}

.app-map {
    position: absolute;
    inset: 0;
    display: none;
    mix-blend-mode: screen;
    /* 讓光效和底圖自然融合 */
    pointer-events: none;
    /* 讓滑鼠事件穿透到下方的截圖 */
}

.route-line {
    position: absolute;
    top: 38%;
    left: 20%;
    width: 32%;
    height: 38%;
    border: 5px solid rgba(59, 130, 246, 0.5);
    /* 導航藍色 */
    border-radius: 30px;
    border-bottom: none;
    border-left: none;
    box-shadow: 0 0 15px rgba(59, 130, 246, 0.4);
    overflow: hidden;
}

/* 路線動態流動光效 */
.route-line::before {
    content: '';
    position: absolute;
    top: -5px;
    right: 0;
    width: 40%;
    height: 100%;
    border-top: 5px solid #fff;
    border-right: 5px solid #fff;
    filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.9));
    animation: routeFlow 2.5s linear infinite;
    opacity: 0.9;
}

@keyframes routeFlow {
    0% {
        transform: translateY(100%);
        opacity: 0;
    }

    10% {
        opacity: 1;
    }

    50% {
        transform: translateY(0) translateX(0);
    }

    90% {
        opacity: 1;
    }

    100% {
        transform: translateY(0) translateX(-100%);
        opacity: 0;
    }
}

.node {
    position: absolute;
    width: 18px;
    height: 18px;
    background: white;
    border-radius: 50%;
    box-shadow: 0 0 0 4px #0f172a, 0 0 10px rgba(0, 0, 0, 0.15);
    z-index: 5;
}

.node-start {
    top: calc(76% - 9px);
    left: calc(20% - 9px);
    box-shadow: 0 0 0 4px var(--primary), 0 0 10px rgba(0, 0, 0, 0.15);
}

.node-stop {
    top: calc(38% - 9px);
    left: calc(20% - 9px);
    background: var(--accent-gold);
    box-shadow: 0 0 0 3px #fff, 0 0 10px rgba(251, 191, 36, 0.5);
}

.node-end {
    top: calc(38% - 9px);
    left: calc(52% - 9px);
    box-shadow: 0 0 0 4px var(--accent-cyan);
}

.pulsar {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    background: var(--primary);
    border-radius: 50%;
    z-index: -1;
    animation: pulse 2s infinite cubic-bezier(0.2, 0.8, 0.2, 1);
}

.station-icon {
    position: absolute;
    width: 36px;
    height: 36px;
    background: white;
    border: 2px solid var(--accent-cyan);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-cyan);
    font-size: 14px;
    top: 50%;
    left: 55%;
    box-shadow: 0 4px 15px rgba(6, 182, 212, 0.4);
    z-index: 6;
}

.bottom-panel {
    position: absolute;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    width: 92%;
    padding: 16px;
    border-radius: 16px;
    z-index: 10;
}

.eta-info h3 {
    font-size: 1.1rem;
    margin-bottom: 4px;
}

.eta-time {
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 16px;
}

/* =========================================
   Bento Box Features Section
========================================= */
.features {
    padding: 100px 0;
    position: relative;
    background: #fff;
}

.section-header {
    text-align: center;
    margin-bottom: 64px;
}

.section-header p {
    color: var(--text-muted);
    font-size: 1.125rem;
    max-width: 600px;
    margin: 0 auto;
}

.bento-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, minmax(280px, auto));
    gap: 24px;
    margin-top: 40px;
}

/* Base Card Styles */
.bento-card {
    border-radius: 32px;
    padding: 40px;
    position: relative;
    overflow: hidden;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease;
    border: 1px solid rgba(255, 255, 255, 0.5);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.bento-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 60%;
    height: 100%;
    /* 加強反光亮度與寬度 */
    background: linear-gradient(to right, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.8) 50%, rgba(255, 255, 255, 0) 100%);
    transform: skewX(-25deg);
    transition: all 0.6s ease-out;
    /* 加快掃過速度 */
    z-index: 10;
    pointer-events: none;
}

.bento-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.08);
}

.bento-card:hover::after {
    left: 200%;
}

.feature-content {
    position: relative;
    z-index: 2;
}

/* Grid Assignments */
.card-span-2 {
    grid-column: span 2;
    padding-bottom: 40px;
}

.card-span-2 h3 {
    font-size: 2rem;
}

.card-span-2 p {
    font-size: 1.125rem;
    max-width: 90%;
}

.card-span-1 {
    grid-column: span 1;
}

/* Color Themes (Subtle but vibrant backgrounds) */
.bg-primary-soft {
    background: linear-gradient(135deg, rgba(100, 127, 153, 0.1) 0%, rgba(100, 127, 153, 0.02) 100%);
    box-shadow: 0 10px 30px rgba(100, 127, 153, 0.05);
}

.bg-cyan-soft {
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.08) 0%, rgba(6, 182, 212, 0.01) 100%);
    box-shadow: 0 10px 30px rgba(6, 182, 212, 0.03);
}

.bg-purple-soft {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.08) 0%, rgba(139, 92, 246, 0.01) 100%);
    box-shadow: 0 10px 30px rgba(139, 92, 246, 0.03);
}

.bg-gradient-soft {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.05) 0%, rgba(249, 115, 22, 0.05) 100%);
}


/* Common Typography for Cards */
.bento-card h3 {
    font-size: 1.5rem;
    margin-bottom: 16px;
    font-family: 'Outfit', sans-serif;
    color: #1e293b;
    font-weight: 700;
}

.bento-card p {
    color: #475569;
    line-height: 1.7;
    font-size: 1rem;
}

/* Feature Icons */
.feature-icon {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    background: var(--primary);
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    margin-bottom: 24px;
    box-shadow: 0 10px 20px rgba(100, 127, 153, 0.2);
}

/* Specific colors for icons based on background */
.bg-cyan-soft .feature-icon {
    background: #06b6d4;
    box-shadow: 0 10px 20px rgba(6, 182, 212, 0.2);
}

.bg-purple-soft .feature-icon {
    background: #8b5cf6;
    box-shadow: 0 10px 20px rgba(139, 92, 246, 0.2);
}

.bg-gradient-soft .feature-icon {
    background: linear-gradient(135deg, #ef4444, #f97316);
    box-shadow: 0 10px 20px rgba(249, 115, 22, 0.2);
}

/* =========================================
   Showcase Section
========================================= */
.showcase {
    padding: 60px 0 120px;
    background: var(--bg-dark);
}

.showcase-grid {
    display: flex;
    flex-direction: column;
    gap: 100px;
}

.showcase-item {
    display: flex;
    align-items: center;
    gap: 64px;
}

.showcase-item.reverse {
    flex-direction: row-reverse;
}

.showcase-text {
    flex: 1;
}

.showcase-text h3 {
    font-size: 2rem;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 16px;
}

.retro-icon {
    color: var(--primary);
    font-size: 1.5rem;
    background: rgba(100, 127, 153, 0.1);
    padding: 12px;
    border-radius: 12px;
}

.showcase-text p {
    font-size: 1.125rem;
    color: var(--text-muted);
    line-height: 1.8;
}

.showcase-img-container {
    flex: 1;
    position: relative;
    display: flex;
    justify-content: center;
}

/* Showcase Z Fold 7 Cover Screen Style Images */
.showcase-img {
    width: 50%;
    /* 寬度稍微縮小 */
    max-width: 260px;
    /* 限制最大寬度以體現修長比例 */
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    border: 8px solid #27272a;
    /* 金屬邊框稍微改細一點點 */
    transition: transform 0.3s ease;
    background: #18181b;
}

.showcase-img:hover {
    transform: translateY(-10px);
}

.double-img {
    position: relative;
    height: 700px;
    /* Taller to accommodate S25 aspect ratio */
    width: 100%;
}

.double-img .showcase-img {
    position: absolute;
}

.double-img .back {
    top: 0;
    right: 20%;
    transform: scale(0.9) rotate(5deg);
    z-index: 1;
    opacity: 0.8;
}

.double-img .front {
    bottom: 0;
    left: 20%;
    transform: scale(1) rotate(-2deg);
    z-index: 2;
}

.double-img:hover .back {
    transform: scale(0.95) rotate(10deg) translateX(20px);
    opacity: 1;
}

.double-img:hover .front {
    transform: scale(1.05) rotate(-5deg);
}


/* =========================================
   Pro Subscription
========================================= */
.pro-section {
    padding: 60px 0 120px;
}

.pro-container {
    padding: 64px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
    border: 1px solid var(--gold-border);
    position: relative;
    overflow: hidden;
}

.pro-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at right, rgba(251, 191, 36, 0.05), transparent 50%);
    pointer-events: none;
}

.pro-content p {
    color: var(--text-muted);
    font-size: 1.125rem;
    margin-bottom: 32px;
}

.pro-benefits {
    margin-bottom: 40px;
}

.pro-benefits li {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    font-size: 1.125rem;
}

.pro-benefits i {
    color: #fbbf24;
}

/* Card Visual */
.pro-card-visual {
    perspective: 1000px;
    display: flex;
    justify-content: center;
}

.membership-card {
    width: 100%;
    max-width: 400px;
    height: 240px;
    border-radius: 24px;
    /* 會員卡改為金色漸層底色與深色文字 */
    background: linear-gradient(135deg, #fbbf24, #f59e0b, #d97706);
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 30px;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15), inset 0 0 80px rgba(255, 255, 255, 0.2);
    transform: rotateY(-15deg) rotateX(10deg);
    transition: transform 0.5s ease;
}

.membership-card:hover {
    transform: rotateY(0deg) rotateX(0deg);
}

.membership-card::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 24px;
    background: linear-gradient(135deg, transparent 40%, rgba(255, 255, 255, 0.4) 50%, transparent 60%);
    background-size: 200% 200%;
    animation: shine 4s infinite linear;
    pointer-events: none;
}

.card-logo {
    /* 與頁首頁尾一致的字體與粗細設定 */
    font-family: 'Fredoka', 'Nunito', sans-serif;
    font-size: 1.5rem;
    font-weight: 600;
    color: #1e293b;
    /* 深灰色 */
    letter-spacing: -0.05em;
    /* 收攏字距以配合微胖字體 */
}

.card-logo .highlight-num {
    font-weight: 700;
    font-size: 1.1em;
}

.card-chip {
    width: 48px;
    height: 38px;
    border-radius: 6px;
    /* 金屬光澤漸層底色 */
    background: linear-gradient(-135deg, #d4af37 0%, #ffd700 20%, #b8860b 50%, #fadb5f 80%, #daa520 100%);
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.4), inset 0 1px 3px rgba(255, 255, 255, 0.5);
    border: 1px solid rgba(0, 0, 0, 0.3);
}

/* 晶片上的刻線紋路 */
.card-chip::before {
    content: '';
    position: absolute;
    inset: 4px;
    /* 留出外框邊緣 */
    border: 1px solid rgba(0, 0, 0, 0.3);
    border-radius: 4px;
    /* 利用重複的線性漸層畫出分割線 */
    background:
        linear-gradient(90deg, transparent 48%, rgba(0, 0, 0, 0.3) 49%, transparent 51%),
        linear-gradient(0deg, transparent 20%, rgba(0, 0, 0, 0.3) 21%, transparent 22%, transparent 78%, rgba(0, 0, 0, 0.3) 79%, transparent 80%);
}

/* 中間的感應橢圓刻紋 */
.card-chip::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 12px;
    border: 1px solid rgba(0, 0, 0, 0.3);
    border-radius: 10px;
    /* 藥丸形狀 */
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), transparent);
}

.card-number {
    font-size: 1.5rem;
    font-family: monospace;
    letter-spacing: 4px;
    color: #1f2937;
    /* 深灰色數字 */
    text-shadow: 0 1px 1px rgba(255, 255, 255, 0.5);
    /* 微微的白底陰影增加雕刻立體感 */
}

.card-details {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.card-name {
    font-size: 0.875rem;
    color: #374151;
    /* 中深灰色 */
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 600;
}

.card-tier {
    font-size: 1.25rem;
    font-weight: 700;
    color: #ffffff;
    /* 白色，在金底上很亮眼 */
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

/* =========================================
   CTA End Section
========================================= */
.cta-section {
    padding: 120px 0;
    position: relative;
    overflow: hidden;
}

.cta-section h2 {
    font-size: 3rem;
    margin-bottom: 24px;
}

.cta-section p {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 48px;
}

/* =========================================
   Footer
========================================= */
footer {
    border-top: 1px solid var(--border-light);
    padding: 80px 0 40px;
    background: rgba(255, 255, 255, 0.6);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    margin-bottom: 64px;
}

.slogan-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    margin-top: 16px;
    flex-wrap: wrap;
    width: 100%;
}

.footer-brand {
    width: 100%;
}

.footer-brand p {
    color: var(--text-muted);
    max-width: 400px;
    margin-top: 0;
}

.footer-links {
    display: flex;
    gap: 80px;
}

.link-group h4 {
    margin-bottom: 24px;
    font-size: 1.125rem;
}

.link-group a {
    display: block;
    color: var(--text-muted);
    margin-bottom: 12px;
    transition: var(--transition);
}

.link-group a:hover {
    color: var(--primary);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 32px;
    border-top: 1px solid var(--border-light);
    color: var(--text-muted);
}

.footer-text {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.legal-links {
    display: flex;
    gap: 24px;
}

.legal-links a {
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition);
}

.legal-links a:hover {
    color: var(--text-main);
    text-decoration: underline;
}

.social-links {
    display: flex;
    gap: 16px;
}

.social-links a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--bg-card);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border-light);
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

/* =========================================
   Animations & Keyframes
========================================= */
@keyframes pulse {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.8;
    }

    100% {
        transform: translate(-50%, -50%) scale(3);
        opacity: 0;
    }
}

@keyframes shine {
    0% {
        background-position: 200% center;
    }

    100% {
        background-position: -200% center;
    }
}

/* =========================================
   Responsive Design
========================================= */
@media (max-width: 968px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .badge {
        align-self: center;
    }

    .hero-subtitle {
        margin: 0 auto 40px;
    }

    .stats {
        justify-content: center;
    }

    .hero-actions {
        justify-content: center;
    }

    .hero-visual {
        padding-top: 40px;
    }

    .bento-grid {
        grid-template-columns: 1fr;
    }

    .card-span-2,
    .card-span-1 {
        grid-column: span 1;
        grid-row: auto;
    }

    .card-span-2 {
        padding-bottom: 40px;
    }

    .showcase-grid {
        gap: 80px;
        /* 增加每個功能區塊之間的間距 */
    }

    .showcase-item {
        flex-direction: column;
        gap: 32px;
        text-align: center;
    }

    /* 在手機版確保都是「先圖片後文字」的一致性 */
    .showcase-item.reverse {
        flex-direction: column-reverse;
    }

    .showcase-text h3 {
        justify-content: center;
    }

    /* Ensure showcase images and containers fit within mobile width */
    .showcase-img-container {
        width: 100%;
        margin-bottom: 24px;
        height: auto;
    }

    .showcase-img {
        width: 100%;
        max-width: 280px;
        border-width: 6px;
    }

    .double-img {
        height: auto;
        min-height: 500px;
        margin-bottom: 40px;
        position: relative;
    }

    .double-img .back {
        top: 0;
        right: 10%;
        transform: scale(0.9) rotate(4deg);
    }

    .double-img .front {
        bottom: 0;
        left: 10%;
        transform: scale(1) rotate(-2deg);
    }

    .double-img:hover .back {
        transform: scale(0.95) rotate(6deg) translateX(10px);
    }

    .double-img:hover .front {
        transform: scale(1.05) rotate(-3deg);
    }

    .pro-container {
        grid-template-columns: 1fr;
        padding: 40px 24px;
    }

    .footer-content {
        flex-direction: column;
        gap: 48px;
    }
}

@media (max-width: 768px) {
    h2 {
        font-size: 2rem;
    }

    .hero-title {
        font-size: 2.75rem;
        margin-bottom: 24px;
    }

    .nav-links {
        display: none;
    }

    .nav-container {
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 100%;
        max-width: 100%;
        margin: 0;
        padding: 0 16px;
        overflow: hidden;
        /* Strict overflow control for header */
    }

    .navbar {
        max-width: 100vw;
        overflow: hidden;
    }

    .logo {
        gap: 8px;
        flex: 0 1 auto;
        min-width: 0;
    }

    .logo-text {
        font-size: 1.15rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        font-weight: 700;
    }

    .brand-logo {
        height: 32px;
    }

    .hero-actions {
        flex-direction: column;
    }

    .btn-large {
        width: 100%;
    }

    /* 針對手機縮小 Hero 手機框，維持 1080:2520 比例 */
    .phone-mockup {
        width: 250px;
        height: 528px;
        /* 250 * 2.11 (基於螢幕比例調整後的整體比例) */
        border-radius: 20px;
        padding: 6px;
    }

    .node {
        width: 14px;
        height: 14px;
    }

    .node-start {
        top: calc(25% - 7px);
        left: calc(20% - 7px);
    }

    .node-stop {
        top: calc(70% - 7px);
        left: calc(20% - 7px);
    }

    .node-end {
        top: calc(25% - 7px);
        left: calc(80% - 7px);
    }

    .route-line {
        border-width: 3px;
    }

    .station-icon {
        width: 28px;
        height: 28px;
        font-size: 11px;
    }

    .bottom-panel {
        width: 88%;
        padding: 12px;
        border-radius: 12px;
    }

    .double-img {
        height: 620px;
    }

    /* 讓手機版 Header 上的下載按鈕縮小成只有圖示，避免擠爆 Logo 斷行 */
    .nav-cta {
        width: 40px;
        height: 40px;
        min-width: 40px;
        padding: 0;
        border-radius: 50%;
        font-size: 0;
        position: relative;
        flex-shrink: 0;
        display: block;
        /* Use block context instead of flex for absolute centering */
        background: var(--primary);
        color: white;
    }

    .nav-cta::before {
        content: "\f3ab";
        font-family: "Font Awesome 6 Brands";
        font-weight: 400;
        font-size: 1.25rem;
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(calc(-50% + 1px), -50%);
        /* Exact vertical center, +1px visual compensation horizontally */
        line-height: 1;
    }

    .mobile-menu-btn {
        display: flex;
        margin-left: auto;
        margin-right: 12px;
        flex-shrink: 0;
        width: 44px;
        height: 44px;
        color: var(--text-main);
    }

    /* Additional adjustment for very narrow screens */
    @media (max-width: 360px) {
        .logo-text {
            font-size: 1rem;
        }

        .logo-number {
            font-size: 1.1em;
        }
    }
}

/* =========================================
   Mobile Menu & Scroll Spy
========================================= */
.mobile-menu-btn {
    display: none;
    background: transparent;
    border: none;
    color: var(--text-main);
    font-size: 1.5rem;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    padding: 8px;
    transition: var(--transition);
}

.mobile-menu-btn:hover {
    color: var(--primary);
}

/* Mobile Menu Overlay overlay layout */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(16px);
    z-index: 99;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-20px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.mobile-nav-links {
    display: flex;
    flex-direction: column;
    gap: 32px;
    text-align: center;
    font-size: 1.5rem;
    font-weight: 700;
}

.mobile-nav-links a {
    color: var(--text-main);
    transition: var(--transition);
}

.mobile-nav-links a:hover,
.mobile-nav-links a.active {
    color: var(--primary);
}

/* ScrollSpy Active Link */
.nav-links a.active {
    color: var(--primary);
    position: relative;
}

.nav-links a.active::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--primary);
    border-radius: 2px;
    animation: slideIn 0.3s ease-out forwards;
}

@keyframes slideIn {
    from {
        width: 0;
    }

    to {
        width: 100%;
    }
}

/* =========================================
   FAQ Section
========================================= */
.faq-section {
    padding: 80px 0;
    background: var(--bg-dark);
}

.faq-accordion {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.faq-item {
    background: #ffffff;
    border: 1px solid var(--border-light);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item:hover {
    background: #fdfdfd;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
}

.faq-question {
    width: 100%;
    padding: 24px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: transparent;
    border: none;
    color: var(--text-main);
    font-size: 1.125rem;
    font-weight: 600;
    cursor: pointer;
    text-align: left;
    outline: none;
}

.faq-question i {
    color: var(--primary);
    transition: transform 0.3s ease;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
    background: var(--secondary);
}

.faq-answer p {
    padding: 8px 40px 32px 40px;
    color: var(--text-muted);
    line-height: 1.8;
    margin: 0;
}

.faq-item.active {
    border-color: var(--primary);
    box-shadow: 0 6px 24px rgba(100, 127, 153, 0.12);
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

/* =========================================
   Custom Scrollbar
========================================= */
::-webkit-scrollbar {
    width: 8px;
    /* 細緻的捲動軸寬度 */
}

::-webkit-scrollbar-track {
    background: #0f172a;
    /* 深藍黑色軌道 */
}

::-webkit-scrollbar-thumb {
    background: #334155;
    /* 預設深色扳手 */
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #475569;
    /* hover 時稍微轉亮 */
}

/* =========================================
   Forms
========================================= */
.form-group {
    margin-bottom: 24px;
    text-align: left;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-main);
}

.form-control {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-sm);
    background: #fff;
    color: var(--text-main);
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(100, 127, 153, 0.2);
}

textarea.form-control {
    resize: vertical;
    min-height: 120px;
}