:root {
  --ink: #07111f;
  --muted: #617187;
  --blue: #0878d9;
  --blue-deep: #044a86;
  --cyan: #19b8ff;
  --green: #18b987;
  --line: rgba(7, 17, 31, 0.1);
  --soft: rgba(8, 120, 217, 0.1);
  --surface: rgba(255, 255, 255, 0.78);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 20% 20%, rgba(25, 184, 255, 0.16), transparent 28%),
    radial-gradient(circle at 82% 18%, rgba(24, 185, 135, 0.12), transparent 26%),
    linear-gradient(180deg, #f7fbff 0%, #ffffff 46%, #f6faff 100%);
}

a {
  color: inherit;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 20;
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  padding: 22px 32px;
  pointer-events: none;
}

.brand,
.lang-toggle {
  pointer-events: auto;
}

.brand {
  color: #07111f;
  font-size: 22px;
  font-weight: 900;
  letter-spacing: 0;
  text-decoration: none;
}

.lang-toggle {
  min-height: 40px;
  padding: 0 16px;
  border: 1px solid rgba(7, 17, 31, 0.1);
  border-radius: 8px;
  color: #07111f;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 14px 34px rgba(7, 17, 31, 0.08);
  backdrop-filter: blur(16px);
  cursor: pointer;
}

.site-shell {
  min-height: 100vh;
  overflow: hidden;
}

.hero {
  position: relative;
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 72px 24px 64px;
  isolation: isolate;
}

.ambient {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
}

.ambient::before {
  position: absolute;
  inset: 0;
  content: "";
  background-image:
    linear-gradient(rgba(7, 17, 31, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(7, 17, 31, 0.04) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(circle at center, #000 0%, transparent 72%);
}

.ring {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(72vw, 720px);
  aspect-ratio: 1;
  border: 1px solid rgba(4, 74, 134, 0.18);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  animation: drift 12s ease-in-out infinite;
}

.ring-two {
  width: min(55vw, 540px);
  animation-duration: 9s;
  animation-direction: reverse;
}

.ring-three {
  width: min(34vw, 340px);
  border-color: rgba(24, 185, 135, 0.22);
  animation-duration: 7s;
}

.pulse-core {
  position: absolute;
  top: 50%;
  left: 50%;
  display: grid;
  width: 104px;
  height: 104px;
  place-items: center;
  border-radius: 50%;
  color: var(--blue-deep);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0;
  background: rgba(8, 120, 217, 0.16);
  box-shadow: 0 0 0 16px rgba(8, 120, 217, 0.06);
  transform: translate(-50%, -50%);
  animation: breathe 3.6s ease-in-out infinite;
}

.scan-line {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 22px;
  color: rgba(4, 74, 134, 0.22);
  font-size: 12px;
  letter-spacing: 0;
  line-height: 2.1;
  text-align: center;
  writing-mode: vertical-rl;
  animation: stream 9s linear infinite;
}

.scan-left {
  left: 12%;
}

.scan-right {
  right: 13%;
  animation-duration: 11s;
}

.signal {
  position: absolute;
  padding: 10px 16px;
  border: 1px solid rgba(8, 120, 217, 0.1);
  border-radius: 8px;
  color: var(--blue-deep);
  font-size: 13px;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 18px 50px rgba(7, 17, 31, 0.09);
  backdrop-filter: blur(16px);
  animation: float 5s ease-in-out infinite;
}

.signal-a {
  top: 14%;
  left: 50%;
  transform: translateX(-50%);
}

.signal-b {
  right: 18%;
  top: 38%;
  animation-delay: -1.5s;
}

.signal-c {
  bottom: 24%;
  left: 18%;
  animation-delay: -2.4s;
}

.hero-content {
  width: min(1060px, 100%);
  text-align: center;
  transform: translateY(-52px);
}

.eyebrow {
  margin: 0 0 18px;
  color: #06111f;
  font-size: clamp(44px, 6.8vw, 78px);
  font-weight: 900;
  letter-spacing: 0;
  line-height: 0.9;
}

h1 {
  display: flex;
  min-height: 1.18em;
  align-items: center;
  justify-content: center;
  gap: 0.18em;
  margin: 0;
  color: var(--blue);
  font-size: clamp(34px, 5.6vw, 68px);
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1.08;
}

.divider,
#target-word {
  color: var(--blue-deep);
}

#lead-word,
#target-word {
  display: inline-block;
  transition:
    opacity 240ms ease,
    transform 240ms ease;
}

.word-exit {
  opacity: 0;
  transform: translateY(12px);
}

.subtitle {
  width: min(720px, 100%);
  margin: 26px auto 0;
  color: var(--muted);
  font-size: clamp(16px, 2vw, 22px);
  line-height: 1.6;
}

.download-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-width: 176px;
  min-height: 58px;
  margin-top: 100px;
  border-radius: 8px;
  color: #fff;
  font-size: 17px;
  font-weight: 800;
  text-decoration: none;
  background: linear-gradient(135deg, var(--blue-deep), var(--blue));
  box-shadow: 0 18px 38px rgba(8, 120, 217, 0.28);
  transition:
    transform 180ms ease,
    box-shadow 180ms ease;
}

