/* chloe.cx - Retro Vapor Gradient Game Engine Portal */

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

:root {
    --hot-pink: #FF6B95;
    --neon-purple: #C44DFF;
    --deep-violet: #6B5CE7;
    --ocean-teal: #45B7D1;
    --mint-green: #96FDBF;
    --warm-yellow: #FFD93D;
    --dark-void: #1E1B2E;
    --text-white: #FFFFFF;
}

body {
    background-color: var(--dark-void);
    color: var(--text-white);
    font-family: 'Quicksand', sans-serif;
    font-weight: 400;
    font-size: clamp(0.9rem, 1.1vw, 1rem);
    line-height: 1.75;
    overflow-x: hidden;
}

/* ============================
   HERO: SUNSET
   ============================ */

#hero {
    position: relative;
    width: 100%;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background-color: var(--dark-void);
}

#gradient-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, #FF6B95 0%, #C44DFF 35%, #6B5CE7 60%, #45B7D1 85%, #96FDBF 100%);
    clip-path: inset(100% 0 0 0);
    transition: clip-path 1.5s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 1;
}

#gradient-layer.revealed {
    clip-path: inset(0 0 0 0);
}

#hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

#hero-title {
    font-family: 'Righteous', cursive;
    font-weight: 400;
    font-size: clamp(4rem, 12vw, 10rem);
    letter-spacing: 0.04em;
    color: var(--text-white);
    text-shadow: 0 0 40px rgba(255, 255, 255, 0.4), 0 2px 0 rgba(0, 0, 0, 0.1);
    opacity: 0;
    transform: translateY(-30px);
    transition: opacity 0.5s ease, transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    background-size: 300% 100%;
}

#hero-title.visible {
    opacity: 1;
    transform: translateY(0);
}

#hero-title.chrome {
    background: linear-gradient(90deg, #FF6B95, #C44DFF, #45B7D1, #96FDBF);
    background-size: 300% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: chrome-shimmer 4s linear infinite;
    text-shadow: none;
}

@keyframes chrome-shimmer {
    0% { background-position: 0% 50%; }
    100% { background-position: 300% 50%; }
}

#hero-cx {
    font-family: 'Righteous', cursive;
    font-weight: 400;
    font-size: clamp(1.6rem, 5vw, 4rem);
    color: var(--text-white);
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
    align-self: flex-end;
    margin-top: -1rem;
    margin-right: -2rem;
    opacity: 0;
    transform: translateX(30px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

#hero-cx.visible {
    opacity: 1;
    transform: translateX(0);
}

#hero-tagline {
    font-family: 'Quicksand', sans-serif;
    font-weight: 400;
    font-size: 1rem;
    letter-spacing: 0.4em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.7);
    margin-top: 1.5rem;
    opacity: 0;
    transition: opacity 0.5s ease;
}

#hero-tagline.visible {
    opacity: 1;
}

/* ============================
   FEATURES
   ============================ */

#features {
    padding: 6rem 4vw;
    background: linear-gradient(180deg, #6B5CE7 0%, #45B7D1 50%, #1E1B2E 100%);
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    max-width: 1100px;
    margin: 0 auto;
}

.feature-card {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 16px;
    padding: 2rem;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.3s ease, transform 0.3s ease, background 0.2s ease;
}

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

.feature-card:hover {
    background: rgba(255, 255, 255, 0.12);
}

.feature-icon {
    width: 24px;
    height: 24px;
    margin-bottom: 1rem;
    opacity: 0.4;
}

.icon-triangle {
    width: 0;
    height: 0;
    border-left: 12px solid transparent;
    border-right: 12px solid transparent;
    border-bottom: 24px solid var(--text-white);
    opacity: 0.4;
}

.icon-circle {
    width: 24px;
    height: 24px;
    border: 1.5px solid rgba(255, 255, 255, 0.4);
    border-radius: 50%;
}

.icon-diamond {
    width: 18px;
    height: 18px;
    border: 1.5px solid rgba(255, 255, 255, 0.4);
    transform: rotate(45deg);
    margin-bottom: calc(1rem + 3px);
}

.icon-lines {
    display: flex;
    flex-direction: column;
    gap: 4px;
    width: 24px;
}

