:root {
    --primary: #3b82f6;
    --success: #10b981;
    --warning: #f59e0b;
    --dark: #111827;
}

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

body {
    font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    overflow-x: hidden;
    scroll-behavior: auto;
}

/* Navigation */
.landing-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    padding: 1rem 0;
    transition: all 0.3s ease;
    opacity: 0.95;
}

.landing-nav.hidden {
    transform: translateY(-100%);
}

.nav-brand {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
    margin: 0;
    padding: 0;
    align-items: center;
}

.nav-links a {
    color: var(--dark);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

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

/* Full viewport sections */
.viewport-section {
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    padding: clamp(4rem, 8vh, 6rem) 0 clamp(2rem, 4vh, 3rem);
    scroll-snap-align: start;
}

.scroll-container {
    height: 100vh;
    height: 100dvh;
    overflow-y: scroll;
    scroll-snap-type: y mandatory;
    scroll-behavior: smooth;
}

/* Content styling */
.section-content {
    position: relative;
    z-index: 1;
    max-width: 1100px;
    width: 100%;
    text-align: center;
    animation: fadeInUp 1s ease;
}

/* Footer */
.landing-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1001;
    background: white;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    padding: 0.6rem 0;
    font-size: 0.875rem;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.05);
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.landing-footer.show {
    transform: translateY(0);
}

.footer-content {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.copyright {
    color: #6b7280;
    font-weight: 500;
}

#beian {
    color: #6b7280;
    font-size: 0.7rem;
    font-weight: 400;
}
#beian a {
    color: #6b7280;
    text-decoration: none;
}

/* Adjust scroll container to account for footer */
.scroll-container {
    height: 100vh;
}

