/* =========================================================
   FALOM AI: the home hero when the 3D glass version is off (phones, tablets, "reduce motion")
   Same look as the computer version: black with soft glows and grain, the blue-square tagline at the
   top, the FALOM logo glowing in the middle, and the big FALOM letters rising in along the bottom.
   To go back to the earlier light version: remove the css/hero-phone.css line in index.html.
   ========================================================= */
.hero:has(.brand):not(.hero-glass) {
  position: relative; overflow: hidden; isolation: isolate; color: #fff;
  min-height: 100vh; min-height: 100svh;
  background:
    radial-gradient(ellipse 70% 38% at 50% 44%, rgba(30, 107, 255, 0.28), transparent 70%),
    radial-gradient(ellipse 50% 30% at 70% 54%, rgba(155, 92, 246, 0.22), transparent 70%),
    radial-gradient(ellipse 40% 26% at 30% 36%, rgba(25, 227, 255, 0.16), transparent 70%),
    #000;
}
/* film grain, like the computer hero */
.hero:has(.brand):not(.hero-glass)::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: 0.04;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}
.hero:has(.brand):not(.hero-glass) .container { position: static; }
/* The FALOM name stays in the page for search engines and screen readers; the big letters show it */
.hero:has(.brand):not(.hero-glass) .brand-name, .hero:has(.brand):not(.hero-glass) .brand-sub {
  position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}
/* Tagline: top left, with the small blue square */
.hero:has(.brand):not(.hero-glass) .brand-tagline {
  position: absolute; left: 20px; top: calc(var(--nav-h) + 28px); margin: 0;
  display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 500; color: #fff;
}
.hero:has(.brand):not(.hero-glass) .brand-tagline::before { content: ""; width: 11px; height: 11px; background: #1e6bff; flex: none; }
/* Logo: centred a little above the middle, glowing and floating */
.hero:has(.brand):not(.hero-glass) .hero-mark {
  position: absolute; left: 50%; top: 40%; width: min(52vw, 300px); margin: 0; translate: -50% -50%; opacity: 1;
  filter: drop-shadow(0 0 40px rgba(25, 227, 255, 0.45)) drop-shadow(0 24px 60px rgba(30, 107, 255, 0.5));
  animation: phoneMarkIn 1.2s cubic-bezier(0.16, 1, 0.3, 1) 0.3s both, phoneFloat 6s ease-in-out 1.5s infinite;
}
@keyframes phoneMarkIn { from { opacity: 0; transform: translateY(30px) scale(0.85) rotate(-10deg); } }
@keyframes phoneFloat { 50% { transform: translateY(-12px); } }
/* The big FALOM letters along the bottom, rising in from below (the image's black disappears into the page) */
.hero-wordmark-phone { display: none; }
.hero:has(.brand):not(.hero-glass) .hero-wordmark-phone-wrap {
  /* as tall as the letters, so none of them is cut; the bottom of the letters runs just off the edge */
  position: absolute; left: 0; right: 0; bottom: -3.5vw; overflow: hidden; pointer-events: none;
}
.hero:has(.brand):not(.hero-glass) .hero-wordmark-phone {
  display: block; position: relative; left: -6%; width: 112%; height: auto; mix-blend-mode: screen;
  animation: phoneWordIn 1.4s cubic-bezier(0.16, 1, 0.3, 1) 0.5s both;
}
@keyframes phoneWordIn { from { transform: translateY(70%); } }
/* Like the computer hero: no paragraph or buttons (the top bar has "Request a demo") */
.hero:has(.brand):not(.hero-glass) .lead,
.hero:has(.brand):not(.hero-glass) .hero-actions,
.hero:has(.brand):not(.hero-glass) .scroll-hint { display: none; }
@media (prefers-reduced-motion: reduce) {
  .hero:has(.brand):not(.hero-glass) .hero-mark, .hero:has(.brand):not(.hero-glass) .hero-wordmark-phone { animation: none; }
}

/* With 3D (most phones): the live glass logo from js/hero3d.js replaces the flat logo; it fades in when ready */
.hero-3dphone .hero-mark { display: none; }
.hero-3dphone .hero3d-canvas { opacity: 0; transition: opacity 0.9s ease; }
.hero-3dphone.is-ready .hero3d-canvas { opacity: 1; }
