@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,500;9..144,600;9..144,700&family=Inter:wght@400;500;600;700&display=swap');

:root {
    color-scheme: light;

    --bg: #f5f5fa;
    --surface: #FFFFFF;
    --surface-tint: #f2f4ff;
    --ink: #1B211D;
    --ink-soft: #565F58;
    --ink-faint: #868a8f;
    --line: #d8dae2;

    --accent: #a7afe8f0;
    --accent-deep: #6264b3;
    --accent-soft: rgba(199, 125, 46, 0.12);

    --font-display: "Fraunces", Georgia, serif;
    --font-body: "Inter", "Segoe UI", Arial, sans-serif;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;

    font-family: var(--font-body);
    color: var(--ink);
    background: var(--bg);

    display: flex;
    justify-content: center;

    padding: 40px 20px;

    position: relative;
    overflow-x: hidden;
}

/* =====================================================
   PAGE SHELL
===================================================== */

.page-shell {
    width: min(1000px, 100%);

    display: grid;
    gap: 20px;
}

/* =====================================================
   CARDS
===================================================== */

.hero-card,
.demo-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 20px;
}

/* =====================================================
   HERO
===================================================== */

.hero-card {
    position: relative;
    overflow: hidden;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;

    padding: 56px 32px;
    text-align: center;
}

.hero-glow {
    position: absolute;
    top: -35%;
    left: 50%;
    transform: translateX(-50%);

    width: 60vw;
    height: 60vw;
    max-width: 520px;
    max-height: 520px;

    background: radial-gradient(circle, rgba(46, 128, 199, 0.24) 0%, rgba(46, 77, 199, 0.08) 45%, rgba(51, 46, 199, 0) 72%);
    pointer-events: none;
}

.hero-copy {
    position: relative;
    z-index: 1;

    width: 100%;

    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.top-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;

    margin-bottom: 8px;
}

.eyebrow {
    margin: 0;

    font-family: var(--font-body);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.78rem;
    font-weight: 600;

    color: var(--accent-deep);
    text-align: center;
}

.version-pill {
    margin: 0;
    padding: 5px 10px;

    border-radius: 999px;
    background: var(--surface-tint);
    border: 1px solid var(--line);

    font-family: var(--font-body);
    font-size: 0.7rem;
    font-weight: 600;

    color: var(--ink-soft);
}

/* =====================================================
   GENERAL TEXT
===================================================== */

h1, h2, h3, p {
    margin: -50;
}

h1, h2, h3 {
    font-family: var(--font-display);
    letter-spacing: -0.01em;
    font-weight: 600;
    color: var(--ink);
}

.hero-text {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--ink-soft);
    max-width: 560px;
    text-align: center;
    margin-top: -15px;
}

/* =====================================================
   LUMEN LOGO
===================================================== */

.hero-visual {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.hero-visual img {
    width: min(300px, 100%);
    display: block;
    margin: 0 auto 6px;
}

/* =====================================================
   DEMO
===================================================== */

.demo-card {
    padding: 28px;
}

.demo-header {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 20px;
}

.demo-header h2 {
    font-size: 1.4rem;
}

.demo-header p {
    color: var(--ink-soft);
    font-size: 0.95rem;
}

#app-root {
    display: grid;
    justify-content: center;
    gap: 16px;

    padding: 22px;
    border-radius: 16px;

    background: var(--surface-tint);
    border: 1px solid var(--line);
}

/* =====================================================
   CANVAS
===================================================== */

canvas {
    border-radius: 12px;
    background: #000;
    border: 1px solid var(--line);
    max-width: 100%;
}

/* =====================================================
   VOICE BUTTON
===================================================== */

.voice-button {
    padding: 14px 20px;
    border-radius: 999px;

    border: 1px solid var(--ink);
    background: var(--ink);
    color: var(--bg);

    font-weight: 600;
    font-family: var(--font-body);
    letter-spacing: 0.01em;

    cursor: pointer;

    transition: background 0.15s ease, transform 0.15s ease;
}

.voice-button:hover {
    background: var(--accent-deep);
    border-color: var(--accent-deep);
    transform: translateY(-1px);
}

.voice-button:active {
    transform: translateY(0);
}


/* =====================================================
   HOME
===================================================== */
.home-button {
    display: inline-block;
    margin-top: 8px;

    color: var(--accent);
    text-decoration: none;

    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 600;

    cursor: pointer;

    transition: color 0.15s ease;
}

.home-button:hover {
    color: var(--ink);
    text-decoration: underline;
}

.home-button:active {
    color: var(--accent-deep);
}
/* =====================================================
   COMMUNICATION BOARD
===================================================== */

.communication-board {
    display: grid;
    grid-template-columns: repeat(3, minmax(90px, 1fr));
    gap: 10px;

    width: min(100%, 480px);
    margin: 0 auto;
}

.communication-button {
    padding: 12px 8px;
    min-height: 54px;

    border-radius: 12px;
    border: 1px solid var(--line);

    background: var(--surface);
    color: var(--ink);

    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.92rem;

    cursor: pointer;

    transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.communication-button:hover {
    border-color: var(--accent-deep);
    color: var(--accent-deep);
}

.communication-button:focus-visible,
.voice-button:focus-visible {
    outline: 2px solid var(--accent-deep);
    outline-offset: 2px;
}

.communication-button.active {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--ink);
}

/* =====================================================
   REDUCED MOTION
===================================================== */

@media (prefers-reduced-motion: reduce) {
    .voice-button,
    .communication-button {
        transition: none;
    }
}



/* =====================================================
   MOBILE / RESPONSIVE SCALING
===================================================== */

@media (max-width: 800px) {

    body {
        padding: 16px 10px;
    }

    .page-shell,
    .hero-card,
    .demo-card {
        width: 100%;
    }

    /* Scale the overall Lumen interface */
    .page-shell {
        transform: scale(0.90);
        transform-origin: top center;
        width: 111.11%;
        margin-left: -5.56%;
    }

    .hero-card {
        padding: 34px 15px;
    }

    .hero-visual img {
        width: min(105px, 70%);
    }

    .demo-card {
        padding: 15px 10px;
    }

    #app-root {
        padding: 10px;
        gap: 10px;
    }

    canvas {
        max-width: 100%;
        height: auto !important;
    }

    .communication-board {
        width: 100%;
        gap: 6px;
    }

    .communication-button {
        min-height: 44px;
        padding: 8px 4px;
        font-size: 1 rem;
    }

    .voice-button {
        max-width: 250px;
        padding: 10px 14px;
        font-size: 0.79rem;
    }
}

/* =====================================================
   SMALLER PHONES
===================================================== */

@media (max-width: 450px) {

    .page-shell {
        transform: scale(0.85);
        width: 117.65%;
        margin-left: -8.82%;
    }

    .hero-card {
        padding: 30px 14px;
    }

    .hero-visual img {
        width: min(95px, 65%);
    }

    .demo-card {
        padding: 12px 7px;
    }

    #app-root {
        padding: 7px;
        gap: 8px;
    }

    .communication-board {
        gap: 5px;
    }

    .communication-button {
        min-height: 39px;
        padding: 6px 3px;
        font-size: 0.68rem;
    }

    .demo-header h2 {
        font-size: 1rem;
    }

    .demo-header p {
        font-size: 0.7rem;
    }

    .voice-button {
        max-width: 230px;
        padding: 9px 13px;
        font-size: 0.75rem;
    }
}