:root {
  --bg: #050816;
  --bg-soft: #070b1f;
  --card: rgba(255, 255, 255, 0.08);
  --border: rgba(255, 255, 255, 0.14);
  --text: #ffffff;
  --muted: #a8b3cf;
  --blue: #2563eb;
  --cyan: #22d3ee;
  --green: #22c55e;
  --danger: #ef4444;
  --shadow: 0 28px 80px rgba(0, 0, 0, 0.45);

  --card-surface: linear-gradient(180deg, rgba(10, 15, 35, 0.88) 0%, rgba(7, 11, 31, 0.9) 100%);
  --card-surface-soft: linear-gradient(180deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.06) 100%);
  --glow-blue: rgba(37, 99, 235, 0.22);
  --glow-cyan: rgba(34, 211, 238, 0.2);
  --ease-out: cubic-bezier(.2, .8, .2, 1);
}

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

html {
  width: 100%;
  min-height: 100%;
  background: var(--bg);
}

body.elamortech-card-page {
  margin: 0;
  min-height: 100svh;
  color: var(--text);
  font-family:
    -apple-system,
    BlinkMacSystemFont,
    "SF Pro Display",
    "SF Pro Text",
    "Segoe UI",
    Roboto,
    Arial,
    sans-serif;
  background:
    radial-gradient(circle at 14% 12%, rgba(34, 211, 238, 0.16), transparent 24%),
    radial-gradient(circle at 82% 10%, rgba(37, 99, 235, 0.18), transparent 26%),
    radial-gradient(circle at 78% 88%, rgba(34, 211, 238, 0.08), transparent 30%),
    linear-gradient(180deg, #03050d 0%, var(--bg-soft) 48%, var(--bg) 100%);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  position: relative;
}

body.elamortech-card-page::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 18% 18%, rgba(34, 211, 238, 0.14), transparent 18%),
    radial-gradient(circle at 86% 14%, rgba(37, 99, 235, 0.12), transparent 20%),
    radial-gradient(circle at 50% 88%, rgba(34, 197, 94, 0.06), transparent 24%);
  filter: blur(8px);
  opacity: 0.82;
  z-index: 0;
  animation: glowFloat 12s var(--ease-out) infinite;
}

body.elamortech-card-page::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 68px 68px;
  mask-image: radial-gradient(circle at center, #000 0%, rgba(0, 0, 0, 0.8) 50%, transparent 100%);
  opacity: 0.1;
  z-index: 0;
}

.card-shell {
  position: relative;
  z-index: 1;
  width: min(100%, calc(100% - 32px));
  max-width: 460px;
  margin: 0 auto;
  padding: 16px 0 22px;
  animation: cardEnter 700ms var(--ease-out) both;
}

.card-shell__glow {
  position: fixed;
  width: 52vw;
  max-width: 620px;
  aspect-ratio: 1;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(24px);
  opacity: 0.36;
  z-index: -1;
  animation: glowDrift 14s var(--ease-out) infinite;
}

.card-shell__glow--one {
  top: -12vw;
  left: -14vw;
  background: radial-gradient(circle, rgba(34, 211, 238, 0.22) 0%, rgba(34, 211, 238, 0.08) 32%, transparent 68%);
}

.card-shell__glow--two {
  right: -14vw;
  bottom: -18vw;
  animation-delay: -5s;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.2) 0%, rgba(37, 99, 235, 0.08) 34%, transparent 68%);
}

.card-shell__grid {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
}

.promo-bar {
  position: sticky;
  top: 12px;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(10, 16, 34, 0.94), rgba(7, 11, 25, 0.94));
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(12px);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.22);
  overflow: hidden;
  animation: riseIn 720ms 80ms var(--ease-out) both;
}

.promo-bar::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(34, 211, 238, 0.12), transparent 35%, rgba(37, 99, 235, 0.1));
  pointer-events: none;
}

.promo-bar__badge {
  position: relative;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 0;
  min-width: 0;
  color: var(--text);
}

.topbar-brand {
  display: inline-flex;
  align-items: center;
  gap: 0;
  min-width: 0;
  flex-shrink: 0;
}

.topbar-logo-wrap {
  width: auto;
  height: auto;
  min-width: 140px;
  padding: 6px 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
}

.topbar-logo-img {
  display: block;
  width: 140px;
  max-width: 140px;
  height: auto;
  max-height: 38px;
  object-fit: contain;
  object-position: center;
  flex: 0 0 auto;
}

