dialog[open] {
    position: fixed;
    inset: 0;
    margin: auto
}

.container {
    width: min(var(--content-width), calc(100% - var(--content-gutter)));
    margin-inline: auto
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: #ff777e;
    font-size: 12px;
    font-weight: 750;
    letter-spacing: 1.5px;
    text-transform: uppercase
}

.eyebrow:before {
    content: "";
    width: 22px;
    height: 2px;
    background: var(--red);
    border-radius: 4px
}

.section {
    padding: 104px 0
}

.section-head {
    max-width: 690px;
    margin-bottom: 44px
}

.section-head h2 {
    font-size: clamp(30px, 4vw, 46px);
    line-height: 1.13;
    letter-spacing: -1.8px;
    margin: 15px 0
}

.section-head p {
    color: var(--muted);
    font-size: 16px
}

.accent {
    color: var(--brand)
}

/* header */
.header {
    height: 76px;
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(16, 17, 19, .88);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(255, 255, 255, .07)
}

.header-inner {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between
}

.logo {
    font-size: 29px;
    font-weight: 850;
    letter-spacing: -1.8px
}

.logo span {
    color: var(--brand)
}

.nav {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-left: auto
}

.nav a {
    font-size: 13px;
    font-weight: 650;
    color: #b4b5bc;
    transition: .2s
}

.nav a:hover {
    color: white
}

.nav a[aria-current="page"] {
    color: #fff
}

.nav .nav-divider {
    height: 20px;
    width: 1px;
    background: #383a40
}

.nav .nav-editor {
    color: #ff777e
}

.header-account {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-left: 14px;
    padding-left: 18px;
    border-left: 1px solid #383a40;
    color: #c4c5ca !important
}

.header-account .bi {
    font-size: 15px;
    color: #ff777e
}

.header-account-email {
    max-width: 210px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap
}

.header-account {
    margin-left: 0;
    padding-left: 0;
    border-left: 0
}

.nav-divider {
    margin-left: 8px
}

.header-account {
    margin-left: auto
}

.header-logout,
.footer-logout {
    display: inline-grid;
    place-items: center;
    width: 32px;
    height: 32px;
    border: 1px solid transparent;
    border-radius: 8px;
    background: transparent;
    color: #92949d;
    cursor: pointer;
    transition: color .2s, border-color .2s, background .2s
}

.header-logout:hover,
.footer-logout:hover {
    color: #fff;
    border-color: #36383f;
    background: #1c1d21
}

.header-logout .bi,
.footer-logout .bi {
    font-size: 15px
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 12px
}

.auth-link {
    border: 0;
    background: transparent;
    color: #c5c6cb;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer
}

.auth-link:hover {
    color: white
}

.auth-register {
    padding: 9px 13px;
    font-size: 12px
}

.github {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 9px 14px;
    border: 1px solid #383a40;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 700;
    color: #eee;
    transition: .2s
}

.github:hover {
    border-color: #777;
    background: #202227
}

.github svg {
    width: 17px;
    height: 17px
}

.menu-btn {
    display: none;
    background: none;
    border: 0;
    color: white;
    font-size: 25px;
    cursor: pointer
}

.page-blank {
    min-height: calc(100vh - 180px);
    background: radial-gradient(ellipse at 50% 0%, rgba(237, 52, 61, .06), transparent 55%)
}

/* buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border-radius: 8px;
    padding: 12px 19px;
    font-size: 14px;
    font-weight: 750;
    transition: background .2s, border-color .2s
}

.btn-primary {
    background: var(--red);
    color: white;
    box-shadow: 0 8px 26px rgba(237, 52, 61, .18)
}

.btn-primary:hover {
    background: var(--red2)
}

.btn-secondary {
    border: 1px solid #41434a;
    color: #f1f1f2;
    background: rgba(255, 255, 255, .025)
}

.btn-secondary:hover {
    border-color: #777;
    background: #202227
}

.btn .bi {
    font-size: 1.05em;
    line-height: 1
}

/* hero */
.hero {
    position: relative;
    overflow: hidden;
    padding: 100px 0 92px;
    background: radial-gradient(ellipse at 77% 34%, rgba(237, 52, 61, .13), transparent 34%), linear-gradient(180deg, #121315, #101113)
}

.hero:after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: .16;
    background-image: linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: linear-gradient(to bottom, black, transparent 88%)
}

