:root {
  --bg: #0f0f12;
  --surface: #16161b;
  --surface-2: #1f1f26;
  --border: #2a2a33;
  --teal: #00c2a8;
  --coral: #ef7088;
  --text: #f2f2f5;
  --muted: #9a9aa6;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body { height: 100%; }

body {
  font-family: 'Nunito', sans-serif;
  color: var(--text);
  background:
    radial-gradient(900px 460px at 20% 0%, rgba(239,112,136,0.10), transparent 60%),
    radial-gradient(700px 400px at 80% 100%, rgba(0,194,168,0.08), transparent 60%),
    var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
}

/* ---- LAYOUT: three columns that fit one screen ---- */
.layout {
  display: grid;
  grid-template-columns: 1.1fr 1fr 1fr;
  align-items: center;
  gap: 56px;
  width: 100%;
  max-width: 1180px;
  animation: rise 0.5s ease both;
}
.col-label {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.74rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 18px;
}

@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ---- PROFILE COLUMN ---- */
.col-profile { text-align: left; }

/* ---- AVATAR ---- */
.avatar-wrap {
  width: 116px;
  height: 116px;
  margin: 0 0 24px;
  border-radius: 50%;
  padding: 3px;
  background: linear-gradient(140deg, var(--coral), var(--teal));
  box-shadow: 0 0 36px rgba(239,112,136,0.18);
}
.avatar {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  background: var(--surface-2);
}

/* ---- TEXT ---- */
h1 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 2.3rem;
  letter-spacing: 0.5px;
  background: linear-gradient(100deg, var(--coral), var(--teal));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.tagline {
  color: var(--coral);
  font-weight: 600;
  margin-top: 10px;
  font-size: 1rem;
}
.bio {
  color: var(--muted);
  line-height: 1.7;
  margin: 20px 0 0;
  max-width: 360px;
  font-size: 0.98rem;
}

/* ---- HOBBIES TIMELINE ---- */
.timeline {
  list-style: none;
  text-align: left;
  position: relative;
  padding-left: 4px;
}
/* the vertical connecting line */
.timeline::before {
  content: "";
  position: absolute;
  left: 21px;
  top: 12px;
  bottom: 12px;
  width: 2px;
  background: linear-gradient(180deg, var(--coral), var(--teal));
  opacity: 0.5;
}
.milestone {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 8px 0;
}
.ms-dot {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  font-size: 1.05rem;
  border-radius: 50%;
  background: var(--surface);
  border: 2px solid var(--border);
  position: relative;
  z-index: 1;
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.milestone:hover .ms-dot {
  border-color: var(--coral);
  transform: scale(1.08);
}
.ms-body { display: flex; flex-direction: column; gap: 1px; }
.ms-title { font-weight: 700; font-size: 0.98rem; color: var(--text); }
.ms-sub { font-size: 0.8rem; color: var(--muted); }

/* ---- ACTIONS ---- */
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}
.link-btn {
  text-decoration: none;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border);
  font-weight: 600;
  font-size: 0.96rem;
  padding: 12px 22px;
  border-radius: 12px;
  transition: border-color 0.15s ease, color 0.15s ease;
}
.link-btn:hover {
  border-color: var(--teal);
  color: var(--teal);
}

