/* Shared presentation for the home page and product hubs. */
.home-page,
.hub-page {
  background: #f6f8fb;
}

.home-brand-lockup {
  position: relative;
  z-index: 3;
  width: min(760px, 100%);
  margin: 0;
  text-align: left;
}

.home-brand-lockup h1 {
  margin: 0;
  color: #fff;
  font-size: clamp(56px, 10vw, 132px);
  line-height: 1;
  font-weight: 800;
  text-shadow: 0 18px 48px rgba(0,0,0,.34);
}

.home-brand-en {
  margin: 18px 0 0;
  color: #a9dcff;
  font-size: clamp(18px, 2.3vw, 30px);
  line-height: 1.2;
  font-weight: 800;
}

.home-brand-caption {
  max-width: 720px;
  margin: 24px 0 0;
  color: rgba(235, 247, 255, .72);
  font-size: clamp(11px, 1.15vw, 15px);
  line-height: 1.65;
  font-weight: 600;
  letter-spacing: 0;
  text-shadow: 0 6px 24px rgba(0,0,0,.3);
}

.home-hero {
  isolation: isolate;
}

.matrix-rain {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: .36;
  mix-blend-mode: screen;
}

.vgs-visual {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
  pointer-events: none;
  opacity: .72;
  mix-blend-mode: screen;
}

