:root {
  --bg: #0d0e10;
  --panel: #111317;
  --line: #25282c;
  --text: #f5f5f5;
  --muted: #bfc3c9;
  --small-muted: #bcc3cc;
  --small-muted-size: 15px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  background: var(--bg);
}

body {
  font-family: "Manrope", sans-serif;
  color: var(--text);
  background: var(--bg);
}

.topbar {
  border-top: 1px solid #1c1f23;
  border-bottom: 1px solid #1c1f23;
  background: rgba(10, 11, 13, 0.9);
  position: sticky;
  top: 0;
  backdrop-filter: blur(8px);
  z-index: 10;
}

.topbar-inner {
  max-width: 1140px;
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brand {
  text-decoration: none;
  color: #fff;
  font-size: 28px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.menu {
  display: flex;
  gap: 38px;
}

.menu a {
  color: #c8ccd2;
  text-decoration: none;
  font-size: 20px;
  font-weight: 500;
  transition: color 0.18s ease;
}

.menu a:hover {
  color: #fff;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 40px;
  border: 1px solid #2b2f35;
  border-radius: 12px;
  background: #13161a;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}

.menu-toggle span {
  width: 20px;
  height: 2px;
  border-radius: 99px;
  background: #e9edf2;
  display: block;
  transform-origin: center;
  transition:
    transform 0.22s ease,
    opacity 0.18s ease;
}

.topbar-inner.menu-open .menu-toggle span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.topbar-inner.menu-open .menu-toggle span:nth-child(2) {
  opacity: 0;
}

.topbar-inner.menu-open .menu-toggle span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.page {
  max-width: 1140px;
  margin: 36px auto 46px;
  padding: 0 22px;
}

.panel {
  border: 1px solid var(--line);
  border-radius: 26px;
  background: linear-gradient(180deg, rgba(20, 22, 26, 0.84), rgba(12, 13, 15, 0.92));
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.015),
    0 24px 40px rgba(0, 0, 0, 0.35);
}

.hero {
  padding: 40px 46px 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 36px;
}

.hero-content {
  width: min(640px, 100%);
}

.hero h1 {
  margin: 0 0 20px;
  font-size: clamp(33px, 3.05vw, 46px);
  line-height: 1.05;
  font-weight: 800;
}

.hero p {
  margin: 0;
  color: var(--small-muted);
  font-size: var(--small-muted-size);
  line-height: 1.45;
}

.socials {
  margin-top: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.socials a {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 1px solid #e2e3e5;
  color: #f2f2f2;
  text-decoration: none;
  font-size: 12px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.02);
  overflow: hidden;
}

.socials a img {
  width: 64%;
  height: 64%;
  object-fit: contain;
  display: block;
  filter: brightness(0) invert(1);
}

.socials a.appstore-link img {
  width: 72%;
  height: 72%;
  filter: none;
}

.avatar-wrap {
  flex: 0 0 auto;
}

.avatar {
  width: min(282px, 31vw);
  aspect-ratio: 1;
  border-radius: 50%;
  border: 2px solid transparent;
  background:
    linear-gradient(#121418, #121418) padding-box,
    linear-gradient(135deg, #d9dde4 0%, #95a3b8 45%, #eef2f8 100%) border-box;
  display: grid;
  place-items: center;
  overflow: hidden;
  position: relative;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.08),
    0 10px 28px rgba(137, 159, 191, 0.22);
}

.avatar img {
  position: absolute;
  inset: -2px;
  width: calc(100% + 4px);
  height: calc(100% + 4px);
  display: block;
  object-fit: cover;
  object-position: center 20%;
  transform: scale(1.08);
}

.cards-grid {
  margin-top: 24px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
}

.apps-card {
  padding: 18px 26px 24px;
}

.apps-card h2 {
  margin: 0;
  font-size: clamp(24px, 2vw, 34px);
  line-height: 1.2;
  text-align: center;
}

.app-icons {
  margin-top: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  justify-content: center;
}

.app-icon {
  display: block;
  width: 80px;
  aspect-ratio: 1;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.28);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.12),
    0 8px 18px rgba(255, 255, 255, 0.08);
  text-decoration: none;
}

.app-icon img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.contact {
  margin-top: 22px;
  padding: 14px 26px 22px;
}

.contact h2 {
  margin: 0;
  text-align: center;
  font-size: clamp(30px, 2.2vw, 40px);
}

.contact-subtitle {
  margin: 8px 0 16px;
  text-align: center;
  color: var(--small-muted);
  font-size: var(--small-muted-size);
}

.contact-row {
  margin: 14px auto 0;
  border: 1px solid var(--line);
  border-radius: 24px;
  width: min(860px, 100%);
  padding: 12px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.email,
.cta {
  border-radius: 999px;
  text-decoration: none;
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: clamp(14px, 1.05vw, 18px);
  font-weight: 700;
}

.email {
  flex: 1;
  background: #0f1013;
  color: #fff;
  justify-content: center;
  gap: 6px;
  padding: 0 18px;
}

.email-text {
  display: inline-block;
}

.copy-email {
  width: 22px;
  height: 22px;
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.copy-email img {
  width: 18px;
  height: 18px;
  object-fit: contain;
  display: block;
  filter: brightness(0) invert(1);
}

.copy-email.copied {
  opacity: 0.75;
}

.cta {
  flex: 1;
  border-radius: 18px;
  background: #fff;
  color: #0b0c0d;
  gap: 6px;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.12),
    0 8px 18px rgba(255, 255, 255, 0.08);
}

.cta-icon {
  width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.cta-icon svg {
  width: 100%;
  height: 100%;
  fill: currentColor;
}

.cta-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.footer {
  border-top: 1px solid #1c1f23;
  padding: 26px 24px 34px;
  text-align: center;
}

.footer-menu {
  justify-content: center;
}

.footer p {
  margin: 10px 0 0;
  color: var(--small-muted);
  font-size: var(--small-muted-size);
}

.icons8-credit {
  margin: 6px 0 0;
  font-size: 12px;
  color: #8f98a6;
}

.icons8-credit a {
  color: inherit;
  font-size: inherit;
  text-decoration: none;
}

.icons8-credit a:hover {
  color: inherit;
}

@media (max-width: 980px) {
  .topbar-inner {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    column-gap: 10px;
    row-gap: 0;
  }

  .brand {
    font-size: 24px;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .main-menu {
    order: 3;
    width: 100%;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    max-height: 0;
    overflow: hidden;
    margin-top: 0;
    padding: 0;
    border-top: 1px solid transparent;
    opacity: 0;
    transform: translateY(-4px);
    pointer-events: none;
    transition:
      max-height 0.24s ease,
      padding 0.24s ease,
      border-color 0.24s ease,
      opacity 0.2s ease,
      transform 0.2s ease;
  }

  .topbar-inner.menu-open .main-menu {
    max-height: 180px;
    margin-top: 6px;
    padding: 10px 0 8px;
    border-top-color: #2b2f35;
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }

  .main-menu a {
    font-size: 17px;
    width: 100%;
    text-align: center;
    padding: 6px 0;
  }

  .hero {
    flex-direction: column-reverse;
    padding: 22px 24px 24px;
    gap: 20px;
    text-align: center;
    align-items: center;
  }

  .hero-content {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .hero p {
    max-width: 62ch;
    text-align: center;
  }

  .socials {
    justify-content: center;
  }

  .socials a {
    width: 30px;
    height: 30px;
    font-size: 10px;
  }

  .socials a img {
    width: 62%;
    height: 62%;
  }

  .socials a.appstore-link img {
    width: 70%;
    height: 70%;
  }

  .avatar-wrap {
    width: 100%;
    display: flex;
    justify-content: center;
  }

  .avatar {
    width: min(146px, 37vw);
  }

  .app-icons {
    flex-wrap: wrap;
    justify-content: center;
    overflow-x: visible;
  }

  .app-icon {
    width: 54px;
    border-radius: 16px;
    flex: 0 0 auto;
  }

  .footer-menu a {
    font-size: 16px;
  }

  .footer p {
    font-size: 13px;
  }

  .icons8-credit a {
    font-size: 11px;
  }

  .icons8-credit {
    font-size: 11px;
  }

  .cards-grid {
    grid-template-columns: 1fr;
  }

  .contact-row {
    flex-direction: column;
  }

  .email,
  .cta {
    width: 100%;
    font-size: 15px;
  }

  .cta {
    min-height: 48px;
    font-size: 14px;
  }
}