/* ---- APPS COLUMN ---- */
.col-apps { text-align: left; }
.app-list { display: flex; flex-direction: column; gap: 10px; }
.app-card {
  display: flex;
  align-items: center;
  gap: 13px;
  text-decoration: none;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent, var(--teal));
  border-radius: 13px;
  padding: 13px 15px;
  transition: transform 0.15s ease, border-color 0.15s ease;
}
.app-card:hover { transform: translateX(3px); border-color: var(--accent, var(--teal)); }
.app-emoji { font-size: 1.4rem; line-height: 1; flex-shrink: 0; }
.app-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.app-name { font-weight: 800; font-size: 0.98rem; }
.app-tagline {
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.app-arrow { margin-left: auto; color: var(--accent, var(--teal)); font-size: 1.1rem; flex-shrink: 0; }

/* Tablet: two columns (profile spans the top), still no horizontal cramming. */
@media (max-width: 980px) {
  body { padding: 48px 28px; align-items: flex-start; }
  .layout {
    grid-template-columns: 1fr 1fr;
    gap: 40px 48px;
    max-width: 720px;
  }
  .col-profile { grid-column: 1 / -1; text-align: center; }
  .col-profile .avatar-wrap { margin-left: auto; margin-right: auto; }
  .col-profile .bio { margin-left: auto; margin-right: auto; }
  .col-profile .actions { justify-content: center; }
  .timeline { max-width: 320px; }
}

/* Phone: single column stack. */
@media (max-width: 560px) {
  body { padding: 40px 22px; }
  .layout { grid-template-columns: 1fr; gap: 40px; max-width: 420px; }
  .col-hobbies, .col-apps { display: flex; flex-direction: column; align-items: center; }
  .col-hobbies .col-label, .col-apps .col-label { text-align: center; }
  .app-list, .timeline { width: 100%; max-width: 360px; }
}

/* ---- APP SUBPAGE ---- */
/* Single left-aligned column, anchored toward the left of the page. */
.app-body {
  display: block;
  padding: 0;
}
.app-shell {
  max-width: 620px;
  margin: 0;                 /* hug the left */
  padding: 64px 28px 64px 72px;
  animation: rise 0.5s ease both;
}
.app-main { margin-top: 28px; }

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.92rem;
  padding: 9px 18px 9px 14px;
  border: 1px solid var(--accent, var(--teal));
  border-radius: 999px;
  background: color-mix(in srgb, var(--accent, var(--teal)) 12%, transparent);
  margin-bottom: 32px;
  transition: background 0.15s ease, transform 0.15s ease;
}
.back-link:hover {
  background: color-mix(in srgb, var(--accent, var(--teal)) 22%, transparent);
  transform: translateX(-2px);
}

.app-head h1 {
  background: none;
  -webkit-text-fill-color: var(--text);
  color: var(--text);
  font-size: 2.1rem;
}
.app-head .tagline {
  color: var(--muted);
  font-weight: 600;
  margin-top: 10px;
  font-size: 1rem;
  line-height: 1.55;
  max-width: 480px;
}

/* horizontal tab row under the title (extensible: Download, Terms, …) */
.tab-nav {
  display: flex;
  gap: 4px;
  margin-top: 26px;
  border-bottom: 1px solid var(--border);
}
.tab-link {
  text-decoration: none;
  color: var(--muted);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 11px 16px;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: color 0.15s ease, border-color 0.15s ease;
}
.tab-link:hover { color: var(--text); }
.tab-link.is-active {
  color: var(--text);
  border-bottom-color: var(--accent, var(--teal));
}

/* download tab */
.platform {
  margin-bottom: 16px;
  text-align: left;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 18px 18px 20px;
}
.platform-head {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
  margin-bottom: 14px;
}
.dl-row { display: flex; flex-wrap: wrap; gap: 12px; }
.dl-btn {
  flex: 1 1 0;
  min-width: 130px;
  text-align: center;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.94rem;
  padding: 12px 14px;
  border-radius: 11px;
  border: 1px solid var(--border);
  color: var(--text);
  background: var(--surface-2);
  transition: border-color 0.15s ease, color 0.15s ease;
}
.dl-btn:not(.dl-soon):hover { border-color: var(--accent, var(--teal)); color: var(--accent, var(--teal)); }
.dl-soon { color: #6b6b75; cursor: default; font-weight: 600; font-size: 0.86rem; }
.dl-note { color: #6b6b75; font-size: 0.82rem; margin-top: 20px; line-height: 1.5; }

/* generic text tabs (terms, privacy, …) */
.prose { color: #cfcfd6; line-height: 1.75; font-size: 0.98rem; }
.prose h2 { font-family: 'Space Grotesk', sans-serif; font-size: 1.15rem; color: var(--text); margin: 22px 0 10px; }
.prose h2:first-child { margin-top: 0; }
.prose p { margin-bottom: 14px; }
.prose a { color: var(--accent, var(--teal)); }

@media (max-width: 720px) {
  .app-shell { padding: 40px 24px; max-width: none; }
  .app-head h1 { font-size: 1.85rem; }
  .tab-nav { overflow-x: auto; }
  .tab-link { white-space: nowrap; }
}
