@font-face {
  font-family: "Nunito";
  font-style: normal;
  font-weight: 500 900;
  font-display: swap;
  src: url("./assets/fonts/nunito-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: "Nunito";
  font-style: normal;
  font-weight: 500 900;
  font-display: swap;
  src: url("./assets/fonts/nunito-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Fredoka";
  font-style: normal;
  font-weight: 500 700;
  font-display: swap;
  src: url("./assets/fonts/fredoka-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  /* Primitive palette, sampled from the existing Copy3D identity. */
  --p-sky: oklch(0.88 0.065 226);
  --p-sky-light: oklch(0.96 0.028 220);
  --p-paper: oklch(0.985 0.012 95);
  --p-brown: oklch(0.36 0.055 55);
  --p-teal: oklch(0.32 0.036 183);
  --p-orange: oklch(0.75 0.16 54);
  --p-green: oklch(0.69 0.18 128);
  --p-green-dark: oklch(0.52 0.15 128);
  --p-blue: oklch(0.54 0.12 249);

  /* Semantic tokens. */
  --surface-page: var(--p-sky);
  --text-primary: var(--p-brown);
  --text-body: var(--p-teal);
  --accent-warm: var(--p-orange);
  --accent-action: var(--p-green);
  --focus-ring: var(--p-blue);

  /* Component tokens. */
  --page-gutter: clamp(20px, 4.5vw, 72px);
  --button-radius: 16px;
  --shadow-toy: 0 5px 0 oklch(0.36 0.055 55 / 0.2), 0 12px 24px oklch(0.32 0.036 183 / 0.16);
}

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

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  min-height: 100dvh;
  color: var(--text-body);
  background: var(--surface-page);
  font-family: "Nunito", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img,
svg {
  display: block;
}

img {
  max-width: 100%;
}

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

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

a:focus-visible {
  outline: 3px solid var(--focus-ring);
  outline-offset: 5px;
  border-radius: 5px;
}

.site-shell {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  min-height: 100dvh;
  overflow: hidden;
  padding: 0 var(--page-gutter);
  background: var(--surface-page);
}

.site-shell::before,
.site-shell::after {
  position: absolute;
  inset: 0;
  z-index: -2;
  content: "";
  pointer-events: none;
}

.site-shell::before {
  background: url("./assets/images/world.webp") center 42% / cover no-repeat;
}

.site-shell::after {
  z-index: -1;
  background:
    linear-gradient(180deg, oklch(0.96 0.028 220 / 0.12) 65%, var(--p-sky) 100%),
    linear-gradient(90deg, oklch(0.88 0.065 226 / 0.99) 0%, oklch(0.88 0.065 226 / 0.95) 35%, oklch(0.88 0.065 226 / 0.38) 61%, oklch(0.88 0.065 226 / 0.05) 100%);
}

.topbar,
.hero,
.footer {
  width: 100%;
  max-width: 1440px;
  margin-inline: auto;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: 24px;
}

.brand {
  flex: 0 1 286px;
  min-width: 190px;
  transition: transform 180ms ease-out;
}

.brand:hover {
  transform: translateY(-2px) rotate(-1deg);
}

.brand img {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 5px 5px oklch(0.25 0.04 55 / 0.22));
}

.availability {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  padding: 8px 16px;
  border: 1px solid oklch(0.985 0.012 95 / 0.8);
  border-radius: 999px;
  color: var(--text-body);
  background: oklch(0.985 0.012 95 / 0.78);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  backdrop-filter: blur(8px);
}

.status-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent-action);
  box-shadow: 0 0 0 4px oklch(0.69 0.18 128 / 0.18);
}

.hero {
  display: grid;
  flex: 1;
  grid-template-columns: minmax(0, 1.04fr) minmax(400px, 0.96fr);
  align-items: center;
  gap: clamp(12px, 2vw, 40px);
  min-height: calc(100dvh - 176px);
  padding: 28px 0 16px;
}

.hero-copy {
  position: relative;
  z-index: 5;
  max-width: 670px;
  padding-bottom: 12px;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  color: var(--text-body);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.eyebrow > span {
  width: 26px;
  height: 3px;
  border-radius: 3px;
  background: var(--accent-warm);
}

h1 {
  color: var(--text-primary);
  font-size: clamp(58px, 6.35vw, 96px);
  font-weight: 900;
  letter-spacing: -0.06em;
  line-height: 0.96;
  text-wrap: balance;
}

h1 span {
  color: var(--accent-warm);
  text-shadow: 0 3px 0 oklch(0.985 0.012 95 / 0.52);
}

.lead {
  max-width: 57ch;
  margin-top: 26px;
  color: var(--text-body);
  font-size: clamp(16px, 1.25vw, 19px);
  font-weight: 700;
  line-height: 1.65;
}

.actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px 26px;
  margin-top: 30px;
}

