@font-face {
  font-family: "Abar";
  src: url("./assets/AbarHigh-Regular.otf") format("opentype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Abar";
  src: url("./assets/AbarHigh-Bold.otf") format("opentype");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

:root {
  color-scheme: light;
  --green: #00aa50;
  --orange: #ff7f00;
  --ink: #173b2c;
  --muted: #6d7d74;
  --soft-green: #f0f8f2;
  font-family: "Abar", Tahoma, sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  height: 100%;
  min-height: 100%;
  margin: 0;
  overflow: hidden;
}

body {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  background-color: #087a3f;
  background-image:
    linear-gradient(180deg, rgba(8, 42, 27, 0.12), rgba(8, 42, 27, 0.04)),
    url("./assets/background.jpg");
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  color: var(--ink);
}

.viewport {
  position: relative;
  z-index: 1;
  display: grid;
  width: 100%;
  min-height: 100vh;
  min-height: 100svh;
  place-items: center;
  padding: 28px 24px;
}

.launch-panel {
  position: relative;
  display: flex;
  width: min(100%, 710px);
  min-height: 590px;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  padding: 34px clamp(28px, 6vw, 64px) 26px;
  border: 1px solid rgba(255, 255, 255, 0.88);
  border-radius: 32px;
  background: linear-gradient(
    145deg,
    rgba(255, 255, 255, 0.72),
    rgba(255, 254, 250, 0.54)
  );
  box-shadow:
    0 35px 100px rgba(16, 57, 36, 0.3),
    0 10px 30px rgba(28, 43, 34, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(22px) saturate(145%);
  -webkit-backdrop-filter: blur(22px) saturate(145%);
}

.panel-accent {
  position: absolute;
  inset: 0 0 auto;
  display: flex;
  height: 5px;
  direction: ltr;
}

.panel-accent span:first-child {
  width: 60%;
  background: var(--green);
}

.panel-accent span:last-child {
  width: 40%;
  background: var(--orange);
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 30px;
}

.brand__logo {
  display: block;
  width: 64px;
  height: 64px;
  flex: 0 0 64px;
  object-fit: cover;
  border: 1px solid rgba(23, 59, 44, 0.06);
  border-radius: 19px;
  background: #fff;
  box-shadow: 0 5px 16px rgba(23, 59, 44, 0.08);
}

.brand__identity {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.brand__identity strong {
  color: var(--ink);
  font-size: 1.23rem;
  font-weight: 700;
  line-height: 1.5;
}

.brand__status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-inline-start: auto;
  padding: 8px 13px;
  border: 1px solid rgba(0, 170, 80, 0.12);
  border-radius: 999px;
  background: var(--soft-green);
  color: #087c41;
  font-size: 0.82rem;
  white-space: nowrap;
}

.status-dot {
  position: relative;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
}

.status-dot::after {
  position: absolute;
  inset: -4px;
  border: 1px solid rgba(0, 170, 80, 0.4);
  border-radius: 50%;
  content: "";
  animation: pulse 2.2s ease-out infinite;
}

.hero {
  margin-bottom: 29px;
  text-align: center;
}

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 13px;
  color: #557364;
  font-size: 0.93rem;
}

.hero__eyebrow-mark {
  position: relative;
  display: inline-block;
  width: 23px;
  height: 2px;
  overflow: hidden;
  border-radius: 99px;
  background: var(--green);
}

.hero__eyebrow-mark::after {
  position: absolute;
  top: 0;
  right: 0;
  width: 40%;
  height: 100%;
  background: var(--orange);
  content: "";
}

.hero h1 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(2.25rem, 5.4vw, 3.65rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.37;
}

.hero h1 span {
  display: block;
  color: var(--green);
}

.hero__description {
  margin: 13px auto 0;
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.8;
}

.countdown {
  width: 100%;
  max-width: 510px;
  margin: 0 auto;
}

.countdown__heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 13px;
}

.countdown__title {
  color: #344f40;
  font-size: 0.95rem;
  font-weight: 700;
}

.countdown__date {
  color: var(--muted);
  font-size: 0.82rem;
  white-space: nowrap;
}

.countdown__date i {
  padding-inline: 3px;
  color: var(--orange);
  font-style: normal;
}

.timer {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  direction: rtl;
}

.time-unit {
  display: flex;
  min-width: 0;
  min-height: 93px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  border: 1px solid rgba(23, 59, 44, 0.07);
  border-radius: 17px;
  background: linear-gradient(145deg, #f8fbf8, #f0f8f2);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.96);
}

.time-unit--seconds {
  background: linear-gradient(145deg, #fffaf3, #fff3e5);
}

.time-unit__value {
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  font-size: clamp(2rem, 4.8vw, 2.65rem);
  font-weight: 700;
  line-height: 1.1;
}

.time-unit--seconds .time-unit__value {
  color: #cf6500;
}

.time-unit__label {
  color: #74847a;
  font-size: 0.78rem;
  line-height: 1.5;
}

.panel-footer {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 26px;
  padding-top: 17px;
  border-top: 1px solid rgba(23, 59, 44, 0.08);
  color: #74847a;
  font-size: 0.78rem;
}

.panel-footer__line {
  width: 20px;
  height: 3px;
  flex: 0 0 20px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--green) 0 60%, var(--orange) 60% 100%);
}

.panel-footer__location {
  margin-inline-start: auto;
  color: #87948c;
}

.whatsapp {
  position: fixed;
  z-index: 5;
  bottom: max(24px, env(safe-area-inset-bottom));
  left: max(24px, env(safe-area-inset-left));
  display: inline-flex;
  min-height: 54px;
  align-items: center;
  gap: 12px;
  padding: 6px 7px 6px 18px;
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 9px 26px rgba(22, 62, 40, 0.22);
  color: #176b3b;
  font-size: 0.88rem;
  text-decoration: none;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.whatsapp:hover {
  transform: translateY(-3px);
  box-shadow: 0 13px 30px rgba(22, 62, 40, 0.28);
}

.whatsapp:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 4px;
}

.whatsapp__label {
  white-space: nowrap;
}

.whatsapp__icon {
  display: grid;
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  place-items: center;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
}

.whatsapp__icon svg {
  display: block;
  width: 23px;
  height: 23px;
}

@keyframes pulse {
  0% {
    transform: scale(0.72);
    opacity: 0.8;
  }

  100% {
    transform: scale(1.65);
    opacity: 0;
  }
}

@media (max-width: 620px) {
  body {
    background-position: 18% center;
  }

  .viewport {
    padding: max(16px, env(safe-area-inset-top)) 14px max(82px, calc(env(safe-area-inset-bottom) + 68px));
  }

  .launch-panel {
    width: min(100%, 460px);
    min-height: 0;
    padding: 25px 20px 19px;
    border: 1px solid rgba(255, 255, 255, 0.7);
    border-radius: 26px;
    background: linear-gradient(
      145deg,
      rgba(255, 255, 255, 0.68),
      rgba(255, 254, 250, 0.52)
    );
    box-shadow:
      0 24px 60px rgba(8, 42, 27, 0.28),
      0 8px 22px rgba(8, 42, 27, 0.16),
      inset 0 1px 0 rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(25px) saturate(155%);
    -webkit-backdrop-filter: blur(25px) saturate(155%);
  }

  .brand {
    gap: 10px;
    margin-bottom: 21px;
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.5);
  }

  .brand__logo {
    width: 55px;
    height: 55px;
    flex-basis: 55px;
    border-radius: 16px;
    box-shadow: 0 5px 15px rgba(23, 59, 44, 0.12);
  }

  .brand__identity strong {
    font-size: 1.08rem;
  }

  .brand__status {
    gap: 6px;
    padding: 7px 9px;
    border-color: rgba(255, 255, 255, 0.58);
    background: rgba(255, 255, 255, 0.42);
    font-size: 0.74rem;
    backdrop-filter: blur(9px);
    -webkit-backdrop-filter: blur(9px);
  }

  .hero {
    margin-bottom: 24px;
  }

  .hero__eyebrow {
    margin-bottom: 9px;
    font-size: 0.83rem;
  }

  .hero h1 {
    font-size: clamp(2.05rem, 9.2vw, 2.65rem);
    line-height: 1.4;
  }

  .hero__description {
    max-width: 300px;
    margin-top: 9px;
    font-size: 0.9rem;
  }

  .countdown__heading {
    margin-bottom: 10px;
  }

  .countdown__title {
    font-size: 0.86rem;
  }

  .countdown__date {
    font-size: 0.72rem;
  }

  .timer {
    gap: 7px;
  }

  .time-unit {
    min-height: 78px;
    border-radius: 14px;
    border-color: rgba(255, 255, 255, 0.58);
    background: rgba(255, 255, 255, 0.38);
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.66),
      0 4px 12px rgba(21, 56, 37, 0.04);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
  }

  .time-unit__value {
    font-size: clamp(1.75rem, 8vw, 2.25rem);
  }

  .time-unit--seconds {
    background: rgba(255, 245, 232, 0.52);
  }

  .time-unit__label {
    font-size: 0.7rem;
  }

  .panel-footer {
    margin-top: 18px;
    padding-top: 12px;
    font-size: 0.72rem;
  }

  .panel-footer__location {
    display: none;
  }

  .whatsapp {
    bottom: max(16px, env(safe-area-inset-bottom));
    left: max(16px, env(safe-area-inset-left));
    width: 54px;
    min-height: 54px;
    padding: 6px;
    border: 1px solid rgba(255, 255, 255, 0.72);
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 8px 22px rgba(8, 42, 27, 0.3);
  }

  .whatsapp__label {
    display: none;
  }
}

