:root{
  --text: rgba(0,0,0,.94);
  --muted: rgba(0,0,0,.78);

  /* Apple-ish glass values */
  --glass-bg-top: rgba(255,255,255,.82);
  --glass-bg-bot: rgba(255,255,255,.62);
  --glass-border: rgba(255,255,255,.42);

  --shadow-lg: 0 28px 70px rgba(0,0,0,.22);
  --shadow-md: 0 18px 38px rgba(0,0,0,.22);
  --shadow-sm: 0 10px 20px rgba(0,0,0,.18);

  --blur: 26px;
  --sat: 170%;
}

*{ box-sizing:border-box; }
html,body{ height:100%; }

body{
  margin:0;
  display:grid;
  place-items:center;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  background:#f3f3f5;
  padding: 18px;
}

/* PHONE CARD */
.phone{
  width: min(92vw, 560px);
  height: min(92vh, 980px);
  border-radius: 44px;
  overflow:hidden;
  position:relative;

  /* Stronger, more "device-like" shadow */
  box-shadow: var(--shadow-lg);

  /* Fallback background (actual bg comes from JSON/JS) */
  background: linear-gradient(180deg, #cfe7df 0%, #b6d46a 35%, #3f8f57 65%, #1f6b3a 100%);
}

/* Global glossy lighting + depth */
.phone::before{
  content:"";
  position:absolute;
  inset:-2px;
  pointer-events:none;

  /* layered highlights */
  background:
    radial-gradient(1200px 700px at 50% 0%, rgba(255,255,255,.30), transparent 50%),
    radial-gradient(900px 600px at 20% 10%, rgba(255,255,255,.14), transparent 55%),
    radial-gradient(900px 600px at 80% 20%, rgba(255,255,255,.10), transparent 60%);
}

/* Subtle vignette for premium look */
.phone::after{
  content:"";
  position:absolute;
  inset:0;
  pointer-events:none;
  background: radial-gradient(900px 900px at 50% 10%, transparent 55%, rgba(0,0,0,.18) 100%);
  opacity:.55;
}

/* CONTENT */
.content{
  position:relative;
  height:100%;
  width:100%;
  display:flex;
  flex-direction:column;
  align-items:center;
  padding: 78px 22px 38px;
  gap: 22px;
}

/* PROFILE */
.profile{
  text-align:center;
  display:flex;
  flex-direction:column;
  align-items:center;
  gap: 10px;
}

/* Avatar: glossy ring + soft float */
.avatar{
  width: 118px;
  height: 118px;
  border-radius: 999px;
  object-fit: cover;

  border: 5px solid rgba(255,255,255,.72);
  background: rgba(255,255,255,.18);

  box-shadow:
    0 20px 40px rgba(0,0,0,.22),
    inset 0 1px 0 rgba(255,255,255,.65);
}

.name{
  margin: 8px 0 0;
  color: var(--text);
  font-weight: 720;
  letter-spacing: .2px;
  font-size: 40px;
  line-height: 1.08;

  /* Apple-like soft text glow for contrast */
  text-shadow: 0 10px 24px rgba(0,0,0,.22);
}

.tagline{
  margin: 0;
  color: var(--muted);
  font-size: 19px;
  line-height: 1.35;

  text-shadow: 0 8px 20px rgba(0,0,0,.18);
}

/* BUTTONS WRAP */
.buttons{
  width: min(520px, 100%);
  display:flex;
  flex-direction:column;
  gap: 16px;
  margin-top: 8px;
}

/* APPLE GLOSSY GLASS BUTTON */
.btn{
  position: relative;
  display:flex;
  align-items:center;
  justify-content:center;
  gap: 12px;

  padding: 18px 22px;
  border-radius: 22px;

  font-size: 22px;
  font-weight: 600;
  letter-spacing: .2px;

  color: rgba(0,0,0,.78);
  text-decoration:none;

  /* Glass surface */
  background:
    linear-gradient(to bottom, var(--glass-bg-top), var(--glass-bg-bot));

  backdrop-filter: blur(var(--blur)) saturate(var(--sat));
  -webkit-backdrop-filter: blur(var(--blur)) saturate(var(--sat));

  border: 1px solid var(--glass-border);

  /* Depth + inner light */
  box-shadow:
    var(--shadow-md),
    inset 0 1px 0 rgba(255,255,255,.80),
    inset 0 -1px 0 rgba(255,255,255,.25);

  transition:
    transform .18s cubic-bezier(.2,.8,.2,1),
    box-shadow .18s cubic-bezier(.2,.8,.2,1),
    filter .18s cubic-bezier(.2,.8,.2,1);
}

/* The KEY: glossy reflection */
.btn::before{
  content:"";
  position:absolute;
  left: 1px;
  right: 1px;
  top: 1px;
  height: 44%;
  border-radius: 21px;

  background: linear-gradient(
    to bottom,
    rgba(255,255,255,.78),
    rgba(255,255,255,.28),
    rgba(255,255,255,0)
  );
  pointer-events:none;
}

/* A tiny edge highlight for crispness */
.btn::after{
  content:"";
  position:absolute;
  inset: 0;
  border-radius: 22px;
  pointer-events:none;

  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,.12);
}

/* Hover (desktop) */
.btn:hover{
  filter: brightness(1.02);
}

/* Press (iOS-like) */
.btn:active{
  transform: scale(.972);
  box-shadow:
    var(--shadow-sm),
    inset 0 2px 8px rgba(0,0,0,.12),
    inset 0 1px 0 rgba(255,255,255,.50);
}

/* PRIMARY (optional) - green glossy action */
.btn.primary{
  color: rgba(255,255,255,.95);

  background: linear-gradient(to bottom, rgba(63,143,87,.95), rgba(31,107,58,.95));
  border: 1px solid rgba(255,255,255,.20);

  box-shadow:
    0 20px 42px rgba(0,0,0,.30),
    inset 0 1px 0 rgba(255,255,255,.22),
    inset 0 -1px 0 rgba(255,255,255,.12);
}

.btn.primary::before{
  background: linear-gradient(
    to bottom,
    rgba(255,255,255,.35),
    rgba(255,255,255,.12),
    rgba(255,255,255,0)
  );
}

/* SOCIAL */
.social{
  margin-top: 6px;
  display:flex;
  gap: 28px;
  align-items:center;
  justify-content:center;
}

.social a{
  width: 42px;
  height: 42px;
  display:grid;
  place-items:center;

  color: rgba(255,255,255,.94);
  text-decoration:none;

  opacity:.92;
  border-radius: 14px;

  transition: transform .18s cubic-bezier(.2,.8,.2,1), opacity .18s ease;
}

.social a:hover{
  opacity: 1;
  transform: translateY(-1px);
}

.social svg{
  width: 40px;
  height: 40px;
  fill: currentColor;
  filter: drop-shadow(0 10px 18px rgba(0,0,0,.22));
}

/* RESPONSIVE */
@media (max-height: 760px){
  .content{ padding-top: 58px; gap: 18px; }
  .name{ font-size: 34px; }
  .btn{ font-size: 20px; padding: 16px 20px; }
  .avatar{ width: 110px; height: 110px; }
}
