:root {
  --bg: #07070a;
  --surface: rgba(24, 24, 30, .62);
  --surface-strong: rgba(34, 34, 42, .78);
  --line: rgba(255, 255, 255, .14);
  --line-soft: rgba(255, 255, 255, .075);
  --text: #f7f7f8;
  --muted: #888891;
  --accent: #f291c6;
  --accent-deep: #c44d91;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { min-height: 100%; background: var(--bg); }
body { margin: 0; min-height: 100%; color: var(--text); background: radial-gradient(circle at 50% -10%, #29242a 0, #0c0c10 30rem, var(--bg) 52rem); overflow-x: hidden; }
button, a { color: inherit; font: inherit; }
button { border: 0; cursor: pointer; }
svg { display: block; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.ambient { position: fixed; width: 22rem; height: 22rem; border-radius: 50%; filter: blur(80px); opacity: .18; pointer-events: none; transform: translateZ(0); }
.ambient-a { top: -12rem; right: -9rem; background: var(--accent); }
.ambient-b { top: 48%; left: -18rem; background: #fff; opacity: .07; }
.noise { position: fixed; inset: 0; opacity: .045; pointer-events: none; background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.8'/%3E%3C/svg%3E"); }
.glass { background: linear-gradient(145deg, rgba(255,255,255,.105), rgba(255,255,255,.035)); border: 1px solid var(--line); box-shadow: inset 0 1px 0 rgba(255,255,255,.12), 0 18px 50px rgba(0,0,0,.24); -webkit-backdrop-filter: blur(22px) saturate(125%); backdrop-filter: blur(22px) saturate(125%); }

.app-shell { position: relative; width: min(100%, 680px); min-height: 100vh; margin: 0 auto; padding: calc(14px + var(--safe-top)) 16px calc(122px + var(--safe-bottom)); }
.topbar { height: 54px; display: grid; grid-template-columns: 44px 1fr 44px; align-items: center; }
.icon-button, .status-dot { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; background: rgba(255,255,255,.055); border: 1px solid rgba(255,255,255,.1); }
.icon-button:active { transform: scale(.94); }
.icon-button svg { width: 23px; }
.brand-lockup { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.brand-name { font-size: 15px; font-weight: 760; letter-spacing: .16em; }
.brand-subtitle { color: var(--muted); font-size: 11px; letter-spacing: .18em; }
.status-dot { justify-self: end; }
.status-dot span, .live-dot { width: 8px; height: 8px; display: inline-block; border-radius: 50%; background: #8df0b5; box-shadow: 0 0 16px rgba(141,240,181,.9); }

.profile-strip { position: sticky; top: calc(8px + var(--safe-top)); z-index: 20; min-height: 72px; margin: 10px 0 18px; padding: 10px; display: grid; grid-template-columns: 50px minmax(0, 1fr) auto; gap: 11px; align-items: center; border-radius: 24px; background-color: rgba(13,13,17,.73); }
.avatar { width: 50px; aspect-ratio: 1; display: grid; place-items: center; overflow: hidden; border-radius: 50%; color: #0d0d10; font-weight: 900; background: linear-gradient(145deg, #fff 0%, #bbb 45%, var(--accent) 120%); border: 1px solid rgba(255,255,255,.55); box-shadow: inset 0 0 20px rgba(0,0,0,.2); }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.profile-copy { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.profile-copy strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 15px; }
.profile-copy span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--muted); font-size: 12px; }
.mini-badge { min-height: 42px; padding: 0 13px; display: flex; align-items: center; gap: 5px; border-radius: 16px; color: #dadade; background: rgba(255,255,255,.075); border: 1px solid rgba(255,255,255,.12); font-size: 9px; font-weight: 800; letter-spacing: .09em; }
.mini-badge svg { width: 14px; }

.view { display: none; animation: view-in .28s ease both; }
.view.active { display: block; }
@keyframes view-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
.hero { position: relative; min-height: 335px; padding: 30px 24px 24px; overflow: hidden; border-radius: 32px; isolation: isolate; }
.hero::after { content: ""; position: absolute; width: 15rem; height: 15rem; right: -7rem; bottom: -7rem; z-index: -1; border-radius: 50%; background: var(--accent); filter: blur(70px); opacity: .22; }
.hero-grid { position: absolute; inset: 0; z-index: -2; opacity: .2; background-image: linear-gradient(rgba(255,255,255,.08) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.08) 1px, transparent 1px); background-size: 42px 42px; mask-image: linear-gradient(to bottom, #000, transparent 85%); }
.hero-mark { position: absolute; right: -10px; top: 4px; z-index: -1; color: rgba(255,255,255,.035); font-size: 220px; line-height: 1; font-weight: 900; transform: rotate(-8deg); }
.eyebrow { color: #a4a4ac; font-size: 10px; font-weight: 800; letter-spacing: .2em; }
.hero .eyebrow { display: flex; align-items: center; gap: 8px; }
.hero h1, .page-intro h1 { margin: 20px 0 12px; font-size: clamp(40px, 12vw, 66px); line-height: .96; letter-spacing: -.055em; font-weight: 700; }
.hero h1 span { color: transparent; -webkit-text-stroke: 1px rgba(255,255,255,.62); }
.hero p, .page-intro p { max-width: 390px; margin: 0; color: #aaaab1; font-size: 15px; line-height: 1.5; }
.primary-button { width: 100%; min-height: 58px; margin-top: 24px; padding: 0 18px; display: flex; justify-content: center; align-items: center; gap: 12px; border-radius: 20px; color: #0b0b0e; background: linear-gradient(135deg, #fff 15%, #dedee3 100%); box-shadow: 0 12px 35px rgba(255,255,255,.1); font-size: 12px; font-weight: 900; letter-spacing: .09em; transition: transform .18s ease, filter .18s ease; }
.primary-button svg { width: 19px; }
.primary-button:active { transform: scale(.975); filter: brightness(.88); }

.section-heading { margin: 30px 3px 15px; display: flex; justify-content: space-between; align-items: end; }
.section-heading span:first-child { color: var(--muted); font-size: 9px; font-weight: 800; letter-spacing: .18em; }
.section-heading h2 { margin: 4px 0 0; font-size: 21px; letter-spacing: -.03em; }
.section-count { color: #55555e; font-size: 12px; letter-spacing: .18em; }
.feature-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.feature-card { min-height: 162px; padding: 17px; display: flex; flex-direction: column; align-items: flex-start; text-align: left; border-radius: 25px; transition: transform .18s ease, background-color .18s ease; }
.feature-card:active { transform: scale(.975); background-color: rgba(255,255,255,.08); }
.feature-icon { width: 42px; height: 42px; display: grid; place-items: center; margin-bottom: auto; border-radius: 14px; background: linear-gradient(145deg, rgba(255,255,255,.17), rgba(255,255,255,.055)); border: 1px solid rgba(255,255,255,.14); }
.feature-icon svg { width: 20px; }
.feature-card > span:nth-child(2) { min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.feature-card strong { font-size: 14px; }
.feature-card small { color: var(--muted); font-size: 11px; line-height: 1.25; }
.feature-card .arrow { position: absolute; top: 24px; right: 19px; width: 15px; color: #777780; }
.wide-card { position: relative; min-height: 174px; margin-top: 11px; padding: 24px; display: flex; align-items: center; overflow: hidden; border-radius: 28px; }
.wide-copy { width: 68%; }
.wide-copy h2 { margin: 10px 0 8px; font-size: 21px; }
.wide-copy p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.5; }
.orb { position: absolute; right: -19px; width: 130px; aspect-ratio: 1; display: grid; place-items: center; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff, #aaa 20%, #24242c 55%, #0d0d11 74%); box-shadow: -14px 18px 40px rgba(0,0,0,.4); }
.orb span { color: rgba(255,255,255,.72); font-size: 54px; font-weight: 900; transform: rotate(-12deg); }

.page-intro { padding: 16px 7px 22px; }
.page-intro h1 { margin-top: 10px; font-size: clamp(35px, 10vw, 54px); }
.tool-list { display: grid; gap: 10px; }
.tool-row { min-height: 106px; padding: 18px; display: grid; grid-template-columns: 42px minmax(0, 1fr) 10px; gap: 13px; align-items: center; text-align: left; border-radius: 24px; }
.tool-row:active { transform: scale(.985); }
.tool-index { color: #696972; font-size: 11px; letter-spacing: .14em; }
.tool-row > span:nth-child(2) { display: flex; flex-direction: column; gap: 6px; }
.tool-row strong { font-size: 16px; }
.tool-row small { color: var(--muted); font-size: 12px; line-height: 1.35; }
.tool-row i { width: 7px; height: 7px; border-top: 1px solid #aaa; border-right: 1px solid #aaa; transform: rotate(45deg); }

.profile-card { position: relative; padding: 32px 22px 24px; display: flex; flex-direction: column; align-items: center; overflow: hidden; border-radius: 32px; text-align: center; }
.profile-glow { position: absolute; top: -110px; width: 250px; height: 250px; border-radius: 50%; background: var(--accent); filter: blur(80px); opacity: .18; }
.avatar-large { position: relative; width: 88px; margin-bottom: 22px; font-size: 21px; }
.profile-card h1 { position: relative; margin: 9px 0 5px; font-size: 30px; letter-spacing: -.04em; }
.profile-card > p { position: relative; margin: 0; color: var(--muted); font-size: 13px; }
.profile-meta { width: 100%; margin-top: 30px; display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line-soft); }
.profile-meta span { padding-top: 18px; display: flex; flex-direction: column; gap: 5px; }
.profile-meta span + span { border-left: 1px solid var(--line-soft); }
.profile-meta small { color: #686871; font-size: 8px; font-weight: 800; letter-spacing: .16em; }
.profile-meta strong { font-size: 13px; }
.profile-action { width: 100%; min-height: 78px; margin-top: 10px; padding: 16px 18px; display: flex; justify-content: space-between; align-items: center; border-radius: 22px; text-align: left; text-decoration: none; }
.profile-action span { display: flex; flex-direction: column; gap: 4px; }
.profile-action strong { font-size: 14px; }
.profile-action small { color: var(--muted); font-size: 11px; }
.profile-action svg { width: 17px; color: #777780; }

.bottom-nav { position: fixed; left: 50%; bottom: calc(10px + var(--safe-bottom)); z-index: 50; width: min(calc(100% - 24px), 650px); min-height: 80px; padding: 8px 9px; display: grid; grid-template-columns: 1fr 1fr 64px 1fr 1fr; align-items: center; border-radius: 27px; background-color: rgba(15,15,19,.78); transform: translateX(-50%) translateZ(0); }
.nav-item { height: 59px; padding: 7px 2px; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 5px; border-radius: 18px; color: #606069; background: transparent; transition: color .18s ease, transform .18s ease; }
.nav-item.active { color: #fff; }
.nav-item:active { transform: scale(.92); }
.nav-item svg { width: 21px; height: 21px; }
.nav-item span { font-size: 7px; font-weight: 800; letter-spacing: .08em; }
.nav-main { width: 58px; aspect-ratio: 1; display: grid; place-items: center; border-radius: 20px; color: #09090c; background: linear-gradient(145deg, #fff, #aaa); box-shadow: 0 8px 25px rgba(255,255,255,.12); transform: translateY(-7px) rotate(4deg); }
.nav-main span { font-size: 26px; font-weight: 950; }
.nav-main:active { transform: translateY(-7px) rotate(4deg) scale(.92); }

.sheet-backdrop { position: fixed; inset: 0; z-index: 80; padding: 18px; display: flex; align-items: flex-end; justify-content: center; background: rgba(0,0,0,.64); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.sheet-backdrop[hidden] { display: none; }
.sheet { position: relative; width: min(100%, 630px); padding: 30px 22px calc(22px + var(--safe-bottom)); border-radius: 32px; background-color: rgba(23,23,29,.9); animation: sheet-in .25s cubic-bezier(.2,.8,.2,1); }
@keyframes sheet-in { from { transform: translateY(35px); opacity: 0; } }
.sheet-handle { position: absolute; top: 10px; left: 50%; width: 38px; height: 4px; border-radius: 5px; background: #56565e; transform: translateX(-50%); }
.sheet-close { position: absolute; top: 19px; right: 18px; width: 34px; height: 34px; border-radius: 50%; color: #aaa; background: rgba(255,255,255,.07); font-size: 24px; line-height: 1; }
.sheet h2 { margin: 10px 0 8px; font-size: 29px; letter-spacing: -.04em; }
.sheet p { min-height: 48px; margin: 0; color: #aaaab1; font-size: 14px; line-height: 1.55; }

@media (max-width: 370px) {
  .app-shell { padding-inline: 11px; }
  .profile-strip { grid-template-columns: 46px minmax(0, 1fr) auto; }
  .avatar { width: 46px; }
  .mini-badge { padding-inline: 9px; }
  .hero { padding-inline: 19px; }
  .hero h1 { font-size: 38px; }
  .feature-card { min-height: 150px; padding: 14px; }
  .feature-card strong { font-size: 13px; }
  .bottom-nav { width: calc(100% - 16px); grid-template-columns: 1fr 1fr 58px 1fr 1fr; }
}

@media (min-width: 700px) {
  .app-shell { padding-inline: 24px; }
  .feature-card { min-height: 174px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .glass { background: rgba(28,28,35,.96); }
}