@media (max-width: 620px) and (max-height: 740px) {
  .launch-panel {
    padding-top: 21px;
    padding-bottom: 16px;
    border-radius: 24px;
  }

  .brand {
    margin-bottom: 17px;
    padding-bottom: 11px;
  }

  .brand__logo {
    width: 50px;
    height: 50px;
    flex-basis: 50px;
  }

  .hero {
    margin-bottom: 18px;
  }

  .hero__description {
    line-height: 1.55;
  }

  .time-unit {
    min-height: 70px;
  }

  .panel-footer {
    margin-top: 14px;
    padding-top: 10px;
  }
}

@media (max-width: 620px) and (max-height: 600px) {
  .viewport {
    padding-block: max(8px, env(safe-area-inset-top)) max(68px, calc(env(safe-area-inset-bottom) + 52px));
  }

  .launch-panel {
    padding-block: 14px 12px;
  }

  .brand {
    margin-bottom: 11px;
    padding-bottom: 8px;
  }

  .hero {
    margin-bottom: 12px;
  }

  .hero__description {
    display: none;
  }

  .time-unit {
    min-height: 60px;
  }

  .panel-footer {
    margin-top: 10px;
    padding-top: 8px;
  }
}

@media (max-width: 360px) {
  .viewport {
    padding-inline: 10px;
  }

  .launch-panel {
    padding-inline: 16px;
  }

  .brand__status {
    padding-inline: 7px;
  }

  .countdown__heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 2px;
  }

  .timer {
    gap: 5px;
  }

  .time-unit {
    min-height: 70px;
    border-radius: 12px;
  }

  .time-unit__value {
    font-size: 1.7rem;
  }
}