.vgs-grid {
  position: absolute;
  inset: -24%;
  background-image:
    linear-gradient(rgba(121, 201, 255, .08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(121, 201, 255, .08) 1px, transparent 1px);
  background-size: 76px 76px;
  transform: perspective(900px) rotateX(62deg) rotateZ(-8deg) translate3d(0, 8%, 0) scale(1.5);
  transform-origin: center bottom;
  opacity: .38;
  animation: vgs-grid-drift 22s linear infinite;
}

.vgs-scanline {
  position: absolute;
  top: -30%;
  bottom: -30%;
  width: 2px;
  background: linear-gradient(180deg, transparent, rgba(158, 226, 255, .62) 48%, transparent);
  filter: drop-shadow(0 0 10px rgba(70, 187, 255, .62));
  opacity: .42;
  transform: rotate(18deg);
  animation: vgs-scan 8s ease-in-out infinite;
}

.vgs-scanline-a { left: 24%; }
.vgs-scanline-b { left: 76%; animation-delay: -3.8s; opacity: .26; }

.vgs-node {
  position: absolute;
  width: 9px;
  height: 9px;
  border: 1px solid rgba(186, 235, 255, .82);
  background: rgba(86, 194, 255, .22);
  box-shadow: 0 0 0 5px rgba(86, 194, 255, .06), 0 0 18px rgba(86, 194, 255, .72);
  transform: rotate(45deg);
  animation: vgs-node-pulse 3.2s ease-in-out infinite;
}

.vgs-node-a { left: 19%; top: 28%; }
.vgs-node-b { left: 43%; top: 68%; animation-delay: -.8s; }
.vgs-node-c { left: 71%; top: 24%; animation-delay: -1.7s; }
.vgs-node-d { left: 86%; top: 66%; animation-delay: -2.4s; }

.vgs-heartbeat {
  position: absolute;
  left: -4%;
  bottom: 13%;
  width: 108%;
  height: 230px;
  overflow: visible;
  opacity: .78;
}

.vgs-heartbeat-base,
.vgs-heartbeat-trace {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.vgs-heartbeat-base {
  stroke: rgba(164, 224, 255, .22);
  stroke-width: 2;
}

.vgs-heartbeat-trace {
  stroke: #a7e5ff;
  stroke-width: 3;
  stroke-dasharray: 180px 1600px;
  stroke-dashoffset: 0;
  filter: drop-shadow(0 0 8px rgba(92, 200, 255, .88));
  animation: vgs-heartbeat-run 4.2s linear infinite;
}

@keyframes vgs-grid-drift {
  from { transform: perspective(900px) rotateX(62deg) rotateZ(-8deg) translate3d(0, 8%, 0) scale(1.5); }
  to { transform: perspective(900px) rotateX(62deg) rotateZ(-8deg) translate3d(-76px, 8%, 0) scale(1.5); }
}

@keyframes vgs-scan {
  0%, 100% { transform: translateX(-10vw) rotate(18deg); opacity: .08; }
  45%, 60% { transform: translateX(12vw) rotate(18deg); opacity: .48; }
}

@keyframes vgs-node-pulse {
  0%, 100% { opacity: .34; transform: rotate(45deg) scale(.78); }
  50% { opacity: 1; transform: rotate(45deg) scale(1.16); }
}

@keyframes vgs-heartbeat-run {
  to { stroke-dashoffset: -1780px; }
}

@media (prefers-reduced-motion: reduce) {
  .vgs-grid,
  .vgs-scanline,
  .vgs-node,
  .vgs-heartbeat-trace { animation: none; }
}

.home-hero,
.hub-hero {
  position: relative;
  min-height: 78vh;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(330px, .92fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
  padding: 110px clamp(18px, 6vw, 88px) 58px;
  color: #fff;
  overflow: hidden;
}

.home-hero {
  display: flex;
}

.home-hero-media,
.home-hero-media img,
.home-hero-overlay,
.hub-hero-media,
.hub-hero-media img,
.hub-hero-overlay {
  position: absolute;
  inset: 0;
}

.home-hero-media img,
.hub-hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 58% center;
  filter: saturate(.94) contrast(1.06) brightness(.68);
}

.home-hero-media img {
  object-position: center center;
  transform: scale(1.1);
}

.home-hero-overlay,
.hub-hero-overlay {
  background:
    linear-gradient(90deg, rgba(4, 9, 18, .9), rgba(9, 31, 57, .62) 48%, rgba(4, 9, 18, .22)),
    linear-gradient(180deg, rgba(255,255,255,.1), transparent 24%, rgba(0,0,0,.48));
}

.home-copy,
.home-showcase,
.hub-copy,
.hub-showcase {
  position: relative;
  z-index: 1;
}

.home-copy,
.hub-copy {
  max-width: 770px;
  padding: 38px 40px 42px;
  border: 1px solid rgba(255,255,255,.3);
  border-radius: 30px;
  background: linear-gradient(145deg, rgba(255,255,255,.2), rgba(255,255,255,.06)), rgba(7, 18, 33, .3);
  box-shadow: 0 34px 95px rgba(0,0,0,.3), inset 0 1px 0 rgba(255,255,255,.4);
  backdrop-filter: blur(24px) saturate(155%);
}

.home-copy h1,
.hub-copy h1 {
  max-width: 720px;
  font-size: clamp(42px, 5.6vw, 76px);
  line-height: 1.02;
}

.home-copy .lead,
.hub-copy .lead {
  max-width: 700px;
  margin-top: 22px;
  font-size: clamp(18px, 1.85vw, 25px);
  line-height: 1.55;
}

.home-copy .eyebrow,
.hub-copy .eyebrow,
.home-section .section-kicker,
.hub-section .section-kicker {
  color: #8ed0ff;
}

.home-showcase,
.hub-showcase {
  padding: 28px;
  border: 1px solid rgba(255,255,255,.3);
  border-radius: 30px;
  background: linear-gradient(145deg, rgba(255,255,255,.18), rgba(255,255,255,.05)), rgba(10, 27, 49, .32);
  box-shadow: 0 34px 95px rgba(0,0,0,.28), inset 0 1px 0 rgba(255,255,255,.34);
  backdrop-filter: blur(26px) saturate(165%);
}

.home-showcase h2,
.hub-showcase h2 {
  margin: 0 0 20px;
  font-size: 25px;
}

.showcase-status {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 20px;
  color: rgba(255,255,255,.78);
  font-size: 13px;
  letter-spacing: .08em;
}

.showcase-status i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #8ed0ff;
  box-shadow: 0 0 0 5px rgba(142,208,255,.14), 0 0 18px rgba(142,208,255,.8);
}

.showcase-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.showcase-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 50px;
  padding: 10px 12px;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 14px;
  background: rgba(3,10,22,.25);
  color: rgba(255,255,255,.88);
  font-size: 15px;
}

