/* ppuzzl.com - Ethereal Midnight-Blue Design */
/* Colors: #050a1a, #0a1628, #0d2040, #0066ff, #0099ff, #e8f0ff, #a0b4c8, #3a4a5a */
/* Fonts: Space Mono, IBM Plex Sans */

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'IBM Plex Sans', sans-serif;
    background-color: #050a1a;
    color: #e8f0ff;
    overflow-x: hidden;
    min-height: 100vh;
    background: radial-gradient(ellipse at center, #0d2040 0%, #0a1628 40%, #050a1a 100%);
}

/* Crystal field - floating background shapes */
#crystal-field {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.crystal {
    position: absolute;
    opacity: 0.12;
    animation: crystal-float 20s ease-in-out infinite;
}

.crystal-1 {
    width: 80px;
    height: 80px;
    top: 10%;
    left: 5%;
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    background: linear-gradient(135deg, #0066ff, #0099ff);
    animation-delay: 0s;
    animation-duration: 18s;
}

.crystal-2 {
    width: 60px;
    height: 60px;
    top: 20%;
    right: 10%;
    clip-path: polygon(50% 0%, 80% 20%, 100% 50%, 80% 80%, 50% 100%, 20% 80%, 0% 50%, 20% 20%);
    background: linear-gradient(45deg, #0099ff, #0066ff);
    animation-delay: -3s;
    animation-duration: 22s;
}

.crystal-3 {
    width: 100px;
    height: 100px;
    top: 50%;
    left: 8%;
    clip-path: polygon(25% 0%, 75% 0%, 100% 50%, 75% 100%, 25% 100%, 0% 50%);
    background: linear-gradient(180deg, #0066ff, transparent);
    animation-delay: -6s;
    animation-duration: 25s;
}

.crystal-4 {
    width: 50px;
    height: 50px;
    top: 70%;
    right: 15%;
    clip-path: polygon(50% 0%, 100% 38%, 82% 100%, 18% 100%, 0% 38%);
    background: #0099ff;
    animation-delay: -9s;
    animation-duration: 20s;
}

.crystal-5 {
    width: 70px;
    height: 70px;
    top: 30%;
    left: 80%;
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    background: linear-gradient(225deg, #0066ff, #0099ff);
    animation-delay: -12s;
    animation-duration: 24s;
}

.crystal-6 {
    width: 40px;
    height: 40px;
    top: 85%;
    left: 25%;
    clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
    background: #0066ff;
    animation-delay: -4s;
    animation-duration: 16s;
}

.crystal-7 {
    width: 90px;
    height: 90px;
    top: 60%;
    left: 60%;
    clip-path: polygon(30% 0%, 70% 0%, 100% 30%, 100% 70%, 70% 100%, 30% 100%, 0% 70%, 0% 30%);
    background: linear-gradient(90deg, #0066ff, transparent);
    animation-delay: -7s;
    animation-duration: 28s;
}

.crystal-8 {
    width: 55px;
    height: 55px;
    top: 15%;
    left: 45%;
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    background: linear-gradient(315deg, #0099ff, #0066ff);
    animation-delay: -15s;
    animation-duration: 21s;
}

@keyframes crystal-float {
    0%, 100% {
        transform: translateY(0) rotate(0deg) scale(1);
    }
    25% {
        transform: translateY(-30px) rotate(45deg) scale(1.05);
    }
    50% {
        transform: translateY(-15px) rotate(90deg) scale(0.95);
    }
    75% {
        transform: translateY(-40px) rotate(135deg) scale(1.02);
    }
}

/* Particle field */
#particle-field {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.particle {
    position: absolute;
    width: 2px;
    height: 2px;
    background: #0099ff;
    border-radius: 50%;
    opacity: 0;
    animation: particle-drift linear infinite;
}

@keyframes particle-drift {
    0% {
        opacity: 0;
        transform: translateY(0) translateX(0);
    }
    10% {
        opacity: 0.6;
    }
    90% {
        opacity: 0.6;
    }
    100% {
        opacity: 0;
        transform: translateY(-100vh) translateX(50px);
    }
}

/* Main content */
#main-content {
    position: relative;
    z-index: 1;
}

/* Section base */
.section {
    padding: 100px 24px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.section-inner {
    max-width: 640px;
    width: 100%;
    margin: 0 auto;
    text-align: center;
}

.section-title {
    font-family: 'Space Mono', monospace;
    font-size: 2rem;
    font-weight: 700;
    color: #e8f0ff;
    margin-bottom: 16px;
    letter-spacing: -0.5px;
}

.section-desc {
    font-family: 'IBM Plex Sans', sans-serif;
    font-size: 1.1rem;
    color: #a0b4c8;
    line-height: 1.7;
    margin-bottom: 48px;
}

/* Zoom-focus animation */
.zoom-target {
    opacity: 0;
    transform: scale(0.95);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.zoom-target.in-view {
    opacity: 1;
    transform: scale(1);
}

.zoom-target.zoom-focus {
    transform: scale(1.05);
}

/* Hero section */
#hero {
    min-height: 100vh;
    padding-top: 160px;
    padding-bottom: 160px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    border: 1px solid rgba(0, 102, 255, 0.3);
    border-radius: 24px;
    margin-bottom: 32px;
    background: rgba(0, 102, 255, 0.08);
}

.badge-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #0099ff;
    animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.5); }
}

.badge-text {
    font-family: 'Space Mono', monospace;
    font-size: 0.75rem;
    color: #0099ff;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.hero-title {
    font-family: 'Space Mono', monospace;
    margin-bottom: 24px;
}

.title-line {
    display: block;
    font-size: 1.2rem;
    font-weight: 400;
    color: #a0b4c8;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.title-highlight {
    display: block;
    font-size: 4rem;
    font-weight: 700;
    color: #e8f0ff;
    letter-spacing: -2px;
    background: linear-gradient(135deg, #e8f0ff 0%, #0099ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-family: 'IBM Plex Sans', sans-serif;
    font-size: 1.15rem;
    color: #a0b4c8;
    line-height: 1.8;
    max-width: 480px;
    margin: 0 auto 40px;
}

.hero-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Buttons */
.btn {
    font-family: 'Space Mono', monospace;
    font-size: 0.9rem;
    padding: 14px 32px;
    border-radius: 8px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    cursor: pointer;
    letter-spacing: 0.5px;
}

.btn-primary {
    background: #0066ff;
    color: #e8f0ff;
    border: 1px solid #0066ff;
}

.btn-primary:hover {
    background: #0099ff;
    border-color: #0099ff;
    box-shadow: 0 0 30px rgba(0, 102, 255, 0.4);
    transform: translateY(-2px);
}

.btn-ghost {
    background: transparent;
    color: #a0b4c8;
    border: 1px solid #3a4a5a;
}

.btn-ghost:hover {
    color: #e8f0ff;
    border-color: #0066ff;
    transform: translateY(-2px);
}

.btn-large {
    padding: 18px 48px;
    font-size: 1rem;
}

/* Features section */
.features-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    text-align: left;
}

.feature-card {
    padding: 32px;
    background: rgba(13, 32, 64, 0.5);
    border: 1px solid rgba(0, 102, 255, 0.15);
    border-radius: 12px;
    transition: all 0.4s ease;
}

.feature-card:hover {
    border-color: rgba(0, 102, 255, 0.4);
    background: rgba(13, 32, 64, 0.8);
    box-shadow: 0 8px 40px rgba(0, 102, 255, 0.1);
}

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

.feature-icon svg {
    display: block;
}

.feature-title {
    font-family: 'Space Mono', monospace;
    font-size: 1.1rem;
    font-weight: 700;
    color: #e8f0ff;
    margin-bottom: 12px;
}

.feature-desc {
    font-family: 'IBM Plex Sans', sans-serif;
    font-size: 0.95rem;
    color: #a0b4c8;
    line-height: 1.6;
}

/* Tutorials section */
.tutorials-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    text-align: left;
}

.tutorial-card {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 24px;
    background: rgba(13, 32, 64, 0.3);
    border: 1px solid rgba(0, 102, 255, 0.1);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.tutorial-card:hover {
    background: rgba(13, 32, 64, 0.6);
    border-color: rgba(0, 102, 255, 0.3);
    transform: translateX(4px);
}

.tutorial-number {
    font-family: 'Space Mono', monospace;
    font-size: 1.5rem;
    font-weight: 700;
    color: #0066ff;
    min-width: 48px;
    opacity: 0.6;
}

.tutorial-content {
    flex: 1;
}

.tutorial-title {
    font-family: 'Space Mono', monospace;
    font-size: 1rem;
    font-weight: 700;
    color: #e8f0ff;
    margin-bottom: 6px;
}

.tutorial-desc {
    font-family: 'IBM Plex Sans', sans-serif;
    font-size: 0.9rem;
    color: #a0b4c8;
    line-height: 1.5;
    margin-bottom: 4px;
}

.tutorial-meta {
    font-family: 'Space Mono', monospace;
    font-size: 0.75rem;
    color: #3a4a5a;
}

.tutorial-arrow {
    font-size: 1.2rem;
    color: #3a4a5a;
    transition: color 0.3s ease, transform 0.3s ease;
}

.tutorial-card:hover .tutorial-arrow {
    color: #0066ff;
    transform: translateX(4px);
}

/* Code block section */
.code-block {
    background: #0a1628;
    border: 1px solid rgba(0, 102, 255, 0.2);
    border-radius: 12px;
    overflow: hidden;
    text-align: left;
}

.code-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 20px;
    background: rgba(5, 10, 26, 0.6);
    border-bottom: 1px solid rgba(0, 102, 255, 0.1);
}

.code-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.code-dot-red { background: #ff5f57; }
.code-dot-yellow { background: #ffbd2e; }
.code-dot-green { background: #28c840; }

.code-filename {
    font-family: 'Space Mono', monospace;
    font-size: 0.75rem;
    color: #3a4a5a;
    margin-left: 8px;
}

.code-content {
    padding: 24px;
    font-family: 'Space Mono', monospace;
    font-size: 0.85rem;
    line-height: 1.8;
    color: #e8f0ff;
    overflow-x: auto;
}

.code-content code {
    font-family: inherit;
}

.code-comment {
    color: #3a4a5a;
}

.code-cmd {
    color: #0099ff;
}

/* Stats section */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
}

.stat-item {
    padding: 32px 16px;
    text-align: center;
}

.stat-value {
    display: block;
    font-family: 'Space Mono', monospace;
    font-size: 2.5rem;
    font-weight: 700;
    color: #0066ff;
    margin-bottom: 8px;
}

.stat-label {
    font-family: 'IBM Plex Sans', sans-serif;
    font-size: 0.9rem;
    color: #3a4a5a;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* CTA section */
#cta {
    padding: 120px 24px;
}

.cta-crystal {
    margin-bottom: 32px;
    animation: cta-rotate 30s linear infinite;
}

@keyframes cta-rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.cta-title {
    font-family: 'Space Mono', monospace;
    font-size: 2.5rem;
    font-weight: 700;
    color: #e8f0ff;
    margin-bottom: 16px;
}

.cta-desc {
    font-family: 'IBM Plex Sans', sans-serif;
    font-size: 1.1rem;
    color: #a0b4c8;
    margin-bottom: 40px;
    line-height: 1.7;
}

/* Footer */
#footer {
    padding: 60px 24px 40px;
    border-top: 1px solid rgba(0, 102, 255, 0.1);
}

.footer-brand {
    margin-bottom: 40px;
}

.footer-logo {
    font-family: 'Space Mono', monospace;
    font-size: 1.5rem;
    font-weight: 700;
    color: #e8f0ff;
    display: block;
    margin-bottom: 8px;
}

.footer-tagline {
    font-family: 'IBM Plex Sans', sans-serif;
    font-size: 0.9rem;
    color: #3a4a5a;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    text-align: left;
    margin-bottom: 48px;
}

.footer-heading {
    font-family: 'Space Mono', monospace;
    font-size: 0.8rem;
    font-weight: 700;
    color: #a0b4c8;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 16px;
}

.footer-column {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-link {
    font-family: 'IBM Plex Sans', sans-serif;
    font-size: 0.9rem;
    color: #3a4a5a;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: #0099ff;
}

.footer-bottom {
    padding-top: 24px;
    border-top: 1px solid rgba(0, 102, 255, 0.08);
}

.footer-copy {
    font-family: 'IBM Plex Sans', sans-serif;
    font-size: 0.8rem;
    color: #3a4a5a;
}

/* Responsive */
@media (max-width: 640px) {
    .title-highlight {
        font-size: 2.8rem;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .stat-value {
        font-size: 1.8rem;
    }

    .footer-links {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .tutorial-card {
        flex-wrap: wrap;
    }

    .cta-title {
        font-size: 1.8rem;
    }
}
