:root {
  color-scheme: dark;
  --bg: #09090b;
  --panel: #101013;
  --line: rgba(255, 255, 255, .1);
  --muted: #8e8d96;
  --white: #f6f5f3;
  --lime: #d2f36b;
  --mono: "DM Mono", monospace;
  --display: "Space Grotesk", sans-serif;
  --body: "DM Sans", sans-serif;
}

* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; background: var(--bg); color: var(--white); font-family: var(--body); }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }
button { color: inherit; }
.home-page, .profile-page { position: relative; isolation: isolate; overflow-x: hidden; }
.home-page::before, .profile-page::before { position: fixed; z-index: -1; inset: 0; background-image: radial-gradient(ellipse at 75% 48%, rgba(210, 243, 107, .055), transparent 33%), radial-gradient(rgba(255,255,255,.12) .65px, transparent .65px); background-size: auto, 24px 24px; content: ""; pointer-events: none; }
.topbar { height: 76px; max-width: 1240px; margin: 0 auto; padding: 0 36px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); }
.wordmark { display: inline-flex; align-items: center; gap: 10px; font: 600 17px var(--display); letter-spacing: -.6px; }
.brand-mark { width: 27px; height: 27px; display: grid; place-items: center; border-radius: 8px; background: var(--lime); color: #15170e; font: 700 17px var(--display); }
.top-link, .mono, .eyebrow, .site-footer, .preview-bottom, .profile-card-top, .profile-card-bottom, .profile-handle, .edit-button, .add-link-button, .optional, .save-note { font-family: var(--mono); letter-spacing: .06em; }
.top-link { color: #c6c5cb; font-size: 10px; transition: color .2s; }
.top-link:hover { color: var(--lime); }
.top-link span { margin-left: 7px; color: var(--lime); }
.home-main { max-width: 1140px; min-height: calc(100vh - 134px); margin: 0 auto; padding: 90px 36px 80px; display: grid; grid-template-columns: 1fr .82fr; align-items: center; gap: 100px; }
.eyebrow { display: flex; align-items: center; gap: 9px; color: #a7a5ad; font-size: 10px; }
.status-dot { width: 7px; height: 7px; display: inline-block; border-radius: 50%; background: var(--lime); box-shadow: 0 0 12px rgba(210,243,107,.6); }
.hero-copy h1 { margin: 24px 0 17px; font: 600 clamp(56px, 7.5vw, 92px)/.99 var(--display); letter-spacing: -6px; }
.hero-copy h1 span { color: var(--lime); }
.hero-description { max-width: 385px; margin: 0 0 28px; color: #a7a5ad; font-size: 15px; line-height: 1.75; }
.button { min-height: 45px; display: inline-flex; justify-content: center; align-items: center; gap: 16px; padding: 0 17px; border: 0; border-radius: 7px; cursor: pointer; font-size: 12px; font-weight: 700; transition: transform .2s, background .2s; }
.button:hover { transform: translateY(-2px); }
.button-primary { background: var(--lime); color: #17190f; }
.button-primary:hover { background: #e0ff88; }
.hero-note { margin: 28px 0 0; color: var(--muted); font: 10px var(--mono); }
.hero-note span, .footer-star { color: var(--lime); }
.preview-card { position: relative; min-height: 430px; overflow: hidden; display: flex; flex-direction: column; justify-content: space-between; padding: 21px; border: 1px solid rgba(255,255,255,.12); border-radius: 13px; background: linear-gradient(145deg, rgba(30,31,25,.97), rgba(16,16,19,.97) 63%); box-shadow: 0 24px 100px rgba(0,0,0,.3); transition: border-color .2s, transform .2s; }
.preview-card:hover { transform: translateY(-4px); border-color: rgba(210,243,107,.4); }
.preview-top, .preview-bottom { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; color: #77767e; font: 9px var(--mono); letter-spacing: .08em; }
.preview-live, .live-label { display: inline-flex; align-items: center; gap: 8px; color: #c9c7ce; font-size: 9px; }
.preview-live .status-dot, .live-label .status-dot { width: 6px; height: 6px; }
.preview-content { position: relative; z-index: 1; padding: 22px 15px 15px; }
.avatar { position: relative; display: grid; place-items: center; border: 1px solid rgba(210,243,107,.4); border-radius: 50%; background: linear-gradient(145deg, #d5ef8e, #556733); color: #1b2111; font: 600 39px var(--display); }
.avatar-large { width: 76px; height: 76px; }
.avatar-star { position: absolute; right: -5px; bottom: 0; width: 23px; height: 23px; display: grid; place-items: center; border: 3px solid #151616; border-radius: 50%; background: var(--lime); color: #22251a; font: 12px var(--body); }
.preview-handle { margin: 17px 0 12px; color: #a4a1aa; font-size: 10px; }
.preview-content h2 { margin: 0; font: 500 31px/1.12 var(--display); letter-spacing: -1.1px; }
.preview-links { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 20px; }
.preview-links span { padding: 7px 9px; border: 1px solid var(--line); border-radius: 5px; color: #c9c7ce; font: 9px var(--mono); }
.preview-sparkle { position: absolute; color: var(--lime); opacity: .8; }
.sparkle-one { top: 34%; right: 16%; font-size: 24px; }
.sparkle-two { top: 54%; right: 10%; font-size: 13px; opacity: .5; }
.site-footer { max-width: 1240px; margin: 0 auto; padding: 0 36px 24px; display: flex; justify-content: space-between; color: #64636a; font-size: 8px; }
.profile-top-actions { display: flex; align-items: center; gap: 24px; }
.edit-button { display: inline-flex; align-items: center; gap: 8px; padding: 9px 12px; border: 1px solid var(--line); border-radius: 5px; background: rgba(255,255,255,.025); cursor: pointer; font-size: 9px; transition: border-color .2s, color .2s; }
.edit-button:hover { border-color: var(--lime); color: var(--lime); }
.edit-button span { color: var(--lime); }
.profile-main { min-height: calc(100vh - 76px); padding: 62px 20px 45px; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.profile-card { position: relative; width: min(100%, 520px); min-height: 570px; overflow: hidden; display: flex; flex-direction: column; justify-content: space-between; border: 1px solid rgba(255,255,255,.13); border-radius: 12px; background: linear-gradient(160deg, rgba(28,29,23,.96), rgba(16,16,19,.97) 58%); box-shadow: 0 25px 100px rgba(0,0,0,.34); background-position: center; background-size: cover; }
.profile-card::before { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(9,9,11,.42), rgba(9,9,11,.3) 42%, rgba(9,9,11,.76)); content: ""; }
.profile-card-top, .profile-card-bottom { position: relative; z-index: 1; display: flex; justify-content: space-between; padding: 20px 22px; color: #aaa8b0; font-size: 9px; }
.profile-inner { position: relative; z-index: 1; padding: 20px 40px 35px; text-align: center; }
.avatar-profile { width: 88px; height: 88px; margin: 0 auto 15px; font-size: 45px; }
.profile-handle { margin: 0 0 13px; color: #bbb9c1; font-size: 10px; }
.profile-title { margin: 0; font: 500 34px/1.13 var(--display); letter-spacing: -1.5px; }
.profile-bio { max-width: 340px; margin: 14px auto 0; color: #b2b0b8; font-size: 13px; line-height: 1.65; }
.social-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 24px auto 0; }
.social-link { max-width: 100%; padding: 10px 13px; overflow: hidden; border: 1px solid rgba(255,255,255,.16); border-radius: 6px; background: rgba(9,9,11,.35); color: #f1f0ed; font: 10px var(--mono); text-overflow: ellipsis; white-space: nowrap; transition: border-color .2s, color .2s; }
.social-link:hover { border-color: var(--lime); color: var(--lime); }
.profile-media { width: min(100%, 360px); margin: 18px auto 0; }
.profile-media video { width: 100%; max-height: 190px; border: 1px solid var(--line); border-radius: 7px; background: #080809; }
.profile-footnote { margin: 18px 0 0; color: #77767e; font: 9px var(--mono); }
.profile-footnote span { color: var(--lime); }
.modal-backdrop { position: fixed; z-index: 5; inset: 0; overflow-y: auto; display: grid; place-items: center; padding: 24px 14px; background: rgba(0,0,0,.76); backdrop-filter: blur(8px); }
.modal-backdrop[hidden] { display: none; }
.editor-panel { width: min(100%, 510px); max-height: min(850px, 94vh); overflow-y: auto; padding: 25px; border: 1px solid rgba(255,255,255,.13); border-radius: 11px; background: #111114; box-shadow: 0 25px 100px #000; }
.editor-header { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 21px; }
.editor-header .eyebrow { font-size: 8px; }
.editor-header h2 { margin: 9px 0 0; font: 500 28px var(--display); letter-spacing: -1px; }
.close-button { width: 30px; height: 30px; border: 1px solid var(--line); border-radius: 6px; background: transparent; color: #aaa8b0; cursor: pointer; font-size: 21px; }
.form-label { display: block; margin: 15px 0 7px; color: #bebcc4; font: 9px var(--mono); letter-spacing: .07em; }
.form-label input, .form-label textarea { width: 100%; display: block; margin-top: 8px; padding: 11px 12px; border: 1px solid rgba(255,255,255,.12); border-radius: 6px; outline: none; background: #0b0b0d; color: var(--white); font: 12px var(--body); letter-spacing: 0; resize: vertical; }
.form-label input:focus, .form-label textarea:focus { border-color: rgba(210,243,107,.65); }
.optional { margin-left: 5px; color: #77767e; font-size: 8px; }
.link-editor { display: grid; gap: 8px; margin-top: 9px; }
.link-row { display: grid; grid-template-columns: 1fr 1.5fr 34px; gap: 7px; }
.link-row input { min-width: 0; padding: 9px; border: 1px solid rgba(255,255,255,.12); border-radius: 5px; outline: none; background: #0b0b0d; color: var(--white); font-size: 11px; }
.link-row input:focus { border-color: rgba(210,243,107,.65); }
.remove-link { border: 1px solid var(--line); border-radius: 5px; background: transparent; color: #aaa8b0; cursor: pointer; }
.remove-link:hover { border-color: #e28484; color: #e28484; }
.add-link-button { margin-top: 10px; padding: 8px 0; border: 0; background: transparent; color: var(--lime); cursor: pointer; font-size: 9px; }
.editor-actions { display: flex; justify-content: flex-end; gap: 9px; margin-top: 22px; }
.button-quiet { border: 1px solid var(--line); background: transparent; color: #c7c5cc; }
.save-note { margin: 11px 0 0; color: #797780; text-align: right; font-size: 8px; }
.password-error { margin: 9px 0 0; color: #e28484; font-size: 12px; }

@media (max-width: 760px) {
  .topbar { height: 66px; padding: 0 20px; }
  .home-main { min-height: auto; padding: 70px 24px 60px; grid-template-columns: 1fr; gap: 52px; }
  .hero-copy h1 { letter-spacing: -4px; }
  .preview-card { width: min(100%, 440px); min-height: 400px; justify-self: center; }
  .site-footer { padding: 0 20px 18px; gap: 20px; font-size: 7px; }
  .profile-top-actions { gap: 13px; }
  .profile-main { min-height: calc(100vh - 66px); padding-top: 35px; }
  .profile-card { min-height: 540px; }
}
@media (max-width: 420px) {
  .topbar { padding: 0 15px; }
  .wordmark { font-size: 15px; }
  .top-link { font-size: 8px; }
  .profile-top-actions { gap: 10px; }
  .edit-button { padding: 8px; font-size: 8px; }
  .profile-card { min-height: 520px; }
  .profile-inner { padding-right: 20px; padding-left: 20px; }
  .profile-title { font-size: 29px; }
  .editor-panel { padding: 19px; }
}
