/* Orb's presentation site: night blue and gold, Cinzel for titles, Inter for the rest
   (the palette of shared/brand.js and client/style.css). */

@font-face { font-family: Cinzel; font-weight: 400; font-display: swap; src: url("fonts/cinzel-400.woff2") format("woff2"); }
@font-face { font-family: Cinzel; font-weight: 600; font-display: swap; src: url("fonts/cinzel-600.woff2") format("woff2"); }
@font-face { font-family: Inter; font-weight: 400; font-display: swap; src: url("fonts/inter-400.woff2") format("woff2"); }
@font-face { font-family: Inter; font-weight: 600; font-display: swap; src: url("fonts/inter-600.woff2") format("woff2"); }

:root {
  --night: #0b1020;
  --deep: #132b52;
  --electric: #1e5fff;
  --sky: #60b7ff;
  --ice: #e6eaf7;
  --gold: #f5c978;
  --gold-dark: #c89b4a;
  --gold-light: #fbe3a8;
  --panel: #0f172c;
  --surface: #16213d;
  --border: rgba(245, 201, 120, 0.14);
  --border-strong: rgba(245, 201, 120, 0.45);
  --text: #dfe4f0;
  --muted: #8f98ae;
  --title-font: Cinzel, Georgia, serif;
  --width: 1120px;
  color-scheme: dark;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--night);
  color: var(--text);
  font: 17px/1.6 Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--gold); text-underline-offset: 3px; }
a:hover { color: var(--gold-light); }

h1, h2, h3 { font-family: var(--title-font); font-weight: 600; color: var(--gold); line-height: 1.2; margin: 0; text-wrap: balance; }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.4rem); letter-spacing: 0.02em; }
h3 { font-size: 1.15rem; letter-spacing: 0.03em; }

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

.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 16px; z-index: 10; background: var(--panel); padding: 8px 12px; border-radius: 8px; }

/* The top bar */
.top {
  position: sticky; top: 0; z-index: 5;
  background: rgba(11, 16, 32, 0.82);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.top .wrap { display: flex; align-items: center; gap: 20px; height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--gold); font: 600 1.3rem var(--title-font); letter-spacing: 0.06em; }
.brand img { width: 34px; height: 34px; }
.top nav { display: flex; gap: 22px; margin-left: auto; }
.top nav a { color: var(--text); text-decoration: none; font-size: 0.95rem; }
.top nav a:hover { color: var(--gold); }
.lang { display: flex; border: 1px solid var(--border-strong); border-radius: 999px; overflow: hidden; font-size: 0.8rem; font-weight: 600; }
.lang a, .lang span { padding: 4px 10px; text-decoration: none; }
.lang span { background: var(--gold); color: #1a1104; }
.lang a { color: var(--text); }
.lang a:hover { background: var(--surface); color: var(--gold); }

/* The hero: the panorama, the logo, what Orb is */
.hero {
  position: relative;
  min-height: min(88vh, 760px);
  display: grid; place-items: center;
  text-align: center;
  padding: 72px 0 96px;
  background:
    linear-gradient(180deg, rgba(11, 16, 32, 0.55) 0%, rgba(11, 16, 32, 0.35) 40%, rgba(11, 16, 32, 0.92) 88%, var(--night) 100%),
    url("img/panorama.webp") center 40% / cover no-repeat;
  overflow: hidden;
}
.hero .logo { width: min(500px, 84vw); height: auto; margin: 0 auto; filter: drop-shadow(0 6px 30px rgba(0, 0, 0, 0.65)); }
.hero h1 {
  margin: 28px auto 0; max-width: 820px;
  font-size: clamp(1.45rem, 3.4vw, 2.3rem);
  color: var(--ice);
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.8);
}
.hero .lead { max-width: 680px; margin: 18px auto 0; font-size: 1.1rem; color: var(--text); text-shadow: 0 1px 12px rgba(0, 0, 0, 0.9); }
.actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: 34px; }