.icon-lines::before,
.icon-lines::after {
    content: '';
    height: 2px;
    background: rgba(255, 255, 255, 0.4);
    border-radius: 1px;
}

.icon-lines::before { width: 100%; }
.icon-lines::after { width: 70%; }

.icon-square {
    width: 20px;
    height: 20px;
    border: 1.5px solid rgba(255, 255, 255, 0.4);
    border-radius: 3px;
}

.icon-dots {
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
    width: 24px;
}

.icon-dots::before,
.icon-dots::after {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: 1.5px solid rgba(255, 255, 255, 0.4);
}

.feature-title {
    font-family: 'Quicksand', sans-serif;
    font-weight: 700;
    font-size: clamp(1.1rem, 1.8vw, 1.4rem);
    letter-spacing: 0.02em;
    color: var(--text-white);
    margin-bottom: 0.5rem;
}

.feature-desc {
    font-family: 'Quicksand', sans-serif;
    font-weight: 400;
    font-size: clamp(0.85rem, 1vw, 0.95rem);
    line-height: 1.75;
    color: rgba(255, 255, 255, 0.7);
}

/* ============================
   CODE WINDOW
   ============================ */

#code-section {
    padding: 6rem 4vw;
    background-color: var(--dark-void);
    display: flex;
    justify-content: center;
}

#code-window {
    background-color: var(--dark-void);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    max-width: 700px;
    width: 100%;
    overflow: hidden;
}

.window-dots {
    display: flex;
    gap: 8px;
    padding: 16px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    cursor: pointer;
}

.dot:hover {
    transform: scale(1.3);
}

.dot-pink {
    background-color: var(--hot-pink);
}
.dot-pink:hover {
    box-shadow: 0 0 10px var(--hot-pink);
}

.dot-yellow {
    background-color: var(--warm-yellow);
}
.dot-yellow:hover {
    box-shadow: 0 0 10px var(--warm-yellow);
}

.dot-green {
    background-color: var(--mint-green);
}
.dot-green:hover {
    box-shadow: 0 0 10px var(--mint-green);
}

#code-content {
    padding: 1.5rem 2rem;
    font-family: 'Fira Code', monospace;
    font-size: 0.85rem;
    line-height: 1.8;
    overflow-x: auto;
}

.line-num {
    color: rgba(255, 255, 255, 0.2);
    user-select: none;
}

.kw { color: var(--hot-pink); }
.str { color: var(--neon-purple); }
.cm { color: var(--mint-green); opacity: 0.7; }
.id { color: var(--text-white); }
.num { color: var(--ocean-teal); }

/* ============================
   GRID FLOOR
   ============================ */

#grid-section {
    position: relative;
    height: 40vh;
    background-color: var(--dark-void);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

#grid-floor {
    position: absolute;
    bottom: 0;
    left: -50%;
    width: 200%;
    height: 80%;
    background:
        repeating-linear-gradient(
            90deg,
            transparent,
            transparent 49px,
            rgba(107, 92, 231, 0.15) 49px,
            rgba(107, 92, 231, 0.15) 50px
        ),
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 49px,
            rgba(107, 92, 231, 0.15) 49px,
            rgba(107, 92, 231, 0.15) 50px
        );
    transform: perspective(500px) rotateX(60deg);
    transform-origin: center top;
}

#grid-text {
    position: relative;
    z-index: 2;
    font-family: 'Righteous', cursive;
    font-weight: 400;
    font-size: clamp(2rem, 6vw, 3rem);
    color: var(--text-white);
    text-shadow: 0 0 30px rgba(196, 77, 255, 0.5);
    letter-spacing: 0.1em;
}

/* ============================
   FOOTER
   ============================ */

#site-footer {
    background-color: var(--dark-void);
    padding: 2rem 4vw;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-brand {
    font-family: 'Righteous', cursive;
    font-size: 1.1rem;
    color: var(--neon-purple);
}

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-links span {
    font-family: 'Quicksand', sans-serif;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: color 0.2s ease;
}

.footer-links span:hover {
    color: var(--text-white);
}

/* ============================
   RESPONSIVE
   ============================ */

@media (max-width: 768px) {
    .feature-grid {
        grid-template-columns: 1fr;
    }

    #hero-cx {
        align-self: center;
        margin-right: 0;
    }

    #site-footer {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}
