* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

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

body {
    font-family: "Trebuchet MS", "Segoe UI", Tahoma, sans-serif;
    color: #f8f4ea;
    background:
        radial-gradient(circle at top, rgba(255, 202, 90, 0.18), transparent 34%),
        linear-gradient(180deg, #131722 0%, #1b2132 42%, #11151f 100%);
    overflow-x: hidden;
}

button,
img {
    border: 0;
    outline: 0;
    vertical-align: middle;
}

button {
    font: inherit;
    background: none;
}

img {
    max-width: 100%;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

strong {
    font-weight: 700;
}

:root {
    --sat: env(safe-area-inset-top);
    --sar: env(safe-area-inset-right);
    --sab: env(safe-area-inset-bottom);
    --sal: env(safe-area-inset-left);
    --page-width: 7.5rem;
    --space-sm: 0.24rem;
    --space-md: 0.32rem;
    --space-lg: 0.48rem;
    --surface: rgba(17, 23, 35, 0.78);
    --surface-strong: rgba(13, 18, 30, 0.96);
    --surface-soft: rgba(255, 255, 255, 0.08);
    --line: rgba(255, 212, 116, 0.2);
    --text-main: #f8f4ea;
    --text-muted: rgba(248, 244, 234, 0.72);
    --accent: #ffcb57;
    --accent-strong: #f0a51b;
    --shadow: 0 0.18rem 0.4rem rgba(0, 0, 0, 0.28);
}

.page-shell {
    width: 100%;
    min-height: 100vh;
    padding:
        calc(0.24rem + var(--sat))
        calc(0.2rem + var(--sar))
        calc(1.72rem + var(--sab))
        calc(0.2rem + var(--sal));
}

.main-content {
    max-width: var(--page-width);
    margin: 0 auto;
}

.brand-row {
    display: flex;
    align-items: center;
    gap: 0.16rem;
    flex-wrap: wrap;
}

.brand-mark {
    font-size: 0.42rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    color: var(--accent);
}

.brand-badge,
.section-kicker {
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.17rem;
}

.brand-badge {
    padding: 0.1rem 0.16rem;
    border-radius: 999px;
    background: rgba(255, 203, 87, 0.16);
    color: #ffe7af;
}

.section-kicker {
    color: #ffd890;
    margin-top: var(--space-sm);
}

.section-heading h2 {
    font-size: 0.48rem;
    line-height: 1.12;
}

.section-heading p,
.guide-note {
    font-size: 0.24rem;
    line-height: 1.6;
    color: var(--text-muted);
}

.hero-actions,
.guide-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.18rem;
    margin-top: var(--space-lg);
}

.primary-button,
.secondary-button,
.sticky-download,
.guide-primary,
.guide-secondary {
    min-height: 0.96rem;
    border-radius: 999px;
    padding: 0 0.34rem;
    font-size: 0.25rem;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.primary-button,
.sticky-download,
.guide-primary {
    color: #271300;
    background: linear-gradient(135deg, #ffd86e 0%, #ffc542 48%, #f0a51b 100%);
    box-shadow: 0 0.16rem 0.32rem rgba(240, 165, 27, 0.28);
}

.secondary-button,
.guide-secondary {
    color: var(--text-main);
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.05);
}

.primary-button:active,
.secondary-button:active,
.sticky-download:active,
.guide-primary:active,
.guide-secondary:active {
    transform: scale(0.97);
}

.hero-visual {
    display: flex;
    justify-content: center;
}

.section-heading {
    display: grid;
    gap: 0.14rem;
}

.step-number {
    width: 0.52rem;
    height: 0.52rem;
    flex: 0 0 0.52rem;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.22rem;
    font-weight: 800;
    color: #251300;
    background: linear-gradient(135deg, #ffe08f, #f0a51b);
}

.sticky-download-bar {
    position: fixed;
    left: 50%;
    bottom: calc(0.18rem + var(--sab));
    transform: translateX(-50%);
    z-index: 900;
    width: calc(100% - 0.4rem - var(--sal) - var(--sar));
    max-width: calc(var(--page-width) - 0.24rem);
    border-radius: 0.28rem;
    padding: 0.2rem;
    display: flex;
    align-items: center;
    gap: 0.2rem;
    background: rgba(8, 12, 20, 0.95);
    border: 1px solid rgba(255, 203, 87, 0.22);
    box-shadow: 0 0.22rem 0.42rem rgba(0, 0, 0, 0.42);
    backdrop-filter: blur(12px);
}

.sticky-copy {
    display: grid;
    gap: 0.04rem;
    flex: 1;
}

.sticky-copy strong {
    font-size: 0.24rem;
}

.sticky-copy span {
    font-size: 0.19rem;
    color: var(--text-muted);
}

.sticky-download {
    min-width: 2.5rem;
}

.guide-layer {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: clamp(2.2rem, 25vh, 3.4rem);
    z-index: 2000;
}

.guide-layer.hidden {
    display: none;
}

.guide-layer .mask {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(4, 7, 14, 0.9) 0%, rgba(4, 7, 14, 0.74) 72%, rgba(4, 7, 14, 0) 100%);
}

.guide-card {
    position: relative;
    z-index: 1;
    width: calc(100% - 0.44rem);
    max-width: 6.3rem;
    margin: 20vh auto 0;
    padding: 0.36rem 0.3rem;
    border-radius: 0.3rem;
    background: var(--surface-strong);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: var(--shadow);
}

.guide-card-minimal {
    position: absolute;
    inset: 0;
    width: min(calc(100% - 0.56rem), 4.9rem);
    max-width: 4.9rem;
    height: 100%;
    margin: 0 auto;
    padding: 0.8rem 0.2rem 0 0.2rem;
    text-align: center;
    background: transparent;
    border: 0;
    box-shadow: none;
}

#fb-guide .arrow {
    position: absolute;
    top: 0.02rem;
    right: 0.02rem;
    font-size: 1.08rem;
    line-height: 1;
    color: #ffffff;
    transform: rotate(0deg);
    animation: bounce 1.2s infinite;
    text-shadow: 0 0.06rem 0.18rem rgba(0, 0, 0, 0.3);
}

@keyframes bounce {
    0% {
        transform: translateY(0) rotate(0deg);
    }

    50% {
        transform: translateY(-0.06rem) rotate(0deg);
    }

    100% {
        transform: translateY(0) rotate(0deg);
    }
}

.guide-card-minimal h2 {
    font-size: 0.56rem;
    line-height: 1.08;
    text-shadow: 0 0.08rem 0.22rem rgba(0, 0, 0, 0.28);
}

.guide-card-minimal p {
    margin-top: 0.14rem;
    font-size: 0.28rem;
    line-height: 1.48;
    color: rgba(255, 255, 255, 0.96);
    text-shadow: 0 0.05rem 0.18rem rgba(0, 0, 0, 0.24);
}

.guide-card-minimal strong {
    color: #ffd86e;
}

.guide-inline-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: auto;
    margin-top: 0.12rem;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: #ffffff;
    font-size: 0.18rem;
    font-weight: 700;
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 0.06rem;
    opacity: 0.8;
}

