/* ruvara.ai — the glass layer, in Midnight Sapphire.
   Loaded after home.css, and only ever adds to it: delete this file and the
   <link> to it and the page still works, just flatter.

   The top bar no longer lives here. It used to be a clear, refracting glass
   capsule that arrived as a droplet; the owner found it "very average", so
   home.css now draws a two-state bar (bare at the top, a floating frosted
   sapphire dock with a gold hairline after the first scroll). What is left
   here is the room's light, the glass of the cards and the footer name. */

:root {
  --spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --settle: cubic-bezier(0.2, 0.9, 0.25, 1.12);
  --lens: 238, 242, 250;
}

/* Buttons give a little under the finger. */
.btn-paper, .btn-tape { transition: transform 0.45s var(--spring), box-shadow 0.3s, background-color 0.3s, color 0.3s; }
.btn-paper:active, .btn-tape:active { transform: scale(0.96); }

/* --------------------------------------------- the room's light, below
   Glass needs something to look through. Each section below the opening
   gets its own slow lamp: sapphire mostly, with a little gold, drifting so
   gently it is felt rather than seen. */
.tour, .inside, .security, .steps-sec, .products { isolation: isolate; overflow-x: clip; }
.tour::before, .inside::before, .security::before, .steps-sec::before, .products::before {
  content: '';
  position: absolute;
  z-index: -1;
  pointer-events: none;
  width: min(900px, 90vw);
  aspect-ratio: 1;
  border-radius: 50%;
  filter: blur(60px);
  animation: lamp-drift 22s ease-in-out infinite alternate;
}
.tour::before { right: -18%; top: 12%; background: radial-gradient(circle, rgba(47, 107, 255, 0.14), transparent 62%); }
.inside::before { left: -22%; top: -10%; background: radial-gradient(circle, rgba(226, 184, 87, 0.07), transparent 62%); animation-duration: 26s; }
.security::before { left: 50%; top: 30%; translate: -50% 0; background: radial-gradient(circle, rgba(47, 107, 255, 0.16), rgba(127, 164, 255, 0.06) 38%, transparent 64%); animation-duration: 18s; }
.steps-sec::before { right: -10%; top: -30%; background: radial-gradient(circle, rgba(127, 164, 255, 0.09), transparent 62%); }
.products::before { left: 10%; top: 20%; background: radial-gradient(circle, rgba(47, 107, 255, 0.12), rgba(226, 184, 87, 0.04) 45%, transparent 64%); animation-duration: 24s; }
@keyframes lamp-drift {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(4%, -5%, 0) scale(1.08); }
}

/* The security band lets its lamp through. */
.security { background: linear-gradient(180deg, rgba(18, 27, 46, 0.75), rgba(11, 18, 32, 0.45)); }

/* ------------------------------------------------------- glass panels */

.tile,
.product {
  --gl-rim: linear-gradient(135deg, rgba(255, 255, 255, 0.4), rgba(255, 255, 255, 0.08) 24%, rgba(255, 255, 255, 0.02) 50%, rgba(127, 164, 255, 0.12) 78%, rgba(255, 255, 255, 0.24));
}

.tile {
  border: 0;
  background:
    linear-gradient(160deg, rgba(var(--lens), 0.075), rgba(var(--lens), 0.018) 55%, rgba(var(--lens), 0.03)),
    rgba(18, 27, 46, 0.55);
  backdrop-filter: blur(20px) saturate(170%);
  -webkit-backdrop-filter: blur(20px) saturate(170%);
  box-shadow:
    inset 0 1px 0.5px rgba(255, 255, 255, 0.22),
    inset 0 -1px 0.5px rgba(255, 255, 255, 0.06),
    inset 0 -24px 40px -30px rgba(var(--lens), 0.12),
    0 40px 80px -40px rgba(0, 0, 0, 0.85);
}
.tile::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  pointer-events: none;
  background: var(--gl-rim);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
}
.tile::before {
  background: radial-gradient(460px circle at var(--mx) var(--my), rgba(127, 164, 255, 0.12), transparent 60%);
}
.tile { transition: translate 0.6s var(--settle), transform 1s var(--ease), box-shadow 0.4s; }
.tile.rise.pending { transition: translate 0.6s var(--settle), opacity 0.6s var(--ease) calc(var(--i, 0) * 70ms), transform 0.9s var(--ease) calc(var(--i, 0) * 70ms), box-shadow 0.4s; }
.tile:hover { translate: 0 -3px; }

