/* ========================================
   Pulse Official Website - Artistic Style
   ======================================== */

/* Custom Font Declaration */
@font-face {
    font-family: '也字工厂世无双行楷';
    src: url('也字工厂世无双行楷.TTF') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

/* CSS Variables */
/* CSS Variables */
:root {
    --primary: #D0BCFF;
    --primary-dark: #9A82DB;
    --secondary: #CCC2DC;
    --background: #0a0a0f;
    --surface: #1a1a24;
    --surface-light: #2a2a38;
    --text: #ffffff;
    --text-muted: rgba(255, 255, 255, 0.6);
    --gradient-1: linear-gradient(135deg, #D0BCFF 0%, #9A82DB 50%, #6750A4 100%);
    --gradient-2: linear-gradient(135deg, #81C784 0%, #4FC3F7 100%);
    --glow: 0 0 60px rgba(208, 188, 255, 0.3);

    /* Font Families */
    --font-heading: '也字工厂世无双行楷', 'Cinzel', serif;
    --font-subheading: '也字工厂世无双行楷', 'Playfair Display', serif;
    --font-body: 'Montserrat', sans-serif;
    --font-accent: '也字工厂世无双行楷', 'Oswald', sans-serif;
    --font-tech: 'Space Grotesk', sans-serif;
}

[data-theme="light"] {
    --primary: #6750A4;
    --primary-dark: #21005D;
    --secondary: #625B71;
    --background: #FDF8FD;
    --surface: #F3EDF7;
    --surface-light: #E7E0EC;
    --text: #1C1B1F;
    --text-muted: rgba(28, 27, 31, 0.6);
    --gradient-1: linear-gradient(135deg, #6750A4 0%, #9A82DB 100%);
    --glow: 0 0 30px rgba(103, 80, 164, 0.15);
}

/* Reset & Base */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scrollbar-width: none;
}

body {
    font-family: var(--font-body);
    background: var(--background);
    color: var(--text);
    overflow-x: hidden;
    line-height: 1.6;
    transition: background 0.5s ease, color 0.5s ease;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    letter-spacing: 0.5px;
}

.logo,
.hero-title,
.section-title {
    font-family: var(--font-heading);
    letter-spacing: 1px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.feature-title {
    font-family: var(--font-subheading);
    font-style: italic;
    letter-spacing: 0.3px;
    font-size: 24px;
    position: relative;
    display: inline-block;
}

.feature-title::before {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--primary);
    transition: width 0.3s ease;
}

.feature-card:hover .feature-title::before {
    width: 100%;
}

.nav-link,
.btn {
    font-family: var(--font-accent);
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.app-title,
.download-title {
    font-family: var(--font-tech);
    letter-spacing: 0.8px;
}

body::-webkit-scrollbar {
    display: none;
}

/* Cursor Glow Effect */
.cursor-glow {
    position: fixed;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(208, 188, 255, 0.15) 0%, transparent 70%);
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: opacity 0.3s;
    opacity: 0;
}

body:hover .cursor-glow {
    opacity: 1;
}

/* Floating Particles */
.particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--primary);
    border-radius: 50%;
    opacity: 0.3;
    animation: float 15s infinite ease-in-out;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(100vh) rotate(0deg);
        opacity: 0;
    }

    10% {
        opacity: 0.3;
    }

    90% {
        opacity: 0.3;
    }

    100% {
        transform: translateY(-100vh) rotate(720deg);
        opacity: 0;
    }
}

/* ========================================
   Navigation
   ======================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    padding: 20px 60px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    background: linear-gradient(180deg, rgba(10, 10, 15, 0.9) 0%, transparent 100%);
    backdrop-filter: blur(10px);
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 24px;
    font-weight: 700;
    position: relative;
}

.logo-text {
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
}

.logo-text::after {
    content: attr(data-text);
    position: absolute;
    left: 0;
    top: 0;
    z-index: -1;
    background: linear-gradient(45deg, var(--primary), var(--primary-dark));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    opacity: 0.3;
    filter: blur(5px);
    transform: scale(1.05);
}


.logo-img {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    /* Slightly rounded corners */
    object-fit: cover;
}

/* Remove old emoji animation or keep if useful, but here we replace it */
.logo-icon {
    display: none;
}


.nav-links {
    display: flex;
    gap: 40px;
    align-items: center;
}

