@import url("https://fonts.googleapis.com/css2?family=Figtree:ital,wght@0,400;0,500;0,600;0,700;1,400&family=Syne:wght@600;700;800&display=swap");

:root {
  --bg: #f3f1ec;
  --bg-deep: #e8e4db;
  --surface: #fffcf7;
  --ink: #12141a;
  --muted: #5a6170;
  --accent: #2a83ff;
  --accent-strong: #1a6fe0;
  --border: rgb(18 20 26 / 12%);
  --border-strong: rgb(18 20 26 / 22%);
  --shadow-soft: 0 18px 48px rgb(18 20 26 / 8%);
  --radius: 0.35rem;
  --font-display: "Syne", "Segoe UI", sans-serif;
  --font-body: "Figtree", "Segoe UI", sans-serif;
  --header-h: 4.25rem;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  color-scheme: light;
  background-color: var(--bg);
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--ink);
  background-color: var(--bg);
  background-image:
    radial-gradient(ellipse 90% 60% at 10% -10%, rgb(42 131 255 / 14%), transparent 55%),
    radial-gradient(ellipse 70% 50% at 95% 5%, rgb(232 180 120 / 18%), transparent 50%),
    radial-gradient(ellipse 60% 40% at 50% 100%, rgb(42 131 255 / 8%), transparent 55%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-deep) 100%);
  background-attachment: fixed;
  min-height: 100vh;
}

a {
  color: var(--accent-strong);
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--ink);
}

.container {
  width: min(1120px, 92vw);
  margin: 0 auto;
}

/* —— Header —— */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px) saturate(1.2);
  background: rgb(243 241 236 / 82%);
  border-bottom: 1px solid var(--border);
  animation: header-in 0.7s ease both;
}

.nav-wrap,
.footer-wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 0.85rem 0;
  min-height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}

.brand-lockup {
  display: block;
  width: min(260px, 72vw);
  height: auto;
}

.nav-toggle {
  display: none;
  appearance: none;
  background: transparent;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  width: 2.6rem;
  height: 2.6rem;
  padding: 0;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.nav-toggle span {
  display: block;
  width: 1.1rem;
  height: 1.5px;
  background: var(--ink);
  border-radius: 1px;
}

.nav-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.15rem 1.35rem;
  margin: 0;
  padding: 0;
}

.nav-list a {
  text-decoration: none;
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  transition: color 0.2s ease;
}

.nav-list a:hover,
.nav-list a[aria-current="page"] {
  color: var(--accent-strong);
}

.nav-dropdown {
  position: relative;
}

.nav-dropdown-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  color: var(--ink);
  font: inherit;
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: color 0.2s ease;
}

.nav-dropdown-toggle::after {
  content: "";
  width: 0.35rem;
  height: 0.35rem;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: translateY(-1px) rotate(45deg);
  opacity: 0.7;
}

.nav-dropdown-toggle:hover,
.nav-dropdown.is-open > .nav-dropdown-toggle,
.nav-dropdown.has-current > .nav-dropdown-toggle {
  color: var(--accent-strong);
}

.nav-submenu {
  list-style: none;
  margin: 0;
  padding: 0.4rem 0;
  min-width: 11.5rem;
  border: 1px solid var(--border);
  border-radius: 0.45rem;
  background: var(--surface, #fff);
  box-shadow: var(--shadow-soft);
}

@media (min-width: 901px) {
  .nav-submenu {
    position: absolute;
    top: calc(100% + 0.55rem);
    left: 0;
    z-index: 40;
    display: none;
  }

  .nav-dropdown.is-open > .nav-submenu {
    display: block;
  }
}

.nav-submenu a {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.45rem 0.9rem;
  white-space: nowrap;
}

.nav-submenu a img {
  width: 1.35rem;
  height: 1.35rem;
  border-radius: 0.3rem;
  border: 1px solid var(--border);
  flex-shrink: 0;
  object-fit: cover;
}

.nav-submenu a:hover,
.nav-submenu a[aria-current="page"] {
  color: var(--accent-strong);
}

/* —— Type —— */
.eyebrow {
  color: var(--accent-strong);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.72rem;
  font-weight: 600;
  margin: 0 0 0.85rem;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  line-height: 1.12;
  margin-top: 0;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
}

h1 {
  font-size: clamp(2.6rem, 6.5vw, 4.75rem);
  margin-bottom: 1rem;
}

.hero-home h1,
.hero-content h1 {
  max-width: 14ch;
}

h2 {
  font-size: clamp(1.75rem, 3.2vw, 2.45rem);
  margin-bottom: 0.75rem;
}

h3 {
  font-size: 1.2rem;
  margin-bottom: 0.45rem;
}

.lead {
  color: var(--muted);
  max-width: 52ch;
  font-size: 1.12rem;
  margin: 0 0 1.5rem;
}

.brand-hero {
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 2.4vw, 1.45rem);
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink);
  margin: 0 0 1.25rem;
}

