@font-face {
  font-family: Inter;
  src: url('/assets/fonts/Inter-Regular-latin-cyrillic.woff2?v=af4a04fa399a') format('woff2');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: Inter;
  src: url('/assets/fonts/Inter-SemiBold-latin-cyrillic.woff2?v=55ddd32cf50e') format('woff2');
  font-weight: 600;
  font-display: swap;
}
:root { font-family: Inter, Arial, sans-serif; color: #000; background: #fff; color-scheme: light; font-synthesis: none; }
* { box-sizing: border-box; }
body { margin: 0; background: #fff; -webkit-font-smoothing: antialiased; }
button, a { font: inherit; }
a { color: inherit; text-decoration: none; }
a:focus-visible { outline: 3px solid #ff572c; outline-offset: 5px; border-radius: 3px; }
.canvas { width: 100%; }
.hero {
  --scene-width: min(52.291667vw, 1004px);
  position: relative;
  isolation: isolate;
  min-height: max(calc(290px + var(--scene-width) * 1.003984), 100vh);
  min-height: max(calc(290px + var(--scene-width) * 1.003984), 100lvh);
  overflow: hidden;
  border-radius: 0;
  background: linear-gradient(180deg, #fff 0%, #fff 43%, #ffefea 65%, #ff572c 100%);
}
.social-nav {
  position: absolute; z-index: 3; top: 40px; left: 50%; transform: translateX(-50%);
  display: flex; align-items: center; gap: 40px;
  width: 585px; height: 92px; padding: 24px 40px;
  border-radius: 100px; background: #f8f8f8;
}
.brand-mark {
  display: block; flex: none; width: 56px; height: 41px; background: #ff572c;
  mask: url('/assets/brand/meenity-logo.svg?v=f24d8de777ba') center/contain no-repeat;
  -webkit-mask: url('/assets/brand/meenity-logo.svg?v=f24d8de777ba') center/contain no-repeat;
}
.social-links { display: flex; align-items: center; gap: 32px; font-size: 16px; line-height: 1; white-space: nowrap; }
.social-links a:hover { text-decoration: underline; text-underline-offset: 4px; }
.hero-copy { position: absolute; z-index: 2; top: 264px; left: max(4.166667vw, calc((100% - 1920px) / 2 + 80px)); width: min(43.125vw, 828px); }
.hero-copy h1 { margin: 0; font-size: min(4.166667vw, 80px); font-weight: 600; line-height: .98; letter-spacing: -.03em; }
.hero-copy h1 span { display: block; white-space: nowrap; }
.mobile-break { display: none; }
.hero-copy p { margin: 24px 0 0; font-size: min(1.458333vw, 28px); line-height: 1.15; letter-spacing: -.02em; white-space: nowrap; }
.store-links { display: flex; gap: clamp(12px, .833333vw, 16px); margin-top: clamp(28px, 2.1875vw, 42px); }
.store-links button {
  display: flex; align-items: center; justify-content: center; gap: 12px;
  min-width: 0; height: clamp(48px, 3.333333vw, 64px); padding: 0 clamp(16px, 1.25vw, 24px);
  border: 0; border-radius: 100px; background: #ff572c; color: #fff;
  font-size: clamp(14px, 1.041667vw, 20px); line-height: 1; white-space: nowrap; opacity: 1; cursor: not-allowed;
}
.store-links button:first-child { width: min(15.9375vw, 306px); }
.store-links button:last-child { width: min(17.083333vw, 328px); }
.store-links svg { display: block; flex: none; width: 24px; height: 26px; }

/* The full phone stays inside the hero, with room below its original 1008px contour. */
/* Figma layers stay independent: entrance and floating motion use separate wrappers. */
.product-scene {
  position: absolute; z-index: 1; top: 258px;
  right: max(6.71875vw, calc((100% - 1920px) / 2 + 129px));
  width: var(--scene-width); aspect-ratio: 1004 / 1008; pointer-events: none;
}
.product-scene img { display: block; width: 100%; height: auto; }
.phone-layer { position: absolute; top: 0; left: 25.1%; width: 48.805%; }
.card-layer { position: absolute; }
.card-event { top: 26.03%; left: 59.55%; width: 41.5%; }
.card-community { top: 52.04%; left: -1%; width: 45.485%; }
.layer-loading { visibility: hidden; }
/* Release entrance transforms after playback so zoom can repaint the SVG sharply. */
.phone-layer.layer-ready { animation: phone-enter 1.65s cubic-bezier(.16, 1, .3, 1) backwards; }
.card-layer.layer-ready { animation: card-enter 1.3s cubic-bezier(.16, 1, .3, 1) backwards; }
.card-event.layer-ready { animation-delay: .5s; }
.card-community.layer-ready { animation-delay: .76s; }
.card-event.layer-ready .floating-card { animation: event-float 6s ease-in-out 1.8s infinite; }
.card-community.layer-ready .floating-card { animation: community-float 7s ease-in-out 2.06s infinite; }
.scene-paused .floating-card { animation-play-state: paused !important; }
@keyframes phone-enter {
  from { opacity: 0; transform: translateY(38%); }
  to { opacity: 1; transform: none; }
}
@keyframes card-enter {
  from { opacity: 0; transform: translateY(32px) scale(.97); filter: blur(7px); }
  to { opacity: 1; transform: none; filter: none; }
}
@keyframes event-float {
  0%, 100% { transform: translate(0, 0) rotate(0); }
  50% { transform: translate(-3px, -9px) rotate(-.6deg); }
}
@keyframes community-float {
  0%, 100% { transform: translate(0, 0) rotate(0); }
  50% { transform: translate(3px, 7px) rotate(.6deg); }
}
.site-footer {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  min-height: 160px; background: #ff572c;
  padding: 36px 56px calc(36px + env(safe-area-inset-bottom));
  padding-inline: max(56px, calc((100% - 1872px) / 2 + 56px));
  color: #2d160f; font-size: 14px; line-height: 1.5;
}
.footer-brand { display: flex; align-items: center; gap: 16px; }
.footer-brand .brand-mark { width: 32px; height: 24px; background: currentColor; }
.site-footer p { margin: 0; }

@media (max-width: 1279px) {
  /* The scene includes card overhang; gutters also leave room for motion and blur. */
  .hero { --scene-width: min(648px, calc(100% - 64px)); min-height: max(1208px, 100vh); min-height: max(1208px, 100lvh); }
  .social-nav { top: 40px; }
  .hero-copy { top: 196px; left: 32px; width: calc(100% - 64px); }
  .hero-copy h1 { font-size: clamp(50px, 7.8vw, 60px); line-height: 1.1; letter-spacing: -.03em; }
  .hero-copy p { font-size: 24px; line-height: 29px; }
  .store-links { margin-top: 42px; }
  .store-links button:first-child, .store-links button:last-child { width: 320px; height: 64px; font-size: 20px; }
  .product-scene { top: auto; bottom: 32px; right: auto; left: calc((100% - var(--scene-width)) / 2); aspect-ratio: 1004 / 1008; }
}
@media (max-width: 650px) {
  /* lvh also covers the extra space exposed when mobile browser bars retract. */
  .hero {
    --scene-width: calc(100% - 64px);
    min-height: max(844px, calc(549px + (100vw - 64px) * 1.268), 100vh);
    min-height: max(844px, calc(549px + (100vw - 64px) * 1.268), 100lvh);
    background: linear-gradient(180deg, #fff 0%, #fff 46%, #ffebe5 68%, #ff572c 100%);
  }
  .social-nav { top: 32px; left: 16px; transform: none; width: calc(100% - 32px); height: 88px; padding: 16px; gap: 24px; }
  .social-links { display: grid; grid-template-columns: auto auto; column-gap: 22px; row-gap: 16px; font-size: 16px; }
  .hero-copy { top: 162px; left: 16px; width: calc(100% - 32px); }
  .hero-copy h1 { font-size: 40px; line-height: 1.1; }
  .hero-copy h1 span { white-space: normal; }
  .mobile-break { display: block; }
  .hero-copy p { margin-top: 16px; font-size: 16px; line-height: 19px; white-space: nowrap; }
  .store-links { flex-direction: column; gap: 12px; margin-top: 32px; }
  .store-links button:first-child, .store-links button:last-child { width: 100%; height: 56px; padding: 0 14px; font-size: 16px; }
  .store-links svg { width: 22px; height: 24px; }
  .product-scene { aspect-ratio: 358 / 454; }
  .phone-layer { left: 19.15%; width: 61.64%; }
  .card-event { top: 26.8%; }
  .card-community { top: 45.69%; }
  .site-footer { min-height: 160px; flex-direction: column; align-items: flex-start; justify-content: center; gap: 16px; padding: 28px 24px calc(28px + env(safe-area-inset-bottom)); font-size: 13px; }
}
@media (max-width: 370px) {
  .social-nav { gap: 15px; }
  .social-links { column-gap: 13px; font-size: 14px; }
  .hero-copy h1 { font-size: clamp(34px, 10.2vw, 40px); }
  .hero-copy p { font-size: clamp(13px, 4vw, 16px); }
}
/* Keep the footer one short scroll away in phone landscape as well. */
@media (max-height: 650px) and (orientation: landscape) and (max-width: 1279px) {
  .hero {
    --scene-width: min(40vw, calc((max(480px, 100vh) - 120px) / 1.268));
    min-height: max(480px, 100vh); min-height: max(480px, 100lvh);
  }
  @supports (height: 100lvh) {
    .hero { --scene-width: min(40vw, calc((max(480px, 100lvh) - 120px) / 1.268)); }
  }
  .social-nav { top: 16px; left: 24px; transform: none; width: calc(100% - 48px); height: 56px; padding: 12px 24px; gap: 28px; }
  .social-nav .brand-mark { width: 40px; height: 30px; }
  .social-links { display: flex; gap: 24px; font-size: 13px; }
  .hero-copy { top: 102px; left: 24px; width: calc(100% - var(--scene-width) - 80px); }
  .hero-copy h1 { font-size: clamp(28px, 4.5vw, 44px); line-height: 1.05; }
  .hero-copy h1 span { white-space: normal; }
  .mobile-break { display: none; }
  .hero-copy p { max-width: 330px; margin-top: 12px; font-size: 14px; line-height: 1.4; white-space: normal; }
  .store-links { flex-direction: row; gap: 8px; margin-top: 20px; }
  .store-links button:first-child, .store-links button:last-child { width: auto; height: 44px; padding: 0 12px; gap: 6px; font-size: 11px; }
  .store-links svg { width: 16px; height: 18px; }
  .product-scene { top: auto; bottom: 24px; left: auto; right: 32px; aspect-ratio: 358 / 454; }
  .phone-layer { left: 19.15%; width: 61.64%; }
  .card-event { top: 26.8%; }
  .card-community { top: 45.69%; }
  .site-footer { min-height: 148px; padding: 28px 24px calc(28px + env(safe-area-inset-bottom)); }
}
@media (max-height: 650px) and (orientation: landscape) and (max-width: 750px) {
  .store-links { flex-direction: column; }
  .store-links button:first-child, .store-links button:last-child { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .product-scene .phone-layer, .product-scene .card-layer, .product-scene .floating-card {
    animation: none; visibility: visible; opacity: 1; transform: none; filter: none;
  }
}