@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }

    .footer-links {
        gap: 1rem;
    }

    .landing-footer {
        padding: 0.75rem 0;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Scroll indicator */
.scroll-indicator {
    position: absolute;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    color: #0e6ee4;
    text-decoration: none;
    cursor: pointer;
    animation: bounce 2s infinite;
    z-index: 10;
    opacity: 0.7;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
    40% { transform: translateX(-50%) translateY(-8px); }
    60% { transform: translateX(-50%) translateY(-4px); }
}

.scroll-indicator i {
    font-size: 1.5rem;
}

.scroll-indicator span {
    font-size: 0.7rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

/* Progress indicator */
.progress-indicator {
    position: fixed;
    right: 2rem;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.progress-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: all 0.3s ease;
}

.progress-dot.active {
    background: white;
    transform: scale(1.5);
}

/* Responsive */
@media (max-width: 768px) {
    .section-title {
        font-size: 2.5rem;
    }

    .section-description {
        font-size: 1.2rem;
    }

    .section-icon {
        font-size: 3.5rem;
    }

    .nav-links {
        gap: 1rem;
    }

    .progress-indicator {
        display: none;
    }
}

/* Blog Section - CodePen/Codrops Showcase */
.section-blog {
    background: radial-gradient(circle at 30% 50%, rgba(88, 28, 135, 0.15) 0%, transparent 50%),
                radial-gradient(circle at 70% 50%, rgba(219, 39, 119, 0.12) 0%, transparent 50%),
                #0d0d0d;
    position: relative;
    overflow: hidden;
}

.section-blog::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    opacity: 0.5;
}

.blog-container {
    max-width: 1100px;
    width: 100%;
    position: relative;
    z-index: 1;
}

.code-window {
    background: rgba(20, 20, 20, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.window-header {
    background: rgba(30, 30, 30, 0.8);
    padding: 0.875rem 1.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.window-dots {
    display: flex;
    gap: 0.5rem;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #444;
}

.dot.close { background: #ff5f57; }
.dot.minimize { background: #febc2e; }
.dot.maximize { background: #28c840; }

.window-title {
    font-family: 'Fira Code', monospace;
    font-size: clamp(0.75rem, 1.8vw, 0.8125rem);
    color: #888;
}

.window-body {
    padding: clamp(2.5rem, 6vw, 4rem);
}

.code-line {
    font-family: 'Fira Code', monospace;
    font-size: clamp(0.75rem, 1.8vw, 0.875rem);
    color: #666;
    margin-bottom: clamp(1rem, 2vh, 1.5rem);
}

.code-comment {
    color: #888;
}

.code-keyword {
    color: #ea4c89;
}

.code-string {
    color: #0ea5e9;
}

.section-blog h1 {
    font-size: clamp(3.5rem, 11vw, 6rem);
    font-weight: 800;
    color: #ffffff;
    line-height: 1.05;
    margin-bottom: clamp(1.5rem, 3vh, 2rem);
    letter-spacing: -0.03em;
}

.section-blog h1 .cursor {
    color: rgb(221, 231, 226);
    animation: blink 1s infinite;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

.gradient-text {
    background: linear-gradient(135deg, #981e9a 0%, #0ea5e9 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-blog .subtitle {
    font-size: clamp(1.125rem, 2.7vw, 1.375rem);
    line-height: 1.7;
    color: #999;
    margin-bottom: clamp(2.5rem, 5vh, 3.5rem);
}

.showcase-stats {
    display: flex;
    gap: clamp(2rem, 4vw, 3rem);
    margin-bottom: clamp(3rem, 6vh, 4rem);
    flex-wrap: wrap;
}

.stat-box {
    flex: 1;
    min-width: 140px;
}

.stat-value {
    font-size: clamp(2rem, 5vw, 2.75rem);
    font-weight: 800;
    background: linear-gradient(135deg, #58a6ff 0%, #90d9ed 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: clamp(0.875rem, 2vw, 0.9375rem);
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.section-blog .visit-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    border: none;
    padding: clamp(0.875rem, 2.2vw, 1rem) clamp(2rem, 5vw, 2.5rem);
    font-size: clamp(0.9375rem, 2vw, 1rem);
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 0.625rem;
    text-decoration: none;
    border-radius: 100px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(69, 45, 221, 0.3);
}

.section-blog .visit-btn:hover {
    box-shadow: 0 8px 32px rgba(12, 105, 236, 0.5);
    transform: translateY(-2px);
}

/* Tools Section - Figma/Canva Design Tool Style */
.section-tools {
    background: #fff;
    padding: clamp(2rem, 4vh, 4rem);
}

.tools-container {
    max-width: 1200px;
    width: 100%;
}

.tools-header {
    text-align: center;
    margin-bottom: clamp(2rem, 4vh, 4rem);
}

.section-tools .badge {
    display: inline-block;
    background: linear-gradient(90deg, #ff7262 0%, #a259ff 50%, #1abcfe 100%);
    color: #fff;
    padding: 0.5rem 1.25rem;
    border-radius: 100px;
    font-size: clamp(0.75rem, 1.8vw, 0.875rem);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: clamp(1.5rem, 3vh, 2rem);
}

.section-tools h1 {
    font-size: clamp(3.5rem, 11vw, 5.5rem);
    font-weight: 800;
    color: #000;
    line-height: 1.1;
    margin-bottom: clamp(1rem, 2vh, 2rem);
    letter-spacing: -0.03em;
}

.section-tools h1 .gradient-text {
    background: linear-gradient(90deg, #ff7262 0%, #a259ff 50%, #1abcfe 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-tools .subtitle {
    font-size: clamp(1.125rem, 2.7vw, 1.375rem);
    line-height: 1.6;
    color: #666;
    max-width: 1000px;
    margin: 0 auto;
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: clamp(2rem, 4vw, 2.5rem);
    margin-bottom: clamp(2rem, 5vh, 4rem);
}

.figma-card {
    background: #fff;
    border: 2px solid #f0f0f0;
    border-radius: 16px;
    padding: clamp(1rem, 4vw, 2rem);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

.figma-card:hover {
    border-color: #a259ff;
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(162, 89, 255, 0.2);
}

.figma-icon {
    width: clamp(64px, 15vw, 72px);
    height: clamp(64px, 15vw, 72px);
    background: linear-gradient(135deg, #ff7262 0%, #a259ff 100%);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: clamp(1.5rem, 3vh, 2rem);
}

.figma-card:nth-child(2) .figma-icon {
    background: linear-gradient(135deg, #a259ff 0%, #1abcfe 100%);
}

.figma-card:nth-child(3) .figma-icon {
    background: linear-gradient(135deg, #1abcfe 0%, #0acf83 100%);
}

.figma-icon i {
    font-size: clamp(1.75rem, 4.5vw, 2rem);
    color: #fff;
}

.figma-title {
    font-size: clamp(1.25rem, 3vw, 1.5rem);
    font-weight: 700;
    color: #000;
    margin-bottom: clamp(0.75rem, 1.8vh, 1rem);
}

.figma-desc {
    font-size: clamp(1rem, 2.3vw, 1.0625rem);
    line-height: 1.6;
    color: #666;
}

.section-tools .visit-btn {
    background: #000;
    color: #fff;
    border: none;
    padding: clamp(0.875rem, 2.2vw, 1rem) clamp(2.5rem, 5vw, 3.5rem);
    font-size: clamp(0.9375rem, 2vw, 1rem);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.625rem;
    text-decoration: none;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.section-tools .visit-btn:hover {
    background: #333;
    transform: scale(1.02);
}

/* Diary Section - Warm Organic Layout */
.section-diary {
    background: linear-gradient(160deg, #ff9a56 0%, #ff6a88 50%, #ff99ac 100%);
    padding: clamp(2rem, 4vh, 4rem) clamp(1.5rem, 5vw, 4rem) clamp(2rem, 4vh, 3rem);
    display: flex;
    align-items: center;
    justify-content: center;
}

.diary-content {
    max-width: 900px;
    width: 100%;
}

.section-diary .section-title {
    font-family: 'Poppins', sans-serif;
    font-size: clamp(2.5rem, 10vw, 5.5rem);
    font-weight: 900;
    color: white;
    margin-bottom: clamp(0.5rem, 2.5vh, 1.5rem);
    line-height: 1;
    letter-spacing: -0.02em;
    text-align: center;
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.section-diary .section-description {
    font-size: clamp(1rem, 2.5vw, 1.2rem);
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: clamp(2rem, 4vh, 4rem);
    text-align: center;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

.diary-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: clamp(1.5rem, 4vw, 2rem);
    margin-bottom: clamp(2rem, 4vh, 4rem);
}

.diary-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 32px;
    padding: clamp(1rem, 3vw, 2.5rem);
    text-align: center;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    border: 2px solid rgba(255, 255, 255, 0.6);
}

.diary-card:hover {
    transform: translateY(-12px) rotate(-2deg);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    border-color: white;
}

.diary-card:nth-child(2):hover {
    transform: translateY(-12px) rotate(2deg);
}

.diary-emoji {
    font-size: clamp(3rem, 8vw, 4rem);
    margin-bottom: clamp(1rem, 3vh, 1.5rem);
}

.diary-label {
    font-family: 'Poppins', sans-serif;
    font-size: clamp(1.125rem, 3vw, 1.375rem);
    font-weight: 800;
    color: #1a1a1a;
    margin-bottom: clamp(0.5rem, 1.5vh, 0.75rem);
}

.diary-text {
    font-size: clamp(0.875rem, 2vw, 0.9375rem);
    color: #4b5563;
    line-height: 1.6;
}

.section-diary .visit-btn {
    background: white;
    color: #ff6a88;
    border: 3px solid white;
    padding: clamp(1rem, 2.5vw, 1.25rem) clamp(2.5rem, 6vw, 3.5rem);
    font-size: clamp(0.9375rem, 2.5vw, 1.0625rem);
    font-weight: 800;
    border-radius: 100px;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    transition: all 0.3s ease;
    margin: 0 auto;
    display: flex;
    width: fit-content;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
}

.section-diary .visit-btn:hover {
    background: #e64c84;
    color: white;
    border-color: #ed76a0;
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgb(248, 247, 240);
}

/* Responsive */
@media (max-width: 768px) {
    .section-blog .section-title {
        font-size: 1.5rem;
    }

    .section-tools .metrics-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .section-tools .dashboard-header {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }

    .section-diary .polaroid-container {
        flex-direction: column;
        align-items: center;
    }

    .section-diary .section-title {
        font-size: 3rem;
    }
}