:root {
    --bg: #000;
    --card: #111;
    --card-2: #161616;
    --line: rgba(255, 255, 255, 0.08);
    --line-strong: rgba(255, 255, 255, 0.14);
    --text: #fff;
    --muted: rgba(255, 255, 255, 0.58);
    --faint: rgba(255, 255, 255, 0.38);
    --ink: #0a0a0a;
    --radius: 28px;
    --max: 1120px;
    --font-display: "Instrument Sans", Inter, system-ui, sans-serif;
    --font-body: Inter, system-ui, sans-serif;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

html,
body {
    margin: 0;
    padding: 0;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-body);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

body {
    min-width: 320px;
    overflow-x: hidden;
}

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

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

.wrap {
    width: min(var(--max), calc(100% - 40px));
    margin: 0 auto;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 40;
    backdrop-filter: blur(18px);
    background: rgba(0, 0, 0, 0.72);
    border-bottom: 1px solid transparent;
}

.nav {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 16px 20px;
    min-height: 88px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 20px;
    letter-spacing: -0.03em;
}

.brand img {
    width: 48px;
    height: 48px;
    object-fit: contain;
}

.nav-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    grid-column: 3;
}

.nav-links {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 6px 14px;
    margin: 0;
    grid-column: 2;
}

.nav-links a {
    color: var(--muted);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: -0.02em;
}

.nav-links a:hover {
    color: #fff;
}

.nav-links-mobile {
    display: none;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 40px;
    padding: 0 18px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: -0.02em;
    border: 1px solid transparent;
    transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
    white-space: nowrap;
}

.btn:hover {
    transform: translateY(-1px);
}

.btn-solid {
    background: #fff;
    color: var(--ink);
}

.btn-ghost {
    background: transparent;
    color: #fff;
    border-color: var(--line-strong);
}

.btn-lg {
    height: 48px;
    padding: 0 22px;
    font-size: 15px;
}

.nav-toggle {
    display: none;
}

.nav-burger {
    display: none;
    width: 40px;
    height: 40px;
    border-radius: 999px;
    border: 1px solid var(--line-strong);
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.nav-burger span,
.nav-burger span::before,
.nav-burger span::after {
    display: block;
    width: 16px;
    height: 1.5px;
    background: #fff;
    position: relative;
}

.nav-burger span::before,
.nav-burger span::after {
    content: "";
    position: absolute;
    left: 0;
}

.nav-burger span::before {
    top: -5px;
}

.nav-burger span::after {
    top: 5px;
}

.hero {
    padding: 72px 0 24px;
    text-align: center;
    position: relative;
    overflow: hidden;
    isolation: isolate;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.hero-bg video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    filter: brightness(0.42) saturate(0.85);
}

.hero-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(0, 0, 0, 0.58) 0%, rgba(0, 0, 0, 0.7) 42%, rgba(0, 0, 0, 0.9) 78%, #000 100%),
        rgba(0, 0, 0, 0.28);
}

.hero > .wrap {
    position: relative;
    z-index: 1;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 34px;
    padding: 0 14px;
    border-radius: 999px;
    border: 1px solid var(--line-strong);
    color: var(--muted);
    font-size: 13px;
    margin-bottom: 28px;
}

.badge i {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #22c55e;
    box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.15);
}

h1,
h2,
h3 {
    font-family: var(--font-display);
    letter-spacing: -0.045em;
    margin: 0;
}

h1 {
    font-size: clamp(36px, 6vw, 60px);
    font-weight: 600;
    line-height: 1.05;
    max-width: 16ch;
    margin: 0 auto 20px;
}

.lede {
    max-width: 42rem;
    margin: 0 auto 32px;
    color: var(--muted);
    font-size: clamp(16px, 2vw, 19px);
    line-height: 1.55;
}

.hero-cta {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 28px;
}

.official {
    margin: 0 auto 48px;
    max-width: 720px;
}

.official-kicker {
    margin: 0 0 10px;
    color: var(--faint);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.official-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
}

.btn-official {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 36px;
    padding: 0 14px;
    border-radius: 999px;
    border: 1px solid var(--line-strong);
    background: rgba(255, 255, 255, 0.04);
    color: #fff;
    font: inherit;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: -0.02em;
    cursor: pointer;
}

