/* ==========================================================================
   gabs.feedback - Goblincore Feedback Garden
   Colors: #3D2B1F, #7A9E7E, #E8DCC8, #C4AD8F, #C7637E, #9E3A3A, #D4BE5E
   Fonts: Albert Sans, Atkinson Hyperlegible, Kode Mono
   ========================================================================== */

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

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: 'Atkinson Hyperlegible', sans-serif;
    font-weight: 400;
    font-size: clamp(15px, 1.6vw, 19px);
    line-height: 1.75;
    color: #E8DCC8;
    background-color: #3D2B1F;
    overflow-x: hidden;
}

/* --- Soil Texture Background --- */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    background:
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 2px,
            rgba(61, 43, 31, 0.03) 2px,
            rgba(61, 43, 31, 0.03) 4px
        ),
        repeating-linear-gradient(
            90deg,
            transparent,
            transparent 3px,
            rgba(196, 173, 143, 0.02) 3px,
            rgba(196, 173, 143, 0.02) 6px
        ),
        repeating-linear-gradient(
            45deg,
            transparent,
            transparent 5px,
            rgba(122, 158, 126, 0.015) 5px,
            rgba(122, 158, 126, 0.015) 10px
        );
}

/* --- Hero Section --- */
.hero {
    position: relative;
    width: 100%;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #3D2B1F;
    overflow: hidden;
    z-index: 1;
}

.hero-noise {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        radial-gradient(circle at 20% 30%, rgba(196, 173, 143, 0.06) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(122, 158, 126, 0.04) 0%, transparent 40%),
        radial-gradient(circle at 50% 50%, rgba(232, 220, 200, 0.03) 0%, transparent 60%),
        linear-gradient(135deg, rgba(61, 43, 31, 0.8) 0%, rgba(61, 43, 31, 0.6) 50%, rgba(61, 43, 31, 0.9) 100%);
    pointer-events: none;
}

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

.hero-title {
    font-family: 'Albert Sans', sans-serif;
    font-weight: 800;
    font-size: clamp(40px, 10vw, 120px);
    line-height: 1.1;
    letter-spacing: -0.02em;
    color: #E8DCC8;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: baseline;
    gap: 0;
}

.title-gabs {
    opacity: 0;
    animation: fadeInGabs 600ms ease-out 400ms forwards;
}

.title-dot {
    color: #7A9E7E;
    opacity: 0;
    animation: fadeInGabs 400ms ease-out 900ms forwards;
}

.title-feedback {
    display: inline-flex;
}

