:root {
  --koonol-green: #176b45;
  --koonol-green-dark: #0f4d32;
  --koonol-green-soft: #e8f3ed;
  --ink: #17211d;
  --muted: #66736d;
  --line: #e6ebe8;
  --surface: #ffffff;
  --background: #f4f7f5;
  --radius: 28px;
  --shadow: 0 24px 70px rgba(24, 53, 39, .14);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: radial-gradient(circle at top, #eef6f1 0, var(--background) 42%, #edf1ef 100%);
  color: var(--ink);
}
a { color: inherit; text-decoration: none; }
button, a { -webkit-tap-highlight-color: transparent; }

.page-shell, .landing-shell {
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 28px 16px;
}

.profile-card, .landing-card {
  width: min(100%, 560px);
  background: var(--surface);
  border: 1px solid rgba(23, 107, 69, .08);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.cover {
  height: 128px;
  background:
    linear-gradient(135deg, rgba(255,255,255,.10), rgba(255,255,255,0)),
    radial-gradient(circle at 20% 15%, rgba(255,255,255,.18), transparent 25%),
    linear-gradient(130deg, var(--koonol-green-dark), var(--koonol-green));
}

.profile-content { padding: 0 28px 26px; }
.top-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: -105px;
  min-height: 76px;
}

.brand { display: flex; align-items: center; gap: 10px; color: #fff; }
.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 13px;
  background: #fff;
  color: var(--koonol-green);
  font-size: 23px;
  font-weight: 900;
  box-shadow: 0 8px 20px rgba(0,0,0,.10);
}
.brand strong { display: block; letter-spacing: .12em; font-size: 15px; }
.brand span { display: block; opacity: .80; font-size: 10px; margin-top: 1px; }
.brand-large { color: var(--ink); justify-content: center; margin-bottom: 34px; }
.brand-large .brand-mark { background: var(--koonol-green); color: #fff; }
.brand-large strong { font-size: 18px; }
.brand-large span { color: var(--muted); }

.icon-button {
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  background: rgba(255,255,255,.18);
  color: #fff;
  cursor: pointer;
  backdrop-filter: blur(7px);
  font-size: 18px;
}

.avatar-wrap { display: flex; justify-content: center; margin-top: 45px; }
.avatar {
  width: 112px;
  height: 112px;
  border-radius: 50%;
  object-fit: cover;
  border: 6px solid #fff;
  box-shadow: 0 12px 32px rgba(25, 54, 41, .18);
  background: var(--koonol-green-soft);
}
.initials {
  display: grid;
  place-items: center;
  font-size: 36px;
  font-weight: 800;
  color: var(--koonol-green-dark);
}

.identity { text-align: center; margin-top: 16px; }
.identity h1 { margin: 0; font-size: clamp(26px, 7vw, 34px); line-height: 1.08; letter-spacing: -.035em; }
.job-title { margin: 9px 0 0; color: var(--koonol-green); font-weight: 750; }
.department { margin: 3px 0 0; color: var(--muted); font-size: 14px; }
.company { margin: 8px 0 0; color: var(--muted); font-size: 14px; }

.primary-btn, .secondary-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 52px;
  border-radius: 16px;
  padding: 0 20px;
  font-weight: 780;
  transition: transform .15s ease, box-shadow .15s ease;
}
.primary-btn { background: var(--koonol-green); color: white; box-shadow: 0 10px 22px rgba(23,107,69,.22); }
.secondary-btn { background: var(--koonol-green-soft); color: var(--koonol-green-dark); }
.primary-btn:hover, .secondary-btn:hover { transform: translateY(-1px); }
.save-contact { margin-top: 24px; }
.btn-icon { font-size: 22px; line-height: 0; }

.quick-actions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: 18px 0 26px;
}
.action-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 84px;
  border: 1px solid var(--line);
  border-radius: 18px;
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
  background: #fff;
}
.action-icon {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  margin-bottom: 7px;
  border-radius: 50%;
  color: var(--koonol-green-dark);
  background: var(--koonol-green-soft);
  font-size: 13px;
  font-weight: 900;
}

.info-list { border-top: 1px solid var(--line); }
.info-row {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  align-items: center;
  gap: 11px;
  padding: 15px 2px;
  border-bottom: 1px solid var(--line);
}
.info-icon {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--koonol-green-soft);
  color: var(--koonol-green-dark);
  font-weight: 800;
}
.info-row small { display: block; color: var(--muted); margin-bottom: 3px; }
.info-row strong { display: block; font-size: 14px; overflow-wrap: anywhere; }

.links-grid { display: flex; flex-wrap: wrap; gap: 9px; margin: 22px 0 0; }
.links-grid a {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 9px 13px;
  font-size: 13px;
  font-weight: 750;
  color: var(--koonol-green-dark);
}
.tagline { margin: 18px 0 0; color: var(--muted); line-height: 1.6; font-size: 14px; }

.qr-section {
  margin-top: 28px;
  padding: 22px;
  display: grid;
  grid-template-columns: 1fr 130px;
  gap: 20px;
  align-items: center;
  border-radius: 22px;
  background: var(--koonol-green-soft);
}
.eyebrow { margin: 0 0 7px; color: var(--koonol-green); letter-spacing: .13em; font-size: 10px; font-weight: 900; }
.qr-section h2 { margin: 0; font-size: 19px; }
.qr-section p:not(.eyebrow) { margin: 7px 0 0; color: var(--muted); font-size: 12px; line-height: 1.5; }
.qr-image { width: 130px; height: 130px; border-radius: 15px; background: #fff; padding: 8px; }

footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-top: 22px;
  margin-top: 22px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 11px;
}
footer a { color: var(--koonol-green); font-weight: 800; }

.landing-card { padding: 44px 38px; text-align: center; }
.landing-card.compact { max-width: 480px; }
.landing-card h1 { margin: 0; font-size: clamp(30px, 7vw, 46px); letter-spacing: -.04em; }
.lead { color: var(--muted); line-height: 1.65; margin: 14px auto 28px; max-width: 460px; }
.landing-card .primary-btn, .landing-card .secondary-btn { max-width: 300px; margin: 0 auto; }
.privacy-note { margin: 24px auto 0; font-size: 12px; color: var(--muted); line-height: 1.55; }
.status-code { color: var(--koonol-green); font-size: 66px; line-height: 1; font-weight: 900; letter-spacing: -.06em; }

.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translate(-50%, 18px);
  padding: 11px 16px;
  border-radius: 999px;
  background: #13231b;
  color: #fff;
  font-size: 13px;
  opacity: 0;
  pointer-events: none;
  transition: .2s ease;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 520px) {
  .page-shell { padding: 0; display: block; }
  .profile-card { border-radius: 0; border: 0; min-height: 100svh; box-shadow: none; }
  .profile-content { padding-left: 20px; padding-right: 20px; }
  .qr-section { grid-template-columns: 1fr 105px; padding: 18px; }
  .qr-image { width: 105px; height: 105px; }
  footer { flex-direction: column; gap: 5px; }
}
