@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@500;600;700;800&family=Inter:wght@400;500;600&display=swap');

:root {
  --wine: #4a0712;
  --wine-dark: #260309;
  --wine-light: #781326;
  --red: #b3283f;
  --ivory: #f6f0e8;
  --muted: rgba(246, 240, 232, 0.63);
  --line: rgba(246, 240, 232, 0.17);
}

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

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  min-height: 100vh;
  overflow-x: hidden;
  color: var(--ivory);
  background-color: var(--wine-dark);
  background-image:
    linear-gradient(90deg, rgba(22, 1, 5, 0.96) 0%, rgba(42, 3, 10, 0.84) 48%, rgba(38, 3, 9, 0.4) 100%),
    linear-gradient(0deg, rgba(74, 7, 18, 0.42), rgba(74, 7, 18, 0.28)),
    url("law-visual.jpg");
  background-position: 58% center;
  background-size: cover;
  background-attachment: fixed;
  font-family: "Inter", Arial, sans-serif;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  content: "";
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 112px 112px;
  opacity: 0.13;
  mask-image: linear-gradient(to bottom, black, transparent 90%);
}

.noise {
  position: fixed;
  inset: 0;
  z-index: 10;
  pointer-events: none;
  opacity: 0.045;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.8'/%3E%3C/svg%3E");
}

.glow {
  position: fixed;
  width: 26rem;
  height: 26rem;
  border-radius: 0;
  pointer-events: none;
  filter: blur(4px);
  transition: transform 180ms ease-out;
}

.glow--one {
  right: -12rem;
  top: -10rem;
  border: 1px solid rgba(246, 240, 232, 0.12);
  transform: rotate(35deg);
}

.glow--two {
  left: 42%;
  bottom: -23rem;
  border: 1px solid rgba(246, 240, 232, 0.06);
  transform: rotate(-24deg);
}

.page {
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-height: 100svh;
  width: min(100%, 1600px);
  margin: 0 auto;
  padding: 34px clamp(24px, 5vw, 84px) 30px;
}

.topbar,
.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: inline-flex;
  position: relative;
  z-index: 2;
}

.brand img {
  display: block;
  width: 132px;
  height: auto;
}

.status {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 15px;
  border: 1px solid var(--line);
  border-radius: 0;
  color: var(--ivory);
  background: rgba(42, 1, 8, 0.52);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  backdrop-filter: blur(10px);
}

.status__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #dd5269;
  box-shadow: 0 0 0 5px rgba(221, 82, 105, 0.1);
  animation: pulse 2.4s ease-in-out infinite;
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  align-items: center;
  gap: clamp(20px, 4vw, 72px);
  padding: clamp(64px, 9vh, 120px) 0;
}

.hero__index {
  align-self: stretch;
  padding-top: 8px;
  border-right: 1px solid var(--line);
  color: rgba(246, 240, 232, 0.37);
  font-size: 10px;
  letter-spacing: 0.2em;
}

.hero__content {
  position: relative;
  z-index: 2;
  max-width: 860px;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-bottom: 24px;
  color: rgba(246, 240, 232, 0.64);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.eyebrow span {
  width: 40px;
  height: 1px;
  background: var(--red);
}

h1 {
  max-width: 900px;
  font-family: "Barlow Condensed", "Arial Narrow", sans-serif;
  font-size: clamp(3.7rem, 7vw, 7.8rem);
  font-weight: 800;
  line-height: 0.82;
  letter-spacing: -0.025em;
  text-transform: uppercase;
  text-shadow: 0 4px 30px rgba(15, 0, 3, 0.38);
}

h1 em {
  display: inline-block;
  padding: 0.03em 0.12em 0.08em;
  color: var(--ivory);
  background: var(--red);
  font-style: normal;
  font-weight: 800;
  line-height: 0.84;
}

.intro {
  max-width: 590px;
  margin-top: 32px;
  color: rgba(246, 240, 232, 0.78);
  font-size: clamp(0.95rem, 1.25vw, 1.08rem);
  font-weight: 500;
  line-height: 1.7;
}

.countdown {
  display: grid;
  grid-template-columns: repeat(4, minmax(72px, 112px));
  width: fit-content;
  margin-top: 34px;
  border-top: 1px solid rgba(246, 240, 232, 0.34);
  border-left: 1px solid rgba(246, 240, 232, 0.34);
  background: rgba(31, 1, 6, 0.42);
  backdrop-filter: blur(5px);
}

.countdown__item {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px 16px 12px;
  border-right: 1px solid rgba(246, 240, 232, 0.34);
  border-bottom: 1px solid rgba(246, 240, 232, 0.34);
}

.countdown__item:first-child::before {
  position: absolute;
  top: -2px;
  left: -1px;
  width: 42px;
  height: 3px;
  content: "";
  background: var(--red);
}

.countdown strong {
  font-family: "Barlow Condensed", "Arial Narrow", sans-serif;
  font-size: clamp(2rem, 3.2vw, 3rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.03em;
}

.countdown span {
  color: rgba(246, 240, 232, 0.58);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.footer {
  gap: 28px;
  color: rgba(246, 240, 232, 0.42);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.footer__line {
  flex: 1;
  height: 1px;
  overflow: hidden;
  background: var(--line);
}

.footer__line span {
  display: block;
  width: 28%;
  height: 100%;
  background: var(--red);
  animation: progress 7s ease-in-out infinite alternate;
}

.hero__content > *,
.hero__index,
.topbar,
.footer {
  opacity: 0;
  transform: translateY(16px);
}

body.is-ready .hero__content > *,
body.is-ready .hero__index,
body.is-ready .topbar,
body.is-ready .footer {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.85s ease, transform 0.85s ease;
}

body.is-ready .hero__content > :nth-child(1) { transition-delay: 0.2s; }
body.is-ready .hero__content > :nth-child(2) { transition-delay: 0.32s; }
body.is-ready .hero__content > :nth-child(3) { transition-delay: 0.44s; }
body.is-ready .hero__content > :nth-child(4) { transition-delay: 0.52s; }
body.is-ready .footer { transition-delay: 0.58s; }

@keyframes pulse {
  0%, 100% { opacity: 0.55; transform: scale(0.9); }
  50% { opacity: 1; transform: scale(1); }
}

@keyframes progress {
  from { transform: translateX(-100%); }
  to { transform: translateX(360%); }
}

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 30px minmax(0, 1fr);
  }

}

@media (max-width: 600px) {
  .page {
    padding: 24px 20px 22px;
  }

  .brand img {
    width: 104px;
  }

  .status {
    padding: 8px 11px;
    font-size: 9px;
    letter-spacing: 0.11em;
  }

  .hero {
    grid-template-columns: 1fr;
    padding: 56px 0;
  }

  .hero__index {
    display: none;
  }

  .eyebrow {
    margin-bottom: 20px;
  }

  h1 {
    font-size: clamp(3.5rem, 16vw, 5.1rem);
  }

  .intro {
    max-width: 92%;
    margin-top: 26px;
  }

  .countdown {
    grid-template-columns: repeat(4, 1fr);
    width: 100%;
    margin-top: 28px;
  }

  .countdown__item {
    padding: 12px 8px 10px;
  }

  body {
    background-position: 40% center;
    background-attachment: scroll;
  }

  .footer {
    align-items: flex-end;
    gap: 14px;
    line-height: 1.5;
  }

  .footer__line {
    display: none;
  }

  .footer__note {
    text-align: right;
  }
}

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