/* chloengine.com — Startup Vibrant Pitch */
/* Palette: #ff6b35, #004e89, #fcbf49, #ffffff, #0a1628, #1a1e2e, #c792ea, #c3e88d, #82aaff, #1a202c */

:root {
    --orange: #ff6b35;
    --navy: #004e89;
    --amber: #fcbf49;
    --white: #ffffff;
    --dark: #0a1628;
    --code-bg: #1a1e2e;
    --kw: #c792ea;
    --str: #c3e88d;
    --fn: #82aaff;
    --text: #1a202c;
}

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

body {
    background: var(--white);
    color: var(--text);
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    line-height: 1.65;
    overflow-x: hidden;
}

/* ===================== */
/* HERO                  */
/* ===================== */
.hero {
    min-height: 100vh;
    background: var(--orange);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4rem;
    padding: 4rem 2rem;
    position: relative;
    overflow: hidden;
}

.version-badge {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    font-family: 'Fira Code', monospace;
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    letter-spacing: 0.05em;
}

/* Floating code tokens */
.floating-tokens {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

.ft {
    position: absolute;
    font-family: 'Fira Code', monospace;
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.07);
    animation: floatToken 18s ease-in-out infinite;
    will-change: transform;
}

.ft:nth-child(1) { top: 12%; left: 8%; animation-delay: 0s; font-size: 1.1rem; }
.ft:nth-child(2) { top: 58%; left: 82%; animation-delay: 2.5s; font-size: 0.9rem; }
.ft:nth-child(3) { top: 28%; left: 68%; animation-delay: 5s; font-size: 1.2rem; }
.ft:nth-child(4) { top: 72%; left: 18%; animation-delay: 1.5s; font-size: 0.85rem; }
.ft:nth-child(5) { top: 42%; left: 52%; animation-delay: 7s; font-size: 1rem; }
.ft:nth-child(6) { top: 85%; left: 45%; animation-delay: 4s; font-size: 0.9rem; }
.ft:nth-child(7) { top: 18%; left: 38%; animation-delay: 9s; font-size: 1.05rem; }
.ft:nth-child(8) { top: 65%; left: 60%; animation-delay: 6.5s; font-size: 0.95rem; }

@keyframes floatToken {
    0%, 100% { transform: translateY(0) translateX(0); opacity: 0.07; }
    25% { transform: translateY(-15px) translateX(8px); opacity: 0.12; }
    50% { transform: translateY(-25px) translateX(-5px); opacity: 0.15; }
    75% { transform: translateY(-10px) translateX(12px); opacity: 0.1; }
}

/* Hero content */
.hero-content {
    position: relative;
    z-index: 2;
    max-width: 480px;
}

.hero-brand {
    font-family: 'Manrope', sans-serif;
    font-weight: 800;
    font-size: clamp(3.5rem, 12vw, 8rem);
    color: var(--white);
    letter-spacing: -0.02em;
    line-height: 1;
    animation: brandPop 0.3s ease-out both;
}

@keyframes brandPop {
    0% { transform: scale(0.9); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

.hero-sub {
    font-family: 'Inter', sans-serif;
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.88);
    margin-top: 1.25rem;
    min-height: 1.6em;
    line-height: 1.6;
}

/* Hero terminal — slides in from right */
.hero-terminal {
    position: relative;
    z-index: 2;
    animation: slideInRight 0.6s 0.4s ease-out both;
}

@keyframes slideInRight {
    0% { transform: translateX(60px); opacity: 0; }
    100% { transform: translateX(0); opacity: 1; }
}

/* ===================== */
/* MINI-TERMINAL         */
/* ===================== */
.mini-terminal {
    background: var(--code-bg);
    border-radius: 8px;
    overflow: hidden;
    width: 360px;
    flex-shrink: 0;
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.22);
}

.term-bar {
    display: flex;
    gap: 6px;
    padding: 10px 14px;
    background: rgba(0, 0, 0, 0.25);
}

