@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Space+Grotesk:wght@500;600;700&display=swap');

:root {
  --bg: #07111f;
  --bg-soft: #0c1a2d;
  --panel: rgba(255, 255, 255, 0.065);
  --panel-border: rgba(255, 255, 255, 0.11);
  --text: #f8fafc;
  --muted: #a9b7ca;
  --accent: #68e0c0;
  --accent-2: #8aa4ff;
  --accent-3: #ff8ed8;
  --max-width: 1180px;
  --radius-lg: 28px;
  --radius-md: 20px;
  --shadow: 0 28px 80px rgba(0, 0, 0, 0.32);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 8% 0%, rgba(104, 224, 192, 0.12), transparent 28%),
    radial-gradient(circle at 92% 10%, rgba(138, 164, 255, 0.14), transparent 31%),
    var(--bg);
  color: var(--text);
  font-family: "DM Sans", sans-serif;
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.container {
  width: min(calc(100% - 40px), var(--max-width));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(18px);
  background: rgba(7, 17, 31, 0.74);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.nav-wrap {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.08rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.brand-mark {
  width: 42px;
  height: 48px;
  display: block;
  object-fit: contain;
  filter: drop-shadow(0 10px 20px rgba(53, 77, 255, 0.2));
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  font-weight: 600;
  color: #d7e1ee;
}

.nav-links a {
  transition: color 0.2s ease, transform 0.2s ease;
}

.nav-links a:hover {
  color: var(--accent);
}

.nav-cta {
  padding: 11px 18px;
  border: 1px solid var(--panel-border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.055);
}

.menu-toggle {
  display: none;
  border: 0;
  background: transparent;
  padding: 8px;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  margin: 5px 0;
  background: white;
  border-radius: 999px;
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 112px 0 94px;
}

.hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.04fr 0.96fr;
  align-items: center;
  gap: 72px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin-top: 0;
  font-family: "Space Grotesk", sans-serif;
  letter-spacing: -0.045em;
  line-height: 1.06;
}

h1 {
  max-width: 760px;
  margin-bottom: 24px;
  font-size: clamp(3.6rem, 8vw, 6.5rem);
}

h1 span {
  background: linear-gradient(100deg, var(--accent), var(--accent-2) 54%, var(--accent-3));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(2.3rem, 5vw, 4.1rem);
}

h3 {
  font-size: 1.65rem;
}

.hero-text,
.section-heading > p:last-child,
.studio-copy,
.contact-card p {
  color: var(--muted);
  font-size: 1.08rem;
}

.hero-text {
  max-width: 650px;
}

.hero-actions,
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 22px;
  border-radius: 14px;
  font-weight: 700;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

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

.button-primary {
  background: linear-gradient(135deg, var(--accent), #7cf0dc);
  color: #07111f;
  box-shadow: 0 15px 36px rgba(104, 224, 192, 0.21);
}

.button-secondary {
  border: 1px solid var(--panel-border);
  background: rgba(255, 255, 255, 0.055);
}

.hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 34px;
  color: #c6d3e1;
  font-size: 0.92rem;
}

.hero-points span::before {
  content: "•";
  margin-right: 8px;
  color: var(--accent);
}

.hero-visual {
  position: relative;
  min-height: 520px;
  display: grid;
  place-items: center;
}

.core-symbol {
  position: relative;
  z-index: 4;
  width: min(440px, 86%);
  aspect-ratio: 1.7;
  display: grid;
  place-items: center;
  padding: 24px;
  border-radius: 34px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.17), rgba(255, 255, 255, 0.04)),
    linear-gradient(135deg, rgba(104, 224, 192, 0.46), rgba(138, 164, 255, 0.45));
  border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow: var(--shadow);
  transform: rotate(-4deg);
}

.core-symbol img {
  width: 100%;
  height: auto;
  display: block;
  transform: rotate(4deg);
  filter: drop-shadow(0 14px 24px rgba(4, 10, 28, 0.28));
}

.game-orbit {
  position: absolute;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;
}

