/* FXMS landing page (fxms.net).  No web fonts, no outside files: system faces only. */

:root {
  --bg: #05060a;
  --panel: #0c0f17;
  --panel-2: #111522;
  --line: rgba(255, 255, 255, .08);
  --line-2: rgba(255, 255, 255, .14);
  --ink: #f1f4f9;
  --ink-2: #a9b3c4;
  --ink-3: #747f93;
  --games: #22e1ff;
  --music: #ff2fd0;
  --tools: #b7ff2a;
  --live: #3dff8b;
  --soon: #ffb020;
  --radius: 18px;
  --font: "Segoe UI Variable Text", "Segoe UI", -apple-system, BlinkMacSystemFont, system-ui, Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: "Segoe UI", -apple-system, BlinkMacSystemFont, system-ui, Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, "Cascadia Mono", "Cascadia Code", "SF Mono", Menlo, Consolas, monospace;
}

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

html {
  background: var(--bg);
  color-scheme: dark;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font: 16px/1.6 var(--font);
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

/* one language at a time: every bilingual text sits twice in the page, once per lang */
html[data-lang="en"] body [lang="fr"]:not([data-keep]),
html[data-lang="fr"] body [lang="en"]:not([data-keep]) { display: none !important; }

img { display: block; max-width: 100%; }
a { color: inherit; }
p { margin: 0; }

:focus-visible { outline: 2px solid var(--games); outline-offset: 3px; border-radius: 6px; }

.nowrap { white-space: nowrap; }
.c-games { --c: var(--games); }
.c-music { --c: var(--music); }
.c-tools { --c: var(--tools); }

.wrap { width: min(1200px, 100% - 48px); margin-inline: auto; }

.skip {
  position: absolute; left: 16px; top: -64px; z-index: 100;
  padding: 10px 14px; border-radius: 10px;
  background: var(--ink); color: var(--bg); font-weight: 700; text-decoration: none;
}
.skip:focus { top: 12px; }

/* ---------------------------------------------------------------- header */

.top {
  position: sticky; top: 0; z-index: 50;
  background: rgba(5, 6, 10, .55);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent;
  transition: background .3s, border-color .3s;
}
.top.is-scrolled { background: rgba(5, 6, 10, .84); border-bottom-color: var(--line); }

.top-inner { display: flex; align-items: center; gap: 20px; height: 64px; }

.brand {
  display: inline-flex; align-items: center; gap: 10px;
  text-decoration: none; color: var(--ink);
  font: 900 21px/1 var(--font-display); letter-spacing: .05em;
}
.brand-mark { width: 22px; height: 22px; flex: none; }

.top-nav { display: flex; gap: 4px; margin-left: auto; }
.top-nav a {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 8px 13px; border-radius: 999px;
  color: var(--ink-2); text-decoration: none; font-weight: 600; font-size: 14.5px;
  transition: color .2s, background .2s;
}
.top-nav a::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%;
  background: var(--c); box-shadow: 0 0 10px var(--c);
}
.top-nav a:hover, .top-nav a[aria-current] { color: var(--ink); background: rgba(255, 255, 255, .06); }

.lang-switch { display: inline-flex; gap: 2px; padding: 3px; border: 1px solid var(--line-2); border-radius: 999px; }
.lang-switch button {
  padding: 7px 10px; border: 0; border-radius: 999px; cursor: pointer;
  font: 700 12px/1 var(--font-mono); letter-spacing: .08em;
  color: var(--ink-3); background: none;
  transition: color .2s, background .2s;
}
.lang-switch button:hover { color: var(--ink); }
.lang-switch button[aria-pressed="true"] { color: var(--bg); background: var(--ink); }

/* ---------------------------------------------------------------- hero */

.hero {
  position: relative; isolation: isolate; overflow: hidden;
  display: flex; min-height: min(100vh, 980px); min-height: min(100svh, 980px);
  margin-top: -64px; /* under the see-through header */
  border-bottom: 1px solid var(--line);
}
.hero-field { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; display: block; background: var(--bg); }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(180deg, rgba(5, 6, 10, .35) 0%, rgba(5, 6, 10, 0) 26%, rgba(5, 6, 10, 0) 62%, rgba(5, 6, 10, .7) 100%);
}

.hero-inner {
  display: flex; flex-direction: column; justify-content: space-between; gap: 56px;
  padding-block: calc(64px + clamp(48px, 10vh, 120px)) clamp(28px, 5vh, 48px);
}