@media (max-height: 690px) and (min-width: 621px) {
  .viewport {
    padding-block: 16px;
  }

  .launch-panel {
    min-height: 0;
    padding-block: 25px 20px;
  }

  .brand {
    margin-bottom: 20px;
  }

  .hero {
    margin-bottom: 20px;
  }

  .hero h1 {
    font-size: clamp(2.1rem, 4.8vw, 3rem);
  }

  .time-unit {
    min-height: 80px;
  }

  .panel-footer {
    margin-top: 19px;
    padding-top: 13px;
  }
}

@media (max-height: 620px) {
  .viewport {
    padding-block: 12px;
  }

  .launch-panel {
    padding-block: 20px 16px;
  }

  .brand {
    margin-bottom: 15px;
  }

  .brand__logo {
    width: 48px;
    height: 48px;
    flex-basis: 48px;
  }

  .hero {
    margin-bottom: 14px;
  }

  .hero__description {
    display: none;
  }

  .hero h1 {
    font-size: clamp(1.9rem, 5vw, 2.7rem);
  }

  .time-unit {
    min-height: 66px;
  }

  .panel-footer {
    margin-top: 13px;
    padding-top: 10px;
  }

  .whatsapp {
    bottom: max(10px, env(safe-area-inset-bottom));
    left: max(10px, env(safe-area-inset-left));
  }
}

@media (max-width: 960px) and (orientation: landscape) and (max-height: 560px) {
  .viewport {
    padding: 10px 78px 10px 18px;
  }

  .launch-panel {
    display: grid;
    width: min(100%, 900px);
    max-height: calc(100svh - 20px);
    grid-template-columns: minmax(0, 1fr) minmax(240px, 0.95fr);
    grid-template-rows: auto 1fr auto;
    column-gap: 26px;
    padding: 16px 28px 14px;
  }

  .brand {
    grid-column: 1 / -1;
    margin-bottom: 12px;
    padding-bottom: 9px;
  }

  .brand__logo {
    width: 45px;
    height: 45px;
    flex-basis: 45px;
  }

  .hero {
    grid-column: 1;
    grid-row: 2;
    align-self: center;
    margin-bottom: 0;
  }

  .hero__eyebrow {
    margin-bottom: 5px;
    font-size: 0.8rem;
  }

  .hero h1 {
    font-size: clamp(1.8rem, 5vw, 2.3rem);
    line-height: 1.28;
  }

  .hero__description {
    display: block;
    margin-top: 5px;
    font-size: 0.8rem;
  }

  .countdown {
    grid-column: 2;
    grid-row: 2 / 4;
    align-self: center;
  }

  .countdown__heading {
    margin-bottom: 7px;
  }

  .timer {
    gap: 5px;
  }

  .time-unit {
    min-height: 58px;
    border-radius: 11px;
  }

  .time-unit__value {
    font-size: 1.65rem;
  }

  .time-unit__label {
    font-size: 0.65rem;
  }

  .panel-footer {
    grid-column: 1;
    grid-row: 3;
    margin-top: 10px;
    padding-top: 8px;
  }

  .whatsapp {
    bottom: max(10px, env(safe-area-inset-bottom));
    left: max(10px, env(safe-area-inset-left));
  }
}

@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;
  }
}
