:root {
  color-scheme: dark;
  --bg: #040914;
  --panel: rgba(8, 18, 34, .9);
  --line: rgba(88, 145, 230, .2);
  --line-soft: rgba(255,255,255,.07);
  --text: #f7f9ff;
  --muted: #a9b6ca;
  --blue: #4b91ff;
  --blue-bright: #74c4ff;
  --green: #45ee9f;
  --red: #ff4f67;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  padding:
    max(14px, env(safe-area-inset-top))
    max(12px, env(safe-area-inset-right))
    max(14px, env(safe-area-inset-bottom))
    max(12px, env(safe-area-inset-left));
  color: var(--text);
  overflow-x: hidden;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont,
    "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background:
    radial-gradient(circle at 50% -8%, rgba(44, 107, 214, .22), transparent 38%),
    linear-gradient(145deg, #020611 0%, #07101d 55%, #020711 100%);
}

.grid {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: .2;
  background-image:
    linear-gradient(rgba(72, 137, 235, .07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(72, 137, 235, .07) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: linear-gradient(to bottom, black, transparent 80%);
}

.ambient {
  position: fixed;
  border-radius: 50%;
  filter: blur(70px);
  pointer-events: none;
  opacity: .25;
  animation: drift 11s ease-in-out infinite alternate;
}

.ambient-a {
  width: 280px;
  height: 280px;
  top: -70px;
  left: -60px;
  background: #124ec0;
}

.ambient-b {
  width: 320px;
  height: 320px;
  right: -90px;
  bottom: -90px;
  background: #0a8b6a;
  animation-delay: -4s;
}

.page-shell {
  position: relative;
  z-index: 1;
  width: 100%;
  min-height: calc(100vh - 28px);
  min-height: calc(100svh - 28px);
  display: grid;
  place-items: center;
}

.secure-card {
  width: min(100%, 920px);
  padding: clamp(22px, 3.5vw, 42px);
  border: 1px solid var(--line);
  border-radius: clamp(22px, 3vw, 30px);
  background: linear-gradient(180deg, rgba(12, 28, 50, .84), rgba(4, 12, 23, .94));
  box-shadow:
    0 28px 80px rgba(0,0,0,.46),
    inset 0 1px 0 rgba(255,255,255,.035);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  width: 100%;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: #ebf2ff;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .22em;
}

.brand-symbol {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  color: var(--blue-bright);
  border: 1px solid rgba(110, 174, 255, .34);
  background: rgba(40, 108, 215, .11);
}

.brand-symbol svg,
.hostname svg,
.info-grid svg,
.action-panel button svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.brand-symbol svg { width: 17px; height: 17px; }

.hero-lock {
  position: relative;
  width: clamp(104px, 15vw, 154px);
  aspect-ratio: 1;
  margin: clamp(16px, 2.5vw, 24px) auto 2px;
  display: grid;
  place-items: center;
}

.hero-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(74, 148, 255, .28);
}

.ring-outer {
  inset: 0;
  border-top-color: rgba(116, 196, 255, .95);
  border-right-color: rgba(61, 126, 255, .78);
  animation: rotate 12s linear infinite;
}

.ring-inner {
  inset: 14%;
  border-left-color: rgba(116, 196, 255, .8);
  border-bottom-color: rgba(61, 126, 255, .85);
  animation: rotate-reverse 8s linear infinite;
}

.hero-sweep {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  animation: rotate 5.8s linear infinite;
}

.hero-sweep::before {
  content: "";
  position: absolute;
  top: 6px;
  left: 50%;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  transform: translateX(-50%);
  background: #97dbff;
  box-shadow: 0 0 8px #97dbff, 0 0 18px #4f9cff;
}

.hero-lock-svg {
  width: 63%;
  overflow: visible;
}

.hero-shackle {
  transform-origin: 60px 52px;
  animation: hero-lock-click 3.2s cubic-bezier(.4,0,.2,1) forwards;
}

.hero-lock-body {
  transform-origin: 60px 73px;
  animation: hero-lock-settle 3.2s cubic-bezier(.4,0,.2,1) forwards;
}

h1 {
  margin: 8px 0 0;
  text-align: center;
  font-size: clamp(31px, 5.5vw, 54px);
  line-height: 1.05;
  letter-spacing: -.045em;
}

h1 span {
  color: var(--blue);
  text-shadow: 0 0 24px rgba(75, 145, 255, .16);
}

.lead {
  max-width: 680px;
  margin: 16px auto 0;
  color: var(--muted);
  text-align: center;
  font-size: clamp(14px, 1.9vw, 18px);
  line-height: 1.6;
}

.hostname {
  width: fit-content;
  max-width: 100%;
  margin: 18px auto 0;
  padding: 9px 16px;
  display: flex;
  align-items: center;
  gap: 9px;
  color: #bfd8ff;
  border: 1px solid rgba(72, 137, 238, .34);
  border-radius: 999px;
  background: rgba(13, 38, 71, .46);
}

.hostname svg { width: 18px; flex: 0 0 auto; }
.hostname span { overflow-wrap: anywhere; font-weight: 700; }

.status-panel {
  margin-top: clamp(20px, 3vw, 28px);
  padding: clamp(16px, 2.8vw, 22px);
  display: grid;
  grid-template-columns: 106px 1fr;
  gap: 22px;
  align-items: center;
  border: 1px solid rgba(74, 140, 233, .22);
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(7, 19, 35, .95), rgba(8, 25, 45, .8));
}

.status-lock {
  position: relative;
  width: 96px;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  color: var(--green);
  animation: state-color 5.4s ease forwards;
}

.status-lock svg {
  width: 56%;
  position: relative;
  z-index: 2;
  filter: drop-shadow(0 0 12px currentColor);
}

.status-orbit {
  position: absolute;
  border-radius: 50%;
  border: 2px solid currentColor;
  opacity: .44;
}

.orbit-one {
  inset: 0;
  border-right-color: transparent;
  animation: rotate 5.2s linear infinite, state-color 5.4s ease forwards;
}

.orbit-two {
  inset: 13%;
  border-left-color: transparent;
  animation: rotate-reverse 4.3s linear infinite, state-color 5.4s ease forwards;
}

.status-glow {
  position: absolute;
  inset: 24%;
  border-radius: 50%;
  background: currentColor;
  opacity: .12;
  animation: breathe 2s ease-in-out infinite, state-color 5.4s ease forwards;
}

.status-shackle {
  transform-origin: 40px 36px;
  animation: status-lock-click 3.2s cubic-bezier(.4,0,.2,1) forwards;
}

.status-title {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--green);
  font-size: clamp(17px, 2vw, 20px);
  animation: state-color 5.4s ease forwards;
}

