:root {
    --bg: #080b12;
    --panel: #111722;
    --panel2: #171e2c;
    --text: #f4f7fb;
    --muted: #98a4b6;
    --line: rgba(255,255,255,.10);

    --blue: #64a9ff;
    --cyan: #78e6ff;
    --violet: #aa80ff;
    --green: #73e6b4;

    --max: 1180px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;

    background:
        radial-gradient(
            circle at 15% 10%,
            rgba(70,120,255,.15),
            transparent 30%
        ),
        radial-gradient(
            circle at 85% 15%,
            rgba(170,80,255,.12),
            transparent 28%
        ),
        var(--bg);

    color: var(--text);

    font-family:
        Inter,
        ui-sans-serif,
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;
}

a {
    color: inherit;
}

.topbar {
    width: min(
        calc(100% - 40px),
        var(--max)
    );

    margin: auto;

    min-height: 76px;

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

    border-bottom:
        1px solid var(--line);
}

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

    text-decoration: none;
}

.brand-mark {
    display: grid;
    place-items: center;

    width: 44px;
    height: 44px;

    border-radius: 12px;

    background:
        linear-gradient(
            135deg,
            var(--blue),
            var(--violet)
        );

    color: white;
    font-weight: 900;
    letter-spacing: -.04em;
}

.brand-name {
    font-weight: 720;
}

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

nav a {
    color: var(--muted);
    text-decoration: none;
    font-size: .94rem;
}

nav a:hover {
    color: white;
}

main {
    width: min(
        calc(100% - 40px),
        var(--max)
    );

    margin: auto;
}

.hero {
    min-height: 620px;

    display: grid;

    grid-template-columns:
        minmax(0, 1.1fr)
        minmax(340px, .9fr);

    gap: clamp(45px, 7vw, 100px);

    align-items: center;

    padding:
        clamp(65px, 9vw, 125px)
        0;
}

.eyebrow {
    color: var(--cyan);

    font-size: .78rem;
    font-weight: 800;

    letter-spacing: .17em;

    margin-bottom: 16px;
}

.hero h1 {
    font-size:
        clamp(3rem, 7vw, 6.5rem);

    line-height: .95;

    margin: 0;

    max-width: 760px;

    letter-spacing: -.065em;
}

.hero h1 span {
    background:
        linear-gradient(
            90deg,
            var(--blue),
            var(--cyan),
            var(--violet)
        );

    -webkit-background-clip: text;
    background-clip: text;

    color: transparent;
}

.lead {
    color: var(--muted);

    font-size:
        clamp(1.05rem, 2vw, 1.3rem);

    line-height: 1.65;

    max-width: 610px;

    margin:
        28px 0
        30px;
}

.search {
    display: flex;

    max-width: 650px;

    padding: 6px;

    background:
        rgba(255,255,255,.06);

    border:
        1px solid var(--line);

    border-radius: 17px;

    box-shadow:
        0 18px 60px
        rgba(0,0,0,.20);
}

.search input {
    min-width: 0;
    flex: 1;

    padding: 15px 16px;

    background: transparent;

    border: 0;
    outline: 0;

    color: white;

    font: inherit;
    font-size: 1rem;
}

.search input::placeholder {
    color: #738096;
}

.search button,
.primary-button {
    border: 0;

    border-radius: 12px;

    padding:
        14px 22px;

    background:
        linear-gradient(
            135deg,
            #559cff,
            #8768ff
        );

    color: white;

    font: inherit;
    font-weight: 750;

    cursor: pointer;

    text-decoration: none;
}

.quick {
    margin-top: 16px;

    color: #68758a;

    font-size: .85rem;
}

.quick a {
    color: #a9b8cc;

    margin-left: 10px;

    text-decoration: none;
}

.code-demo {
    position: relative;

    overflow: hidden;

    padding:
        clamp(28px, 4vw, 44px);

    border:
        1px solid var(--line);

    border-radius: 26px;

    background:
        linear-gradient(
            145deg,
            rgba(27,37,54,.95),
            rgba(13,17,26,.95)
        );

    box-shadow:
        0 35px 100px
        rgba(0,0,0,.30);
}

.code-demo::before {
    content: "";

    position: absolute;

    width: 220px;
    height: 220px;

    right: -60px;
    top: -90px;

    background:
        rgba(90,115,255,.25);

    filter: blur(65px);
}

.demo-label {
    color: var(--cyan);

    font-size: .75rem;
    font-weight: 900;

    letter-spacing: .2em;
}

.demo-word {
    font-size:
        clamp(2.3rem, 5vw, 4rem);

    font-weight: 800;

    letter-spacing: -.04em;

    margin-top: 18px;
}

.demo-code,
.asc-code,
.asc-large {
    font-family:
        "SFMono-Regular",
        Consolas,
        "Liberation Mono",
        monospace;

    overflow-wrap: anywhere;
}

.demo-code {
    color: #d8c8ff;

    font-size:
        clamp(1.05rem, 2.3vw, 1.45rem);

    margin-top: 13px;
}

.demo-divider {
    height: 1px;

    background: var(--line);

    margin: 30px 0 20px;
}

.demo-row {
    display: flex;

    justify-content:
        space-between;

    gap: 15px;

    color: var(--muted);

    padding: 8px 0;
}

.demo-row strong {
    color: white;
}

.confirmed {
    color: var(--green) !important;
}

.features {
    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    gap: 18px;

    padding:
        30px 0
        110px;
}

.features article {
    min-height: 260px;

    padding: 30px;

    border:
        1px solid var(--line);

    border-radius: 20px;

    background:
        rgba(255,255,255,.035);
}

.feature-number {
    color: #64738a;

    font-family: monospace;

    font-size: .82rem;
}

.features h2 {
    margin-top: 55px;

    font-size: 1.5rem;
}

