:root {
    --bg: #07101d;
    --text: #f7f9fc;
    --muted: #a8b2c3;
    --line: rgba(255, 255, 255, .1);
    --coral: #ff665b;
    --orange: #ff9b65;
    --pink: #ff4f7a
}

* {
    box-sizing: border-box
}

body {
    margin: 0;
    min-height: 100vh;
    color: var(--text);
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: radial-gradient(circle at 15% 15%, rgba(255, 82, 106, .12), transparent 30%), linear-gradient(145deg, #050a12, #07101d 48%, #081422)
}

button, input, select, textarea {
    font: inherit
}

button {
    cursor: pointer
}

.topbar, .app-shell, .site-footer {
    width: min(1180px, calc(100% - 32px));
    margin: auto
}

.topbar {
    height: 84px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--line)
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    border: 0;
    background: none;
    color: #fff;
    padding: 8px
}

.brand-logo {
    width: 48px;
    height: 34px;
    object-fit: contain
}

.brand strong {
    color: var(--coral)
}

.nav-actions, .session-header-actions {
    display: flex;
    gap: 8px;
    align-items: center
}

.screen {
    display: none;
    min-height: calc(100vh - 160px);
    padding: 60px 0
}

.screen.active {
    display: block
}

.hero {
    text-align: center;
    max-width: 850px;
    margin: auto
}

.hero-logo {
    width: min(520px, 90%);
    max-height: 180px;
    object-fit: contain
}

.eyebrow {
    font-size: .76rem;
    letter-spacing: .18em;
    font-weight: 800;
    color: #ff9c82
}

.hero h1, h2 {
    letter-spacing: -.05em;
    line-height: 1.02
}

.hero h1 {
    font-size: clamp(2.8rem, 7vw, 5.8rem);
    margin: 12px 0 22px
}

.hero-copy, .body-copy {
    color: var(--muted);
    line-height: 1.75;
    max-width: 720px;
    margin: 0 auto 28px
}

.body-copy.left {
    margin-left: 0
}

.hero-actions {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap
}

.primary-btn, .ghost-btn {
    border-radius: 999px;
    border: 1px solid transparent;
    min-height: 48px;
    padding: 0 22px;
    font-weight: 750;
    display: inline-flex;
    align-items: center;
    justify-content: center
}

.primary-btn {
    color: #fff;
    background: linear-gradient(100deg, var(--orange), var(--coral) 52%, var(--pink))
}

.ghost-btn {
    color: #fff;
    background: rgba(255, 255, 255, .035);
    border-color: var(--line)
}

.small {
    min-height: 40px;
    padding: 0 17px;
    font-size: .9rem
}

.large {
    min-height: 56px;
    padding: 0 28px
}

.full {
    width: 100%
}

.microcopy {
    color: #738096;
    font-size: .86rem
}

.panel, .conversation-card, .side-card {
    background: linear-gradient(155deg, rgba(255, 255, 255, .055), rgba(255, 255, 255, .022));
    border: 1px solid var(--line);
    backdrop-filter: blur(18px)
}

.panel {
    margin: auto;
    border-radius: 26px;
    padding: clamp(26px, 5vw, 52px)
}

.panel.narrow {
    max-width: 720px
}

.panel.medium {
    max-width: 900px
}

.back-link, .text-btn {
    border: 0;
    background: none;
    color: #c9d1dc;
    padding: 0
}

.back-link {
    margin-bottom: 32px
}

.journey-step {
    display: grid;
    grid-template-columns:44px 1fr;
    gap: 16px;
    padding: 16px 0;
    border-bottom: 1px solid var(--line)
}

.journey-step > span {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, var(--coral), var(--orange));
    font-weight: 800
}

.journey-step p, .mode-card p, .side-card p {
    color: var(--muted)
}

.check-row {
    display: flex;
    gap: 12px;
    margin: 20px 0
}

.stack-form {
    display: grid;
    gap: 18px
}

.stack-form label {
    display: grid;
    gap: 8px
}

.stack-form input, .stack-form select {
    width: 100%;
    border: 1px solid var(--line);
    background: #0b1626;
    color: #fff;
    border-radius: 14px;
    padding: 14px
}

.stack-form small {
    color: #7e8b9d
}

.secret-row {
    display: grid;
    grid-template-columns:1fr auto;
    gap: 8px
}

.status-box {
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 12px 14px;
    font-size: .9rem
}

.status-box.ok {
    color: #9ff0c5;
    border-color: rgba(88, 217, 156, .35)
}

.status-box.bad {
    color: #ffaaaa;
    border-color: rgba(255, 100, 100, .35)
}

.status-box.neutral {
    color: #9eabba
}

.mode-grid {
    display: grid;
    grid-template-columns:1fr 1fr;
    gap: 16px
}

.mode-card {
    display: grid;
    grid-template-columns:58px 1fr 20px;
    gap: 16px;
    align-items: center;
    text-align: left;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, .035);
    color: #fff;
    border-radius: 22px;
    padding: 24px
}

.mode-icon {
    width: 54px;
    height: 54px;
    border-radius: 16px;
    display: grid;
    place-items: center;
    background: rgba(255, 100, 90, .12)
}

.session-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px
}

.session-status {
    display: flex;
    gap: 7px;
    align-items: center;
    color: #9eabba;
    font-size: .85rem
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #58d99c
}