.showcase-list b {
  display: grid;
  flex: 0 0 30px;
  height: 30px;
  place-items: center;
  border-radius: 9px;
  background: linear-gradient(135deg, #0b78e3, #7857ff);
  font-size: 12px;
}

.home-section,
.hub-section {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
  padding: 92px 0 24px;
}

.home-section-heading,
.hub-section-heading {
  max-width: 820px;
  margin-bottom: 34px;
}

.home-section-heading h2,
.hub-section-heading h2 {
  margin: 0;
  font-size: clamp(32px, 4vw, 58px);
  line-height: 1.08;
}

.home-section-heading p:not(.section-kicker),
.hub-section-heading p:not(.section-kicker) {
  margin: 20px 0 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.72;
}

.home-product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.home-product-card {
  display: flex;
  min-height: 420px;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--panel);
  box-shadow: 0 20px 64px rgba(20,24,35,.07);
  backdrop-filter: blur(18px);
}

.home-product-card.core { border-top: 3px solid #147de3; }
.home-product-card.code { border-top-color: #0f9f91; }

.home-product-visual {
  position: relative;
  height: 148px;
  overflow: hidden;
  background: #152a4d;
}

.home-product-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(.9) brightness(.72);
}

.home-product-visual:after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(7,31,61,.32), rgba(15,159,145,.32));
}

.home-product-badge {
  position: absolute;
  left: 20px;
  bottom: 16px;
  z-index: 1;
  padding: 8px 12px;
  color: #fff;
  border: 1px solid rgba(255,255,255,.34);
  border-radius: 999px;
  background: rgba(5,15,29,.36);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .08em;
}

.home-product-content {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 24px 22px 22px;
}

.home-product-content h3 {
  margin: 0;
  font-size: 25px;
  line-height: 1.18;
}

.home-product-content p {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.65;
}

.home-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.home-tags span {
  padding: 6px 9px;
  color: #31506d;
  border: 1px solid rgba(20,125,227,.14);
  border-radius: 999px;
  background: #eef6ff;
  font-size: 12px;
}

.home-product-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  margin-top: auto;
  padding-top: 22px;
  color: var(--accent);
  font-size: 15px;
  font-weight: 800;
}

.home-product-link:after { content: "↗"; }

.home-app-section {
  padding-top: 72px;
}

.home-app-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.home-app-card {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  overflow: hidden;
  min-height: 270px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255,255,255,.78);
  box-shadow: 0 20px 64px rgba(20,24,35,.07);
}

.home-app-card figure {
  position: relative;
  min-height: 100%;
  margin: 0;
  overflow: hidden;
  background: #12274c;
}

.home-app-card figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(.74) saturate(.92);
}

.home-app-card figure:after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(21,141,226,.14), rgba(7,21,43,.62));
}

.home-app-card .home-product-content h3 { font-size: 22px; }

.home-game-strip,
.home-contact-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  margin-top: 72px;
  padding: 44px 48px;
  color: #fff;
  border-radius: 30px;
  background: linear-gradient(135deg, rgba(6,14,28,.97), rgba(22,72,128,.96)), radial-gradient(circle at 82% 18%, rgba(0,178,255,.36), transparent 28%);
  box-shadow: 0 24px 80px rgba(6,20,46,.18);
}

.home-game-strip h2,
.home-contact-panel h2 {
  margin: 0;
  font-size: clamp(28px, 3.5vw, 48px);
  line-height: 1.08;
}

.home-game-strip p:not(.section-kicker),
.home-contact-panel p:not(.section-kicker) {
  max-width: 700px;
  margin: 16px 0 0;
  color: rgba(255,255,255,.72);
  line-height: 1.65;
}

.home-contact-panel { margin-top: 24px; }

.home-contact-panel .section-kicker,
.home-game-strip .section-kicker { color: #8ed0ff; }

.product-stack {
  display: grid;
  gap: 14px;
}

.product-accordion {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255,255,255,.74);
  box-shadow: 0 18px 58px rgba(20,24,35,.07);
}

.product-accordion[open] {
  border-color: rgba(0,113,227,.26);
  box-shadow: 0 24px 70px rgba(20,24,35,.1);
}

