:root {
  --bg: #ffffff;
  --ink: #111213;
  --muted: #676d73;
  --line: #e7e9eb;
  --surface: #f8faf9;
  --coral: #ff6358;
  --coral-soft: #ffe9e5;
  --green: #6fbd45;
  --green-soft: #e8f6df;
  --blue: #54a9f5;
  --blue-soft: #e7f3ff;
  --yellow: #f8b43a;
  --yellow-soft: #fff3d5;
  --shadow: 0 24px 70px rgba(36, 41, 45, 0.1);
  --radius: 8px;
  color-scheme: light;
  font-family: Inter, "Noto Sans SC", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

.skip-link {
  position: fixed;
  left: 16px;
  top: 12px;
  z-index: 100;
  transform: translateY(-140%);
  border-radius: var(--radius);
  background: var(--ink);
  color: #fff;
  padding: 10px 14px;
  font-size: 14px;
  font-weight: 800;
  transition: transform 160ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

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

section,
footer {
  scroll-margin-top: 96px;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 32px;
  height: 80px;
  padding: 0 clamp(22px, 4.2vw, 70px);
  background: rgba(255, 255, 255, 0.88);
  border-bottom: 1px solid rgba(231, 233, 235, 0.82);
  backdrop-filter: blur(18px);
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 32px;
  font-weight: 800;
  letter-spacing: 0;
}

.brand-mark {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: conic-gradient(from 140deg, var(--coral), var(--yellow), var(--green), var(--blue), var(--coral));
  box-shadow: 0 6px 18px rgba(255, 99, 88, 0.25);
}

.nav-links {
  display: flex;
  justify-content: center;
  gap: clamp(20px, 3vw, 48px);
  font-size: 14px;
  font-weight: 700;
}

.nav-links a,
.footer-links a {
  color: #24272a;
  transition: color 160ms ease;
}

.nav-links a:hover,
.footer-links a:hover {
  color: var(--coral);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 18px;
}

.language-toggle {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 40px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #1d2023;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  place-items: center;
  gap: 4px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink);
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition:
    opacity 160ms ease,
    transform 160ms ease;
}

.site-header.menu-open .menu-toggle span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.site-header.menu-open .menu-toggle span:nth-child(2) {
  opacity: 0;
}

.site-header.menu-open .menu-toggle span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.mobile-menu {
  position: absolute;
  left: 18px;
  right: 18px;
  top: calc(100% + 10px);
  display: none;
  border: 1px solid rgba(231, 233, 235, 0.9);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
  overflow: hidden;
}

.mobile-menu a {
  display: block;
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
  font-size: 16px;
  font-weight: 800;
}

.mobile-menu a:last-child {
  border-bottom: 0;
}

.language-toggle:hover .lang-alt {
  color: var(--coral);
}

.lang-alt {
  color: var(--muted);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 24px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 800;
  line-height: 1;
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    background-color 160ms ease,
    box-shadow 160ms ease;
}

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

.button:focus-visible,
.language-toggle:focus-visible,
.menu-toggle:focus-visible,
.nav-links a:focus-visible,
.mobile-menu a:focus-visible,
.footer-links a:focus-visible {
  outline: 3px solid rgba(84, 169, 245, 0.32);
  outline-offset: 4px;
}

.button-primary {
  background: var(--coral);
  color: #fff;
  box-shadow: 0 16px 36px rgba(255, 99, 88, 0.25);
}

.button-primary:hover {
  background: #f7544a;
}

.button-secondary {
  border-color: #181b1f;
  background: rgba(255, 255, 255, 0.76);
  color: #181b1f;
}

.section-shell {
  width: min(100% - 88px, 1290px);
  margin: 0 auto;
}

.hero {
  display: grid;
  grid-template-columns: minmax(430px, 0.95fr) minmax(500px, 1.05fr);
  align-items: center;
  min-height: calc(100vh - 80px);
  padding: 42px 0 50px;
  gap: 18px;
}

.hero-copy {
  position: relative;
  z-index: 2;
  max-width: 650px;
}

.hero h1 {
  margin: 0;
  max-width: 740px;
  font-size: clamp(46px, 4.4vw, 70px);
  line-height: 1.07;
  font-weight: 800;
  letter-spacing: 0;
}

.hero p {
  max-width: 540px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: clamp(17px, 1.3vw, 20px);
  line-height: 1.62;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 30px;
}

.hero-visual {
  position: relative;
  min-height: 560px;
  isolation: isolate;
}

.hero-visual img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center right;
  border-radius: 0 0 0 var(--radius);
  mask-image: linear-gradient(90deg, transparent 0%, #000 18%, #000 100%);
}

.floating-panel {
  position: absolute;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.74);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}