.hero-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1.04fr .96fr;
    gap: 65px;
    align-items: center
}

.hero h1 {
    font-size: clamp(44px, 6vw, 72px);
    line-height: 1.02;
    letter-spacing: -3.8px;
    margin: 22px 0
}

.hero h1 span {
    color: var(--red)
}

.hero-copy {
    max-width: 570px;
    color: #b0b1b8;
    font-size: 17px;
    line-height: 1.8
}

.hero-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 30px
}

.hero-meta {
    display: flex;
    gap: 22px;
    flex-wrap: wrap;
    margin-top: 34px;
    color: #888b94;
    font-size: 12px
}

.hero-meta span {
    display: flex;
    align-items: center;
    gap: 8px
}

.dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--green);
    box-shadow: 0 0 10px rgba(118, 214, 161, .5)
}

/* product illustration */
.visual {
    position: relative;
    min-height: 390px;
    display: grid;
    place-items: center
}

.visual-glow {
    position: absolute;
    width: 340px;
    height: 280px;
    border-radius: 50%;
    background: rgba(237, 52, 61, .12);
    filter: blur(70px)
}

.device {
    position: relative;
    width: min(100%, 430px);
    padding: 19px;
    border: 1px solid #555860;
    border-radius: 22px;
    background: linear-gradient(145deg, #30333a, #17191d 65%);
    box-shadow: 0 35px 80px rgba(0, 0, 0, .55)
}

.device-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #aeb0b8;
    font-size: 10px;
    letter-spacing: 1px;
    margin: 0 4px 13px
}

.device-led {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--green);
    display: inline-block;
    margin-right: 6px
}

.epaper {
    aspect-ratio: 1.65;
    background: linear-gradient(145deg, #f6f6f0, #e5e5dd);
    border-radius: 8px;
    padding: clamp(16px, 3vw, 26px);
    color: #17191c;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .12), 0 2px 6px #0002
}

.epaper-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1px
}

.epaper-tag {
    font-size: clamp(25px, 3vw, 38px);
    font-weight: 900;
    letter-spacing: -1.5px
}

.epaper-tag span {
    color: #c9222d
}

.epaper-bottom {
    display: flex;
    justify-content: space-between;
    align-items: end;
    font-size: 11px;
    font-weight: 700
}

.qr {
    width: 54px;
    height: 54px;
    border: 5px solid #16181b;
    position: relative;
    background: repeating-conic-gradient(#17191c 0 25%, transparent 0 50%) 0/10px 10px
}

.qr:before,
.qr:after {
    content: "";
    position: absolute;
    width: 12px;
    height: 12px;
    border: 4px solid #17191c;
    background: #e9e9e3;
    top: -5px;
    left: -5px
}

.qr:after {
    left: auto;
    right: -5px
}

.signal {
    position: absolute;
    right: 8px;
    top: 24px;
    color: var(--red);
    font-size: 32px;
}

.visual-caption {
    position: absolute;
    bottom: 2px;
    right: 10px;
    color: #777b84;
    font-size: 11px;
    letter-spacing: 1px;
    text-transform: uppercase
}

.page-hero {
    position: relative;
    overflow: hidden;
    padding: 40px 0 40px;
    background: radial-gradient(ellipse at 75% 30%, rgba(237, 52, 61, .12), transparent 38%), linear-gradient(180deg, #121315, #101113)
}

.page-hero-inner {
    max-width: var(--max)
}

.page-hero h1 {
    font-size: clamp(42px, 6vw, 68px);
    line-height: 1.05;
    letter-spacing: -3px;
    margin: 18px 0
}

.page-hero p {
    max-width: 700px;
    color: var(--muted);
    font-size: 17px
}

.page-hero .hero-actions {
    margin-top: 25px
}



.plan-subtitle {
    color: #ff777e;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-top: 3px
}

.price-card .plan-desc {
    margin-top: 9px
}

.price-card .price {
    white-space: nowrap;
    font-size: clamp(26px, 3vw, 38px)
}

.code-sample {
    margin: 20px 0;
    padding: 17px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #0b0c0e;
    color: #b9d3ff;
    overflow: auto;
    font: 12px/1.7 ui-monospace, SFMono-Regular, Consolas, monospace
}

.auth-modal {
    width: min(440px, calc(100% - 32px));
    padding: 25px;
    border: 1px solid #3b3d43;
    border-radius: 16px;
    background: #181a1e;
    color: var(--text);
    box-shadow: 0 25px 90px #000a
}

.auth-modal::backdrop {
    background: #050506bf;
    backdrop-filter: blur(5px)
}

.auth-modal-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between
}

.auth-modal-head h2 {
    font-size: 24px;
    margin-top: 9px
}

.auth-close {
    width: 34px;
    height: 34px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #202227;
    color: white;
    font-size: 22px;
    cursor: pointer
}

.auth-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5px;
    padding: 4px;
    margin: 22px 0 16px;
    border: 1px solid var(--line);
    border-radius: 9px;
    background: #111214
}