.orbit-a {
  width: 430px;
  height: 430px;
}

.orbit-b {
  width: 560px;
  height: 330px;
  transform: rotate(25deg);
}

.floating-card {
  position: absolute;
  z-index: 5;
  width: 190px;
  padding: 18px;
  border: 1px solid var(--panel-border);
  border-radius: 18px;
  background: rgba(12, 26, 45, 0.86);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.floating-card strong,
.floating-card small {
  display: block;
}

.floating-card strong {
  margin: 7px 0 2px;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.05rem;
}

.floating-card small {
  color: var(--muted);
}

.mini-label {
  color: var(--accent);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.card-top {
  top: 70px;
  right: 5px;
  transform: rotate(4deg);
}

.card-bottom {
  bottom: 64px;
  left: 0;
  transform: rotate(-4deg);
}

.hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(10px);
  opacity: 0.42;
}

.glow-one {
  width: 380px;
  height: 380px;
  right: -160px;
  top: 120px;
  background: rgba(138, 164, 255, 0.22);
}

.glow-two {
  width: 280px;
  height: 280px;
  left: -130px;
  bottom: -80px;
  background: rgba(104, 224, 192, 0.15);
}

.section {
  padding: 104px 0;
}

.section-heading {
  max-width: 700px;
  margin-bottom: 48px;
}

.games-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 26px;
}

.game-card {
  overflow: hidden;
  border: 1px solid var(--panel-border);
  border-radius: var(--radius-lg);
  background: var(--panel);
  box-shadow: var(--shadow);
}

.game-art {
  position: relative;
  min-height: 0;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.magneterium .game-art {
  background: #173f21;
}

.game-feature-image {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
}

.lullabloom .game-art {
  background:
    radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.18), transparent 22%),
    linear-gradient(145deg, rgba(255, 142, 216, 0.24), rgba(138, 164, 255, 0.23)),
    #15152e;
}

.magnet {
  position: absolute;
  width: 112px;
  height: 150px;
  border: 22px solid #ff6d7a;
  border-bottom: 0;
  border-radius: 58px 58px 0 0;
}

.magnet::before,
.magnet::after {
  content: "";
  position: absolute;
  bottom: -22px;
  width: 28px;
  height: 42px;
  border-radius: 8px;
  background: #f7f3ef;
}

.magnet::before {
  left: -22px;
}

.magnet::after {
  right: -22px;
}

.magnet-left {
  left: 70px;
  bottom: 58px;
  transform: rotate(-18deg);
}

.magnet-right {
  right: 62px;
  top: 52px;
  transform: rotate(160deg) scale(0.78);
}

.game-block {
  position: absolute;
  width: 62px;
  height: 62px;
  border-radius: 16px;
  background: linear-gradient(145deg, #8aa4ff, #586dd0);
  box-shadow: 0 16px 30px rgba(0, 0, 0, 0.22);
}

.block-one {
  left: 48%;
  top: 48%;
  transform: rotate(9deg);
}

.block-two {
  right: 13%;
  bottom: 16%;
  transform: rotate(-12deg);
}

.block-three {
  left: 35%;
  top: 18%;
  transform: rotate(14deg);
}

.game-star {
  position: absolute;
  left: 51%;
  top: 51%;
  color: #fff4a8;
  font-size: 1.5rem;
  transform: translate(-50%, -50%);
}

.bubble {
  position: absolute;
  aspect-ratio: 1;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.34);
  box-shadow:
    inset 16px 14px 28px rgba(255, 255, 255, 0.17),
    0 18px 32px rgba(0, 0, 0, 0.16);
}

.bubble::after {
  content: "";
  position: absolute;
  width: 22%;
  height: 14%;
  top: 19%;
  left: 24%;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.75);
  transform: rotate(-24deg);
}

.bubble-a {
  width: 132px;
  left: 14%;
  top: 18%;
  background: rgba(255, 142, 216, 0.38);
}

.bubble-b {
  width: 88px;
  right: 15%;
  top: 16%;
  background: rgba(104, 224, 192, 0.36);
}