.product-accordion summary {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) auto 24px;
  gap: 18px;
  align-items: center;
  padding: 23px 24px;
  cursor: pointer;
  list-style: none;
}

.product-accordion summary::-webkit-details-marker { display: none; }

.product-accordion summary:after {
  content: "+";
  color: var(--accent);
  font-size: 25px;
  font-weight: 400;
  text-align: center;
}

.product-accordion[open] summary:after { content: "−"; }

.accordion-index {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  color: #fff;
  border-radius: 15px;
  background: linear-gradient(135deg, #0b78e3, #7857ff);
  font-size: 13px;
  font-weight: 800;
}

.apps-page .accordion-index {
  background: linear-gradient(135deg, #0f8f84, #168de2);
}

.accordion-title strong,
.accordion-title small {
  display: block;
}

.accordion-title strong {
  font-size: 23px;
  line-height: 1.2;
}

.accordion-title small {
  margin-top: 6px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.4;
}

.accordion-status {
  color: #47718b;
  font-size: 13px;
  white-space: nowrap;
}

.product-accordion-body {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(260px, .82fr);
  gap: 36px;
  padding: 0 24px 28px 96px;
}

.product-accordion-body p {
  margin: 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.72;
}

.accordion-points {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.accordion-points li {
  position: relative;
  padding: 12px 14px 12px 35px;
  color: #344055;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #f8fbff;
  font-size: 14px;
  line-height: 1.5;
}

.accordion-points li:before {
  content: "";
  position: absolute;
  left: 15px;
  top: 19px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #0f8f84;
  box-shadow: 0 0 0 4px rgba(15,143,132,.12);
}

.accordion-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  grid-column: 1 / -1;
  padding-top: 4px;
}

.hub-entry {
  margin-top: 68px;
  background: linear-gradient(135deg, rgba(5,10,20,.96), rgba(17,61,111,.96)), radial-gradient(circle at 82% 18%, rgba(0,178,255,.36), transparent 28%);
}

.apps-page .hub-entry {
  background: linear-gradient(135deg, rgba(4,21,28,.97), rgba(8,91,94,.96)), radial-gradient(circle at 82% 18%, rgba(76,229,205,.34), transparent 28%);
}

.hub-entry p:not(.section-kicker) { max-width: 700px; }

@media (max-width: 980px) {
  .home-hero,
  .hub-hero { grid-template-columns: 1fr; min-height: 0; padding-top: 110px; }
  .home-hero { display: flex; min-height: min(72vh, 680px); }
  .home-showcase,
  .hub-showcase { max-width: 760px; }
  .home-product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .product-accordion-body { grid-template-columns: 1fr; }
  .accordion-actions { grid-column: auto; }
}

@media (max-width: 680px) {
  .home-hero,
  .hub-hero { padding: 92px 18px 42px; }
  .home-brand-lockup { width: min(100%, 620px); }
  .home-brand-caption { margin-top: 18px; font-size: 11px; }
  .home-copy,
  .hub-copy { padding: 28px 22px 32px; border-radius: 24px; }
  .home-showcase,
  .hub-showcase { padding: 22px; border-radius: 24px; }
  .home-product-grid,
  .home-app-grid { grid-template-columns: 1fr; }
  .home-app-card { grid-template-columns: 126px minmax(0,1fr); }
  .home-section,
  .hub-section { padding-top: 68px; }
  .home-game-strip,
  .home-contact-panel { display: block; padding: 34px 26px; }
  .home-game-strip .button,
  .home-contact-panel .button { width: 100%; margin-top: 26px; }
  .product-accordion summary {
    grid-template-columns: 46px minmax(0, 1fr) 20px;
    gap: 12px;
    padding: 18px;
  }
  .accordion-index { width: 42px; height: 42px; }
  .accordion-title strong { font-size: 19px; }
  .accordion-title small { font-size: 12px; }
  .accordion-status { display: none; }
  .product-accordion-body { padding: 0 18px 24px 18px; }
  .accordion-actions { display: grid; }
  .accordion-actions .button { width: 100%; }
}
