/* Homepage header, hero, device showcase and ticker. Builds on design.css. */

/* HERO */
.showcase { position: relative; overflow: hidden; padding: var(--space-6) 0 var(--space-8); background: var(--bg); }
.showcase-grid { display: grid; gap: var(--space-8); align-items: center; }
.showcase-copy { display: grid; justify-items: start; gap: var(--space-5); min-width: 0; }
.showcase.ds h1 { font-size: clamp(2.5rem, 1.4rem + 3.4vw, 4.25rem); }
.showcase-sub { max-width: 34rem; color: var(--text-muted); }
.trust { color: var(--text-muted); font-size: var(--text-sm); }
.trust span { white-space: nowrap; }
@media (min-width: 62.5rem) {
  .showcase { padding: var(--space-8) 0 var(--space-9); }
  .showcase-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: var(--space-7); }
}

/* Headline words arrive one by one. Visible as normal if animation is off. */
.word { display: inline-block; animation: word-in 700ms var(--ease) both; animation-delay: calc(120ms + var(--w) * 70ms); }
.word--accent { color: var(--accent); }
@keyframes word-in { from { opacity: 0; transform: translate3d(0, 0.55em, 0); } to { opacity: 1; transform: none; } }

/* DEVICES */
.stage { position: relative; perspective: 1200px; padding: 0 0 var(--space-6); }
.glow { position: absolute; inset: -18% -12%; pointer-events: none; }
.glow::before, .glow::after { content: ""; position: absolute; border-radius: 50%; animation: glow-drift 14s ease-in-out infinite alternate; }
.glow::before { inset: 8% 30% 20% 0; background: radial-gradient(closest-side, rgba(255, 160, 46, 0.42), rgba(255, 160, 46, 0)); }
.glow::after { inset: 18% 0 4% 32%; background: radial-gradient(closest-side, rgba(255, 94, 58, 0.32), rgba(255, 94, 58, 0)); animation-delay: -7s; }
@keyframes glow-drift { from { transform: translate3d(-4%, -3%, 0) scale(0.95); } to { transform: translate3d(6%, 5%, 0) scale(1.08); } }

.tilt { position: relative; transform-style: preserve-3d; transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform 300ms var(--ease); }

.laptop { width: 92%; }
.laptop-lid { padding: 2.2% 2.2% 2.8%; background: linear-gradient(160deg, #3a445e, #151c2f 40%); border-radius: var(--radius-md) var(--radius-md) 4px 4px; box-shadow: var(--lift-lg); }
.laptop-base { position: relative; width: 112%; margin-left: -6%; height: 0.75rem; background: linear-gradient(#6b758f, #232b41); border-radius: 2px 2px 14px 14px; box-shadow: var(--lift-md); }
.laptop-base::after { content: ""; position: absolute; top: 0; left: 42%; width: 16%; height: 45%; background: #1b2236; border-radius: 0 0 8px 8px; }

.phone-wrap { position: absolute; right: 0; bottom: 0; width: 25%; min-width: 5.75rem; }
.phone { position: relative; padding: 5%; background: linear-gradient(160deg, #48526d, #0d1220 45%); border-radius: 18% / 8.5%; box-shadow: var(--lift-lg); transform: translateZ(60px); }
.phone::before { content: ""; position: absolute; z-index: 2; top: 4%; left: 36%; width: 28%; height: 2.4%; background: #05070d; border-radius: 999px; }

.screen { position: relative; overflow: hidden; background: var(--ink-800); }
.laptop .screen { aspect-ratio: 16 / 10; border-radius: 4px; }
.phone .screen { aspect-ratio: 6 / 13; border-radius: 14% / 6.5%; }
.screen img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; opacity: 0; transition: opacity 900ms ease; }
.screen img.is-on { opacity: 1; }

/* TICKER */
.marquee { overflow: hidden; padding: var(--space-5) 0; background: var(--surface); border-block: 1px solid var(--line); cursor: pointer; }
.marquee-track { display: flex; width: max-content; animation: marquee 48s linear infinite; }
.marquee:hover .marquee-track, .marquee.is-paused .marquee-track { animation-play-state: paused; }
.marquee-group { display: flex; flex-shrink: 0; align-items: center; gap: var(--space-7); padding-right: var(--space-7); font-family: var(--font-display); font-size: var(--text-xl); font-weight: 600; white-space: nowrap; }
.marquee-group i { width: 0.5rem; height: 0.5rem; background: var(--accent); border-radius: 50%; }
@keyframes marquee { to { transform: translate3d(-50%, 0, 0); } }

@media (prefers-reduced-motion: reduce) {
  .tilt { transform: none; }
  .marquee { cursor: default; }
  .marquee-track { width: auto; }
  .marquee-group { flex-wrap: wrap; justify-content: center; white-space: normal; padding-inline: var(--gutter); }
  .marquee-group[data-copy], .marquee-group [data-repeat] { display: none; }
}
