:root {
  --ink: #080b24;
  --muted: #42506f;
  --soft: #edf5ff;
  --white: #ffffff;
  --line: rgba(35, 82, 170, 0.14);
  --blue: #075dff;
  --deep-blue: #061b62;
  --cyan: #24d4ff;
  --violet: #7c16e8;
  --magenta: #ff1d86;
  --orange: #ff7a00;
  --shadow: 0 26px 80px rgba(15, 52, 130, 0.16);
  --glass: rgba(255, 255, 255, 0.68);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  overflow-x: hidden;
  color: var(--ink);
  font-family: "Inter", Arial, sans-serif;
  background:
    radial-gradient(circle at 72% 16%, rgba(36, 212, 255, 0.26), transparent 28%),
    radial-gradient(circle at 84% 46%, rgba(124, 22, 232, 0.16), transparent 26%),
    linear-gradient(120deg, #f9fcff 0%, #edf6ff 52%, #f9fbff 100%);
}

body.modal-lock {
  overflow: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 78% 22%, rgba(36, 212, 255, 0.14), transparent 30%),
    radial-gradient(circle at 18% 72%, rgba(124, 22, 232, 0.08), transparent 34%),
    linear-gradient(120deg, rgba(255, 255, 255, 0.82), rgba(237, 246, 255, 0.62));
  opacity: 1;
  z-index: -5;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(7, 93, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(7, 93, 255, 0.045) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(to bottom, black 0%, transparent 80%);
  z-index: -4;
}

#blockchain-bg {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -3;
}

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

.site-shell {
  width: min(1880px, calc(100% - 44px));
  min-height: 100vh;
  margin: 0 auto;
  padding: 28px 0 26px;
}

.topbar {
  position: fixed;
  top: 22px;
  left: 50%;
  z-index: 20;
  width: min(1780px, calc(100% - 44px));
  min-height: 54px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding: 7px 14px 7px 18px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 18px 70px rgba(18, 70, 156, 0.13);
  backdrop-filter: blur(22px);
  transform: translateX(-50%);
}

.brand,
.nav-links {
  display: inline-flex;
  align-items: center;
}

.brand {
  gap: 12px;
  font-family: "Space Grotesk", "Inter", Arial, sans-serif;
  font-weight: 900;
  letter-spacing: 0.12em;
  color: var(--deep-blue);
  font-size: 0.92rem;
}

.brand-logo {
  width: 38px;
  height: 38px;
  object-fit: contain;
  border-radius: 12px;
  filter: drop-shadow(0 10px 18px rgba(7, 46, 130, 0.16));
}

.nav-links {
  gap: 8px;
}

.nav-links a {
  padding: 10px 16px;
  border-radius: 999px;
  color: #273154;
  font-family: "Space Grotesk", "Inter", Arial, sans-serif;
  font-size: 0.96rem;
  font-weight: 900;
  transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease;
}

.nav-links a:hover {
  color: var(--blue);
  background: rgba(7, 93, 255, 0.08);
  transform: translateY(-2px);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.72);
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  border-radius: 999px;
  background: var(--deep-blue);
  transition: transform 0.25s ease, opacity 0.25s ease;
}

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

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

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

.hero {
  position: relative;
  min-height: 72vh;
  padding: 128px 24px 18px;
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(360px, 0.94fr);
  align-items: center;
  gap: clamp(24px, 4vw, 70px);
}

.hero-copy {
  position: relative;
  z-index: 2;
  max-width: 980px;
  animation: riseIn 0.9s ease both;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
  margin-bottom: clamp(18px, 2vw, 34px);
  padding: 12px 22px;
  border: 1px solid rgba(7, 93, 255, 0.16);
  border-radius: 999px;
  color: #084bd8;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 12px 38px rgba(7, 93, 255, 0.08);
  font-size: clamp(0.74rem, 1vw, 0.92rem);
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.badge span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 0 0 rgba(36, 212, 255, 0.7);
  animation: pulse 1.8s infinite;
}

