:root {
  color-scheme: dark;
  --bg: #050608;
  --charcoal: #11151a;
  --charcoal-soft: rgba(18, 23, 29, 0.74);
  --text: #f7fbff;
  --muted: #a9b2bd;
  --line: rgba(255, 255, 255, 0.14);
  --blue: #00a7ff;
  --red: #ff2f45;
  --green: #a7ff24;
  --shadow-blue: rgba(0, 167, 255, 0.34);
  --shadow-red: rgba(255, 47, 69, 0.28);
  --shadow-green: rgba(167, 255, 36, 0.22);
  --max-width: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  overflow-x: hidden;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  color: var(--text);
  background:
    linear-gradient(180deg, rgba(5, 6, 8, 0.1), rgba(5, 6, 8, 0.82) 72%),
    url("assets/images/hartman-nutra-hero-bg.jpg") center / cover no-repeat fixed,
    var(--bg);
  font-family: "Manrope", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body::before,
body::after {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  content: "";
}

body::before {
  background:
    radial-gradient(circle at 18% 34%, rgba(0, 167, 255, 0.26), transparent 29%),
    radial-gradient(circle at 84% 45%, rgba(255, 47, 69, 0.22), transparent 31%),
    radial-gradient(circle at 74% 82%, rgba(167, 255, 36, 0.16), transparent 22%),
    linear-gradient(90deg, rgba(5, 6, 8, 0.3), rgba(5, 6, 8, 0.06), rgba(5, 6, 8, 0.34));
  mix-blend-mode: screen;
  opacity: 0.86;
  animation: ambientShift 18s ease-in-out infinite alternate;
}

body::after {
  z-index: -1;
  background:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.028) 1px, transparent 1px);
  background-size: 78px 78px;
  mask-image: radial-gradient(circle at center, rgba(0, 0, 0, 0.72), transparent 72%);
  opacity: 0.2;
}

a {
  color: inherit;
}

.preloader {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  gap: 22px;
  padding: 24px;
  background:
    radial-gradient(circle at 50% 46%, rgba(0, 167, 255, 0.16), transparent 31%),
    linear-gradient(135deg, #040506, #0b0f13 54%, #050608);
  transition: opacity 0.65s ease, visibility 0.65s ease;
}

.preloader__mark {
  display: grid;
  width: 72px;
  aspect-ratio: 1;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
  box-shadow: 0 0 34px var(--shadow-blue), inset 0 0 22px rgba(255, 255, 255, 0.06);
  font-family: "Oswald", Impact, sans-serif;
  font-size: 1.7rem;
  font-weight: 700;
  letter-spacing: 0;
}

.preloader__bar {
  position: absolute;
  bottom: 12vh;
  width: min(260px, 70vw);
  height: 2px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.13);
}

.preloader__bar span {
  display: block;
  width: 44%;
  height: 100%;
  background: linear-gradient(90deg, transparent, var(--blue), var(--green));
  box-shadow: 0 0 18px var(--shadow-blue);
  animation: preloaderSlide 1.05s ease-in-out infinite;
}

body.is-loaded .preloader {
  visibility: hidden;
  opacity: 0;
}

.particle-canvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0.72;
}

.site-shell {
  position: relative;
  z-index: 1;
  min-height: 100svh;
  padding: clamp(18px, 3vw, 42px);
}

.hero {
  display: flex;
  min-height: calc(100svh - clamp(36px, 6vw, 84px));
  align-items: center;
}

.hero__content {
  width: min(100%, var(--max-width));
  margin-inline: auto;
  padding-block: clamp(52px, 9vh, 112px);
}

.brand {
  margin-bottom: clamp(46px, 8vh, 88px);
}

.brand__lockup {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
}

.brand__mark {
  display: grid;
  width: 46px;
  aspect-ratio: 1;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 7px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.03)),
    rgba(13, 18, 23, 0.7);
  box-shadow: 0 0 22px rgba(0, 167, 255, 0.28), inset 0 0 20px rgba(255, 255, 255, 0.04);
  font-family: "Oswald", Impact, sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
}