.button-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  min-height: 58px;
  padding: 13px 24px;
  border: 2px solid var(--p-green-dark);
  border-radius: var(--button-radius);
  color: var(--p-paper);
  background: linear-gradient(180deg, oklch(0.76 0.18 126), var(--accent-action));
  box-shadow: var(--shadow-toy);
  font-size: 16px;
  font-weight: 900;
  line-height: 1.2;
  text-shadow: 0 2px 0 oklch(0.3 0.09 128 / 0.3);
  transition: transform 160ms ease-out, box-shadow 160ms ease-out, filter 160ms ease-out;
}

.button-primary:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 7px 0 oklch(0.36 0.055 55 / 0.18), 0 16px 28px oklch(0.32 0.036 183 / 0.18);
  filter: saturate(1.08);
}

.button-primary:active {
  transform: translateY(2px) scale(0.99);
  box-shadow: 0 2px 0 oklch(0.36 0.055 55 / 0.2);
}

.button-primary svg,
.shop-link svg {
  flex: none;
  transition: transform 160ms ease-out;
}

.button-primary:hover svg {
  transform: translateX(3px);
}

.shop-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  color: var(--p-blue);
  font-size: 15px;
  font-weight: 900;
  text-decoration: underline;
  text-decoration-color: oklch(0.54 0.12 249 / 0.3);
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
  transition: color 160ms ease-out, text-decoration-color 160ms ease-out;
}

.shop-link:hover {
  color: var(--text-primary);
  text-decoration-color: currentColor;
}

.shop-link:hover svg {
  transform: translate(2px, -2px);
}

.contacts {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 14px;
  margin-top: 30px;
  color: var(--text-body);
  font-size: 14px;
  font-weight: 900;
}

.contacts a,
.address,
.socials a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: 4px;
  transition: color 160ms ease-out, text-decoration-color 160ms ease-out;
}

.contacts a:hover,
.address:hover,
.socials a:hover {
  color: var(--p-blue);
  text-decoration-color: currentColor;
}

.hero-art {
  --pointer-x: 0;
  --pointer-y: 0;
  position: relative;
  z-index: 2;
  width: 100%;
  height: clamp(470px, 48vw, 650px);
  max-height: 68dvh;
  min-height: 460px;
}

.halo {
  position: absolute;
  top: 2%;
  left: 9%;
  width: 82%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, oklch(0.985 0.012 95 / 0.55) 0%, oklch(0.96 0.028 220 / 0.24) 45%, transparent 71%);
}

.orbit {
  position: absolute;
  right: 4%;
  bottom: 8%;
  left: 2%;
  height: 30%;
  border: 2px solid oklch(0.985 0.012 95 / 0.7);
  border-radius: 50%;
  transform: rotate(-8deg);
  box-shadow: inset 0 0 40px oklch(0.985 0.012 95 / 0.18), 0 0 30px oklch(0.985 0.012 95 / 0.18);
}

.object {
  --shift-x: 0px;
  --shift-y: 0px;
  --rotate: 0deg;
  position: absolute;
  transform: translate3d(var(--shift-x), var(--shift-y), 0) rotate(var(--rotate));
  transition: transform 240ms ease-out;
  will-change: transform;
}

.object img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 18px 16px oklch(0.25 0.055 55 / 0.25));
}

.object-mascot {
  --rotate: -3deg;
  z-index: 3;
  top: 5%;
  left: 24%;
  width: 47%;
  height: auto;
}

.object-robot {
  --rotate: 5deg;
  z-index: 2;
  right: -2%;
  bottom: 0;
  width: 43%;
  height: 69%;
}

.object-dragon {
  --rotate: -7deg;
  z-index: 4;
  bottom: 2%;
  left: -3%;
  width: 55%;
  height: auto;
}

.float-slow,
.float-medium,
.float-fast {
  animation: ambient-float 5.8s ease-in-out infinite;
  will-change: transform;
}

.float-medium {
  animation-duration: 7s;
  animation-delay: -2.2s;
}

.float-fast {
  animation-duration: 5s;
  animation-delay: -1.1s;
  animation-direction: reverse;
}

