:root {
  --bg: #060607;
  --fg: #f4f4f5;
  --muted: #a1a1aa;
  --accent: #22d3ee;
  --accent-soft: rgba(34, 211, 238, 0.14);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  font-size: 100%;
  -webkit-font-smoothing: antialiased;
}

html,
body {
  min-height: 100%;
  margin: 0;
}

body {
  background: var(--bg);
  color: var(--fg);
  font-family: "DM Sans", system-ui, sans-serif;
  line-height: 1.55;
  overflow-x: hidden;
}

.ambient {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.ambient__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(88px);
  opacity: 0.5;
  animation: drift 20s ease-in-out infinite;
}

.ambient__orb--a {
  width: min(58vw, 440px);
  height: min(58vw, 440px);
  top: -14%;
  left: -10%;
  background: radial-gradient(circle, rgba(34, 211, 238, 0.42) 0%, transparent 72%);
}

.ambient__orb--b {
  width: min(48vw, 380px);
  height: min(48vw, 380px);
  bottom: -18%;
  right: -12%;
  background: radial-gradient(circle, rgba(74, 222, 128, 0.28) 0%, transparent 72%);
  animation-delay: -7s;
  animation-duration: 24s;
}

.ambient__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.028) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse 72% 58% at 50% 42%, black 18%, transparent 100%);
}

@keyframes drift {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }
  40% {
    transform: translate(5%, 4%) scale(1.04);
  }
  75% {
    transform: translate(-4%, 2%) scale(0.97);
  }
}

.shell {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: clamp(1.5rem, 5vw, 3rem);
}

.brand-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: clamp(1.75rem, 5vh, 3rem);
}

.brand-logo {
  display: block;
  width: clamp(3.25rem, 10vw, 4.25rem);
  height: auto;
  margin-bottom: 0.85rem;
  object-fit: contain;
}

.brand {
  font-size: clamp(0.68rem, 1.4vw, 0.74rem);
  font-weight: 600;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: #52525b;
}

.card {
  max-width: 26.5rem;
  width: 100%;
  text-align: center;
  padding: clamp(1.85rem, 4.5vw, 2.6rem) clamp(1.35rem, 3.8vw, 2.15rem);
  border: 1px solid rgba(255, 255, 255, 0.065);
  border-radius: 1.35rem;
  background: linear-gradient(155deg, rgba(255, 255, 255, 0.045) 0%, rgba(255, 255, 255, 0) 55%);
  backdrop-filter: blur(14px);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.5rem;
}

.status__pulse {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse 2.2s ease-out infinite;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(34, 211, 238, 0.4);
  }
  70% {
    box-shadow: 0 0 0 11px transparent;
  }
  100% {
    box-shadow: 0 0 0 0 transparent;
  }
}

.flow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.65rem 0.85rem;
  margin-bottom: 1.65rem;
  padding: 0.85rem 0.65rem;
  border-radius: 0.85rem;
  background: var(--accent-soft);
  border: 1px solid rgba(34, 211, 238, 0.12);
}

.flow__url {
  display: inline-flex;
  align-items: baseline;
  padding: 0.4rem 0.75rem;
  border-radius: 0.5rem;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-family: ui-monospace, "Cascadia Code", "Segoe UI Mono", monospace;
  font-size: clamp(0.72rem, 2.1vw, 0.8rem);
  letter-spacing: 0.01em;
  max-width: 100%;
}

.flow__protocol {
  color: #71717a;
}

.flow__host {
  color: var(--fg);
}

.flow__arrow {
  display: inline-block;
  width: 1.35rem;
  height: 1px;
  background: linear-gradient(90deg, rgba(34, 211, 238, 0.2), var(--accent), rgba(34, 211, 238, 0.2));
  position: relative;
  flex-shrink: 0;
}

.flow__arrow::after {
  content: "";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  border: 4px solid transparent;
  border-left-color: var(--accent);
  margin-right: -1px;
}

.flow__targets {
  display: inline-flex;
  gap: 0.55rem;
  flex-wrap: wrap;
  justify-content: center;
}

.flow__device {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
}

.flow__device-frame {
  display: block;
  width: 2.1rem;
  height: 3.35rem;
  border-radius: 0.35rem;
  border: 2px solid rgba(255, 255, 255, 0.2);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06) 0%, rgba(255, 255, 255, 0.02) 100%);
  position: relative;
}

.flow__device-frame::after {
  content: "";
  position: absolute;
  top: 0.28rem;
  left: 50%;
  transform: translateX(-50%);
  width: 0.85rem;
  height: 0.14rem;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.12);
}

.flow__device--ios .flow__device-frame {
  border-color: rgba(228, 228, 231, 0.55);
}

.flow__device--android .flow__device-frame {
  border-color: rgba(74, 222, 128, 0.5);
}

.flow__device-label {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #71717a;
}

.flow__device--ios .flow__device-label {
  color: #d4d4d8;
}

.flow__device--android .flow__device-label {
  color: #86efac;
}

.card h1 {
  font-size: clamp(1.35rem, 4vw, 1.72rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.22;
  margin: 0 0 0.95rem;
}

.card p {
  margin: 0;
  font-size: clamp(0.94rem, 2.1vw, 1.02rem);
  color: var(--muted);
}

.card p + p {
  margin-top: 0.65rem;
}

.timeline {
  display: inline-flex;
  margin-top: clamp(1.5rem, 3.8vh, 2rem);
  padding: 0.42rem 0.95rem;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: #d4d4d8;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.07);
}

@media (max-width: 420px) {
  .flow {
    flex-direction: column;
    gap: 0.75rem;
  }

  .flow__arrow {
    width: 1px;
    height: 1.1rem;
    background: linear-gradient(180deg, rgba(34, 211, 238, 0.15), var(--accent), rgba(34, 211, 238, 0.15));
  }

  .flow__arrow::after {
    top: auto;
    bottom: 0;
    left: 50%;
    right: auto;
    transform: translateX(-50%);
    border: 4px solid transparent;
    border-left-color: transparent;
    border-top-color: var(--accent);
  }
}

@media (prefers-reduced-motion: reduce) {
  .ambient__orb,
  .status__pulse {
    animation: none;
  }

  .ambient__orb {
    opacity: 0.32;
  }
}