.hero-copy { position: relative; max-width: 1060px; }
.hero-copy::before {
  /* keeps the words readable over the far ridges */
  content: ""; position: absolute; inset: -60px -120px -50px -80px; z-index: -1;
  background: radial-gradient(closest-side, rgba(5, 6, 10, .8), rgba(5, 6, 10, 0));
}

.eyebrow {
  display: flex; align-items: center; gap: 10px; margin-bottom: 22px;
  font: 600 12.5px/1.2 var(--font-mono); letter-spacing: .18em; text-transform: uppercase; color: var(--ink-2);
}
.eyebrow-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--live); box-shadow: 0 0 12px var(--live); flex: none; }

.hero-title {
  margin: 0;
  font: 900 clamp(2.5rem, 1.1rem + 5.4vw, 5.7rem)/1.0 var(--font-display);
  letter-spacing: -.035em;
}
html[data-lang="fr"] .hero-title { font-size: clamp(2.3rem, 1rem + 4.7vw, 5rem); } /* the French lines are longer */
.hero-title .ln { display: block; }
.hero-title em { font-style: normal; color: var(--c); text-shadow: 0 0 36px color-mix(in srgb, var(--c) 45%, transparent); }

.lead { max-width: 58ch; margin-top: 26px; font-size: clamp(1.05rem, .95rem + .45vw, 1.3rem); color: var(--ink-2); }

.doors { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.door {
  position: relative; overflow: hidden;
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; column-gap: 16px; row-gap: 3px;
  padding: 18px 20px 18px 22px; border-radius: 16px;
  text-decoration: none; color: var(--ink);
  background: rgba(12, 15, 23, .74);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border: 1px solid var(--line-2);
  transition: transform .25s, border-color .25s, background .25s;
}
.door::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--c); box-shadow: 0 0 18px var(--c); }
.door-num { grid-row: 1 / span 2; font: 700 13px/1 var(--font-mono); color: var(--c); }
.door-title { font: 800 20px/1.15 var(--font-display); letter-spacing: -.01em; }
.door-items { grid-column: 2; font-size: 13.5px; color: var(--ink-2); }
.door-arrow { grid-column: 3; grid-row: 1 / span 2; width: 18px; height: 18px; color: var(--ink-3); transition: transform .25s, color .25s; }
.door:hover { transform: translateY(-2px); background: rgba(17, 21, 34, .86); border-color: color-mix(in srgb, var(--c) 55%, transparent); }
.door:hover .door-arrow { transform: translateX(4px); color: var(--c); }

/* ---------------------------------------------------------------- sections */

.sec { position: relative; isolation: isolate; padding-block: clamp(72px, 10vw, 128px); scroll-margin-top: 40px; }
.sec + .sec { border-top: 1px solid var(--line); }
.sec-games { --accent: var(--games); }
.sec-music { --accent: var(--music); }
.sec-tools { --accent: var(--tools); }
.sec::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 440px; z-index: -1; pointer-events: none;
  background: radial-gradient(620px 280px at 12% 0%, color-mix(in srgb, var(--accent) 11%, transparent), transparent 72%);
}

.sec-head {
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 22px 64px; align-items: end;
  margin-bottom: 48px;
}
.sec-kicker {
  grid-column: 1 / -1; display: flex; align-items: center; gap: 14px;
  font: 600 13px/1 var(--font-mono); letter-spacing: .2em; text-transform: uppercase; color: var(--accent);
}
.sec-kicker::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, var(--accent), transparent 65%); opacity: .45; }
.sec-num {
  display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 10px;
  border: 1px solid color-mix(in srgb, var(--accent) 50%, transparent);
  background: color-mix(in srgb, var(--accent) 10%, transparent);
  letter-spacing: 0;
}
.sec h2 { margin: 0; font: 900 clamp(2rem, 1.15rem + 2.7vw, 3.4rem)/1.04 var(--font-display); letter-spacing: -.03em; }
.sec-intro { max-width: 52ch; font-size: 1.08rem; color: var(--ink-2); }

/* ---------------------------------------------------------------- cards */

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

.card {
  --c: var(--accent);
  position: relative; overflow: hidden;
  display: flex; flex-direction: column;
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
  border: 1px solid var(--line);
  transition: transform .3s, border-color .3s, box-shadow .3s;
}
.card::before {
  content: ""; position: absolute; inset: 0 0 auto; height: 2px; z-index: 3;
  background: linear-gradient(90deg, transparent, var(--c), transparent); opacity: .75;
}
.card:hover {
  transform: translateY(-3px);
  border-color: color-mix(in srgb, var(--c) 38%, transparent);
  box-shadow: 0 28px 70px -34px color-mix(in srgb, var(--c) 50%, transparent);
}

