/* boardg landing — shared by / (EN) and /es/ (ES). */
/* Self-hosted fonts (SIL OFL, see assets/fonts/OFL-*.txt); Bungee and Space Grotesk 400 are preloaded. */
@font-face { font-family: 'Bungee'; font-style: normal; font-weight: 400; font-display: swap; src: url('/assets/fonts/Bungee_400Regular.ttf') format('truetype'); }
@font-face { font-family: 'Space Grotesk'; font-style: normal; font-weight: 400; font-display: swap; src: url('/assets/fonts/SpaceGrotesk_400Regular.ttf') format('truetype'); }
@font-face { font-family: 'Space Grotesk'; font-style: normal; font-weight: 500; font-display: swap; src: url('/assets/fonts/SpaceGrotesk_500Medium.ttf') format('truetype'); }
@font-face { font-family: 'Space Grotesk'; font-style: normal; font-weight: 600; font-display: swap; src: url('/assets/fonts/SpaceGrotesk_600SemiBold.ttf') format('truetype'); }
@font-face { font-family: 'Space Grotesk'; font-style: normal; font-weight: 700; font-display: swap; src: url('/assets/fonts/SpaceGrotesk_700Bold.ttf') format('truetype'); }
:root {
  --bg: #0E0D12; --surface: #17161E; --surface2: #1F1D28; --line: rgba(255,255,255,.08);
  --text: #F5F1E8; --muted: #A39CB0; --accent: #FF5A3C; --gold: #FFC93C; --violet: #8B7CF6; --teal: #3FD0B6;
  --ink: #1A1216;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: 'Space Grotesk', system-ui, sans-serif; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }

/* nav */
nav { position: sticky; top: 0; z-index: 10; backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); background: rgba(14,13,18,.72); border-bottom: 1px solid var(--line); }
nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 60px; gap: 12px; }
.logo { font-family: 'Bungee', sans-serif; font-size: 20px; }
.logo span { color: var(--accent); }
.navr { display: flex; gap: 18px; align-items: center; font-size: 14px; color: var(--muted); }
.navr a:not(.btn):hover, footer a:hover { color: var(--text); }
/* comfortable tap target; negative margin keeps the visual spacing unchanged */
.navr a:not(.btn) { display: inline-flex; align-items: center; min-height: 40px; padding: 0 6px; margin: 0 -6px; }

/* language switcher: globe, EN · ES; the current language is coral and not link-like */
.lang { display: inline-flex; align-items: center; gap: 2px; color: var(--muted); }
.lang .globe { flex: none; margin-right: 2px; opacity: .8; }
.lang .sep { opacity: .5; }
.lang a[hreflang] { display: inline-flex; align-items: center; justify-content: center; min-height: 40px; min-width: 34px; padding: 0 4px; margin: 0; font-weight: 600; letter-spacing: .04em; color: var(--muted); }
.lang a[hreflang]:hover { color: var(--text); }
.lang a[aria-current="page"], .lang a[aria-current="page"]:hover { color: var(--accent); cursor: default; }

.btn { display: inline-flex; align-items: center; gap: 8px; background: var(--accent); color: var(--ink); font: 700 15px 'Space Grotesk', system-ui, sans-serif; border-radius: 14px; padding: 12px 20px; border: 0; cursor: pointer; transition: transform .15s, box-shadow .2s; box-shadow: 0 8px 30px -8px rgba(255,90,60,.6); }
.btn:hover { transform: translateY(-2px); box-shadow: 0 14px 36px -8px rgba(255,90,60,.7); }
.btn:disabled { opacity: .55; cursor: not-allowed; transform: none; box-shadow: none; }
.btn.sm { padding: 8px 14px; font-size: 13.5px; border-radius: 11px; box-shadow: none; white-space: nowrap; }