h1 {
  max-width: 990px;
  font-family: "Space Grotesk", "Inter", Arial, sans-serif;
  font-size: clamp(2.05rem, 4.05vw, 4.35rem);
  line-height: 1.1;
  letter-spacing: 0;
  font-weight: 700;
}

h1 span {
  display: inline;
  background: linear-gradient(100deg, var(--blue), #2438ff 38%, var(--violet) 76%, var(--magenta));
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
}

.lead,
.support {
  max-width: 760px;
  color: #17213f;
  font-size: clamp(1rem, 1.45vw, 1.35rem);
  line-height: 1.62;
}

.lead {
  margin-top: 28px;
  font-weight: 500;
}

.support {
  position: relative;
  margin-top: 32px;
  padding-top: 30px;
}

.support::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 106px;
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--blue), var(--violet), var(--orange));
}

.support strong {
  color: var(--blue);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.btn {
  position: relative;
  display: inline-flex;
  min-height: 54px;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 0 24px;
  border-radius: 999px;
  font-size: 1.03rem;
  font-weight: 900;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.btn::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.5), transparent);
  transform: translateX(-120%);
  transition: transform 0.55s ease;
}

.btn:hover {
  transform: translateY(-4px);
}

.btn:hover::after {
  transform: translateX(120%);
}

.btn-primary {
  color: var(--white);
  background: linear-gradient(135deg, var(--blue), var(--violet));
  box-shadow: 0 18px 44px rgba(7, 93, 255, 0.26);
}

.btn-secondary {
  color: var(--deep-blue);
  border: 1px solid rgba(7, 93, 255, 0.18);
  background: rgba(255, 255, 255, 0.78);
}

.btn-telemed {
  color: #7e1730;
  border-color: rgba(255, 70, 112, 0.42);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(255, 236, 242, 0.74));
  box-shadow:
    0 14px 34px rgba(255, 70, 112, 0.13),
    inset 0 0 18px rgba(255, 70, 112, 0.08);
}

.btn-telemed:hover {
  box-shadow:
    0 18px 42px rgba(255, 70, 112, 0.2),
    0 0 0 4px rgba(255, 70, 112, 0.08),
    inset 0 0 22px rgba(255, 255, 255, 0.82);
}

.hero-brand-inset {
  position: absolute;
  left: 45.5%;
  bottom: clamp(18px, 5vw, 58px);
  z-index: 4;
  width: clamp(270px, 24vw, 430px);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  padding: 16px;
  pointer-events: none;
  overflow: hidden;
  animation: logoOrbitFloat 5.2s ease-in-out infinite;
}

.hero-brand-inset::before {
  content: "";
  position: absolute;
  inset: 12%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(124, 22, 232, 0.14), transparent 68%);
  filter: blur(6px);
}

.hero-brand-inset img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 20px 34px rgba(8, 11, 36, 0.18));
  transform-origin: 50% 48%;
  will-change: transform, filter;
  animation: logoSoftPulse 4.4s ease-in-out infinite;
}

.visual-stage {
  position: relative;
  min-height: clamp(430px, 48vw, 720px);
  display: grid;
  place-items: center;
  perspective: 1200px;
}

.visual-halo {
  position: absolute;
  inset: 7% -4% 3% 3%;
  border-radius: 38px;
  background:
    radial-gradient(circle at 58% 34%, rgba(36, 212, 255, 0.22), transparent 28%),
    radial-gradient(circle at 72% 60%, rgba(124, 22, 232, 0.14), transparent 34%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.18), rgba(7, 93, 255, 0.08));
  filter: blur(1px);
}

.ctyf-ia-frame {
  position: relative;
  z-index: 1;
  width: min(760px, 42vw);
  max-width: 100%;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  transform-style: preserve-3d;
  animation: visualFloat 6.4s ease-in-out infinite;
}

