/* ==========================================================================
   Right Gaming Studio — "Arcade Daylight" (bright theme)
   ========================================================================== */

:root {
  /* Palette — light */
  --bg:       #F4F1FF;
  --bg-2:     #E9E4FF;
  --surface:  #FFFFFF;
  --ink:      #17122E;
  --muted:    #5C5685;
  --line:     rgba(23, 18, 46, 0.12);

  --gold:     #FFC53A;   /* button / logo accent */
  --btn-ink:  #2A1D00;   /* text on gold */
  --magenta:  #D81E6A;   /* headline accent + kickers */
  --accent:   #6A21E0;   /* links + focus */

  /* Type */
  --display: "Space Grotesk", system-ui, sans-serif;
  --body:    "Inter", system-ui, sans-serif;
  --mono:    "Space Mono", ui-monospace, monospace;

  /* Layout */
  --wrap: 1140px;
  --gutter: clamp(20px, 5vw, 64px);
  --radius: 16px;
}

/* --- Reset-ish --------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  overflow-x: hidden;
  background-image:
    radial-gradient(60vw 50vh at 12% -8%, rgba(106, 33, 224, 0.10), transparent 60%),
    radial-gradient(50vw 40vh at 96% 4%, rgba(216, 30, 106, 0.08), transparent 55%);
  background-attachment: fixed;
}
svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { margin: 0; font-family: var(--display); line-height: 1.05; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }

/* --- Utilities --------------------------------------------------------- */
.skip-link {
  position: absolute; left: 12px; top: -48px;
  background: var(--gold); color: var(--btn-ink); padding: 10px 16px;
  border-radius: 8px; font-weight: 700; z-index: 100;
  transition: top .18s ease;
}
.skip-link:focus { top: 12px; }

:where(a, button, [tabindex]):focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}

/* CRT scanline overlay (signature texture, kept subtle on light) */
.crt {
  position: fixed; inset: 0; pointer-events: none; z-index: 90;
  mix-blend-mode: multiply; opacity: .35;
  background:
    repeating-linear-gradient(
      to bottom,
      rgba(23,18,46,.04) 0,
      rgba(23,18,46,.04) 1px,
      transparent 1px,
      transparent 3px
    );
}

/* --- Header / nav ------------------------------------------------------ */
.site-header {
  position: sticky; top: 0; z-index: 80;
  backdrop-filter: blur(10px);
  background: linear-gradient(to bottom, rgba(244,241,255,.92), rgba(244,241,255,.62));
  border-bottom: 1px solid var(--line);
}
.nav {
  max-width: var(--wrap); margin: 0 auto;
  padding: 16px var(--gutter);
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
}
.brand {
  font-family: var(--display); font-weight: 700; letter-spacing: .06em;
  font-size: 20px; line-height: 1; color: var(--ink); display: grid;
}
.brand__sub {
  font-family: var(--mono); font-size: 9px; letter-spacing: .32em;
  color: var(--muted); font-weight: 400; margin-top: 4px;
}

.nav__menu { display: flex; align-items: center; gap: 28px; }
.nav__menu a {
  font-family: var(--mono); font-size: 13px; letter-spacing: .04em;
  color: var(--muted); transition: color .15s ease;
}
.nav__menu a:hover { color: var(--ink); }
.nav__cta {
  color: var(--btn-ink) !important; background: var(--gold);
  padding: 8px 16px; border-radius: 999px; font-weight: 700;
}
.nav__cta:hover { filter: brightness(1.05); }

.nav__toggle {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: 0; cursor: pointer; padding: 8px;
}
.nav__toggle span {
  width: 24px; height: 2px; background: var(--ink); border-radius: 2px;
  transition: transform .2s ease, opacity .2s ease;
}
.nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* --- Hero -------------------------------------------------------------- */
.hero {
  max-width: var(--wrap); margin: 0 auto;
  padding: clamp(56px, 11vw, 128px) var(--gutter) clamp(48px, 8vw, 88px);
}
.eyebrow {
  font-family: var(--mono); font-size: 12px; letter-spacing: .18em;
  text-transform: uppercase; color: var(--muted);
}
.hero__title {
  margin: 20px 0 24px;
  font-size: clamp(34px, 8.5vw, 100px);
  font-weight: 700; letter-spacing: -.01em;
  overflow-wrap: break-word;
}
.hero__line { display: block; }
.hero__line--accent { color: var(--magenta); }
.hero__lede { max-width: 52ch; color: var(--muted); font-size: clamp(16px, 2vw, 19px); }

.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }

.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--display); font-weight: 600; letter-spacing: .02em;
  padding: 14px 24px; border-radius: 999px;
  transition: transform .12s ease, box-shadow .2s ease, border-color .2s ease, color .2s ease;
}
.btn:active { transform: translateY(1px); }
.btn--primary {
  background: var(--gold); color: var(--btn-ink);
  box-shadow: 0 8px 22px rgba(255,197,58,.4), inset 0 0 0 1px rgba(0,0,0,.06);
}
.btn--primary:hover { box-shadow: 0 10px 30px rgba(255,197,58,.55); }
.btn--ghost {
  color: var(--ink); border: 1px solid var(--line);
  background: rgba(255,255,255,.55);
}
.btn--ghost:hover { border-color: var(--accent); color: var(--accent); }

