/* ========================================
   PathFill Website Styles
   Modern, Premium Design with Aurora Theme
   ======================================== */

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

:root {
    /* Color Palette */
    --primary-blue: #007AFF;
    --primary-purple: #AF52DE;
    --primary-teal: #00D1FF;
    --aurora-start: #1a1a3e;
    --aurora-mid: #2d1b4e;
    --aurora-end: #0d1b2a;
    --accent-gold: #FFD700;
    --accent-orange: #FF9500;
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.7);
    --text-muted: rgba(255, 255, 255, 0.5);
    --glass-bg: rgba(255, 255, 255, 0.08);
    --glass-border: rgba(255, 255, 255, 0.15);

    /* Spacing */
    --container-padding: 20px;
    --section-padding: 100px;

    /* Typography */
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    background: linear-gradient(135deg, var(--aurora-start) 0%, var(--aurora-mid) 50%, var(--aurora-end) 100%);
    background-attachment: fixed;
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

/* ========================================
   Language Switcher
   ======================================== */
.lang-switcher {
    position: fixed;
    bottom: 20px;
    left: 20px;
    z-index: 1000;
    display: flex;
    gap: 8px;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 25px;
    padding: 5px;
}

.lang-btn {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 600;
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    transition: var(--transition-fast);
}

.lang-btn:hover {
    color: var(--text-primary);
}

.lang-btn.active {
    background: var(--primary-blue);
    color: white;
}

/* ========================================
   Navigation
   ======================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 900;
    padding: 15px 0;
    background: rgba(13, 27, 42, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--container-padding);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--text-primary);
}

.logo-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    object-fit: contain;
}

.logo-text {
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 35px;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    font-size: 15px;
    transition: var(--transition-fast);
}

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

.mobile-menu-btn {
    display: none;
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-size: 24px;
    cursor: pointer;
}

/* ========================================
   Hero Section
   ======================================== */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 120px 20px 60px;
    position: relative;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(ellipse at 20% 20%, rgba(0, 209, 255, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 80%, rgba(175, 82, 222, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 50%, rgba(0, 122, 255, 0.1) 0%, transparent 60%);
    animation: auroraMove 15s ease-in-out infinite;
}

@keyframes auroraMove {

    0%,
    100% {
        transform: scale(1) rotate(0deg);
    }

    50% {
        transform: scale(1.1) rotate(5deg);
    }
}

.hero-content {
    position: relative;
    z-index: 1;
}

.app-icon {
    width: 140px;
    height: 140px;
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-purple));
    border-radius: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 40px;
    box-shadow:
        0 20px 60px rgba(0, 122, 255, 0.4),
        0 0 100px rgba(175, 82, 222, 0.3);
    animation: float 6s ease-in-out infinite;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-15px);
    }
}

.app-icon-inner {
    width: 100%;
    height: 100%;
    border-radius: 32px;
    object-fit: cover;
}

.hero-title {
    font-size: clamp(48px, 10vw, 80px);
    font-weight: 900;
    letter-spacing: -2px;
    margin-bottom: 10px;
    background: linear-gradient(135deg, #fff 0%, rgba(255, 255, 255, 0.8) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 20px;
    font-weight: 600;
    color: var(--primary-teal);
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 25px;
}

.hero-description {
    font-size: 18px;
    color: var(--text-secondary);
    max-width: 500px;
    margin: 0 auto 40px;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 60px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 32px;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition-normal);
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-purple));
    color: white;
    box-shadow: 0 10px 40px rgba(0, 122, 255, 0.4);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 50px rgba(0, 122, 255, 0.5);
}

.btn-secondary {
    background: var(--glass-bg);
    color: var(--text-primary);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-3px);
}

.btn-icon {
    font-size: 20px;
}

/* Hero Stats */
.hero-stats {
    display: flex;
    gap: 60px;
    justify-content: center;
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 36px;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary-teal), var(--primary-blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    font-size: 14px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
}

.scroll-indicator span {
    font-size: 24px;
    color: var(--text-muted);
}

@keyframes bounce {

    0%,
    100% {
        transform: translateX(-50%) translateY(0);
    }

    50% {
        transform: translateX(-50%) translateY(10px);
    }
}