.features p,
.dictionary-callout p {
    color: var(--muted);

    line-height: 1.7;
}

.dictionary-callout {
    display: flex;

    justify-content:
        space-between;

    align-items:
        flex-end;

    gap: 50px;

    margin-bottom: 100px;

    padding:
        clamp(28px, 6vw, 65px);

    border-radius: 28px;

    border:
        1px solid var(--line);

    background:
        linear-gradient(
            130deg,
            rgba(70,110,255,.13),
            rgba(150,75,255,.08)
        );
}

.dictionary-callout h2 {
    font-size:
        clamp(2rem, 5vw, 3.6rem);

    line-height: 1;

    letter-spacing: -.045em;

    margin: 10px 0 18px;
}

.dictionary-callout p {
    max-width: 650px;
}

footer {
    width: min(
        calc(100% - 40px),
        var(--max)
    );

    margin: auto;

    min-height: 110px;

    border-top:
        1px solid var(--line);

    display: flex;

    justify-content:
        space-between;

    align-items: center;

    color: var(--muted);

    font-size: .86rem;
}


/* DICTIONARY */

.dictionary-page,
.word-page {
    padding:
        clamp(50px, 8vw, 90px)
        0
        100px;
}

.dictionary-page h1,
.word-page h1 {
    margin:
        0 0
        30px;

    font-size:
        clamp(2.6rem, 7vw, 5rem);

    letter-spacing: -.055em;
}

.dictionary-search {
    margin-bottom: 34px;
}

.result-summary {
    color: var(--muted);

    margin-bottom: 18px;
}

.results {
    display: grid;

    grid-template-columns:
        repeat(2, minmax(0,1fr));

    gap: 15px;
}

.result-card {
    min-width: 0;

    padding: 24px;

    border-radius: 18px;

    border:
        1px solid var(--line);

    background:
        rgba(255,255,255,.035);

    text-decoration: none;
}

.result-card:hover {
    background:
        rgba(255,255,255,.065);
}

.result-top {
    display: flex;

    align-items: center;

    justify-content:
        space-between;

    gap: 20px;
}

.result-top h2 {
    margin: 0;

    text-transform: capitalize;
}

.status {
    padding:
        5px 9px;

    border-radius: 999px;

    background:
        rgba(255,255,255,.07);

    color: var(--muted);

    font-size: .72rem;

    text-transform: uppercase;

    letter-spacing: .08em;
}

.status.confirmed {
    background:
        rgba(80,210,155,.10);
}

.arpabet {
    margin-top: 18px;

    color: #8796aa;

    font-family: monospace;
}

.asc-code {
    margin-top: 9px;

    color: #d8c8ff;

    font-size: 1.05rem;
}

.empty {
    padding: 45px;

    border:
        1px dashed var(--line);

    border-radius: 18px;

    color: var(--muted);

    text-align: center;
}


/* WORD */

.back {
    display: inline-block;

    margin-bottom: 40px;

    color: var(--muted);

    text-decoration: none;
}

.word-heading {
    display: flex;

    align-items:
        flex-end;

    justify-content:
        space-between;

    gap: 30px;
}

.word-heading h1 {
    margin-bottom: 0;

    text-transform: capitalize;
}

.word-card {
    margin-top: 30px;

    padding:
        clamp(25px, 5vw, 48px);

    border:
        1px solid var(--line);

    border-radius: 24px;

    background:
        rgba(255,255,255,.035);
}

.data-block + .data-block {
    margin-top: 40px;
}

.data-block label,
.meta-grid label {
    display: block;

    margin-bottom: 10px;

    color: #738197;

    font-size: .75rem;

    font-weight: 800;

    text-transform: uppercase;

    letter-spacing: .12em;
}

.arpabet-large {
    font-family: monospace;

    font-size:
        clamp(1.1rem, 3vw, 1.6rem);
}

.asc-large {
    color: #d8c8ff;

    font-size:
        clamp(1.45rem, 4vw, 2.6rem);

    line-height: 1.45;
}

.meta-grid {
    display: grid;

    grid-template-columns:
        repeat(3,1fr);

    gap: 20px;

    margin-top: 45px;

    padding-top: 28px;

    border-top:
        1px solid var(--line);
}


/* TABLET */

@media (max-width: 900px) {

    .hero {
        grid-template-columns: 1fr;

        min-height: auto;
    }

    .code-demo {
        max-width: 650px;
    }

    .features {
        grid-template-columns: 1fr;
    }

    .features article {
        min-height: 190px;
    }

    .features h2 {
        margin-top: 30px;
    }

    .results {
        grid-template-columns: 1fr;
    }

}


/* MOBILE */

@media (max-width: 620px) {

    .topbar,
    main,
    footer {
        width:
            calc(100% - 28px);
    }

    .topbar {
        min-height: 68px;
    }

    .brand-name {
        display: none;
    }

    nav {
        gap: 16px;
    }

    .hero {
        padding:
            55px 0
            80px;
    }

    .hero h1 {
        font-size:
            clamp(3rem, 16vw, 4.5rem);
    }

    .search {
        flex-direction: column;

        border-radius: 16px;
    }

    .search button {
        width: 100%;
    }

    .quick {
        line-height: 2;
    }

    .dictionary-callout {
        flex-direction: column;

        align-items:
            flex-start;
    }

    .primary-button {
        width: 100%;

        text-align: center;
    }

    footer {
        flex-direction: column;

        align-items:
            flex-start;

        justify-content:
            center;

        gap: 8px;
    }

    .word-heading {
        align-items:
            flex-start;

        flex-direction: column;
    }

    .meta-grid {
        grid-template-columns: 1fr;
    }

    .demo-row {
        flex-direction: column;

        gap: 5px;
    }

}
