/* --- Landing page --- */

#home-page {
    padding: 0;
}

.hero {
    min-height: 100vh;
    width: min(1180px, calc(100% - 48px));
    margin: 0 auto;
    padding: 120px 0 56px;
    display: grid;
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
    gap: 56px;
    align-items: center;
}

.hero-copy {
    position: relative;
    z-index: 1;
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
}

.hero-brand {
    font-family: var(--font-display);
    font-size: clamp(2.1rem, 4.2vw, 3.2rem);
    font-weight: 800;
    letter-spacing: -0.05em;
    line-height: 1;
    margin-bottom: 18px;
    max-width: 100%;
    overflow-wrap: anywhere;
    background: linear-gradient(120deg, #ffffff 20%, #b8c7ff 55%, #6f8cff 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: brand-in 0.9s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.hero-copy h1 {
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 3.4vw, 2.6rem);
    font-weight: 700;
    letter-spacing: -0.04em;
    line-height: 1.1;
    color: var(--text-primary);
    margin-bottom: 28px;
    animation: rise-in 0.8s 0.12s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.hero-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    animation: rise-in 0.8s 0.22s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.btn {
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 600;
    padding: 12px 22px;
    border-radius: 999px;
    border: 1px solid transparent;
    transition: transform 0.25s ease, background 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-primary {
    background: linear-gradient(135deg, #6b8cff, #3f66f0);
    color: #fff;
    box-shadow: 0 10px 30px rgba(63, 102, 240, 0.35);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 36px rgba(63, 102, 240, 0.45);
}

.btn-ghost {
    background: transparent;
    color: var(--text-secondary);
    border-color: var(--border-strong);
}

.btn-ghost:hover {
    color: var(--text-primary);
    border-color: rgba(255, 255, 255, 0.28);
    background: rgba(255, 255, 255, 0.03);
    transform: translateY(-2px);
}

/* Menu showcase */
.menu-stage {
    position: relative;
    z-index: 2;
    min-width: 0;
    width: 100%;
    isolation: isolate;
    animation: stage-in 1s 0.2s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.menu-tabs {
    display: flex;
    gap: 6px;
    flex-wrap: nowrap;
    margin-bottom: 14px;
    padding: 6px;
    border-radius: 14px;
    background: rgba(12, 14, 18, 0.7);
    border: 1px solid var(--border-primary);
    backdrop-filter: blur(10px);
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.menu-tabs::-webkit-scrollbar {
    display: none;
}

.menu-tab {
    appearance: none;
    border: 0;
    background: transparent;
    color: var(--text-muted);
    font-family: var(--font-body);
    font-size: 0.82rem;
    font-weight: 600;
    padding: 9px 14px;
    border-radius: 10px;
    cursor: pointer;
    white-space: nowrap;
    flex: 0 0 auto;
    transition: color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.menu-tab:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.04);
}

.menu-tab.active {
    color: #fff;
    background: var(--accent-soft);
    box-shadow: inset 0 0 0 1px rgba(79, 124, 255, 0.35);
}

.menu-frame {
    position: relative;
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid var(--border-strong);
    background: #0a0c10;
    box-shadow:
        0 30px 80px rgba(0, 0, 0, 0.55),
        0 0 0 1px rgba(255, 255, 255, 0.03) inset;
    aspect-ratio: 16 / 10;
}

.menu-glow {
    position: absolute;
    inset: -20% -10% auto;
    height: 55%;
    background: radial-gradient(circle at 50% 0%, rgba(79, 124, 255, 0.28), transparent 70%);
    pointer-events: none;
    z-index: 1;
    transition: opacity 0.45s ease;
}

.menu-preview {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: left top;
    opacity: 0;
    transform: scale(1.03) translateY(8px);
    transition: opacity 0.45s ease, transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
    z-index: 2;
}

.menu-preview.is-active {
    opacity: 1;
    transform: scale(1) translateY(0);
}

.menu-preview.is-leaving {
    opacity: 0;
    transform: scale(0.985) translateY(-6px);
}

.menu-progress {
    margin-top: 12px;
    height: 3px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    overflow: hidden;
}

.menu-progress span {
    display: block;
    height: 100%;
    width: 0%;
    border-radius: inherit;
    background: linear-gradient(90deg, #6b8cff, #9bb0ff);
    transition: width 0.1s linear;
}

/* Below-fold proof */
.proof {
    width: min(1100px, calc(100% - 48px));
    margin: 0 auto 96px;
    padding-top: 24px;
}

.proof h2 {
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 3vw, 2.4rem);
    letter-spacing: -0.04em;
    margin-bottom: 10px;
}

.proof-lead {
    color: var(--text-secondary);
    max-width: 48ch;
    margin-bottom: 28px;
    line-height: 1.55;
}

.proof-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.proof-grid article {
    padding: 22px 20px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-primary);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent 70%);
    transition: border-color 0.25s ease, transform 0.25s ease;
}

.proof-grid article:hover {
    border-color: rgba(79, 124, 255, 0.35);
    transform: translateY(-4px);
}

.proof-grid h3 {
    font-family: var(--font-display);
    font-size: 1.15rem;
    letter-spacing: -0.02em;
    margin-bottom: 8px;
}

.proof-grid p {
    color: var(--text-secondary);
    line-height: 1.55;
    font-size: 0.95rem;
}

/* Login */
#login-page {
    align-items: center;
    justify-content: center;
    padding: 120px 20px 40px;
}

.login-shell {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 22px;
    padding: 36px 28px;
    border-radius: 20px;
    border: 1px solid var(--border-primary);
    background: rgba(14, 16, 20, 0.75);
    backdrop-filter: blur(16px);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}

.login-title {
    font-family: var(--font-display);
    color: var(--text-secondary);
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: -0.02em;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.login-form input,
.login-form button {
    background: rgba(8, 10, 14, 0.85);
    border: 1px solid var(--border-primary);
    color: var(--text-primary);
    border-radius: 12px;
    padding: 14px 18px;
    width: min(360px, 86vw);
    font-size: 1rem;
    font-family: inherit;
    outline: none;
    transition: border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.login-form input::placeholder {
    color: var(--text-muted);
}

.login-form input:focus {
    border-color: rgba(79, 124, 255, 0.55);
    box-shadow: 0 0 0 3px rgba(79, 124, 255, 0.15);
}

.login-form button {
    cursor: pointer;
    font-weight: 600;
    background: linear-gradient(135deg, #6b8cff, #3f66f0);
    border-color: transparent;
}

.login-form button:hover {
    box-shadow: 0 10px 28px rgba(63, 102, 240, 0.35);
}

@media (max-width: 1100px) {
    .hero {
        grid-template-columns: 1fr;
        padding-top: 110px;
        gap: 28px;
    }

    .hero-brand {
        text-align: left;
        font-size: clamp(2.2rem, 8vw, 3rem);
    }

    .proof-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .top-bar {
        padding: 16px 18px;
    }

    .hero {
        width: calc(100% - 28px);
        padding-top: 100px;
    }

    .menu-tabs {
        gap: 4px;
    }

    .menu-tab {
        padding: 8px 10px;
        font-size: 0.75rem;
    }

    .proof {
        width: calc(100% - 28px);
    }
}

@keyframes brand-in {
    from { opacity: 0; transform: translateY(18px) scale(0.98); filter: blur(6px); }
    to { opacity: 1; transform: none; filter: none; }
}

@keyframes rise-in {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: none; }
}

@keyframes stage-in {
    from { opacity: 0; transform: translateY(28px) scale(0.98); }
    to { opacity: 1; transform: none; }
}
