@import url("https://fonts.googleapis.com/css2?family=Vazirmatn:wght@400;500;600;700;800&display=swap");

:root {
  color-scheme: light;
  --page: #f7faff;
  --ink: #13213c;
  --muted: #53637d;
  --blue: #4b86f7;
  --cyan: #56cce8;
  --mint: #50d4a8;
  --line: rgba(46, 91, 160, 0.12);
  --card: rgba(255, 255, 255, 0.76);
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  min-height: 100svh;
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(
      circle at 15% 18%,
      rgba(86, 204, 232, 0.15),
      transparent 27%
    ),
    radial-gradient(
      circle at 88% 82%,
      rgba(80, 212, 168, 0.13),
      transparent 28%
    ),
    linear-gradient(145deg, #fff, var(--page) 48%, #eef5ff);
  color: var(--ink);
  font-family: Vazirmatn, "Segoe UI", Tahoma, sans-serif;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  opacity: 0.42;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 52px 52px;
  mask-image: radial-gradient(circle at center, #000 25%, transparent 78%);
}

.page-shell {
  position: relative;
  display: grid;
  width: 100%;
  min-height: 100svh;
  padding: clamp(16px, 3vh, 30px) 20px;
  place-items: center;
  isolation: isolate;
}

.page-shell::before,
.page-shell::after {
  content: "";
  position: fixed;
  z-index: -1;
  width: clamp(260px, 32vw, 480px);
  aspect-ratio: 1;
  border: 1px solid rgba(75, 134, 247, 0.1);
  border-radius: 50%;
  pointer-events: none;
  animation: orbit 22s linear infinite;
}

.page-shell::before {
  top: -15%;
  right: -8%;
}
.page-shell::after {
  bottom: -20%;
  left: -7%;
  animation-direction: reverse;
  animation-duration: 28s;
}

.card {
  position: relative;
  width: min(100%, 880px);
  overflow: hidden;
  border: 1px solid rgba(66, 112, 181, 0.14);
  border-radius: clamp(24px, 3.2vw, 38px);
  background: var(--card);
  box-shadow:
    0 28px 75px rgba(47, 88, 149, 0.11),
    inset 0 1px 0 rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(22px);
  animation: card-enter 0.9s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(
      circle at 8% 10%,
      rgba(75, 134, 247, 0.11),
      transparent 25%
    ),
    radial-gradient(circle at 92% 94%, rgba(80, 212, 168, 0.1), transparent 24%);
}

.card::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: -45%;
  z-index: 0;
  width: 35%;
  pointer-events: none;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.65),
    transparent
  );
  transform: skewX(-18deg);
  animation: sheen 7s 1.2s ease-in-out infinite;
}

.header {
  position: relative;
  z-index: 1;
  display: grid;
  padding: clamp(28px, 4.5vh, 44px) clamp(24px, 7vw, 70px)
    clamp(22px, 3.5vh, 34px);
  place-items: center;
  text-align: center;
}

.security-mark {
  position: relative;
  display: grid;
  width: 58px;
  height: 58px;
  margin-bottom: 17px;
  place-items: center;
  border: 1px solid rgba(75, 134, 247, 0.17);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--blue);
  box-shadow:
    0 13px 34px rgba(57, 108, 186, 0.12),
    inset 0 1px 0 #fff;
  animation: float 4s ease-in-out infinite;
}

.security-mark::before,
.security-mark::after {
  content: "";
  position: absolute;
  border: 1px solid rgba(75, 134, 247, 0.14);
  border-radius: 25px;
  animation: secure-pulse 3s ease-out infinite;
}

.security-mark::before {
  inset: -7px;
}
.security-mark::after {
  inset: -7px;
  animation-delay: 1.5s;
}
.security-mark svg {
  width: 28px;
  height: 28px;
}

