/* RAN — Coming Soon Landing Page */

:root {
  --ran-blue: #3b659c;
  --ran-blue-light: #4a7ab8;
  --ran-grey: #929497;
  --ran-grey-light: #b8bcc0;
  --ink: #0f1e2e;
  --ink-soft: #1a3048;
  --white: #ffffff;
  --blue-glow: rgba(59, 101, 156, 0.35);
  --grey-glow: rgba(146, 148, 151, 0.15);

  --font-head: "Sora", sans-serif;
  --font-body: "Inter", sans-serif;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  -webkit-text-size-adjust: 100%;
}

body {
  min-height: 100dvh;
  font-family: var(--font-body);
  color: var(--white);
  background: var(--ink);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ---- Background layers ---- */

#network-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

.grid-overlay {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(59, 101, 156, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(59, 101, 156, 0.06) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 50%, black 20%, transparent 75%);
}

.glow {
  position: fixed;
  border-radius: 50%;
  filter: blur(100px);
  pointer-events: none;
  z-index: 1;
}

.glow--left {
  width: 500px;
  height: 500px;
  top: -10%;
  left: -10%;
  background: var(--blue-glow);
  animation: float 12s var(--ease) infinite alternate;
}

.glow--right {
  width: 400px;
  height: 400px;
  bottom: -5%;
  right: -5%;
  background: var(--grey-glow);
  animation: float 10s var(--ease) infinite alternate-reverse;
}

@keyframes float {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(30px, 20px) scale(1.08); }
}

/* ---- Main content ---- */

.coming-soon {
  position: relative;
  z-index: 2;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 48px 24px 32px;
  max-width: 680px;
  margin: 0 auto;
}

.logo-wrap {
  margin-bottom: 36px;
  animation: fadeUp 0.8s var(--ease) both;
}

.logo {
  width: min(420px, 85vw);
  height: auto;
  filter: drop-shadow(0 8px 32px rgba(0, 0, 0, 0.3));
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 18px;
  border-radius: 999px;
  border: 1px solid rgba(59, 101, 156, 0.4);
  background: rgba(59, 101, 156, 0.12);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ran-blue-light);
  margin-bottom: 28px;
  animation: fadeUp 0.8s 0.1s var(--ease) both;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ran-blue-light);
  box-shadow: 0 0 8px var(--ran-blue-light);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.5; transform: scale(0.85); }
}

.title {
  font-family: var(--font-head);
  font-size: clamp(2rem, 6vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: 12px;
  background: linear-gradient(135deg, var(--white) 0%, var(--ran-grey-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: fadeUp 0.8s 0.2s var(--ease) both;
}

.tagline {
  font-family: var(--font-head);
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--ran-blue-light);
  letter-spacing: 0.06em;
  margin-bottom: 20px;
  animation: fadeUp 0.8s 0.3s var(--ease) both;
}

.description {
  font-size: 1rem;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.65);
  max-width: 520px;
  margin-bottom: 40px;
  animation: fadeUp 0.8s 0.4s var(--ease) both;
}

/* ---- Digital stats ---- */

.digital-stats {
  display: flex;
  align-items: center;
  gap: 0;
  padding: 20px 28px;
  border-radius: 16px;
  border: 1px solid rgba(59, 101, 156, 0.25);
  background: rgba(15, 30, 46, 0.6);
  backdrop-filter: blur(12px);
  margin-bottom: 40px;
  animation: fadeUp 0.8s 0.5s var(--ease) both;
}

.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 0 20px;
}

.stat-value {
  font-family: var(--font-head);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--ran-blue-light);
  font-variant-numeric: tabular-nums;
}

.stat-value::after {
  content: "+";
  font-size: 1rem;
  margin-left: 1px;
}

.stat:nth-child(5) .stat-value::after {
  content: "%";
}

.stat-label {
  font-size: 0.6875rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ran-grey);
  white-space: nowrap;
}

.stat-divider {
  width: 1px;
  height: 40px;
  background: rgba(59, 101, 156, 0.25);
  flex-shrink: 0;
}

/* ---- Footer ---- */

.footer {
  margin-top: 48px;
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.4);
  animation: fadeUp 0.8s 0.6s var(--ease) both;
}

.footer a {
  color: var(--ran-grey-light);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer a:hover {
  color: var(--white);
}

.footer-sep {
  margin: 0 8px;
  opacity: 0.4;
}

/* ---- Utilities ---- */

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ---- Responsive ---- */

@media (max-width: 540px) {
  .digital-stats {
    flex-direction: column;
    gap: 16px;
    padding: 20px;
  }

  .stat-divider {
    width: 60%;
    height: 1px;
  }

  .stat {
    padding: 0;
  }

  .footer-sep {
    display: none;
  }

  .footer {
    display: flex;
    flex-direction: column;
    gap: 6px;
  }
}

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

  #network-canvas {
    display: none;
  }
}