.status-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 15px currentColor;
  animation: breathe 1.8s ease-in-out infinite;
}

.status-copy p {
  margin: 9px 0 0;
  color: #c5d0e0;
  font-size: 15px;
  line-height: 1.55;
}

.info-grid {
  margin-top: 24px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.info-grid article {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 15px;
  border: 1px solid rgba(255,255,255,.055);
  border-radius: 15px;
  background: rgba(255,255,255,.018);
}

.info-grid svg {
  width: 30px;
  height: 30px;
  flex: 0 0 auto;
  color: var(--blue-bright);
}

.info-grid h2 {
  margin: 0;
  font-size: 14px;
}

.info-grid p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.action-panel {
  margin-top: 22px;
  padding: 18px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border: 1px solid rgba(74, 140, 233, .22);
  border-radius: 16px;
  background: rgba(6, 17, 31, .74);
}

.action-copy strong { font-size: 15px; }
.action-copy p { margin: 5px 0 0; color: var(--muted); font-size: 12px; }

.action-panel button {
  min-height: 44px;
  padding: 0 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex: 0 0 auto;
  border: 1px solid rgba(116, 181, 255, .55);
  border-radius: 11px;
  color: white;
  font: inherit;
  font-weight: 750;
  cursor: pointer;
  background: linear-gradient(135deg, #318dff, #1558e8);
  box-shadow: 0 12px 28px rgba(21, 88, 232, .23), inset 0 1px 0 rgba(255,255,255,.23);
  transition: transform .18s ease, filter .18s ease;
}

.action-panel button:hover { transform: translateY(-2px); filter: brightness(1.06); }
.action-panel button:active { transform: translateY(0); }
.action-panel button svg { width: 17px; }

footer {
  margin-top: 20px;
  padding-top: 16px;
  text-align: center;
  color: #74849d;
  border-top: 1px solid var(--line-soft);
  font-size: 12px;
}

footer strong { color: var(--blue-bright); }

@keyframes rotate { to { transform: rotate(360deg); } }
@keyframes rotate-reverse { to { transform: rotate(-360deg); } }

@keyframes breathe {
  0%, 100% { opacity: .42; transform: scale(.96); }
  50% { opacity: 1; transform: scale(1.06); }
}

@keyframes state-color {
  0%, 55% { color: var(--green); }
  72%, 100% { color: var(--red); }
}
  58%,100% { color: var(--red); }
}

@keyframes hero-lock-click {
  0%, 52% { transform: translateY(-8px); }
  62% { transform: translateY(1px); }
  70%, 100% { transform: translateY(0); }
}
  54% { transform: translateY(1px); }
  59%, 100% { transform: translateY(0); }
}

