/* ARXLABS Landing — implemented from Claude Design "ARXLABS Landing.dc.html" */

@font-face {
  font-family: 'Nippo';
  src: url('../fonts/Nippo-Variable.woff2') format('woff2');
  font-weight: 200 700;
  font-display: swap;
}

html, body { margin: 0; padding: 0; background: #161316; }
* { box-sizing: border-box; }
::selection { background: #FF4A1F; color: #141216; }
::-webkit-scrollbar { width: 4px; height: 4px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255,74,31,.35); border-radius: 0; }
html { scroll-behavior: auto; }

/* ---------- keyframes ---------- */
@keyframes maskUp { from { transform: translateY(110%); } to { transform: translateY(0); } }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes pulseDot { 0%,100% { opacity: 1; } 50% { opacity: .35; } }
@keyframes reveal { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: translateY(0); } }
[data-reveal] { animation: reveal .7s cubic-bezier(.22,1,.36,1) both; }
@keyframes menuIn { from { opacity: 0; transform: translateY(-18px) scale(.97); } to { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes menuOut { from { opacity: 1; transform: translateY(0) scale(1); } to { opacity: 0; transform: translateY(-14px) scale(.98); } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes fadeOut { from { opacity: 1; } to { opacity: 0; } }
@keyframes menuLink { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: translateY(0); } }
@keyframes tickRow { 0%,100% { opacity: 1; } 50% { opacity: .55; } }
@keyframes grain {
  0%,100% { transform: translate(0,0); }
  10% { transform: translate(-5%,-8%); } 20% { transform: translate(-12%,4%); }
  30% { transform: translate(6%,-14%); } 40% { transform: translate(-4%,12%); }
  50% { transform: translate(-10%,6%); } 60% { transform: translate(12%,0); }
  70% { transform: translate(0,10%); } 80% { transform: translate(-14%,-4%); }
  90% { transform: translate(8%,8%); }
}

@media (max-width: 820px) { [data-hide-mobile] { display: none !important; } }

/* hero collapses to one column on narrow screens */
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr !important; } }

/* ---------- shared noise overlay ---------- */
.grain {
  position: absolute; top: -50%; left: -50%; width: 200%; height: 200%;
  background-image: url('../assets/noise.png'); background-size: 180px;
  opacity: .55; pointer-events: none;
  animation: grain .9s steps(10) infinite;
  animation-play-state: var(--play, running);
}
.grain--dim { opacity: .5; }

/* ---------- hover / active states (from design style-hover / style-active) ---------- */
.btn-launch:hover { background: #F2EFE7 !important; color: #141216 !important; }
.btn-launch:active { transform: scale(.97); }

.btn-menu:hover { background: #F2EFE7 !important; color: #141216 !important; border-color: #F2EFE7 !important; }
.btn-menu:active { transform: scale(.97); }

.menu-close:hover { opacity: .85; }
.menu-close:active { transform: scale(.97); }

.menu-link:hover { padding-left: 24px !important; }
.menu-social:hover { text-decoration: underline !important; }

.btn-primary:hover { background: #F2EFE7 !important; transform: translateY(-2px); }
.btn-primary:active { transform: scale(.97); }

.btn-outline:hover { background: #F2EFE7 !important; color: #141216 !important; border-color: #F2EFE7 !important; }
.btn-outline:active { transform: scale(.97); }

.sys-card:hover { border-color: #FF4A1F !important; transform: translateY(-4px); }

.lab-row:hover { padding-left: 14px !important; }

.btn-ink:hover { background: #F2EFE7 !important; color: #141216 !important; }
.btn-ink:active { transform: scale(.97); }

.btn-outline-ink:hover { background: rgba(20,18,22,.08) !important; border-color: #141216 !important; }
.btn-outline-ink:active { transform: scale(.97); }

/* ---------- full-screen menu ---------- */
#menu-root { position: fixed; inset: 0; z-index: 200; }
#menu-root[hidden] { display: none; }
#menu-backdrop { position: absolute; inset: 0; background: rgba(10,9,11,.6); animation: fadeIn .3s ease both; }
#menu-panel {
  position: absolute; top: 74px; right: clamp(12px,2vw,28px);
  width: min(620px,94vw); max-height: calc(100vh - 100px); overflow: auto;
  background: #FF4A1F; border-radius: 0; box-shadow: 0 24px 80px rgba(0,0,0,.55);
  animation: menuIn .38s cubic-bezier(.22,1,.36,1) both;
}
#menu-root.closing #menu-backdrop { animation: fadeOut .3s ease both; }
#menu-root.closing #menu-panel { animation: menuOut .3s ease both; }

/* ---------- system card screenshots ---------- */
.shot-frame { display: block; width: 100%; height: 130px; overflow: hidden; background: #141216; border: 1px solid rgba(242,239,231,.08); }
.shot-frame img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center; filter: saturate(.92); }
.shot-frame .shot-ph {
  display: flex; align-items: center; justify-content: center; width: 100%; height: 100%;
  background-image: linear-gradient(rgba(242,239,231,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(242,239,231,.05) 1px, transparent 1px);
  background-size: 22px 22px;
  font-size: 11px; font-weight: 600; letter-spacing: .22em; color: #4A454C;
}

/* duo: front page + logged-in view side by side */
.shot-duo { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.shot-duo .shot-cell { position: relative; height: 130px; overflow: hidden; background: #141216; border: 1px solid rgba(242,239,231,.08); }
.shot-duo .shot-cell img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top center; filter: saturate(.92); }
.shot-duo .shot-tag {
  position: absolute; left: 0; bottom: 0; padding: 3px 8px;
  font-size: 9px; font-weight: 600; letter-spacing: .16em; color: #F2EFE7;
  background: rgba(20,18,22,.82); border-top: 1px solid rgba(255,74,31,.5); border-right: 1px solid rgba(255,74,31,.5);
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  :root { --play: paused; }
  [data-reveal] { animation: none; }
}