.guide-inline-action:active {
    transform: scale(0.97);
}

.guide-kicker {
    display: inline-block;
    margin-bottom: 0.12rem;
    color: #ffd890;
    font-size: 0.18rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.guide-card h2 {
    font-size: 0.38rem;
    line-height: 1.2;
}

.guide-steps {
    margin-top: 0.22rem;
    padding-left: 0.28rem;
    display: grid;
    gap: 0.12rem;
}

.guide-steps li {
    font-size: 0.23rem;
    line-height: 1.55;
    color: var(--text-main);
}

.guide-note {
    margin-top: 0.16rem;
}

@media (max-width: 480px) {
    .guide-card-minimal {
        width: calc(100% - 0.36rem);
        padding-top: 0.72rem;
    }

    #fb-guide .arrow {
        top: 0.02rem;
        right: 0.02rem;
        font-size: 0.99rem;
    }

    .guide-card-minimal h2 {
        font-size: 0.48rem;
    }

    .guide-card-minimal p {
        font-size: 0.25rem;
    }
}

.hero-collage {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.16rem;
}

.hero-collage-main,
.hero-collage-side {
    position: relative;
    overflow: hidden;
    border-radius: 0.26rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.04);
    box-shadow: var(--shadow);
}

.hero-collage-main {
    min-height: 3.1rem;
    grid-column: 1 / -1;
}

.hero-collage-side {
    min-height: 1.48rem;
}

