:root {
  --void: #07060f;
  --ink: #0c0b16;
  --glass: rgba(10, 9, 18, 0.78);
  --paper: #ede8df;
  --fog: #9a96a8;
  --muted: #6e6a7a;
  --amber: #e08a3c;
  --amber-dim: rgba(224, 138, 60, 0.18);
  --cyan: #3ef0e8;
  --cyan-dim: rgba(62, 240, 232, 0.16);
  --line: rgba(237, 232, 223, 0.1);
  --max: 1120px;
  --pad: clamp(1.25rem, 4vw, 2.5rem);
  --display: "Syne", sans-serif;
  --body: "IBM Plex Sans", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
}

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

html {
  scroll-behavior: smooth;
  color-scheme: dark;
  scroll-padding-top: 4.5rem;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--paper);
  background: var(--void);
  font-family: var(--body);
  font-size: 1.05rem;
  line-height: 1.55;
  overflow-x: hidden;
  touch-action: manipulation;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
}

.skip {
  position: absolute;
  left: -999px;
  top: 0.75rem;
  z-index: 20;
  padding: 0.5rem 0.85rem;
  background: var(--paper);
  color: var(--void);
  font-weight: 600;
}

.skip:focus {
  left: 0.75rem;
}

#fx {
  position: fixed;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.scan,
.vignette {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.scan {
  background: repeating-linear-gradient(
    to bottom,
    transparent 0 3px,
    rgba(0, 0, 0, 0.18) 3px 4px
  );
  opacity: 0.35;
  mix-blend-mode: multiply;
  animation: scan-drift 12s linear infinite;
}

.vignette {
  background:
    radial-gradient(ellipse at 18% 12%, rgba(224, 138, 60, 0.09), transparent 42%),
    radial-gradient(ellipse at 82% 18%, rgba(62, 240, 232, 0.08), transparent 40%),
    radial-gradient(ellipse at 50% 110%, rgba(7, 6, 15, 0.95), transparent 55%),
    linear-gradient(to bottom, rgba(7, 6, 15, 0.2), rgba(7, 6, 15, 0.72));
}

@keyframes scan-drift {
  from { background-position: 0 0; }
  to { background-position: 0 80px; }
}

.top,
main,
footer {
  position: relative;
  z-index: 2;
}

.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  max-width: var(--max);
  margin: 0 auto;
  padding: 1.15rem var(--pad);
  flex-wrap: wrap;
}

.top-right {
  display: flex;
  align-items: center;
  gap: 1.2rem;
}

.lang {
  display: inline-flex;
  border: 1px solid var(--line);
}

.lang-btn {
  min-height: 44px;
  min-width: 44px;
  padding: 0 0.7rem;
  border: 0;
  background: transparent;
  color: var(--fog);
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  cursor: pointer;
}

.lang-btn + .lang-btn {
  border-left: 1px solid var(--line);
}

.lang-btn[aria-pressed="true"] {
  color: var(--paper);
  background: rgba(237, 232, 223, 0.08);
}

.lang-btn:hover,
.lang-btn:focus-visible {
  color: var(--paper);
}
  padding: 0 0.75rem;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--fog);
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
}

.fx-toggle[aria-pressed="true"] {
  color: var(--cyan);
  border-color: rgba(62, 240, 232, 0.35);
}

