:root {
  --line: rgba(148, 163, 184, 0.16);
  --sky: #55c7ff;
  --white: #f7fbff;
}

* { box-sizing: border-box; }

html { font-size: 130%; scroll-behavior: smooth; }

body {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  color: var(--white);
  background:
    linear-gradient(rgba(2, 9, 18, 0.74), rgba(2, 8, 16, 0.86)),
    url("background.png") center / cover fixed;
  font-family: Manrope, Arial, sans-serif;
}

.aurora {
  position: fixed;
  z-index: -1;
  width: 42rem;
  height: 42rem;
  border-radius: 50%;
  filter: blur(110px);
  opacity: 0.14;
  pointer-events: none;
}

.aurora-left { top: 28%; left: -27rem; background: #327be8; }
.aurora-right { top: -25rem; right: -15rem; background: #70d6ff; }

.topbar,
.portal,
footer {
  width: min(1120px, calc(100% - 48px));
  margin-inline: auto;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 92px;
  border-bottom: 1px solid var(--line);
}

.wordmark { display: none; }

.top-banner {
  display: block;
  width: 100.6px;
  height: 43px;
  overflow: hidden;
  border: 1px solid rgba(188, 207, 184, 0.28);
  border-radius: 10px;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.28);
}

.top-banner img,
.image-slot img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-wordmark {
  margin: 0;
  color: var(--white);
  font: 800 2.13rem/1 Manrope, Arial, sans-serif;
  letter-spacing: -0.08em;
  text-align: center;
  text-shadow: 0 8px 28px rgba(0, 0, 0, 0.32);
}

.hero-wordmark span {
  margin-left: 3px;
  vertical-align: top;
  color: var(--sky);
  font-size: 0.45em;
}

.topbar-actions { display: flex; align-items: center; gap: 10px; }

.topbar button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(132, 167, 205, 0.16);
  color: #e8f4ff;
  background: rgba(37, 61, 93, 0.72);
  font: 700 0.8rem/1 Manrope, Arial, sans-serif;
  cursor: pointer;
  transition: 0.25s;
}

.topbar button:hover {
  border-color: #00b8ff;
  color: #fff;
  background: rgba(34, 75, 116, 0.94);
}

.topbar svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: #00b8ff;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.9;
}

.language {
  min-height: 43px;
  padding: 0 17px;
  border-radius: 999px;
  gap: 7px;
}

.share-link {
  width: 43px;
  height: 43px;
  padding: 0;
  border-radius: 50%;
}

.share-link svg { width: 20px; height: 20px; }

.portal { padding: 33px 0 80px; }
.intro { max-width: 920px; margin: 0 auto 32px; }

.image-slots {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: 620px;
  gap: 16px;
  margin: 0 auto 58px;
}

.image-card {
  display: block;
  min-width: 0;
  color: inherit;
  text-decoration: none;
}

.image-slot {
  display: grid;
  aspect-ratio: 1;
  place-items: center;
  overflow: hidden;
  border: 0;
  border-radius: 18px;
  color: rgba(228, 239, 224, 0.72);
  background: transparent;
  box-shadow: none;
}

.image-slot img { transition: transform 0.28s ease; }
.image-card:hover .image-slot img { transform: scale(1.02); }

.image-caption {
  margin: 10px 0 0;
  color: #f1f7f2;
  font: 600 0.72rem/1.35 Manrope, Arial, sans-serif;
  letter-spacing: -0.02em;
  text-align: center;
}

.contact-grid {
  --contact-row: calc((min(1120px, calc(100vw - 48px)) - 42px) / 4);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: var(--contact-row);
  gap: 14px;
}

.contact-card {
  position: relative;
  min-height: 0;
  padding: 24px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  color: var(--white);
  text-decoration: none;
  background: linear-gradient(145deg, rgba(30, 41, 59, 0.72), rgba(8, 15, 28, 0.76));
  transition: transform 0.28s ease, border-color 0.28s ease, background 0.28s ease;
}

.contact-card:hover {
  z-index: 1;
  border-color: rgba(105, 213, 255, 0.6);
  background: linear-gradient(145deg, rgba(38, 64, 91, 0.83), rgba(8, 20, 34, 0.9));
  transform: translateY(-5px);
}

.contact-card h2 {
  margin: 57px 0 7px;
  font-size: 1.03rem;
  letter-spacing: -0.04em;
}

.contact-card p {
  margin: 0;
  overflow: hidden;
  color: #b6c4d7;
  font: 400 0.72rem/1.5 "DM Mono", monospace;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.feature-card,
.contact-card:nth-child(2) { grid-column: span 2; }

.feature-card {
  background:
    radial-gradient(circle at 95% 0%, rgba(72, 176, 235, 0.23), transparent 45%),
    linear-gradient(145deg, rgba(25, 56, 83, 0.88), rgba(8, 15, 28, 0.82));
}

.feature-card::after {
  position: absolute;
  right: -15px;
  bottom: -80px;
  width: 200px;
  height: 200px;
  border: 1px solid rgba(152, 224, 255, 0.25);
  border-radius: 50%;
  content: "";
}

.social-logo-card {
  border-color: transparent;
  background: transparent;
  box-shadow: none;
}

.social-logo-card > :not(.social-logo),
.feature-card .card-icon,
.contact-phone-card .card-icon,
.feature-card .card-index,
.contact-phone-card .card-index { display: none; }

.social-logo {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 7px 10px rgba(0, 0, 0, 0.3));
  transition: transform 0.28s ease;
}