.ctyf-ia-frame::before {
  content: "";
  position: absolute;
  inset: 9% 5% 8% 7%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(36, 212, 255, 0.16), transparent 64%);
  box-shadow: 0 34px 110px rgba(7, 93, 255, 0.16);
}

.ctyf-ia-image {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 34px 54px rgba(7, 46, 130, 0.24));
  transform-origin: 54% 36%;
  animation: imageMicroLook 8.5s ease-in-out infinite;
}

.services {
  position: relative;
  z-index: 4;
  margin-top: 4px;
  padding: 28px clamp(16px, 3vw, 30px) 22px;
  border: 1px solid rgba(255, 255, 255, 0.82);
  border-radius: 32px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: var(--shadow);
  backdrop-filter: blur(24px);
}

.section-heading {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  justify-items: center;
  text-align: center;
  margin-bottom: 20px;
}

.kicker {
  color: var(--blue);
  font-size: 0.84rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.section-heading h2 {
  max-width: 1040px;
  font-family: "Space Grotesk", "Inter", Arial, sans-serif;
  font-size: clamp(1.35rem, 1.95vw, 2.25rem);
  line-height: 1.12;
  letter-spacing: 0;
  font-weight: 700;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(9, minmax(128px, 1fr));
}

.service-card {
  position: relative;
  min-height: 190px;
  padding: 18px 14px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  text-align: center;
  border-right: 1px solid var(--line);
  transition: transform 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
}

.service-card[data-modal-open] {
  cursor: pointer;
}

.service-card:last-child {
  border-right: 0;
}

.service-card:hover {
  z-index: 2;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.84);
  box-shadow: 0 20px 50px rgba(7, 93, 255, 0.13);
  transform: translateY(-8px);
}

.service-icon {
  width: 52px;
  height: 52px;
  margin-bottom: 13px;
  object-fit: contain;
  filter: drop-shadow(0 12px 20px rgba(7, 93, 255, 0.15));
  transition: transform 0.25s ease, filter 0.25s ease;
}

.service-card:hover .service-icon {
  transform: translateY(-3px) scale(1.08);
  filter: drop-shadow(0 16px 26px rgba(124, 22, 232, 0.22));
}

.service-card h3 {
  max-width: 170px;
  min-height: 43px;
  color: #0a102c;
  font-size: clamp(0.86rem, 0.9vw, 1.02rem);
  line-height: 1.18;
}

.service-card p {
  margin-top: 10px;
  color: #344160;
  font-size: clamp(0.74rem, 0.76vw, 0.86rem);
  line-height: 1.5;
}

.contact-strip {
  min-height: 58px;
  margin-top: 26px;
  padding: 7px clamp(16px, 2.6vw, 34px);
  display: grid;
  grid-template-columns: auto 1.25fr 1.25fr 1fr 1.35fr;
  align-items: center;
  gap: 18px;
  border-radius: 24px;
  color: var(--white);
  background: linear-gradient(135deg, #061039, #061b62 55%, #08236f);
  box-shadow: 0 18px 48px rgba(2, 16, 64, 0.24);
  font-family: "Space Grotesk", "Inter", Arial, sans-serif;
}

.footer-brand {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 0 18px rgba(255, 255, 255, 0.08);
}

.footer-brand img {
  width: 39px;
  height: 39px;
  object-fit: contain;
  filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.28));
}

.contact-item {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding-right: 14px;
  border-right: 1px solid rgba(255, 255, 255, 0.2);
}

.contact-item strong,
.contact-strip p {
  font-size: clamp(0.76rem, 0.92vw, 1.05rem);
  line-height: 1.25;
  font-weight: 700;
}

.contact-strip p {
  text-align: center;
}

.contact-icon {
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  object-fit: contain;
  filter: drop-shadow(0 12px 20px rgba(0, 0, 0, 0.24));
}