.chat-panel {
  top: 80px;
  right: 72px;
  width: 250px;
  padding: 18px;
}

.panel-topline {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 16px;
  color: #292d31;
  font-size: 13px;
  font-weight: 800;
}

.avatar-dot {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--coral), #ffd1c8);
}

.message {
  height: 28px;
  margin-top: 10px;
  border-radius: 8px;
  background: #fff;
}

.message.muted {
  width: 74%;
}

.message.accent {
  width: 62%;
  margin-left: auto;
  background: var(--coral-soft);
}

.message.small {
  width: 48%;
}

.play-panel {
  right: 300px;
  bottom: 74px;
  width: 310px;
  height: 190px;
  overflow: hidden;
  background: linear-gradient(180deg, #d9f2ff 0%, #f8fff2 100%);
}

.game-hill,
.game-path,
.game-sun {
  position: absolute;
}

.game-hill {
  left: -20px;
  right: -20px;
  bottom: -34px;
  height: 120px;
  border-radius: 55% 55% 0 0;
  background: linear-gradient(135deg, #9edb78, #e2f4b7);
}

.game-path {
  left: 118px;
  bottom: 0;
  width: 50px;
  height: 154px;
  border-radius: 50% 50% 0 0;
  background: rgba(255, 255, 255, 0.72);
  transform: rotate(14deg);
}

.game-sun {
  top: 28px;
  right: 36px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--yellow);
  box-shadow: 0 0 0 12px rgba(248, 180, 58, 0.14);
}

.ritual-panel {
  right: 52px;
  bottom: 118px;
  width: 140px;
  height: 198px;
  display: grid;
  place-items: center;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.8), rgba(231, 243, 255, 0.78));
}

.ritual-panel span {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  border: 2px solid rgba(84, 169, 245, 0.5);
  box-shadow: inset 0 0 0 14px rgba(84, 169, 245, 0.1);
}

.ritual-panel strong {
  position: absolute;
  bottom: 34px;
  width: 70px;
  height: 8px;
  border-radius: 8px;
  background: rgba(17, 18, 19, 0.16);
}

.products {
  padding: 78px 0 92px;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 48px;
  margin-bottom: 36px;
}

.section-heading.narrow {
  display: block;
  max-width: 620px;
}

.section-heading h2,
.philosophy-copy h2,
.company h2 {
  margin: 0;
  font-size: clamp(40px, 4vw, 62px);
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: 0;
}

.section-heading p {
  max-width: 450px;
  margin: 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.65;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.product-card {
  min-height: 486px;
}

.product-art {
  position: relative;
  aspect-ratio: 247 / 226;
  height: auto;
  margin-bottom: 26px;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid rgba(231, 233, 235, 0.9);
  background: var(--surface);
}

.product-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-card h3 {
  margin: 0;
  font-size: 26px;
  line-height: 1.2;
  font-weight: 800;
}

.product-card p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.6;
}