.brand__text {
  display: grid;
  color: #f2f7ff;
  font-family: "Oswald", Impact, sans-serif;
  font-size: clamp(1rem, 2.8vw, 1.28rem);
  font-weight: 600;
  line-height: 0.95;
  text-transform: uppercase;
}

.brand__text strong {
  color: var(--green);
  font-weight: 700;
  text-shadow: 0 0 14px var(--shadow-green);
}

.hero__copy {
  max-width: 880px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
  color: var(--green);
  font-size: clamp(0.74rem, 1.8vw, 0.82rem);
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
  text-shadow: 0 0 18px var(--shadow-green);
}

.eyebrow::before {
  width: 34px;
  height: 2px;
  background: linear-gradient(90deg, var(--green), transparent);
  box-shadow: 0 0 16px var(--shadow-green);
  content: "";
}

h1 {
  max-width: 920px;
  margin: 0;
  font-family: "Oswald", Impact, sans-serif;
  font-size: clamp(3.3rem, 12vw, 8.9rem);
  font-weight: 700;
  line-height: 0.88;
  letter-spacing: 0;
  text-transform: uppercase;
  text-shadow:
    0 4px 0 rgba(255, 255, 255, 0.04),
    0 0 44px rgba(0, 167, 255, 0.2);
}

.hero__subheading {
  max-width: 680px;
  margin: clamp(22px, 4vw, 34px) 0 0;
  color: var(--muted);
  font-size: clamp(1rem, 2.2vw, 1.28rem);
  font-weight: 600;
  line-height: 1.7;
}

.countdown-panel {
  width: min(100%, 840px);
  margin-top: clamp(34px, 6vw, 58px);
  padding: clamp(16px, 3vw, 24px);
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.025)),
    rgba(8, 11, 15, 0.58);
  box-shadow:
    0 26px 80px rgba(0, 0, 0, 0.45),
    0 0 34px rgba(0, 167, 255, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
}

.countdown-panel__header {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.status-dot {
  width: 9px;
  aspect-ratio: 1;
  border-radius: 999px;
  background: var(--red);
  box-shadow: 0 0 0 6px rgba(255, 47, 69, 0.11), 0 0 24px var(--shadow-red);
  animation: pulseDot 1.6s ease-in-out infinite;
}

.countdown-panel h2 {
  margin: 0;
  color: #edf5ff;
  font-size: clamp(0.82rem, 2vw, 0.92rem);
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.countdown {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(10px, 2vw, 16px);
}

.countdown__card {
  position: relative;
  isolation: isolate;
  display: grid;
  min-height: clamp(104px, 15vw, 144px);
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.11), rgba(255, 255, 255, 0.025)),
    rgba(10, 16, 20, 0.82);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    0 12px 34px rgba(0, 0, 0, 0.28);
}

.countdown__card::before {
  position: absolute;
  inset: -2px;
  z-index: -1;
  background:
    linear-gradient(120deg, transparent, rgba(0, 167, 255, 0.38), transparent 37%),
    linear-gradient(300deg, transparent, rgba(167, 255, 36, 0.14), transparent 45%);
  opacity: 0;
  transition: opacity 0.3s ease;
  content: "";
}

.countdown__card:hover::before {
  opacity: 1;
}

.countdown__card.is-ticking {
  animation: tickCard 0.34s ease;
}

.countdown__value {
  display: block;
  color: var(--text);
  font-family: "Oswald", Impact, sans-serif;
  font-size: clamp(2.25rem, 7vw, 4.8rem);
  font-weight: 700;
  line-height: 0.92;
  text-shadow:
    0 0 20px rgba(0, 167, 255, 0.34),
    0 0 44px rgba(255, 47, 69, 0.12);
  font-variant-numeric: tabular-nums;
}

