@font-face {
  font-family: "Inter";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("/assets/fonts/inter-latin-wght-normal.woff2") format("woff2-variations");
}

@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-display: swap;
  font-weight: 100 800;
  src: url("/assets/fonts/jetbrains-mono-latin-wght-normal.woff2") format("woff2-variations");
}

:root {
  --hypr-cyan: #50c8ff;
  --pill-bg: rgba(12, 12, 14, 0.55);
  --pill-border: rgba(255, 255, 255, 0.08);
  --text: #f2f2f5;
  --muted: rgba(255, 255, 255, 0.72);
  --page-bg: #0b0b0d;
  --nav-stack-offset: 78px;
  --touch-min: 44px;
  --content-max: 1152px;
  --section-pad-x: clamp(18px, 4vw, 28px);
  --scroll-pad-desktop: calc(96px + env(safe-area-inset-top, 0px));
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--scroll-pad-desktop);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  color-scheme: dark;
  -webkit-tap-highlight-color: rgba(80, 200, 255, 0.12);
}

html.site-auth-user .nav-auth-guest,
html.site-auth-guest .site-account-btn,
html.site-auth-guest .site-nav-balance {
  display: none !important;
}

html.site-content-hydrating .page-main,
html.site-route-hydrating .page-main {
  position: relative;
  min-height: 50vh;
}

html.site-content-hydrating .page-main > :not(.page-main__bg),
html.site-route-hydrating .page-main > :not(.page-main__bg) {
  visibility: hidden;
}

html.site-content-hydrating .nav-dock,
html.site-content-hydrating .bottom-dock,
html.site-route-hydrating .nav-dock,
html.site-route-hydrating .bottom-dock {
  visibility: visible;
}

html.site-content-hydrating .page-main::after,
html.site-route-hydrating .page-main::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: linear-gradient(
    110deg,
    rgba(255, 255, 255, 0.03) 8%,
    rgba(255, 255, 255, 0.08) 18%,
    rgba(255, 255, 255, 0.03) 33%
  );
  background-size: 200% 100%;
  animation: site-skeleton-shimmer 1.2s ease-in-out infinite;
}

@keyframes site-skeleton-shimmer {
  0% {
    background-position: 100% 0;
  }
  100% {
    background-position: -100% 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  html.site-content-hydrating .page-main::after,
  html.site-route-hydrating .page-main::after {
    animation: none;
    background: rgba(255, 255, 255, 0.04);
  }
}

body {
  min-height: 100vh;
  min-height: 100dvh;
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--page-bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

.page-main__bg {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(ellipse 120% 80% at 50% -20%, rgba(80, 200, 255, 0.14), transparent 55%),
    radial-gradient(ellipse 70% 50% at 100% 40%, rgba(80, 200, 255, 0.05), transparent 45%),
    linear-gradient(180deg, #0e1014 0%, var(--page-bg) 38%, var(--page-bg) 100%);
}

.page-main__bg::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.35;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 85% 70% at 50% 25%, black 15%, transparent 70%);
}

.section {
  position: relative;
  z-index: 1;
  padding: clamp(56px, 10vw, 100px) var(--section-pad-x);
}

.section__inner {
  max-width: var(--content-max);
  margin: 0 auto;
}

.section__inner--narrow {
  max-width: 720px;
}

.section__inner--preview {
  max-width: 780px;
}

.section__title {
  margin: 0 0 0.5rem;
  font-size: clamp(1.5rem, 3.5vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--text);
}

.section__intro {
  margin: 0 0 2rem;
  max-width: 36rem;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--muted);
}

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

  .nav-btn,
  .icon-btn,
  .auth-modal,
  .auth-modal__dialog,
  .payment-modal__stage,
  .payment-modal .payment-modal__method-btn,
  .nav-mobile-sheet,
  .nav-mobile__toggle-lines span,
  .lang-switcher__caret,
  .hero-title,
  .hero-lead,
  .hero-actions,
  .preview-tab,
  .product-card--glass,
  .product-card__shine,
  .site-notification,
  .auth-modal__check-ui,
  .auth-modal__check-ui::after,
  .auth-modal__pw-toggle {
    transition: none !important;
    animation: none !important;
  }

  .product-card--glass:hover {
    transform: none !important;
  }
}