.card-visual { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; background: #030408; text-decoration: none; }
.card-visual img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s cubic-bezier(.2, .7, .2, 1); }
.card:hover .card-visual img { transform: scale(1.035); }
.card-visual::after {
  content: ""; position: absolute; inset: auto 0 0 0; height: 38%; pointer-events: none;
  background: linear-gradient(180deg, transparent, var(--panel-2));
}

.card-body { flex: 1; display: flex; flex-direction: column; gap: 14px; padding: 24px 26px 26px; }

.tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.tag {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 7px 10px; border-radius: 999px; border: 1px solid var(--line-2);
  font: 600 11.5px/1 var(--font-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2);
  background: rgba(255, 255, 255, .02);
}
.tag-status { color: var(--ink); }
.tag-status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--s); box-shadow: 0 0 10px var(--s); }
.is-live { --s: var(--live); }
.is-soon { --s: var(--soon); }

.card-title { margin: 4px 0 0; font: 900 clamp(1.6rem, 1.2rem + 1vw, 2.15rem)/1.05 var(--font-display); letter-spacing: -.02em; }
.card-tagline { font-size: 1.06rem; font-weight: 600; color: var(--c); }
.card-text { color: var(--ink-2); }

.card-actions { margin-top: auto; padding-top: 8px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; }
.card-note { font-size: 13.5px; color: var(--ink-3); }

.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 13px 20px; border-radius: 12px;
  font: 700 15px/1 var(--font); text-decoration: none;
  transition: transform .2s, box-shadow .2s, filter .2s;
}
.btn svg { width: 15px; height: 15px; flex: none; }
.btn-play { color: var(--bg); background: var(--c); box-shadow: 0 10px 30px -12px var(--c); }
.btn-play:hover { transform: translateY(-1px); filter: brightness(1.08); box-shadow: 0 14px 36px -10px var(--c); }
.btn-play:focus-visible { outline-color: var(--c); }

.facts { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 0; padding: 0; list-style: none; font-size: 14px; color: var(--ink-2); }
.facts li { display: inline-flex; align-items: center; gap: 8px; }
.facts li::before { content: ""; width: 5px; height: 5px; border-radius: 1px; background: var(--c); transform: rotate(45deg); }

.checks { display: grid; gap: 9px; margin: 2px 0 0; padding: 0; list-style: none; color: var(--ink-2); font-size: 15px; }
.checks li { position: relative; padding-left: 28px; }
.checks li::before {
  content: ""; position: absolute; left: 2px; top: .38em; width: 14px; height: 8px;
  border-left: 2px solid var(--c); border-bottom: 2px solid var(--c); transform: rotate(-45deg);
}
kbd {
  padding: 2px 6px; border-radius: 6px; border: 1px solid var(--line-2); background: rgba(255, 255, 255, .05);
  font: 600 .86em/1.4 var(--font-mono); color: var(--ink); white-space: nowrap;
}

/* HyperDim Synth: its mark on a glow of its two colours */
.hd-visual {
  display: grid; place-items: center;
  background:
    radial-gradient(42% 52% at 50% 52%, rgba(0, 240, 224, .17), transparent 70%),
    radial-gradient(26% 32% at 52% 50%, rgba(255, 170, 0, .13), transparent 72%),
    #04060b;
}
.hd-visual img { width: auto; height: 70%; object-fit: contain; filter: drop-shadow(0 0 16px rgba(0, 240, 224, .35)); }
.card:hover .hd-visual img { transform: scale(1.04) rotate(-2deg); }