.btn-official:hover {
    border-color: rgba(255, 255, 255, 0.32);
    background: rgba(255, 255, 255, 0.08);
}

.section[id],
.feature[id] {
    scroll-margin-top: 96px;
}

.stage {
    position: relative;
    margin: 0 auto;
    max-width: 100%;
}

.glow {
    position: absolute;
    inset: 10% 8% auto;
    height: 240px;
    background: radial-gradient(ellipse at center, rgba(70, 142, 249, 0.16), transparent 70%);
    filter: blur(24px);
    pointer-events: none;
    animation: glowPulse 8s ease-in-out infinite;
}

.app-frame {
    position: relative;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: linear-gradient(180deg, #141414 0%, #0c0c0c 100%);
    overflow: hidden;
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.45);
    display: grid;
    grid-template-columns: 200px minmax(0, 1fr) 230px;
    text-align: left;
    height: 540px;
}

.col {
    padding: 16px 14px;
    min-width: 0;
}

.col + .col {
    border-left: 1px solid var(--line);
}

.navcol {
    overflow: hidden;
}

.feed {
    padding: 0;
    display: flex;
    flex-direction: column;
    min-height: 0;
    overflow: hidden;
}

.brand-row {
    padding: 4px 8px 14px;
}

.brand-row img {
    width: 56px;
    height: 56px;
    object-fit: contain;
}

.side-item,
.rail-card {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 10px;
    border-radius: 999px;
    color: rgba(255, 255, 255, 0.82);
    font-size: 14px;
}

.side-item.active {
    font-weight: 700;
    background: rgba(255, 255, 255, 0.06);
}

.dot {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.16);
    flex-shrink: 0;
}

.feed-head {
    display: flex;
    gap: 18px;
    padding: 16px 18px;
    border-bottom: 1px solid var(--line);
    color: var(--faint);
    font-size: 14px;
}

.feed-head b {
    color: #fff;
    position: relative;
}

.feed-head b::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -17px;
    height: 2px;
    background: #fff;
}

.post {
    display: grid;
    grid-template-columns: 40px 1fr;
    gap: 12px;
    padding: 16px 18px;
    border-bottom: 1px solid var(--line);
}

.avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #468ef9, #7c5cff);
}