.countdown__label {
  display: block;
  margin-top: 7px;
  color: rgba(238, 244, 250, 0.7);
  font-size: clamp(0.68rem, 2vw, 0.76rem);
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.site-footer {
  position: fixed;
  right: 18px;
  bottom: 18px;
  left: 18px;
  z-index: 2;
  display: flex;
  justify-content: center;
  pointer-events: none;
}

.site-footer p {
  margin: 0;
  padding: 10px 14px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 8px;
  color: rgba(235, 241, 247, 0.74);
  background: rgba(6, 8, 11, 0.62);
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.28);
  font-size: clamp(0.74rem, 2vw, 0.86rem);
  font-weight: 600;
  text-align: center;
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  pointer-events: auto;
}

.site-footer a {
  position: relative;
  color: #ffffff;
  font-weight: 800;
  text-decoration: none;
  transition: color 0.25s ease, text-shadow 0.25s ease;
}

.site-footer a::after {
  position: absolute;
  right: 0;
  bottom: -3px;
  left: 0;
  height: 1px;
  background: linear-gradient(90deg, var(--blue), var(--green), var(--red));
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s ease;
  content: "";
}

.site-footer a:hover,
.site-footer a:focus-visible {
  color: var(--green);
  text-shadow: 0 0 18px var(--shadow-green);
}

.site-footer a:hover::after,
.site-footer a:focus-visible::after {
  transform: scaleX(1);
  transform-origin: left;
}

.fade-in {
  opacity: 0;
  transform: translateY(18px);
}

body.is-loaded .fade-in {
  animation: fadeUp 0.78s ease forwards;
}

body.is-loaded .fade-in:nth-child(2) {
  animation-delay: 0.08s;
}

body.is-loaded .fade-in:nth-child(3) {
  animation-delay: 0.16s;
}

.countdown-panel.fade-in {
  animation-delay: 0.28s;
}

.site-footer.fade-in {
  animation-delay: 0.42s;
}

@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes ambientShift {
  from {
    transform: scale(1);
    opacity: 0.72;
  }

  to {
    transform: scale(1.06);
    opacity: 0.94;
  }
}

@keyframes pulseDot {
  0%,
  100% {
    transform: scale(1);
    opacity: 1;
  }

  50% {
    transform: scale(0.72);
    opacity: 0.6;
  }
}

@keyframes tickCard {
  0% {
    transform: translateY(0) scale(1);
  }

  50% {
    transform: translateY(-2px) scale(1.015);
  }

  100% {
    transform: translateY(0) scale(1);
  }
}

@keyframes preloaderSlide {
  from {
    transform: translateX(-110%);
  }

  to {
    transform: translateX(240%);
  }
}

@media (max-width: 860px) {
  body {
    background-attachment: scroll;
  }

  .site-shell {
    padding: 18px;
  }

  .hero {
    align-items: flex-start;
    min-height: 100svh;
  }

  .hero__content {
    padding-top: 28px;
    padding-bottom: 96px;
  }

  .brand {
    margin-bottom: 58px;
  }

  .countdown {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .countdown__card {
    min-height: 112px;
  }

  .site-footer {
    position: absolute;
    bottom: 18px;
  }
}

@media (max-width: 520px) {
  .site-shell {
    padding: 16px;
  }

  .hero__content {
    padding-top: 18px;
  }

  .brand {
    margin-bottom: 48px;
  }

  .brand__mark {
    width: 42px;
  }

  .eyebrow {
    align-items: flex-start;
    line-height: 1.35;
  }

  h1 {
    max-width: 9ch;
  }

  .hero__subheading {
    max-width: 32rem;
  }

  .countdown-panel {
    padding: 14px;
  }

  .countdown {
    gap: 10px;
  }

  .countdown__card {
    min-height: 102px;
  }
}

@media (max-width: 370px) {
  .countdown {
    grid-template-columns: 1fr 1fr;
  }

  .countdown__card {
    min-height: 96px;
  }

  .site-footer p {
    max-width: 100%;
  }
}

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

  .particle-canvas {
    display: none;
  }
}

@supports not ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  .countdown-panel,
  .site-footer p {
    background: rgba(8, 11, 15, 0.9);
  }
}