/* --- Section chrome ---------------------------------------------------- */
.section-title {
  font-size: clamp(30px, 5vw, 52px); font-weight: 700; letter-spacing: -.01em;
  margin-bottom: clamp(28px, 4vw, 48px);
}
.section-title__kicker {
  display: block; font-family: var(--mono); font-size: 12px;
  letter-spacing: .28em; text-transform: uppercase; color: var(--magenta);
  margin-bottom: 14px;
}

/* --- Pillars ----------------------------------------------------------- */
.pillars, .culture, .contact {
  max-width: var(--wrap); margin: 0 auto;
  padding: clamp(48px, 8vw, 96px) var(--gutter);
}
.pillars { border-top: 1px solid var(--line); }
.pillars__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.pillar {
  padding: 34px 28px;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 6px 22px rgba(23,18,46,.06);
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.pillar:hover {
  transform: translateY(-4px); border-color: rgba(216,30,106,.4);
  box-shadow: 0 14px 34px rgba(23,18,46,.12);
}
.pillar h2 { font-size: 28px; margin-bottom: 12px; letter-spacing: .01em; }
.pillar p { color: var(--muted); font-size: 16px; }

/* --- Culture ----------------------------------------------------------- */
.culture { border-top: 1px solid var(--line); }
.culture__body {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: clamp(24px, 5vw, 56px); max-width: 900px;
}
.culture__body p { color: var(--muted); font-size: 16.5px; }

/* --- Contact ----------------------------------------------------------- */
.contact {
  border-top: 1px solid var(--line); text-align: center;
}
.contact__title { margin-bottom: 18px; }
.contact__lede { color: var(--muted); max-width: 46ch; margin: 0 auto 30px; }

/* --- Legal pages ------------------------------------------------------- */
.legal {
  max-width: 760px; margin: 0 auto;
  padding: clamp(40px, 8vw, 80px) var(--gutter) clamp(56px, 9vw, 96px);
}
.legal .eyebrow a { color: var(--accent); }
.legal .eyebrow a:hover { color: var(--magenta); }
.legal__title {
  font-family: var(--display); font-weight: 700; letter-spacing: -.01em;
  font-size: clamp(34px, 6vw, 56px); margin: 16px 0 10px;
}
.legal__subtitle { color: var(--muted); font-size: 16px; margin: 4px 0 10px; }
.legal__updated { font-family: var(--mono); font-size: 12px; color: var(--muted); }
.legal__body { margin-top: 36px; color: var(--muted); }
.legal__body h2 {
  font-family: var(--display); color: var(--ink);
  font-size: clamp(20px, 3vw, 26px); margin: 40px 0 14px;
  padding-top: 22px; border-top: 1px solid var(--line);
}
.legal__body h3 {
  font-family: var(--display); color: var(--ink);
  font-size: clamp(17px, 2.4vw, 20px); margin: 26px 0 10px;
}
.legal__body p { margin-bottom: 16px; }
.legal__body ul { margin: 0 0 16px; padding-left: 22px; list-style: disc; }
.legal__body li { margin-bottom: 8px; }
.legal__body strong { color: var(--ink); font-weight: 600; }
.legal__body a { color: var(--accent); word-break: break-word; }
.legal__body a:hover { color: var(--magenta); }

/* --- Footer ------------------------------------------------------------ */
.footer {
  border-top: 1px solid var(--line);
  max-width: var(--wrap); margin: 0 auto;
  padding: 26px var(--gutter) 40px;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px;
}
.footer__legal { font-family: var(--mono); font-size: 12px; color: var(--muted); }
.footer__links { display: flex; gap: 22px; }
.footer__links a { font-family: var(--mono); font-size: 12px; color: var(--muted); transition: color .15s ease; }
.footer__links a:hover { color: var(--ink); }

/* --- Responsive -------------------------------------------------------- */
@media (max-width: 860px) {
  .nav__toggle { display: flex; }
  .nav__menu {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--bg-2); border-bottom: 1px solid var(--line);
    padding: 8px var(--gutter) 18px;
    clip-path: inset(0 0 100% 0); opacity: 0; pointer-events: none;
    transition: clip-path .25s ease, opacity .2s ease;
  }
  .nav__menu.is-open { clip-path: inset(0 0 0 0); opacity: 1; pointer-events: auto; }
  .nav__menu li { padding: 6px 0; }
  .nav__menu a { display: block; padding: 10px 0; font-size: 15px; }
  .nav__cta { display: inline-block; margin-top: 6px; }

  .pillars__grid { grid-template-columns: 1fr; }
  .culture__body { grid-template-columns: 1fr; }
}

/* --- Motion preferences ------------------------------------------------ */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; scroll-behavior: auto !important; transition: none !important; }
}
