:root {
  color-scheme: dark;
  --ink: #f4f1e8;
  --muted: #a5aaa3;
  --surface: #101313;
  --surface-raised: #171b1a;
  --line: rgba(244, 241, 232, .14);
  --accent: #a7e36f;
  --accent-strong: #d5ef9d;
  --gold: #efb96d;
  --focus: #ffffff;
  --max: 76rem;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--surface); }
body { margin: 0; color: var(--ink); background: var(--surface); line-height: 1.55; }
body::before { content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: .16; background-image: linear-gradient(rgba(167,227,111,.06) 1px, transparent 1px), linear-gradient(90deg, rgba(167,227,111,.06) 1px, transparent 1px); background-size: 72px 72px; mask-image: linear-gradient(to bottom, black, transparent 70%); }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--accent); text-underline-offset: .2em; }
a:focus-visible, button:focus-visible, select:focus-visible { outline: 2px solid var(--focus); outline-offset: 4px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; clip-path: inset(50%); }
.skip-link { position: fixed; z-index: 10; top: .75rem; left: .75rem; padding: .7rem 1rem; color: #07100e; background: var(--accent); transform: translateY(-200%); }
.skip-link:focus { transform: translateY(0); }
.site-header, footer { max-width: var(--max); margin: 0 auto; padding: 1.25rem clamp(1.25rem, 4vw, 2.5rem); display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.site-header { min-height: 5rem; border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; gap: .7rem; color: var(--ink); font-weight: 760; text-decoration: none; letter-spacing: .01em; }
.brand img { width: 32px; height: 32px; border-radius: 9px; }
nav { display: flex; align-items: center; flex-wrap: wrap; gap: 1.25rem; }
nav a { color: var(--muted); font-size: .9rem; font-weight: 650; text-decoration: none; }
nav a:hover { color: var(--ink); }
.language-picker select { min-height: 2.3rem; max-width: 10rem; padding: .35rem 1.8rem .35rem .6rem; border: 1px solid var(--line); border-radius: 6px; color: var(--ink); background: var(--surface-raised); font: inherit; font-size: .85rem; }
h1, h2, h3 { line-height: 1.08; letter-spacing: -.02em; text-wrap: balance; }
h1 { margin: 0; max-width: 100%; font-size: clamp(3rem, 13cqw, 5.25rem); letter-spacing: -.075em; overflow-wrap: break-word; }
h2 { font-size: clamp(2rem, 4vw, 3.6rem); }
.hero { position: relative; max-width: var(--max); min-height: min(46rem, calc(100vh - 5rem)); margin: 0 auto; padding: clamp(4rem, 8vw, 7rem) clamp(1.25rem, 4vw, 2.5rem) 5rem; display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); align-items: center; gap: clamp(2rem, 4vw, 4rem); }
.hero-copy { container-type: inline-size; position: relative; z-index: 1; min-width: 0; max-width: 31rem; }
.category { margin: 0 0 1.2rem; color: var(--accent); font-size: .78rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.tagline { max-width: 28rem; margin: 1.2rem 0 0; color: #e1e5dc; font-size: clamp(1.35rem, 2.4vw, 1.9rem); font-weight: 650; }
.summary { max-width: 29rem; margin: 1rem 0 0; color: var(--muted); font-size: 1.05rem; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .8rem; margin-top: 1.6rem; }
.primary-action { display: inline-flex; min-height: 3rem; align-items: center; justify-content: center; margin-top: 0; padding: .7rem 1.25rem; border: 1px solid var(--accent); border-radius: 6px; color: #101608; background: var(--accent); font-weight: 800; text-decoration: none; box-shadow: 0 10px 32px rgba(167,227,111,.12); }
.primary-action:hover { color: #101608; background: var(--accent-strong); }
.secondary-action { display: inline-flex; min-height: 3rem; align-items: center; padding: .7rem .25rem; color: var(--ink); font-weight: 750; text-decoration: none; }
.secondary-action::after { content: " ->"; color: var(--accent); }
.closing .primary-action, .prose .primary-action { margin-top: 1.6rem; }
.availability-state { display: inline-flex; min-height: 3rem; align-items: center; margin-top: 1.6rem; padding: .7rem 1.25rem; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); background: rgba(16,24,25,.75); font-weight: 700; }
.hero-media { position: relative; width: 100%; min-width: 0; margin: 0; padding: .65rem .65rem 0; border: 1px solid rgba(167,227,111,.35); border-radius: 10px; background: #202523; box-shadow: 0 24px 70px rgba(0,0,0,.4); }
.hero-media::before { content: "LOCAL PLAYER  /  READY"; display: block; padding: .35rem .35rem .55rem; color: var(--accent); font: 700 .68rem ui-monospace, SFMono-Regular, Consolas, monospace; letter-spacing: .12em; }
.hero-media img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 5px; }
.hero-media figcaption { padding: .8rem .35rem .95rem; color: var(--muted); font-size: .82rem; }
.hero-proof { display: flex; flex-wrap: wrap; gap: .55rem .9rem; margin-top: 2rem; color: var(--muted); font-size: .78rem; }
.hero-proof-item { display: inline-flex; align-items: center; gap: .4rem; }
.hero-proof-item::before { content: ""; width: .42rem; height: .42rem; border-radius: 50%; background: var(--accent); }
.overview-band, .content-band, .workflow, .closing, .prose, .screenshot-band { padding: clamp(4rem, 9vw, 8rem) clamp(1rem, 4vw, 2.5rem); }
.overview-band > *, .content-band > *, .screenshot-band > *, .workflow, .closing, .prose { max-width: var(--max); margin-inline: auto; }
.overview-band { border-top: 1px solid var(--line); }
.section-heading { max-width: 42rem; }
.section-heading h2 { margin: 0; }
.section-heading p { max-width: 38rem; color: var(--muted); font-size: 1.05rem; }
.overview-points, .feature-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; margin-top: 3rem; border: 1px solid var(--line); background: var(--line); }
.overview-point, .feature-list article { min-width: 0; padding: 1.5rem; background: var(--surface); }
.overview-point h3, .feature-list h3 { margin-top: 0; font-size: 1.18rem; }
.overview-point p, .feature-list article p { color: var(--muted); }
.content-band { background: var(--surface-raised); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.feature-list article { display: flex; flex-direction: column; }
.feature-list article::before { content: "↗"; margin-bottom: 2rem; color: var(--gold); font-size: 1.3rem; }
.feature-link { margin-top: auto; color: var(--accent); font-weight: 750; text-decoration: none; }
.screenshot-band { border-bottom: 1px solid var(--line); }
.screenshot-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(18rem, 100%), 1fr)); gap: 1px; margin-top: 3rem; border: 1px solid var(--line); background: var(--line); }
.screenshot-list figure { margin: 0; padding: 1.25rem; background: var(--surface); display: flex; flex-direction: column; gap: .75rem; }
.screenshot-list figure img { width: 100%; border-radius: 6px; aspect-ratio: 16 / 10; object-fit: cover; }
.screenshot-list figure figcaption { color: var(--muted); font-size: .85rem; line-height: 1.45; }
.device-point { min-height: 9rem; padding: 1.4rem; background: var(--surface); }
.device-point h3 { margin: 0; font-size: 1rem; }
.scenarios-band { max-width: var(--max); margin: 0 auto; padding: clamp(4rem, 8vw, 7rem) clamp(1.25rem, 4vw, 2.5rem); border-bottom: 1px solid var(--line); }
.scenario-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin-top: 2.5rem; }
.scenario-list article { min-height: 10rem; display: flex; align-items: flex-end; padding: 1.4rem; border: 1px solid var(--line); background: linear-gradient(145deg, #1c2220, #121615); }
.scenario-list h3 { margin: 0; max-width: 14rem; font-size: 1.2rem; }
.workflow ol { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; padding: 0; list-style: none; counter-reset: step; background: var(--line); border: 1px solid var(--line); }
.workflow li { min-height: 10rem; padding: 1.4rem; background: var(--surface); counter-increment: step; color: #d8e2de; }
.workflow li::before { content: "0" counter(step); display: block; margin-bottom: 2.5rem; color: var(--accent); font: 800 .8rem ui-monospace, SFMono-Regular, Consolas, monospace; }
.closing { text-align: center; border-top: 1px solid var(--line); }
.closing h2 { margin-top: 0; }
.closing p { max-width: 38rem; margin-inline: auto; color: var(--muted); }
.prose { max-width: 52rem; }
.prose h1 { font-size: clamp(3rem, 8vw, 6rem); }
.prose h2 { margin-top: 3rem; font-size: 2rem; }
.prose details { padding: 1rem 0; border-bottom: 1px solid var(--line); }
.prose summary { cursor: pointer; font-weight: 700; }
.company-intro { max-width: 42rem; color: var(--muted); font-size: 1.2rem; }
.company-details { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 1.5rem 0 0; border-top: 1px solid var(--line); }
.company-details > div { min-width: 0; padding: 1rem 0; border-bottom: 1px solid var(--line); }
.company-details dt { color: var(--muted); font-size: .85rem; font-weight: 700; }
.company-details dd { margin: .25rem 0 0; overflow-wrap: anywhere; font-weight: 650; }
.organization-notice { max-width: var(--max); margin: 0 auto; padding: 2.25rem clamp(1.25rem, 4vw, 2.5rem) 3.5rem; border-top: 1px solid var(--line); }
.home-organization .category { margin-bottom: .55rem; }
.home-organization h2 { margin: 0; font-size: clamp(1.6rem, 3vw, 2.4rem); }
.organization-contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(15rem, .7fr); gap: 2rem; margin-top: 1.2rem; }
.organization-product { margin: 0; color: var(--ink); font-weight: 750; }
.organization-legal, .organization-copy { margin: .25rem 0 0; color: var(--muted); font-size: .9rem; }
.organization-links { display: grid; align-content: start; gap: .35rem; }
.organization-links p { margin: 0; }
.organization-links a { color: var(--ink); font-size: .9rem; }
footer { border-top: 1px solid var(--line); color: var(--muted); }

@media (max-width: 760px) {
  .site-header, footer { align-items: flex-start; flex-direction: column; }
  .site-header nav { gap: .8rem; }
  .hero { min-height: auto; grid-template-columns: 1fr; gap: 3rem; padding-top: 5rem; }
  h1 { font-size: clamp(3.6rem, 18vw, 6rem); }
  .hero-media { grid-row: 2; }
  .organization-contact-grid { grid-template-columns: 1fr; gap: 1rem; }
  .hero-actions { align-items: flex-start; flex-direction: column; }
  .secondary-action { padding-left: 0; }
  .scenario-list { grid-template-columns: 1fr; }
  .overview-points, .feature-list, .workflow ol { grid-template-columns: 1fr; }
  .company-details { grid-template-columns: 1fr; }
  .workflow li { min-height: auto; }
}

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }


/* Lightbox Zoom Modal & Screenshot Refinements */
.screenshot-list figure {
  position: relative;
  overflow: hidden;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s ease;
}
.screenshot-list figure:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
}
.screenshot-list figure img,
.hero-media img,
.article-hero-media img,
.article-body img {
  cursor: zoom-in;
  transition: opacity 0.2s ease;
}
.screenshot-list figure img:hover,
.article-hero-media img:hover {
  opacity: 0.94;
}

/* Lightbox UI */
.lightbox-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background: rgba(8, 10, 10, 0.88);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}
.lightbox-modal.active {
  opacity: 1;
  visibility: visible;
}
.lightbox-container {
  position: relative;
  max-width: min(92vw, 76rem);
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  transform: scale(0.94);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
.lightbox-modal.active .lightbox-container {
  transform: scale(1);
}
.lightbox-image {
  max-width: 100%;
  max-height: calc(85vh - 3rem);
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(244, 241, 232, 0.12);
  background: #121615;
}
.lightbox-caption {
  margin: 0.85rem 0 0;
  color: #e1e5dc;
  font-size: 0.95rem;
  text-align: center;
  max-width: 45rem;
  line-height: 1.45;
}
.lightbox-close {
  position: absolute;
  top: -2.8rem;
  right: 0;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 50%;
  border: 1px solid rgba(244, 241, 232, 0.2);
  background: rgba(23, 27, 26, 0.85);
  color: #f4f1e8;
  font-size: 1.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.15s ease;
}
.lightbox-close:hover {
  background: var(--accent);
  color: #07100e;
  transform: scale(1.08);
}