.term-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.dot-r { background: #ff5f56; }
.dot-y { background: #ffbd2e; }
.dot-g { background: #27c93f; }

.term-body {
    padding: 14px 16px;
    font-family: 'Fira Code', monospace;
    font-size: 0.8rem;
    line-height: 1.75;
    color: #e0e0e0;
    min-height: 140px;
    position: relative;
}

.code-line {
    margin: 0;
    white-space: pre;
}

.kw { color: var(--kw); }
.str { color: var(--str); }
.fn { color: var(--fn); }
.cm { color: #546e7a; }

/* Blinking cursor */
.cursor {
    display: inline-block;
    width: 7px;
    height: 1.1em;
    background: rgba(255, 255, 255, 0.7);
    animation: blink 1s step-end infinite;
    vertical-align: text-bottom;
    margin-left: 1px;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

/* ===================== */
/* HERO GRADIENT         */
/* ===================== */
.hero-gradient {
    height: 80px;
    background: linear-gradient(to bottom, var(--orange), var(--white));
}

/* ===================== */
/* BOLD DIVIDERS         */
/* ===================== */
.bold-divider {
    height: 20px;
    background: var(--orange);
}

/* ===================== */
/* FEATURES              */
/* ===================== */
.features-section {
    padding: 6rem 2rem;
    max-width: 1040px;
    margin: 0 auto;
}

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

.feature-col {
    position: relative;
}

/* Stagger-in animation */
.stagger-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.stagger-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.accent-bar {
    height: 4px;
    width: 44px;
    background: var(--orange);
    margin-bottom: 1.75rem;
    border-radius: 2px;
}

.ab-blue { background: var(--navy); }
.ab-amber { background: var(--amber); }

/* Geometric Shape Icons */
.shape-icon {
    position: relative;
    width: 56px;
    height: 56px;
    margin-bottom: 1.5rem;
}

.shape-circle {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--orange);
    opacity: 0.25;
    position: absolute;
    top: 0;
    left: 0;
}

.shape-square {
    width: 22px;
    height: 22px;
    background: var(--navy);
    opacity: 0.3;
    position: absolute;
    bottom: 4px;
    right: 4px;
    transform: rotate(45deg);
}

.shape-triangle {
    width: 0;
    height: 0;
    border-left: 16px solid transparent;
    border-right: 16px solid transparent;
    border-bottom: 28px solid rgba(0, 78, 137, 0.25);
    position: absolute;
    top: 0;
    left: 0;
}

/* Shape assembly animations */
.shape-anim {
    transition: transform 0.5s ease, opacity 0.5s ease;
}

.stagger-in:not(.visible) .shape-circle {
    transform: scale(0);
}

.stagger-in:not(.visible) .shape-square {
    transform: rotate(45deg) scale(0);
}

.stagger-in:not(.visible) .shape-triangle {
    transform: scale(0);
    opacity: 0;
}

.stagger-in.visible .shape-circle {
    transform: scale(1);
    transition-delay: 0.3s;
}

.stagger-in.visible .shape-square {
    transform: rotate(45deg) scale(1);
    transition-delay: 0.45s;
}

.stagger-in.visible .shape-triangle {
    transform: scale(1);
    opacity: 1;
    transition-delay: 0.35s;
}

.sc-sm { width: 16px; height: 16px; top: 6px; left: 6px; background: var(--amber); opacity: 0.35; }
.sc-sm-alt { width: 14px; height: 14px; top: 20px; left: 34px; background: var(--amber); opacity: 0.4; }
.sc-md { width: 24px; height: 24px; top: 12px; left: 18px; background: var(--orange); opacity: 0.3; }
.sc-lg { width: 34px; height: 34px; top: 0; left: 0; background: var(--navy); opacity: 0.15; }

.feature-title {
    font-family: 'Manrope', sans-serif;
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--text);
    margin-bottom: 0.75rem;
    letter-spacing: -0.01em;
}

.feature-body {
    font-size: 0.92rem;
    color: rgba(26, 32, 44, 0.62);
    line-height: 1.65;
}

/* ===================== */
/* CODE SECTIONS         */
/* ===================== */
.code-section {
    padding: 5rem 2rem;
    max-width: 1040px;
    margin: 0 auto;
}

.code-dark {
    max-width: none;
    background: var(--dark);
    padding: 5rem calc((100% - 1000px) / 2 + 2rem);
}

.code-pair {
    display: flex;
    align-items: center;
    gap: 3.5rem;
}

.pair-reverse {
    flex-direction: row-reverse;
}

.pair-text {
    flex: 1;
}

.pair-title {
    font-family: 'Manrope', sans-serif;
    font-weight: 800;
    font-size: clamp(1.4rem, 2.5vw, 2.1rem);
    color: var(--text);
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.pt-light { color: var(--white); }

.pair-body {
    font-size: 0.95rem;
    color: rgba(26, 32, 44, 0.62);
    line-height: 1.7;
}

.pb-light { color: rgba(255, 255, 255, 0.62); }

/* Orange dot bullet lists */
.pair-list {
    list-style: none;
    margin-top: 1.25rem;
    padding: 0;
}

.pair-list li {
    position: relative;
    padding-left: 1.25rem;
    font-size: 0.9rem;
    color: rgba(26, 32, 44, 0.7);
    line-height: 1.8;
}

.pair-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.55em;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--orange);
}

.pair-list-light li {
    color: rgba(255, 255, 255, 0.6);
}

.pair-list-light li::before {
    background: var(--amber);
}

/* ===================== */
/* TICKER                */
/* ===================== */
.ticker-strip {
    background: var(--amber);
    padding: 0.85rem 0;
    overflow: hidden;
}

.ticker-track {
    display: flex;
    gap: 2rem;
    white-space: nowrap;
    animation: ticker 30s linear infinite;
    will-change: transform;
}

@keyframes ticker {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.ticker-item {
    font-family: 'Manrope', sans-serif;
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--text);
}

.ticker-sep {
    color: rgba(26, 32, 44, 0.25);
    font-weight: 700;
}

/* ===================== */
/* CLOSE                 */
/* ===================== */
.close-section {
    background: var(--orange);
    min-height: 50vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 5rem 2rem;
    position: relative;
}

.close-title {
    font-family: 'Manrope', sans-serif;
    font-weight: 800;
    font-size: clamp(2.2rem, 6vw, 4.5rem);
    color: var(--white);
    letter-spacing: -0.02em;
    line-height: 1.1;
}

.close-brand {
    font-family: 'Manrope', sans-serif;
    font-weight: 700;
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.45);
    margin-top: 1.5rem;
    letter-spacing: -0.01em;
}

.close-version {
    font-family: 'Fira Code', monospace;
    font-size: 0.65rem;
    color: rgba(255, 255, 255, 0.3);
    margin-top: 0.75rem;
}

/* Close-to-white gradient */
.close-gradient {
    height: 60px;
    background: linear-gradient(to bottom, var(--orange), var(--white));
}

/* ===================== */
/* FOOTER                */
/* ===================== */
.footer {
    padding: 2.5rem 2rem;
    text-align: center;
}

.footer-text {
    font-family: 'Inter', sans-serif;
    font-size: 0.8rem;
    color: rgba(26, 32, 44, 0.4);
}

/* ===================== */
/* FADE / SCROLL REVEAL  */
/* ===================== */
.fade-in {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===================== */
/* HOVER STATES          */
/* ===================== */
.feature-title:hover,
.pair-title:hover {
    border-bottom: 2px dashed var(--orange);
    display: inline-block;
}

.feature-title,
.pair-title {
    border-bottom: 2px dashed transparent;
    display: inline-block;
    transition: border-color 0.2s ease;
}

.feature-title:hover {
    border-color: var(--orange);
}

.pair-title:hover {
    border-color: var(--orange);
}

.pt-light:hover {
    border-color: var(--amber);
}

/* ===================== */
/* RESPONSIVE            */
/* ===================== */
@media (max-width: 768px) {
    .hero {
        flex-direction: column;
        gap: 2rem;
        padding: 3rem 1.5rem;
    }

    .hero-content {
        text-align: center;
    }

    .mini-terminal {
        width: 100%;
        max-width: 360px;
    }

    .hero-terminal {
        animation-name: slideInUp;
    }

    @keyframes slideInUp {
        0% { transform: translateY(40px); opacity: 0; }
        100% { transform: translateY(0); opacity: 1; }
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .code-pair,
    .pair-reverse {
        flex-direction: column;
    }

    .code-dark {
        padding: 3rem 1.5rem;
    }

    .hero-gradient {
        height: 50px;
    }
}
