/* ============================================================
   Galaxia Games — design tokens (aisensia.com design language)
   ============================================================ */
:root {
  --blue: #16A6FF;
  --blue-deep: #0E86D4;
  --orange: #F1762A;
  --ink: #424243;
  --gray: #787878;
  --line: #E8E8E8;
  --card: #F1F2F4;
  --space-1: #1B1440;
  --space-2: #31216B;
  --radius: 18px;
  --font-display: "Baloo 2", sans-serif;
  --font-body: "Carlito", sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 90px; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: #fff;
  font-size: 17px;
  line-height: 1.55;
  overflow-x: hidden;
}

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

/* ============ Header ============ */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 28px;
  position: relative;
  z-index: 5;
  background: #fff;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.logo-mark { width: 44px; height: 44px; }

.logo-text {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 26px;
  line-height: 1;
  color: var(--blue);
  display: flex;
  flex-direction: column;
}

.logo-text small {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 11px;
  letter-spacing: .12em;
  color: var(--gray);
  text-transform: uppercase;
}

.header-social { display: flex; gap: 10px; }

.header-social a,
.footer-social a {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--blue);
  color: #fff;
  transition: transform .2s, background .2s;
}

.header-social a:hover { background: var(--blue-deep); transform: translateY(-2px); }

.header-social svg, .footer-social svg { width: 20px; height: 20px; }

/* ============ Hero collage ============ */
.hero {
  position: relative;
  display: flex;
  height: clamp(240px, 32vw, 460px);
  overflow: hidden;
  background: var(--space-1);
}

.hero-accent {
  position: absolute;
  inset: 0 auto 0 0;
  width: 12%;
  background: linear-gradient(160deg, var(--orange), #E14E3A);
  clip-path: polygon(0 0, 100% 0, 55% 100%, 0 100%);
  z-index: 2;
}

.hero-panel {
  flex: 1 1 0;
  position: relative;
  clip-path: polygon(9% 0, 100% 0, 91% 100%, 0 100%);
  margin-left: -3.5%;
}

.hero-panel:first-child { margin-left: 0; flex-basis: 36%; }
.hero-panel:last-child { clip-path: polygon(9% 0, 100% 0, 100% 100%, 0 100%); }

.hero-panel img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ============ Floating pill nav ============ */
.pill-nav {
  position: sticky;
  top: 14px;
  z-index: 50;
  width: fit-content;
  max-width: calc(100% - 24px);
  margin: -30px auto 0;
  display: flex;
  gap: 4px;
  padding: 7px;
  border-radius: 999px;
  background:
    radial-gradient(1px 1px at 20% 30%, rgba(255,255,255,.7) 50%, transparent 51%),
    radial-gradient(1px 1px at 45% 70%, rgba(255,255,255,.5) 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 70% 25%, rgba(255,255,255,.6) 50%, transparent 51%),
    radial-gradient(1px 1px at 88% 60%, rgba(255,255,255,.5) 50%, transparent 51%),
    linear-gradient(120deg, var(--space-2), var(--space-1));
  box-shadow: 0 10px 30px rgba(27, 20, 64, .35);
  overflow-x: auto;
  scrollbar-width: none;
}

.pill-nav::-webkit-scrollbar { display: none; }

.pill-link {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 9px 14px;
  border-radius: 999px;
  color: #C9C4E4;
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14px;
  white-space: nowrap;
  transition: background .25s, color .25s;
}

.pill-link svg { width: 19px; height: 19px; flex: none; }

.pill-link span { display: none; }

.pill-link:hover { color: #fff; background: rgba(255,255,255,.12); }

.pill-link.is-active {
  color: #fff;
  background: linear-gradient(120deg, var(--blue), var(--blue-deep));
}

.pill-link.is-active span { display: inline; }

/* ============ Sections ============ */
.section {
  max-width: 720px;
  margin: 0 auto;
  padding: 56px 20px 8px;
  position: relative;
}

.section--wide { max-width: 1180px; }

.section h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 24px;
  color: var(--blue);
  text-align: center;
  margin-bottom: 22px;
}

.section-body p { margin-bottom: 12px; text-indent: 26px; }

.centered-intro { text-align: center; margin-bottom: 18px; }

.feature-list {
  list-style: none;
  margin: 10px 0 6px;
}

.feature-list li {
  position: relative;
  padding-left: 18px;
  margin-bottom: 12px;
}

.feature-list li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: .55em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--blue);
}

.about-figure { margin: 26px auto 0; max-width: 640px; }

.about-figure img {
  border-radius: var(--radius);
  box-shadow: 0 14px 36px rgba(27, 20, 64, .18);
}

/* Decorative orange planets (like aisensia's gears) */
.planet-decor {
  position: absolute;
  top: 90px;
  width: 120px;
  opacity: .9;
  pointer-events: none;
  animation: spin 40s linear infinite;
}

.planet-decor--right { right: -140px; }
.planet-decor--left { left: -150px; top: 140px; width: 140px; }

@keyframes spin { to { transform: rotate(360deg); } }

/* ============ Accordions ============ */
.accordion-group { border-top: 1px solid var(--line); }

.accordion { border-bottom: 1px solid var(--line); }

.accordion summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 8px;
  font-weight: 700;
  color: var(--ink);
  position: relative;
}

.accordion summary::-webkit-details-marker { display: none; }

.accordion--faq summary { justify-content: flex-start; font-weight: 400; }

.accordion--faq summary .chev { margin-left: auto; }

.chev {
  width: 12px;
  height: 12px;
  border-right: 3px solid var(--blue);
  border-bottom: 3px solid var(--blue);
  border-radius: 2px;
  transform: rotate(45deg) translateY(-2px);
  transition: transform .25s;
  flex: none;
}

.chev--orange { border-color: var(--orange); }