.support-badge {
  display: grid;
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 3px solid rgba(180, 155, 255, 0.82);
  border-radius: 50%;
  color: #d8d0ff;
  font-weight: 900;
  font-size: 0.76rem;
}

.whatsapp-widget {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 60;
}

.whatsapp-widget::after {
  content: "";
  position: fixed;
  right: 39px;
  bottom: 39px;
  z-index: 61;
  width: 28px;
  height: 28px;
  pointer-events: none;
  background: #ffffff;
  mask:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Cpath d='M16.04 3.2A12.72 12.72 0 0 0 5.2 22.6L3.4 29l6.58-1.72A12.7 12.7 0 1 0 16.04 3.2Zm0 2.28a10.42 10.42 0 0 1 8.82 15.96 10.4 10.4 0 0 1-13.96 3.78l-.48-.28-3.9 1.02 1.04-3.78-.32-.5a10.42 10.42 0 0 1 8.8-16.2Zm-4.2 5.42c-.22 0-.58.08-.88.42-.3.34-1.16 1.14-1.16 2.78 0 1.64 1.2 3.22 1.36 3.44.16.22 2.34 3.74 5.82 5.08 2.9 1.14 3.48.92 4.1.86.64-.06 2.04-.84 2.32-1.64.3-.8.3-1.5.2-1.64-.08-.14-.32-.22-.66-.4-.34-.16-2.04-1-2.36-1.12-.32-.12-.56-.16-.8.18-.24.34-.92 1.12-1.12 1.34-.2.22-.42.24-.76.08-.34-.18-1.44-.54-2.74-1.72-1.02-.9-1.7-2.02-1.9-2.36-.2-.34-.02-.52.16-.7.16-.16.34-.42.52-.62.18-.2.24-.34.36-.56.12-.22.06-.42-.02-.58-.08-.16-.8-1.94-1.1-2.66-.28-.7-.58-.6-.8-.62h-.56Z'/%3E%3C/svg%3E")
    center / contain no-repeat;
}

.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 28px;
  background:
    radial-gradient(circle at 74% 28%, rgba(36, 212, 255, 0.2), transparent 32%),
    rgba(4, 10, 38, 0.58);
  backdrop-filter: blur(14px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.26s ease;
}

.modal-overlay.is-open {
  opacity: 1;
  pointer-events: auto;
}

.modal-dialog {
  position: relative;
  width: min(1120px, 100%);
  max-height: min(86vh, 860px);
  overflow: auto;
  padding: clamp(22px, 3vw, 38px);
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 30px;
  color: #101834;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.94), rgba(239, 247, 255, 0.86)),
    radial-gradient(circle at 90% 14%, rgba(124, 22, 232, 0.15), transparent 28%);
  box-shadow: 0 40px 120px rgba(1, 12, 52, 0.42);
  transform: translateY(18px) scale(0.98);
  transition: transform 0.28s ease;
}

.modal-overlay.is-open .modal-dialog {
  transform: translateY(0) scale(1);
}

.modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(7, 93, 255, 0.16);
  border-radius: 50%;
  color: var(--deep-blue);
  background: rgba(255, 255, 255, 0.74);
  box-shadow: 0 10px 28px rgba(7, 93, 255, 0.12);
  cursor: pointer;
  font-family: "Space Grotesk", "Inter", Arial, sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1;
  transition: transform 0.22s ease, color 0.22s ease;
}

.modal-close:hover {
  color: var(--magenta);
  transform: rotate(90deg) scale(1.04);
}

.modal-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 22px;
  color: var(--deep-blue);
  font-family: "Space Grotesk", "Inter", Arial, sans-serif;
  font-size: 0.92rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.modal-brand img {
  width: 44px;
  height: 44px;
  object-fit: contain;
  filter: drop-shadow(0 10px 18px rgba(7, 46, 130, 0.18));
}

.modal-content {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(310px, 0.72fr);
  gap: clamp(24px, 4vw, 52px);
  align-items: center;
}