.hero-collage img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.landing-a {
    background:
        radial-gradient(circle at top, rgba(255, 208, 102, 0.2), transparent 34%),
        linear-gradient(180deg, #131722 0%, #1a2231 44%, #11151f 100%);
}

.landing-b {
    background:
        radial-gradient(circle at top, rgba(255, 176, 70, 0.24), transparent 28%),
        linear-gradient(180deg, #171219 0%, #1e1824 38%, #10131b 100%);
}

.hero-shell {
    display: grid;
    align-content: start;
    gap: 0.18rem;
    min-height: 6rem;
    padding: 0.2rem;
    border-radius: 0.34rem;
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.hero-shell h1 {
    font-size: 0.4rem;
    line-height: 1.08;
    letter-spacing: -0.01em;
}

.hero-copy {
    position: relative;
    display: grid;
    gap: 0.12rem;
    padding: 0.16rem 0.18rem;
    border-radius: 0.24rem;
    background: rgba(9, 13, 21, 0.88);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 0.12rem 0.28rem rgba(0, 0, 0, 0.2);
}

.hero-copy .brand-row {
    gap: 0.1rem;
}

.hero-copy .brand-mark {
    font-size: 0.28rem;
}

.hero-copy .brand-badge {
    padding: 0.08rem 0.12rem;
    font-size: 0.13rem;
}

.hero-headline-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.14rem;
    align-items: center;
}

.hero-headline-row .primary-button {
    min-height: 0.64rem;
    padding: 0 0.22rem;
    font-size: 0.2rem;
    white-space: nowrap;
}

.hero-actions-compact {
    display: flex;
    align-items: center;
    gap: 0.12rem;
    margin-top: -0.02rem;
}

.hero-link-button {
    padding: 0;
    min-height: auto;
    font-size: 0.17rem;
    font-weight: 700;
    color: #ffe3a2;
    text-decoration: underline;
    text-underline-offset: 0.06rem;
    cursor: pointer;
}

.hero-mini-note {
    font-size: 0.15rem;
    line-height: 1.4;
    color: rgba(248, 244, 234, 0.72);
}

.hero-shell-a {
    background:
        linear-gradient(155deg, rgba(255, 215, 111, 0.12), rgba(255, 255, 255, 0.03) 34%, rgba(9, 14, 24, 0.92) 100%);
}

.hero-shell-b {
    background:
        linear-gradient(180deg, rgba(255, 187, 73, 0.14), rgba(255, 255, 255, 0.03) 30%, rgba(8, 11, 19, 0.96) 100%);
}

.browser-card,
.step-item-new {
    border-radius: 0.24rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.06);
}

.hero-visual-a,
.hero-visual-b {
    display: grid;
    min-height: 5.6rem;
    margin-top: 0.06rem;
}

.hero-collage {
    width: 100%;
    min-height: 5.6rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.14rem;
}

.hero-collage-main {
    min-height: 3.72rem;
    grid-column: 1 / -1;
}

.hero-collage-side {
    min-height: 1.74rem;
}

.landing-b .hero-collage-main {
    min-height: 2.68rem;
}

.landing-b .hero-collage-side {
    min-height: 1.93rem;
}

@supports not ((backdrop-filter: blur(0.12rem))) {
    .hero-copy {
        background: rgba(9, 13, 21, 0.92);
    }
}

.section-panel {
    margin-top: var(--space-lg);
    padding: 0.38rem 0.3rem;
    border-radius: 0.28rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: var(--surface);
    box-shadow: var(--shadow);
}

.browser-card h3,
.step-item-new h3 {
    font-size: 0.28rem;
    margin-bottom: 0.08rem;
}

.install-layout-new {
    display: grid;
    gap: 0.22rem;
    margin-top: var(--space-md);
}

.step-list-new {
    display: grid;
    gap: 0.16rem;
}

.step-item-new {
    display: flex;
    gap: 0.18rem;
    align-items: flex-start;
    padding: 0.24rem;
}

.step-item-new p,
.browser-card p {
    font-size: 0.23rem;
    line-height: 1.58;
    color: var(--text-muted);
}

.browser-card {
    padding: 0.28rem;
    display: grid;
    gap: 0.16rem;
    align-content: start;
}

.browser-card .primary-button {
    width: 100%;
}