.mark {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  text-decoration: none;
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.mark-glyph {
  width: 0.7rem;
  height: 1.15rem;
  background:
    linear-gradient(var(--paper) 0 58%, var(--amber) 58% 78%, var(--cyan) 78% 100%);
  clip-path: polygon(0 0, 100% 0, 100% 100%, 55% 100%, 55% 72%, 0 72%);
}

nav {
  display: flex;
  gap: 1.4rem;
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

nav a {
  text-decoration: none;
  color: var(--fog);
}

nav a:hover,
nav a:focus-visible {
  color: var(--paper);
}

.hero {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(3rem, 12vh, 7rem) var(--pad) clamp(3.5rem, 10vh, 6rem);
}

.hud {
  margin: 0 0 0.85rem;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  color: var(--fog);
}

.hud-amber { color: var(--amber); }
.hud-cyan { color: var(--cyan); }

.hero h1 {
  margin: 0 0 1.1rem;
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(2.4rem, 7vw, 4.6rem);
  line-height: 0.98;
  letter-spacing: -0.03em;
  max-width: 14ch;
  text-wrap: balance;
}

.lede {
  margin: 0;
  max-width: 38rem;
  color: var(--fog);
  font-size: 1.12rem;
}

.product {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: center;
  max-width: var(--max);
  margin: 0 auto 4.5rem;
  padding: 0 var(--pad);
  scroll-margin-top: 4.5rem;
}

.product-flip {
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
}

.product-flip .product-copy { order: 2; }
.product-flip .product-shots { order: 1; }

.product-copy {
  background: var(--glass);
  border: 1px solid var(--line);
  padding: 1.6rem 1.5rem 1.45rem;
  backdrop-filter: blur(14px);
}

.product-title {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.7rem;
}

.product-title img {
  width: 48px;
  height: 48px;
  border-radius: 10px;
}

.product-title h2 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.pitch {
  margin: 0 0 1rem;
  color: var(--paper);
}

.facts {
  margin: 0 0 1.35rem;
  padding: 0;
  list-style: none;
  color: var(--fog);
}

.facts li {
  position: relative;
  padding: 0.35rem 0 0.35rem 1.1rem;
  border-top: 1px solid var(--line);
}

.facts li:last-child {
  border-bottom: 1px solid var(--line);
}

.facts li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.85rem;
  width: 0.45rem;
  height: 1px;
  background: currentColor;
}

#bravesaver .facts li::before { background: var(--amber); }
#glossa .facts li::before { background: var(--cyan); }

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.55rem 1.05rem;
  text-decoration: none;
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid transparent;
  transition: transform 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.btn:hover,
.btn:focus-visible {
  transform: translateY(-1px);
}

.btn-amber {
  background: var(--amber);
  color: #140e08;
  box-shadow: 0 0 24px var(--amber-dim);
}

.btn-cyan {
  background: var(--cyan);
  color: #041211;
  box-shadow: 0 0 24px var(--cyan-dim);
}

.btn-ghost {
  border-color: var(--line);
  color: var(--paper);
  background: transparent;
}

.btn-ghost:hover,
.btn-ghost:focus-visible {
  border-color: var(--paper);
}

.product-shots {
  display: grid;
  grid-template-columns: 1fr 0.72fr;
  gap: 0.85rem;
  align-items: end;
}

.product-shots.shots-2 {
  grid-template-columns: 1fr 1fr;
  align-items: stretch;
}

.shots-2 .shot {
  aspect-ratio: 16 / 10;
}

.ask {
  margin: 0.85rem 0 0.35rem;
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(1.35rem, 2vw, 1.8rem);
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.shot {
  margin: 0;
  padding: 0;
  border: 1px solid var(--line);
  background: #0a0912;
  cursor: zoom-in;
  overflow: hidden;
}

.shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.shot-main {
  aspect-ratio: 16 / 10;
}

.shot-side {
  aspect-ratio: 4 / 5;
}

.shot:hover img,
.shot:focus-visible img {
  filter: brightness(1.06);
}

footer {
  max-width: var(--max);
  margin: 0 auto;
  padding: 1.5rem var(--pad) 2.5rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
}

footer p { margin: 0; }

footer a {
  color: var(--fog);
  text-decoration: none;
}

footer a:hover,
footer a:focus-visible {
  color: var(--paper);
}

#lightbox {
  width: min(1100px, 94vw);
  max-height: 90vh;
  padding: 0;
  border: 1px solid var(--line);
  background-color: #05040b;
  color: var(--paper);
  overflow: auto;
  overscroll-behavior: contain;
}

#lightbox::backdrop {
  background: rgba(4, 3, 10, 0.82);
}

#lightbox img {
  max-height: 90vh;
  object-fit: contain;
  margin: 0 auto;
}

.lightbox-close {
  position: absolute;
  top: 0.4rem;
  right: 0.5rem;
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  color: var(--paper);
  font-size: 1.8rem;
  cursor: pointer;
}

:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
}

@media (max-width: 860px) {
  .product,
  .product-flip {
    grid-template-columns: 1fr;
  }

  .product-flip .product-copy,
  .product-flip .product-shots {
    order: unset;
  }

  .product-shots {
    grid-template-columns: 1fr 1fr;
  }

  .shot-side {
    aspect-ratio: 16 / 10;
  }

  .hero h1 {
    max-width: none;
  }
}

@media (max-width: 520px) {
  nav { gap: 0.9rem; }

  .product-shots,
  .product-shots.shots-2 {
    grid-template-columns: 1fr;
  }

  footer {
    flex-direction: column;
  }

  .top-right {
    flex-wrap: wrap;
    justify-content: flex-end;
  }

  .fx-toggle {
    font-size: 0.62rem;
    padding: 0 0.55rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .scan { animation: none; }
  .btn { transition: none; }
}