.brand-hero span {
  color: var(--accent);
}

/* —— Hero —— */
.hero {
  position: relative;
  padding: clamp(4rem, 12vh, 7rem) 0 clamp(3rem, 8vh, 5rem);
  min-height: calc(100svh - var(--header-h));
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-home {
  overflow: hidden;
}

.hero-home::after {
  content: "";
  position: absolute;
  right: max(-8vw, -120px);
  top: 10%;
  width: min(52vw, 560px);
  height: min(52vw, 560px);
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 35%, rgb(42 131 255 / 35%), transparent 55%),
    radial-gradient(circle at 70% 70%, rgb(232 180 120 / 28%), transparent 50%);
  filter: blur(2px);
  pointer-events: none;
  animation: orb-drift 14s ease-in-out infinite alternate;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 38rem;
  animation: rise-in 0.9s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.35rem;
}

/* —— Buttons —— */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--ink);
  color: #f8f6f1;
  text-decoration: none;
  padding: 0.85rem 1.35rem;
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  font-weight: 600;
  font: inherit;
  font-size: 0.95rem;
  cursor: pointer;
  transition:
    background-color 0.2s ease,
    color 0.2s ease,
    border-color 0.2s ease,
    transform 0.2s ease;
}

.button:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  transform: translateY(-1px);
}

.button:active {
  transform: translateY(0);
}

.button-secondary {
  background: transparent;
  color: var(--ink);
  border-color: var(--border-strong);
}

.button-secondary:hover {
  background: var(--surface);
  border-color: var(--ink);
  color: var(--ink);
}

/* —— Sections —— */
.section {
  padding: clamp(3.5rem, 8vh, 5.5rem) 0;
  border-top: 1px solid var(--border);
  animation: rise-in 0.8s cubic-bezier(0.22, 1, 0.36, 1) both;
  animation-timeline: view();
  animation-range: entry 0% cover 30%;
}

.section-intro {
  margin-bottom: 2.5rem;
  max-width: 40rem;
}

.section-intro .lead {
  margin-bottom: 0;
}

/* —— Services / open columns —— */
.offer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem 2.5rem;
  counter-reset: offer;
}

.offer-item {
  position: relative;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border-strong);
}

.offer-item::before {
  counter-increment: offer;
  content: "0" counter(offer);
  display: block;
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin-bottom: 1rem;
}

.offer-item p {
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
}

/* —— Expertise —— */
.expertise-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem 2.5rem;
  margin-top: 0.5rem;
}

.expertise-label {
  display: block;
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 0.85rem;
  padding-bottom: 0.65rem;
  border-bottom: 1px solid var(--border-strong);
}

.expertise-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.expertise-list li {
  padding: 0.4rem 0;
  color: var(--muted);
  font-size: 0.98rem;
}

/* —— Process —— */
.timeline {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem 2.5rem;
}

.timeline > div {
  padding: 0;
  background: none;
  border: none;
  border-radius: 0;
}

.timeline h3 {
  font-size: 1.15rem;
}

.timeline p {
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
}

.step-num {
  display: block;
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1;
  color: rgb(42 131 255 / 22%);
  margin-bottom: 0.75rem;
  letter-spacing: -0.04em;
}

/* —— Work / editorial rows —— */
.work-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.work-row {
  display: grid;
  grid-template-columns: 7rem 1fr;
  gap: 1.5rem;
  padding: 1.75rem 0;
  border-top: 1px solid var(--border);
  transition: padding-left 0.25s ease;
}

.work-row:last-child {
  border-bottom: 1px solid var(--border);
}

.work-row:hover {
  padding-left: 0.5rem;
}

.work-tag {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-strong);
  padding-top: 0.35rem;
}

.work-row h3 {
  margin-bottom: 0.35rem;
}

.work-row p {
  margin: 0;
  color: var(--muted);
  max-width: 58ch;
}

/* —— Product / games strips —— */
.strip {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2rem;
  align-items: end;
}

.strip .lead {
  margin-bottom: 0;
}

.strip-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
  flex-wrap: wrap;
}

/* —— Legacy card support (product pages) —— */
.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.card,
.contact-card,
.expertise-item {
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 0;
}

.card {
  padding-top: 1.15rem;
  border-top: 1px solid var(--border-strong);
}

.card p {
  color: var(--muted);
  margin: 0;
}

.card-interactive {
  transition: border-color 0.2s ease;
}

.card-interactive:hover {
  border-color: var(--accent);
}

/* —— Contact —— */
#contact.contact-card,
.contact-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  padding: clamp(1.75rem, 4vw, 2.5rem);
  box-shadow: var(--shadow-soft);
}

.contact-layout {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr;
  gap: 2rem;
  margin-top: 1.5rem;
  align-items: start;
}

