@import url('https://fonts.googleapis.com/css2?family=Amaranth:wght@400;700&family=Archivo+Black&family=Bitcount:wght@100..900&family=Alumni+Sans+Collegiate+One:ital@0;1&display=swap');

:root {
    --bg: #4C3F60;
    --white: #FFFFFF;

    --logo-font: "Bitcount", sans-serif;
    --heading-font: "Alumni Sans Collegiate One", sans-serif;
    --body-font: "Amaranth", sans-serif;
    --legal-font: "Archivo Black", sans-serif;
}

html,
body {
    margin: 0;
    width: 100%;
    min-height: 100%;
}

body {
    background: var(--bg);
    color: var(--white);
}

header {
    width: 100%;
    box-sizing: border-box;

    display: flex;
    justify-content: space-between;
    align-items: center;

    padding: 40px 120px;
}

.logo {
    color: var(--white);
    text-decoration: none;

    font-family: var(--logo-font);
    font-size: 65px;
    font-weight: 300;
}

nav {
    display: flex;
    gap: 40px;
}

nav a {
    color: var(--white);
    text-decoration: none;

    font-family: var(--logo-font);
    font-size: 24px;
    font-weight: 300;

    transition: opacity 0.2s ease;
}

nav a:hover {
    opacity: 0.6;
}

/* ==========================
   Hero Section
========================== */

.hero {
    text-align: center;
    padding-top: 25px;
}

.hero h1 {
    margin: 0;

    color: var(--white);

    font-family: var(--heading-font);
    font-size: 67px;
    font-weight: 400;
    text-transform: uppercase;
}

.hero-description {
    margin: 14px 0 22px;

    color: var(--white);

    font-family: var(--body-font);
    font-size: 32px;
    line-height: 1.15;
}

