/* ============================================
   GABS.AI v2 - McBling Aesthetic Styles
   값 - Value, Price, Worth
   ============================================ */

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Red Hat Text', sans-serif;
    font-weight: 400;
    font-size: clamp(15px, 1.5vw, 18px);
    line-height: 1.7;
    color: #1E1E24;
    background-color: #FFF8F0;
    overflow-x: hidden;
}

/* ============================================
   METALLIC DIVIDERS
   ============================================ */
.metal-divider {
    height: 1px;
    background: linear-gradient(90deg, #D4A843, #C0C0C8, #B76E79);
    width: 0;
    transition: width 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.metal-divider.drawn {
    width: 100%;
}

.metal-divider--always {
    width: 100%;
}

/* ============================================
   TRIANGULAR ACCENT ELEMENTS
   ============================================ */
.tri-accent {
    position: absolute;
    width: 0;
    height: 0;
    transform: scale(0);
    transition: transform 0.15s ease;
}

.tri-accent.pop {
    transform: scale(1);
}

.tri-accent--tr {
    top: 20px;
    right: 20px;
    border-left: 30px solid transparent;
    border-bottom: 30px solid #D4A843;
}

.tri-accent--bl {
    bottom: 20px;
    left: 20px;
    border-right: 30px solid transparent;
    border-top: 30px solid #B76E79;
}

.tri-accent--hd {
    top: -5px;
    right: -5px;
    border-left: 20px solid transparent;
    border-bottom: 20px solid #D4A843;
}

/* ============================================
   SPARKLE STARS
   ============================================ */
.sparkle {
    position: absolute;
    width: 8px;
    height: 8px;
    pointer-events: none;
    z-index: 10;
}

.sparkle::before,
.sparkle::after {
    content: '';
    position: absolute;
    background: #FFF8F0;
}

.sparkle::before {
    width: 2px;
    height: 8px;
    left: 3px;
    top: 0;
    border-radius: 1px;
}

.sparkle::after {
    width: 8px;
    height: 2px;
    left: 0;
    top: 3px;
    border-radius: 1px;
}

.sparkle--gold::before,
.sparkle--gold::after {
    background: #D4A843;
}

.sparkle--silver::before,
.sparkle--silver::after {
    background: #C0C0C8;
}

.sparkle--rose::before,
.sparkle--rose::after {
    background: #B76E79;
}

@keyframes sparklePulse {
    0%   { opacity: 0; transform: scale(0) rotate(0deg); }
    50%  { opacity: 1; transform: scale(1) rotate(22.5deg); }
    100% { opacity: 0; transform: scale(0) rotate(45deg); }
}

.sparkle.active {
    animation: sparklePulse 0.8s ease forwards;
}

/* ============================================
   HERO SECTION
   ============================================ */
#hero {
    position: relative;
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #FFF8F0 0%, #F5E1D0 30%, #D4A843 70%, #B76E79 100%);
    overflow: hidden;
}

#hero-sparkle-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

#hero-inner {
    position: relative;
    z-index: 2;
    text-align: center;
}

#hero-logo {
    font-family: 'Red Hat Display', sans-serif;
    font-weight: 900;
    font-size: clamp(60px, 15vw, 200px);
    line-height: 1;
    letter-spacing: -0.02em;
    color: transparent;
    display: inline-block;
}

/* Individual GABS letters */
.gabs-letter {
    display: inline-block;
    opacity: 0;
    transform: translateY(20px);
    background: linear-gradient(90deg, #D4A843, #C0C0C8, #D4A843);
    background-size: 200% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.gabs-letter.show {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.4s ease, transform 0.4s ease;
    animation: goldSweep 1.5s ease forwards;
}

@keyframes goldSweep {
    from { background-position: 100% 0; }
    to   { background-position: 0% 0; }
}

/* Rhinestone .AI badge */
.ai-rhinestone {
    display: inline-block;
    opacity: 0;
    clip-path: circle(0% at 50% 50%);
    background: repeating-radial-gradient(
        circle at 30% 30%,
        #FFF8F0 0px,
        #D4A843 1px,
        #B76E79 2px,
        #C0C0C8 3px,
        transparent 4px
    );
    background-size: 6px 6px;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    position: relative;
}

.ai-rhinestone.show {
    opacity: 1;
    clip-path: circle(100% at 50% 50%);
    transition: opacity 0.6s ease, clip-path 0.6s ease;
}

/* Hero subtitle / tagline */
#hero-tagline {
    font-family: 'Red Hat Text', sans-serif;
    font-weight: 400;
    font-size: clamp(14px, 2vw, 22px);
    color: #1E1E24;
    margin-top: 20px;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.6s ease 2.2s, transform 0.6s ease 2.2s;
}

#hero-tagline.show {
    opacity: 1;
    transform: translateY(0);
}

