:root {
  --green: #2bb263;
  --green-hover: #34c26d;
  --green-deep: #0a2a1a;
  --ink: #17191d;
  --muted: #666d73;
  --paper: #ffffff;
  --panel: #121d21;
  --panel-line: rgba(255, 255, 255, 0.24);
  --font: "Segoe UI", "Helvetica Neue", "Noto Sans", Arial, system-ui, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  background: var(--panel);
}

body {
  min-width: 320px;
  margin: 0;
  overflow-x: clip;
  background: var(--panel);
  color: var(--ink);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.menu-open {
  overflow: hidden;
}

img {
  display: block;
  max-width: 100%;
}

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

button {
  font: inherit;
}

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

svg {
  display: block;
}

.svg-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

:focus-visible {
  outline: 3px solid #148a50;
  outline-offset: 3px;
}

.panel :focus-visible,
.menu-overlay :focus-visible {
  outline-color: #6bda9a;
}

.skip-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 200;
  padding: 0.7rem 1rem;
  border-radius: 0.6rem;
  background: var(--panel);
  color: #fff;
  font-size: 0.9rem;
  font-weight: 700;
  transform: translateY(-180%);
  transition: transform 0.18s ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.site {
  display: flex;
  min-height: 100vh;
  min-height: 100svh;
  flex-direction: column;
  background: var(--panel);
}

/* White section */
.hero {
  display: flex;
  min-height: 70.2vh;
  min-height: 70.2svh;
  flex-direction: column;
  padding: clamp(1.15rem, 5.5vw, 2.6rem) clamp(1rem, 4.9vw, 2.5rem)
    clamp(2.65rem, 13.5vw, 7.25rem);
  background: var(--paper);
}

.topbar {
  display: grid;
  width: 100%;
  max-width: 760px;
  height: clamp(2.35rem, 9.4vw, 4.2rem);
  margin-inline: auto;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
}

.icon-button {
  display: grid;
  width: clamp(2.5rem, 9vw, 4rem);
  aspect-ratio: 1;
  place-items: center;
  border-radius: 999px;
}

.menu-button {
  justify-self: start;
  border: 0;
  padding: 0;
  background: transparent;
  color: #14161a;
  cursor: pointer;
  transition: background-color 0.18s ease;
}

.menu-button svg {
  width: clamp(1.4rem, 4.9vw, 2rem);
  height: auto;
}

.brand {
  display: inline-flex;
  align-items: center;
  justify-self: center;
  gap: clamp(0.28rem, 1.25vw, 0.52rem);
  color: #35b566;
  font-size: clamp(1.3rem, 5.45vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.055em;
  line-height: 1;
}

.brand-mark {
  width: 1.13em;
  height: 1.13em;
  flex: 0 0 auto;
}

.download-button-icon {
  justify-self: end;
  border: max(1.5px, 0.2vw) solid #17241c;
  background: var(--green);
  color: #10271a;
  box-shadow: 0 3px 0 rgba(18, 29, 33, 0.08);
  transition:
    background-color 0.18s ease,
    transform 0.18s ease;
}

.download-button-icon svg {
  width: 46%;
  height: 46%;
}

.hero-content {
  display: flex;
  width: min(76vw, 540px);
  margin-inline: auto;
  flex-direction: column;
  align-items: center;
}

.profile {
  display: flex;
  width: 100%;
  margin-top: clamp(3.2rem, 15.75vw, 7.4rem);
  flex-direction: column;
  align-items: center;
}

.avatar {
  position: relative;
  display: block;
  overflow: hidden;
  width: clamp(8rem, 33.3vw, 14.8rem);
  aspect-ratio: 1;
  border: clamp(3px, 0.7vw, 5px) solid #fff;
  border-radius: 50%;
  background: #e9e4de;
  box-shadow:
    0 0 0 1px rgba(24, 30, 34, 0.08),
    0 16px 38px rgba(26, 32, 38, 0.16);
}

.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 42%;
  transform: scale(1.04);
}

.profile h1 {
  margin: clamp(1.2rem, 5.6vw, 2.55rem) 0 0;
  color: var(--ink);
  font-size: clamp(1.42rem, 5.35vw, 2.4rem);
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 1.12;
}

.btn {
  display: inline-flex;
  width: 100%;
  align-items: center;
  justify-content: center;
  border: 1.5px solid transparent;
  border-radius: 999px;
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1;
  cursor: pointer;
  transition:
    background-color 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.2s ease;
}

.btn-chat {
  height: clamp(3.25rem, 13.15vw, 5.9rem);
  margin-top: clamp(2rem, 8.45vw, 4rem);
  border-color: #172a1e;
  background: var(--green);
  color: #092d1b;
  font-size: clamp(1.06rem, 4.2vw, 1.88rem);
  box-shadow: 0 2px 0 rgba(20, 34, 25, 0.08);
}

.hint {
  display: flex;
  width: 100%;
  margin-top: clamp(1.7rem, 8.5vw, 4.3rem);
  flex-direction: column;
  align-items: center;
  gap: clamp(0.1rem, 0.65vw, 0.38rem);
  color: #2c3035;
  font-size: clamp(0.94rem, 3.75vw, 1.7rem);
  letter-spacing: -0.025em;
  line-height: 1.22;
  text-align: center;
}

.hint-line {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: clamp(0.55rem, 2.2vw, 0.95rem);
}

.hint-icon {
  width: clamp(1.25rem, 4.15vw, 1.8rem);
  height: clamp(1.25rem, 4.15vw, 1.8rem);
  flex: 0 0 auto;
  color: var(--green);
}

.hint-link {
  padding-bottom: 0.12em;
  border-bottom: max(2px, 0.35vw) solid var(--green);
  color: #15181c;
  font-weight: 700;
  line-height: 1.2;
}

/* Dark section */
.panel {
  display: flex;
  min-height: 29.8vh;
  min-height: 29.8svh;
  flex: 1 1 auto;
  flex-direction: column;
  align-items: center;
  padding: clamp(2.4rem, 12.4vw, 6rem) clamp(1rem, 4.9vw, 2.5rem)
    clamp(1.5rem, 7vw, 3.8rem);
  background: var(--panel);
}

.panel .btn {
  width: min(76vw, 540px);
}

.btn-download {
  height: clamp(3.25rem, 13.15vw, 5.9rem);
  flex: 0 0 auto;
  gap: clamp(0.4rem, 1.8vw, 0.9rem);
  border-color: transparent;
  background: var(--green);
  color: #092d1b;
  font-size: clamp(1.06rem, 4.2vw, 1.88rem);
  box-shadow:
    0 12px 28px rgba(0, 0, 0, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

.btn-download svg {
  width: 1.15em;
  height: 1.15em;
}

.socials {
  display: flex;
  margin-top: clamp(2.1rem, 9.1vw, 4.4rem);
  align-items: center;
  justify-content: center;
  gap: clamp(1.55rem, 9.1vw, 4.6rem);
}

.social {
  display: grid;
  width: clamp(2.9rem, 11.8vw, 5.25rem);
  aspect-ratio: 1;
  place-items: center;
  border: 1.5px solid var(--panel-line);
  border-radius: 50%;
  color: #f7f8f8;
  transition:
    background-color 0.2s ease,
    border-color 0.2s ease,
    transform 0.2s ease;
}

.social svg {
  width: 51%;
  height: 51%;
}

.social[data-social="x"] svg {
  width: 43%;
  height: 43%;
}

.social[data-social="youtube"] svg {
  width: 56%;
  height: 56%;
}

.social[data-social="facebook"] svg {
  width: 49%;
  height: 49%;
}

/* Side menu */
.menu-overlay {
  position: fixed;
  z-index: 80;
  inset: 0;
  display: flex;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transition:
    visibility 0.3s ease,
    opacity 0.3s ease;
}

.menu-overlay.is-open {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
}

.menu-scrim {
  position: absolute;
  inset: 0;
  border: 0;
  padding: 0;
  background: rgba(8, 15, 18, 0.58);
  cursor: pointer;
  backdrop-filter: blur(5px);
}

.menu-sheet {
  position: relative;
  display: flex;
  overflow-y: auto;
  width: min(88vw, 366px);
  height: 100%;
  flex-direction: column;
  padding: max(1.25rem, env(safe-area-inset-top)) 1.15rem 1.4rem;
  background: #fbfcfc;
  box-shadow: 24px 0 64px rgba(0, 0, 0, 0.22);
  transform: translateX(-102%);
  transition: transform 0.34s cubic-bezier(0.22, 0.8, 0.24, 1);
}

.menu-overlay.is-open .menu-sheet {
  transform: translateX(0);
}

.menu-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #626a70;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.menu-close {
  display: grid;
  width: 2.5rem;
  height: 2.5rem;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: #edf1f1;
  color: #1d2226;
  cursor: pointer;
  transition: background-color 0.18s ease;
}

.menu-close svg {
  width: 1.05rem;
  height: 1.05rem;
}

.menu-profile {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin-bottom: 0.8rem;
  padding: 1.3rem 0 1.25rem;
  border-bottom: 1px solid #e5e9e9;
}

.menu-profile img {
  width: 3.6rem;
  height: 3.6rem;
  border-radius: 50%;
  object-fit: cover;
}

.menu-profile h2 {
  margin: 0;
  font-size: 1.22rem;
  font-weight: 650;
  letter-spacing: -0.035em;
  line-height: 1.2;
}

.menu-profile p {
  margin: 0.22rem 0 0;
  color: #70787e;
  font-size: 0.8rem;
}

.menu-links {
  display: flex;
  flex-direction: column;
  gap: 0.18rem;
}

.menu-link {
  display: grid;
  grid-template-columns: 2.2rem 1fr auto;
  align-items: center;
  gap: 0.7rem;
  padding: 0.72rem 0.55rem;
  border-radius: 0.8rem;
  color: #20252a;
  font-size: 0.96rem;
  font-weight: 600;
  transition: background-color 0.16s ease;
}

.menu-link-icon {
  display: grid;
  width: 2.2rem;
  height: 2.2rem;
  place-items: center;
  border-radius: 0.65rem;
  background: #e9f7ee;
  color: #239e58;
}

.menu-link-icon svg {
  width: 1.12rem;
  height: 1.12rem;
}

.menu-arrow {
  width: 1rem;
  height: 1rem;
  color: #9ba2a7;
}

/* Small confirmation after the contact is downloaded */
.toast {
  position: fixed;
  z-index: 120;
  bottom: max(1.25rem, env(safe-area-inset-bottom));
  left: 50%;
  display: flex;
  max-width: calc(100vw - 2rem);
  align-items: center;
  gap: 0.55rem;
  padding: 0.8rem 1.05rem;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.26);
  color: #17201a;
  font-size: 0.9rem;
  font-weight: 600;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 14px);
  transition:
    opacity 0.2s ease,
    transform 0.25s ease;
  white-space: nowrap;
}