details[open] > summary .chev { transform: rotate(225deg) translateY(-2px); }

.accordion > ul, .accordion > p { padding: 4px 8px 18px; }

.accordion--faq > p { color: var(--gray); }

/* ============ Vacancies ============ */
.vacancies-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(38px, 5vw, 52px);
  color: var(--blue);
  text-align: center;
  margin-bottom: 26px;
}

.filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 30px;
}

.filter {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14px;
  color: var(--ink);
  background: var(--card);
  border: none;
  border-radius: 999px;
  padding: 10px 18px;
  cursor: pointer;
  transition: background .2s, color .2s, transform .15s;
}

.filter:hover { transform: translateY(-2px); }

.filter.is-active { background: var(--blue); color: #fff; }

.filter b { font-weight: 800; opacity: .75; }

.filter-dot { width: 10px; height: 10px; border-radius: 50%; }
.filter-dot--art  { background: #E052C4; }
.filter-dot--prog { background: #8B5CF6; }
.filter-dot--qa   { background: #10C8B8; }
.filter-dot--ana  { background: #F4574D; }
.filter-dot--des  { background: #16A6FF; }

.vacancy-list {
  max-width: 620px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.vacancy {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--card);
  border-radius: 16px;
  padding: 12px 18px 12px 12px;
  text-decoration: none;
  color: var(--ink);
  transition: transform .2s, box-shadow .2s;
}

.vacancy:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(27, 20, 64, .14);
}

.vacancy.is-hidden { display: none; }

.vacancy-icon {
  width: 46px;
  height: 46px;
  flex: none;
  border-radius: 13px;
  display: grid;
  place-items: center;
  color: #fff;
}

.vacancy-icon svg { width: 24px; height: 24px; }

.vacancy-icon--prog { background: linear-gradient(135deg, #8B5CF6, #6D28D9); }
.vacancy-icon--art  { background: linear-gradient(135deg, #F472B6, #C026D3); }
.vacancy-icon--des  { background: linear-gradient(135deg, #38BDF8, #1D4ED8); }
.vacancy-icon--ana  { background: linear-gradient(135deg, #FB7185, #E11D48); }
.vacancy-icon--qa   { background: linear-gradient(135deg, #2DD4BF, #0D9488); }

.vacancy-info { display: flex; flex-direction: column; flex: 1; }

.vacancy-info strong { font-size: 17px; }

.vacancy-info small { color: var(--gray); font-size: 13px; }

.vacancy-arrow {
  color: var(--blue);
  font-size: 22px;
  font-weight: 700;
  transition: transform .2s;
}

.vacancy:hover .vacancy-arrow { transform: translateX(4px); }

.vacancies-note { text-align: center; margin-top: 26px; color: var(--gray); }

.vacancies-note a { color: var(--blue); font-weight: 700; text-decoration: none; }

/* ============ Footer ============ */
.site-footer {
  margin-top: 70px;
  position: relative;
  background:
    radial-gradient(1.5px 1.5px at 12% 30%, rgba(255,255,255,.8) 50%, transparent 51%),
    radial-gradient(1px 1px at 30% 65%, rgba(255,255,255,.5) 50%, transparent 51%),
    radial-gradient(1px 1px at 52% 25%, rgba(255,255,255,.6) 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 73% 55%, rgba(255,255,255,.7) 50%, transparent 51%),
    radial-gradient(1px 1px at 90% 35%, rgba(255,255,255,.5) 50%, transparent 51%),
    linear-gradient(160deg, var(--space-2), var(--space-1) 65%);
  color: #fff;
  padding: 44px 20px 30px;
}

.footer-inner {
  max-width: 1180px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.logo--footer .logo-text { color: #fff; }
.logo--footer .logo-text small { color: #B9B2DC; }

.footer-social { display: flex; gap: 12px; }

.footer-social a {
  background: rgba(255,255,255,.14);
  transition: background .2s, transform .2s;
}

.footer-social a:hover { background: var(--blue); transform: translateY(-2px); }

.footer-copy { color: #B9B2DC; font-size: 14px; text-align: center; }

/* ============ Legal pages (privacy / terms) ============ */
.legal { padding-bottom: 30px; }

.legal h1 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(30px, 4vw, 42px);
  color: var(--blue);
  text-align: center;
  margin: 26px 0 6px;
}

.legal-updated {
  text-align: center;
  color: var(--gray);
  font-size: 14px;
  margin-bottom: 30px;
}

.legal h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 19px;
  color: var(--blue);
  text-align: left;
  margin: 30px 0 10px;
}

.legal p { margin-bottom: 12px; }

.legal ul { margin: 0 0 12px 22px; }

.legal li { margin-bottom: 7px; }

.legal a { color: var(--blue); font-weight: 700; text-decoration: none; }

.legal a:hover { text-decoration: underline; }

/* ============ Footer links ============ */
.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 22px;
}

.footer-links a {
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
}

.footer-links a:hover { color: var(--blue); }

/* ============ Reveal animation ============ */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .6s ease, transform .6s ease;
}

.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .planet-decor { animation: none; }
}

/* ============ Focus states ============ */
a:focus-visible, button:focus-visible, summary:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 2px;
  border-radius: 6px;
}

/* ============ Responsive ============ */
@media (max-width: 980px) {
  .planet-decor { display: none; }
}

@media (max-width: 640px) {
  .site-header { padding: 10px 16px; }
  .logo-text { font-size: 22px; }
  .hero { height: 300px; }
  .hero-accent { display: none; }
  .hero-panel:first-child { flex-basis: 50%; }
  .hero-panel:nth-child(3) { display: none; }
  .pill-nav { margin-top: -26px; }
  .pill-link { padding: 9px 11px; }
  .section { padding-top: 44px; }
}
