/* Placeholder styling for the deva.ninja gateway.
   Three full-height panels, one per product. Titles only — the real design
   comes later, so everything here is kept to layout + hover affordance. */

*, *::before, *::after { box-sizing: border-box; }

html, body {
  height: 100%;
  margin: 0;
}

body {
  background: #0a0a0b;
  color: #e8e8ea;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

/* 100svh, not 100vh: on mobile browsers the URL bar otherwise pushes the third
   panel below the fold on first paint. */
.gate {
  display: flex;
  height: 100svh;
  min-height: 100%;
}

.panel {
  flex: 1 1 0;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: inherit;
  overflow: hidden;
  background: #111113;
  transition: flex-grow .45s ease, background-color .45s ease;
}

/* Hairline separators between panels, drawn on the panel itself so no extra
   markup is needed and the last one can be dropped cleanly. */
.panel + .panel { border-left: 1px solid rgba(255, 255, 255, .08); }

.panel__inner {
  position: relative;
  padding: 1rem;
  text-align: center;
  transition: transform .45s ease;
}

.panel__title {
  display: block;
  font-size: clamp(1.5rem, 3.2vw, 3rem);
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #9a9aa2;
  transition: color .45s ease, letter-spacing .45s ease;
}

/* Per-product accent, so the three panels are distinguishable before there is
   any real artwork. */
.panel[data-panel="alpha"]      { --accent: #ff8a3d; }
.panel[data-panel="meshgate"]   { --accent: #3dd6ff; }
.panel[data-panel="demolisher"] { --accent: #ff4d5e; }

/* The glow sits in a pseudo-element rather than on the panel background so it
   can fade independently of the flex-grow animation. */
.panel::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 50%, color-mix(in srgb, var(--accent) 22%, transparent), transparent 70%);
  opacity: 0;
  transition: opacity .45s ease;
  pointer-events: none;
}

/* :focus-visible alongside :hover so the panels are reachable by keyboard. */
.panel:hover,
.panel:focus-visible {
  flex-grow: 1.6;
  background: #17171a;
  outline: none;
}

.panel:hover::after,
.panel:focus-visible::after { opacity: 1; }

.panel:hover .panel__title,
.panel:focus-visible .panel__title {
  color: #fff;
  letter-spacing: .12em;
}

.panel:focus-visible .panel__inner::after {
  content: "";
  position: absolute;
  inset: -.6rem -1rem;
  border: 1px solid var(--accent);
  border-radius: 2px;
}

/* Below the tablet breakpoint the panels stack. flex-grow on hover is dropped:
   on a touch screen the hover state sticks after a tap and leaves the layout
   lopsided on the way back. */
@media (max-width: 768px) {
  .gate { flex-direction: column; }
  .panel + .panel {
    border-left: 0;
    border-top: 1px solid rgba(255, 255, 255, .08);
  }
}

@media (hover: none) {
  .panel:hover { flex-grow: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .panel, .panel::after, .panel__inner, .panel__title { transition: none; }
  .panel:hover, .panel:focus-visible { flex-grow: 1; }
}