.philosophy {
  display: grid;
  grid-template-columns: minmax(320px, 0.8fr) minmax(520px, 1.2fr);
  align-items: center;
  min-height: 520px;
  background: linear-gradient(90deg, #f9fbfd 0%, #ffffff 55%);
  border-block: 1px solid var(--line);
}

.philosophy-visual {
  height: 100%;
  min-height: 520px;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0) 62%, #fff 100%),
    radial-gradient(circle at 62% 36%, rgba(248, 180, 58, 0.28), transparent 25%),
    linear-gradient(145deg, #e7f3ff 0%, #fff3d5 62%, #fff 100%);
}

.philosophy-copy {
  width: min(100% - 72px, 780px);
  padding: 80px 0;
}

.section-label {
  margin: 0 0 14px;
  color: #1f2326;
  font-size: 22px;
  font-weight: 600;
}

.values {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 50px;
}

.values article {
  min-height: 176px;
  padding-right: 24px;
  border-right: 1px solid var(--line);
}

.values article:last-child {
  border-right: 0;
}

.value-icon {
  display: inline-flex;
  width: 54px;
  height: 54px;
  margin-bottom: 20px;
  color: currentColor;
}

.value-icon svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.coral {
  color: var(--coral);
}

.green {
  color: var(--green);
}

.blue {
  color: var(--blue);
}

.values h3,
.safety-grid h3 {
  margin: 0;
  font-size: 17px;
  line-height: 1.3;
  font-weight: 800;
}

.values p,
.safety-grid p,
.company p,
.site-footer p {
  margin: 10px 0 0;
  color: var(--muted);
}

.safety {
  padding: 86px 0 92px;
}

.safety-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin-top: 54px;
}

.safety-grid article {
  min-height: 190px;
  padding: 0 34px;
  border-right: 1px solid var(--line);
}

.safety-grid article:first-child {
  padding-left: 0;
}

.safety-grid article:last-child {
  padding-right: 0;
  border-right: 0;
}

.safety-icon {
  position: relative;
  display: block;
  width: 54px;
  height: 54px;
  margin-bottom: 24px;
  border: 2px solid currentColor;
  border-radius: 50% 50% 50% 8px;
}

.safety-icon.lock {
  border-radius: 8px;
}

.safety-icon.lock::before {
  content: "";
  position: absolute;
  left: 15px;
  top: -15px;
  width: 20px;
  height: 22px;
  border: 2px solid currentColor;
  border-bottom: 0;
  border-radius: 14px 14px 0 0;
}

.safety-icon.shield {
  border-radius: 50% 50% 44% 44%;
}

.safety-icon.hand {
  border-radius: 28px 28px 18px 18px;
}

.yellow {
  color: var(--yellow);
}

.company {
  width: min(100% - 88px, 1290px);
  min-height: 310px;
  margin: 0 auto 0;
  padding: 62px 0;
  border-top: 1px solid var(--line);
  background:
    linear-gradient(90deg, #fff 0%, rgba(255, 255, 255, 0.94) 48%, rgba(255, 255, 255, 0) 100%),
    linear-gradient(135deg, rgba(84, 169, 245, 0.15), rgba(111, 189, 69, 0.12) 52%, rgba(248, 180, 58, 0.18));
}

.company > div {
  max-width: 790px;
}

.company p:not(.section-label) {
  max-width: 560px;
  font-size: 18px;
  line-height: 1.65;
}

.company .button {
  margin-top: 28px;
}

.site-footer {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 42px;
  width: min(100% - 88px, 1290px);
  margin: 0 auto;
  padding: 34px 0 42px;
  border-top: 1px solid var(--line);
}

.footer-brand {
  font-size: 30px;
}

.site-footer strong {
  display: block;
  margin-bottom: 10px;
  font-size: 15px;
}

.site-footer p {
  font-size: 14px;
}

.footer-links {
  display: grid;
  gap: 11px;
  justify-items: end;
  font-size: 14px;
}

.legal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 80px;
  width: min(100% - 88px, 1120px);
  margin: 0 auto;
  border-bottom: 1px solid var(--line);
}

.legal-main {
  width: min(100% - 88px, 860px);
  margin: 0 auto;
  padding: 70px 0 96px;
}

.legal-main h1 {
  margin: 0;
  font-size: clamp(42px, 6vw, 68px);
  line-height: 1.04;
  font-weight: 800;
  letter-spacing: 0;
}

.legal-main h2 {
  margin: 42px 0 10px;
  font-size: 24px;
  line-height: 1.25;
}

.legal-main p {
  margin: 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.75;
}

.legal-main a {
  color: var(--coral);
  font-weight: 700;
}

.legal-updated {
  margin-top: 16px !important;
}

.legal-main hr {
  height: 1px;
  margin: 72px 0;
  border: 0;
  background: var(--line);
}