.supported-platforms {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.platform-label {
    margin-bottom: 10px;

    font-family: var(--body-font);
    font-size: 20px;
}

.platform-list {
    display: flex;
    gap: 26px;
}

.platform {
    display: flex;
    align-items: center;
    gap: 8px;

    font-family: var(--body-font);
    font-size: 20px;
}

.platform img {
    width: 46px;
    height: 46px;
    object-fit: contain;
}

/* ==========================
   Widgets Section
========================== */

.widgets-section {
    margin-top: 35px;
    text-align: center;
}

.widgets-heading h2 {
    margin: 0;

    font-family: var(--body-font);
    font-size: 36px;
    font-weight: 400;
}

.widgets-heading p {
    margin: 4px 0 0;

    font-family: var(--body-font);
    font-size: 20px;
}

.widget-tree {
    position: relative;

    width: 1350px;
    height: 560px;

    margin: 18px auto 0;
}

/* ---------- Branch ---------- */

.tree-center {
    position: absolute;

    top: 0;
    left: 50%;

    width: 12px;
    height: 55px;

    background: #000000;

    transform: translateX(-50%);
}

.tree-horizontal {
    position: absolute;

    top: 55px;
    left: 50%;

    width: 711px;
    height: 12px;

    background: #000000;

    transform: translateX(-50%);
}

.tree-left,
.tree-right {
    position: absolute;
    top: 55px;
    width: 12px;
    height: 55px;
    background: #000000;
    transform: translateX(-50%);
}

.tree-left {
    left: calc(50% - 355.5px);
}

.tree-right {
    left: calc(50% + 355.5px);
}

/* ---------- Widget Columns ---------- */

.widget-column {
    position: absolute;

    top: 145px;

    display: flex;
    flex-direction: column;
    align-items: center;
}

.viewer-widget {
    left: calc(50% - 355.5px);
    transform: translateX(-50%);
}

.chat-widget {
    left: calc(50% + 355.5px);
    transform: translateX(-50%);
}

/* ---------- Widget Titles ---------- */

.widget-column h3 {
    margin: 0 0 18px;

    font-family: var(--body-font);
    font-size: 24px;
    font-weight: 400;

    line-height: 1.1;
}

/* ---------- Placeholder Pills ---------- */

.viewer-placeholder {
    width: 318px;
    height: 104px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: #000000;
    border-radius: 22px;

    font-family: var(--body-font);
    font-size: 28px;
    line-height: 1.15;

    transform: scale(1.05);
}

.chat-placeholder {
    width: 329px;
    height: 329px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: #000000;
    border-radius: 22px;

    font-family: var(--body-font);
    font-size: 28px;
    line-height: 1.15;

    transform: scale(1.05);
}


/* ==========================
   Features Page
========================== */

.features-page{
    text-align:center;
    padding-bottom:80px;
}

.features-page>h1{
    margin:18px 0 0;
    font-family:var(--logo-font);
    font-size:96px;
    font-weight:300;
}

.features-platforms{
    margin-top:6px;
}

.features-grid{
    width:1200px;
    margin:40px auto 0;
    display:flex;
    justify-content:space-between;
    align-items:flex-start;
}

.feature-column{
    width:430px;
    display:flex;
    flex-direction:column;
    align-items:center;
}

.feature-column h2{
    margin:0 0 18px;
    font-family:var(--body-font);
    font-size:24px;
    font-weight:400;
    line-height:1.1;
}

.feature-list{
    width:max-content;
    max-width:100%;
    margin:24px auto 0;
    font-family:var(--body-font);
    font-size:24px;
    line-height:1.35;
    text-align:left;
}


/* ===== Legal Pages ===== */
.legal-page{
    max-width:1100px;
    margin:30px auto 80px;
    text-align:center;
    color:#fff;
}
.legal-title{
    font-family:var(--logo-font);
    font-size:96px;
    font-weight:300;
    margin:0 0 25px;
}
.legal-content{
    font-family:var(--legal-font);
    font-size:10px;
    line-height:1.5;
}
.legal-content h3{
    font-size:12px;
    margin:22px 0 6px;
}
.legal-content ul{
    list-style:none;
    padding:0;
    margin:0;
}

.legal-content a{color:#fff;text-decoration:underline;}


/* Promo GIFs */
.viewer-placeholder,
.chat-placeholder{
overflow:hidden;
padding:0;
}
.promo-gif{
width:100%;
height:100%;
display:block;
object-fit:contain;
border-radius:inherit;
}


/* ==========================
   Widget Product Pages
========================== */
.widget-link,
.feature-link {
    color: inherit;
    text-decoration: none;
}

.widget-link:hover .promo-gif,
.feature-link:hover .promo-gif {
    transform: scale(1.015);
}

.promo-gif {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    border-radius: inherit;
    transition: transform .2s ease;
}

.product-page {
    width: min(100% - 40px, 1100px);
    margin: 20px auto 70px;
    text-align: center;
}

.product-title {
    margin: 10px 0 0;
    font-family: var(--logo-font);
    font-size: 76px;
    line-height: 1;
    font-weight: 300;
    letter-spacing: .02em;
}

.viewer-title {
    font-size: 72px;
}

.product-platforms {
    margin-top: 8px;
}

.product-preview {
    margin: 14px auto 0;
    background: #000;
    border-radius: 22px;
    overflow: hidden;
}

.product-preview img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
}

.chat-product-preview {
    width: 329px;
    height: 329px;
}

.viewer-product-preview {
    width: 318px;
    height: 105px;
}

.product-feature-list {
    width: max-content;
    max-width: 100%;
    margin: 10px auto 22px;
    font-family: var(--body-font);
    font-size: 22px;
    line-height: 1.22;
    text-align: left;
}

.viewer-feature-list {
    margin-top: 12px;
}

.product-feature-list .nested {
    padding-left: 28px;
}

.code-panel {
    width: 828px;
    max-width: 100%;
    min-height: 474px;
    margin: 12px auto 0;
    padding: 0 12px 14px;
    box-sizing: border-box;
    background: #000;
    border-radius: 20px;
    overflow: hidden;
}

.code-tabs {
    min-height: 44px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0;
    padding: 0 2px;
}

.code-tab,
.copy-code {
    appearance: none;
    border: 0;
    background: transparent;
    color: #fff;
    padding: 7px 6px;
    font-family: var(--legal-font);
    font-size: 18px;
    font-weight: 400;
    cursor: pointer;
}

.code-divider {
    color: #fff;
    font-family: var(--legal-font);
    font-size: 18px;
    font-weight: 400;
    opacity: .95;
    user-select: none;
    pointer-events: none;
}

.code-tab.active {
    text-decoration: underline;
    text-underline-offset: 4px;
}

.copy-code {
    margin-left: auto;
    font-size: 13px;
    opacity: .8;
}

.copy-code:hover,
.code-tab:hover {
    opacity: .65;
}

.code-window {
    width: 717px;
    max-width: calc(100% - 30px);
    height: 410px;
    margin: 0 auto;
    box-sizing: border-box;
    overflow: auto;
    border-radius: 20px;
    background: #d9d9d9;
    color: #111;
    text-align: left;
    padding: 20px;
    white-space: pre;
    tab-size: 2;
}

.code-window code {
    font-family: Consolas, Monaco, "Courier New", monospace;
    font-size: 12px;
    line-height: 1.45;
}

@media (max-width: 900px) {
    header {
        padding: 25px 30px;
    }

    .logo {
        font-size: 44px;
    }

    nav {
        gap: 18px;
    }

    nav a {
        font-size: 18px;
    }

    .product-title,
    .viewer-title {
        font-size: clamp(46px, 10vw, 72px);
    }

    .code-panel {
        width: 100%;
    }
}