.soon-stamp {
  position: absolute;
  z-index: 6;
  top: 8%;
  right: 0;
  display: grid;
  place-content: center;
  width: 92px;
  aspect-ratio: 1;
  border: 2px solid oklch(0.985 0.012 95 / 0.8);
  border-radius: 50%;
  color: var(--p-paper);
  background: var(--accent-warm);
  box-shadow: 0 6px 0 oklch(0.5 0.11 45 / 0.25), 0 12px 24px oklch(0.32 0.036 183 / 0.14);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.06em;
  line-height: 1.25;
  text-align: center;
  text-transform: uppercase;
  transform: rotate(9deg);
}

.footer {
  position: relative;
  z-index: 7;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px 28px;
  padding: 10px 0 18px;
  border-top: 1px solid oklch(0.36 0.055 55 / 0.2);
  color: var(--text-body);
  font-size: 12px;
  font-weight: 900;
}

.socials {
  display: flex;
  align-items: center;
  gap: 22px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.address {
  text-align: right;
}

@keyframes ambient-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

@media (max-width: 1050px) {
  .hero {
    grid-template-columns: minmax(0, 1fr) minmax(350px, 0.85fr);
  }

  h1 {
    font-size: clamp(54px, 7vw, 74px);
  }

  .soon-stamp {
    right: -2%;
    width: 78px;
    font-size: 11px;
  }

  .footer > p {
    display: none;
  }
}

@media (max-width: 820px) {
  .site-shell::before {
    background-position: 58% center;
  }

  .site-shell::after {
    background: linear-gradient(180deg, oklch(0.88 0.065 226 / 0.97) 0%, oklch(0.88 0.065 226 / 0.9) 43%, oklch(0.88 0.065 226 / 0.3) 76%, var(--p-sky) 100%);
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 0;
    min-height: auto;
    padding-top: 54px;
  }

  .hero-copy {
    max-width: 640px;
  }

  h1 {
    font-size: clamp(58px, 11vw, 82px);
  }

  .lead {
    max-width: 54ch;
  }

  .hero-art {
    justify-self: center;
    width: min(100%, 590px);
    height: 450px;
    min-height: 450px;
    max-height: none;
    margin-top: 8px;
  }

  .footer {
    flex-wrap: wrap;
  }

  .footer > p {
    display: block;
  }

  .address {
    text-align: left;
  }
}

@media (max-width: 520px) {
  :root {
    --page-gutter: 20px;
  }

  .topbar {
    gap: 12px;
    padding-top: 18px;
  }

  .brand {
    flex-basis: 210px;
    min-width: 0;
  }

  .availability {
    gap: 7px;
    padding: 7px 11px;
    font-size: 10px;
    letter-spacing: 0.06em;
  }

  .status-dot {
    width: 7px;
    height: 7px;
  }

  .hero {
    padding-top: 42px;
  }

  .eyebrow {
    margin-bottom: 14px;
    font-size: 11px;
  }

  h1 {
    font-size: clamp(48px, 14.2vw, 66px);
    letter-spacing: -0.055em;
  }

  .lead {
    margin-top: 22px;
    font-size: 16px;
    line-height: 1.6;
  }

  .actions {
    align-items: stretch;
    flex-direction: column;
    gap: 10px;
    margin-top: 26px;
  }

  .button-primary {
    width: 100%;
  }

  .shop-link {
    align-self: center;
    min-height: 48px;
  }

  .contacts {
    align-items: flex-start;
    flex-direction: column;
    gap: 0;
    margin-top: 20px;
  }

  .contacts > span {
    display: none;
  }

  .hero-art {
    width: calc(100% + 16px);
    height: 350px;
    min-height: 350px;
    margin: 10px -8px 0;
  }

  .object-mascot {
    top: 5%;
    left: 26%;
    width: 50%;
  }

  .object-robot {
    right: -3%;
    width: 43%;
    height: 66%;
  }

  .object-dragon {
    bottom: 0;
    left: -4%;
    width: 58%;
  }

  .soon-stamp {
    top: 4%;
    right: -1%;
    width: 68px;
    font-size: 9px;
  }

  .footer {
    align-items: flex-start;
    flex-direction: column;
    gap: 2px;
    padding-bottom: max(16px, env(safe-area-inset-bottom));
  }

  .footer > p {
    display: none;
  }

  .socials {
    width: 100%;
    justify-content: space-between;
    gap: 12px;
  }
}

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

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .object {
    transform: rotate(var(--rotate));
  }
}