@keyframes hero-lock-settle {
  0%, 55% { transform: scale(1); }
  64% { transform: scale(.95); }
  72%, 100% { transform: scale(1); }
}
  55% { transform: scale(.95); }
  61%, 100% { transform: scale(1); }
}

@keyframes status-lock-click {
  0%, 52% { transform: translateY(-6px); }
  62% { transform: translateY(1px); }
  70%, 100% { transform: translateY(0); }
}
  54% { transform: translateY(1px); }
  59%, 100% { transform: translateY(0); }
}

@keyframes drift {
  from { transform: translate3d(0,0,0) scale(1); }
  to { transform: translate3d(24px, 14px, 0) scale(1.08); }
}

@media (max-width: 720px) {
  .page-shell {
    min-height: auto;
    place-items: start center;
  }

  .secure-card {
    padding: 19px 15px 17px;
    border-radius: 20px;
  }

  .brand {
    font-size: 11px;
    letter-spacing: .2em;
  }

  .brand-symbol {
    width: 25px;
    height: 25px;
  }

  .hero-lock {
    width: 94px;
    margin: 14px auto 2px;
  }

  h1 {
    font-size: clamp(29px, 9.5vw, 39px);
  }

  .lead {
    margin-top: 12px;
    font-size: 13px;
    line-height: 1.5;
  }

  .hostname {
    margin-top: 14px;
    padding: 8px 13px;
    font-size: 12px;
  }

  .status-panel {
    margin-top: 16px;
    grid-template-columns: 68px 1fr;
    gap: 14px;
    padding: 14px;
  }

  .status-lock { width: 64px; }

  .status-title { font-size: 15px; }

  .status-copy p {
    font-size: 12px;
    line-height: 1.45;
  }

  .info-grid {
    margin-top: 16px;
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .info-grid article {
    padding: 11px 12px;
    gap: 10px;
  }

  .info-grid svg {
    width: 26px;
    height: 26px;
  }

  .info-grid h2 { font-size: 13px; }
  .info-grid p { font-size: 11px; }

  .action-panel {
    margin-top: 16px;
    padding: 14px;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .action-copy strong { font-size: 13px; }
  .action-copy p { font-size: 11px; }

  .action-panel button {
    width: 100%;
    min-height: 42px;
  }

  footer {
    margin-top: 14px;
    padding-top: 14px;
  }
}

@media (max-width: 430px) and (max-height: 860px) {
  .brand { margin-top: 0; }

  .hero-lock {
    width: 82px;
    margin-top: 10px;
  }

  h1 { font-size: 31px; }

  .lead {
    font-size: 12px;
    line-height: 1.42;
  }

  .hostname { margin-top: 12px; }

  .status-panel {
    margin-top: 14px;
    grid-template-columns: 58px 1fr;
    gap: 12px;
    padding: 12px;
  }

  .status-lock { width: 56px; }
  .status-title { font-size: 14px; }
  .status-copy p { font-size: 11px; }

  .info-grid { margin-top: 12px; }

  .info-grid article {
    padding: 9px 10px;
  }

  .action-panel {
    margin-top: 12px;
    padding: 12px;
  }

  footer {
    margin-top: 12px;
    padding-top: 12px;
  }
}

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

  .status-lock,
  .status-title {
    color: var(--red);
  }
}