/* ========================================
   How to Play Section
   ======================================== */
.how-to-play {
    padding: var(--section-padding) 0;
}

.section-title {
    font-size: clamp(32px, 5vw, 48px);
    font-weight: 800;
    text-align: center;
    margin-bottom: 60px;
    letter-spacing: -1px;
}

.section-title.light {
    color: white;
}

.rules-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.rule-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 40px 30px;
    text-align: center;
    transition: var(--transition-normal);
}

.rule-card:hover {
    transform: translateY(-8px);
    background: rgba(255, 255, 255, 0.12);
}

.rule-icon {
    font-size: 48px;
    margin-bottom: 20px;
}

.rule-card h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 15px;
}

.rule-card p {
    color: var(--text-secondary);
    font-size: 15px;
}

/* ========================================
   Features Section
   ======================================== */
.features {
    padding: var(--section-padding) 0;
    background: linear-gradient(180deg, transparent 0%, rgba(0, 122, 255, 0.05) 50%, transparent 100%);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 25px;
}

.feature-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 35px 25px;
    transition: var(--transition-normal);
}

.feature-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.25);
}

.feature-icon {
    font-size: 40px;
    margin-bottom: 20px;
}

.feature-card h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 12px;
}

.feature-card p {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.7;
}

/* ========================================
   Screenshots Section
   ======================================== */
.screenshots {
    padding: var(--section-padding) 0;
}

.screenshots-placeholder {
    text-align: center;
}

.phone-mockup {
    width: 280px;
    height: 560px;
    background: #1a1a1a;
    border-radius: 40px;
    padding: 12px;
    margin: 0 auto 30px;
    box-shadow:
        0 30px 80px rgba(0, 0, 0, 0.5),
        inset 0 0 0 3px #333;
}

.phone-screen {
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, var(--aurora-start), var(--aurora-end));
    border-radius: 30px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mock-game {
    padding: 20px;
    width: 100%;
}

.mock-header {
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 30px;
    text-align: center;
}

.mock-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    max-width: 200px;
    margin: 0 auto;
}

.mock-cell {
    aspect-ratio: 1;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 16px;
}

.mock-cell.num {
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-purple));
    color: white;
}

.mock-cell.path {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.mock-cell.wall {
    background: #333;
}

.screenshots-note {
    color: var(--text-muted);
    font-style: italic;
}

/* ========================================
   Download Section
   ======================================== */
.download {
    padding: var(--section-padding) 0;
    text-align: center;
    background: linear-gradient(180deg, transparent 0%, rgba(175, 82, 222, 0.1) 50%, transparent 100%);
}

.download-subtitle {
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: 40px;
}

.app-store-badge {
    display: inline-block;
    transition: var(--transition-normal);
}

.app-store-badge:hover {
    transform: scale(1.05);
}

.app-store-badge img {
    height: 60px;
}

.requirements {
    margin-top: 30px;
    color: var(--text-muted);
    font-size: 14px;
}

/* ========================================
   Footer
   ======================================== */
.footer {
    padding: 60px 0 30px;
    border-top: 1px solid var(--glass-border);
}

.footer-content {
    text-align: center;
}

.footer-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 30px;
}

.footer-logo .logo-icon {
    font-size: 24px;
}

.footer-logo .logo-text {
    font-size: 20px;
    font-weight: 700;
}

.footer-links {
    display: flex;
    gap: 30px;
    justify-content: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    transition: var(--transition-fast);
}

.footer-links a:hover {
    color: var(--text-primary);
}

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

/* ========================================
   Legal Pages (Privacy, Terms, Support)
   ======================================== */
.legal-page {
    background: linear-gradient(135deg, var(--aurora-start) 0%, var(--aurora-end) 100%);
}

.legal-content {
    padding: 140px 0 80px;
}

.page-title {
    font-size: clamp(36px, 6vw, 56px);
    font-weight: 800;
    margin-bottom: 15px;
    text-align: center;
}

.last-updated {
    text-align: center;
    color: var(--text-muted);
    margin-bottom: 60px;
}

.lang-content {
    display: none;
}