.steam-badge {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 12px 22px; border-radius: 999px;
  background: linear-gradient(135deg, var(--gold-light), var(--gold) 45%, var(--gold-dark));
  color: #1a1104; font-weight: 600; letter-spacing: 0.01em;
  box-shadow: 0 6px 24px rgba(245, 201, 120, 0.25);
}
.steam-badge svg { width: 22px; height: 22px; }
.button {
  display: inline-flex; align-items: center; padding: 12px 22px; border-radius: 999px;
  border: 1px solid var(--border-strong); color: var(--ice); text-decoration: none; font-weight: 600;
  background: rgba(15, 23, 44, 0.55);
}
.button:hover { background: var(--surface); color: var(--gold); }

/* Sections */
section { padding: 88px 0; scroll-margin-top: 60px; }
.section-head { text-align: center; max-width: 760px; margin: 0 auto 48px; }
.section-head .separator { margin: 16px auto; width: 160px; height: 14px; }
.section-head p { color: var(--muted); margin: 0; font-size: 1.05rem; }

/* The two priorities */
.pillars { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.pillar {
  position: relative; padding: 32px; border-radius: 18px;
  background: linear-gradient(160deg, rgba(19, 43, 82, 0.65), var(--panel) 70%);
  border: 1px solid var(--border);
}
.pillar .icon { width: 48px; height: 48px; margin-bottom: 18px; }
.pillar h3 { font-size: 1.35rem; margin-bottom: 10px; }
.pillar p { margin: 0; }
.pillar ul { margin: 14px 0 0; padding-left: 20px; color: var(--muted); }
.pillar li { margin: 4px 0; }
.quote {
  margin: 40px auto 0; max-width: 760px; text-align: center;
  font: 400 1.25rem/1.5 var(--title-font); color: var(--gold-light);
}
.quote small { display: block; margin-top: 8px; font: 0.9rem Inter, sans-serif; color: var(--muted); }

/* A picture of the table */
.shot {
  margin: 0; border-radius: 16px; overflow: hidden;
  border: 1px solid var(--border-strong);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.55), 0 0 0 6px rgba(245, 201, 120, 0.04);
  background: var(--panel);
}
.shot button { all: unset; display: block; cursor: zoom-in; width: 100%; }
.shot button:focus-visible { outline: 2px solid var(--sky); outline-offset: -2px; }
.shot img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
.shot figcaption { padding: 12px 18px; font-size: 0.9rem; color: var(--muted); border-top: 1px solid var(--border); }

.showcase { padding-top: 0; }
.showcase .shot { max-width: 1040px; margin-inline: auto; }

/* The AIs it connects to, and what they make */
.ai { background: radial-gradient(ellipse 70% 50% at 50% 0%, rgba(30, 95, 255, 0.14), transparent 100%), var(--night); }
.services { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.service {
  padding: 26px; border-radius: 16px;
  background: linear-gradient(160deg, rgba(19, 43, 82, 0.65), var(--panel) 70%);
  border: 1px solid var(--border-strong);
}
.service .icon { width: 36px; height: 36px; margin-bottom: 12px; }
.service .kind { display: block; font-size: 0.78rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--sky); }
.service h3 { margin: 4px 0 8px; }
.service p { margin: 0; color: var(--muted); font-size: 0.97rem; }
.services-note { margin: 22px auto 0; max-width: 720px; text-align: center; color: var(--muted); font-size: 0.95rem; }
.ai .story { margin-top: 72px; }
.story-row.wide { grid-template-columns: 1fr; gap: 28px; }
.story-row.wide > div { max-width: 760px; margin: 0 auto; text-align: center; }