.auth-tab {
    padding: 8px;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: var(--muted);
    cursor: pointer;
    font-size: 13px;
    font-weight: 700
}

.auth-tab.active {
    background: #292b31;
    color: white
}

.auth-form {
    display: grid;
    gap: 14px
}

.auth-form p {
    color: var(--muted);
    font-size: 12px
}

.auth-form label {
    display: grid;
    gap: 6px;
    color: #d4d5d9;
    font-size: 12px;
    font-weight: 700
}

.auth-form input {
    width: 100%;
    padding: 11px 12px;
    border: 1px solid #383b42;
    border-radius: 8px;
    background: #101113;
    color: white;
    font: inherit
}

.auth-form input:focus {
    outline: 2px solid rgba(237, 52, 61, .45);
    border-color: var(--red)
}

.auth-form .btn {
    width: 100%;
    border: 0;
    cursor: pointer
}

.auth-feedback {
    min-height: 20px;
    margin-top: 13px;
    color: #ff9da2;
    font-size: 12px
}

/* architecture */
.architecture {
    background: #151619;
    border-top: 1px solid #22242a;
    border-bottom: 1px solid #22242a
}

.arch-flow {
    display: grid;
    grid-template-columns: 1fr 42px 1.15fr 42px 1fr;
    align-items: center;
    gap: 10px
}

.arch-card {
    min-height: 190px;
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: linear-gradient(145deg, #202227, #191a1e)
}

.arch-card.featured {
    border-color: rgba(237, 52, 61, .6);
    box-shadow: 0 0 35px rgba(237, 52, 61, .07)
}

.arch-icon {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 10px;
    background: #2b2d33;
    color: #ff747b;
    margin-bottom: 17px
}

.arch-icon .bi {
    font-size: 22px;
    line-height: 1
}

.arch-card h3 {
    font-size: 17px;
    margin-bottom: 7px
}

.arch-card p {
    font-size: 13px;
    color: var(--muted)
}

.arch-card small {
    display: block;
    color: #777b84;
    font-size: 11px;
    margin-top: 13px
}

.arch-arrow {
    text-align: center;
    color: #666a73;
    font-size: 24px
}

.arch-arrow .bi {
    font-size: 21px
}

.arch-note {
    text-align: center;
    color: #858891;
    font-size: 13px;
    margin-top: 28px
}

/* feature cards */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px
}

.feature {
    padding: 25px;
    border: 1px solid var(--line);
    background: var(--panel);
    border-radius: 13px;
    transition: .25s
}

.feature:hover {
    border-color: #555860
}

.feature-icon {
    width: 39px;
    height: 39px;
    border-radius: 10px;
    background: rgba(237, 52, 61, .12);
    color: #ff737b;
    display: grid;
    place-items: center;
    margin-bottom: 18px
}

.feature-icon .bi {
    font-size: 19px;
    line-height: 1
}

.feature h3 {
    font-size: 16px;
    margin-bottom: 8px
}

.feature p {
    font-size: 13px;
    color: var(--muted);
    line-height: 1.75
}

/* components */
.components {
    background: #151619;
    border-block: 1px solid #22242a
}

.component-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px
}

.component {
    padding: 28px;
    border: 1px solid var(--line);
    background: #1b1d21;
    border-radius: 14px
}

