/* Aris Digital: one stylesheet for every page. The dark masthead, call to action and footer keep their night colours
   in both schemes; the light sections' colours are tokens, redefined for dark mode below. */

@font-face {
  font-family: "Inter";
  src: url("fonts/Inter.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #ffffff;
  --bg-tint: #f5f6fb;
  --surface: #ffffff;
  --ink: #0d1024;
  --text: #3a4060;
  --muted: #6b7190;
  --line: #e4e6f0;
  --link: #4338ca;
  --gold: #f5b942;
  --night: #070815;
  --on-night: #eef0ff;
  --on-night-muted: #a7acd0;
  --radius: 20px;
  --shadow: 0 1px 2px rgb(13 16 36 / 6%), 0 8px 24px rgb(13 16 36 / 7%);
  --shadow-lg: 0 2px 4px rgb(13 16 36 / 6%), 0 24px 60px rgb(13 16 36 / 16%);
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0a0c1c;
    --bg-tint: #0e1127;
    --surface: #131735;
    --ink: #f1f2fb;
    --text: #c9cce3;
    --muted: #9aa0c3;
    --line: #262b52;
    --link: #b4b5ff;
    --shadow: 0 1px 2px rgb(0 0 0 / 40%), 0 8px 24px rgb(0 0 0 / 30%);
    --shadow-lg: 0 2px 4px rgb(0 0 0 / 40%), 0 24px 60px rgb(0 0 0 / 50%);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
/* Night behind the page, so a short page, or scrolling past either end, meets the masthead's and footer's colour */
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; background: var(--night); }

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

img { display: block; max-width: 100%; }
p { margin: 0; }
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 6px; }

h1, h2, h3 { margin: 0; color: var(--ink); font-weight: 700; line-height: 1.15; letter-spacing: -0.025em; }

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

.skip {
  position: absolute; top: -60px; left: 12px; z-index: 10;
  padding: 10px 16px; border-radius: 10px;
  background: #fff; color: #1e1b4b; font-weight: 600;
}
.skip:focus { top: 12px; }

/* The night masthead: the header, and the home page's hero or a page's title */

