/* Personal Digital Identity — responsive visual system */
:root {
  color-scheme: dark;
  --bg: #0c0f17;
  --bg-soft: #111622;
  --panel: rgba(20, 26, 39, .88);
  --panel-strong: #171e2d;
  --text: #f1f4fb;
  --muted: #a3aec1;
  --subtle: #758198;
  --line: rgba(190, 205, 230, .13);
  --accent: #a8f0d0;
  --accent-strong: #6bd9ad;
  --accent-ink: #10241d;
  --chip: rgba(168, 240, 208, .09);
  --shadow: 0 24px 80px rgba(0, 0, 0, .24);
  --radius-xl: 28px;
  --radius-lg: 20px;
}
:root[data-theme="light"] {
  color-scheme: light;
  --bg: #f1f4f8;
  --bg-soft: #e9eef4;
  --panel: rgba(255, 255, 255, .9);
  --panel-strong: #fff;
  --text: #182233;
  --muted: #5d6a7d;
  --subtle: #7d8999;
  --line: rgba(39, 57, 82, .12);
  --accent: #087f5b;
  --accent-strong: #056b4c;
  --accent-ink: #fff;
  --chip: rgba(8, 127, 91, .08);
  --shadow: 0 20px 60px rgba(28, 45, 69, .09);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; min-height: 100vh; overflow-x: hidden;
  background: var(--bg); color: var(--text);
  font-family: "DM Sans", system-ui, sans-serif;
  transition: background .25s ease, color .25s ease;
}
button, a { font: inherit; }
button { color: inherit; }
.ambient { position: fixed; z-index: -1; pointer-events: none; filter: blur(2px); border-radius: 50%; opacity: .45; }
.ambient-one { width: 560px; height: 560px; top: -280px; left: -150px; background: radial-gradient(circle, rgba(75, 171, 139, .17), transparent 68%); }
.ambient-two { width: 650px; height: 650px; right: -320px; top: 380px; background: radial-gradient(circle, rgba(102, 126, 234, .12), transparent 70%); }
.topbar {
  width: min(1120px, calc(100% - 48px)); margin: 0 auto; height: 82px;
  display: flex; align-items: center; justify-content: space-between;
}
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font: 700 13px "Space Grotesk", sans-serif; letter-spacing: .13em; }
.brand-mark { display: grid; place-items: center; width: 29px; height: 29px; border-radius: 10px; color: var(--accent-ink); background: var(--accent); font-size: 18px; }
.brand-muted { color: var(--subtle); }
.top-actions { display: flex; align-items: center; gap: 17px; }
.availability { color: var(--muted); font-size: 11px; letter-spacing: .04em; display: flex; align-items: center; gap: 8px; }
.status-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent-strong); box-shadow: 0 0 0 4px var(--chip); }
.icon-button { width: 39px; height: 39px; border: 1px solid var(--line); border-radius: 13px; background: var(--panel); display: grid; place-items: center; cursor: pointer; transition: .2s ease; }
.icon-button:hover { border-color: var(--accent); transform: translateY(-2px); }
.icon-button svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.moon-icon { display: none; }
:root[data-theme="light"] .sun-icon { display: none; }
:root[data-theme="light"] .moon-icon { display: block; }
.page-shell { width: min(1000px, calc(100% - 48px)); margin: 30px auto 0; }
.hero-card, .panel {
  background: var(--panel); border: 1px solid var(--line); box-shadow: var(--shadow);
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
}
.hero-card { border-radius: var(--radius-xl); padding: 30px 36px 22px; position: relative; overflow: hidden; }
.hero-card::after { content: ""; position: absolute; width: 300px; height: 300px; right: -120px; top: -170px; border: 1px solid var(--line); border-radius: 50%; box-shadow: 0 0 0 35px rgba(168,240,208,.018), 0 0 0 70px rgba(168,240,208,.014); pointer-events: none; }
.hero-topline, .hero-footer, .section-heading { display: flex; justify-content: space-between; align-items: center; }
.eyebrow { font-size: 9px; line-height: 1.4; font-weight: 700; letter-spacing: .19em; color: var(--subtle); }
.hero-index, .section-number { color: var(--subtle); font: 600 10px "Space Grotesk", sans-serif; letter-spacing: .08em; }
.profile-row { display: flex; align-items: center; gap: 30px; padding: 36px 0 32px; position: relative; z-index: 1; }
.avatar-wrap { width: 142px; height: 142px; flex: 0 0 142px; position: relative; }
.avatar { width: 100%; height: 100%; border-radius: 38px; object-fit: cover; border: 1px solid var(--line); background: var(--panel-strong); position: relative; z-index: 1; }
.avatar-ring { position: absolute; inset: -7px; border: 1px solid rgba(168,240,208,.32); border-radius: 44px; transform: rotate(-5deg); }
.profile-copy { min-width: 0; }
.hello { color: var(--muted); margin: 0 0 3px; font-size: 13px; }
h1, h2 { font-family: "Space Grotesk", "DM Sans", sans-serif; letter-spacing: -.045em; }
h1 { margin: 0; font-size: clamp(38px, 6vw, 59px); line-height: 1.08; font-weight: 700; }
.name-period { color: var(--accent); }
.headline { color: var(--muted); margin: 10px 0 12px; font-size: 14px; font-weight: 500; }
.headline span { color: var(--accent); padding: 0 3px; }
.bio { color: var(--muted); font-size: 13px; line-height: 1.75; max-width: 590px; margin: 0; }
.profile-tags { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 17px; }
.profile-tags span { color: var(--accent); background: var(--chip); border: 1px solid rgba(168,240,208,.12); border-radius: 999px; padding: 6px 10px; font-size: 10px; font-weight: 600; }
.hero-footer { border-top: 1px solid var(--line); padding-top: 17px; }
.location-line { display: flex; align-items: center; gap: 7px; color: var(--muted); font-size: 11px; }
.location-line svg { width: 14px; height: 14px; fill: none; stroke: var(--accent); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.small-note, .microcopy { color: var(--subtle); font-size: 10px; }
.content-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 18px; }
.panel { border-radius: var(--radius-lg); padding: 25px; min-width: 0; }
.section-heading { align-items: flex-start; margin-bottom: 21px; }
.section-heading h2, .share-copy h2 { font-size: 23px; line-height: 1.18; margin: 7px 0 0; }
.contact-list { display: grid; gap: 9px; }
.contact-item { display: flex; align-items: center; gap: 12px; border: 1px solid var(--line); background: var(--panel-strong); padding: 11px 12px; border-radius: 13px; min-width: 0; text-decoration: none; color: var(--text); transition: border-color .2s, transform .2s; }
.contact-item:hover { border-color: var(--accent); transform: translateY(-1px); }
.item-icon { width: 34px; height: 34px; display: grid; place-items: center; flex: 0 0 34px; background: var(--chip); color: var(--accent); border-radius: 10px; }
.item-icon svg, .primary-button svg, .text-button svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.item-copy { min-width: 0; flex: 1; }
.item-label { display: block; color: var(--subtle); font-size: 9px; margin-bottom: 3px; letter-spacing: .08em; text-transform: uppercase; }
.item-value { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; font-weight: 600; }
.item-action { color: var(--subtle); display: grid; place-items: center; }
.item-action svg { width: 15px; height: 15px; }
.primary-button { border: 0; border-radius: 13px; background: var(--accent); color: var(--accent-ink); min-height: 48px; padding: 0 15px; display: flex; justify-content: center; align-items: center; gap: 9px; font-weight: 700; font-size: 12px; cursor: pointer; transition: transform .2s, filter .2s; }
.primary-button:hover { transform: translateY(-2px); filter: brightness(1.05); }
.full-button { width: 100%; margin-top: 14px; }
.button-arrow { margin-left: auto; font-size: 17px; }
.microcopy { text-align: center; margin: 10px 0 0; }
.section-description { margin: -10px 0 17px; color: var(--muted); font-size: 12px; line-height: 1.65; }
.social-list { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.social-item { min-height: 76px; border: 1px solid var(--line); background: var(--panel-strong); border-radius: 13px; padding: 13px; color: var(--text); text-decoration: none; display: flex; flex-direction: column; justify-content: space-between; gap: 12px; transition: .2s ease; }
.social-item:hover { transform: translateY(-2px); border-color: var(--accent); }
.social-top { display: flex; justify-content: space-between; align-items: center; }
.social-icon { color: var(--accent); width: 19px; height: 19px; }
.social-arrow { color: var(--subtle); width: 14px; height: 14px; }
.social-name { font-size: 12px; font-weight: 700; }
.social-handle { color: var(--subtle); font-size: 10px; margin-top: 2px; }
.bottom-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 18px; margin-top: 18px; }
.note-panel { display: flex; flex-direction: column; justify-content: space-between; }
.compact-heading { margin-bottom: 12px; }
.extra-text { color: var(--muted); font-size: 12px; line-height: 1.8; margin: 0; }
.share-panel { display: flex; align-items: center; justify-content: space-between; gap: 20px; overflow: hidden; position: relative; }
.share-copy { min-width: 0; }
.share-copy h2 { font-size: 25px; margin-bottom: 9px; }
.share-copy p { color: var(--muted); font-size: 11px; line-height: 1.6; max-width: 230px; margin: 0 0 13px; }
.text-button { display: inline-flex; align-items: center; gap: 7px; padding: 0; border: 0; background: none; color: var(--accent); font-size: 11px; font-weight: 700; cursor: pointer; }
.text-button:hover { text-decoration: underline; }
.qr-wrap { flex: 0 0 130px; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.qr-code { width: 122px; height: 122px; display: grid; place-items: center; padding: 8px; background: #fff; border-radius: 12px; overflow: hidden; }
.qr-code canvas, .qr-code img { max-width: 100%; max-height: 100%; image-rendering: pixelated; }
.qr-placeholder { width: 100%; height: 100%; border: 1px dashed #cbd5e1; color: #334155; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 5px; border-radius: 7px; }
.qr-placeholder span { font: 700 24px "Space Grotesk", sans-serif; }
.qr-placeholder small { font-size: 8px; text-align: center; line-height: 1.4; }
.qr-caption { color: var(--subtle); font-size: 8px; letter-spacing: .16em; font-weight: 700; }
.footer { padding: 25px 3px 35px; display: flex; justify-content: space-between; color: var(--subtle); font-size: 10px; }
.footer-star { color: var(--accent); padding-left: 3px; }
.toast { position: fixed; left: 50%; bottom: 25px; transform: translate(-50%, 15px); opacity: 0; pointer-events: none; z-index: 10; background: var(--text); color: var(--bg); border-radius: 999px; padding: 11px 17px; font-size: 12px; font-weight: 700; box-shadow: var(--shadow); transition: .25s ease; white-space: nowrap; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
@media (max-width: 720px) {
  .topbar { width: calc(100% - 32px); height: 68px; }
  .page-shell { width: calc(100% - 32px); margin-top: 17px; }
  .hero-card { padding: 23px 21px 18px; }
  .profile-row { gap: 20px; padding: 31px 0 27px; align-items: flex-start; }
  .avatar-wrap { width: 104px; height: 104px; flex-basis: 104px; }
  .avatar { border-radius: 29px; }
  .avatar-ring { border-radius: 34px; }
  h1 { font-size: clamp(32px, 8vw, 47px); }
  .bio { font-size: 12px; }
  .content-grid, .bottom-grid { grid-template-columns: 1fr; gap: 14px; margin-top: 14px; }
  .panel { padding: 22px; }
  .share-panel { min-height: 190px; }
}
@media (max-width: 440px) {
  .availability { font-size: 9px; }
  .profile-row { display: block; }
  .avatar-wrap { margin: 0 0 22px 7px; }
  .hero-index { font-size: 9px; }
  .hero-footer { align-items: flex-start; gap: 12px; flex-direction: column; }
  .section-heading h2 { font-size: 21px; }
  .share-panel { gap: 10px; padding: 19px; }
  .qr-wrap { flex-basis: 108px; }
  .qr-code { width: 102px; height: 102px; }
  .share-copy h2 { font-size: 22px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
