/* chloengine.com - Frutiger Aero Glossy Tech Product Page */

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

:root {
    --ice-blue: #F0F4FF;
    --page-white: #FFFFFF;
    --product-blue: #4F8BFF;
    --product-blue-hover: #3B73E6;
    --soft-green: #34D399;
    --soft-amber: #FBBF24;
    --dark-navy: #1A2438;
    --slate: #5A6B84;
    --light-gray: #E2E8F0;
    --code-dark: #1E2433;
}

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

/* ============================
   HERO
   ============================ */

#hero {
    width: 100%;
    height: 100vh;
    background: linear-gradient(180deg, var(--ice-blue) 0%, var(--page-white) 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
}

#hero-logo {
    width: 120px;
    height: 120px;
    background-color: var(--product-blue);
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    position: relative;
    opacity: 0;
    transform: scale(0.8);
    transition: opacity 0.5s ease, transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    cursor: pointer;
}

#hero-logo.visible {
    opacity: 1;
    transform: scale(1);
}

#hero-logo:hover {
    transform: scale(1) rotate(30deg);
}

.logo-gloss {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.5) 0%, rgba(255, 255, 255, 0) 50%);
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    transition: background-position 0.4s ease;
}

#hero-title {
    font-family: 'Work Sans', sans-serif;
    font-weight: 600;
    font-size: clamp(2.5rem, 5vw, 4rem);
    color: var(--dark-navy);
    opacity: 0;
    transition: opacity 0.4s ease;
}

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

#hero-tagline {
    font-family: 'Work Sans', sans-serif;
    font-weight: 400;
    font-size: clamp(0.95rem, 1.3vw, 1.15rem);
    color: var(--slate);
    opacity: 0;
    transition: opacity 0.4s ease;
}

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

.aero-button {
    display: inline-block;
    font-family: 'Work Sans', sans-serif;
    font-weight: 600;
    font-size: 1rem;
    color: var(--page-white);
    background-color: var(--product-blue);
    border: none;
    border-radius: 100px;
    padding: 12px 32px;
    cursor: pointer;
    text-decoration: none;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3), 0 2px 4px rgba(79, 139, 255, 0.3);
    transition: background-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
    opacity: 0;
}

.aero-button.visible {
    opacity: 1;
}

.aero-button:hover {
    background-color: var(--product-blue-hover);
    transform: translateY(-1px);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3), 0 4px 8px rgba(79, 139, 255, 0.35);
}

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

#features {
    padding: 6rem 4vw;
    background-color: var(--page-white);
}

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

.feature-card {
    background-color: var(--page-white);
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    padding: 32px;
    text-align: center;
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.4s ease, transform 0.4s ease, box-shadow 0.2s ease;
}

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

.feature-card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.icon-circle {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease;
}

.feature-card:hover .icon-circle {
    transform: scale(1.1);
}

.icon-blue {
    background: radial-gradient(circle at 30% 30%, #93B5FF, #4F8BFF);
}

.icon-green {
    background: radial-gradient(circle at 30% 30%, #86EFAC, #34D399);
}

.icon-amber {
    background: radial-gradient(circle at 30% 30%, #FDE68A, #FBBF24);
}

.icon-shape {
    width: 18px;
    height: 18px;
}

.shape-triangle {
    width: 0;
    height: 0;
    border-left: 9px solid transparent;
    border-right: 9px solid transparent;
    border-bottom: 16px solid rgba(255, 255, 255, 0.8);
}

.shape-circle {
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.8);
    border-radius: 50%;
}

.shape-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3px;
    width: 16px;
    height: 16px;
}

.shape-grid::before,
.shape-grid::after {
    content: '';
    width: 6px;
    height: 6px;
    border: 1.5px solid rgba(255, 255, 255, 0.8);
    border-radius: 1px;
}

.feature-card h3 {
    font-family: 'Work Sans', sans-serif;
    font-weight: 600;
    font-size: clamp(1.2rem, 2vw, 1.6rem);
    color: var(--dark-navy);
    margin-bottom: 0.75rem;
}

.feature-card p {
    font-family: 'Work Sans', sans-serif;
    font-weight: 400;
    color: var(--slate);
    line-height: 1.7;
}

/* ============================
   CODE COMPARISON
   ============================ */

#code-comparison {
    padding: 4rem 4vw;
    background-color: var(--ice-blue);
}

.split-container {
    display: flex;
    max-width: 1000px;
    margin: 0 auto;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.panel-code {
    flex: 1;
    background-color: var(--code-dark);
    color: var(--page-white);
}

.panel-result {
    flex: 1;
    background-color: var(--page-white);
}

.panel-header {
    padding: 12px 20px;
    font-family: 'Work Sans', sans-serif;
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.panel-result .panel-header {
    color: var(--slate);
    border-bottom: 1px solid var(--light-gray);
}

.panel-divider {
    width: 2px;
    background-color: var(--light-gray);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 8px;
    background-color: var(--page-white);
}

.code-block {
    padding: 1.5rem;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85rem;
    line-height: 1.8;
    overflow-x: auto;
}

.kw { color: var(--product-blue); }
.str { color: var(--soft-green); }
.num { color: var(--soft-amber); }
.cm { color: var(--slate); }
.id { color: var(--page-white); }

.result-viewport {
    padding: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 300px;
    position: relative;
}

.result-cube {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--product-blue), #3B73E6);
    border-radius: 4px;
    transform: perspective(400px) rotateX(10deg) rotateY(-20deg);
    box-shadow: 8px 12px 24px rgba(79, 139, 255, 0.2);
}

.result-ground {
    position: absolute;
    bottom: 2rem;
    width: 60%;
    height: 1px;
    background: var(--light-gray);
}

.result-shadow {
    position: absolute;
    bottom: calc(2rem - 8px);
    width: 60px;
    height: 8px;
    background: radial-gradient(ellipse, rgba(0, 0, 0, 0.1) 0%, transparent 70%);
}

/* ============================
   METRICS
   ============================ */

#metrics {
    padding: 5rem 4vw;
    background-color: var(--page-white);
}

.metrics-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.metric-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.metric-number {
    font-family: 'Work Sans', sans-serif;
    font-weight: 700;
    font-size: 3rem;
    color: var(--product-blue);
}

.metric-label {
    font-family: 'Work Sans', sans-serif;
    font-weight: 400;
    font-size: 0.85rem;
    color: var(--slate);
}

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

#community-footer {
    background-color: var(--ice-blue);
    padding: 3rem 4vw;
}

.footer-content {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 2rem;
}

.footer-wordmark {
    font-family: 'Work Sans', sans-serif;
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--dark-navy);
}

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

.footer-links span {
    font-family: 'Work Sans', sans-serif;
    font-size: 0.85rem;
    color: var(--slate);
    cursor: pointer;
    transition: color 0.2s ease;
}

.footer-links span:hover {
    color: var(--product-blue);
}

.contrib-graph {
    display: grid;
    grid-template-columns: repeat(12, 10px);
    grid-template-rows: repeat(3, 10px);
    gap: 2px;
}

.contrib-cell {
    width: 10px;
    height: 10px;
    border-radius: 2px;
}

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

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

    .split-container {
        flex-direction: column;
    }

    .panel-divider {
        width: 100%;
        height: 2px;
        padding: 8px 0;
    }

    .metrics-row {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }
}