.brand-logo-fallback {
  width: 100%;
  height: 100%;
  border-radius: inherit;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  color: #04111c;
  font-family: inherit;
  font-size: 13px;
  line-height: 1;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: linear-gradient(135deg, rgba(34, 211, 238, 0.96), rgba(37, 99, 235, 0.92));
  box-shadow: 0 8px 18px rgba(34, 211, 238, 0.18);
}

.promo-bar__text {
  position: relative;
  flex: 1 1 auto;
  min-width: 0;
  margin: 0;
  color: rgba(234, 241, 255, 0.94);
  font-family: inherit;
  font-weight: 400;
  font-size: 12px;
  line-height: 1.55;
  letter-spacing: 0;
  text-wrap: balance;
}

.lang-switch {
  position: relative;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.lang-switch__sep {
  color: rgba(168, 179, 207, 0.55);
  font-size: 12px;
}

.lang-switch__btn {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-family: inherit;
  font-size: 10px;
  line-height: 1;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
  padding: 7px 9px;
  border-radius: 999px;
  cursor: pointer;
  transition:
    transform 180ms var(--ease-out),
    background-color 180ms var(--ease-out),
    color 180ms var(--ease-out),
    box-shadow 180ms var(--ease-out);
}

.lang-switch__btn:hover {
  transform: translateY(-1px);
  color: var(--text);
}

.lang-switch__btn.is-active {
  color: #02111d;
  background: linear-gradient(135deg, rgba(34, 211, 238, 0.98), rgba(37, 99, 235, 0.92));
  box-shadow: 0 8px 18px rgba(34, 211, 238, 0.24);
}

.card-main {
  display: grid;
  place-items: center;
  padding: 14px 0 10px;
}

.glass-card {
  position: relative;
  width: 100%;
  padding: 28px;
  border-radius: 32px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.03)),
    linear-gradient(180deg, rgba(12, 18, 36, 0.96), rgba(7, 11, 24, 0.98));
  border: 1px solid rgba(168, 231, 255, 0.14);
  box-shadow:
    0 28px 80px rgba(0, 0, 0, 0.48),
    0 0 0 1px rgba(37, 99, 235, 0.08) inset;
  backdrop-filter: blur(12px);
  overflow: hidden;
  animation: riseIn 760ms 120ms var(--ease-out) both;
}

.glass-card::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(34, 211, 238, 0.82), rgba(255, 255, 255, 0.03) 28%, rgba(37, 99, 235, 0.8) 62%, rgba(34, 211, 238, 0.7));
  opacity: 0.72;
  pointer-events: none;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  animation: borderPulse 7s var(--ease-out) infinite;
}

.glass-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 0%, rgba(34, 211, 238, 0.09), transparent 22%),
    radial-gradient(circle at 82% 15%, rgba(37, 99, 235, 0.09), transparent 20%);
  opacity: 0.8;
  pointer-events: none;
}

.glass-card > * {
  position: relative;
  z-index: 1;
}

.glass-card__ring {
  position: absolute;
  inset: 10px;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  pointer-events: none;
}

.logo-shell {
  width: 100%;
  min-height: auto;
  margin: 0 auto 28px auto;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  box-shadow: none;
  overflow: visible;
}

.brand-logo-img {
  display: block;
  width: 250px;
  max-width: 84%;
  height: auto;
  max-height: 92px;
  object-fit: contain;
  object-position: center;
  opacity: 1;
  visibility: visible;
  filter:
    drop-shadow(0 0 18px rgba(34, 211, 238, 0.35));
}

.card-copy {
  text-align: center;
  animation: riseIn 720ms 170ms var(--ease-out) both;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  color: rgba(168, 179, 207, 0.82);
  font-family: inherit;
  font-size: 9px;
  line-height: 1;
  font-weight: 700;
  letter-spacing: 0.26em;
  text-transform: uppercase;
}

.eyebrow::before,
.eyebrow::after {
  content: "";
  width: 18px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(34, 211, 238, 0.9), transparent);
}

.card-title {
  margin: 0;
  color: var(--text);
  font-family: inherit;
  font-size: clamp(38px, 10vw, 52px);
  line-height: 0.98;
  font-weight: 800;
  letter-spacing: -0.04em;
  text-wrap: balance;
}

