/* oexta.com home page: motion, video wall, app lineup. Builds on style.css. */

/* ── Hero ─────────────────────────────────────────────────────────────── */
.home-hero { position: relative; padding: 96px 0 40px; text-align: center; overflow: hidden; isolation: isolate; }
.home-hero .mesh { position: absolute; inset: -30% -10% auto -10%; height: 900px; z-index: -1; pointer-events: none; filter: blur(70px); opacity: .9; }
.home-hero .mesh i { position: absolute; border-radius: 50%; mix-blend-mode: screen; animation: drift 18s ease-in-out infinite alternate; }
.home-hero .mesh i:nth-child(1) { width: 520px; height: 520px; left: 18%; top: 10%; background: #6c74ff55; }
.home-hero .mesh i:nth-child(2) { width: 460px; height: 460px; left: 52%; top: 2%; background: #b48cff44; animation-duration: 22s; animation-delay: -6s; }
.home-hero .mesh i:nth-child(3) { width: 380px; height: 380px; left: 36%; top: 34%; background: #2dd4bf33; animation-duration: 26s; animation-delay: -12s; }
.home-hero .mesh i:nth-child(4) { width: 300px; height: 300px; left: 64%; top: 38%; background: #ff980033; animation-duration: 20s; animation-delay: -3s; }
@keyframes drift {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(60px, 40px) scale(1.12); }
  100% { transform: translate(-50px, 20px) scale(.94); }
}
.home-hero h1 { font-size: clamp(42px, 7.2vw, 86px); margin-bottom: 20px; }
.rotator { display: inline-grid; vertical-align: bottom; text-align: center; justify-items: center; }
.rotator span { grid-area: 1 / 1; opacity: 0; transform: translateY(.45em); transition: opacity .5s ease, transform .5s ease;
  background: linear-gradient(100deg, var(--accent) 10%, var(--accent-2) 60%, #2dd4bf);
  -webkit-background-clip: text; background-clip: text; color: transparent; padding-bottom: .08em; }
.rotator span.on { opacity: 1; transform: none; }
.rotator span.off { opacity: 0; transform: translateY(-.45em); }
.home-hero .lead { margin: 0 auto 30px; }
.home-hero .actions { justify-content: center; }
.trust { display: flex; flex-wrap: wrap; gap: 10px 22px; justify-content: center; margin-top: 26px; color: var(--muted); font-size: 14px; }
.trust span { display: inline-flex; align-items: center; gap: 8px; }
.trust span::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #3ddc97; box-shadow: 0 0 0 4px rgba(61, 220, 151, .14); }

/* ── Video wall ───────────────────────────────────────────────────────── */
.wall { display: grid; grid-template-columns: 1.25fr 1fr 1fr; grid-template-rows: auto auto; gap: 14px; margin-top: 56px;
  perspective: 1600px; }
.tile { position: relative; border-radius: 18px; overflow: hidden; border: 1px solid var(--border-strong); background: #000;
  box-shadow: var(--shadow); transform: translateY(18px) rotateX(6deg); opacity: 0; transition: transform .9s cubic-bezier(.2,.7,.2,1), opacity .9s ease; }
.wall.in .tile { transform: none; opacity: 1; }
.wall .tile:nth-child(2) { transition-delay: .08s; } .wall .tile:nth-child(3) { transition-delay: .16s; }
.wall .tile:nth-child(4) { transition-delay: .24s; } .wall .tile:nth-child(5) { transition-delay: .32s; }
.tile.big { grid-row: span 2; }
.tile video, .tile img { width: 100%; height: 100%; object-fit: cover; display: block; aspect-ratio: 16 / 9; }
.tile.big video { aspect-ratio: auto; min-height: 100%; }
.tile .tag { position: absolute; left: 12px; bottom: 12px; display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px 6px 6px;
  border-radius: 999px; font-size: 13px; font-weight: 650; color: #fff; background: rgba(12, 12, 18, .62); backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px); border: 1px solid rgba(255, 255, 255, .12); }
.tile .tag img { width: 22px; height: 22px; border-radius: 6px; aspect-ratio: 1; }
.kb { animation: kb 16s ease-in-out infinite alternate; transform-origin: 30% 40%; }
@keyframes kb { from { transform: scale(1); } to { transform: scale(1.12) translate(-2%, -1%); } }

/* ── Values marquee ───────────────────────────────────────────────────── */
.marquee { overflow: hidden; border-block: 1px solid var(--border); margin: 72px 0 0; padding: 18px 0;
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee .track { display: flex; gap: 48px; width: max-content; animation: slide 38s linear infinite; }
.marquee span { display: inline-flex; align-items: center; gap: 12px; font: 650 18px/1 var(--font-display); color: var(--muted); white-space: nowrap; }
.marquee span::after { content: "✦"; color: var(--accent); font-size: 14px; margin-left: 36px; }
@keyframes slide { to { transform: translateX(-50%); } }

/* ── App lineup ───────────────────────────────────────────────────────── */
.lineup-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 18px; margin-bottom: 30px; }
.lineup-head .lead { margin: 0; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.filters button { font: 600 14px/1 var(--font); color: var(--muted); background: var(--surface); border: 1px solid var(--border);
  padding: 10px 16px; border-radius: 999px; cursor: pointer; transition: all .2s; }
.filters button:hover { color: var(--text); border-color: var(--border-strong); }
.filters button.on { color: var(--accent-ink); background: linear-gradient(135deg, var(--accent), var(--accent-2)); border-color: transparent; }
.apps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.app-card { --c: var(--accent); position: relative; display: flex; flex-direction: column; border-radius: 22px; overflow: hidden;
  background: linear-gradient(180deg, var(--surface), var(--bg-2)); border: 1px solid var(--border); color: var(--text);
  transition: transform .35s cubic-bezier(.2,.7,.2,1), border-color .3s, box-shadow .35s; }
.app-card:hover { text-decoration: none; transform: translateY(-6px); border-color: color-mix(in srgb, var(--c) 55%, var(--border));
  box-shadow: 0 24px 60px color-mix(in srgb, var(--c) 22%, transparent); }
.app-card .media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: #0b0b10; }
.app-card .media video, .app-card .media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s cubic-bezier(.2,.7,.2,1); }
.app-card:hover .media video, .app-card:hover .media img { transform: scale(1.05); }
.app-card .media::after { content: ""; position: absolute; inset: auto 0 0 0; height: 40%; background: linear-gradient(transparent, rgba(0,0,0,.35)); }
.app-card .body { padding: 20px 22px 22px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.app-card .title { display: flex; align-items: center; gap: 12px; }
.app-card .title img { width: 40px; height: 40px; border-radius: 10px; box-shadow: 0 6px 16px rgba(0,0,0,.3); }
.app-card h3 { margin: 0; font-size: 20px; }
.app-card p { margin: 0; color: var(--muted); font-size: 15px; }
.app-card .meta { margin-top: auto; padding-top: 12px; display: flex; align-items: center; justify-content: space-between; font-size: 13px; color: var(--muted); }
.app-card .go { color: var(--c); font-weight: 650; display: inline-flex; gap: 6px; align-items: center; }
.app-card .go::after { content: "→"; transition: transform .25s; }
.app-card:hover .go::after { transform: translateX(4px); }
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; font-weight: 650;
  border: 1px solid var(--border-strong); background: var(--surface-2); }
.badge.live::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #3ddc97; }
.app-card.hide { display: none; }

/* ── Spotlights ───────────────────────────────────────────────────────── */
.spot { display: grid; grid-template-columns: 1fr 1.2fr; gap: 56px; align-items: center; padding: 56px 0; }
.spot.flip { grid-template-columns: 1.2fr 1fr; }
.spot.flip .copy { order: 2; }
.spot .frame { position: relative; border-radius: 20px; overflow: hidden; border: 1px solid var(--border-strong); box-shadow: var(--shadow); background: #000; }
.spot .frame video { width: 100%; display: block; aspect-ratio: 16 / 9; object-fit: cover; }
.spot .frame::before { content: ""; position: absolute; inset: -40%; z-index: -1; background: radial-gradient(closest-side, var(--glow), transparent); }

/* ── Principles ───────────────────────────────────────────────────────── */
.principles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.principles .card { padding: 24px; }
.cta-band { margin-top: 80px; border-radius: 28px; padding: 64px 32px; text-align: center; position: relative; overflow: hidden;
  background: radial-gradient(600px 260px at 50% 0%, var(--glow), transparent 70%), linear-gradient(160deg, var(--surface), var(--bg-2));
  border: 1px solid var(--border); }
.cta-band .actions { justify-content: center; }

/* ── Scroll reveal ────────────────────────────────────────────────────── */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s ease, transform .8s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }
.apps .reveal:nth-child(3n+2) { transition-delay: .08s; } .apps .reveal:nth-child(3n) { transition-delay: .16s; }

@media (max-width: 960px) {
  .apps { grid-template-columns: repeat(2, 1fr); }
  .principles { grid-template-columns: repeat(2, 1fr); }
  .spot, .spot.flip { grid-template-columns: 1fr; gap: 26px; padding: 36px 0; }
  .spot.flip .copy { order: 0; }
}
@media (max-width: 640px) {
  .home-hero { padding-top: 56px; }
  .wall { grid-template-columns: 1fr 1fr; margin-top: 36px; gap: 10px; }
  .tile.big { grid-column: span 2; grid-row: auto; }
  .tile.big video { aspect-ratio: 16 / 9; }
  .tile .tag { font-size: 12px; left: 8px; bottom: 8px; }
  .wall .tile:nth-child(n+4) { display: none; }
  .apps, .principles { grid-template-columns: 1fr; }
  .cta-band { padding: 44px 20px; }
}
@media (prefers-reduced-motion: reduce) {
  .home-hero .mesh i, .kb, .marquee .track { animation: none; }
  .reveal, .tile { opacity: 1; transform: none; transition: none; }
  .rotator span { transition: none; }
}