h1 {
  margin: 0;
  color: transparent;
  background: linear-gradient(110deg, #14233f 18%, #3975db 68%, #36ae90 115%);
  background-clip: text;
  -webkit-background-clip: text;
  font-size: clamp(30px, 5vw, 52px);
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: -0.045em;
}

.copy {
  position: relative;
  z-index: 1;
  margin: 0;
  padding: 0 clamp(24px, 8vw, 82px) clamp(24px, 4vh, 38px);
  color: var(--muted);
  font-size: clamp(14px, 1.45vw, 17px);
  font-weight: 500;
  line-height: 1.95;
  text-align: justify;
  text-align-last: center;
}

.action-wrap {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: center;
  padding: clamp(16px, 2.5vh, 22px);
  border-top: 1px solid var(--line);
  background: rgba(244, 249, 255, 0.72);
}

.action {
  position: relative;
  display: inline-flex;
  min-height: 50px;
  padding: 0 24px;
  overflow: hidden;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border: 1px solid rgba(75, 134, 247, 0.14);
  border-radius: 16px;
  background: #fff;
  color: #234271;
  box-shadow: 0 9px 26px rgba(52, 99, 171, 0.09);
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  transition:
    color 0.3s ease,
    transform 0.3s ease,
    border-color 0.3s ease,
    box-shadow 0.3s ease;
}

.action::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(115deg, var(--blue), #61a2f2 50%, var(--mint));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.action:hover {
  color: #fff;
  border-color: transparent;
  box-shadow: 0 16px 36px rgba(58, 116, 204, 0.18);
  transform: translateY(-3px);
}

.action:hover::before {
  opacity: 1;
}
.action svg {
  width: 21px;
  height: 21px;
  transition: transform 0.45s ease;
}
.action:hover svg:first-child {
  transform: rotate(18deg);
}
.action:hover svg:last-child {
  transform: rotate(-18deg);
}

.nodes {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.node {
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 0 0 6px rgba(75, 134, 247, 0.06);
  animation: node-pulse 2.8s ease-in-out infinite;
}

.node:nth-child(1) {
  top: 13%;
  right: 7%;
}
.node:nth-child(2) {
  top: 28%;
  left: 6%;
  background: var(--cyan);
  animation-delay: 0.7s;
}
.node:nth-child(3) {
  right: 5%;
  bottom: 23%;
  background: var(--mint);
  animation-delay: 1.4s;
}

@keyframes card-enter {
  from {
    opacity: 0;
    transform: translateY(22px) scale(0.985);
    filter: blur(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

@keyframes float {
  50% {
    transform: translateY(-6px);
  }
}

@keyframes secure-pulse {
  0% {
    opacity: 0;
    transform: scale(0.72);
  }
  35% {
    opacity: 0.65;
  }
  100% {
    opacity: 0;
    transform: scale(1.35);
  }
}

@keyframes node-pulse {
  50% {
    transform: scale(1.4);
    box-shadow: 0 0 0 11px transparent;
  }
}

@keyframes sheen {
  0%,
  60% {
    left: -45%;
  }
  85%,
  100% {
    left: 125%;
  }
}

@keyframes orbit {
  to {
    transform: rotate(360deg);
  }
}

:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 5px;
}

@media (max-width: 640px) {
  .page-shell {
    padding: 14px;
  }
  .card {
    border-radius: 26px;
  }
  .header {
    padding: 27px 22px 21px;
  }
  .copy {
    padding: 0 22px 24px;
    line-height: 1.9;
    text-align: right;
    text-align-last: auto;
  }
  .security-mark {
    width: 54px;
    height: 54px;
    margin-bottom: 15px;
    border-radius: 18px;
  }
  .action {
    width: 100%;
    min-height: 50px;
  }
}

@media (min-width: 641px) and (max-height: 720px) {
  .page-shell {
    padding-block: 12px;
  }
  .header {
    padding-top: 22px;
    padding-bottom: 17px;
  }
  .security-mark {
    width: 50px;
    height: 50px;
    margin-bottom: 12px;
    border-radius: 17px;
  }
  .security-mark svg {
    width: 25px;
    height: 25px;
  }
  h1 {
    font-size: clamp(29px, 4.5vw, 44px);
  }
  .copy {
    padding-bottom: 20px;
    font-size: 14px;
    line-height: 1.8;
  }
  .action-wrap {
    padding: 13px;
  }
  .action {
    min-height: 46px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