.modal-copy {
  max-width: 700px;
}

.modal-kicker {
  width: fit-content;
  margin-bottom: 14px;
  padding: 8px 13px;
  border: 1px solid rgba(7, 93, 255, 0.14);
  border-radius: 999px;
  color: #084bd8;
  background: rgba(255, 255, 255, 0.74);
  font-family: "Space Grotesk", "Inter", Arial, sans-serif;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.modal-copy h2 {
  max-width: 620px;
  font-family: "Space Grotesk", "Inter", Arial, sans-serif;
  font-size: clamp(1.55rem, 2.35vw, 2.55rem);
  line-height: 1.1;
  color: var(--ink);
}

.modal-copy h3 {
  margin-top: 14px;
  color: var(--blue);
  font-family: "Space Grotesk", "Inter", Arial, sans-serif;
  font-size: clamp(1.05rem, 1.5vw, 1.35rem);
}

.modal-copy h4 {
  margin-top: 20px;
  color: #101834;
  font-family: "Space Grotesk", "Inter", Arial, sans-serif;
  font-size: 1rem;
}

.modal-copy p,
.modal-list {
  margin-top: 14px;
  color: #24304f;
  font-size: 0.98rem;
  line-height: 1.65;
}

.modal-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px 18px;
  padding: 0;
  list-style: none;
}

.modal-list li {
  position: relative;
  padding-left: 18px;
}

.modal-list li::before {
  content: "";
  position: absolute;
  top: 0.72em;
  left: 0;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue), var(--violet));
  box-shadow: 0 0 14px rgba(36, 212, 255, 0.6);
}

.modal-highlight {
  padding-left: 16px;
  border-left: 4px solid var(--blue);
}

.modal-cta {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  margin-top: 22px;
  padding: 0 22px;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, var(--blue), var(--violet), var(--magenta));
  box-shadow: 0 18px 44px rgba(7, 93, 255, 0.24);
  font-family: "Space Grotesk", "Inter", Arial, sans-serif;
  font-weight: 900;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.modal-cta:hover {
  transform: translateY(-3px);
  box-shadow: 0 24px 56px rgba(124, 22, 232, 0.28);
}

.modal-visual {
  min-height: 600px;
  display: grid;
  place-items: center;
}

.heygen-card {
  position: relative;
  width: min(420px, 100%);
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 28px;
  background:
    radial-gradient(circle at 78% 12%, rgba(36, 212, 255, 0.18), transparent 28%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.8), rgba(230, 241, 255, 0.64));
  box-shadow: 0 28px 78px rgba(7, 93, 255, 0.16);
  overflow: hidden;
}

.heygen-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(7, 93, 255, 0.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(124, 22, 232, 0.12) 1px, transparent 1px);
  background-size: 32px 32px;
  opacity: 0.45;
  animation: modalGridMove 8s linear infinite;
}

.heygen-frame {
  position: relative;
  z-index: 3;
  aspect-ratio: 9 / 16;
  overflow: hidden;
  border: 1px solid rgba(7, 93, 255, 0.14);
  border-radius: 22px;
  background: #dfeeff;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.38),
    0 22px 54px rgba(7, 93, 255, 0.18);
}

.heygen-frame iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

@keyframes modalGridMove {
  to {
    background-position: 34px 34px;
  }
}

