/* ========================================
   CHILDO PROMO - SITE.CSS
   Base styles, layout, components
   ======================================== */

:root {
    /* === Childo App Design System Colors === */
    --color-bg: #123f80;             /* kBgColor */
    --color-bg-secondary: #0e357a;   /* darker variant */
    --color-bg-accent: #2231B0;      /* kTitleColor */
    --color-accent: #6F39D5;         /* kSecondaryButtonColor */
    --color-accent-light: #8B5CF6;
    --color-btn: #FA558A;            /* kPrimaryButtonColor */
    --color-btn-hover: #FC7AB0;
    --color-btn-active: #E03975;
    --color-gold: #FFBA00;           /* PixelTitle gradient mid */
    --color-gold-light: #FFE97E;
    --color-gold-dark: #FA8D2D;
    --color-gold-deep: #8B4D11;      /* PixelTitle outline */
    --color-white: #ffffff;
    --color-text: #ffffff;
    --color-text-muted: #A8C4E8;     /* muted text on blue bg */
    --color-card-bg: #FFF9F3;        /* kPanelColor */
    --color-card-text: #1e293b;
    /* Panel triple-border colors */
    --color-panel-outer: #2B2798;    /* PixelPanel outerColor */
    --color-panel-middle: #63CCFF;   /* PixelPanel middleColor */
    --color-panel-inner: #9BE6FF;    /* PixelPanel innerColor */
    --font-pixel: 'PixeloidSans', monospace;
    --font-body: 'PixeloidSans', 'Courier New', monospace;
    --section-padding: 5rem 1.5rem;
    --transition-fast: 120ms ease;
    --transition-base: 250ms ease;
}

@font-face {
    font-family: 'PixeloidSans';
    src: url('/fonts/PixeloidSans.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'PixeloidSans';
    src: url('/fonts/PixeloidSans-Bold.otf') format('opentype');
    font-weight: bold;
    font-style: normal;
    font-display: swap;
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    background-color: var(--color-bg);
    color: var(--color-text);
    line-height: 1.6;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    image-rendering: pixelated;
}

a {
    color: inherit;
    text-decoration: none;
}

.section-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: var(--section-padding);
}

.section-dark {
    background-color: var(--color-bg-secondary);
}

.section-accent {
    background-color: var(--color-bg-accent);
}

.section-title {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 3rem;
}

/* HEADER - base styles (colors/borders in pixel.css) */
.header-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    font-weight: bold;
}

.logo-icon {
    font-size: 1.75rem;
}

.logo-text {
    /* Gold gradient applied via .pixel-logo in pixel.css */
    letter-spacing: 2px;
    text-transform: uppercase;
}

.header-nav {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

/* HERO */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px;
    overflow: hidden;
    background: linear-gradient(160deg, var(--color-bg-accent) 0%, var(--color-bg) 60%);
}

.hero-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 4rem 1.5rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.hero-subtitle {
    font-size: 1.1rem;
    color: var(--color-text-muted);
    margin-bottom: 2.5rem;
    max-width: 480px;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* PHONE MOCKUP */
.hero-mockup {
    display: flex;
    justify-content: center;
    align-items: center;
}

.pixel-phone {
    width: 260px;
    height: 520px;
    border: 4px solid var(--color-panel-inner);
    box-shadow:
        0 0 0 4px var(--color-panel-middle),
        0 0 0 8px var(--color-panel-outer);
    background-color: var(--color-bg);
    position: relative;
    display: flex;
    flex-direction: column;
    border-radius: 20px;
    overflow: hidden;
    margin: 12px;
}

.phone-screen {
    flex: 1;
    padding: 2rem 1rem 1rem;
    background: var(--color-bg-secondary);
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.phone-screen-content {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.pixel-coin-display {
    font-size: 1.5rem;
    color: var(--color-gold);
    text-align: center;
    padding: 0.5rem;
    border: 2px solid var(--color-panel-middle);
    background: rgba(99, 204, 255, 0.15);
    border-radius: 4px;
}

.pixel-task-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.pixel-task-item {
    padding: 0.5rem 0.75rem;
    border: 2px solid var(--color-panel-inner);
    font-size: 0.8rem;
    background: rgba(155, 230, 255, 0.1);
    border-radius: 4px;
}

.pixel-task-item.done {
    border-color: #22c55e;
    background: rgba(34, 197, 94, 0.1);
    color: #86efac;
    text-decoration: line-through;
}

/* HOW IT WORKS */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
}

.step-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.75rem;
    padding: 2rem 1.5rem;
}

.step-icon {
    font-size: 2.5rem;
}

.step-title {
    font-size: 1.1rem;
    color: var(--color-card-text);
    font-weight: bold;
}

.step-desc {
    font-size: 0.85rem;
    color: #475569;
    line-height: 1.7;
}

.screenshot-placeholder {
    width: 100%;
    min-height: 120px;
    border: 2px dashed var(--color-panel-middle);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    background: rgba(99, 204, 255, 0.05);
    color: var(--color-panel-middle);
    margin-top: 0.5rem;
}

/* STORY SECTION */
.story-section {
    padding: 0;
    background: var(--color-bg);
}

.story-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 5rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 6rem;
}

.story-block {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.story-block-reverse {
    direction: rtl;
}

.story-block-reverse > * {
    direction: ltr;
}

.story-number {
    font-size: 4rem;
    color: var(--color-panel-middle);
    opacity: 0.3;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.story-title {
    font-size: 1.75rem;
    margin-bottom: 1rem;
}

.story-desc {
    font-size: 1rem;
    color: var(--color-text-muted);
    line-height: 1.8;
    max-width: 400px;
}

.story-visual {
    display: flex;
    justify-content: center;
}

.screenshot-mockup {
    width: 100%;
    max-width: 300px;
    min-height: 400px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 2rem;
}

.screenshot-icon {
    font-size: 4rem;
}

.screenshot-label {
    font-size: 0.9rem;
    color: #475569;
    text-align: center;
}

/* BENEFITS */
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 1.5rem;
}

.benefit-card {
    padding: 2rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.benefit-icon {
    font-size: 2.5rem;
}

.benefit-title {
    font-size: 1.1rem;
    color: var(--color-card-text);
    font-weight: bold;
}

.benefit-desc {
    font-size: 0.85rem;
    color: #475569;
    line-height: 1.7;
}

/* CTA */
.cta-section {
    position: relative;
    background: linear-gradient(160deg, var(--color-bg-accent) 0%, var(--color-bg) 100%);
    overflow: hidden;
}

.cta-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 2rem;
}

.cta-title {
    font-size: clamp(2rem, 5vw, 3rem);
}

.cta-subtitle {
    font-size: 1.1rem;
    color: var(--color-text-muted);
    max-width: 500px;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

.cta-visual {
    padding: 2rem;
}

.pixel-celebration {
    display: flex;
    gap: 1.5rem;
    font-size: 2.5rem;
    align-items: center;
}

/* LEGAL - see pixel.css for legal section styles */

/* RESPONSIVE */
@media (max-width: 768px) {
    .hero-inner {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-subtitle {
        max-width: 100%;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-mockup {
        display: none;
    }

    .story-block,
    .story-block-reverse {
        grid-template-columns: 1fr;
        direction: ltr;
        gap: 2rem;
    }

    .story-desc {
        max-width: 100%;
    }

    .steps-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .benefits-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .steps-grid,
    .benefits-grid {
        grid-template-columns: 1fr;
    }

    .header-cta {
        display: none;
    }
}