/* The features */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature {
  padding: 26px; border-radius: 16px;
  background: var(--panel); border: 1px solid var(--border);
  transition: border-color 0.2s, transform 0.2s;
}
.feature:hover { border-color: var(--border-strong); transform: translateY(-2px); }
.feature .icon { width: 36px; height: 36px; margin-bottom: 14px; }
.feature h3 { margin-bottom: 8px; }
.feature p { margin: 0; color: var(--muted); font-size: 0.97rem; }

/* Pictures with their words, one side then the other */
.story { display: grid; gap: 72px; }
.story-row { display: grid; grid-template-columns: 1.25fr 1fr; gap: 48px; align-items: center; }
.story-row:nth-child(even) .shot { order: 2; }
.story-row h3 { font-size: 1.5rem; margin-bottom: 12px; }
.story-row p { margin: 0 0 12px; }
.story-row .tag { display: inline-block; margin-bottom: 10px; font-size: 0.78rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--sky); }

/* Playing with friends */
.together { background: linear-gradient(180deg, var(--night), #0d1a33 50%, var(--night)); }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: step; }
.step { position: relative; padding: 30px 26px 26px; border-radius: 16px; background: var(--panel); border: 1px solid var(--border); }
.step::before {
  counter-increment: step; content: counter(step);
  display: grid; place-items: center; width: 40px; height: 40px; margin-bottom: 16px; border-radius: 50%;
  font: 600 1.1rem var(--title-font); color: #1a1104;
  background: linear-gradient(135deg, var(--gold-light), var(--gold-dark));
}
.step h3 { margin-bottom: 8px; }
.step p { margin: 0; color: var(--muted); font-size: 0.97rem; }
.notes { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-top: 24px; }
.note { padding: 22px 26px; border-radius: 16px; border: 1px dashed var(--border-strong); }
.note h3 { font-size: 1rem; margin-bottom: 6px; }
.note p { margin: 0; color: var(--muted); font-size: 0.95rem; }

/* Coming to Steam */
.steam {
  text-align: center;
  background:
    radial-gradient(ellipse 60% 55% at 50% 45%, rgba(30, 95, 255, 0.18), transparent 100%),
    var(--night);
}
.steam .mark { width: 96px; height: 96px; margin: 0 auto 20px; }
.steam p { max-width: 620px; margin: 14px auto 0; color: var(--muted); }

/* The footer */
footer { border-top: 1px solid var(--border); padding: 36px 0 48px; font-size: 0.88rem; color: var(--muted); }
footer .wrap { display: flex; flex-wrap: wrap; gap: 16px 32px; justify-content: space-between; }
footer p { margin: 0; }

/* A picture opened big */
.viewer { padding: 0; border: 0; background: transparent; max-width: 96vw; max-height: 92vh; }
.viewer::backdrop { background: rgba(5, 8, 16, 0.88); }
.viewer img { max-width: 96vw; max-height: 80vh; width: auto; height: auto; border-radius: 12px; border: 1px solid var(--border-strong); }
.viewer p { margin: 10px 0 0; text-align: center; color: var(--text); font-size: 0.95rem; }
.viewer form { position: fixed; top: 14px; right: 14px; margin: 0; }
.viewer form button {
  width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--border-strong);
  background: var(--panel); color: var(--ice); font-size: 1.4rem; cursor: pointer;
}

/* Narrower screens */
@media (max-width: 960px) {
  .features, .services { grid-template-columns: repeat(2, 1fr); }
  .story-row { grid-template-columns: 1fr; gap: 22px; }
  .story-row:nth-child(even) .shot { order: 0; }
  .steps { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  body { font-size: 16px; }
  .top nav { display: none; }
  .lang { margin-left: auto; }
  section { padding: 64px 0; }
  .hero { min-height: 0; padding: 56px 0 72px; }
  .pillars, .features, .services, .notes { grid-template-columns: 1fr; }
  .ai .story { margin-top: 52px; }
  .pillar { padding: 24px; }
  .story { gap: 52px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .feature { transition: none; }
  .feature:hover { transform: none; }
}