.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

.toast-dot {
  width: 0.55rem;
  height: 0.55rem;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 4px rgba(43, 178, 99, 0.14);
}

/* Smooth interactions for hover-capable devices */
@media (hover: hover) and (pointer: fine) {
  .menu-button:hover {
    background: #f1f4f4;
  }

  .download-button-icon:hover {
    background: var(--green-hover);
    transform: translateY(-1px);
  }

  .btn-chat:hover,
  .btn-download:hover {
    background: var(--green-hover);
    transform: translateY(-2px);
  }

  .btn-chat:hover {
    box-shadow: 0 9px 22px rgba(43, 178, 99, 0.22);
  }

  .btn-download:hover {
    box-shadow:
      0 15px 32px rgba(0, 0, 0, 0.22),
      inset 0 1px 0 rgba(255, 255, 255, 0.22);
  }

  .hint-link:hover {
    color: #08743f;
  }

  .social:hover {
    border-color: var(--green);
    background: rgba(43, 178, 99, 0.12);
    transform: translateY(-2px);
  }

  .menu-close:hover {
    background: #e3e8e8;
  }

  .menu-link:hover {
    background: #eef4f0;
  }
}

.btn:active,
.download-button-icon:active,
.social:active {
  transform: scale(0.98);
}

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

@media (prefers-reduced-motion: no-preference) {
  .profile {
    animation: rise 0.55s 0.04s both cubic-bezier(0.2, 0.7, 0.2, 1);
  }

  .btn-chat {
    animation: rise 0.55s 0.11s both cubic-bezier(0.2, 0.7, 0.2, 1);
  }

  .hint {
    animation: rise 0.55s 0.17s both cubic-bezier(0.2, 0.7, 0.2, 1);
  }

  .panel .btn {
    animation: rise 0.55s 0.23s both cubic-bezier(0.2, 0.7, 0.2, 1);
  }

  .socials {
    animation: rise 0.55s 0.3s both cubic-bezier(0.2, 0.7, 0.2, 1);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

@media (max-width: 360px) {
  .brand {
    font-size: 1.18rem;
  }

  .socials {
    gap: 1.25rem;
  }
}

@media (min-width: 720px) {
  .hero {
    padding: 1.6rem 2.5rem 2.8rem;
  }

  .topbar {
    max-width: 740px;
    height: 4.2rem;
  }

  .brand {
    font-size: 2.35rem;
  }

  .menu-button {
    width: 2.75rem;
  }

  .download-button-icon {
    width: 3.5rem;
  }

  .hero-content {
    width: min(86vw, 520px);
    margin-block: auto;
    padding-block: 1.25rem 2rem;
  }

  .profile {
    margin-top: 0;
  }

  .avatar {
    width: 11rem;
  }

  .profile h1 {
    margin-top: 1.25rem;
    font-size: 2rem;
  }

  .btn-chat {
    height: 4.4rem;
    margin-top: 2.25rem;
    font-size: 1.4rem;
  }

  .hint {
    margin-top: 2.2rem;
    gap: 0.15rem;
    font-size: 1.08rem;
  }

  .hint-icon {
    width: 1.35rem;
    height: 1.35rem;
  }

  .panel {
    justify-content: center;
    padding-top: 2.3rem;
    padding-bottom: 2.3rem;
  }

  .panel .btn {
    width: min(86vw, 480px);
  }

  .btn-download {
    height: 4.4rem;
    font-size: 1.4rem;
  }

  .socials {
    margin-top: 2.2rem;
    gap: 3rem;
  }

  .social {
    width: 4.1rem;
  }
}