.card-subtitle {
  margin: 14px auto 0;
  max-width: 32ch;
  color: #edf3ff;
  font-weight: 400;
  font-size: 15px;
  line-height: 1.55;
  letter-spacing: 0;
  text-wrap: balance;
}

.card-description {
  margin: 12px auto 0;
  max-width: 34ch;
  color: var(--muted);
  font-weight: 400;
  font-size: 13.5px;
  line-height: 1.55;
  letter-spacing: 0;
}

.card-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 22px;
  animation: riseIn 720ms 220ms var(--ease-out) both;
}

.action-button {
  min-height: 54px;
  padding: 0 14px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 11px;
  text-decoration: none;
  font-family: inherit;
  font-size: 14px;
  line-height: 1;
  font-weight: 700;
  letter-spacing: 0;
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, 0.11);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.03)),
    rgba(9, 15, 31, 0.88);
  box-shadow:
    0 12px 24px rgba(0, 0, 0, 0.2),
    0 0 0 1px rgba(37, 99, 235, 0.04) inset;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transform: translateZ(0);
  transition:
    transform 180ms var(--ease-out),
    border-color 180ms var(--ease-out),
    box-shadow 180ms var(--ease-out),
    background-color 180ms var(--ease-out),
    color 180ms var(--ease-out);
}

.action-button::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 20%, rgba(255, 255, 255, 0.14), transparent 60%);
  transform: translateX(-130%);
  transition: transform 560ms var(--ease-out);
}

.action-button:hover {
  transform: translateY(-2px);
  border-color: rgba(34, 211, 238, 0.28);
  box-shadow:
    0 18px 34px rgba(0, 0, 0, 0.26),
    0 0 0 1px rgba(34, 211, 238, 0.08) inset;
}

.action-button:hover::before {
  transform: translateX(130%);
}

.action-button:active,
.lang-switch__btn:active,
.social-button:active {
  transform: translateY(0) scale(0.985);
}

.action-button__icon {
  width: 30px;
  height: 30px;
  display: inline-grid;
  place-items: center;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(34, 211, 238, 0.16), rgba(37, 99, 235, 0.14));
  color: #f4fbff;
  font-size: 14px;
  flex: 0 0 auto;
}

.action-button__icon i,
.social-button__icon i,
.promo-bar__badge i {
  line-height: 1;
}

.action-button--primary,
.action-button--secondary {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.025)),
    linear-gradient(180deg, rgba(10, 16, 34, 0.92), rgba(8, 12, 26, 0.92));
  border-color: rgba(255, 255, 255, 0.11);
  color: var(--text);
}

.action-button--accent {
  grid-column: 1 / -1;
  min-height: 56px;
  background: linear-gradient(135deg, rgba(34, 211, 238, 0.98), rgba(37, 99, 235, 0.94));
  color: #04111c;
  border-color: rgba(168, 231, 255, 0.62);
  box-shadow:
    0 16px 34px rgba(34, 211, 238, 0.18),
    0 10px 24px rgba(0, 0, 0, 0.18);
}

.action-button--accent .action-button__icon {
  background: rgba(255, 255, 255, 0.18);
  color: #04111c;
}

.social-section {
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  animation: riseIn 720ms 260ms var(--ease-out) both;
}

.social-section__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.social-section__label {
  color: var(--text);
  font-family: inherit;
  font-size: 10px;
  line-height: 1;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.social-section__hint {
  color: var(--muted);
  font-family: inherit;
  font-weight: 400;
  font-size: 11px;
}

.social-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.social-button {
  min-height: 54px;
  padding: 0 12px;
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 11px;
  text-decoration: none;
  color: #f4f7ff;
  font-family: inherit;
  font-size: 14px;
  line-height: 1;
  font-weight: 700;
  letter-spacing: 0;
  border: 1px solid rgba(255, 255, 255, 0.11);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.03)),
    rgba(9, 15, 31, 0.88);
  backdrop-filter: blur(10px);
  box-shadow:
    0 10px 22px rgba(0, 0, 0, 0.18),
    0 0 0 1px rgba(37, 99, 235, 0.04) inset;
  transition:
    transform 180ms var(--ease-out),
    border-color 180ms var(--ease-out),
    box-shadow 180ms var(--ease-out),
    background-color 180ms var(--ease-out);
}