.avatar.g2 {
    background: linear-gradient(135deg, #22c55e, #16a34a);
}

.avatar.g3 {
    background: linear-gradient(135deg, #f5c518, #e8890c);
}

.post strong {
    font-size: 14px;
}

.post em {
    font-style: normal;
    color: var(--faint);
    font-size: 13px;
    font-weight: 400;
}

.post p {
    margin: 6px 0 0;
    font-size: 14px;
    line-height: 1.45;
    color: rgba(255, 255, 255, 0.88);
}

.media {
    margin-top: 10px;
    height: 88px;
    border-radius: 14px;
    background: linear-gradient(110deg, #1c1c1e 0%, #2e2e38 45%, #1c1c1e 90%);
    background-size: 200% 100%;
    border: 1px solid var(--line);
}

.media.shimmer {
    animation: shimmer 2.8s linear infinite;
}

.rail {
    background: transparent;
    display: flex;
    flex-direction: column;
    min-height: 0;
    overflow: hidden;
}

.rail h4 {
    font-size: 15px;
    margin: 0 0 12px;
}

.chip {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    padding: 10px 0;
    border-bottom: 1px solid var(--line);
    font-size: 13px;
}

.chip span {
    color: var(--faint);
}

.chip b {
    color: #22c55e;
    font-weight: 600;
}

.stories-row {
    display: flex;
    gap: 12px;
    padding: 14px 18px 10px;
    border-bottom: 1px solid var(--line);
    overflow: hidden;
}

.stories-track {
    display: flex;
    gap: 12px;
    animation: storiesScroll 18s linear infinite;
    width: max-content;
}

.story {
    width: 44px;
    text-align: center;
    font-size: 10px;
    color: var(--muted);
    flex-shrink: 0;
}

.ring {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    padding: 2px;
    background: conic-gradient(#468ef9, #7c5cff, #468ef9);
    margin-bottom: 6px;
}

.ring i {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: #111;
    border: 2px solid #000;
}

.section {
    padding: 88px 0;
}

.kicker {
    color: var(--faint);
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin-bottom: 14px;
}

.section h2 {
    font-size: clamp(28px, 4vw, 42px);
    max-width: 18ch;
    margin-bottom: 14px;
}

.section-copy {
    color: var(--muted);
    max-width: 40rem;
    font-size: 17px;
    line-height: 1.6;
    margin-bottom: 40px;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.card {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 28px 24px;
}

.icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--line);
    margin-bottom: 18px;
}

.icon svg {
    width: 20px;
    height: 20px;
    stroke: #fff;
    fill: none;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.card h3 {
    font-size: 20px;
    margin-bottom: 8px;
}

.card p {
    margin: 0;
    color: var(--muted);
    line-height: 1.55;
    font-size: 15px;
}

.steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.step {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 28px 22px;
}

.step b {
    display: block;
    color: var(--faint);
    font-size: 13px;
    margin-bottom: 18px;
    letter-spacing: 0.08em;
}

.step h3 {
    font-size: 20px;
    margin-bottom: 8px;
}

.step p {
    margin: 0;
    color: var(--muted);
    line-height: 1.55;
    font-size: 15px;
}

.split {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 48px;
    align-items: center;
}

.phone {
    border-radius: 36px;
    border: 1px solid var(--line-strong);
    background: #0d0d0d;
    padding: 14px 12px 20px;
    min-height: 420px;
}

.phone-bar {
    height: 10px;
    width: 84px;
    border-radius: 999px;
    background: #1c1c1e;
    margin: 6px auto 16px;
}

.phone-post {
    background: var(--card-2);
    border-radius: 16px;
    padding: 14px;
    margin-bottom: 10px;
    border: 1px solid var(--line);
}

.faq {
    display: grid;
    gap: 10px;
    max-width: 760px;
}

details {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 0 20px;
}

summary {
    cursor: pointer;
    list-style: none;
    padding: 18px 0;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 17px;
    letter-spacing: -0.03em;
}

summary::-webkit-details-marker {
    display: none;
}

details p {
    margin: 0 0 18px;
    color: var(--muted);
    line-height: 1.6;
}

.cta-band {
    text-align: center;
    padding: 72px 24px;
    border: 1px solid var(--line);
    border-radius: 36px;
    background:
        radial-gradient(ellipse at top, rgba(70, 142, 249, 0.12), transparent 55%),
        var(--card);
}

.cta-band h2 {
    font-size: clamp(28px, 4vw, 44px);
    margin: 0 auto 14px;
    max-width: 16ch;
}

.cta-band p {
    color: var(--muted);
    margin: 0 auto 28px;
    max-width: 36rem;
    font-size: 17px;
}

.wrap-wide {
    width: min(1240px, calc(100% - 40px));
    margin: 0 auto;
}

.jump {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.jump a {
    display: inline-flex;
    align-items: center;
    height: 36px;
    padding: 0 14px;
    border-radius: 999px;
    border: 1px solid var(--line-strong);
    color: var(--muted);
    font-size: 13px;
    font-weight: 600;
}

.jump a:hover {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.28);
}

.feature {
    padding: 72px 0;
}

.feature-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(320px, 1fr);
    gap: 56px;
    align-items: center;
}

.feature-grid-rev {
    grid-template-columns: minmax(320px, 1fr) minmax(0, 1.05fr);
}

.feature-grid-rev .feature-copy {
    order: 2;
}

.feature-copy .section-copy {
    max-width: none;
    margin-bottom: 24px;
}

.feature-copy h2 {
    max-width: 20ch;
}

.feature-points {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 14px;
}

.feature-points li {
    color: var(--muted);
    font-size: 15px;
    line-height: 1.55;
    padding-left: 0;
}

.feature-points strong {
    display: block;
    color: #fff;
    font-size: 15px;
    margin-bottom: 2px;
    font-weight: 600;
}

.section-note {
    margin: 22px 0 0;
    color: var(--faint);
    font-size: 13px;
    line-height: 1.5;
}

.mock {
    border: 1px solid var(--line);
    border-radius: 22px;
    background: linear-gradient(180deg, #141414 0%, #0c0c0c 100%);
    overflow: hidden;
    box-shadow: 0 32px 64px rgba(0, 0, 0, 0.4);
    text-align: left;
}

.mock-chrome {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 12px 14px;
    border-bottom: 1px solid var(--line);
    color: var(--faint);
    font-size: 12px;
    font-weight: 600;
}

.mock-chrome b {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.16);
}

.mock-chrome span {
    margin-left: 8px;
    color: #fff;
}

.mock-tabs,
.mock-pills {
    display: flex;
    gap: 8px;
    padding: 12px 14px 0;
    flex-wrap: wrap;
}

.mock-tabs i,
.mock-pills i {
    font-style: normal;
    font-size: 12px;
    color: var(--faint);
    padding: 6px 10px;
    border-radius: 999px;
}

.mock-tabs i.on,
.mock-pills i.on {
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
}

.mock-feed .mock-row {
    display: grid;
    grid-template-columns: 36px 1fr;
    gap: 10px;
    padding: 14px;
    border-bottom: 1px solid var(--line);
}

.mock-feed .mock-row:last-child {
    border-bottom: 0;
}

.mock-feed strong {
    font-size: 13px;
}

.mock-feed em {
    font-style: normal;
    color: var(--faint);
    font-size: 12px;
}

.mock-feed p {
    margin: 4px 0 0;
    font-size: 13px;
    line-height: 1.4;
    color: rgba(255, 255, 255, 0.88);
}

.mock-feed .media {
    height: 64px;
}

.trend-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    padding: 12px 14px;
}

.trend-cell {
    min-width: 0;
}

.trend-thumb {
    position: relative;
    aspect-ratio: 9 / 12;
    border-radius: 12px;
    background:
        linear-gradient(180deg, transparent 40%, rgba(0, 0, 0, 0.65)),
        linear-gradient(135deg, #1c2744, #3a1f4a 55%, #111);
    border: 1px solid var(--line);
}

.trend-thumb .play {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 18px;
    height: 18px;
    margin: -9px 0 0 -7px;
    clip-path: polygon(0 0, 100% 50%, 0 100%);
    background: rgba(255, 255, 255, 0.85);
}

.trend-thumb em {
    position: absolute;
    top: 6px;
    left: 6px;
    font-style: normal;
    font-size: 10px;
    background: rgba(0, 0, 0, 0.65);
    color: #fff;
    padding: 2px 6px;
    border-radius: 999px;
}

.trend-cell strong {
    display: block;
    margin-top: 6px;
    font-size: 11px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.trend-cell small {
    display: block;
    color: var(--faint);
    font-size: 10px;
}

.mock-pager {
    padding: 0 14px 14px;
    color: var(--faint);
    font-size: 11px;
    text-align: center;
}

.mock-meta {
    padding-bottom: 14px;
}

.meta-card {
    margin: 14px;
    padding: 16px;
    border-radius: 16px;
    border: 1px solid var(--line);
    background: var(--card-2);
}

.meta-top {
    display: flex;
    justify-content: space-between;
    gap: 12px;
}

.meta-card small.up {
    display: block;
    margin-top: 4px;
    color: #22c55e;
    font-size: 12px;
}

.meta-score {
    font-size: 28px;
    font-weight: 700;
    letter-spacing: -0.04em;
}

.meta-score em {
    display: block;
    font-style: normal;
    font-size: 12px;
    color: #22c55e;
    text-align: right;
}

.meta-card p {
    margin: 10px 0 0;
    color: var(--muted);
    font-size: 12px;
}

.chart {
    margin-top: 12px;
    height: 72px;
}

.chart svg {
    width: 100%;
    height: 72px;
}

.chart path {
    fill: none;
    stroke: #468ef9;
    stroke-width: 2.5;
}

.meta-mini {
    display: grid;
    gap: 8px;
    padding: 0 14px;
}

.meta-mini div {
    display: flex;
    justify-content: space-between;
    padding: 10px 12px;
    border-radius: 12px;
    border: 1px solid var(--line);
    font-size: 13px;
}

.meta-mini span {
    color: var(--muted);
    font-variant-numeric: tabular-nums;
}

.scan-line {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 14px;
    color: #22c55e;
    font-size: 12px;
    font-weight: 600;
    border-bottom: 1px solid var(--line);
}

.scan-line i {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #22c55e;
    box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.16);
    animation: glowPulse 2s ease-in-out infinite;
}

.alert-card {
    margin: 12px 14px 0;
    padding: 14px;
    border-radius: 14px;
    border: 1px solid var(--line);
    background: var(--card-2);
}

.alert-card.dim {
    opacity: 0.78;
}

.alert-card p {
    margin: 6px 0 8px;
    color: var(--muted);
    font-size: 12px;
}

.alert-card span {
    color: #fff;
    font-size: 12px;
    font-weight: 600;
}

.launch-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 10px 14px;
    padding: 10px 0;
    border-top: 1px solid var(--line);
}

.launch-row small {
    display: block;
    color: var(--faint);
    font-size: 11px;
    margin-top: 2px;
}

.launch-row em {
    font-style: normal;
    color: #22c55e;
    font-size: 13px;
    font-weight: 600;
}

.desk-layout {
    display: grid;
    grid-template-columns: 140px 1fr;
    min-height: 280px;
}

.desk-layout aside {
    padding: 14px;
    border-right: 1px solid var(--line);
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.desk-layout aside small {
    color: var(--faint);
    font-size: 11px;
}

.desk-layout aside b {
    font-size: 13px;
}

.desk-thread {
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.bubble {
    border-radius: 14px;
    padding: 10px 12px;
    font-size: 12px;
    line-height: 1.45;
    max-width: 92%;
}

.bubble.you {
    margin-left: auto;
    background: rgba(70, 142, 249, 0.2);
}

.bubble.bot {
    background: var(--card-2);
    border: 1px solid var(--line);
    color: var(--muted);
}

.site-footer {
    border-top: 1px solid var(--line);
    padding: 28px 0 40px;
    margin-top: 72px;
}

.foot {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 24px;
    justify-content: space-between;
    color: var(--faint);
    font-size: 13px;
}

.foot nav {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.foot a:hover {
    color: #fff;
}

.compose {
    display: grid;
    grid-template-columns: 36px 1fr;
    gap: 10px;
    align-items: center;
    padding: 12px 18px;
    border-bottom: 1px solid var(--line);
}

.compose-line {
    color: var(--faint);
    font-size: 14px;
    text-align: left;
}

.feed-window {
    flex: 1;
    overflow: hidden;
    position: relative;
}

.feed-track {
    animation: feedScroll 28s linear infinite;
}

.rail-window {
    flex: 1;
    overflow: hidden;
    min-height: 0;
}

.rail-track {
    animation: railScroll 18s linear infinite;
}

.disclaimer {
    margin: 12px auto 0;
    color: var(--faint);
    font-size: 12px;
    line-height: 1.5;
    max-width: 52rem;
}

.caret {
    display: inline-block;
    width: 1px;
    height: 14px;
    margin-left: 4px;
    background: #fff;
    vertical-align: -2px;
    animation: blink 1s steps(1) infinite;
}

@keyframes blink {
    50% { opacity: 0; }
}

@keyframes glowPulse {
    0%, 100% { opacity: 0.65; }
    50% { opacity: 1; }
}

@keyframes shimmer {
    to { background-position: -200% 0; }
}

@keyframes feedScroll {
    from { transform: translateY(0); }
    to { transform: translateY(-50%); }
}

@keyframes railScroll {
    from { transform: translateY(0); }
    to { transform: translateY(-50%); }
}

@keyframes storiesScroll {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
    .glow,
    .shimmer,
    .caret,
    .feed-track,
    .rail-track,
    .stories-track {
        animation: none;
    }

    .hero-bg video {
        display: none;
    }
}

@media (max-width: 1024px) {
    .app-frame {
        grid-template-columns: minmax(0, 1fr) 210px;
    }

    .navcol {
        display: none;
    }

    .grid-3,
    .steps {
        grid-template-columns: 1fr 1fr;
    }

    .split,
    .feature-grid,
    .feature-grid-rev {
        grid-template-columns: 1fr;
    }

    .feature-grid-rev .feature-copy {
        order: 0;
    }
}

@media (max-width: 720px) {
    .wrap {
        width: min(var(--max), calc(100% - 28px));
    }

    .nav {
        grid-template-columns: auto 1fr auto;
    }

    .nav-burger {
        display: inline-flex;
        grid-column: 3;
        justify-self: end;
    }

    .nav-links {
        display: none;
    }

    .nav-actions {
        display: none;
        position: absolute;
        top: 88px;
        left: 0;
        right: 0;
        padding: 12px 16px 16px;
        background: rgba(0, 0, 0, 0.96);
        border-bottom: 1px solid var(--line);
        flex-direction: column;
        align-items: stretch;
    }

    .nav-toggle:checked ~ .nav-actions {
        display: flex;
    }

    .nav-toggle:checked ~ .nav-actions .nav-links-mobile {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 4px;
        margin: 0 0 8px;
    }

    .nav-links-mobile a {
        padding: 10px 4px;
        font-size: 15px;
        color: #fff;
        font-weight: 600;
    }

    .hero {
        padding-top: 40px;
    }

    .app-frame {
        grid-template-columns: 1fr;
    }

    .navcol,
    .rail {
        display: none;
    }

    .grid-3,
    .steps {
        grid-template-columns: 1fr;
    }

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

    .desk-layout {
        grid-template-columns: 1fr;
    }

    .desk-layout aside {
        border-right: 0;
        border-bottom: 1px solid var(--line);
        flex-direction: row;
        flex-wrap: wrap;
        align-items: baseline;
    }

    .wrap-wide {
        width: min(var(--max), calc(100% - 28px));
    }

    .section {
        padding: 64px 0;
    }
}

html[data-theme="light"] {
    --bg: #f4f4f1;
    --card: #ffffff;
    --card-2: #ecece6;
    --line: rgba(10, 10, 10, 0.08);
    --line-strong: rgba(10, 10, 10, 0.14);
    --text: #0a0a0a;
    --muted: rgba(10, 10, 10, 0.58);
    --faint: rgba(10, 10, 10, 0.38);
    --ink: #0a0a0a;
}

html[data-theme="light"] .site-header {
    background: rgba(244, 244, 241, 0.86);
}

html[data-theme="light"] .btn-solid {
    background: #0a0a0a;
    color: #fff;
}

html[data-theme="light"] .btn-ghost {
    color: #0a0a0a;
}

html[data-theme="light"] .nav-links a:hover,
html[data-theme="light"] .jump a:hover {
    color: #0a0a0a;
}

html[data-theme="light"] .btn-official {
    color: #0a0a0a;
    background: rgba(10, 10, 10, 0.04);
}

html[data-theme="light"] .nav-burger span,
html[data-theme="light"] .nav-burger span::before,
html[data-theme="light"] .nav-burger span::after {
    background: #0a0a0a;
}

.auth-body .nav-actions {
    display: flex;
    position: static;
    padding: 0;
    background: transparent;
    border: 0;
    flex-direction: row;
    align-items: center;
}

.auth-main {
    padding: 48px 0 88px;
}

.auth-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(280px, 440px);
    gap: 56px;
    align-items: center;
}

.auth-single {
    max-width: 440px;
    margin: 0 auto;
}

.auth-copy h1 {
    margin: 0 0 18px;
    max-width: 14ch;
    text-align: left;
    font-size: clamp(36px, 5vw, 56px);
}

.auth-copy .lede {
    margin: 0;
    text-align: left;
}

.auth-card {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 32px 28px;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.18);
}

.auth-card-head h2 {
    font-family: var(--font-display);
    font-size: 28px;
    font-weight: 600;
    letter-spacing: -0.04em;
    margin: 0 0 8px;
}

.auth-card-head p {
    color: var(--muted);
    margin: 0 0 24px;
    line-height: 1.5;
    font-size: 15px;
}

.auth-error {
    color: #f87171;
    font-size: 14px;
    margin: 0 0 16px;
}

.auth-muted {
    color: var(--muted);
    font-size: 14px;
    margin: 0 0 16px;
}

.auth-fineprint {
    margin-top: 24px;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.5;
    text-align: center;
}

.auth-link {
    text-decoration: underline;
    color: var(--text);
}

.auth-wallet-btn {
    width: 100%;
    height: 52px;
    border: 0;
    cursor: pointer;
    font-family: inherit;
}

.auth-wallet-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.auth-body .hidden {
    display: none !important;
}

@media (max-width: 900px) {
    .auth-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .auth-copy {
        text-align: center;
    }

    .auth-copy h1,
    .auth-copy .lede {
        margin-left: auto;
        margin-right: auto;
        text-align: center;
    }
}

