@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@600;700;800;900&display=swap');

:root {
  color-scheme: dark;
  --bg: #070b13;
  --bg-deep: #050810;
  --surface: #0e1625;
  --surface-soft: rgba(18, 28, 46, 0.58);
  --line: rgba(145, 164, 199, 0.14);
  --line-strong: rgba(145, 164, 199, 0.22);
  --text: #f4f6fb;
  --muted: #8c98ad;
  --muted-bright: #b5bece;
  --accent: #f2834c;
  --blue: #526f9e;
  --blue-light: #6485ba;
  --page: min(1280px, calc(100vw - 64px));
  font-family: 'Nunito', sans-serif;
}

* { box-sizing: border-box; }
html { min-width: 300px; }
body {
  min-width: 300px;
  min-height: 100%;
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 67% 17%, rgba(56, 87, 139, 0.13), transparent 27%),
    linear-gradient(180deg, #07101c 0%, var(--bg) 42%, var(--bg-deep) 100%);
  color: var(--text);
  font-family: 'Nunito', sans-serif;
  -webkit-font-smoothing: antialiased;
}

button,
a { font: inherit; }
button { color: inherit; }
a { color: inherit; }
img { display: block; max-width: 100%; }

.site-noise {
  position: fixed;
  z-index: -2;
  inset: 0;
  pointer-events: none;
  opacity: 0.28;
  background-image: radial-gradient(rgba(255, 255, 255, 0.065) 0.65px, transparent 0.65px);
  background-size: 30px 30px;
  mask-image: linear-gradient(to bottom, #000, transparent 70%);
}

.site-header {
  position: relative;
  z-index: 20;
  display: grid;
  width: var(--page);
  min-height: 92px;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 24px;
  margin: 0 auto;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  width: max-content;
  align-items: center;
  gap: 11px;
  color: #fff;
  font-size: 24px;
  font-weight: 900;
  letter-spacing: -0.035em;
  text-decoration: none;
}

.brand > span:last-child span { color: var(--accent); }
.brand__mark {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  background: rgba(14, 22, 36, 0.78);
}
.brand__mark img { width: 43px; height: 43px; object-fit: contain; }

.site-footer__links {
  display: flex;
  align-items: center;
  gap: 30px;
}

.site-footer__links a {
  padding: 6px 0;
  color: var(--muted-bright);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  transition: color 160ms ease;
}
.site-footer__links a:hover { color: #fff; }

.button {
  display: inline-flex;
  min-height: 54px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 24px;
  border: 1px solid rgba(151, 180, 225, 0.25);
  border-radius: 16px;
  background: linear-gradient(135deg, var(--blue), var(--blue-light));
  box-shadow: 0 14px 36px rgba(32, 56, 93, 0.26), inset 0 1px rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 15px;
  font-weight: 900;
  text-decoration: none;
  transition: transform 180ms ease, filter 180ms ease, border-color 180ms ease;
}

.button:hover { filter: brightness(1.08); transform: translateY(-2px); }
.button:focus-visible,
.language-picker__trigger:focus-visible,
.language-picker__option:focus-visible,
.site-footer__socials a:focus-visible { outline: 3px solid rgba(105, 142, 202, 0.55); outline-offset: 3px; }
.button img { width: 21px; height: 21px; filter: brightness(0) invert(1); }
.button--compact { min-height: 44px; justify-self: end; padding: 0 17px; border-radius: 13px; font-size: 13px; }
.button--compact img { width: 18px; height: 18px; }
.button--ghost {
  min-height: auto;
  padding: 10px 5px;
  border: 0;
  background: none;
  box-shadow: none;
  color: var(--muted-bright);
}
.button--ghost::after { margin-left: 3px; content: '→'; }
.button--ghost:hover { color: #fff; filter: none; }

.hero {
  position: relative;
  display: grid;
  width: var(--page);
  min-height: min(790px, calc(100svh - 92px));
  grid-template-columns: minmax(510px, 1fr) minmax(0, 1.08fr);
  align-items: center;
  gap: 40px;
  margin: 0 auto;
  padding: 54px 0 92px;
}

.hero__copy { position: relative; z-index: 4; max-width: 560px; }
.hero h1 {
  margin: 0;
  font-size: clamp(50px, 5.1vw, 70px);
  font-weight: 900;
  letter-spacing: -0.058em;
  line-height: 0.99;
}
.hero h1 span { display: block; }
.hero h1 .accent { color: var(--accent); }
.hero__copy > p:not(.entry-status) {
  max-width: 520px;
  margin: 26px 0 0;
  color: var(--muted-bright);
  font-size: clamp(17px, 1.5vw, 20px);
  font-weight: 600;
  line-height: 1.55;
}
.hero__actions { display: flex; align-items: center; gap: 24px; margin-top: 34px; }
.entry-status { margin: 18px 0 0; color: var(--muted); font-size: 13px; font-weight: 700; }
.entry-status[data-state='error'] { color: #f6a088; }

.hero-art {
  position: relative;
  min-height: 570px;
  align-self: stretch;
}
.hero-art__halo {
  position: absolute;
  width: 540px;
  height: 390px;
  top: 50%;
  left: 50%;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(73, 112, 174, 0.25), rgba(73, 112, 174, 0.05) 54%, transparent 72%);
  filter: blur(18px);
  transform: translate(-48%, -47%);
}
.hero-art__orbit {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 580px;
  height: 260px;
  border: 1px solid rgba(91, 130, 192, 0.12);
  border-radius: 50%;
  transform: translate(-50%, -39%) rotate(-8deg);
}
.hero-art__orbit--two { width: 480px; height: 205px; border-color: rgba(242, 131, 76, 0.08); transform: translate(-49%, -38%) rotate(11deg); }
.hero-art__pinata {
  position: absolute;
  z-index: 3;
  width: min(520px, 72%);
  top: 50%;
  left: 52%;
  filter: drop-shadow(0 30px 35px rgba(0, 0, 0, 0.42));
  transform: translate(-50%, -50%);
  animation: pinata-float 6s ease-in-out infinite;
}
.hero-art__ground {
  position: absolute;
  z-index: 1;
  width: 440px;
  height: 80px;
  left: 52%;
  bottom: 11%;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(41, 69, 111, 0.5), transparent 68%);
  filter: blur(14px);
  transform: translateX(-50%);
}
.gift-orbit {
  position: absolute;
  z-index: 4;
  width: 112px;
  height: 112px;
  filter: drop-shadow(0 18px 24px rgba(0, 0, 0, 0.34));
  transition: opacity 420ms ease;
}
.gift-orbit.is-changing { opacity: 0; }
.gift-orbit img,
.gift-orbit svg { width: 100% !important; height: 100% !important; object-fit: contain; }
.gift-orbit--primary { top: 25%; left: 3%; animation: gift-drift-one 7s ease-in-out infinite; }
.gift-orbit--secondary { right: 0; bottom: 22%; animation: gift-drift-two 8s ease-in-out infinite; }
.hero-art__spark { position: absolute; width: 4px; height: 4px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 12px var(--accent); opacity: 0.65; }
.hero-art__spark--one { top: 21%; left: 31%; }
.hero-art__spark--two { top: 38%; right: 8%; }
.hero-art__spark--three { right: 26%; bottom: 14%; }

.experience {
  width: var(--page);
  margin: 0 auto;
  padding: 116px 0 96px;
  border-top: 1px solid var(--line);
}
.section-heading { max-width: 650px; margin: 0 auto 72px; text-align: center; }
.section-heading h2 { margin: 0; font-size: clamp(34px, 4vw, 52px); font-weight: 900; letter-spacing: -0.045em; }
.section-heading p { margin: 15px 0 0; color: var(--muted); font-size: 17px; line-height: 1.55; }

.experience-grid {
  display: grid;
  max-width: 1050px;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin: 0 auto;
}
.product-story {
  position: relative;
  min-height: 220px;
  padding: 12px 54px;
}
.product-story + .product-story { border-left: 1px solid var(--line); }
.product-story__number { display: block; margin-bottom: 24px; color: var(--accent); font-size: 13px; font-weight: 900; letter-spacing: 0.08em; }
.product-story h3 { margin: 0; font-size: 22px; font-weight: 900; letter-spacing: -0.02em; }
.product-story p { margin: 13px 0 0; color: var(--muted); font-size: 15px; line-height: 1.58; }

.trust-rail {
  display: grid;
  max-width: 1130px;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin: 82px auto 0;
  padding: 34px 0 0;
  border-top: 1px solid var(--line);
}
.trust-rail article { display: flex; gap: 16px; padding: 0 34px; }
.trust-rail article + article { border-left: 1px solid var(--line); }
.trust-rail i { flex: 0 0 auto; width: 6px; height: 6px; margin-top: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 12px rgba(242, 131, 76, 0.38); }
.trust-rail h3 { margin: 0; font-size: 16px; font-weight: 800; }
.trust-rail p { margin: 7px 0 0; color: var(--muted); font-size: 13px; line-height: 1.55; }

.site-footer {
  width: var(--page);
  margin: 0 auto;
  border-top: 1px solid var(--line);
}
.site-footer__main {
  display: grid;
  min-height: 122px;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 28px;
}
.brand--footer { font-size: 21px; }
.brand--footer .brand__mark { width: 43px; height: 43px; border-radius: 14px; }
.brand--footer .brand__mark img { width: 39px; height: 39px; }
.site-footer__socials { display: flex; justify-content: flex-end; gap: 11px; }
.site-footer__socials a {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: rgba(17, 27, 44, 0.5);
  transition: transform 180ms ease, border-color 180ms ease;
}
.site-footer__socials a:hover { border-color: rgba(151, 180, 225, 0.45); transform: translateY(-2px); }
.site-footer__socials img { width: 20px; height: 20px; filter: brightness(0) invert(1); }
.site-footer__socials a:last-child img { filter: brightness(0) invert(0.82); }

.site-footer__bottom {
  position: relative;
  display: grid;
  min-height: 112px;
  grid-template-columns: minmax(230px, 0.44fr) minmax(0, 1fr);
  align-items: center;
  gap: 48px;
  border-top: 1px solid var(--line);
}
.site-footer__copyright { margin: 0; color: #687489; font-size: 11px; line-height: 1.55; }
.language-picker { position: relative; width: min(100%, 290px); }
.language-picker__trigger {
  display: flex;
  width: 100%;
  min-height: 46px;
  align-items: center;
  gap: 10px;
  padding: 0 15px;
  border: 1px solid var(--line-strong);
  border-radius: 13px;
  background: rgba(12, 20, 33, 0.8);
  color: var(--muted-bright);
  cursor: pointer;
  font-size: 13px;
  font-weight: 800;
  text-align: left;
}
.language-picker__trigger > span:first-child { min-width: 0; flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.language-picker__chevron { width: 8px; height: 8px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-2px) rotate(45deg); transition: transform 160ms ease; }
.language-picker.is-open .language-picker__chevron { transform: translateY(2px) rotate(225deg); }
.language-picker__menu {
  position: absolute;
  z-index: 40;
  width: min(340px, calc(100vw - 32px));
  max-height: min(570px, 72vh);
  left: 0;
  bottom: calc(100% + 12px);
  overflow: auto;
  padding: 10px;
  border: 1px solid var(--line-strong);
  border-radius: 20px;
  background: rgba(14, 20, 32, 0.98);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(20px);
  scrollbar-width: thin;
  scrollbar-color: #35435a transparent;
}
.language-picker__option {
  display: flex;
  width: 100%;
  min-height: 48px;
  align-items: center;
  justify-content: space-between;
  padding: 0 14px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: #e7ebf3;
  cursor: pointer;
  font-size: 15px;
  font-weight: 700;
  text-align: left;
}
.language-picker__option:hover { background: rgba(90, 107, 137, 0.14); }
.language-picker__option[aria-selected='true'] { background: rgba(89, 107, 139, 0.26); color: #fff; }
.language-picker__option[aria-selected='true']::after { color: var(--accent); content: '✓'; }

@keyframes pinata-float { 0%,100% { transform: translate(-50%, -50%) rotate(-0.7deg); } 50% { transform: translate(-50%, calc(-50% - 11px)) rotate(0.7deg); } }
@keyframes gift-drift-one { 0%,100% { transform: translate3d(0,0,0) rotate(-5deg); } 50% { transform: translate3d(8px,-13px,0) rotate(4deg); } }
@keyframes gift-drift-two { 0%,100% { transform: translate3d(0,0,0) rotate(5deg); } 50% { transform: translate3d(-9px,12px,0) rotate(-4deg); } }

@media (max-width: 980px) {
  :root { --page: min(100% - 40px, 820px); }
  .site-header { grid-template-columns: 1fr auto; }
  .hero { min-height: auto; grid-template-columns: 1fr; gap: 20px; padding: 72px 0 94px; text-align: center; }
  .hero__copy { max-width: 680px; margin: 0 auto; }
  .hero__copy > p:not(.entry-status) { margin-inline: auto; }
  .hero__actions { justify-content: center; }
  .hero-art { min-height: 500px; }
  .hero-art__pinata { width: min(490px, 68%); }
  .experience-grid { max-width: 720px; }
  .product-story { padding: 12px 30px; }
  .trust-rail { grid-template-columns: 1fr; max-width: 720px; }
  .trust-rail article { padding: 22px 10px; }
  .trust-rail article + article { border-top: 1px solid var(--line); border-left: 0; }
}

@media (max-width: 680px) {
  :root { --page: calc(100% - 32px); }
  .site-header { min-height: 76px; }
  .brand { gap: 8px; font-size: 20px; }
  .brand__mark { width: 42px; height: 42px; border-radius: 14px; }
  .brand__mark img { width: 38px; height: 38px; }
  .button--compact { width: 44px; min-height: 44px; padding: 0; }
  .button--compact span { display: none; }
  .hero { padding-top: 58px; }
  .hero h1 { font-size: clamp(42px, 12.3vw, 61px); }
  .hero__copy > p:not(.entry-status) { margin-top: 22px; font-size: 16px; }
  .hero__actions { flex-direction: column; gap: 8px; margin-top: 29px; }
  .hero__actions .button:first-child { width: min(100%, 330px); }
  .hero-art { min-height: 390px; margin-top: 8px; }
  .hero-art__pinata { width: min(350px, 78%); }
  .hero-art__halo { width: 360px; height: 280px; }
  .hero-art__orbit { width: 360px; height: 160px; }
  .hero-art__orbit--two { width: 310px; height: 130px; }
  .hero-art__ground { width: 300px; bottom: 9%; }
  .gift-orbit { width: 78px; height: 78px; }
  .gift-orbit--diamond { top: 27%; left: -2%; }
  .gift-orbit--heart { right: -1%; bottom: 23%; }
  .experience { padding: 84px 0 68px; }
  .section-heading { margin-bottom: 52px; }
  .section-heading h2 { font-size: 35px; }
  .section-heading p { font-size: 15px; }
  .experience-grid { grid-template-columns: 1fr; }
  .product-story { min-height: auto; padding: 26px 4px 34px; }
  .product-story + .product-story { border-top: 1px solid var(--line); border-left: 0; }
  .product-story__number { margin-bottom: 12px; }
  .product-story h3 { font-size: 20px; }
  .product-story p { max-width: 440px; }
  .trust-rail { margin-top: 48px; }
  .trust-rail article { padding-inline: 4px; }
  .site-footer__main { min-height: 190px; grid-template-columns: 1fr auto; align-content: center; }
  .brand--footer { font-size: 19px; }
  .site-footer__links { grid-column: 1 / -1; grid-row: 2; justify-content: center; gap: 24px; }
  .site-footer__bottom { min-height: 190px; grid-template-columns: 1fr; gap: 22px; padding: 30px 0; }
  .language-picker { width: 100%; max-width: none; }
  .site-footer__copyright { text-align: center; }
  .language-picker__menu { position: fixed; width: calc(100vw - 24px); max-height: min(620px, calc(100svh - 48px)); right: 12px; bottom: 12px; left: 12px; padding: 12px; border-radius: 24px; }
  .language-picker__option { min-height: 52px; font-size: 16px; }
}

@media (max-width: 390px) {
  .hero h1 { font-size: 40px; }
  .hero-art { min-height: 340px; }
  .gift-orbit { width: 66px; height: 66px; }
}

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