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

html {
    scroll-behavior: smooth;
}

body {
    background-color: #111111;
    color: #e5e5e5;
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    line-height: 1.7;
    overflow-x: hidden;
}

/* === Utility === */
.gen-label {
    display: inline-block;
    font-family: 'Fira Code', monospace;
    font-size: 12px;
    color: #737373;
    letter-spacing: 0.05em;
    margin-bottom: 16px;
}

/* === Section 1: Hero === */
.section-hero {
    position: relative;
    width: 100%;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-pattern-bg {
    position: absolute;
    inset: 0;
    background:
        repeating-conic-gradient(#06b6d4 0% 25%, transparent 0% 50%) 0 0 / 20px 20px;
    opacity: 0.07;
}

.hero-grid-dots {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle, #e5e5e5 1px, transparent 1px) 0 0 / 20px 20px;
    opacity: 0.04;
}

.hero-rotating-gradient {
    position: absolute;
    width: 420px;
    height: 420px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    background: conic-gradient(
        from 0deg,
        #06b6d4,
        #a855f7,
        #f97316,
        #06b6d4
    );
    opacity: 0.15;
    animation: heroRotate 20s linear infinite;
    filter: blur(60px);
}

@keyframes heroRotate {
    from { transform: translate(-50%, -50%) rotate(0deg); }
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
}

.hero-brand {
    font-family: 'Sora', sans-serif;
    font-weight: 600;
    font-size: 52px;
    color: #e5e5e5;
    letter-spacing: -0.02em;
    margin-bottom: 12px;
}

.hero-tagline {
    font-family: 'Inter', sans-serif;
    font-size: 18px;
    color: #737373;
    letter-spacing: 0.02em;
}

/* === Section 2: Canvas === */
.section-canvas {
    width: 100%;
}

.canvas-block {
    position: relative;
    width: 100%;
    min-height: 53.33vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.canvas-block .canvas-pattern {
    position: absolute;
    inset: 0;
    opacity: 0.06;
}

/* Dots pattern */
.canvas-block-dots .canvas-pattern {
    background:
        radial-gradient(circle, #06b6d4 2px, transparent 2px) 0 0 / 30px 30px;
}

/* Lines pattern */
.canvas-block-lines .canvas-pattern {
    background:
        repeating-linear-gradient(
            45deg,
            #a855f7 0px,
            #a855f7 1px,
            transparent 1px,
            transparent 16px
        );
}

/* Waves pattern */
.canvas-block-waves .canvas-pattern {
    background:
        repeating-linear-gradient(
            0deg,
            transparent 0px,
            transparent 18px,
            #f97316 18px,
            #f97316 19px
        ),
        repeating-linear-gradient(
            90deg,
            transparent 0px,
            transparent 18px,
            #f97316 18px,
            #f97316 19px
        );
    opacity: 0.05;
}

.canvas-content {
    position: relative;
    z-index: 2;
    max-width: 640px;
    padding: 80px 24px;
    text-align: center;
}

.canvas-heading {
    font-family: 'Sora', sans-serif;
    font-weight: 600;
    font-size: 40px;
    color: #e5e5e5;
    margin-bottom: 20px;
    letter-spacing: -0.01em;
}

.canvas-text {
    font-size: 16px;
    color: #e5e5e5;
    opacity: 0.8;
}

/* === Section 3: Gallery === */
.section-gallery {
    width: 100%;
    padding: 100px 0 80px;
    overflow: hidden;
}

.gallery-header {
    text-align: center;
    margin-bottom: 60px;
}

.gallery-title {
    font-family: 'Sora', sans-serif;
    font-weight: 600;
    font-size: 40px;
    color: #e5e5e5;
}

.gallery-strip {
    display: flex;
    gap: 24px;
    padding: 0 40px;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    justify-content: center;
    flex-wrap: wrap;
}

.gallery-strip::-webkit-scrollbar {
    display: none;
}

.gallery-frame {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.gallery-pattern {
    width: 160px;
    height: 160px;
    border: 1px solid #333333;
    overflow: hidden;
}

.gallery-label {
    font-family: 'Fira Code', monospace;
    font-size: 11px;
    color: #737373;
    margin-top: 10px;
    letter-spacing: 0.02em;
}

/* Gallery pattern variations */
.gp-1 {
    background: repeating-conic-gradient(#06b6d4 0% 25%, transparent 0% 50%) 0 0 / 16px 16px;
}

.gp-2 {
    background: radial-gradient(circle at 50% 50%, #a855f7 2px, transparent 2px) 0 0 / 20px 20px;
}

.gp-3 {
    background:
        repeating-linear-gradient(60deg, #f97316 0px, #f97316 1px, transparent 1px, transparent 10px);
}

.gp-4 {
    background:
        conic-gradient(from 45deg, #06b6d4, transparent, #06b6d4) 0 0 / 40px 40px;
}

.gp-5 {
    background:
        radial-gradient(circle at 0 0, #a855f7 3px, transparent 3px) 0 0 / 12px 12px,
        radial-gradient(circle at 6px 6px, #06b6d4 2px, transparent 2px) 0 0 / 12px 12px;
}

.gp-6 {
    background:
        repeating-linear-gradient(
            135deg,
            #f97316 0px,
            #f97316 2px,
            transparent 2px,
            transparent 8px
        ),
        repeating-linear-gradient(
            45deg,
            #a855f7 0px,
            #a855f7 2px,
            transparent 2px,
            transparent 8px
        );
}

.gp-7 {
    background: repeating-conic-gradient(#06b6d4 0% 25%, #111111 0% 50%) 0 0 / 10px 10px;
}

.gp-8 {
    background:
        radial-gradient(ellipse at center, #a855f7 0%, transparent 50%) 0 0 / 30px 30px,
        radial-gradient(ellipse at center, #f97316 0%, transparent 50%) 15px 15px / 30px 30px;
}

/* === Section 4: Seed (Footer) === */
.section-seed {
    position: relative;
    width: 100%;
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.seed-grid-dots {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle, #e5e5e5 1px, transparent 1px) 0 0 / 20px 20px;
    opacity: 0.03;
}

.seed-content {
    position: relative;
    z-index: 2;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
}

.seed-pattern-display {
    width: 200px;
    height: 200px;
    border: 1px solid #333333;
    background: conic-gradient(
        from 0deg,
        #06b6d4 0deg 60deg,
        transparent 60deg 120deg,
        #a855f7 120deg 180deg,
        transparent 180deg 240deg,
        #f97316 240deg 300deg,
        transparent 300deg 360deg
    );
    animation: seedRotate 30s linear infinite;
}

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

.seed-value {
    font-family: 'Fira Code', monospace;
    font-size: 20px;
    color: #06b6d4;
    letter-spacing: 0.04em;
}

.seed-message {
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    color: #737373;
}

/* === Scroll Reveal Animations === */
.canvas-block,
.gallery-frame {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.canvas-block.visible,
.gallery-frame.visible {
    opacity: 1;
    transform: translateY(0);
}

/* === Responsive === */
@media (max-width: 768px) {
    .hero-brand {
        font-size: 36px;
    }

    .canvas-heading {
        font-size: 30px;
    }

    .gallery-strip {
        justify-content: flex-start;
        flex-wrap: nowrap;
        padding: 0 24px;
    }

    .gallery-pattern {
        width: 140px;
        height: 140px;
    }

    .hero-rotating-gradient {
        width: 280px;
        height: 280px;
    }

    .seed-pattern-display {
        width: 150px;
        height: 150px;
    }
}