/* hero */
.hero { position: relative; overflow: hidden; padding: 72px 0 80px; text-align: center; }
.glow { position: absolute; inset: -20% -10% auto; height: 520px; background: radial-gradient(closest-side, rgba(255,90,60,.22), transparent 70%), radial-gradient(closest-side at 70% 60%, rgba(139,124,246,.16), transparent 70%); filter: blur(10px); pointer-events: none; animation: drift 14s ease-in-out infinite alternate; }
@keyframes drift { to { transform: translate3d(4%, 6%, 0) scale(1.05); } }
.hero .wrap, .cta .wrap { position: relative; }
.eyebrow { display: inline-block; font-size: 13px; color: var(--muted); border: 1px solid var(--line); border-radius: 99px; padding: 6px 12px; margin-bottom: 22px; }
h1 { font-family: 'Bungee', sans-serif; font-weight: 400; font-size: clamp(32px, 6.4vw, 64px); line-height: 1.04; margin: 0 auto 16px; max-width: 14ch; }
h1 em { font-style: normal; color: var(--accent); }
.lede { color: var(--muted); font-size: clamp(16px, 2vw, 19px); max-width: 52ch; margin: 0 auto 36px; line-height: 1.55; }

/* Oracle demo */
.demo { position: relative; max-width: 520px; margin: 0 auto; background: linear-gradient(180deg, var(--surface), #131219); border: 1px solid var(--line); border-radius: 28px; padding: 24px; box-shadow: 0 40px 80px -30px rgba(0,0,0,.8); text-align: left; }
.demo-label { font-size: 13px; color: var(--muted); margin-bottom: 10px; display: flex; justify-content: space-between; }
.demo-label .try { color: var(--gold); }
.chips { display: flex; gap: 8px; margin-bottom: 18px; flex-wrap: wrap; }
.chip { min-width: 46px; height: 44px; border-radius: 13px; background: var(--surface2); border: 1px solid var(--line); color: var(--text); font: 600 16px 'Space Grotesk', system-ui, sans-serif; cursor: pointer; transition: all .15s; padding: 0 12px; }
.chip:hover { border-color: rgba(255,255,255,.25); }
.chip[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--ink); transform: translateY(-1px); }
.roll { width: 100%; justify-content: center; margin-top: 4px; }
.result { margin-top: 18px; height: 96px; border-radius: 18px; background: var(--surface2); border: 1px dashed rgba(255,255,255,.12); display: flex; align-items: center; gap: 14px; padding: 14px; overflow: hidden; }
.result.filled { border-style: solid; border-color: rgba(255,90,60,.4); }
.cover { width: 68px; height: 68px; border-radius: 14px; flex: none; display: grid; place-items: center; font-family: 'Bungee', sans-serif; font-size: 22px; color: rgba(0,0,0,.55); }
.rtitle { font-weight: 700; font-size: 19px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rmeta { color: var(--muted); font-size: 14px; margin-top: 3px; }
.result > div:last-child { min-width: 0; }
.placeholder { color: var(--muted); font-size: 15px; width: 100%; text-align: center; }
/* Each roulette hop drops the next game in, so the change between games is visible. */
.spin .cover, .spin .rtitle, .spin .rmeta { animation: hop .16s ease-out; }
@keyframes hop { from { opacity: .25; transform: translateY(-8px); } }
.pop { animation: pop .45s cubic-bezier(.2,1.6,.4,1); }
@keyframes pop { from { transform: scale(.92); opacity: .4; } }
.demo-foot { margin-top: 14px; font-size: 13px; color: var(--muted); text-align: center; }
.demo-foot a { color: var(--text); border-bottom: 1px solid var(--accent); }

/* sections */
section.feat { padding: 96px 0; border-top: 1px solid var(--line); }
.center { text-align: center; max-width: 620px; margin: 0 auto; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.kicker { font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); font-weight: 700; }
h2 { font-family: 'Bungee', sans-serif; font-weight: 400; font-size: clamp(26px, 3.6vw, 38px); line-height: 1.1; margin: 12px 0 14px; }
.feat p { color: var(--muted); font-size: 17px; line-height: 1.6; margin: 0 0 18px; }
.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.ticks li { display: flex; gap: 10px; font-size: 15.5px; }
.ticks li::before { content: ''; width: 18px; height: 18px; flex: none; border-radius: 6px; background: rgba(255,90,60,.18); box-shadow: inset 0 0 0 5px var(--bg); outline: 1.5px solid var(--accent); margin-top: 2px; }
.visual { aspect-ratio: 1 / .85; border-radius: 28px; background: var(--surface); border: 1px solid var(--line); position: relative; overflow: hidden; }

/* who goes first visual */
.finger { position: absolute; width: 78px; height: 78px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; transition: transform .35s, opacity .35s; }
.finger span { color: var(--ink); }
.finger::after { content: ''; position: absolute; inset: -10px; border-radius: 50%; border: 2px solid currentColor; opacity: .35; }
.finger.hot { outline: 3px solid #fff; }
.finger.lose { opacity: .25; transform: scale(.85); }
.finger.win { transform: scale(1.25); box-shadow: 0 0 0 14px rgba(255,201,60,.18), 0 0 60px rgba(255,201,60,.5); }

/* collection visual */
.shelf { position: absolute; inset: 24px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.shelf div { position: relative; overflow: hidden; border-radius: 14px; animation: rise .7s both; }
/* Blurred box art over the gradient: reads as a shelf of real games without showing covers sharply. */
.shelf .cover-art { position: absolute; inset: -12px; background-size: cover; background-position: center; filter: blur(5px) saturate(1.15); opacity: .85; }
@keyframes rise { from { transform: translateY(16px); opacity: 0; } }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 36px; }
.step { background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 22px; }
.step b { font-family: 'Bungee', sans-serif; font-weight: 400; color: var(--accent); font-size: 22px; }
.step h3 { margin: 10px 0 6px; font-size: 18px; }
.step p { margin: 0; font-size: 15px; line-height: 1.5; }

.faq { max-width: 720px; }
details { border-bottom: 1px solid var(--line); padding: 18px 0; }
summary { cursor: pointer; font-weight: 600; font-size: 17px; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: '+'; color: var(--accent); font-size: 22px; line-height: 1; }
details[open] summary::after { content: '–'; }
details p { margin: 10px 0 0 !important; }

.cta { text-align: center; padding: 100px 0; border-top: 1px solid var(--line); position: relative; overflow: hidden; }
.cta .glow { top: 10%; }
.cta h2 { font-size: clamp(28px, 4.4vw, 46px); }
.cta p { color: var(--muted); margin: 0 0 28px; }

footer { border-top: 1px solid var(--line); padding: 28px 0; color: var(--muted); font-size: 14px; }
footer .wrap { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
footer .logo { font-size: 15px; }
footer .links { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }

/* Scroll reveal only hides content once landing.js has marked <html class="js">. */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s, transform .7s; }
.js .reveal.in { opacity: 1; transform: none; }

/* landing.js never ran (head failsafe): the demo controls are dead; keep the card and its
   "open boardg" line. True no-JS visitors get the same rule from a <noscript> style in each page. */
.no-landing-js .demo > :not(.demo-foot) { display: none; }

@media (max-width: 760px) {
  .grid2, .steps { grid-template-columns: 1fr; gap: 28px; }
  .grid2 .visual { order: -1; }
  .navr a.hide-m { display: none; }
  section.feat { padding: 64px 0; }
  .hero { padding: 48px 0 64px; }
}
@media (max-width: 400px) {
  .wrap { padding: 0 16px; }
  .demo { padding: 18px; border-radius: 22px; }
  .chips { gap: 6px; }
  .chip { min-width: 0; flex: 1 1 auto; padding: 0 10px; }
  .navr { gap: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}
