/* ========================= */
/* RESET */
/* ========================= */

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

/* ========================= */
/* BODY */
/* ========================= */

body {
    min-height: 100vh;

    font-family:
        -apple-system,
        BlinkMacSystemFont,
        "SF Pro Display",
        "Segoe UI",
        sans-serif;

    background:
        radial-gradient(
            circle at top left,
            rgba(0,122,255,0.12),
            transparent 28%
        ),

        radial-gradient(
            circle at bottom right,
            rgba(0,122,255,0.10),
            transparent 30%
        ),

        linear-gradient(
            135deg,
            #f5f5f7,
            #f7f7fa
        );

    color: #1d1d1f;

    overflow-x: hidden;
}

/* ========================= */
/* TOPBAR */
/* ========================= */

.topbar {
    position: fixed;

    top: 22px;
    left: 50%;

    transform: translateX(-50%);

    z-index: 1000;
}

/* ========================= */
/* NAVIGATION */
/* ========================= */

.nav-tabs {
    display: flex;
    align-items: center;

    gap: 6px;

    padding: 6px;

    border-radius: 999px;

    background: rgba(255,255,255,0.78);

    backdrop-filter: blur(24px);

    border:
        1px solid rgba(255,255,255,0.95);

    box-shadow:
        0 10px 30px rgba(0,0,0,0.08);
}

.nav-tab {
    text-decoration: none;

    padding: 12px 24px;

    border-radius: 999px;

    font-size: 15px;
    font-weight: 600;

    color: #1d1d1f;

    transition:
        all 0.25s ease;

    white-space: nowrap;
}

.nav-tab:hover {
    transform: translateY(-1px);

    background:
        rgba(0,122,255,0.08);
}

/* ACTIVE */

.nav-tab.active.external,
.nav-tab.active.internal {
    background: #007aff;

    color: white;

    box-shadow:
        0 6px 18px rgba(0,122,255,0.35);
}

/* ========================= */
/* PAGE */
/* ========================= */

.page {
    min-height: 100vh;

    padding:
        120px 24px
        40px;

    display: flex;
    flex-direction: column;

    align-items: center;
}

/* ========================= */
/* HERO */
/* ========================= */

.hero-text {
    text-align: center;

    margin-bottom: 30px;

    max-width: 900px;
}

/* ========================= */
/* BADGE */
/* ========================= */

.badge {
    display: inline-block;

    margin-bottom: 22px;

    padding:
        10px 18px;

    border-radius: 999px;

    font-size: 14px;
    font-weight: 700;

    background:
        rgba(0,122,255,0.12);

    color: #007aff;
}

/* ========================= */
/* TITLE */
/* ========================= */

h1 {
    font-size:
        clamp(42px, 5vw, 72px);

    line-height: 0.95;

    letter-spacing: -3px;

    font-weight: 800;

    margin-bottom: 22px;
}

/* ========================= */
/* TEXT */
/* ========================= */

p {
    font-size: 20px;

    line-height: 1.6;

    color: #6e6e73;

    max-width: 700px;

    margin:
        0 auto;
}

/* ========================= */
/* CHAT SECTION */
/* ========================= */

.chat-section {
    width: 100%;

    display: flex;
    justify-content: center;
}

/* ========================= */
/* CHAT WRAPPER */
/* ========================= */

.chat-wrapper {
    width: 100%;
    max-width: 430px;

    height: calc(100vh - 180px);

    min-height: 850px;

    border-radius: 34px;

    overflow: hidden;

    background:
        rgba(255,255,255,0.72);

    backdrop-filter: blur(26px);

    border:
        1px solid rgba(255,255,255,0.95);

    box-shadow:
        0 25px 60px rgba(0,0,0,0.08);

    padding: 10px;
}

/* ========================= */
/* EMBED CHAT */
/* ========================= */

#webchat {
    width: 100%;
    height: 100%;

    border-radius: 24px;

    overflow: hidden;
}

/* ========================= */
/* MOBILE */
/* ========================= */

@media (max-width: 768px) {

    .topbar {
        top: 18px;
    }

    .nav-tabs {
        gap: 4px;
        padding: 5px;
    }

    .nav-tab {
        padding: 10px 18px;

        font-size: 14px;
    }

    .page {
        padding:
            110px 16px
            24px;
    }

    .chat-wrapper {
        width: 100%;
        max-width: 100%;

        height: calc(100vh - 160px);

        min-height: 700px;

        border-radius: 28px;
    }

    h1 {
        font-size:
            clamp(38px, 10vw, 58px);

        letter-spacing: -2px;

        line-height: 1;
    }

    p {
        font-size: 17px;
    }
}