.bubble-c {
  width: 112px;
  right: 24%;
  bottom: 12%;
  background: rgba(138, 164, 255, 0.38);
}

.bubble-d {
  width: 64px;
  left: 31%;
  bottom: 16%;
  background: rgba(255, 231, 147, 0.35);
}

.flower-core {
  position: absolute;
  left: 50%;
  top: 52%;
  transform: translate(-50%, -50%);
  width: 92px;
  height: 92px;
  display: grid;
  place-items: center;
  border-radius: 30px;
  background: linear-gradient(145deg, #ff8ed8, #8aa4ff);
  color: white;
  font-size: 2.4rem;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.22);
}

.game-content {
  padding: 30px;
}

.game-content p {
  min-height: 78px;
  color: var(--muted);
}

.game-meta {
  display: flex;
  gap: 9px;
  margin-bottom: 18px;
}

.game-meta span {
  padding: 6px 10px;
  border: 1px solid var(--panel-border);
  border-radius: 999px;
  color: #cdd8e5;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.text-link {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  margin-top: 8px;
  color: var(--accent);
  font-weight: 700;
}

.text-link.muted {
  color: #98a7ba;
}

.studio-section {
  background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.025), transparent);
}

.studio-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 80px;
  align-items: start;
}

.studio-copy p {
  margin-top: 0;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-top: 60px;
}

.values-grid article {
  padding: 28px;
  border: 1px solid var(--panel-border);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.04);
}

.values-grid span {
  display: inline-block;
  margin-bottom: 45px;
  color: var(--accent);
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
}

.values-grid p {
  color: var(--muted);
}

.contact-card {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 40px;
  padding: 52px;
  border: 1px solid var(--panel-border);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 0% 100%, rgba(104, 224, 192, 0.14), transparent 34%),
    radial-gradient(circle at 100% 0%, rgba(138, 164, 255, 0.14), transparent 40%),
    rgba(255, 255, 255, 0.055);
  box-shadow: var(--shadow);
}

.contact-card h2 {
  max-width: 650px;
  font-size: clamp(2rem, 4vw, 3.2rem);
}

.contact-card p {
  max-width: 640px;
}

.contact-actions {
  margin-top: 0;
}

.site-footer {
  padding: 32px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  color: var(--muted);
  font-size: 0.9rem;
}

.footer-brand {
  color: var(--text);
}

.footer-brand .brand-mark {
  width: 34px;
  height: 40px;
}

.footer-links {
  display: flex;
  gap: 18px;
}

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

@media (max-width: 900px) {
  .hero {
    padding-top: 78px;
  }

  .hero-grid,
  .studio-grid,
  .contact-card {
    grid-template-columns: 1fr;
  }

  .hero-grid {
    gap: 20px;
  }

  .hero-visual {
    min-height: 470px;
  }

  .games-grid,
  .values-grid {
    grid-template-columns: 1fr;
  }

  .game-content p {
    min-height: auto;
  }

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

@media (max-width: 720px) {
  .nav-links {
    position: absolute;
    left: 20px;
    right: 20px;
    top: 82px;
    display: none;
    padding: 18px;
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    border: 1px solid var(--panel-border);
    border-radius: 18px;
    background: rgba(7, 17, 31, 0.97);
    box-shadow: var(--shadow);
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    padding: 11px 12px;
  }

  .menu-toggle {
    display: block;
  }

  .hero {
    padding: 64px 0 56px;
  }

  h1 {
    font-size: clamp(3rem, 15vw, 4.7rem);
  }

  .section {
    padding: 76px 0;
  }

  .hero-visual {
    min-height: 390px;
    transform: scale(0.86);
    margin: -25px -30px;
  }

  .game-art {
    min-height: 0;
  }

  .contact-card {
    padding: 32px 24px;
  }

  .contact-actions,
  .contact-actions .button {
    width: 100%;
  }

  .footer-wrap {
    flex-direction: column;
    text-align: center;
  }
}

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

  * {
    transition: none !important;
  }
}
