/* Outrivo coming soon page. Monochrome only: graphite, silver, chrome. */
:root {
  --bg: #0a0a0b;
  --ink: #f4f4f5;
  --ink-2: #d4d4d8;
  --ink-3: #a1a1aa;
  --ink-4: #71717a;
  --line: rgba(255, 255, 255, 0.14);
  --chrome: linear-gradient(135deg, #fafafa 0%, #a1a1aa 36%, #ffffff 52%, #71717a 76%, #e4e4e7 100%);
  --sans: 'Google Sans Flex', 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, Menlo, Consolas, monospace;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

* { box-sizing: border-box; }

html { background: var(--bg); }

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  padding: 28px clamp(16px, 4vw, 48px);
  /* No body background: it would paint over the fixed .bg layer (z-index -1). html carries the base colour. */
  color: var(--ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; }

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

/* Background: slow-drifting silver light on graphite, with fine grain. */
.bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  background: radial-gradient(120% 90% at 50% 120%, #1c1c1f 0%, var(--bg) 60%);
}
.bg::after {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0.08;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.glow {
  position: absolute;
  border-radius: 50%;
  will-change: transform;
}
.g1 {
  width: 90vmax;
  height: 90vmax;
  top: -48vmax;
  right: -30vmax;
  background: radial-gradient(circle, rgba(228, 228, 231, 0.34) 0%, rgba(228, 228, 231, 0.11) 36%, transparent 66%);
  animation: drift-a 26s ease-in-out infinite alternate;
}
.g2 {
  width: 70vmax;
  height: 70vmax;
  bottom: -40vmax;
  left: -26vmax;
  background: radial-gradient(circle, rgba(161, 161, 170, 0.28) 0%, rgba(161, 161, 170, 0.09) 38%, transparent 66%);
  animation: drift-b 32s ease-in-out infinite alternate;
}
.g3 {
  width: 46vmax;
  height: 46vmax;
  top: 30%;
  left: 50%;
  margin-left: -23vmax;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.10) 0%, transparent 62%);
  animation: drift-c 22s ease-in-out infinite alternate;
}
@keyframes drift-a { to { transform: translate(-8vmax, 6vmax) scale(1.08); } }
@keyframes drift-b { to { transform: translate(10vmax, -5vmax) scale(1.12); } }
@keyframes drift-c { to { transform: translate(4vmax, -6vmax) scale(0.9); } }

/* Logo mark, filled with a moving chrome gradient. */
.mark {
  display: block;
  background: var(--chrome);
  background-size: 220% 220%;
  -webkit-mask: url(mark.png) center / contain no-repeat;
  mask: url(mark.png) center / contain no-repeat;
  animation: sheen 7s ease-in-out infinite;
}
.mark-sm { width: 28px; height: 24px; }
.mark-lg { width: 116px; height: 101px; }
@keyframes sheen {
  0%, 100% { background-position: 0% 0%; }
  50% { background-position: 100% 100%; }
}

/* Top bar */
.top { display: flex; align-items: center; }
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  border-radius: 8px;
}
.brand-name { font-size: 20px; font-weight: 500; letter-spacing: -0.01em; }

/* Hero */
.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 30px;
  padding: 48px 0;
  text-align: center;
}
.headline {
  margin: 0;
  max-width: 12.5em;
  font-weight: 300;
  font-size: clamp(2.6rem, 7.2vw, 5.8rem);
  line-height: 1.02;
  letter-spacing: -0.035em;
  text-wrap: balance;
}
.shine {
  background: linear-gradient(100deg, #b4b4bb 0%, #d4d4d8 30%, #ffffff 50%, #d4d4d8 70%, #b4b4bb 100%);
  background-size: 300% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: sweep 3s linear infinite;
}
@keyframes sweep {
  from { background-position: 100% 0; }
  to { background-position: 0% 0; }
}

.typer {
  margin: 0;
  min-height: 1.6em;
  display: inline-flex;
  align-items: center;
  font-family: var(--mono);
  font-size: clamp(14px, 1.6vw, 17px);
  color: var(--ink-3);
  white-space: nowrap;
}
.typer-num {
  margin-right: 14px;
  padding: 3px 7px;
  border: 1px solid var(--line);
  border-radius: 6px;
  font-size: 0.8em;
  color: var(--ink-4);
}
.typer-text { color: var(--ink-2); }
.caret {
  width: 2px;
  height: 1.15em;
  margin-left: 3px;
  background: var(--ink);
  animation: blink 1s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }

/* Coming soon status with pulse rings */
.status { position: relative; display: inline-flex; margin-top: 6px; }
.status-pill {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 24px;
  border-radius: 999px;
  background: linear-gradient(180deg, #fafafa 0%, #d4d4d8 100%);
  color: var(--bg);
  font-size: 17px;
  font-weight: 500;
  letter-spacing: -0.01em;
  box-shadow: 0 10px 40px rgba(255, 255, 255, 0.10), inset 0 1px 0 rgba(255, 255, 255, 0.9);
}
.dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--bg);
  animation: blink 1.6s steps(1) infinite;
}
.ring {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  animation: pulse 2.6s var(--ease) infinite;
}
.ring-late { animation-delay: 1.3s; }
@keyframes pulse {
  from { transform: scale(1); opacity: 0.7; }
  to { transform: scale(1.45, 1.9); opacity: 0; }
}

/* Footer */
.foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 24px;
  font-family: var(--mono);
  font-size: 13px;
  color: var(--ink-3);
}
.foot a {
  color: var(--ink-2);
  text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, 0.25);
  text-underline-offset: 4px;
  transition: color 0.2s, text-decoration-color 0.2s;
}
.foot a:hover { color: #ffffff; text-decoration-color: #ffffff; }

a:focus-visible { outline: 2px solid #ffffff; outline-offset: 4px; }

/* Entrance */
.rise {
  opacity: 0;
  transform: translateY(18px);
  animation: rise 1s var(--ease) forwards;
}
.r1 { animation-delay: 0.1s; }
.r2 { animation-delay: 0.25s; }
.r3 { animation-delay: 0.5s; }
.r4 { animation-delay: 0.7s; }
@keyframes rise { to { opacity: 1; transform: none; } }

/* 404 page */
.lost { font-size: clamp(2.2rem, 6vw, 4.4rem); }
.back { font-family: var(--mono); font-size: 15px; color: var(--ink-2); }

@media (max-width: 480px) {
  body { padding-top: 20px; padding-bottom: 20px; }
  .hero { gap: 24px; }
  .mark-lg { width: 88px; height: 76px; }
  .typer { white-space: normal; }
  .status-pill { font-size: 16px; padding: 12px 22px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .rise { opacity: 1; transform: none; }
  .shine { color: var(--ink); background: none; }
}
