:root {
  color-scheme: light;
  --bg: #f7f7f4;
  --surface: rgba(255, 255, 255, 0.82);
  --surface-strong: #ffffff;
  --ink: #10131a;
  --muted: #5d6676;
  --soft: #8a93a3;
  --line: rgba(19, 24, 35, 0.1);
  --line-strong: rgba(19, 24, 35, 0.16);
  --shadow: 0 18px 45px rgba(15, 23, 42, 0.09);
  --shadow-soft: 0 10px 24px rgba(15, 23, 42, 0.07);
  --accent: #2563eb;
  --accent-2: #0f766e;
  --radius: 8px;
}

* {
  box-sizing: border-box;
  letter-spacing: 0;
}

html {
  min-width: 320px;
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  min-height: 100svh;
  margin: 0;
  color: var(--ink);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.74), rgba(242, 245, 248, 0.92)),
    radial-gradient(120% 78% at 50% 0%, rgba(37, 99, 235, 0.1), rgba(15, 118, 110, 0.05) 36%, transparent 64%),
    var(--bg);
  overflow-x: hidden;
  text-rendering: geometricPrecision;
  -webkit-font-smoothing: antialiased;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  background-image:
    linear-gradient(rgba(15, 23, 42, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15, 23, 42, 0.03) 1px, transparent 1px);
  background-size: 44px 44px;
  -webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.34), transparent 66%);
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.34), transparent 66%);
}

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  font: inherit;
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid rgba(37, 99, 235, 0.28);
  outline-offset: 3px;
}

svg {
  display: block;
}

.page {
  width: min(88vw, 550px);
  min-height: 100svh;
  margin: 0 auto;
  padding: clamp(34px, 5.5vw, 68px) 0 28px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 18px;
}

.profile {
  display: grid;
  justify-items: center;
  gap: 14px;
  text-align: center;
  padding: 4px 8px 2px;
}

.avatar {
  position: relative;
  width: 90px;
  height: 90px;
  overflow: visible;
  border: 1px solid rgba(255, 255, 255, 0.74);
  border-radius: 50%;
  background: #dfe5e5;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.32),
    0 18px 44px rgba(15, 23, 42, 0.18);
}

.avatar img {
  width: 100%;
  height: 100%;
  display: block;
  overflow: hidden;
  border-radius: inherit;
  object-fit: cover;
  object-position: 50% 58%;
}

.avatar::before {
  position: absolute;
  inset: -7px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: inherit;
  content: "";
}

.avatar::after {
  position: absolute;
  right: 9px;
  bottom: 9px;
  width: 12px;
  height: 12px;
  border: 2px solid #ffffff;
  border-radius: 50%;
  background: #23c55e;
  box-shadow: 0 4px 12px rgba(35, 197, 94, 0.34);
  content: "";
}