/* Chords by Scale: chord names over a two-octave keyboard (C major) */
.ch-visual {
  display: flex; flex-direction: column; justify-content: center; gap: 18px;
  padding: 26px 28px 30px;
  background: radial-gradient(70% 70% at 50% 100%, rgba(255, 47, 208, .15), transparent 72%), #07070d;
  color: var(--ink);
}
.ch-visual::after { display: none; }
.ch-head { display: flex; justify-content: space-between; font: 600 12px/1 var(--font-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); }
.ch-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.ch-chip {
  padding: 8px 11px; border-radius: 9px; border: 1px solid var(--line-2);
  font: 700 14px/1 var(--font); color: var(--ink-2); background: rgba(255, 255, 255, .03);
  transition: color .35s, background .35s, border-color .35s, box-shadow .35s;
}
.ch-chip.on { color: var(--bg); background: var(--music); border-color: var(--music); box-shadow: 0 6px 22px -6px var(--music); }
.ch-keys {
  --gap: 3px; --ww: calc((100% - 13 * var(--gap)) / 14);
  position: relative; display: grid; grid-template-columns: repeat(14, 1fr); gap: var(--gap);
  height: 34%; min-height: 84px;
}
.ch-keys .w { border-radius: 0 0 6px 6px; background: linear-gradient(180deg, #dfe3ec, #c7ccd8); transition: background .35s, box-shadow .35s; }
.ch-keys .w.on { background: linear-gradient(180deg, #ff74e6, var(--music)); box-shadow: 0 0 18px -2px rgba(255, 47, 208, .75); }
.ch-keys .b {
  position: absolute; top: 0; height: 60%;
  width: calc(var(--ww) * .62);
  left: calc(var(--i) * (var(--ww) + var(--gap)) - var(--gap) / 2 - var(--ww) * .31);
  border-radius: 0 0 5px 5px; background: linear-gradient(180deg, #2a2b35, #0b0b10); box-shadow: 0 2px 0 rgba(0, 0, 0, .55);
  transition: background .35s;
}
.ch-keys .b.on { background: linear-gradient(180deg, #ff5adf, #b8158f); }

/* CompactPerf: the widget strip on a desktop corner */
.card-wide { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr); }
.card-wide .card-visual { order: 2; aspect-ratio: auto; min-height: 360px; }
.cp-desk {
  background:
    radial-gradient(90% 80% at 85% 0%, rgba(80, 96, 255, .30), transparent 60%),
    radial-gradient(70% 70% at 10% 100%, rgba(183, 255, 42, .08), transparent 70%),
    linear-gradient(160deg, #10142b, #070912 70%);
}
.cp-desk::before {
  /* an open window, out of focus */
  content: ""; position: absolute; left: 7%; top: 30%; width: 62%; height: 50%;
  border-radius: 10px; border: 1px solid rgba(255, 255, 255, .07); background: rgba(255, 255, 255, .035);
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .7);
}
.cp-desk::after { display: none; }
.cp-widget { position: absolute; top: 16px; right: 16px; border-radius: 7px; box-shadow: 0 20px 44px -14px rgba(0, 0, 0, .9); }
.cp-taskbar {
  position: absolute; left: 0; right: 0; bottom: 0; height: 36px;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  background: rgba(14, 16, 26, .9); border-top: 1px solid rgba(255, 255, 255, .06);
}
.cp-taskbar i { width: 18px; height: 18px; border-radius: 5px; background: rgba(255, 255, 255, .14); }
.cp-taskbar i:nth-child(3) { background: rgba(183, 255, 42, .55); }

.more { margin-top: 26px; text-align: center; font: 600 13px/1.4 var(--font-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }

/* ---------------------------------------------------------------- footer */

.foot { border-top: 1px solid var(--line); background: #040509; }
.foot-inner {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 24px 48px;
  padding-block: 40px 44px;
}
.foot-tag { margin-top: 8px; font-size: 14px; color: var(--ink-3); }
.foot-nav { display: flex; gap: 22px; justify-content: center; }
.foot-nav a { display: inline-flex; align-items: center; gap: 8px; color: var(--ink-2); text-decoration: none; font-weight: 600; font-size: 14.5px; }
.foot-nav a::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--c); }
.foot-nav a:hover { color: var(--ink); }
.foot-meta { display: grid; gap: 6px; text-align: right; font-size: 13px; color: var(--ink-3); }

/* ---------------------------------------------------------------- narrower screens */

@media (max-width: 980px) {
  .grid-2 { grid-template-columns: 1fr; }
  .card-wide { display: flex; }
  .card-wide .card-visual { order: 0; aspect-ratio: 16 / 9; min-height: 0; }
}

@media (max-width: 860px) {
  .doors { grid-template-columns: 1fr; }
  .sec-head { grid-template-columns: 1fr; }
  .foot-inner { grid-template-columns: 1fr; text-align: left; }
  .foot-nav { justify-content: flex-start; }
  .foot-meta { text-align: left; }
}

@media (max-width: 600px) {
  .wrap { width: calc(100% - 32px); }
  .top-nav { display: none; }
  .lang-switch { margin-left: auto; }
  .card-body { padding: 20px 20px 22px; }
  .ch-visual { padding: 20px; gap: 14px; }
  .ch-keys { min-height: 64px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0s !important; }
  .card:hover, .door:hover { transform: none; }
  .card:hover .card-visual img { transform: none; }
}