.nav-link {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s, transform 0.3s;
    position: relative;
    overflow: hidden;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-1);
    transition: width 0.3s;
}

.nav-link:hover {
    color: var(--text);
    transform: translateY(-2px);
}

.nav-link:hover::after {
    width: 100%;
}

.nav-cta {
    background: var(--gradient-1);
    color: #1a1a24 !important;
    padding: 10px 24px;
    border-radius: 100px;
    font-weight: 600;
}

.nav-cta::after {
    display: none;
}

.nav-cta:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: var(--glow);
}

/* ========================================
   Hero Section
   ======================================== */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 120px 60px 60px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 30% 20%, rgba(208, 188, 255, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 70% 80%, rgba(129, 199, 132, 0.05) 0%, transparent 40%);
    animation: heroGlow 10s infinite alternate ease-in-out;
}

@keyframes heroGlow {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(10deg);
    }
}

.hero-content {
    text-align: center;
    z-index: 10;
    max-width: 800px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(208, 188, 255, 0.1);
    border: 1px solid rgba(208, 188, 255, 0.2);
    padding: 8px 20px;
    border-radius: 100px;
    font-size: 14px;
    color: var(--primary);
    margin-bottom: 32px;
    animation: fadeInUp 0.8s ease-out;
}

.badge-dot {
    width: 8px;
    height: 8px;
    background: var(--primary);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

.hero-title {
    font-size: clamp(48px, 8vw, 80px);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 24px;
    position: relative;
}

.hero-title .title-line {
    display: block;
    animation: fadeInUp 0.8s ease-out;
    animation-fill-mode: both;
    position: relative;
}

.hero-title .title-line::after {
    content: attr(data-text);
    position: absolute;
    left: 0;
    top: 0;
    z-index: -1;
    background: linear-gradient(45deg, var(--primary), var(--primary-dark));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    opacity: 0.3;
    filter: blur(8px);
    transform: scale(1.05);
}

.title-line:nth-child(1) {
    animation-delay: 0.2s;
}

.title-line:nth-child(2) {
    animation-delay: 0.4s;
}

.gradient-text {
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 18px;
    color: var(--text-muted);
    margin-bottom: 40px;
    animation: fadeInUp 0.8s ease-out 0.6s both;
}

.hero-cta {
    display: flex;
    gap: 16px;
    justify-content: center;
    animation: fadeInUp 0.8s ease-out 0.8s both;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 16px 32px;
    border-radius: 100px;
    font-weight: 600;
    font-size: 16px;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: var(--gradient-1);
    color: #1a1a24;
    box-shadow: 0 4px 20px rgba(208, 188, 255, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 40px rgba(208, 188, 255, 0.4);
}

.btn-secondary {
    background: transparent;
    color: var(--text);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-3px);
}

.btn-icon {
    font-size: 20px;
    animation: bounce 2s infinite;
}

@keyframes bounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-4px);
    }
}

/* Phone Mockup */
.phone-mockup {
    position: relative;
    margin-top: 60px;
    z-index: 10;
    animation: fadeInUp 1s ease-out 1s both;
}

