:root {
    --bg: #0b0e13;
    --panel: #141a22;
    --panel-2: #10161d;
    --text: #f2f5f8;
    --muted: #a2b0c3;
    --brand: #ff7a45;
    --brand-2: #f0c36a;
    --accent: #38d9a9;
    --line: rgba(255, 255, 255, 0.08);
    --shadow: 0 24px 60px rgba(5, 9, 15, 0.55);
}

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

body {
    font-family: "Sora", sans-serif;
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
    line-height: 1.6;
}

.ambient {
    position: fixed;
    inset: 0;
    overflow: hidden;
    z-index: -1;
}

.mesh {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px);
    background-size: 64px 64px;
    opacity: 0.15;
}

.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(0);
    opacity: 0.45;
    animation: float 12s ease-in-out infinite;
}

.orb-1 {
    width: 420px;
    height: 420px;
    background: radial-gradient(circle, rgba(255, 122, 69, 0.6), transparent 70%);
    top: -120px;
    left: -140px;
}

.orb-2 {
    width: 520px;
    height: 520px;
    background: radial-gradient(circle, rgba(56, 217, 169, 0.45), transparent 70%);
    right: -200px;
    top: 120px;
    animation-delay: 2s;
}

.orb-3 {
    width: 360px;
    height: 360px;
    background: radial-gradient(circle, rgba(240, 195, 106, 0.45), transparent 70%);
    left: 30%;
    bottom: -140px;
    animation-delay: 4s;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-25px);
    }
}

.shell {
    max-width: 1150px;
    margin: 0 auto;
    padding: 32px 20px 80px;
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 14px;
}

.logo {
    width: 48px;
    /* height: 48px; */
    border-radius: 16px;
    background: linear-gradient(135deg, var(--brand), var(--accent));
    display: grid;
    place-items: center;
    font-family: "Space Grotesk", sans-serif;
    font-weight: 700;
    font-size: 20px;
}

.brand-name {
    font-family: "Space Grotesk", sans-serif;
    font-size: 20px;
    font-weight: 600;
}

.brand-sub {
    color: var(--muted);
    font-size: 14px;
}

.nav {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

.nav a {
    color: var(--muted);
    text-decoration: none;
    font-size: 14px;
    border-bottom: 1px solid transparent;
    transition: all 0.2s ease;
}

.nav a:hover {
    color: var(--text);
    border-color: var(--brand);
}

.hero {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
    align-items: center;
}

.hero-copy h1 {
    font-family: "Space Grotesk", sans-serif;
    font-size: clamp(32px, 4vw, 44px);
    line-height: 1.15;
    margin-bottom: 16px;
}

.eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: var(--accent);
    font-size: 12px;
    margin-bottom: 12px;
}

.lead {
    color: var(--muted);
    font-size: 16px;
    margin-bottom: 16px;
}

.chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.chip {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 12px;
}

.hero-card {
    background: var(--panel);
    border: 1px solid var(--line);
    padding: 20px;
    border-radius: 20px;
    box-shadow: var(--shadow);
}

.hero-card h2 {
    font-family: "Space Grotesk", sans-serif;
    font-size: 18px;
    margin-bottom: 12px;
}

.hero-card ol {
    display: grid;
    gap: 8px;
    color: var(--muted);
    padding-left: 18px;
}

.panel {
    background: linear-gradient(135deg, var(--panel), var(--panel-2));
    border: 1px solid var(--line);
    border-radius: 22px;
    padding: 22px;
    box-shadow: var(--shadow);
    animation: rise 0.6s ease;
}

@keyframes rise {
    from {
        opacity: 0;
        transform: translateY(18px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.panel-header {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 16px;
}

.panel-header p {
    color: var(--muted);
    font-size: 14px;
}

.grid {
    display: grid;
    gap: 16px;
}

.grid.two {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.field label {
    font-size: 13px;
    color: var(--muted);
}

input,
select,
textarea {
    background: rgba(15, 20, 28, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--text);
    padding: 12px 14px;
    border-radius: 12px;
    font-family: "Sora", sans-serif;
    font-size: 14px;
    outline: none;
    transition: border 0.2s ease;
}

input:focus,
select:focus,
textarea:focus {
    border-color: var(--accent);
}

.input-wrap {
    display: flex;
    gap: 8px;
}

.input-wrap input {
    flex: 1;
}

.actions {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 16px;
}

.primary {
    background: linear-gradient(135deg, var(--brand), var(--brand-2));
    border: none;
    color: #0c0e12;
    padding: 12px 18px;
    border-radius: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.primary:hover {
    transform: translateY(-1px);
}

.primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.ghost {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--line);
    color: var(--text);
    padding: 10px 14px;
    border-radius: 12px;
    cursor: pointer;
}

.hint {
    color: var(--muted);
    font-size: 13px;
}

.tabs {
    display: inline-flex;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 999px;
    padding: 4px;
    gap: 4px;
}

.tab {
    border: none;
    background: transparent;
    color: var(--muted);
    padding: 8px 16px;
    border-radius: 999px;
    cursor: pointer;
    font-size: 13px;
}

.tab.active {
    background: rgba(255, 255, 255, 0.12);
    color: var(--text);
}

.tab-pane {
    display: none;
    margin-top: 16px;
}

.tab-pane.active {
    display: block;
}

.status {
    padding: 12px 14px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--line);
    font-size: 13px;
    margin-bottom: 16px;
}

.status.error {
    border-color: rgba(255, 122, 69, 0.7);
    color: #ffd6c4;
}

.status.success {
    border-color: rgba(56, 217, 169, 0.7);
    color: #d7fff2;
}

.session {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px dashed rgba(255, 255, 255, 0.16);
    margin-bottom: 18px;
}

.session .label {
    font-size: 12px;
    color: var(--muted);
}

.session .value {
    font-family: "Space Grotesk", sans-serif;
    font-size: 14px;
    word-break: break-all;
}

.result-card {
    background: rgba(10, 14, 20, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 16px;
    border-radius: 16px;
    min-height: 140px;
}

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

.results-row .result-card {
    min-height: 220px;
}

.result-card h3 {
    font-family: "Space Grotesk", sans-serif;
    font-size: 16px;
    margin-bottom: 8px;
}

.result-body {
    color: var(--muted);
    font-size: 14px;
    white-space: pre-wrap;
}

.chat-box {
    display: grid;
    gap: 14px;
}

.chat-log {
    display: grid;
    gap: 10px;
    max-height: 280px;
    overflow-y: auto;
    padding-right: 6px;
}

.chat-bubble {
    padding: 12px 14px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 14px;
}

.chat-bubble.user {
    border-color: rgba(240, 195, 106, 0.4);
    background: rgba(240, 195, 106, 0.12);
}

.chat-input {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 12px;
}

.footer {
    text-align: center;
    color: var(--muted);
    font-size: 12px;
}

@media (max-width: 720px) {
    .topbar {
        flex-direction: column;
        align-items: flex-start;
    }

    .nav {
        width: 100%;
        justify-content: flex-start;
    }

    .chat-input {
        grid-template-columns: 1fr;
    }

    .results-row .result-card {
        min-height: 260px;
    }

    .result-body {
        font-size: 15px;
    }
}