.contact-form {
  display: grid;
  gap: 1rem;
}

.field {
  display: grid;
  gap: 0.4rem;
}

.field span {
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 500;
}

.field input,
.field textarea {
  width: 100%;
  margin: 0;
  padding: 0.8rem 0.9rem;
  color: var(--ink);
  background: var(--bg);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  font: inherit;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.field input::placeholder,
.field textarea::placeholder {
  color: rgb(90 97 112 / 55%);
}

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgb(42 131 255 / 18%);
}

.field textarea {
  resize: vertical;
  min-height: 8rem;
}

.contact-form .button {
  justify-self: start;
}

.contact-aside {
  padding: 1.25rem 0 0;
  border: none;
  border-top: 1px solid var(--border);
  border-radius: 0;
  background: transparent;
}

@media (min-width: 861px) {
  .contact-aside {
    padding: 0 0 0 1.5rem;
    border-top: none;
    border-left: 1px solid var(--border);
  }
}

.contact-aside-label {
  margin: 0 0 0.4rem;
  color: var(--accent-strong);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.72rem;
  font-weight: 600;
}

.contact-aside p:last-child {
  margin-bottom: 0;
  color: var(--muted);
}

/* —— Games hub list —— */
.hub-list {
  display: flex;
  flex-direction: column;
}

.hub-item {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 1.25rem 1.5rem;
  align-items: center;
  padding: 2rem 0;
  border-top: 1px solid var(--border);
  text-decoration: none;
  color: inherit;
  transition: padding-left 0.25s ease;
}

.hub-item:last-child {
  border-bottom: 1px solid var(--border);
}

.hub-item:hover {
  padding-left: 0.5rem;
}

.hub-icon {
  width: 64px;
  height: 64px;
  border-radius: 14px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-soft);
  object-fit: cover;
  background: var(--surface);
}

.hub-item h2 {
  margin-bottom: 0.35rem;
  font-size: clamp(1.5rem, 2.5vw, 1.85rem);
}

.hub-item p {
  margin: 0;
  color: var(--muted);
  max-width: 48ch;
}

.hub-arrow {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--accent);
  transition: transform 0.25s ease;
}

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

/* —— Footer —— */
.site-footer {
  border-top: 1px solid var(--border);
  margin-top: 0;
  background: rgb(255 252 247 / 55%);
}

.site-footer p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.site-footer a {
  text-decoration: none;
  color: var(--ink);
  font-weight: 500;
  font-size: 0.9rem;
}

.site-footer a:hover {
  color: var(--accent-strong);
}

/* —— Motion —— */
@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes header-in {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes orb-drift {
  from {
    transform: translate(0, 0) scale(1);
  }
  to {
    transform: translate(-24px, 18px) scale(1.06);
  }
}

/* —— Responsive —— */
@media (max-width: 860px) {
  .offer-grid,
  .grid,
  .timeline,
  .expertise-grid,
  .contact-layout,
  .strip,
  .work-row {
    grid-template-columns: 1fr;
  }

  .hub-item {
    grid-template-columns: auto 1fr;
    gap: 1rem;
  }

  .hub-item .hub-arrow {
    display: none;
  }

  .hub-icon {
    width: 56px;
    height: 56px;
    border-radius: 12px;
  }

  .strip-actions {
    justify-content: flex-start;
  }

  .nav-wrap {
    flex-wrap: wrap;
  }

  .nav-toggle {
    display: inline-flex;
    margin-left: auto;
  }

  .site-nav {
    display: none;
    width: 100%;
    padding-bottom: 0.75rem;
  }

  .site-nav.is-open {
    display: block;
  }

  .nav-list {
    flex-direction: column;
    gap: 0.65rem;
  }

  .nav-submenu {
    display: none;
    margin: 0.35rem 0 0.15rem 0.75rem;
    padding: 0.25rem 0;
    border: 0;
    box-shadow: none;
    background: transparent;
  }

  .nav-dropdown.is-open > .nav-submenu {
    display: block;
  }

  .nav-submenu a {
    padding: 0.35rem 0;
  }

  .brand-lockup {
    width: min(190px, 70vw);
  }

  .hero {
    min-height: auto;
    padding: 3.25rem 0 2.5rem;
  }

  .hero-home::after {
    width: 70vw;
    height: 70vw;
    opacity: 0.7;
  }

  .work-row {
    gap: 0.5rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .site-header,
  .hero-content,
  .section,
  .hero-home::after {
    animation: none;
  }

  .button,
  .work-row,
  .hub-item,
  .hub-arrow {
    transition: none;
  }

  .button:hover,
  .work-row:hover,
  .hub-item:hover {
    transform: none;
    padding-left: 0;
  }

  .hub-item:hover .hub-arrow {
    transform: none;
  }

}