.social-button:hover {
  transform: translateY(-2px);
  border-color: rgba(34, 211, 238, 0.28);
  background:
    linear-gradient(180deg, rgba(34, 211, 238, 0.08), rgba(37, 99, 235, 0.06)),
    rgba(12, 18, 36, 0.92);
  box-shadow:
    0 16px 34px rgba(0, 0, 0, 0.22),
    0 0 0 1px rgba(34, 211, 238, 0.08) inset;
}

.social-button__icon {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(34, 211, 238, 0.18), rgba(37, 99, 235, 0.16));
  color: #eef8ff;
  font-size: 14px;
  flex: 0 0 auto;
}

.social-button--website {
  border-color: rgba(34, 211, 238, 0.18);
}

.card-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 0 0;
  color: rgba(168, 179, 207, 0.68);
  font-family: inherit;
  font-weight: 400;
  font-size: 11px;
  letter-spacing: 0;
  animation: riseIn 720ms 320ms var(--ease-out) both;
}

.card-footer__domain {
  color: rgba(255, 255, 255, 0.92);
}

.action-button:focus-visible,
.lang-switch__btn:focus-visible,
.social-button:focus-visible {
  outline: none;
  box-shadow:
    0 0 0 3px rgba(34, 211, 238, 0.28),
    0 0 0 1px rgba(34, 211, 238, 0.42) inset;
}

@keyframes cardEnter {
  from {
    opacity: 0;
    transform: translateY(16px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

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

@keyframes glowFloat {
  0%,
  100% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  50% {
    transform: translate3d(0, -6px, 0) scale(1.02);
  }
}

@keyframes glowDrift {
  0%,
  100% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  50% {
    transform: translate3d(10px, -8px, 0) scale(1.03);
  }
}

@keyframes borderPulse {
  0%,
  100% {
    opacity: 0.5;
  }
  50% {
    opacity: 0.82;
  }
}

@keyframes haloDrift {
  0%,
  100% {
    transform: translateY(0) scale(1);
  }
  50% {
    transform: translateY(-4px) scale(1.04);
  }
}

@media (max-width: 640px) {
  .card-shell {
    width: min(100%, calc(100% - 24px));
    padding-top: 12px;
  }

  .promo-bar {
    padding: 10px 11px;
    border-radius: 18px;
    gap: 8px;
  }

  .promo-bar__badge {
    padding: 0;
  }

  .promo-bar__text {
    font-size: 11.5px;
    line-height: 1.55;
  }

  .glass-card {
    padding: 22px 16px 16px;
    border-radius: 28px;
  }

  .glass-card__ring {
    inset: 8px;
    border-radius: 22px;
  }

  .card-title {
    font-size: clamp(34px, 11vw, 46px);
  }

  .card-subtitle {
    max-width: 30ch;
    font-size: 14.5px;
  }

  .card-description {
    max-width: 30ch;
    font-size: 12.8px;
  }

  .action-button,
  .social-button {
    min-height: 50px;
    border-radius: 16px;
  }

  .social-grid {
    gap: 9px;
  }
}

@media (max-width: 520px) {
  .card-shell {
    width: min(100%, calc(100% - 18px));
  }

  .promo-bar {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .promo-bar__badge {
    max-width: 100%;
  }

  .promo-bar__text {
    order: 3;
    flex-basis: 100%;
  }

  .lang-switch {
    margin-left: auto;
  }

  .card-actions {
    grid-template-columns: 1fr;
    gap: 9px;
    margin-top: 20px;
  }

  .action-button--accent {
    grid-column: auto;
  }

  .social-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .card-footer {
    flex-wrap: wrap;
    row-gap: 4px;
    text-align: center;
  }
}

@media (max-width: 420px) {
  .topbar-logo-wrap {
    min-width: 124px;
    padding: 6px 10px;
  }

  .topbar-logo-img {
    width: 124px;
    max-width: 124px;
    max-height: 34px;
  }

  .brand-logo-img {
    width: 230px;
    max-width: 90%;
    max-height: 88px;
  }
}

@media (max-width: 360px) {
  .topbar-logo-wrap {
    min-width: 116px;
    padding: 5px 9px;
  }

  .topbar-logo-img {
    width: 116px;
    max-width: 116px;
    max-height: 32px;
  }

  .brand-logo-img {
    width: 220px;
    max-width: 92%;
    max-height: 84px;
  }
}

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