.masthead {
  position: relative; overflow: hidden; color: var(--on-night);
  background:
    radial-gradient(900px 520px at 88% -12%, rgb(139 92 246 / 38%), transparent 62%),
    radial-gradient(760px 460px at 6% -6%, rgb(79 70 229 / 40%), transparent 60%),
    radial-gradient(640px 420px at 62% 118%, rgb(245 185 66 / 15%), transparent 62%),
    linear-gradient(180deg, #0c0e28, var(--night) 72%);
}
.masthead::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(rgb(255 255 255 / 9%) 1px, transparent 1px);
  background-size: 22px 22px;
  -webkit-mask-image: linear-gradient(180deg, #000, transparent 85%);
  mask-image: linear-gradient(180deg, #000, transparent 85%);
}
.masthead > .wrap { position: relative; }

.site-header { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 24px; padding: 18px 0; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: #fff; font-size: 17px; font-weight: 700; letter-spacing: -0.01em; }
.brand:hover { color: #fff; text-decoration: none; }
.mark { flex: none; width: 30px; height: 30px; filter: drop-shadow(0 4px 14px rgb(99 102 241 / 50%)); }
.site-nav { display: flex; flex-wrap: wrap; gap: 2px; padding: 4px; border: 1px solid rgb(255 255 255 / 10%); border-radius: 999px; background: rgb(255 255 255 / 4%); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.site-nav a { padding: 7px 16px; border-radius: 999px; color: var(--on-night-muted); font-size: 14px; font-weight: 500; }
.site-nav a:hover { background: rgb(255 255 255 / 8%); color: #fff; text-decoration: none; }
.site-nav a[aria-current="page"] { background: rgb(255 255 255 / 13%); color: #fff; }

/* Home: the hero */

.hero { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr); gap: 40px; align-items: center; padding: 48px 0 96px; }
.pill {
  display: inline-flex; align-items: center; gap: 10px; margin-bottom: 24px; padding: 6px 14px 6px 11px;
  border: 1px solid rgb(255 255 255 / 14%); border-radius: 999px; background: rgb(255 255 255 / 6%);
  color: var(--on-night); font-size: 13px; font-weight: 600; letter-spacing: 0.02em;
}
.spark { width: 8px; height: 8px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 4px rgb(245 185 66 / 18%), 0 0 16px rgb(245 185 66 / 80%); }
.hero h1 { color: #fff; font-size: clamp(42px, 6vw, 74px); font-weight: 800; line-height: 1.02; letter-spacing: -0.04em; }
.gradient-text {
  background: linear-gradient(100deg, #fde68a 0%, #f5b942 38%, #f472b6 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.lede { max-width: 34em; margin-top: 22px; color: var(--on-night-muted); font-size: clamp(17px, 1.6vw, 19px); }
.hero-note { display: flex; align-items: center; gap: 12px; margin-top: 36px; color: var(--on-night-muted); font-size: 14px; }
.avatars { display: flex; }
.avatars img { width: 34px; height: 34px; margin-left: -9px; border: 2px solid #0b0d22; border-radius: 50%; object-fit: cover; }
.avatars img:first-child { margin-left: 0; }

.hero-art { position: relative; height: 540px; perspective: 1400px; }
.hero-art::before { content: ""; position: absolute; inset: 14% 8%; border-radius: 50%; background: radial-gradient(closest-side, rgb(139 92 246 / 55%), transparent); filter: blur(40px); }
.phone {
  position: absolute; top: 50%; left: 50%; width: 224px; aspect-ratio: 9 / 19.5; padding: 7px; border-radius: 36px;
  background: linear-gradient(160deg, #2c3163, #0d0f24);
  box-shadow: 0 0 0 1px rgb(255 255 255 / 12%), 0 30px 70px rgb(0 0 0 / 60%);
}
.phone img { width: 100%; height: 100%; border-radius: 29px; object-fit: cover; }
.phone-1 { transform: translate(-120%, -45%) rotateY(18deg) rotateZ(-4deg); opacity: 0.92; }
.phone-2 { z-index: 2; transform: translate(-50%, -52%); animation: float 7s ease-in-out infinite; }
.phone-3 { transform: translate(20%, -45%) rotateY(-18deg) rotateZ(4deg); opacity: 0.92; }
@keyframes float { 50% { transform: translate(-50%, -55%); } }

/* Buttons */

.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.button {
  display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 12px 22px;
  border: 1px solid transparent; border-radius: 12px; font-size: 15px; font-weight: 600; overflow-wrap: anywhere;
  transition: transform 0.2s ease, filter 0.2s ease, background-color 0.2s ease;
}
.button:hover { text-decoration: none; transform: translateY(-1px); }
.button.primary { background: linear-gradient(135deg, #6366f1, #8b5cf6); color: #fff; box-shadow: 0 10px 28px rgb(99 102 241 / 42%), inset 0 1px 0 rgb(255 255 255 / 25%); }
.button.primary:hover { color: #fff; filter: brightness(1.08); }
.button.ghost { border-color: rgb(255 255 255 / 18%); background: rgb(255 255 255 / 6%); color: #fff; }
.button.ghost:hover { background: rgb(255 255 255 / 12%); color: #fff; }
.button.light { background: #fff; color: #1e1b4b; box-shadow: 0 10px 28px rgb(0 0 0 / 30%); }
.button.light:hover { color: #1e1b4b; }

/* Home: sections */

.section { padding: 96px 0; }
.section.tint { background: var(--bg-tint); }
.section-head { max-width: 640px; margin-bottom: 44px; }
.kicker { margin-bottom: 12px; color: var(--link); font-size: 13px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; }
.section-head h2 { font-size: clamp(30px, 4vw, 46px); letter-spacing: -0.035em; }
.section-head .sub { margin-top: 14px; color: var(--muted); font-size: 18px; }

.games { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 28px; }
.game {
  position: relative; display: flex; flex-direction: column; overflow: hidden;
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.game::before { content: ""; position: absolute; inset: 0 0 auto; z-index: 2; height: 3px; background: var(--game); }
.game:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg), 0 0 0 1px color-mix(in srgb, var(--game) 45%, transparent); }
.game-art { position: relative; overflow: hidden; aspect-ratio: 4 / 3; background: var(--bg-tint); }
.game-art img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s ease; }
.game:hover .game-art img { transform: scale(1.06); }
.game-art::after { content: ""; position: absolute; inset: auto 0 0; height: 45%; background: linear-gradient(transparent, rgb(7 8 21 / 55%)); }
.genre {
  position: absolute; bottom: 14px; left: 14px; z-index: 1; padding: 5px 12px;
  border: 1px solid rgb(255 255 255 / 25%); border-radius: 999px; background: rgb(7 8 21 / 45%);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); color: #fff; font-size: 12px; font-weight: 600;
}
.game-body { display: flex; flex: 1; flex-direction: column; gap: 10px; padding: 22px 22px 20px; }
.game h3 { font-size: 20px; }
.game-body > p { font-size: 15px; }
.game-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line); }
.status { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-size: 13px; font-weight: 600; }
.status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--game); box-shadow: 0 0 0 3px color-mix(in srgb, var(--game) 25%, transparent); }
.arrow-link { font-size: 14px; font-weight: 600; }
.arrow-link::after { content: " \2192"; }

.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 24px; }
.feature { padding: 28px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); }
.feature-icon { display: grid; width: 48px; height: 48px; place-items: center; border-radius: 14px; background: linear-gradient(135deg, #6366f1, #8b5cf6); box-shadow: 0 10px 24px rgb(99 102 241 / 35%); color: #fff; }
.feature-icon svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.feature h3 { margin: 20px 0 8px; font-size: 18px; }
.feature p { font-size: 15px; }

/* The night call to action, above the footer */

.cta {
  position: relative; overflow: hidden; padding: 88px 0; color: var(--on-night);
  background:
    radial-gradient(700px 360px at 12% 125%, rgb(245 185 66 / 18%), transparent 60%),
    radial-gradient(820px 420px at 92% -25%, rgb(139 92 246 / 42%), transparent 60%),
    linear-gradient(135deg, #12153a, var(--night));
}
.cta-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px 40px; }
.cta h2 { color: #fff; font-size: clamp(30px, 4vw, 46px); letter-spacing: -0.035em; }
.cta p { margin-top: 10px; color: var(--on-night-muted); font-size: 18px; }

/* Footer */

.site-footer { padding: 64px 0 40px; border-top: 1px solid rgb(255 255 255 / 6%); background: var(--night); color: var(--on-night-muted); font-size: 14px; }
.footer-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 32px 48px; padding-bottom: 36px; border-bottom: 1px solid rgb(255 255 255 / 8%); }
.footer-brand p { max-width: 24em; margin-top: 14px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 32px 64px; }
.footer-links > div { display: flex; flex-direction: column; gap: 10px; }
.footer-title { color: #fff; font-size: 12px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; }
.site-footer a { color: var(--on-night-muted); }
.site-footer a:hover { color: #fff; }
.site-footer .brand { color: #fff; }
.footer-legal { padding-top: 24px; }

/* A page's title in the masthead, and the text pages below it */

.page-band { max-width: 780px; padding: 36px 0 76px; }
.eyebrow { margin-bottom: 14px; color: var(--on-night-muted); font-size: 14px; font-weight: 500; }
.eyebrow a { color: var(--on-night-muted); text-decoration: underline; text-underline-offset: 3px; }
.eyebrow a:hover { color: #fff; }
.page-band h1 { color: #fff; font-size: clamp(34px, 5vw, 56px); font-weight: 800; line-height: 1.05; letter-spacing: -0.035em; }
.meta { margin-top: 16px; color: var(--on-night-muted); font-size: 18px; }
.meta a { color: #c7c9ff; }
.page-band .actions { margin-top: 28px; }

.doc { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 64px; align-items: start; padding: 64px 0 96px; }
.page-body { padding: 64px 0 96px; }
.toc { position: sticky; top: 24px; padding: 18px 16px 8px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); box-shadow: var(--shadow); font-size: 14px; }
.toc summary { margin: 0 6px 10px; color: var(--ink); font-size: 12px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; cursor: pointer; }
.toc ol { margin: 0 0 8px; padding: 0; list-style: none; }
.toc a { display: block; padding: 6px 8px; border-radius: 8px; color: var(--muted); line-height: 1.35; }
.toc a:hover { background: var(--bg-tint); color: var(--ink); text-decoration: none; }

.prose { max-width: 70ch; }
.prose section { scroll-margin-top: 24px; }
.prose h2 { margin: 48px 0 12px; font-size: 22px; letter-spacing: -0.02em; }
.prose > section:first-child h2 { margin-top: 0; }
.prose p, .prose ul, .prose ol { margin: 0 0 16px; }
.prose ul, .prose ol { padding-left: 22px; }
.prose li { margin-bottom: 8px; }
.prose li::marker { color: #8b5cf6; }
.prose strong { color: var(--ink); font-weight: 600; }
.prose a { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.summary { margin: 32px 0 8px; padding: 26px 28px 12px; border: 1px solid var(--line); border-left: 4px solid #6366f1; border-radius: 16px; background: var(--bg-tint); }
.prose .summary h2 { margin-top: 0; font-size: 18px; }

.policy-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 20px; margin: 0 0 56px; padding: 0; list-style: none; }
.policy-cards a {
  display: flex; align-items: center; gap: 16px; padding: 14px; border: 1px solid var(--line); border-radius: 16px;
  background: var(--surface); box-shadow: var(--shadow); color: var(--ink); transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.policy-cards a:hover { box-shadow: var(--shadow-lg); text-decoration: none; transform: translateY(-3px); }
.policy-cards img { flex: none; width: 76px; height: 57px; border-radius: 10px; object-fit: cover; }
.policy-cards strong { display: block; font-size: 16px; line-height: 1.3; }
.policy-cards span span { color: var(--link); font-size: 14px; font-weight: 600; }
.policy-cards span span::after { content: " \2192"; }

.faq-title { margin-bottom: 18px; font-size: 22px; }
.faq { max-width: 760px; margin-bottom: 12px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); box-shadow: var(--shadow); }
.faq summary { position: relative; padding: 18px 52px 18px 20px; color: var(--ink); font-weight: 600; list-style: none; cursor: pointer; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; top: 50%; right: 20px; color: #8b5cf6; font-size: 22px; font-weight: 400; transform: translateY(-50%); }
.faq[open] summary::after { content: "\2212"; }
.faq > div { padding: 0 20px 18px; }

/* Things that rise into view as the page scrolls, where the browser can tie an animation to scrolling (no script:
   elsewhere they simply show) */

@keyframes rise { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .reveal { animation: rise linear both; animation-timeline: view(); animation-range: entry 0% entry 100%; }
  }
}

/* Smaller screens */

@media (max-width: 920px) {
  .hero { grid-template-columns: 1fr; gap: 8px; padding: 28px 0 64px; }
  .hero-art { height: 400px; }
  .phone { width: 168px; padding: 5px; border-radius: 28px; }
  .phone img { border-radius: 23px; }
  .doc { grid-template-columns: 1fr; gap: 24px; padding-top: 40px; }
  .toc { position: static; }
}

@media (max-width: 600px) {
  .wrap { width: calc(100% - 32px); }
  .site-nav a { padding: 6px 12px; }
  .section { padding: 64px 0; }
  .hero-art { height: 330px; }
  .phone { width: 138px; }
  .cta { padding: 64px 0; }
  .page-band { padding-bottom: 56px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .phone-2 { animation: none; }
  .game, .game-art img, .button, .policy-cards a { transition: none; }
}

@media print {
  body { background: #fff; color: #000; font-size: 11pt; }
  .masthead, .cta, .site-footer { background: none; color: #000; }
  .masthead::before, .site-nav, .toc, .hero-art, .skip { display: none; }
  .page-band h1, .hero h1, .brand { color: #000; }
  .doc { display: block; }
  a { color: inherit; }
}
