/* ─────────────────────────────────────────
   Reset
───────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

/* ─────────────────────────────────────────
   Variables
───────────────────────────────────────── */
:root {
  --bg:       #080808;
  --surface:  #111111;
  --border:   rgba(255, 255, 255, 0.07);
  --text-1:   #f2f2f2;
  --text-2:   #888888;
  --text-3:   #3a3a3a;
  --radius:   22px;
  --gap:      12px;
}

/* ─────────────────────────────────────────
   Base
───────────────────────────────────────── */
html {
  background: var(--bg);
  height: -webkit-fill-available;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', sans-serif;
  background: var(--bg);
  color: var(--text-1);
  min-height: 100vh;
  min-height: -webkit-fill-available;
  overscroll-behavior-y: none;
  padding-top:    env(safe-area-inset-top);
  padding-bottom: calc(env(safe-area-inset-bottom) + 40px);
  -webkit-font-smoothing: antialiased;
}

/* ─────────────────────────────────────────
   Layout
───────────────────────────────────────── */
.page {
  max-width: 480px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ─────────────────────────────────────────
   Header / Profile
───────────────────────────────────────── */
.header {
  padding: 44px 0 32px;
}

.profile {
  display: flex;
  align-items: center;
  gap: 16px;
}

.avatar {
  width: 62px;
  height: 62px;
  border-radius: 50%;
  background: linear-gradient(135deg, #7c6ff7 0%, #a78bfa 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 0 0 1px rgba(255,255,255,0.1), 0 8px 24px rgba(124, 111, 247, 0.35);
}

.avatar-initials {
  font-size: 20px;
  font-weight: 600;
  color: #fff;
  letter-spacing: -0.5px;
}

.profile-name {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.5px;
  color: var(--text-1);
  line-height: 1.2;
}

.profile-bio {
  font-size: 14px;
  color: var(--text-2);
  margin-top: 4px;
  font-weight: 400;
}

/* ─────────────────────────────────────────
   Section label
───────────────────────────────────────── */
.section-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.4px;
  color: var(--text-3);
  margin-bottom: 14px;
}

/* ─────────────────────────────────────────
   Grid
───────────────────────────────────────── */
.grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--gap);
}

/* ─────────────────────────────────────────
   App Card
───────────────────────────────────────── */
.card {
  background: var(--surface);
  border-radius: var(--radius);
  overflow: hidden;
  text-decoration: none;
  display: block;
  border: 1px solid var(--border);
  transition: transform 0.14s cubic-bezier(0.34, 1.56, 0.64, 1),
              opacity  0.12s ease;
  will-change: transform;
  -webkit-user-select: none;
  user-select: none;
}

.card:active {
  transform: scale(0.94);
  opacity: 0.75;
  transition: transform 0.08s ease, opacity 0.08s ease;
}

.card-icon {
  width: 100%;
  aspect-ratio: 4 / 3;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.4rem;
  position: relative;
}

/* subtle inner shadow so emoji pops */
.card-icon::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 50%, rgba(0,0,0,0.18) 100%);
  pointer-events: none;
}

.card-body {
  padding: 12px 14px 15px;
  border-top: 1px solid var(--border);
}

.card-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-1);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  letter-spacing: -0.2px;
}

.card-desc {
  font-size: 12px;
  color: var(--text-2);
  margin-top: 3px;
  font-weight: 400;
  line-height: 1.5;
}

/* ─────────────────────────────────────────
   Share button (header)
───────────────────────────────────────── */
.profile {
  justify-content: space-between;
}

.share-btn {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 50%;
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-2);
  cursor: pointer;
  flex-shrink: 0;
  transition: color 0.15s, background 0.15s;
}

.share-btn:active {
  color: var(--text-1);
  background: #1e1e1e;
}

/* ─────────────────────────────────────────
   Card share button
───────────────────────────────────────── */
.card-name-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}

.card-share-btn {
  background: none;
  border: none;
  color: var(--text-2);
  cursor: pointer;
  padding: 2px;
  display: flex;
  align-items: center;
  flex-shrink: 0;
  transition: color 0.15s;
}

.card-share-btn:active {
  color: var(--text-1);
}

/* ─────────────────────────────────────────
   Toast
───────────────────────────────────────── */
.toast {
  position: fixed;
  bottom: calc(env(safe-area-inset-bottom) + 24px);
  left: 50%;
  transform: translateX(-50%) translateY(12px);
  background: rgba(255,255,255,0.12);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: #fff;
  font-size: 13px;
  font-weight: 500;
  padding: 10px 20px;
  border-radius: 20px;
  opacity: 0;
  transition: opacity 0.2s, transform 0.2s;
  pointer-events: none;
  white-space: nowrap;
}

.toast-show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ─────────────────────────────────────────
   Contact Form
───────────────────────────────────────── */
.contact-section {
  margin-top: 36px;
}

.contact-header {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 14px;
}

.contact-header .section-label {
  margin-bottom: 0;
}

.contact-description {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.35);
  letter-spacing: 0.01em;
}

.form-group {
  margin-bottom: 10px;
}

.form-input {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px 16px;
  color: var(--text-1);
  font-family: inherit;
  font-size: 14px;
  font-weight: 400;
  outline: none;
  transition: border-color 0.15s;
  -webkit-appearance: none;
}

.form-input::placeholder {
  color: var(--text-2);
}

.form-input:focus {
  border-color: rgba(255, 255, 255, 0.2);
}

.form-textarea {
  resize: none;
  height: 110px;
  line-height: 1.6;
}

.form-submit {
  width: 100%;
  margin-top: 4px;
  padding: 14px;
  background: #fff;
  color: #080808;
  border: none;
  border-radius: 14px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.15s;
}

.form-submit:active {
  opacity: 0.7;
}

.form-submit:disabled {
  opacity: 0.4;
  cursor: default;
}

/* ─────────────────────────────────────────
   Footer
───────────────────────────────────────── */
.footer {
  text-align: center;
  padding: 36px 0 8px;
  font-size: 12px;
  color: var(--text-3);
  font-weight: 400;
  letter-spacing: 0.3px;
}