.component-number {
    font-size: 11px;
    color: var(--red);
    font-weight: 800;
    letter-spacing: 1.4px
}

.component h3 {
    font-size: 21px;
    margin: 12px 0 9px
}

.component p {
    font-size: 14px;
    color: var(--muted);
    min-height: 92px
}

.component ul {
    list-style: none;
    margin-top: 18px;
    border-top: 1px solid var(--line);
    padding-top: 15px
}

.component li {
    font-size: 12px;
    color: #c2c3c9;
    margin: 7px 0
}

.component li:before {
    content: "—";
    color: var(--red);
    margin-right: 8px
}



/* cta */
.cta {
    padding: 70px 0;
    background: radial-gradient(ellipse at 50% 100%, rgba(237, 52, 61, .16), transparent 55%), #17181b;
    border-block: 1px solid #292b31
}

.cta-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px
}

.cta h2 {
    font-size: clamp(26px, 4vw, 38px);
    letter-spacing: -1.3px;
    margin: 10px 0
}

.cta p {
    color: var(--muted);
    font-size: 14px
}

/* responsive */
@media(max-width:900px) {
    .hero-grid {
        gap: 30px
    }

    .arch-flow {
        grid-template-columns: 1fr;
        gap: 10px
    }

    .arch-card {
        min-height: unset
    }

    .arch-card p {
        max-width: 500px
    }

    .nav {
        gap: 11px
    }

    .nav a {
        font-size: 11px
    }

    .header-actions {
        gap: 8px
    }

    .header-account {
        margin-left: 4px;
        padding-left: 11px
    }

    .header-account-email {
        max-width: 145px
    }

    .auth-link {
        font-size: 11px
    }

    .auth-register {
        padding: 8px 9px;
        font-size: 11px
    }
}

@media(max-width:700px) {
    .header {
        height: 68px
    }

    .menu-btn {
        display: block
    }

    .nav {
        display: none;
        position: absolute;
        top: 68px;
        left: 0;
        right: 0;
        padding: 20px 24px 24px;
        background: #17181b;
        border-bottom: 1px solid var(--line);
        flex-direction: column;
        align-items: flex-start;
        gap: 17px
    }

    .nav.open {
        display: flex
    }

    .nav a {
        font-size: 13px
    }

    .nav .nav-divider {
        width: 100%;
        height: 1px
    }

    .header-account {
        margin: 0;
        padding: 8px 0 0;
        border-left: 0
    }

    .header-account-email {
        max-width: calc(100vw - 90px)
    }

    .header-logout {
        margin-top: 0
    }

    .hero {
        padding: 72px 0 55px
    }

    .hero-grid {
        grid-template-columns: 1fr
    }

    .hero h1 {
        letter-spacing: -2.5px
    }

    .visual {
        min-height: 300px
    }

    .device {
        max-width: 380px
    }

    .page-hero {
        padding: 66px 0 52px
    }

    .page-hero h1 {
        letter-spacing: -2px
    }

    .section {
        padding: 75px 0
    }

    .features-grid,
    .component-grid {
        grid-template-columns: 1fr
    }

    .component p {
        min-height: unset
    }

    .cta-inner {
        align-items: flex-start;
        flex-direction: column
    }
}

.footer-user-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: #b8bbc4
}

.footer-user-link .bi {
    color: #9b9da5
}

.footer-account-email {
    max-width: 210px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap
}

.footer-logout {
    margin-left: -16px
}

@media(max-width:700px) {
    .nav {
        align-items: stretch
    }

    .nav .header-account {
        margin-left: 0;
        padding: 8px 0 0
    }

    .nav .header-logout {
        align-self: flex-start
    }

    .footer-user-link {
        max-width: calc(100vw - 80px)
    }
}

@media(max-width:380px) {
    .logo {
        font-size: 24px
    }

    .header-actions {
        gap: 5px
    }

    .header-actions .auth-link {
        font-size: 11px
    }

    .menu-btn {
        font-size: 22px
    }

    .container {
        width: min(var(--max), calc(100% - 30px))
    }
}

@media(prefers-reduced-motion:reduce) {
    html {
        scroll-behavior: auto
    }

    *,
    *:before,
    *:after {
        transition: none !important
    }
}