.social-logo-card:hover {
  border-color: transparent;
  background: transparent;
  transform: translateY(-4px);
}

.social-logo-card:hover .social-logo { transform: scale(1.05); }

.feature-card .contact-logo,
.contact-phone-card .contact-logo {
  position: absolute;
  z-index: 0;
  top: 10%;
  right: 4%;
  display: block;
  width: auto;
  height: 80%;
  object-fit: contain;
  filter: drop-shadow(0 7px 10px rgba(0, 0, 0, 0.28));
  transition: transform 0.28s ease;
}

.feature-card:hover .contact-logo,
.contact-phone-card:hover .contact-logo { transform: scale(1.05); }

.contact-grid .feature-card h2,
.contact-grid .contact-phone-card h2,
.contact-grid .feature-card p,
.contact-grid .contact-phone-card p {
  position: absolute;
  z-index: 1;
  left: 0;
  width: 58%;
  margin: 0;
  text-align: center;
}

.contact-grid .feature-card h2,
.contact-grid .contact-phone-card h2 { top: 19%; }

.contact-grid .feature-card p,
.contact-grid .contact-phone-card p {
  bottom: 17%;
  overflow: visible;
  text-overflow: clip;
  white-space: nowrap;
}

.modal-layer {
  position: fixed;
  z-index: 20;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  visibility: hidden;
  opacity: 0;
  background: rgba(1, 10, 16, 0.72);
  backdrop-filter: blur(10px);
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.modal-layer.is-open { visibility: visible; opacity: 1; }

.modal-card {
  position: relative;
  width: min(100%, 360px);
  border: 1px solid rgba(163, 213, 255, 0.38);
  border-radius: 22px;
  background: #f9faf8;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.48);
}

.qr-modal { padding: 12px; }
.qr-modal img { display: block; width: 100%; border-radius: 14px; }

.modal-close {
  position: absolute;
  z-index: 1;
  top: 8px;
  right: 8px;
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  color: #fff;
  background: rgba(9, 25, 39, 0.78);
  font: 400 1.4rem/1 Arial, sans-serif;
  cursor: pointer;
}

.contact-modal {
  padding: 38px 20px 20px;
  text-align: center;
}

.contact-modal p {
  margin: 0 0 16px;
  color: #15263a;
  font: 800 0.92rem Manrope, Arial, sans-serif;
}

.contact-modal a {
  display: block;
  margin-top: 10px;
  padding: 13px 16px;
  border-radius: 12px;
  color: #fff;
  background: linear-gradient(135deg, #1666bc, #25aed7);
  font: 700 0.78rem Manrope, Arial, sans-serif;
  text-decoration: none;
}

footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px 0 42px;
  border-top: 1px solid var(--line);
  color: #8294aa;
  font: 0.67rem/1.5 "DM Mono", monospace;
}

.status { display: flex; align-items: center; gap: 8px; }
.status i { width: 6px; height: 6px; border-radius: 50%; background: #58efc7; box-shadow: 0 0 10px #58efc7; }

.toast {
  position: fixed;
  z-index: 30;
  right: 24px;
  bottom: 24px;
  padding: 12px 16px;
  border: 1px solid rgba(122, 214, 255, 0.4);
  border-radius: 10px;
  color: #e9f8ff;
  opacity: 0;
  background: #102a42;
  font-size: 0.75rem;
  pointer-events: none;
  transform: translateY(10px);
  transition: 0.2s;
}

.toast.show { opacity: 1; transform: translateY(0); }

@media (max-width: 700px) {
  .contact-grid .feature-card h2,
  .contact-grid .contact-phone-card h2 { font-size: 0.72rem; }

  .contact-grid .feature-card p,
  .contact-grid .contact-phone-card p {
    font-size: 0.38rem;
    letter-spacing: -0.07em;
  }
}

@media (max-width: 640px) {
  body { background-attachment: scroll; }

  .topbar,
  .portal,
  footer { width: min(1120px, calc(100% - 32px)); }

  .topbar { height: 76px; }
  .portal { padding: 20px 0 52px; }
  .intro { margin-bottom: 22px; }
  .image-slots { gap: 10px; margin-bottom: 34px; }
  .image-slot { border-radius: 13px; }
  .image-caption { margin-top: 7px; font-size: 0.62rem; }

  .contact-grid {
    --contact-row: calc((100vw - 53px) / 4);
    gap: 7px;
  }

  .contact-card,
  .feature-card,
  .contact-card:nth-child(2) { padding: 10px 8px; }

  .contact-card h2 { margin: 25px 0 4px; font-size: 0.76rem; }
  .contact-card p { font-size: 0.52rem; }

  footer {
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
    padding: 26px 0 34px;
  }
}