@keyframes riseIn {
  from {
    opacity: 0;
    transform: translateY(18px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulse {
  70% {
    box-shadow: 0 0 0 13px rgba(36, 212, 255, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(36, 212, 255, 0);
  }
}

@keyframes visualFloat {
  0%, 100% {
    transform: translate3d(0, 0, 0) rotateY(-4deg);
  }

  50% {
    transform: translate3d(0, -12px, 0) rotateY(1deg);
  }
}

@keyframes imageMicroLook {
  0%, 100% {
    transform: translateX(0) rotate(0deg);
  }

  38%, 58% {
    transform: translateX(-8px) rotate(-0.7deg);
  }

  50% {
    transform: translateX(-10px) rotate(-1deg);
  }
}

@keyframes logoOrbitFloat {
  0%, 100% {
    transform: translate3d(0, 0, 0) rotate(0deg);
  }

  25% {
    transform: translate3d(18px, -22px, 0) rotate(1.4deg);
  }

  50% {
    transform: translate3d(-18px, -10px, 0) rotate(-1deg);
  }

  75% {
    transform: translate3d(12px, 18px, 0) rotate(0.9deg);
  }
}

@keyframes logoSoftPulse {
  0%, 100% {
    filter: drop-shadow(0 20px 34px rgba(8, 11, 36, 0.18));
    transform: scale(1) rotate(0deg);
  }

  50% {
    filter: drop-shadow(0 22px 38px rgba(124, 22, 232, 0.2));
    transform: scale(1.045) rotate(1.2deg);
  }
}

@media (max-width: 1320px) {
  .site-shell,
  .topbar {
    width: min(1180px, calc(100% - 32px));
  }

  .hero {
    grid-template-columns: minmax(0, 1fr) minmax(320px, 0.8fr);
  }

  .service-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
  }

  .service-card {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .service-card:nth-last-child(-n + 3) {
    border-bottom: 0;
  }
}

@media (max-width: 960px) {
  .topbar {
    top: 14px;
  }

  .menu-toggle {
    display: block;
  }

  .nav-links {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    display: grid;
    padding: 12px;
    border: 1px solid rgba(255, 255, 255, 0.78);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 18px 50px rgba(18, 70, 156, 0.12);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-10px);
    transition: opacity 0.25s ease, transform 0.25s ease;
  }

  .nav-links.open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .nav-links a {
    padding: 14px;
  }

  .hero {
    min-height: auto;
    padding: 112px 4px 14px;
    grid-template-columns: 1fr;
  }

  .visual-stage {
    min-height: 420px;
    order: -1;
  }

  .hero-brand-inset {
    display: none;
  }

  .ctyf-ia-frame {
    width: min(560px, 82vw);
  }

  .section-heading {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .contact-strip {
    grid-template-columns: 1fr 1fr;
  }

  .modal-content {
    grid-template-columns: 1fr;
  }

  .modal-visual {
    min-height: 300px;
    order: -1;
  }

  .modal-list {
    grid-template-columns: 1fr;
  }

  .footer-brand {
    grid-column: 1 / -1;
    justify-self: center;
  }

  .contact-item:nth-child(3) {
    border-right: 0;
  }
}

@media (max-width: 660px) {
  .site-shell,
  .topbar {
    width: min(100% - 22px, 560px);
  }

  .site-shell {
    padding-bottom: 14px;
  }

  .hero {
    padding-top: 102px;
  }

  .badge {
    padding: 10px 14px;
  }

  .hero-actions {
    flex-direction: column;
  }

  .modal-overlay {
    padding: 14px;
  }

  .modal-dialog {
    max-height: 90vh;
    border-radius: 24px;
  }

  .modal-close {
    top: 12px;
    right: 12px;
  }

  .btn {
    width: 100%;
  }

  .visual-stage {
    min-height: 350px;
  }

  .service-grid,
  .contact-strip {
    grid-template-columns: 1fr;
  }

  .service-card,
  .service-card:nth-last-child(-n + 3) {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .service-card:last-child {
    border-bottom: 0;
  }

  .contact-item {
    justify-content: flex-start;
    border-right: 0;
    padding-right: 0;
  }

  .footer-brand {
    justify-self: start;
  }

  .contact-strip p {
    text-align: left;
  }
}

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

  .hero-brand-inset {
    animation: logoOrbitFloat 5.2s ease-in-out infinite !important;
  }

  .hero-brand-inset img {
    animation: logoSoftPulse 4.4s ease-in-out infinite !important;
  }
}