.not-found {
  display: grid;
  align-content: center;
  justify-items: start;
  min-height: 100vh;
  width: min(100% - 88px, 760px);
  margin: 0 auto;
}

.not-found h1 {
  margin: 60px 0 16px;
  font-size: clamp(52px, 8vw, 88px);
  line-height: 1;
  letter-spacing: 0;
}

.not-found p {
  max-width: 520px;
  margin: 0 0 34px;
  color: var(--muted);
  font-size: 20px;
  line-height: 1.65;
}

@media (max-width: 1120px) {
  .site-header {
    grid-template-columns: auto auto;
    justify-content: space-between;
  }

  .nav-links {
    display: none;
  }

  .menu-toggle {
    display: grid;
  }

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

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

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

  .chat-panel {
    right: 40px;
  }

  .play-panel {
    right: 230px;
  }

  .section-heading {
    display: block;
  }

  .section-heading p {
    margin-top: 16px;
  }

  .philosophy {
    grid-template-columns: 1fr;
  }

  .philosophy-visual {
    min-height: 260px;
  }

  .philosophy-copy {
    width: min(100% - 88px, 1290px);
    margin: 0 auto;
  }

  .safety-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 38px 0;
  }

  .safety-grid article:nth-child(2) {
    border-right: 0;
    padding-right: 0;
  }

  .safety-grid article:nth-child(3) {
    padding-left: 0;
  }
}

@media (max-width: 760px) {
  .site-header {
    height: 70px;
    padding-inline: 18px;
    gap: 18px;
  }

  .brand {
    font-size: 26px;
  }

  .brand-mark {
    width: 13px;
    height: 13px;
  }

  .header-cta {
    display: none;
  }

  .site-header.menu-open .mobile-menu {
    display: block;
  }

  .language-toggle {
    font-size: 13px;
  }

  .section-shell,
  .company,
  .site-footer,
  .philosophy-copy {
    width: min(100% - 36px, 1290px);
  }

  .hero {
    padding: 52px 0 50px;
  }

  .hero h1 {
    font-size: clamp(38px, 10.4vw, 48px);
  }

  .hero p {
    font-size: 17px;
    line-height: 1.65;
  }

  .hero-actions {
    gap: 12px;
  }

  .button {
    min-height: 50px;
    padding-inline: 18px;
    font-size: 14px;
  }

  .hero-visual {
    min-height: 420px;
    margin-inline: -18px;
  }

  .hero-visual img {
    border-radius: 0;
    mask-image: linear-gradient(180deg, #000 0%, #000 76%, transparent 100%);
  }

  .chat-panel {
    top: 32px;
    right: 24px;
    width: 210px;
  }

  .play-panel {
    left: 18px;
    right: auto;
    bottom: 42px;
    width: 236px;
    height: 150px;
  }

  .ritual-panel {
    right: 20px;
    bottom: 72px;
    width: 102px;
    height: 150px;
  }

  .products {
    padding: 58px 0 66px;
  }

  .section-heading h2,
  .philosophy-copy h2,
  .company h2 {
    font-size: clamp(34px, 9vw, 46px);
  }

  .product-grid,
  .values,
  .safety-grid,
  .site-footer {
    grid-template-columns: 1fr;
  }

  .product-card {
    min-height: auto;
  }

  .product-art {
    aspect-ratio: 247 / 226;
  }

  .values article,
  .safety-grid article,
  .safety-grid article:first-child,
  .safety-grid article:nth-child(2),
  .safety-grid article:nth-child(3),
  .safety-grid article:last-child {
    min-height: auto;
    padding: 0;
    border-right: 0;
  }

  .philosophy-visual {
    min-height: 190px;
  }

  .philosophy-copy,
  .safety {
    padding-block: 58px;
  }

  .safety-grid {
    gap: 30px;
  }

  .company {
    padding-block: 54px;
  }

  .site-footer {
    gap: 28px;
  }

  .footer-links {
    justify-items: start;
  }

  .legal-header,
  .legal-main,
  .not-found {
    width: min(100% - 36px, 860px);
  }

  .legal-header {
    min-height: 70px;
  }

  .legal-header .brand {
    font-size: 26px;
  }

  .legal-main {
    padding: 50px 0 72px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.001ms !important;
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
  }
}