.session-layout {
    display: grid;
    grid-template-columns:minmax(0, 1fr) 280px;
    gap: 18px
}

.conversation-card {
    border-radius: 28px;
    min-height: 650px;
    display: flex;
    flex-direction: column;
    overflow: hidden
}

.conversation-intro {
    padding: 30px;
    border-bottom: 1px solid var(--line)
}

.messages {
    padding: 20px 26px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    min-height: 180px;
    max-height: 370px;
    overflow: auto
}

.message {
    display: flex;
    flex-direction: column;
    gap: 5px;
    max-width: 82%
}

.message.user {
    align-self: flex-end;
    align-items: flex-end
}

.message.assistant {
    align-self: flex-start
}

.message-bubble {
    padding: 13px 16px;
    border-radius: 18px;
    line-height: 1.55;
    white-space: pre-wrap
}

.user .message-bubble {
    background: linear-gradient(120deg, #ff8061, #ff5e74);
    border-bottom-right-radius: 6px
}

.assistant .message-bubble {
    background: #132238;
    border: 1px solid var(--line);
    border-bottom-left-radius: 6px
}

.message-bubble.streaming::after {
    content: "";
    display: inline-block;
    width: 7px;
    height: 1em;
    margin-left: 4px;
    background: #ff8e73;
    vertical-align: -2px;
    animation: blink .8s infinite
}

@keyframes blink {
    50% {
        opacity: .2
    }
}

.message-label {
    font-size: .7rem;
    color: #748198
}

.composer {
    margin: auto 18px 18px;
    display: grid;
    grid-template-columns:1fr 48px;
    gap: 10px;
    padding: 10px;
    border-radius: 20px;
    background: #0b1626;
    border: 1px solid var(--line)
}

.composer textarea {
    resize: none;
    border: 0;
    background: transparent;
    color: #fff;
    padding: 12px;
    min-height: 48px;
    max-height: 150px
}

.send-btn {
    width: 48px;
    height: 48px;
    border: 0;
    border-radius: 15px;
    color: #fff;
    background: linear-gradient(135deg, var(--orange), var(--pink));
    font-size: 1.35rem
}

.session-side {
    display: flex;
    flex-direction: column;
    gap: 14px
}

.side-card {
    padding: 20px;
    border-radius: 20px
}

.side-label {
    font-size: .68rem;
    letter-spacing: .16em;
    color: #7f8da1;
    font-weight: 800
}

.voice-panel {
    text-align: center;
    padding: 20px
}

.hidden {
    display: none !important
}

.visualizer {
    height: 50px;
    display: flex;
    gap: 6px;
    align-items: center;
    justify-content: center
}

.visualizer i {
    width: 5px;
    height: 14px;
    border-radius: 999px;
    background: linear-gradient(var(--orange), var(--pink))
}

.visualizer.active i {
    animation: wave .75s ease-in-out infinite alternate
}

.visualizer.active i:nth-child(2n) {
    animation-delay: -.25s
}

@keyframes wave {
    to {
        height: 44px
    }
}

.mic-button {
    width: 84px;
    height: 84px;
    border-radius: 50%;
    border: 0;
    background: linear-gradient(145deg, #ff9063, #ff506f);
    color: #fff
}

.live-transcript {
    margin: 16px auto;
    min-height: 28px;
    color: #dfe5ee;
    font-style: italic
}

.quiet-wrap {
    min-height: calc(100vh - 240px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center
}

.pulse-ring {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    border: 1px solid rgba(255, 116, 92, .3);
    display: grid;
    place-items: center
}

.pulse-core {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(145deg, var(--coral), var(--orange))
}

.countdown {
    font-size: 3.2rem;
    color: #ffad8c
}

.end-panel {
    text-align: center
}

.centered {
    display: block;
    margin: 20px auto
}

.privacy-copy {
    color: var(--muted);
    line-height: 1.7
}

.site-footer {
    border-top: 1px solid var(--line);
    padding: 20px 0 28px;
    color: #718096;
    display: flex;
    justify-content: space-between;
    font-size: .8rem
}

.danger {
    color: #ffaaaa
}

.mobile-pause-btn {
    display: none
}

@media (max-width: 850px) {
    .mode-grid {
        grid-template-columns:1fr
    }

    .session-layout {
        grid-template-columns:1fr
    }

    .session-side {
        display: grid;
        grid-template-columns:repeat(3, 1fr)
    }
}

@media (max-width: 600px) {
    .topbar, .app-shell, .site-footer {
        width: min(100% - 22px, 1180px)
    }

    .screen {
        padding: 34px 0
    }

    .nav-actions .ghost-btn {
        display: none
    }

    .hero-logo {
        max-height: 130px
    }

    .hero-actions {
        display: grid
    }

    .panel {
        padding: 24px 20px
    }

    .session-status {
        display: none !important
    }

    .session-side {
        display: none
    }

    .session-header .brand span {
        display: none
    }

    .mobile-pause-btn {
        display: inline-flex !important
    }

    .conversation-card {
        min-height: calc(100vh - 130px);
        border-radius: 22px
    }

    .conversation-intro {
        padding: 22px 18px
    }

    .messages {
        padding: 16px;
        max-height: 45vh
    }

    .message {
        max-width: 92%
    }

    .composer {
        margin: 12px
    }

    .site-footer {
        flex-direction: column;
        gap: 5px
    }
}