:root {
  --bg: #f5f5f7;
  --surface: rgba(255,255,255,.82);
  --surface-solid: #fff;
  --text: #1d1d1f;
  --muted: #6e6e73;
  --line: rgba(0,0,0,.08);
  --line-strong: rgba(0,0,0,.13);
  --blue: #0071e3;
  --blue-hover: #0077ed;
  --green: #16a26a;
  --pink: #f43f6f;
  --radius: 22px;
  --shadow: 0 18px 60px rgba(0,0,0,.08);
  --font: Inter, -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "PingFang SC", "Noto Sans SC", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--font); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }
button { cursor: pointer; }
.svg-defs { position: absolute; width: 0; height: 0; overflow: hidden; }
svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.button { min-height: 42px; padding: 0 19px; border: 0; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-weight: 650; transition: .22s ease; white-space: nowrap; }
.button:hover { transform: translateY(-1px); }
.button svg { width: 18px; }
.button-primary { background: var(--blue); color: #fff; box-shadow: 0 8px 24px rgba(0,113,227,.22); }
.button-primary:hover { background: var(--blue-hover); box-shadow: 0 10px 28px rgba(0,113,227,.3); }
.button-dark { background: var(--text); color: #fff; }
.button-dark:hover { background: #000; }
.button-outline { color: var(--text); background: rgba(255,255,255,.72); border: 1px solid var(--line-strong); }
.button-small { min-height: 34px; padding: 0 15px; font-size: 13px; }
.button-large { min-height: 54px; padding: 0 28px; font-size: 16px; }
.button-full { width: 100%; min-height: 50px; margin-top: 4px; }
.icon-button { width: 40px; height: 40px; padding: 0; border: 0; border-radius: 50%; color: var(--text); background: transparent; display: inline-flex; align-items: center; justify-content: center; }
.icon-button:hover { background: rgba(0,0,0,.055); }

.brand { display: inline-flex; align-items: center; gap: 11px; font-weight: 750; letter-spacing: -.03em; font-size: 20px; }
.brand-mark { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; color: #fff; font-weight: 800; background: linear-gradient(145deg,#1d1d1f 5%,#555 100%); box-shadow: inset 0 1px 1px rgba(255,255,255,.25), 0 5px 14px rgba(0,0,0,.16); }
.avatar { --avatar: #0071e3; flex: 0 0 auto; width: 46px; height: 46px; display: grid; place-items: center; border-radius: 50%; color: #fff; font-size: 17px; font-weight: 750; background: linear-gradient(145deg, color-mix(in srgb, var(--avatar) 70%, white), var(--avatar)); box-shadow: inset 0 0 0 1px rgba(255,255,255,.3); }
.avatar-sm { width: 38px; height: 38px; font-size: 14px; }
.avatar-xl { width: 104px; height: 104px; border: 4px solid #fff; font-size: 34px; box-shadow: 0 7px 25px rgba(0,0,0,.11); }
.verified { display: inline-grid; place-items: center; width: 16px; height: 16px; margin: 0 3px; border-radius: 50%; color: #fff; background: var(--blue); font-size: 10px; font-weight: 800; vertical-align: 1px; }
.verified-large { width: 18px; height: 18px; font-size: 11px; vertical-align: 3px; }
.eyebrow { display: block; color: var(--blue); font-weight: 700; font-size: 11px; letter-spacing: .13em; text-transform: uppercase; margin-bottom: 3px; }

/* Application shell */
.public-view { width: min(760px,100%); min-height:100vh; margin:0 auto; padding-top:74px; }
.public-nav { width:min(760px,100%); height:74px; padding:0 20px; position:fixed; top:0; z-index:50; display:flex; align-items:center; justify-content:space-between; background:rgba(245,245,247,.82); border-bottom:1px solid var(--line); backdrop-filter:blur(22px); }
.public-nav > div { display:flex; align-items:center; gap:18px; }
.public-view .main-column { min-height:calc(100vh - 74px); }
.app-shell { width: min(1320px, 100%); min-height: 100vh; margin: 0 auto; display: grid; grid-template-columns: 245px minmax(540px, 650px) 350px; gap: 28px; }
.sidebar { height: 100vh; position: sticky; top: 0; padding: 24px 12px 18px; display: flex; flex-direction: column; }
.sidebar .brand { margin: 0 12px 24px; }
.nav-list { display: grid; gap: 4px; }
.nav-item { min-height: 52px; padding: 0 16px; display: flex; align-items: center; gap: 17px; border-radius: 15px; color: #48484a; font-size: 16px; font-weight: 540; transition: .18s ease; }
.nav-item:hover { background: rgba(255,255,255,.75); color: var(--text); }
.nav-item.active { color: var(--text); background: #fff; font-weight: 700; box-shadow: 0 5px 20px rgba(0,0,0,.04); }
.nav-item.active svg { stroke-width: 2.3; }
.nav-icon-wrap { position: relative; height: 22px; }
.badge { position: absolute; top: -8px; right: -8px; min-width: 17px; height: 17px; padding: 0 4px; display: grid; place-items: center; color: #fff; background: var(--blue); border: 2px solid var(--bg); border-radius: 9px; font-size: 9px; }
.sidebar > .button { margin: 22px 5px 0; }
.sidebar-user { margin-top: auto; padding: 10px; display: flex; align-items: center; gap: 10px; border-radius: 17px; transition: .2s; }
.sidebar-user:hover { background: rgba(255,255,255,.75); }
.sidebar-user-copy { min-width: 0; flex: 1; display: grid; }
.sidebar-user-copy strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; }
.sidebar-user-copy small { color: var(--muted); margin-top: 2px; font-size: 12px; }
.sidebar-user form { margin: 0; }
.main-column { min-height: 100vh; background: rgba(255,255,255,.56); border-left: 1px solid var(--line); border-right: 1px solid var(--line); }
.rightbar { padding: 18px 8px 30px 0; }
.rightbar > * { margin-bottom: 18px; }
.sticky-header { min-height: 84px; position: sticky; top: 0; z-index: 20; padding: 18px 22px 13px; display: flex; align-items: center; justify-content: space-between; background: rgba(250,250,252,.77); backdrop-filter: saturate(170%) blur(22px); -webkit-backdrop-filter: saturate(170%) blur(22px); border-bottom: 1px solid var(--line); }
.sticky-header h1 { margin: 0; font-size: 23px; line-height: 1.12; letter-spacing: -.04em; }
.sticky-header small { color: var(--muted); }
.header-orb { width: 26px; height: 26px; border-radius: 50%; background: radial-gradient(circle at 32% 28%,#fff 0 8%,#b5d7ff 22%,#0071e3 70%); box-shadow: 0 7px 18px rgba(0,113,227,.2); }
.compact-header { min-height: 70px; justify-content: flex-start; gap: 10px; }
.compact-header h1 { font-size: 18px; }
.compact-header small { font-size: 11px; }
.explore-header { min-height: 76px; }

.search-box { height: 44px; padding: 0 15px; display: flex; align-items: center; gap: 9px; background: rgba(255,255,255,.82); border: 1px solid transparent; border-radius: 15px; box-shadow: 0 4px 18px rgba(0,0,0,.035); transition: .2s; }
.search-box:focus-within { background: #fff; border-color: rgba(0,113,227,.45); box-shadow: 0 0 0 4px rgba(0,113,227,.08); }
.search-box svg { width: 18px; color: #888; }
.search-box input { min-width: 0; flex: 1; border: 0; outline: 0; background: transparent; color: var(--text); }
.glass-card { background: rgba(255,255,255,.74); border: 1px solid rgba(255,255,255,.88); border-radius: var(--radius); box-shadow: 0 9px 28px rgba(0,0,0,.045); overflow: hidden; }
.card-heading { padding: 21px 20px 11px; display: flex; justify-content: space-between; align-items: center; }
.card-heading h2, .suggestion-card h2 { margin: 0; font-size: 18px; letter-spacing: -.035em; }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: #34c759; box-shadow: 0 0 0 5px rgba(52,199,89,.11); }
.trend { padding: 12px 20px; display: grid; gap: 3px; transition: .18s; }
.trend:hover { background: rgba(0,0,0,.025); }
.trend small, .trend span { color: var(--muted); font-size: 11px; }
.trend strong { font-size: 14px; }
.suggestion-card { padding: 19px 14px 10px; }
.suggestion-card h2 { padding: 0 6px 12px; }
.suggestion { padding: 9px 6px; display: flex; align-items: center; gap: 10px; }
.suggestion-copy { flex: 1; min-width: 0; display: grid; }
.suggestion-copy strong { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 13px; }
.suggestion-copy small { color: var(--muted); font-size: 11px; margin-top: 2px; }
.mini-footer { color: #8e8e93; font-size: 11px; padding: 0 10px; }

/* Feed and posts */
.feed-tabs { height: 50px; display: grid; grid-template-columns: repeat(2,1fr); border-bottom: 1px solid var(--line); }
.feed-tabs a { position: relative; display: grid; place-items: center; color: var(--muted); font-size: 13px; font-weight: 600; transition: .2s; }
.feed-tabs a:hover { background: rgba(0,0,0,.025); }
.feed-tabs a.active { color: var(--text); }
.feed-tabs a.active:after { content: ""; position: absolute; bottom: 0; width: 34px; height: 3px; border-radius: 4px; background: var(--blue); }
.composer { display: flex; gap: 13px; background: rgba(255,255,255,.74); }
.inline-composer { padding: 19px 21px 12px; border-bottom: 1px solid var(--line); }
.composer-main { min-width: 0; flex: 1; }
.composer textarea { width: 100%; min-height: 62px; padding: 7px 0; border: 0; outline: 0; resize: none; background: transparent; color: var(--text); font-size: 17px; line-height: 1.5; }
.composer textarea::placeholder { color: #a1a1a6; }
.composer-bottom { min-height: 41px; display: flex; justify-content: space-between; align-items: center; border-top: 1px solid var(--line); }
.composer-bottom > div { display: flex; align-items: center; gap: 10px; }
.composer-tools { color: var(--blue); }
.composer-tools small { font-weight: 600; font-size: 11px; }
.char-count { color: #a1a1a6; font-size: 11px; font-variant-numeric: tabular-nums; }
.post-card { padding: 19px 21px 10px; display: flex; gap: 13px; background: rgba(255,255,255,.45); border-bottom: 1px solid var(--line); transition: background .18s; }
.post-card:hover { background: rgba(255,255,255,.87); }
.post-body { min-width: 0; flex: 1; }
.post-meta { display: flex; justify-content: space-between; align-items: flex-start; }
.post-meta > a { min-width: 0; font-size: 13px; }
.post-meta strong { letter-spacing: -.01em; }
.post-meta span:not(.verified) { margin-left: 5px; color: var(--muted); font-size: 12px; font-weight: 400; }
.post-content { padding: 5px 0 10px; display: block; white-space: pre-wrap; overflow-wrap: anywhere; font-size: 15px; line-height: 1.55; letter-spacing: -.005em; }
.post-actions { max-width: 430px; display: flex; justify-content: space-between; align-items: center; }
.post-actions form { margin: 0; }
.post-action { min-width: 52px; height: 34px; padding: 0 6px; border: 0; border-radius: 20px; display: flex; align-items: center; gap: 6px; color: #86868b; background: transparent; font-size: 11px; transition: .18s; }
.post-action svg { width: 18px; height: 18px; }
.post-action:hover { color: var(--blue); background: rgba(0,113,227,.07); }
.post-action.repost:hover, .post-action.repost.active { color: var(--green); background: rgba(22,162,106,.07); }
.post-action.like:hover, .post-action.like.active { color: var(--pink); background: rgba(244,63,111,.07); }
.post-action.like.active svg, .post-action.bookmark.active svg { fill: currentColor; }
.post-action.bookmark.active { color: var(--blue); }
.post-menu { position: relative; }
.post-menu summary { list-style: none; width: 30px; height: 30px; display: grid; place-items: center; color: var(--muted); border-radius: 50%; cursor: pointer; }
.post-menu summary::-webkit-details-marker { display: none; }
.post-menu summary:hover { color: var(--blue); background: rgba(0,113,227,.07); }
.post-menu form { position: absolute; right: 0; top: 32px; z-index: 3; width: 125px; padding: 5px; background: #fff; border: 1px solid var(--line); border-radius: 13px; box-shadow: var(--shadow); }
.post-menu button { width: 100%; padding: 9px; border: 0; border-radius: 9px; color: #ff3b30; background: transparent; text-align: left; font-size: 12px; }
.post-menu button:hover { background: #fff1f0; }
.post-detail { padding-top: 25px; }
.post-detail .avatar { width: 54px; height: 54px; }
.post-detail .post-content { padding: 15px 0 20px; font-size: 21px; line-height: 1.5; letter-spacing: -.025em; }
.post-detail .post-actions { max-width: none; padding-top: 8px; border-top: 1px solid var(--line); }
.reply-composer { padding: 16px 21px 8px; border-bottom: 1px solid var(--line); }
.reply-composer textarea { min-height: 46px; font-size: 15px; }
.reply-composer .composer-bottom { justify-content: flex-end; gap: 10px; }
.section-label { padding: 17px 21px 9px; color: var(--muted); background: rgba(255,255,255,.45); font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.spaced-timeline { padding-top: 10px; }
.login-callout { margin: 16px; padding: 17px; display: flex; align-items: center; justify-content: space-between; background: #fff; border-radius: 18px; box-shadow: 0 8px 25px rgba(0,0,0,.05); }
.login-callout div { display: grid; gap: 3px; }
.login-callout span { color: var(--muted); font-size: 12px; }
.empty-state { min-height: 260px; padding: 50px 28px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; background: rgba(255,255,255,.38); }
.empty-state h3 { margin: 15px 0 5px; letter-spacing: -.025em; }
.empty-state p { max-width: 330px; margin: 0; color: var(--muted); font-size: 13px; line-height: 1.6; }
.empty-orb { width: 45px; height: 45px; border-radius: 50%; background: radial-gradient(circle at 30% 25%,#fff,#cce6ff 25%,#0071e3 80%); box-shadow: 0 10px 30px rgba(0,113,227,.2); }

/* Profile */
.profile-hero { background: rgba(255,255,255,.52); }
.profile-cover { --accent:#0071e3; height: 190px; position: relative; overflow: hidden; background: linear-gradient(135deg,color-mix(in srgb,var(--accent) 14%,white),color-mix(in srgb,var(--accent) 35%,white)); }
.profile-cover:before { content:""; position:absolute; width:270px; height:270px; left:-60px; top:-110px; border-radius:50%; background:rgba(255,255,255,.52); filter:blur(1px); }
.profile-cover i { position:absolute; width:170px; height:170px; right:8%; bottom:-80px; border-radius:42%; border:1px solid rgba(255,255,255,.65); transform:rotate(25deg); }
.profile-cover b { position:absolute; width:80px; height:80px; right:36%; top:23%; border-radius:50%; background:rgba(255,255,255,.32); backdrop-filter:blur(10px); }
.profile-row { height: 60px; padding: 0 21px; display: flex; justify-content: space-between; }
.profile-row .avatar-xl { transform: translateY(-52px); }
.profile-row > div { padding-top: 12px; }
.profile-info { padding: 6px 21px 20px; }
.profile-info h1 { margin: 0; font-size: 22px; letter-spacing: -.035em; }
.profile-info > span { color: var(--muted); font-size: 12px; }
.profile-info > p { margin: 15px 0 12px; font-size: 14px; line-height: 1.55; }
.profile-facts { display: flex; flex-wrap: wrap; gap: 12px; color: var(--muted); font-size: 12px; }
.profile-facts span, .profile-facts a { display: flex; align-items: center; gap: 4px; }
.profile-facts svg { width: 15px; }
.profile-facts a { color: var(--blue); }
.profile-stats { margin-top: 14px; display: flex; gap: 17px; color: var(--muted); font-size: 12px; }
.profile-stats strong { color: var(--text); }
.profile-tabs { grid-template-columns: repeat(3,1fr); }
.following-button:hover { color: #ff3b30; border-color: rgba(255,59,48,.3); }

/* Explore */
.main-search { width: 100%; }
.result-title { padding: 28px 22px 17px; background: rgba(255,255,255,.46); }
.result-title h1 { margin: 0; font-size: 28px; letter-spacing: -.04em; }
.people-results { background: rgba(255,255,255,.48); border-bottom: 1px solid var(--line); }
.people-results h2 { padding: 18px 21px 8px; margin: 0; font-size: 16px; }
.person-result { padding: 12px 21px; display: flex; align-items: center; gap: 12px; }
.person-result:hover { background: rgba(255,255,255,.7); }
.person-result > span:nth-child(2) { min-width: 0; flex: 1; display: grid; }
.person-result strong { font-size: 13px; }
.person-result small { color: var(--muted); font-size: 11px; }
.person-result p { margin: 4px 0 0; color: #48484a; font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.person-result i { font-style: normal; color: #aaa; }
.discover-hero { min-height: 285px; padding: 58px 38px; position: relative; overflow: hidden; background: linear-gradient(145deg,#fff 0%,#f0f7ff 100%); border-bottom: 1px solid var(--line); }
.discover-hero:after { content:""; width:210px; height:210px; position:absolute; right:-25px; top:40px; border-radius:50%; background:radial-gradient(circle at 35% 30%,#fff 0 6%,#b8dcff 25%,#0071e3 72%); box-shadow:0 25px 60px rgba(0,113,227,.22); }
.discover-hero h1 { margin: 8px 0 12px; font-size: 40px; line-height: 1.06; letter-spacing: -.055em; }
.discover-hero p { max-width: 350px; margin: 0; color: var(--muted); font-size: 14px; line-height: 1.6; }
.topic-grid { padding: 15px; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; border-bottom: 1px solid var(--line); }
.topic-grid a { min-height: 120px; padding: 18px; display: flex; flex-direction: column; border-radius: 18px; background: rgba(255,255,255,.82); box-shadow: 0 6px 20px rgba(0,0,0,.035); transition: .2s; }
.topic-grid a:hover { transform: translateY(-2px); box-shadow: 0 10px 26px rgba(0,0,0,.07); }
.topic-grid small { color: var(--muted); font-size: 11px; }
.topic-grid strong { margin-top: 5px; font-size: 16px; }
.topic-grid span { margin-top: auto; color: var(--blue); font-size: 11px; }

/* Notifications & Settings */
.notification-item { padding: 18px 21px; display: flex; align-items: flex-start; gap: 12px; background: rgba(255,255,255,.5); border-bottom: 1px solid var(--line); transition: .18s; }
.notification-item:hover { background: #fff; }
.notification-item.unread { background: rgba(0,113,227,.045); }
.notification-icon { width: 34px; height: 34px; display: grid; place-items: center; color: var(--blue); }
.notification-icon.type-like { color: var(--pink); }
.notification-icon.type-repost { color: var(--green); }
.notification-icon svg { width: 22px; }
.notification-copy { min-width: 0; flex: 1; }
.notification-copy strong { font-size: 13px; }
.notification-copy p { margin: 2px 0 5px; font-size: 13px; }
.notification-copy blockquote { margin: 8px 0; padding: 10px 12px; color: var(--muted); background: rgba(0,0,0,.025); border-left: 2px solid var(--line-strong); border-radius: 0 8px 8px 0; font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.notification-copy small { color: var(--muted); font-size: 10px; }
.settings-card { margin: 20px; overflow: hidden; background: #fff; border: 1px solid var(--line); border-radius: 24px; box-shadow: 0 10px 35px rgba(0,0,0,.045); }
.settings-preview { height: 165px; position: relative; }
.mini-cover { height: 130px; }
.settings-preview .avatar-xl { position: absolute; left: 25px; bottom: -12px; }
.settings-form { padding: 30px 25px 25px; display: grid; gap: 20px; }
.settings-form label { display: grid; gap: 7px; }
.settings-form label > span, .settings-form legend { font-size: 12px; font-weight: 650; }
.settings-form input:not([type=radio]), .settings-form textarea { width: 100%; padding: 12px 13px; border: 1px solid var(--line-strong); border-radius: 12px; outline: none; background: #fbfbfd; resize: vertical; transition: .2s; }
.settings-form input:focus, .settings-form textarea:focus { border-color: rgba(0,113,227,.5); background: #fff; box-shadow: 0 0 0 4px rgba(0,113,227,.07); }
.settings-form label small { color: var(--muted); text-align: right; font-size: 10px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.settings-form fieldset { padding: 0; border: 0; }
.accent-picker { margin-top: 11px; display: flex; gap: 12px; }
.accent-picker label { display: block; }
.accent-picker input { position: absolute; opacity: 0; }
.accent-picker span { --choice:#0071e3; width: 35px; height: 35px; display: grid; place-items: center; color: #fff; background: var(--choice); border-radius: 50%; box-shadow: 0 3px 10px color-mix(in srgb,var(--choice) 28%,transparent); cursor: pointer; transition: .2s; }
.accent-picker svg { width: 17px; opacity: 0; }
.accent-picker input:checked + span { box-shadow: 0 0 0 3px #fff,0 0 0 5px var(--choice); }
.accent-picker input:checked + span svg { opacity: 1; }
.settings-actions { padding-top: 18px; display: flex; justify-content: flex-end; gap: 10px; border-top: 1px solid var(--line); }

/* Modals, toast, errors */
.modal { position: fixed; inset: 0; z-index: 100; display: none; place-items: start center; padding-top: 9vh; }
.modal.open { display: grid; }
.modal-backdrop { position: absolute; inset: 0; width: 100%; border: 0; background: rgba(0,0,0,.25); backdrop-filter: blur(4px); }
.modal-panel { width: min(590px,calc(100% - 28px)); position: relative; overflow: hidden; background: rgba(255,255,255,.96); border: 1px solid rgba(255,255,255,.8); border-radius: 24px; box-shadow: 0 30px 90px rgba(0,0,0,.22); animation: modal-in .25s ease both; }
@keyframes modal-in { from { opacity:0; transform:translateY(14px) scale(.98); } }
.modal-top { height: 56px; padding: 0 13px; display: grid; grid-template-columns: 50px 1fr 50px; align-items: center; text-align: center; border-bottom: 1px solid var(--line); }
.modal-composer { padding: 20px; }
.modal-composer textarea { min-height: 145px; font-size: 20px; }
.audience { color: var(--blue); font-size: 11px; font-weight: 650; }
.toast-stack { position: fixed; z-index: 150; left: 50%; bottom: 26px; transform: translateX(-50%); display: grid; gap: 8px; }
.toast { padding: 12px 18px; color: #fff; background: rgba(29,29,31,.94); backdrop-filter: blur(15px); border-radius: 999px; box-shadow: 0 10px 35px rgba(0,0,0,.2); font-size: 12px; animation: toast-in .35s ease both; }
.toast.error { background: rgba(190,37,48,.95); }
.toast.success { background: rgba(20,126,78,.95); }
@keyframes toast-in { from { opacity:0; transform:translateY(12px); } }
.error-page { min-height: 70vh; padding: 70px 30px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.error-page > span { font-size: 76px; font-weight: 800; letter-spacing: -.07em; background: linear-gradient(135deg,#0071e3,#6e5ae6); -webkit-background-clip: text; color: transparent; }
.error-page h1 { margin: 5px 0; font-size: 30px; letter-spacing: -.04em; }
.error-page p { margin: 0 0 24px; color: var(--muted); }
.public-error { min-height: 100vh; }

/* Landing */
.landing { min-height: 100vh; overflow: hidden; background: #fff; }
.landing-nav { width: min(1180px,calc(100% - 48px)); height: 84px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; }
.landing-nav > div { display: flex; align-items: center; gap: 22px; }
.nav-link { color: #48484a; font-size: 13px; font-weight: 600; }
.hero { width: min(1240px,calc(100% - 48px)); min-height: 700px; margin: 0 auto; position: relative; display: grid; grid-template-columns: 1fr 1fr; align-items: center; }
.hero-copy { position: relative; z-index: 2; padding: 45px 0 80px 30px; }
.hero-kicker { color: var(--blue); font-size: 16px; font-weight: 700; }
.hero h1 { margin: 13px 0 22px; font-size: clamp(58px,6vw,88px); line-height: .97; letter-spacing: -.07em; }
.hero h1 span { color: #86868b; }
.hero-copy > p { max-width: 510px; margin: 0; color: var(--muted); font-size: 18px; line-height: 1.62; letter-spacing: -.015em; }
.hero-actions { margin: 32px 0 17px; display: flex; align-items: center; gap: 24px; }
.text-link { color: var(--blue); font-size: 14px; font-weight: 650; }
.text-link span { margin-left: 5px; transition: .2s; }
.text-link:hover span { margin-left: 9px; }
.hero-copy > small { color: #a1a1a6; font-size: 10px; }
.hero-glow { position: absolute; border-radius: 50%; filter: blur(4px); }
.glow-one { width: 480px; height: 480px; right: 3%; top: 80px; background: radial-gradient(circle at 32% 27%,#fff 0 5%,#d6edff 20%,#6bb8ff 45%,#0071e3 72%,#0057a9 100%); box-shadow: 0 60px 100px rgba(0,113,227,.22); }
.glow-two { width: 260px; height: 260px; right: 28%; bottom: 10px; background: radial-gradient(circle at 32% 27%,#fff 0 5%,#f3e6ff 18%,#b08cff 52%,#6e5ae6 90%); opacity: .9; }
.hero-product { position: relative; z-index: 3; min-height: 620px; display: grid; place-items: center; perspective: 1000px; }
.device-frame { width: 415px; height: 575px; overflow: hidden; background: rgba(255,255,255,.93); border: 1px solid rgba(255,255,255,.85); border-radius: 37px; box-shadow: 0 38px 100px rgba(23,52,84,.25),inset 0 0 0 7px rgba(255,255,255,.55); transform: rotateY(-5deg) rotateX(2deg); backdrop-filter: blur(30px); }
.device-top { height: 65px; padding: 0 22px; display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--line); }
.device-top strong { font-size: 14px; }
.device-dot { width: 9px; height: 9px; border-radius: 50%; background: #ff5f57; box-shadow: 16px 0 #ffbd2e,32px 0 #28c840; }
.device-spark { color: var(--blue); }
.preview-compose { padding: 18px; display: flex; gap: 11px; border-bottom: 1px solid var(--line); }
.preview-compose > div { flex: 1; }
.preview-compose p { margin: 7px 0 20px; color: #a1a1a6; font-size: 13px; }
.preview-compose button { float: right; padding: 7px 14px; color: #fff; background: var(--blue); border: 0; border-radius: 16px; font-size: 10px; }
.preview-post { padding: 17px; display: flex; gap: 10px; border-bottom: 1px solid var(--line); }
.preview-post > div { flex: 1; }
.preview-post strong { font-size: 11px; }
.preview-post em { color: var(--blue); font-style: normal; }
.preview-post small { color: var(--muted); font-weight: 400; }
.preview-post p { margin: 6px 0 12px; font-size: 12px; line-height: 1.5; }
.preview-icons { display: flex; justify-content: space-between; color: #8e8e93; font-size: 9px; }
.photo-placeholder { height: 105px; margin: 8px 0 10px; position: relative; overflow: hidden; border-radius: 13px; background: linear-gradient(145deg,#d7e9f5,#fbe9dc); }
.photo-placeholder:before { content:""; position:absolute; left:-15px; right:-15px; bottom:-50px; height:115px; background:#a1c4b4; transform:rotate(-7deg); border-radius:50%; }
.photo-placeholder i { position:absolute; width:45px; height:45px; left:40px; top:18px; border-radius:50%; background:#fff8d8; box-shadow:0 0 35px #fff; }
.photo-placeholder b { position:absolute; width:55px; height:85px; right:65px; bottom:-20px; background:#63766c; border-radius:30px 30px 10px 10px; }
.feature-strip { width: min(1120px,calc(100% - 48px)); margin: 20px auto 90px; padding-top: 50px; display: grid; grid-template-columns: repeat(3,1fr); gap: 50px; border-top: 1px solid var(--line); }
.feature-strip > div > span { color: var(--blue); font-size: 11px; font-weight: 700; }
.feature-strip h3 { margin: 10px 0 8px; font-size: 20px; letter-spacing: -.03em; }
.feature-strip p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.6; }
.landing-footer { min-height: 90px; padding: 0 max(24px,calc((100% - 1120px)/2)); display: flex; align-items: center; justify-content: space-between; color: #86868b; background: var(--bg); font-size: 11px; }

/* Auth */
.auth-page { min-height: 100vh; padding: 34px; position: relative; display: grid; place-items: center; overflow: hidden; background: radial-gradient(circle at 20% 15%,#e9f5ff,transparent 28%),radial-gradient(circle at 82% 83%,#f1eaff,transparent 32%),#f5f5f7; }
.auth-page:before, .auth-page:after { content:""; position:absolute; border-radius:50%; filter:blur(2px); }
.auth-page:before { width:260px; height:260px; left:-80px; bottom:10%; background:radial-gradient(circle at 30% 25%,#fff,#bfe0ff 20%,#0071e3 75%); opacity:.75; }
.auth-page:after { width:160px; height:160px; right:4%; top:10%; background:radial-gradient(circle at 30% 25%,#fff,#e3d8ff 20%,#6e5ae6 75%); opacity:.65; }
.auth-brand { position: absolute; top: 28px; left: 38px; z-index: 2; }
.auth-card { width: min(450px,100%); position: relative; z-index: 2; padding: 38px; background: rgba(255,255,255,.85); border: 1px solid rgba(255,255,255,.9); border-radius: 30px; box-shadow: 0 25px 80px rgba(31,41,55,.11); backdrop-filter: blur(30px); }
.auth-header { text-align: center; }
.auth-orb { width: 42px; height: 42px; margin: 0 auto 17px; display:block; border-radius:50%; background:radial-gradient(circle at 32% 25%,#fff 0 7%,#a9d5ff 25%,#0071e3 76%); box-shadow:0 10px 28px rgba(0,113,227,.25); }
.auth-header p { margin: 0 0 5px; color: var(--blue); font-size: 11px; font-weight: 700; letter-spacing: .08em; }
.auth-header h1 { margin: 0 0 28px; font-size: 29px; letter-spacing: -.045em; }
.auth-form { display: grid; gap: 15px; }
.auth-form label { display: grid; gap: 7px; }
.auth-form label > span { font-size: 11px; font-weight: 650; }
.auth-form input { width: 100%; height: 47px; padding: 0 13px; border: 1px solid var(--line-strong); border-radius: 12px; outline: 0; background: rgba(250,250,252,.85); font-size: 13px; transition: .2s; }
.auth-form input:focus { border-color: rgba(0,113,227,.5); background: #fff; box-shadow: 0 0 0 4px rgba(0,113,227,.07); }
.prefix-input { position: relative; }
.prefix-input b { position:absolute; left:13px; top:50%; transform:translateY(-50%); color:var(--muted); font-size:13px; }
.prefix-input input { padding-left: 29px; }
.auth-switch { margin: 22px 0 0; text-align: center; color: var(--muted); font-size: 12px; }
.auth-switch a { color: var(--blue); font-weight: 650; }
.demo-hint { margin-top: 17px; padding: 11px 13px; display: flex; justify-content: space-between; color: var(--muted); background: rgba(0,113,227,.05); border-radius: 11px; font-size: 11px; }
.demo-hint strong { color: var(--blue); }
.auth-foot { position: absolute; bottom: 22px; z-index: 2; color: #8e8e93; font-size: 10px; letter-spacing: .1em; text-transform: uppercase; }

@media (max-width: 1160px) {
  .app-shell { grid-template-columns: 88px minmax(520px,650px) 320px; gap: 18px; }
  .sidebar .brand-name, .nav-item > span:last-child, .sidebar-user-copy, .sidebar-user .icon-button span, .sidebar > .button span { display:none; }
  .sidebar .brand { margin-left:auto; margin-right:auto; }
  .nav-item { width:52px; margin:0 auto; padding:0; justify-content:center; }
  .sidebar > .button { width:52px; height:52px; padding:0; margin-left:auto; margin-right:auto; }
  .sidebar-user { justify-content:center; }
  .sidebar-user form { display:none; }
}
@media (max-width: 940px) {
  .app-shell { width: min(750px,100%); grid-template-columns: 82px minmax(0,1fr); gap: 10px; }
  .rightbar { display:none; }
  .hero { grid-template-columns: 1fr; padding-top: 20px; }
  .hero-copy { text-align:center; padding:50px 20px 5px; }
  .hero-copy > p { margin:0 auto; }
  .hero-actions { justify-content:center; }
  .hero-product { min-height:600px; }
  .glow-one { right:50%; transform:translateX(50%); top:auto; bottom:80px; }
  .glow-two { right:14%; bottom:0; }
}
@media (max-width: 680px) {
  body { padding-bottom:68px; }
  .app-shell { display:block; }
  .main-column { min-height:calc(100vh - 68px); border:0; }
  .sidebar { width:100%; height:64px; padding:7px 10px max(7px,env(safe-area-inset-bottom)); position:fixed; top:auto; bottom:0; z-index:80; flex-direction:row; align-items:center; background:rgba(255,255,255,.88); border-top:1px solid var(--line); backdrop-filter:blur(22px); }
  .sidebar .brand, .sidebar-user, .sidebar > .button { display:none; }
  .nav-list { width:100%; display:flex; justify-content:space-around; }
  .nav-item { width:46px; min-height:46px; border-radius:14px; }
  .nav-item:nth-child(6) { display:none; }
  .nav-item.active { box-shadow:none; background:rgba(0,113,227,.07); color:var(--blue); }
  .sticky-header { min-height:70px; padding:14px 16px 11px; }
  .sticky-header h1 { font-size:20px; }
  .inline-composer { padding:15px 16px 8px; }
  .post-card { padding:16px 15px 8px; }
  .post-meta > a { display:flex; flex-wrap:wrap; align-items:center; }
  .post-meta span:not(.verified) { flex-basis:100%; margin:2px 0 0; }
  .post-content { font-size:14px; }
  .landing-nav { width:calc(100% - 32px); height:70px; }
  .landing-nav .nav-link { display:none; }
  .landing-nav .button { min-height:38px; }
  .hero { width:100%; min-height:auto; }
  .hero-copy { padding:55px 22px 15px; }
  .hero h1 { font-size:52px; }
  .hero-copy > p { font-size:15px; }
  .hero-actions { flex-direction:column; gap:15px; }
  .hero-product { min-height:515px; transform:scale(.86); margin:-20px; }
  .device-frame { transform:none; }
  .glow-one { width:370px; height:370px; }
  .feature-strip { grid-template-columns:1fr; gap:30px; margin-bottom:55px; }
  .landing-footer { padding:25px; flex-direction:column; justify-content:center; gap:8px; }
  .auth-page { padding:20px; }
  .auth-brand { top:18px; left:20px; }
  .auth-card { padding:30px 23px; margin-top:50px; }
  .form-row { grid-template-columns:1fr; }
  .settings-card { margin:12px; }
  .discover-hero { padding:45px 25px; }
  .discover-hero:after { opacity:.25; }
  .topic-grid { grid-template-columns:1fr; }
  .profile-cover { height:150px; }
  .avatar-xl { width:90px; height:90px; }
  .profile-row .avatar-xl { transform:translateY(-43px); }
  .modal { padding-top:5vh; }
}