.phone-frame {
    width: 300px;
    height: 620px;
    background: linear-gradient(145deg, #3a3a48 0%, #1f1f2a 100%);
    border-radius: 48px;
    padding: 8px;
    box-shadow:
        0 50px 100px rgba(0, 0, 0, 0.6),
        0 0 0 1px rgba(255, 255, 255, 0.05),
        inset 0 1px 1px rgba(255, 255, 255, 0.1);
    position: relative;
    animation: phoneFloat 6s infinite ease-in-out;
}

@keyframes phoneFloat {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

    50% {
        transform: translateY(-15px) rotate(0.5deg);
    }
}

.phone-notch {
    width: 100px;
    height: 24px;
    background: #1a1a24;
    border-radius: 0 0 16px 16px;
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 20;
}

.phone-screen {
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, #1C1B1F 0%, #2B2930 100%);
    border-radius: 30px;
    padding: 60px 20px 20px;
    overflow: hidden;
}

.app-header {
    margin-bottom: 20px;
}

.app-title {
    display: block;
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 4px;
    font-family: var(--font-tech);
    letter-spacing: 0.8px;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.app-subtitle {
    font-size: 13px;
    color: var(--text-muted);
    font-family: var(--font-body);
    font-style: italic;
}

.goal-name {
    font-size: 14px;
    font-weight: 500;
    font-family: var(--font-accent);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.goal-streak {
    font-size: 11px;
    color: var(--text-muted);
    font-family: var(--font-body);
    font-style: italic;
}

.goal-cards {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.goal-card {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 16px;
    border-left: 4px solid var(--card-color);
    animation: cardSlide 0.5s ease-out both;
}

.goal-card:nth-child(1) {
    animation-delay: 1.2s;
}

.goal-card:nth-child(2) {
    animation-delay: 1.4s;
}

.goal-card:nth-child(3) {
    animation-delay: 1.6s;
}

@keyframes cardSlide {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.goal-icon {
    font-size: 24px;
}

.goal-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.goal-name {
    font-size: 14px;
    font-weight: 500;
}

.goal-streak {
    font-size: 11px;
    color: var(--text-muted);
}

.goal-check {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.3);
}

.goal-check.checked {
    background: var(--primary);
    border-color: var(--primary);
    color: #1a1a24;
}

.phone-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 400px;
    height: 400px;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle, rgba(208, 188, 255, 0.2) 0%, transparent 70%);
    z-index: -1;
    animation: glowPulse 4s infinite ease-in-out;
}

@keyframes glowPulse {

    0%,
    100% {
        opacity: 0.5;
        transform: translate(-50%, -50%) scale(1);
    }

    50% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1.2);
    }
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    color: var(--text-muted);
    font-size: 12px;
    animation: fadeIn 1s ease-out 2s both;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.scroll-mouse {
    width: 24px;
    height: 40px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    position: relative;
}

.scroll-wheel {
    width: 4px;
    height: 8px;
    background: var(--primary);
    border-radius: 2px;
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    animation: scrollWheel 2s infinite;
}

@keyframes scrollWheel {

    0%,
    100% {
        transform: translateX(-50%) translateY(0);
        opacity: 1;
    }

    50% {
        transform: translateX(-50%) translateY(10px);
        opacity: 0.3;
    }
}

/* ========================================
   Features Section
   ======================================== */
.features {
    padding: 120px 60px;
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: 80px;
}

.section-tag {
    display: inline-block;
    background: rgba(208, 188, 255, 0.1);
    color: var(--primary);
    padding: 8px 16px;
    border-radius: 100px;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 16px;
}

.section-title {
    font-size: clamp(36px, 5vw, 56px);
    font-weight: 700;
    margin-bottom: 16px;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: var(--gradient-1);
    border-radius: 2px;
}

.section-desc {
    font-size: 18px;
    color: var(--text-muted);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.feature-card {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.02) 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    padding: 40px;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

.feature-card:hover {
    transform: translateY(-10px);
    border-color: rgba(208, 188, 255, 0.3);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.feature-card:hover .feature-glow {
    opacity: 1;
}

.feature-glow {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 50% 0%, rgba(208, 188, 255, 0.1) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.4s;
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient-1);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    position: relative;
    z-index: 1;
}

.feature-icon svg {
    width: 28px;
    height: 28px;
    stroke: #1a1a24;
}

.feature-title {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 12px;
    position: relative;
    z-index: 1;
}

.feature-desc {
    color: var(--text-muted);
    font-size: 15px;
    line-height: 1.7;
    position: relative;
    z-index: 1;
}

/* ========================================
   Showcase Section
   ======================================== */
.showcase {
    padding: 120px 60px;
    background: linear-gradient(180deg, transparent 0%, rgba(208, 188, 255, 0.03) 50%, transparent 100%);
}

.showcase-carousel {
    max-width: 1000px;
    margin: 0 auto;
    overflow: hidden;
}

.carousel-track {
    display: flex;
    gap: 40px;
    justify-content: center;
    flex-wrap: wrap;
}

.showcase-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.showcase-screen {
    width: 200px;
    height: 400px;
    background: linear-gradient(180deg, #1C1B1F 0%, #2B2930 100%);
    border-radius: 24px;
    padding: 20px 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.showcase-card:hover .showcase-screen {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5), 0 0 40px rgba(208, 188, 255, 0.2);
}

.showcase-label {
    font-size: 14px;
    color: var(--text-muted);
    font-weight: 500;
}

.mock-header {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.mock-goal {
    height: 50px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    margin-bottom: 10px;
}

.mock-calendar {
    height: 120px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    margin-bottom: 16px;
}

.mock-chart {
    height: 80px;
    background: linear-gradient(90deg, rgba(208, 188, 255, 0.3) 0%, rgba(129, 199, 132, 0.3) 100%);
    border-radius: 12px;
}

.mock-option {
    height: 40px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    margin-bottom: 10px;
}

/* ========================================
   Download Section
   ======================================== */
.download {
    padding: 120px 60px;
    position: relative;
    overflow: hidden;
}

.download-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
}

.download-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    animation: orbFloat 8s infinite ease-in-out;
}

.orb-1 {
    width: 400px;
    height: 400px;
    background: rgba(208, 188, 255, 0.2);
    top: -100px;
    left: -100px;
}

.orb-2 {
    width: 300px;
    height: 300px;
    background: rgba(129, 199, 132, 0.15);
    bottom: -100px;
    right: -100px;
    animation-delay: 2s;
}

.orb-3 {
    width: 200px;
    height: 200px;
    background: rgba(79, 195, 247, 0.15);
    top: 50%;
    left: 50%;
    animation-delay: 4s;
}

@keyframes orbFloat {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    50% {
        transform: translate(30px, -30px) scale(1.1);
    }
}

.download-content {
    position: relative;
    z-index: 10;
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.download-title {
    font-size: clamp(36px, 5vw, 56px);
    font-weight: 700;
    margin-bottom: 16px;
    font-family: var(--font-tech);
    letter-spacing: 0.8px;
    position: relative;
    display: inline-block;
}

.download-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: var(--gradient-1);
    border-radius: 2px;
}

.download-btn-label {
    display: block;
    font-size: 16px;
    font-weight: 600;
    font-family: var(--font-accent);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.download-desc {
    font-size: 18px;
    color: var(--text-muted);
    margin-bottom: 40px;
}

.download-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 32px;
}

.download-btn {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 32px;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 16px;
    text-decoration: none;
    color: var(--text);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.download-btn:hover {
    transform: translateY(-5px) scale(1.02);
    border-color: var(--primary);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3), 0 0 30px rgba(208, 188, 255, 0.2);
}

.download-btn-icon {
    width: 48px;
    height: 48px;
    background: var(--gradient-1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.download-btn-icon svg {
    width: 24px;
    height: 24px;
    fill: #1a1a24;
}

.download-btn-text {
    text-align: left;
}

.download-btn-label {
    display: block;
    font-size: 16px;
    font-weight: 600;
}

.download-btn-size {
    display: block;
    font-size: 13px;
    color: var(--text-muted);
}

.download-note {
    color: var(--text-muted);
    font-size: 14px;
}

/* ========================================
   Footer
   ======================================== */
.footer {
    padding: 60px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-content {
    max-width: 400px;
    margin: 0 auto;
    text-align: center;
}

.footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 8px;
}

.footer-tagline {
    color: var(--text-muted);
    font-size: 14px;
    margin-bottom: 24px;
}

.footer-divider {
    width: 60px;
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
    margin: 0 auto 24px;
}

.footer-copyright {
    color: rgba(255, 255, 255, 0.3);
    font-size: 13px;
}

/* ========================================
   Responsive Design
   ======================================== */
@media (max-width: 768px) {
    .navbar {
        padding: 16px 24px;
    }

    .nav-links {
        gap: 20px;
    }

    .hero {
        padding: 100px 24px 60px;
    }

    .hero-cta {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 100%;
        justify-content: center;
        max-width: 280px;
    }

    .phone-frame {
        width: 240px;
        height: 500px;
    }

    .features,
    .showcase,
    .download {
        padding: 80px 24px;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .carousel-track {
        flex-direction: column;
        align-items: center;
    }

    .download-btn {
        padding: 14px 24px;
    }

    .footer {
        padding: 40px 24px;
    }
}

@media (max-width: 480px) {
    .nav-links {
        display: none;
    }

    .hero-title {
        font-size: 36px;
    }

    .hero-subtitle {
        font-size: 15px;
    }

    .phone-frame {
        width: 220px;
        height: 460px;
    }

    .section-title {
        font-size: 32px;
    }

    .feature-card {
        padding: 30px;
    }

    .showcase-screen {
        width: 180px;
        height: 360px;
    }
}

/* ========================================
   Scroll Animations
   ======================================== */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.reveal-delay-1 {
    transition-delay: 0.1s;
}

.reveal-delay-2 {
    transition-delay: 0.2s;
}

.reveal-delay-3 {
    transition-delay: 0.3s;
}

.reveal-delay-4 {
    transition-delay: 0.4s;
}

/* Theme Toggle Button */
.theme-toggle {
    background: transparent;
    border: none;
    cursor: pointer;
    color: var(--text);
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
    width: 40px;
    height: 40px;
}

.theme-toggle:hover {
    background: rgba(255, 255, 255, 0.1);
}

[data-theme="light"] .theme-toggle:hover {
    background: rgba(0, 0, 0, 0.05);
}

.theme-toggle svg {
    width: 20px;
    height: 20px;
    transition: transform 0.5s ease, opacity 0.5s ease;
}

.icon-moon {
    display: none;
}

[data-theme="light"] .icon-sun {
    display: none;
}

[data-theme="light"] .icon-moon {
    display: block;
}

[data-theme="light"] .logo-icon {
    animation: none;
    /* Disable pulse in light mode for cleaner look or adjust if needed */
}

/* Phone Mockup Light Mode Adjustments */
[data-theme="light"] .phone-frame {
    background: linear-gradient(145deg, #E7E0EC 0%, #D0BCFF 100%);
    box-shadow: 0 25px 80px rgba(103, 80, 164, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

[data-theme="light"] .phone-notch {
    background: #1C1B1F;
    /* Keep notch dark essentially */
}

[data-theme="light"] .phone-screen-container {
    background: #FDF8FD;
}

[data-theme="light"] .app-title {
    color: #1C1B1F;
}

[data-theme="light"] .mock-navbar {
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .nav-tab.active {
    color: var(--primary);
}

[data-theme="light"] .goal-card,
[data-theme="light"] .mini-calendar,
[data-theme="light"] .stat-card,
[data-theme="light"] .setting-item {
    background: #FFFFFF;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

[data-theme="light"] .feature-card,
[data-theme="light"] .tech-category {
    background: #FFFFFF;
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

[data-theme="light"] .feature-card:hover,
[data-theme="light"] .tech-category:hover {
    box-shadow: 0 15px 40px rgba(103, 80, 164, 0.15);
    border-color: var(--primary);
}

[data-theme="light"] .navbar {
    background: rgba(253, 248, 253, 0.9);
}

/* ========================================
   Phone Screen Container & Swipeable Pages
   ======================================== */
.phone-screen-container {
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, #1C1B1F 0%, #2B2930 100%);
    border-radius: 30px;
    overflow: hidden;
    position: relative;
}

.page-indicators {
    position: absolute;
    top: 48px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
    z-index: 20;
}

.page-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: all 0.3s;
}

.page-dot.active {
    width: 20px;
    border-radius: 3px;
    background: var(--primary);
}

.phone-pages {
    display: flex;
    width: 300%;
    height: 100%;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.phone-page {
    width: calc(100% / 3);
    height: 100%;
    padding: 60px 16px 16px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
}

.swipe-hint {
    position: absolute;
    bottom: 8px;
    left: 0;
    right: 0;
    text-align: center;
    font-size: 10px;
    color: rgba(255, 255, 255, 0.4);
    animation: swipeHint 2s infinite;
}

@keyframes swipeHint {

    0%,
    100% {
        opacity: 0.4;
    }

    50% {
        opacity: 0.8;
    }
}

/* Mock Navbar */
.mock-navbar {
    display: flex;
    justify-content: space-around;
    padding: 10px 0;
    margin-top: auto;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 10px;
}

.nav-tab {
    opacity: 0.5;
    transition: opacity 0.3s;
}

.nav-tab.active {
    opacity: 1;
    color: var(--primary);
}

/* Stats Page Content */
.stats-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.stats-selector {
    display: flex;
    gap: 8px;
}

.stats-btn {
    padding: 6px 12px;
    background: rgba(208, 188, 255, 0.2);
    border-radius: 20px;
    font-size: 11px;
    color: var(--primary);
}

.mini-calendar {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 12px;
}

.calendar-header {
    font-size: 12px;
    font-weight: 600;
    text-align: center;
    margin-bottom: 10px;
    color: var(--text-muted);
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
    font-size: 9px;
    text-align: center;
}

.cal-day {
    color: var(--text-muted);
    padding: 4px;
}

.cal-num {
    padding: 4px;
    border-radius: 50%;
}

.cal-num.checked {
    background: rgba(129, 199, 132, 0.3);
    color: #81C784;
}

.cal-num.today {
    background: var(--primary);
    color: #1a1a24;
    font-weight: 600;
}

.stats-cards {
    display: flex;
    gap: 10px;
}

.stat-card {
    flex: 1;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 12px;
    text-align: center;
}

.stat-value {
    display: block;
    font-size: 20px;
    font-weight: 700;
    color: var(--primary);
}

.stat-label {
    font-size: 10px;
    color: var(--text-muted);
}

/* Settings Page Content */
.settings-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.setting-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    font-size: 12px;
}

.setting-icon {
    font-size: 16px;
}

.setting-label {
    flex: 1;
}

.setting-value {
    color: var(--text-muted);
    font-size: 11px;
}

.setting-toggle {
    width: 32px;
    height: 18px;
    border-radius: 9px;
    background: rgba(255, 255, 255, 0.2);
    position: relative;
}

.setting-toggle::after {
    content: '';
    position: absolute;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: white;
    top: 2px;
    left: 2px;
    transition: left 0.2s;
}

.setting-toggle.on {
    background: var(--primary);
}

.setting-toggle.on::after {
    left: 16px;
}

.setting-colors {
    display: flex;
    gap: 4px;
}

.setting-colors i {
    width: 14px;
    height: 14px;
    border-radius: 50%;
}

/* Feature List */
.feature-list {
    list-style: none;
    margin-top: 16px;
    padding: 0;
    position: relative;
    z-index: 1;
}

.feature-list li {
    font-size: 13px;
    color: var(--text-muted);
    padding: 6px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.feature-list li:last-child {
    border-bottom: none;
}

/* ========================================
   Tech Stack Section
   ======================================== */
.tech-stack {
    padding: 120px 60px;
    background: linear-gradient(180deg, rgba(208, 188, 255, 0.02) 0%, transparent 50%, rgba(129, 199, 132, 0.02) 100%);
}

.tech-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.tech-category {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.02) 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    padding: 32px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.tech-category:hover {
    transform: translateY(-5px);
    border-color: rgba(208, 188, 255, 0.2);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}

.tech-category-title {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.tech-icon {
    font-size: 24px;
}

.tech-items {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.tech-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.tech-name {
    font-size: 15px;
    font-weight: 600;
    color: var(--primary);
}

.tech-desc {
    font-size: 13px;
    color: var(--text-muted);
}

/* ========================================
   Responsive Updates
   ======================================== */
@media (max-width: 768px) {
    .tech-stack {
        padding: 80px 24px;
    }

    .tech-grid {
        grid-template-columns: 1fr;
    }

    .phone-frame {
        width: 260px;
        height: 540px;
    }
}

@media (max-width: 480px) {
    .phone-frame {
        width: 240px;
        height: 500px;
    }
}

/* ========================================
   Guide Section
   ======================================== */
.guide {
    padding: 100px 60px;
    background: linear-gradient(180deg, var(--background) 0%, rgba(208, 188, 255, 0.05) 50%, var(--background) 100%);
    position: relative;
}

.guide-steps {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 60px;
    flex-wrap: wrap;
}

.guide-step {
    flex: 1;
    min-width: 280px;
    max-width: 360px;
    position: relative;
    padding: 30px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    transition: transform 0.3s, box-shadow 0.3s;
}

.guide-step:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(208, 188, 255, 0.3);
}

.step-number {
    position: absolute;
    top: -20px;
    left: 30px;
    font-size: 60px;
    font-weight: 700;
    font-family: var(--font-accent);
    color: transparent;
    -webkit-text-stroke: 2px var(--primary);
    opacity: 0.3;
    z-index: 0;
}

.guide-content {
    position: relative;
    z-index: 1;
}

.step-icon {
    font-size: 40px;
    margin-bottom: 20px;
    display: inline-block;
    padding: 16px;
    background: rgba(208, 188, 255, 0.1);
    border-radius: 20px;
    color: var(--primary);
}

.step-title {
    font-size: 24px;
    margin-bottom: 12px;
    font-family: '也字工厂世无双行楷', serif;
}

.step-desc {
    color: var(--text-muted);
    font-size: 15px;
    line-height: 1.7;
    font-family: '也字工厂世无双行楷', serif;
}

@media (max-width: 768px) {
    .guide-steps {
        flex-direction: column;
        align-items: center;
    }
}

/* Screenshot Images in Phone Mockup */
.phone-screen-container {
    width: 100%;
    height: 100%;
    border-radius: 40px;
    overflow: hidden;
    position: relative;
    background: #1C1B1F;
}

.phone-pages {
    width: 100%;
    height: 100%;
}

.phone-page {
    width: 100%;
    height: 100%;
    border-radius: 40px;
    overflow: hidden;
}

.screenshot-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 40px;
    display: block;
}

.page-indicators {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 30;
    display: flex;
    gap: 8px;
}

.page-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: all 0.3s;
}

.page-dot.active {
    background: var(--primary);
    width: 24px;
    border-radius: 4px;
}

.swipe-hint {
    position: absolute;
    bottom: 50px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 12px;
    color: rgba(255, 255, 255, 0.4);
    z-index: 30;
}

/* ========================================
   Floating Screenshot Gallery
   ======================================== */
.screenshot-gallery {
    position: relative;
    margin-top: 60px;
    z-index: 10;
    perspective: 1500px;
    animation: fadeInUp 1s ease-out 1s both;
}

.gallery-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    position: relative;
}

.gallery-card {
    position: relative;
    width: 220px;
    border-radius: 24px;
    overflow: hidden;
    box-shadow:
        0 30px 60px rgba(0, 0, 0, 0.4),
        0 0 0 1px rgba(255, 255, 255, 0.05);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

.gallery-card-left {
    transform: rotateY(15deg) rotateX(5deg) translateZ(-50px);
    opacity: 0.85;
}

.gallery-card-center {
    transform: rotateY(0deg) translateZ(50px) scale(1.1);
    z-index: 10;
}

.gallery-card-right {
    transform: rotateY(-15deg) rotateX(5deg) translateZ(-50px);
    opacity: 0.85;
}

.gallery-card:hover {
    transform: rotateY(0deg) rotateX(0deg) translateZ(80px) scale(1.15);
    opacity: 1;
    z-index: 20;
    box-shadow:
        0 50px 100px rgba(0, 0, 0, 0.5),
        0 0 30px rgba(208, 188, 255, 0.2),
        0 0 0 1px rgba(208, 188, 255, 0.3);
}

.gallery-img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 24px;
}

.gallery-label {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px 16px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: white;
    font-size: 14px;
    font-weight: 600;
    font-family: '也字工厂世无双行楷', serif;
    text-align: center;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s;
}

.gallery-card:hover .gallery-label {
    opacity: 1;
    transform: translateY(0);
}

.gallery-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 600px;
    height: 400px;
    transform: translate(-50%, -50%);
    background: radial-gradient(ellipse, rgba(208, 188, 255, 0.15) 0%, transparent 70%);
    z-index: -1;
    animation: glowPulse 4s infinite ease-in-out;
}

@media (max-width: 768px) {
    .gallery-container {
        flex-direction: column;
        gap: 20px;
    }

    .gallery-card {
        width: 260px;
    }

    .gallery-card-left,
    .gallery-card-center,
    .gallery-card-right {
        transform: none;
        opacity: 1;
    }

    .gallery-card:hover {
        transform: scale(1.05);
    }
}

/* ========================================
   Comprehensive Mobile Responsive Styles
   ======================================== */

/* Tablet - 1024px and below */
@media (max-width: 1024px) {
    .hero {
        padding: 100px 40px 60px;
    }

    .features {
        padding: 80px 40px;
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .navbar {
        padding: 16px 30px;
    }

    .nav-links {
        gap: 24px;
    }
}

/* Mobile Large - 768px and below */
@media (max-width: 768px) {

    /* Navigation */
    .navbar {
        padding: 12px 20px;
        flex-wrap: wrap;
        gap: 16px;
    }

    .nav-links {
        gap: 16px;
        width: 100%;
        justify-content: center;
        order: 2;
    }

    .nav-link {
        font-size: 12px;
    }

    .nav-cta {
        padding: 8px 16px;
        font-size: 12px;
    }

    .theme-toggle {
        width: 36px;
        height: 36px;
    }

    /* Hero Section */
    .hero {
        padding: 80px 20px 40px;
        min-height: auto;
    }

    .hero-content {
        max-width: 100%;
    }

    .hero-title {
        font-size: clamp(32px, 8vw, 48px);
    }

    .hero-subtitle {
        font-size: 14px;
        margin-bottom: 24px;
    }

    .hero-badge {
        font-size: 12px;
        padding: 6px 14px;
        margin-bottom: 20px;
    }

    .hero-cta {
        flex-direction: column;
        gap: 12px;
    }

    .btn {
        padding: 12px 24px;
        font-size: 14px;
        width: 100%;
        justify-content: center;
    }

    /* Screenshot Gallery */
    .screenshot-gallery {
        margin-top: 40px;
    }

    .gallery-container {
        flex-direction: column;
        gap: 20px;
    }

    .gallery-card {
        width: 80%;
        max-width: 280px;
    }

    .gallery-card-left,
    .gallery-card-center,
    .gallery-card-right {
        transform: none;
        opacity: 1;
    }

    .gallery-card:hover {
        transform: scale(1.03);
    }

    .gallery-label {
        opacity: 1;
        transform: translateY(0);
    }

    /* Features Section */
    .features {
        padding: 60px 20px;
    }

    .section-header {
        margin-bottom: 40px;
    }

    .section-title {
        font-size: clamp(28px, 6vw, 40px);
    }

    .section-desc {
        font-size: 14px;
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .feature-card {
        padding: 24px;
    }

    .feature-title {
        font-size: 20px;
    }

    .feature-desc {
        font-size: 13px;
    }

    /* Guide Section */
    .guide {
        padding: 60px 20px;
    }

    .guide-steps {
        flex-direction: column;
        gap: 24px;
        margin-top: 40px;
    }

    .guide-step {
        min-width: auto;
        max-width: 100%;
        padding: 24px;
    }

    .step-number {
        font-size: 48px;
        top: -16px;
        left: 20px;
    }

    .step-icon {
        font-size: 32px;
        padding: 12px;
    }

    .step-title {
        font-size: 20px;
    }

    .step-desc {
        font-size: 13px;
    }

    /* Tech Stack Section */
    .tech-stack {
        padding: 60px 20px;
    }

    .tech-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .tech-category {
        padding: 24px;
    }

    .tech-category-title {
        font-size: 16px;
    }

    /* Showcase Section */
    .showcase {
        padding: 60px 20px;
    }

    .showcase-carousel {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .carousel-track {
        gap: 16px;
    }

    .showcase-card {
        min-width: 220px;
    }

    /* Download Section */
    .download {
        padding: 60px 20px;
    }

    .download-title {
        font-size: 28px;
    }

    .download-desc {
        font-size: 14px;
    }

    .download-btn {
        flex-direction: column;
        padding: 16px;
        text-align: center;
    }

    .download-btn-icon {
        margin-bottom: 8px;
    }

    /* Footer */
    .footer {
        padding: 40px 20px;
    }

    .footer-content {
        text-align: center;
    }

    /* Scroll Indicator */
    .scroll-indicator {
        bottom: 20px;
        font-size: 10px;
    }

    .scroll-mouse {
        width: 20px;
        height: 32px;
    }
}

/* Mobile Small - 480px and below */
@media (max-width: 480px) {
    .navbar {
        padding: 10px 16px;
    }

    .logo {
        font-size: 18px;
    }

    .logo-img {
        width: 28px;
        height: 28px;
    }

    .hero-title {
        font-size: 28px;
    }

    .hero-subtitle {
        font-size: 13px;
    }

    .gallery-card {
        width: 90%;
    }

    .feature-card {
        padding: 20px;
    }

    .feature-list li {
        font-size: 12px;
    }

    .guide-step {
        padding: 20px;
    }

    .download-buttons {
        width: 100%;
    }

    .download-btn {
        width: 100%;
    }
}

/* Hide particles on mobile for performance */
@media (max-width: 768px) {
    .particles {
        display: none;
    }

    .cursor-glow {
        display: none;
    }
}