/* mxRobot Studios — landing page (design A, "Lit window") */

:root {
  --night: #0B0D12;
  --night-2: #0E1118;
  --panel: #141824;
  --line: #1E2230;
  --line-2: #2A3040;
  --paper: #E8E4DC;
  --ink: #DCD8CF;
  --ink-bright: #F2EEE6;
  --ink-soft: #B9B4AA;
  --ink-mute: #A9A49A;
  --gold: #FFC857;
  --gold-dim: #C9A24E;
  --star: #6EB5FF;
  --display: 'Fraunces', Georgia, serif;
  --body: 'Literata', Georgia, serif;
  --mono: 'IBM Plex Mono', ui-monospace, Menlo, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--night); color: var(--ink); font-family: var(--body); font-size: 18px; line-height: 1.65; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; }
a { color: var(--gold); }
a:hover { color: #FFE09A; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
h1, h2, h3 { color: var(--ink-bright); }
em { font-style: italic; }
.muted { color: var(--ink-mute); }
.todo { color: var(--ink-soft); }

.wrap { max-width: 1280px; margin: 0 auto; padding-left: clamp(16px, 4vw, 48px); padding-right: clamp(16px, 4vw, 48px); }
.band { border-top: 1px solid var(--line); padding: 104px 0; }
.band-alt { background: var(--night-2); }
.num { margin: 0 0 16px; font-family: var(--mono); font-size: 14px; color: var(--star); }
h2 { margin: 0 0 20px; font-family: var(--display); font-weight: 400; font-size: clamp(32px, 3.6vw, 48px); line-height: 1.12; }
h2.wide { max-width: 820px; margin-bottom: 48px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 24px; font-family: var(--mono); font-size: 15px; font-weight: 500; text-decoration: none; border: 0; cursor: pointer; }
.btn-gold { background: var(--gold); color: #14110A; }
.btn-gold:hover { background: #FFD77F; color: #14110A; }
.btn-quiet { border: 1px solid #3A3F4C; color: var(--ink-bright); }
.btn-quiet:hover { border-color: var(--gold); color: var(--ink-bright); }
.btn-line { min-height: 44px; padding: 0 18px; border: 1px solid var(--gold); color: var(--gold); font-weight: 400; font-size: 14px; }

/* Nav */
.nav { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px 24px; padding-top: 20px; padding-bottom: 20px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--ink-bright); text-decoration: none; font-family: var(--display); font-weight: 600; font-size: 20px; }
.brand:hover { color: #fff; }
.brand img { width: 40px; height: 40px; }
.nav nav { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 28px; font-family: var(--mono); font-size: 14px; }
.nav nav a:not(.btn) { color: var(--ink-soft); text-decoration: none; padding: 10px 0; }
.nav nav a:not(.btn):hover { color: var(--ink-bright); }

/* Hero */
.hero-text { padding-top: clamp(48px, 6vw, 88px); padding-bottom: clamp(64px, 8vw, 112px); }
.eyebrow { margin: 0 0 24px; font-family: var(--mono); font-size: 14px; letter-spacing: 0.08em; color: var(--star); }
.hero h1 { margin: 0; font-family: var(--display); font-weight: 400; font-size: clamp(44px, 6.4vw, 92px); line-height: 1.02; letter-spacing: -0.01em; }
.hero h1 em { color: var(--gold); }
.lede { margin: 32px 0 0; max-width: 560px; font-size: clamp(18px, 1.6vw, 21px); color: #C3BEB4; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 40px; }

/* Hero mashup: two games, one diagonal cut */
.mash { position: relative; height: clamp(300px, 42vw, 600px); overflow: hidden; background: #000; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.mash img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.mash-a { object-position: 20% 50%; }
/* --shift moves the right picture sideways without moving the diagonal cut. */
.mash img.mash-b { --shift: 25%; left: var(--shift); right: auto; width: 100%; object-position: 50% 50%;
  clip-path: polygon(calc(58% - var(--shift)) 0, 100% 0, 100% 100%, calc(42% - var(--shift)) 100%); }
.mash::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(11,13,18,0) 60%, rgba(11,13,18,0.55)); pointer-events: none; }
.mash-tag { position: absolute; z-index: 1; bottom: 16px; padding: 6px 12px; background: rgba(11,13,18,0.75); font-family: var(--mono); font-size: 13px; color: var(--ink-bright); }
.mash-tag-a { left: clamp(16px, 4vw, 48px); }
.mash-tag-b { right: clamp(16px, 4vw, 48px); }
@media (max-width: 720px) {
  .mash { height: 520px; }
  .mash-a { height: 55%; object-position: 18% 30%; }
  .mash img.mash-b { --shift: 0%; clip-path: polygon(0 52%, 100% 40%, 100% 100%, 0 100%); object-position: 58% 50%; }
  .mash-tag-a { top: 16px; bottom: auto; }
}

/* Split layout */
.split { display: flex; flex-wrap: wrap; gap: 48px 80px; }
.split-head { flex: 1 1 340px; min-width: 0; }
.split-head p { margin: 0 0 16px; color: var(--ink-soft); }
.split-head .num { color: var(--star); }

/* Cards */
.cards { flex: 2 1 560px; min-width: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.card { text-align: left; padding: 26px; background: transparent; border: 1px solid #232838; color: var(--ink); font-family: var(--body); font-size: 17px; line-height: 1.6; transition: border-color 0.2s ease, background 0.2s ease; }
.card-n { display: block; font-family: var(--mono); font-size: 13px; color: var(--star); }
.card-t { display: block; margin: 8px 0 10px; font-family: var(--display); font-size: 26px; line-height: 1.15; color: var(--ink-bright); }
.card-d { display: block; color: var(--ink-soft); }

/* On the desk */
.desk-games { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 32px; }
.desk-games figure { margin: 0; }
.desk-games img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border: 1px solid var(--line); }
.desk-games figcaption { margin-top: 16px; font-family: var(--display); font-size: clamp(22px, 2vw, 28px); line-height: 1.25; color: var(--ink-bright); }
.desk-games figcaption .num { display: block; margin-bottom: 6px; }
.desk-note { margin: 40px 0 0; }
.desk { display: flex; flex-wrap: wrap; gap: 32px 80px; align-items: baseline; }
.desk > .num { flex: 0 0 260px; margin: 0; }
.desk > div { flex: 1 1 560px; min-width: 0; }
.desk-line { margin: 0 0 20px; font-family: var(--display); font-size: clamp(30px, 3.4vw, 46px); line-height: 1.15; color: var(--ink-bright); }
.desk-line em { color: var(--gold); }
.desk .muted { margin: 0; }

/* How we work */
.how { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 40px 64px; }
.how h3 { margin: 0 0 10px; font-family: var(--display); font-weight: 600; font-size: 22px; }
.how p { margin: 0; color: var(--ink-soft); }
.chips { list-style: none; margin: 64px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.chips li { display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; border: 1px solid var(--line-2); font-family: var(--mono); font-size: 14px; color: #C3BEB4; }

/* Studio facts */
.facts { flex: 1 1 360px; min-width: 0; margin: 0; align-self: flex-start; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.facts div { background: var(--night); padding: 24px; }
.facts dt { font-family: var(--mono); font-size: 13px; color: var(--star); }
.facts dd { margin: 6px 0 0; color: var(--ink); }

/* Contact */
.who { list-style: none; margin: 0 0 28px; padding: 0; display: flex; flex-direction: column; gap: 10px; color: var(--ink-soft); }
.who strong { font-weight: 500; color: var(--ink-bright); }
.mail { font-family: var(--display); font-size: clamp(24px, 2.6vw, 34px); color: var(--gold); word-break: break-word; }
.news { flex: 1 1 380px; min-width: 0; align-self: flex-start; background: var(--panel); border: 1px solid #232838; padding: clamp(20px, 3vw, 36px); }
.news h3 { margin: 0 0 8px; font-family: var(--display); font-weight: 600; font-size: 24px; }
.news .muted { margin: 0 0 20px; font-size: 16px; }
.news form { display: flex; flex-direction: column; gap: 10px; }
.news label { font-family: var(--mono); font-size: 13px; color: var(--ink-soft); }
.news input { min-height: 50px; padding: 0 14px; background: var(--night); border: 1px solid #3A3F4C; color: var(--ink-bright); font-family: var(--body); font-size: 17px; width: 100%; }
.news input::placeholder { color: #7E7A72; }
.signup-msg { min-height: 1.6em; margin: 0; font-size: 15px; color: var(--ink-soft); }

/* Footer */
.foot { border-top: 1px solid var(--line); padding-top: 28px; padding-bottom: 28px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; font-family: var(--mono); font-size: 13px; color: #8A867E; }
.foot-links { display: flex; flex-wrap: wrap; gap: 6px 20px; }
.foot-links a { color: var(--ink-soft); }

/* Toast */
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 20; max-width: calc(100vw - 32px); padding: 12px 18px; background: var(--ink-bright); color: #14110A; font-family: var(--mono); font-size: 14px; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5); }
.toast[hidden] { display: none; }