.profile__copy {
  display: grid;
  gap: 5px;
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1 {
  font-size: clamp(2rem, 7.8vw, 2.75rem);
  line-height: 1.04;
  font-weight: 800;
}

.profile__role {
  color: #242a35;
  font-size: 1rem;
  font-weight: 650;
}

.profile__meta {
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.45;
}

.apps {
  display: grid;
  gap: 12px;
  margin-top: 7px;
}

.stores {
  display: grid;
  gap: 10px;
  margin-top: 7px;
}

.store-link {
  width: 100%;
  min-width: 0;
  min-height: 74px;
  padding: 14px 15px;
  display: flex;
  align-items: center;
  gap: 13px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  text-align: left;
  box-shadow: var(--shadow-soft);
  transition:
    transform 190ms ease,
    border-color 190ms ease,
    background-color 190ms ease,
    box-shadow 190ms ease;
}

.store-link__icon {
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: var(--radius);
}

.store-link__icon svg {
  width: 21px;
  height: 21px;
  color: currentColor;
}

.store-link__icon img {
  width: 23px;
  height: 23px;
  display: block;
  object-fit: contain;
}

.store-link__icon rect,
.store-link__icon path {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.store-link__icon svg path[fill] {
  fill: currentColor;
  stroke: none;
}

.store-link__icon svg path[fill="#34a853"] {
  fill: #34a853;
}

.store-link__icon svg path[fill="#4285f4"] {
  fill: #4285f4;
}

.store-link__icon svg path[fill="#fbbc05"] {
  fill: #fbbc05;
}

.store-link__icon svg path[fill="#ea4335"] {
  fill: #ea4335;
}

.store-link__copy {
  min-width: 0;
  display: grid;
  gap: 3px;
  flex: 1 1 auto;
}

.store-link__copy strong {
  font-size: 1rem;
  font-weight: 760;
  line-height: 1.15;
}

.store-link__copy small {
  min-width: 0;
  overflow: hidden;
  font-size: 0.84rem;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.store-link__arrow,
.store-link__state {
  flex: 0 0 auto;
}

.store-link__arrow svg {
  width: 20px;
  height: 20px;
}

.store-link__arrow path {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.store-link__state {
  color: #818a99;
  font-size: 0.82rem;
  font-weight: 720;
}

.store-link--play {
  color: #ffffff;
  background:
    radial-gradient(78% 110% at 15% 10%, rgba(37, 99, 235, 0.36), transparent 42%),
    linear-gradient(135deg, #10131a, #151a24);
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: 0 18px 36px rgba(16, 19, 26, 0.2);
}

.store-link--play .store-link__icon {
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.store-link--play .store-link__copy small {
  color: rgba(255, 255, 255, 0.68);
}

.store-link--disabled {
  color: #6f7887;
  background: rgba(255, 255, 255, 0.64);
  cursor: not-allowed;
}

.store-link--disabled .store-link__icon {
  color: #7a8494;
  background: rgba(15, 23, 42, 0.045);
  border: 1px solid rgba(15, 23, 42, 0.06);
}

.store-link--disabled .store-link__copy small {
  color: #8a93a3;
}

.app-card {
  position: relative;
  overflow: hidden;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.73)),
    var(--surface);
  box-shadow: var(--shadow-soft);
  transition:
    transform 220ms ease,
    border-color 220ms ease,
    box-shadow 220ms ease;
}

.app-card::before {
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  content: "";
  opacity: 0.86;
}

.app-card--mentorly::before {
  background: linear-gradient(90deg, #0f766e, #2563eb, #111827);
}

.app-card--refoto::before {
  background: linear-gradient(90deg, #111827, #7c3aed, #0f766e);
}

.app-card__content {
  position: relative;
  padding: 18px;
  display: grid;
  gap: 16px;
}

.app-card__head {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.app-icon {
  position: relative;
  flex: 0 0 auto;
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.52);
  border-radius: 18px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.24),
    0 12px 24px rgba(15, 23, 42, 0.15);
}

.app-icon::before {
  position: absolute;
  inset: 9px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 50%;
  content: "";
}

.app-icon::after {
  position: absolute;
  width: 26px;
  height: 26px;
  right: -6px;
  top: -6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.28);
  content: "";
}

.app-icon span {
  position: relative;
  z-index: 1;
  color: #ffffff;
  font-size: 1.4rem;
  font-weight: 850;
  line-height: 1;
}

.app-icon--mentorly {
  background:
    radial-gradient(circle at 26% 22%, rgba(255, 255, 255, 0.32), transparent 27%),
    linear-gradient(140deg, #0f172a, #1d4ed8 57%, #0f766e);
}

.app-icon--refoto {
  background:
    radial-gradient(circle at 28% 24%, rgba(255, 255, 255, 0.42), transparent 24%),
    conic-gradient(from 210deg, #111827, #7c3aed, #2563eb, #0f766e, #111827);
}

.app-card__copy {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.app-card__copy h3 {
  font-size: 1.22rem;
  line-height: 1.1;
  font-weight: 780;
}

.app-card__copy p {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.45;
}

.store-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.store-button {
  min-width: 0;
  min-height: 46px;
  padding: 0 13px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-size: 0.92rem;
  font-weight: 720;
  line-height: 1.15;
  white-space: nowrap;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background-color 180ms ease,
    color 180ms ease,
    box-shadow 180ms ease;
}

.store-button span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.store-button__icon {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  color: currentColor;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
  transition: transform 180ms ease;
}

.store-button__icon--play {
  fill: none;
  stroke: none;
}

.store-button--active {
  color: #ffffff;
  background: #10131a;
  box-shadow: 0 13px 24px rgba(16, 19, 26, 0.18);
}

.store-button--disabled {
  color: #767f8e;
  background: rgba(15, 23, 42, 0.045);
  border-color: rgba(15, 23, 42, 0.055);
  cursor: not-allowed;
}

a.store-button--disabled:not([href]) {
  pointer-events: none;
}

.links {
  display: grid;
  gap: 10px;
  margin-top: 3px;
}

.links h2 {
  padding-left: 2px;
  color: #2a303b;
  font-size: 0.86rem;
  font-weight: 760;
}

.link-list {
  display: grid;
  gap: 9px;
}

.bio-link {
  min-width: 0;
  min-height: 60px;
  padding: 11px 13px;
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.74);
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.045);
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background-color 180ms ease,
    box-shadow 180ms ease;
}

.bio-link__icon {
  width: 36px;
  height: 36px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border: 1px solid rgba(15, 23, 42, 0.075);
  border-radius: var(--radius);
  color: #111827;
  background: rgba(248, 250, 252, 0.86);
}

.bio-link__icon svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.bio-link__icon img {
  width: 20px;
  height: 20px;
  display: block;
  object-fit: contain;
  filter: invert(29%) sepia(81%) saturate(1476%) hue-rotate(178deg) brightness(91%) contrast(101%);
}

.bio-link__icon svg path + path,
.bio-link__arrow svg path {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.bio-link__copy {
  min-width: 0;
  display: grid;
  gap: 2px;
  flex: 1 1 auto;
}

.bio-link__copy strong {
  font-size: 0.96rem;
  font-weight: 730;
  line-height: 1.2;
}

.bio-link__copy small {
  min-width: 0;
  overflow: hidden;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bio-link__state,
.bio-link__arrow {
  flex: 0 0 auto;
  color: var(--soft);
  font-size: 0.78rem;
  font-weight: 690;
}

.bio-link__arrow svg {
  width: 19px;
  height: 19px;
}

.bio-link--disabled {
  color: #788190;
  background: rgba(255, 255, 255, 0.55);
  cursor: default;
}

.bio-link--disabled .bio-link__icon {
  color: #7c8492;
  background: rgba(15, 23, 42, 0.035);
}

.footer {
  display: grid;
  gap: 4px;
  padding: 7px 0 0;
  color: #8a93a3;
  text-align: center;
  font-size: 0.78rem;
  line-height: 1.35;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.js [data-reveal] {
  opacity: 0;
  transform: translateY(14px);
}

.js [data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
  transition:
    opacity 520ms ease,
    transform 520ms ease;
}

@media (hover: hover) and (pointer: fine) {
  .app-card:hover {
    transform: translateY(-3px);
    border-color: var(--line-strong);
    box-shadow: var(--shadow);
  }

  .store-button--active:hover {
    transform: translateY(-2px);
    background: #05070a;
    box-shadow: 0 15px 28px rgba(16, 19, 26, 0.22);
  }

  .store-button--active:hover .store-button__icon {
    transform: translateX(1px) scale(1.03);
  }

  .store-link--play:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.2);
    background:
      radial-gradient(78% 110% at 15% 10%, rgba(37, 99, 235, 0.42), transparent 42%),
      linear-gradient(135deg, #05070a, #151a24);
    box-shadow: 0 22px 42px rgba(16, 19, 26, 0.24);
  }

  .bio-link:not(.bio-link--disabled):hover {
    transform: translateY(-2px);
    border-color: var(--line-strong);
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.08);
  }
}

@media (max-width: 480px) {
  .page {
    width: min(86vw, 550px);
    gap: 15px;
  }

  .app-card__content {
    padding: 16px;
  }

  .app-icon {
    width: 58px;
    height: 58px;
    border-radius: 16px;
  }

  .store-actions {
    grid-template-columns: 1fr;
  }

  .store-button {
    width: 100%;
  }
}

@media (max-height: 780px) {
  .page {
    justify-content: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }

  .js [data-reveal] {
    opacity: 1;
    transform: none;
  }
}