.lang-content.active {
    display: block;
}

.legal-section {
    margin-bottom: 40px;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 35px;
}

.legal-section h2 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--primary-teal);
}

.legal-section h3 {
    font-size: 17px;
    font-weight: 600;
    margin: 25px 0 12px;
}

.legal-section p {
    color: var(--text-secondary);
    margin-bottom: 15px;
    line-height: 1.8;
}

.legal-section ul {
    margin: 15px 0 15px 25px;
    color: var(--text-secondary);
}

.legal-section li {
    margin-bottom: 10px;
    line-height: 1.7;
}

.legal-section a {
    color: var(--primary-blue);
    text-decoration: none;
}

.legal-section a:hover {
    text-decoration: underline;
}

.contact-email {
    font-size: 18px;
    margin-top: 10px;
}

.contact-email a {
    color: var(--primary-teal);
    font-weight: 600;
}

/* ========================================
   Support Page Specific
   ======================================== */
.support-hero {
    text-align: center;
    margin-bottom: 60px;
}

.support-icon {
    font-size: 64px;
    margin-bottom: 20px;
}

.support-hero h2 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 15px;
}

.support-hero p {
    color: var(--text-secondary);
    font-size: 18px;
}

.faq-section {
    margin-bottom: 60px;
}

.faq-section h2 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 30px;
    text-align: center;
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.faq-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 25px;
    transition: var(--transition-normal);
}

.faq-card:hover {
    background: rgba(255, 255, 255, 0.1);
}

.faq-card h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 12px;
}

.faq-card p {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.7;
}

.contact-section {
    text-align: center;
    margin-bottom: 60px;
}

.contact-section h2 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 15px;
}

.contact-section>p {
    color: var(--text-secondary);
    margin-bottom: 30px;
}

.contact-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 40px;
    max-width: 400px;
    margin: 0 auto 20px;
}

.contact-icon {
    font-size: 48px;
    margin-bottom: 20px;
}

.contact-card h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 10px;
}

.contact-card>p {
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.response-note {
    background: rgba(0, 122, 255, 0.1);
    border: 1px solid rgba(0, 122, 255, 0.3);
    border-radius: 12px;
    padding: 15px 20px;
    max-width: 500px;
    margin: 0 auto;
}

.response-note p {
    color: var(--text-secondary);
    font-size: 14px;
    margin: 0;
}

.feedback-section {
    text-align: center;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 50px 30px;
}

.feedback-section h2 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 15px;
}

.feedback-section p {
    color: var(--text-secondary);
    margin-bottom: 25px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

/* 手機外框容器 */
.phone-mockup {
    position: relative;
    width: 300px; /* 您可以根據需要調整顯示寬度 */
    aspect-ratio: 1080 / 1920; /* 鎖定 9:16 比例 */
    margin: 40px auto;
    border: 12px solid #222; /* 深色手機邊框 */
    border-radius: 40px;
    background: #000;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

/* 影片內容 */
.promo-video {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: fill; /* 因為比例一致，使用 fill 或 cover 都能完美貼合 */
    border-radius: 28px; /* 稍微小於外框圓角，增加層次感 */
}

/* ========================================
   Responsive Design
   ======================================== */
@media (max-width: 768px) {
    :root {
        --section-padding: 60px;
    }

    .lang-switcher {
        top: 80px;
        right: 15px;
        bottom: auto;
        left: auto;
    }

    .nav-links {
        display: none;
    }

    .mobile-menu-btn {
        display: block;
    }

    .hero {
        padding: 100px 20px 40px;
    }

    .app-icon {
        width: 100px;
        height: 100px;
        border-radius: 24px;
    }

    .app-icon-inner {
        font-size: 50px;
    }

    .hero-stats {
        gap: 30px;
    }

    .stat-number {
        font-size: 28px;
    }

    .rules-grid,
    .features-grid,
    .faq-grid {
        grid-template-columns: 1fr;
    }

    .legal-section {
        padding: 25px 20px;
    }

    .footer-links {
        gap: 20px;
    }
}

@media (max-width: 480px) {
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }

    .phone-mockup {
        width: 240px;
        height: 480px;
    }
}