#hero-divider {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
}

/* ============================================
   TUTORIAL SECTIONS
   ============================================ */
.tut-section {
    position: relative;
    padding: 80px 5vw 100px;
    background-color: #FFF8F0;
}

.tut-section--alt {
    background-color: #F5E1D0;
}

.sec-divider {
    margin-bottom: 50px;
}

.sec-wrap {
    max-width: 960px;
    margin: 0 auto;
}

/* F-Pattern flow */
.f-flow .sec-head {
    position: relative;
    margin-bottom: 40px;
    display: inline-block;
}

.f-flow .sec-body {
    padding-left: 0;
}

/* Rhinestone / gem heading text */
.gem-text {
    font-family: 'Red Hat Display', sans-serif;
    font-weight: 800;
    font-size: clamp(28px, 5vw, 64px);
    line-height: 1.1;
    background: repeating-radial-gradient(
        circle at 30% 30%,
        #FFF8F0 0px,
        #D4A843 1px,
        #B76E79 2px,
        #C0C0C8 3px,
        transparent 4px
    );
    background-size: 6px 6px;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.sec-body p {
    margin-bottom: 24px;
    max-width: 680px;
}

.sec-body strong {
    font-weight: 600;
    color: #C62D42;
}

.sec-body em {
    font-style: italic;
    color: #B76E79;
}

/* ============================================
   METRIC CARDS (Value Assessment Cards)
   ============================================ */
.card-row {
    display: flex;
    gap: 20px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.metric-card {
    width: 200px;
    height: 160px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: #FFF8F0;
    border: 2px solid transparent;
    border-image: linear-gradient(135deg, #D4A843, #C0C0C8, #B76E79) 1;
    position: relative;
    opacity: 0;
    transform: translateX(-30px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.metric-card.slide-in {
    opacity: 1;
    transform: translateX(0);
}

.tut-section--alt .metric-card {
    background: #FFF8F0;
}

.mc-label {
    font-family: 'Red Hat Text', sans-serif;
    font-weight: 600;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #C0C0C8;
}

.mc-value {
    font-family: 'Red Hat Display', sans-serif;
    font-weight: 900;
    font-size: 32px;
    background: linear-gradient(90deg, #D4A843, #B76E79);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.mc-value--mono {
    font-family: 'Red Hat Mono', monospace;
    font-weight: 600;
    font-size: 28px;
}

.mc-note {
    font-family: 'Red Hat Text', sans-serif;
    font-weight: 400;
    font-size: 13px;
    color: #1E1E24;
    opacity: 0.6;
}

/* ============================================
   TUTORIAL STEPS
   ============================================ */
.step-list {
    margin-top: 40px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.tut-step {
    display: flex;
    align-items: flex-start;
    gap: 24px;
    opacity: 0;
    transform: translateX(-30px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.tut-step.slide-in {
    opacity: 1;
    transform: translateX(0);
}

.step-num {
    font-family: 'Red Hat Display', sans-serif;
    font-weight: 900;
    font-size: 48px;
    line-height: 1;
    background: linear-gradient(180deg, #D4A843, #C0C0C8);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    flex-shrink: 0;
    width: 60px;
}

.step-info h3 {
    font-family: 'Red Hat Display', sans-serif;
    font-weight: 700;
    font-size: clamp(18px, 2.5vw, 24px);
    color: #1E1E24;
    margin-bottom: 8px;
}

.step-info p {
    font-size: clamp(14px, 1.3vw, 16px);
    color: #1E1E24;
    opacity: 0.8;
    margin-bottom: 0;
}

/* ============================================
   SPECTRUM WIDGET
   ============================================ */
.spectrum-widget {
    margin: 40px 0;
    max-width: 680px;
}

.spectrum-track {
    position: relative;
    height: 8px;
    background: linear-gradient(90deg, #D4A843 0%, #C0C0C8 50%, #C62D42 100%);
    border-radius: 4px;
    margin-bottom: 12px;
}

.spectrum-progress {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, #D4A843, #B76E79);
    border-radius: 4px;
    transition: width 1.5s ease;
}

.spectrum-progress.fill {
    width: 62%;
}

.spectrum-pin {
    position: absolute;
    top: -8px;
    left: 62%;
    transform: translateX(-50%);
    opacity: 0;
    transition: opacity 0.6s ease 1s;
}

.spectrum-pin.show {
    opacity: 1;
}

.pin-text {
    display: block;
    font-family: 'Red Hat Mono', monospace;
    font-weight: 600;
    font-size: 11px;
    color: #C62D42;
    white-space: nowrap;
    position: relative;
    top: -16px;
    text-align: center;
}

.pin-text::after {
    content: '';
    display: block;
    width: 2px;
    height: 24px;
    background: #C62D42;
    margin: 4px auto 0;
}

.spectrum-ends {
    display: flex;
    justify-content: space-between;
    font-family: 'Red Hat Text', sans-serif;
    font-weight: 600;
    font-size: 12px;
    color: #C0C0C8;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: 24px;
}

/* ============================================
   CODE PANEL
   ============================================ */
.code-panel {
    background: #1E1E24;
    border: 1px solid #D4A843;
    border-radius: 0;
    padding: 32px;
    margin: 32px 0;
    max-width: 680px;
    overflow-x: auto;
    position: relative;
}

.code-panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, #D4A843, #C0C0C8, #B76E79);
}

.code-panel pre {
    margin: 0;
}

.code-panel code {
    font-family: 'Red Hat Mono', monospace;
    font-size: clamp(13px, 1.2vw, 15px);
    line-height: 1.8;
    color: #FFF8F0;
    tab-size: 2;
}

.final-statement {
    font-family: 'Red Hat Display', sans-serif;
    font-weight: 700;
    font-size: clamp(18px, 2.5vw, 24px);
    line-height: 1.5;
    color: #1E1E24;
    margin-top: 40px;
    max-width: 680px;
}

/* ============================================
   FOOTER
   ============================================ */
#page-footer {
    padding: 40px 5vw;
    background: #1E1E24;
}

#page-footer .metal-divider--always {
    margin-bottom: 30px;
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 960px;
    margin: 0 auto;
}

.footer-brand {
    font-family: 'Red Hat Display', sans-serif;
    font-weight: 900;
    font-size: 28px;
    background: linear-gradient(90deg, #D4A843, #C0C0C8);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.ai-rhinestone-sm {
    background: repeating-radial-gradient(
        circle at 30% 30%,
        #FFF8F0 0px,
        #D4A843 1px,
        #B76E79 2px,
        #C0C0C8 3px,
        transparent 4px
    );
    background-size: 4px 4px;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.footer-line {
    font-family: 'Red Hat Text', sans-serif;
    font-weight: 400;
    font-size: 14px;
    color: #C0C0C8;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
    .card-row {
        flex-direction: column;
        align-items: flex-start;
    }

    .metric-card {
        width: 100%;
        max-width: 300px;
        height: auto;
        padding: 24px;
    }

    .tut-step {
        flex-direction: column;
        gap: 12px;
    }

    .step-num {
        font-size: 36px;
    }

    .footer-inner {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }

    .spectrum-pin {
        left: 62%;
    }
}

@media (max-width: 480px) {
    .tut-section {
        padding: 60px 4vw 80px;
    }

    #hero-logo {
        font-size: clamp(48px, 12vw, 120px);
    }
}