.download-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 22px 48px rgba(8, 120, 217, 0.34);
}

.download-button svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.2;
}

.intro-section {
  display: grid;
  width: min(1120px, calc(100% - 48px));
  min-height: 620px;
  grid-template-columns: minmax(460px, 1.08fr) minmax(390px, 0.92fr);
  gap: 56px;
  align-items: stretch;
  margin: 0 auto 96px;
  padding: 64px 0;
}

.intro-visual {
  position: relative;
  min-height: 500px;
}

.intro-copy {
  display: flex;
  min-height: 500px;
  flex-direction: column;
  justify-content: center;
}

.phone-frame {
  position: absolute;
  top: 22px;
  left: 50%;
  width: 212px;
  height: 398px;
  border: 8px solid #142331;
  border-radius: 30px;
  background: #142331;
  box-shadow: 0 24px 55px rgba(7, 17, 31, 0.16);
  transform: translateX(-50%);
}

.phone-speaker {
  position: absolute;
  top: 9px;
  left: 50%;
  width: 48px;
  height: 5px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  transform: translateX(-50%);
  z-index: 2;
}

.phone-screen {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border-radius: 22px;
  background:
    radial-gradient(circle at 70% 16%, rgba(255, 255, 255, 0.7), transparent 18%),
    linear-gradient(145deg, #9bffd5, #28eba2 58%, #0bb777);
}

.mesh {
  position: absolute;
  width: 220px;
  height: 120px;
  border: 1px solid rgba(7, 17, 31, 0.18);
  border-radius: 50%;
  filter: blur(0.2px);
  transform: rotate(-14deg);
}

.mesh-one {
  top: 58px;
  left: -34px;
}

.mesh-two {
  right: -48px;
  bottom: 62px;
  transform: rotate(18deg);
}

.privacy-cloud {
  position: absolute;
  top: 98px;
  left: 50%;
  width: 460px;
  height: 310px;
  border-radius: 44% 56% 51% 49%;
  background:
    radial-gradient(circle, rgba(7, 17, 31, 0.12) 1px, transparent 1.5px),
    radial-gradient(circle at center, rgba(7, 17, 31, 0.06), transparent 68%);
  background-size: 7px 7px, 100% 100%;
  opacity: 0.65;
  transform: translateX(-50%);
}

.secure-card {
  position: absolute;
  top: 146px;
  left: 50%;
  display: grid;
  width: 318px;
  height: 194px;
  place-items: center;
  border: 1px solid rgba(7, 17, 31, 0.08);
  border-radius: 8px;
  background: linear-gradient(145deg, #a8ffd7, #42edaa);
  box-shadow: 0 26px 60px rgba(4, 134, 92, 0.18);
  transform: translateX(-50%);
}

.secure-mark {
  width: 58px;
  height: 58px;
  border: 8px solid rgba(4, 116, 82, 0.2);
  border-radius: 18px;
  filter: blur(4px);
  transform: rotate(45deg);
}

.intro-copy h2 {
  margin: 0;
  color: #212b36;
  font-size: clamp(28px, 3vw, 40px);
  line-height: 1.14;
  letter-spacing: 0;
}

.intro-copy .cn {
  margin: 12px 0 30px;
  color: #344254;
  font-size: 18px;
  line-height: 1.55;
}

.intro-tabs {
  min-height: 330px;
  margin-top: 60px;
}

.copy-block {
  position: relative;
  padding-left: 18px;
  opacity: 0.58;
  transition: opacity 260ms ease;
}

.copy-block + .copy-block {
  margin-top: 26px;
}

.copy-block::before {
  position: absolute;
  top: 4px;
  bottom: 4px;
  left: 0;
  width: 2px;
  content: "";
  background: linear-gradient(180deg, var(--green), var(--blue));
  opacity: 0.35;
  transition: opacity 260ms ease;
}

.copy-block.is-active {
  opacity: 1;
}

.copy-block.is-active::before {
  opacity: 1;
}

.copy-trigger {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  color: #26313d;
  font: inherit;
  text-align: left;
  background: transparent;
  cursor: pointer;
}

.copy-trigger span {
  display: block;
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.36;
  letter-spacing: 0;
}

.copy-body {
  display: grid;
  grid-template-rows: 0fr;
  opacity: 0;
  overflow: hidden;
  transition:
    grid-template-rows 320ms ease,
    opacity 240ms ease;
}

.copy-body-inner {
  min-height: 0;
  overflow: hidden;
}

.copy-block.is-active .copy-body {
  grid-template-rows: 1fr;
  opacity: 1;
}

.copy-block p {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.62;
}

.stats-section {
  width: min(1120px, calc(100% - 48px));
  margin: 0 auto 104px;
  text-align: center;
}

.stats-section h2 {
  margin: 0 0 34px;
  color: #07111f;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.12;
  letter-spacing: 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.stat-card {
  min-height: 184px;
  padding: 30px 20px 24px;
  border: 1px solid rgba(7, 17, 31, 0.08);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 18px 52px rgba(7, 17, 31, 0.08);
  backdrop-filter: blur(18px);
}

.stat-icon {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  margin: 0 auto 18px;
  border-radius: 12px;
  color: #fff;
  box-shadow: 0 12px 26px rgba(7, 17, 31, 0.14);
}

.stat-icon svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.icon-users {
  background: linear-gradient(135deg, #1877ff, #00b8d9);
}

.icon-globe {
  background: linear-gradient(135deg, #16c784, #00a86b);
}

.icon-secured {
  background: linear-gradient(135deg, #7a5cff, #b829ff);
}

.icon-processed {
  background: linear-gradient(135deg, #ff8a00, #ff5a00);
}

.stat-card strong {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 0;
  color: #07111f;
  font-size: clamp(34px, 4vw, 48px);
  line-height: 1;
  letter-spacing: 0;
}

.stat-card > span {
  display: block;
  margin-top: 12px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.35;
}

.demo-section {
  width: min(1120px, calc(100% - 48px));
  margin: 0 auto 112px;
  text-align: center;
}

.demo-section h2 {
  margin: 0 0 38px;
  color: #07111f;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.12;
  letter-spacing: 0;
}

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

.demo-card {
  display: grid;
  grid-template-rows: 540px auto auto;
  align-items: start;
  padding: 34px;
  border: 1px solid rgba(7, 17, 31, 0.08);
  border-radius: 18px;
  background:
    radial-gradient(circle at 50% 0%, rgba(8, 120, 217, 0.08), transparent 38%),
    rgba(255, 255, 255, 0.78);
  box-shadow: 0 24px 70px rgba(7, 17, 31, 0.08);
  backdrop-filter: blur(18px);
}

.demo-phone {
  width: min(100%, 340px);
  height: 500px;
  margin: 0 auto 26px;
  padding: 18px;
  border: 8px solid #101d2b;
  border-radius: 34px;
  background: linear-gradient(180deg, #f8fbff, #eef7ff);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.75);
  overflow: hidden;
  text-align: left;
}

.demo-topbar {
  display: grid;
  grid-template-columns: 28px 1fr 28px;
  align-items: center;
  margin-bottom: 20px;
  color: #1d2b3b;
  font-size: 14px;
}

.demo-topbar span {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgba(8, 120, 217, 0.12);
}

.demo-topbar strong {
  text-align: center;
}

.chat-thread {
  display: grid;
  gap: 14px;
}

.chat-bubble {
  max-width: 82%;
  padding: 12px 14px;
  border-radius: 16px;
  color: #344254;
  font-size: 14px;
  line-height: 1.42;
  background: #fff;
  box-shadow: 0 10px 24px rgba(7, 17, 31, 0.06);
}

[data-chat-step] {
  opacity: 0;
  transform: translateY(12px) scale(0.98);
  transition:
    opacity 260ms ease,
    transform 260ms ease;
}

[data-chat-step].is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.chat-bubble.incoming {
  border-bottom-left-radius: 6px;
}

.chat-bubble.outgoing {
  justify-self: end;
  border-bottom-right-radius: 6px;
  color: #fff;
  background: linear-gradient(135deg, var(--blue), var(--blue-deep));
}

.chat-bubble.system {
  max-width: 100%;
  border: 1px solid rgba(24, 185, 135, 0.18);
  color: #14775a;
  background: rgba(235, 255, 247, 0.9);
}

.transfer-card {
  margin-top: 8px;
  padding: 18px;
  border-radius: 18px;
  color: #fff;
  background: linear-gradient(145deg, #0f7ee8, #16c7ac);
  box-shadow: 0 18px 38px rgba(8, 120, 217, 0.22);
}

.typing-indicator {
  display: inline-flex;
  width: fit-content;
  gap: 5px;
  padding: 12px 14px;
  border-radius: 16px;
  border-bottom-left-radius: 6px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(7, 17, 31, 0.06);
  opacity: 0;
  transform: translateY(8px);
  transition:
    opacity 180ms ease,
    transform 180ms ease;
}

.typing-indicator.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.typing-indicator span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(8, 120, 217, 0.45);
  animation: typingDot 900ms ease-in-out infinite;
}

.typing-indicator span:nth-child(2) {
  animation-delay: 120ms;
}

.typing-indicator span:nth-child(3) {
  animation-delay: 240ms;
}

.transfer-card.safe {
  background: linear-gradient(145deg, #11b979, #0f7ee8);
}

.transfer-card span,
.transfer-card small {
  display: block;
  color: rgba(255, 255, 255, 0.82);
  font-size: 13px;
}

.transfer-card strong {
  display: block;
  margin: 8px 0;
  color: #fff;
  font-size: 34px;
  line-height: 1;
  letter-spacing: 0;
}

.demo-card h3 {
  margin: 0 0 10px;
  color: #07111f;
  font-size: 24px;
  line-height: 1.25;
  letter-spacing: 0;
}

.demo-card p {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.6;
}

@keyframes drift {
  0%,
  100% {
    transform: translate(-50%, -50%) scale(1);
  }
  50% {
    transform: translate(-50%, -50%) scale(1.04);
  }
}

@keyframes breathe {
  0%,
  100% {
    box-shadow: 0 0 0 16px rgba(8, 120, 217, 0.06);
  }
  50% {
    box-shadow: 0 0 0 28px rgba(8, 120, 217, 0.03);
  }
}

@keyframes stream {
  0% {
    transform: translateY(-12%);
  }
  100% {
    transform: translateY(12%);
  }
}

@keyframes float {
  0%,
  100% {
    translate: 0 0;
  }
  50% {
    translate: 0 -12px;
  }
}

@keyframes typingDot {
  0%,
  100% {
    transform: translateY(0);
    opacity: 0.45;
  }
  50% {
    transform: translateY(-4px);
    opacity: 1;
  }
}

@media (max-width: 820px) {
  .hero {
    min-height: 92vh;
    padding-top: 76px;
  }

  h1 {
    min-height: 2.35em;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }

  .scan-left {
    left: 5%;
  }

  .scan-right {
    right: 5%;
  }

  .signal-b,
  .signal-c {
    display: none;
  }

  .intro-section {
    grid-template-columns: 1fr;
    gap: 24px;
    padding-top: 36px;
  }

  .intro-visual {
    min-height: 420px;
  }

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

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