.title-feedback .letter {
    display: inline-block;
    opacity: 0;
    transform: translateY(15px);
    animation: growUpLetter 500ms cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.title-feedback .letter:nth-child(1) { animation-delay: 1000ms; }
.title-feedback .letter:nth-child(2) { animation-delay: 1080ms; }
.title-feedback .letter:nth-child(3) { animation-delay: 1160ms; }
.title-feedback .letter:nth-child(4) { animation-delay: 1240ms; }
.title-feedback .letter:nth-child(5) { animation-delay: 1320ms; }
.title-feedback .letter:nth-child(6) { animation-delay: 1400ms; }
.title-feedback .letter:nth-child(7) { animation-delay: 1480ms; }
.title-feedback .letter:nth-child(8) { animation-delay: 1560ms; }

/* Leaf decoration on specific letters */
.title-feedback .letter[data-leaf]::after {
    content: '';
    position: absolute;
    bottom: 100%;
    left: 50%;
    width: 8px;
    height: 12px;
    background: #7A9E7E;
    border-radius: 0 80% 0 80%;
    transform: translateX(-50%) rotate(-15deg) scale(0);
    animation: leafSprout 400ms cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
    animation-delay: 1800ms;
}

.title-feedback .letter[data-leaf] {
    position: relative;
}

.hero-tagline {
    font-family: 'Atkinson Hyperlegible', sans-serif;
    font-weight: 400;
    font-size: clamp(14px, 2vw, 22px);
    color: #C4AD8F;
    margin-top: 1.5rem;
    opacity: 0;
    animation: fadeInGabs 800ms ease-out 1800ms forwards;
    letter-spacing: 0.03em;
}

/* --- Keyframes --- */
@keyframes fadeInGabs {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

@keyframes leafSprout {
    from { transform: translateX(-50%) rotate(-15deg) scale(0); }
    to { transform: translateX(-50%) rotate(-15deg) scale(1); }
}

@keyframes springIn {
    0% {
        opacity: 0;
        transform: scale(0.9) translateY(20px) rotate(var(--rotation, 0deg));
    }
    70% {
        opacity: 1;
        transform: scale(1.02) translateY(-2px) rotate(var(--rotation, 0deg));
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0) rotate(var(--rotation, 0deg));
    }
}

@keyframes popIn {
    0% { transform: scale(0); opacity: 0; }
    70% { transform: scale(1.2); opacity: 0.8; }
    100% { transform: scale(1); opacity: 1; }
}

@keyframes mushroomGrow {
    from { transform: scaleY(0); transform-origin: bottom; }
    to { transform: scaleY(1); transform-origin: bottom; }
}

/* --- Geometric Shapes --- */
.geo-shape {
    position: absolute;
    z-index: 1;
    opacity: 0;
    animation: popIn 500ms cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
    animation-delay: 2400ms;
    pointer-events: none;
}

.geo-circle {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #C7637E;
    opacity: 0;
}

.geo-triangle {
    width: 0;
    height: 0;
    border-left: 12px solid transparent;
    border-right: 12px solid transparent;
    border-bottom: 20px solid #7A9E7E;
    background: transparent;
    opacity: 0;
}

.geo-square {
    width: 16px;
    height: 16px;
    background: #D4BE5E;
    opacity: 0;
}

/* --- Vine SVG --- */
.vine-svg {
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 100vh;
    z-index: 0;
    pointer-events: none;
    opacity: 0.35;
}

.vine-path {
    stroke-dasharray: 2200;
    stroke-dashoffset: 2200;
}

.vine-leaf {
    opacity: 0;
    transition: opacity 0.5s ease;
}

/* --- Section Shared Styles --- */
.section-title {
    font-family: 'Albert Sans', sans-serif;
    font-weight: 700;
    font-size: clamp(28px, 5vw, 60px);
    color: #E8DCC8;
    text-align: center;
    margin-bottom: 0.5rem;
}

.section-intro {
    font-family: 'Atkinson Hyperlegible', sans-serif;
    font-weight: 400;
    font-size: clamp(14px, 1.8vw, 20px);
    color: #C4AD8F;
    text-align: center;
    margin-bottom: 3rem;
}

/* --- Feedback Garden Section --- */
.feedback-garden {
    position: relative;
    z-index: 1;
    padding: 6rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.feedback-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

/* --- Feedback Cards --- */
.feedback-card {
    position: relative;
    background: #E8DCC8;
    color: #3D2B1F;
    padding: 2rem 1.8rem 1.5rem;
    transform: rotate(var(--rotation, 0deg));
    transition: transform 200ms ease, box-shadow 200ms ease;
    opacity: 0;
}

.feedback-card.visible {
    animation: springIn 500ms cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.feedback-card:hover {
    transform: rotate(var(--rotation, 0deg)) translateY(-3px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

/* Torn-paper clip-paths - each card gets a unique irregular edge */
.feedback-card:nth-child(1) {
    clip-path: polygon(2% 0%, 98% 1%, 99% 3%, 100% 97%, 97% 100%, 3% 99%, 0% 97%, 1% 3%);
}
.feedback-card:nth-child(2) {
    clip-path: polygon(0% 2%, 1% 0%, 97% 1%, 100% 0%, 99% 98%, 100% 100%, 2% 99%, 0% 97%);
}
.feedback-card:nth-child(3) {
    clip-path: polygon(1% 1%, 99% 0%, 100% 2%, 98% 99%, 100% 100%, 1% 98%, 0% 100%, 2% 2%);
}
.feedback-card:nth-child(4) {
    clip-path: polygon(0% 0%, 2% 1%, 98% 0%, 100% 3%, 99% 97%, 97% 100%, 3% 99%, 0% 98%);
}
.feedback-card:nth-child(5) {
    clip-path: polygon(1% 0%, 100% 1%, 99% 2%, 97% 100%, 100% 98%, 0% 100%, 2% 98%, 0% 1%);
}
.feedback-card:nth-child(6) {
    clip-path: polygon(2% 1%, 99% 0%, 100% 1%, 98% 98%, 100% 100%, 1% 99%, 0% 100%, 1% 2%);
}
.feedback-card:nth-child(7) {
    clip-path: polygon(0% 1%, 1% 0%, 98% 2%, 100% 0%, 100% 99%, 98% 100%, 2% 98%, 0% 100%);
}
.feedback-card:nth-child(8) {
    clip-path: polygon(1% 0%, 99% 1%, 100% 0%, 99% 98%, 97% 100%, 2% 100%, 0% 98%, 1% 2%);
}
.feedback-card:nth-child(9) {
    clip-path: polygon(0% 2%, 2% 0%, 100% 1%, 98% 2%, 100% 100%, 99% 98%, 1% 100%, 0% 99%);
}

/* --- Mushroom Indicators --- */
.card-mushroom {
    position: absolute;
    top: 10px;
    right: 14px;
    opacity: 0.5;
}

.card-mushroom::before {
    content: '';
    display: block;
    background: #C4AD8F;
    border-radius: 50% 50% 0 0;
}

.card-mushroom::after {
    content: '';
    display: block;
    background: #C4AD8F;
    margin: 0 auto;
    border-radius: 0 0 2px 2px;
}

.mushroom-small::before {
    width: 10px;
    height: 5px;
}
.mushroom-small::after {
    width: 4px;
    height: 6px;
}

.mushroom-medium::before {
    width: 14px;
    height: 7px;
}
.mushroom-medium::after {
    width: 5px;
    height: 8px;
}

.mushroom-large::before {
    width: 18px;
    height: 9px;
}
.mushroom-large::after {
    width: 6px;
    height: 10px;
}

/* --- Card Tags --- */
.card-tag {
    font-family: 'Kode Mono', monospace;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 3px 8px;
    border-radius: 3px;
    display: inline-block;
    margin-bottom: 0.75rem;
}

.tag-praise {
    background: rgba(199, 99, 126, 0.15);
    color: #C7637E;
}

.tag-criticism {
    background: rgba(158, 58, 58, 0.15);
    color: #9E3A3A;
}

.tag-suggestion {
    background: rgba(212, 190, 94, 0.15);
    color: #9E8A2E;
}

/* --- Card Content --- */
.card-title {
    font-family: 'Albert Sans', sans-serif;
    font-weight: 700;
    font-size: clamp(16px, 2vw, 22px);
    color: #3D2B1F;
    margin-bottom: 0.6rem;
    line-height: 1.3;
}

.card-body {
    font-family: 'Atkinson Hyperlegible', sans-serif;
    font-weight: 400;
    font-size: clamp(14px, 1.4vw, 17px);
    color: #3D2B1F;
    line-height: 1.65;
    margin-bottom: 1rem;
    opacity: 0.85;
}

.card-meta {
    font-family: 'Kode Mono', monospace;
    font-size: 11px;
    color: #C4AD8F;
    display: block;
}

/* --- Growth Timeline Section --- */
.growth-timeline {
    position: relative;
    z-index: 1;
    padding: 6rem 2rem;
    max-width: 900px;
    margin: 0 auto;
}

.timeline-container {
    position: relative;
    padding: 2rem 0;
}

/* Central vertical line */
.timeline-container::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #7A9E7E;
    transform: translateX(-50%);
    opacity: 0.4;
}

.timeline-item {
    position: relative;
    display: flex;
    align-items: flex-start;
    margin-bottom: 4rem;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 600ms ease, transform 600ms ease;
}

.timeline-item.visible {
    opacity: 1;
    transform: translateY(0);
}

.timeline-left {
    flex-direction: row;
    padding-right: calc(50% + 2rem);
}

.timeline-right {
    flex-direction: row-reverse;
    padding-left: calc(50% + 2rem);
}

.timeline-left .timeline-content {
    text-align: right;
}

.timeline-right .timeline-content {
    text-align: left;
}

.timeline-node {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 2px solid #7A9E7E;
    background: #3D2B1F;
    z-index: 2;
}

.node-seed { background: #3D2B1F; }
.node-sprout { background: #7A9E7E; width: 12px; height: 12px; margin-top: 2px; }
.node-growth { background: #D4BE5E; }
.node-bloom { background: #C7637E; width: 20px; height: 20px; margin-top: -2px; }

.timeline-label {
    font-family: 'Kode Mono', monospace;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: #7A9E7E;
    display: block;
    margin-bottom: 0.4rem;
}

.timeline-content h3 {
    font-family: 'Albert Sans', sans-serif;
    font-weight: 700;
    font-size: clamp(18px, 2.5vw, 26px);
    color: #E8DCC8;
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.timeline-content p {
    font-family: 'Atkinson Hyperlegible', sans-serif;
    font-weight: 400;
    font-size: clamp(14px, 1.4vw, 17px);
    color: #C4AD8F;
    line-height: 1.7;
}

/* --- Values Section --- */
.values-section {
    position: relative;
    z-index: 1;
    padding: 6rem 2rem;
    max-width: 1100px;
    margin: 0 auto;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
}

.value-card {
    text-align: center;
    padding: 2.5rem 2rem;
    background: rgba(232, 220, 200, 0.05);
    border: 1px solid rgba(196, 173, 143, 0.15);
    border-radius: 2px;
    transition: background 300ms ease, border-color 300ms ease;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 600ms ease, transform 600ms ease, background 300ms ease, border-color 300ms ease;
}

.value-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.value-card:hover {
    background: rgba(232, 220, 200, 0.08);
    border-color: rgba(196, 173, 143, 0.3);
}

.value-icon {
    margin-bottom: 1.2rem;
}

.value-card h3 {
    font-family: 'Albert Sans', sans-serif;
    font-weight: 700;
    font-size: clamp(18px, 2.5vw, 24px);
    color: #E8DCC8;
    margin-bottom: 0.5rem;
}

.value-korean {
    font-family: 'Albert Sans', sans-serif;
    font-weight: 600;
    font-size: 28px;
    color: #7A9E7E;
    margin-bottom: 1rem;
    opacity: 0.7;
}

.value-card p:not(.value-korean) {
    font-family: 'Atkinson Hyperlegible', sans-serif;
    font-weight: 400;
    font-size: clamp(14px, 1.4vw, 17px);
    color: #C4AD8F;
    line-height: 1.7;
}

/* --- Closing Section --- */
.closing-section {
    position: relative;
    z-index: 1;
    padding: 8rem 2rem;
    text-align: center;
    overflow: hidden;
}

.closing-content {
    position: relative;
    z-index: 2;
}

.closing-text {
    font-family: 'Albert Sans', sans-serif;
    font-weight: 800;
    font-size: clamp(24px, 4vw, 48px);
    color: #E8DCC8;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.closing-sub {
    font-family: 'Atkinson Hyperlegible', sans-serif;
    font-weight: 400;
    font-size: clamp(15px, 2vw, 22px);
    color: #C4AD8F;
    margin-bottom: 3rem;
}

.closing-mark {
    font-family: 'Albert Sans', sans-serif;
    font-weight: 800;
    font-size: clamp(14px, 1.5vw, 18px);
    color: #C4AD8F;
    letter-spacing: 0.15em;
    opacity: 0.5;
}

.closing-dot {
    color: #7A9E7E;
}

/* --- Responsive --- */
@media (max-width: 900px) {
    .feedback-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    .values-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    .timeline-left,
    .timeline-right {
        padding-right: 0;
        padding-left: 3rem;
        flex-direction: row;
    }

    .timeline-left .timeline-content,
    .timeline-right .timeline-content {
        text-align: left;
    }

    .timeline-container::before {
        left: 0;
    }

    .timeline-node {
        left: 0;
        transform: translateX(-50%);
    }
}

@media (max-width: 600px) {
    .feedback-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .values-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .hero-title {
        flex-direction: column;
        align-items: center;
    }

    .feedback-garden,
    .growth-timeline,
    .values-section {
        padding: 4rem 1.2rem;
    }
}