/* The product cards keep their orbiting sapphire-and-gold edge; the face is glass. */
.product {
  background:
    linear-gradient(160deg, rgba(var(--lens), 0.05), rgba(var(--lens), 0.01)) padding-box,
    linear-gradient(rgba(18, 27, 46, 0.92), rgba(18, 27, 46, 0.92)) padding-box,
    conic-gradient(from var(--a), rgba(238, 242, 250, 0.1) 0 50%, rgba(47, 107, 255, 0.95) 64%, rgba(226, 184, 87, 0.95) 72%, rgba(238, 242, 250, 0.1) 86%) border-box;
  isolation: isolate;
  overflow: hidden;
  backdrop-filter: blur(18px) saturate(170%);
  -webkit-backdrop-filter: blur(18px) saturate(170%);
  box-shadow:
    inset 0 1px 0.5px rgba(255, 255, 255, 0.2),
    0 40px 80px -40px rgba(0, 0, 0, 0.85);
  transition: transform 0.6s var(--settle);
}
.product::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.4s;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), rgba(127, 164, 255, 0.12), transparent 60%);
}
.product:hover::after { opacity: 1; }
.product.next {
  background:
    linear-gradient(160deg, rgba(var(--lens), 0.04), rgba(var(--lens), 0.01)) padding-box,
    linear-gradient(rgba(15, 23, 41, 0.92), rgba(15, 23, 41, 0.92)) padding-box,
    linear-gradient(var(--line), var(--line)) border-box;
}

/* Step numbers are small glass beads; the lit one holds the sapphire, and
   the last one, when reached, the gold. */
.n {
  background:
    radial-gradient(120% 90% at 50% -20%, rgba(255, 255, 255, 0.2), transparent 60%),
    rgba(18, 27, 46, 0.9);
  box-shadow: inset 0 1px 0.5px rgba(255, 255, 255, 0.32), 0 6px 14px -6px rgba(0, 0, 0, 0.7);
  transition: background 0.4s, color 0.4s, border-color 0.4s, box-shadow 0.4s, transform 0.6s var(--spring);
}
.steps li.lit .n {
  background:
    radial-gradient(120% 90% at 50% -25%, rgba(255, 255, 255, 0.32), transparent 60%),
    linear-gradient(180deg, #2f6bff, #2257e0);
  transform: scale(1.08);
}
.steps li:last-child.lit .n {
  background:
    radial-gradient(120% 90% at 50% -25%, rgba(255, 255, 255, 0.45), transparent 60%),
    linear-gradient(180deg, #ecc874, #d9a93f);
}

/* --------------------------------------------------------------- footer
   The name, very large and faint, in the wordmark's own face (the original
   RUVARA logo: Newsreader capitals). As the footer arrives it rises and
   fades in. */
.foot-mark {
  margin: 56px 0 0;
  font: 600 clamp(64px, 15vw, 240px)/0.85 var(--wordmark);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-align: center;
  white-space: nowrap;
  color: transparent;
  background: linear-gradient(180deg, rgba(127, 164, 255, 0.18), rgba(226, 184, 87, 0.06) 55%, rgba(238, 242, 250, 0) 85%);
  -webkit-background-clip: text;
  background-clip: text;
  user-select: none;
  pointer-events: none;
}
@media (prefers-reduced-motion: no-preference) {
  .foot-mark.pending { opacity: 0; transform: translateY(18px); }
  .foot-mark.pending.in { opacity: 1; transform: none; transition: opacity 1.4s ease, transform 1.4s cubic-bezier(0.16, 1, 0.3, 1); }
}

/* ------------------------------------------------------ hold still */
@media (prefers-reduced-motion: reduce) {
  .tour::before, .inside::before, .security::before, .steps-sec::before, .products::before { animation: none; }
  .tile:hover { translate: none; }
}
