/* ==========================================================================
   HR90 Investment - Coming Soon
   Palette sampled from the brand mark:
     navy  #16202B | deep green #205544 | pine #183131 | leaf #51863D
   ========================================================================== */

:root {
  --navy: #16202b;
  --pine: #183131;
  --green: #205544;
  --leaf: #51863d;
  --leaf-light: #6fa53f;

  --ink: #16202b;
  --ink-soft: #4a5a63;
  --ink-faint: #8b979d;

  --surface: #ffffff;
  --canvas: #f7f9f7;
  --line: rgba(22, 32, 43, 0.1);

  --radius: 14px;
  --shadow-sm: 0 1px 2px rgba(22, 32, 43, 0.05);
  --shadow-md: 0 10px 30px -12px rgba(22, 32, 43, 0.18);
  --shadow-lg: 0 24px 60px -24px rgba(32, 85, 68, 0.28);

  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-display: "Montserrat", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(2rem, 6vw, 4rem) 1.25rem;
  font-family: var(--font-body);
  color: var(--ink);
  background-color: var(--canvas);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* --------------------------------------------------------------- backdrop */

.backdrop {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.wash {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
}

.wash--one {
  top: -22vmax;
  left: -14vmax;
  width: 56vmax;
  height: 56vmax;
  background: radial-gradient(circle, rgba(32, 85, 68, 0.16), transparent 68%);
}

.wash--two {
  right: -20vmax;
  bottom: -24vmax;
  width: 58vmax;
  height: 58vmax;
  background: radial-gradient(circle, rgba(111, 165, 63, 0.16), transparent 68%);
}

.peak {
  position: absolute;
  left: 50%;
  bottom: 0;
  width: min(1150px, 130%);
  height: min(46vh, 420px);
  transform: translateX(-50%);
  fill: rgba(24, 49, 49, 0.03);
}

/* ------------------------------------------------------------------ layout */

.page {
  width: 100%;
  max-width: 660px;
  text-align: center;
}

/* ------------------------------------------------------------------- brand */

.brand img {
  width: clamp(150px, 34vw, 210px);
  height: auto;
  display: block;
  margin: 0 auto;
}

/* ----------------------------------------------------------------- eyebrow */

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0.25rem 0 1.5rem;
  padding: 0.45rem 0.95rem;
  border: 1px solid rgba(32, 85, 68, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
  box-shadow: var(--shadow-sm);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--green);
}

.pulse {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--leaf);
  box-shadow: 0 0 0 0 rgba(81, 134, 61, 0.55);
  animation: pulse 2.4s ease-out infinite;
}

@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(81, 134, 61, 0.5); }
  70%  { box-shadow: 0 0 0 9px rgba(81, 134, 61, 0); }
  100% { box-shadow: 0 0 0 0 rgba(81, 134, 61, 0); }
}

/* ---------------------------------------------------------------- headline */

.headline {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 9vw, 4.5rem);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.03em;
  color: var(--navy);
}

.headline__accent {
  background: linear-gradient(120deg, var(--green) 0%, var(--leaf) 55%, var(--leaf-light) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Ascending bars - the chart motif from the logo */
.bars {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 6px;
  height: 30px;
  margin: 1.4rem 0 1.6rem;
}

.bars span {
  width: 8px;
  border-radius: 2px;
  background: linear-gradient(180deg, var(--leaf-light), var(--green));
  transform-origin: bottom;
  animation: grow 2.6s ease-in-out infinite;
}

.bars span:nth-child(1) { height: 12px; animation-delay: 0s; }
.bars span:nth-child(2) { height: 20px; animation-delay: 0.18s; }
.bars span:nth-child(3) { height: 30px; animation-delay: 0.36s; }

@keyframes grow {
  0%, 100% { transform: scaleY(0.72); opacity: 0.7; }
  50%      { transform: scaleY(1); opacity: 1; }
}

/* -------------------------------------------------------------------- lede */

.lede {
  max-width: 30rem;
  margin: 0 auto;
  font-size: clamp(0.95rem, 2.4vw, 1.05rem);
  line-height: 1.7;
  color: var(--ink-soft);
}

.lede strong { color: var(--ink); font-weight: 600; }
.lede em { color: var(--green); font-style: normal; font-weight: 500; }

/* --------------------------------------------------------------- countdown */

.countdown {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
  margin: 2.4rem auto 0;
  max-width: 460px;
}

.unit {
  padding: 0.9rem 0.4rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-md);
}

.unit__value {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 6vw, 2rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--navy);
  font-variant-numeric: tabular-nums;
}

.unit__label {
  display: block;
  margin-top: 0.45rem;
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

.countdown-note {
  margin: 0.9rem 0 0;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  color: var(--ink-faint);
}

/* Shown once the countdown reaches zero */
.countdown.is-live {
  grid-template-columns: 1fr;
  max-width: 420px;
}

.countdown.is-live .unit {
  padding: 1.1rem 1rem;
  background: linear-gradient(120deg, var(--green), var(--pine));
  border-color: transparent;
  box-shadow: var(--shadow-lg);
}

.countdown.is-live .unit__value { color: #fff; font-size: 1.25rem; }
.countdown.is-live .unit__label { color: rgba(255, 255, 255, 0.75); }

/* ------------------------------------------------------------------ notify */

.notify { margin-top: 2.4rem; }

.notify__form {
  display: flex;
  gap: 0.5rem;
  max-width: 440px;
  margin: 0 auto;
}

.notify__input {
  flex: 1 1 auto;
  min-width: 0;
  padding: 0.85rem 1.1rem;
  font: inherit;
  font-size: 0.95rem;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.notify__input::placeholder { color: var(--ink-faint); }

.notify__input:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 4px rgba(32, 85, 68, 0.12);
}

.notify__input.is-invalid {
  border-color: #c0503f;
  box-shadow: 0 0 0 4px rgba(192, 80, 63, 0.1);
}

.notify__button {
  flex: 0 0 auto;
  padding: 0.85rem 1.5rem;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(120deg, var(--green), var(--pine));
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
}

.notify__button:hover {
  transform: translateY(-1px);
  filter: brightness(1.08);
  box-shadow: var(--shadow-lg);
}

.notify__button:active { transform: translateY(0); }

.notify__button:focus-visible {
  outline: 2px solid var(--leaf);
  outline-offset: 3px;
}

.notify__message {
  min-height: 1.2rem;
  margin: 0.75rem 0 0;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--green);
}

.notify__message.is-error { color: #c0503f; }

.notify__fineprint {
  margin: 0.35rem 0 0;
  font-size: 0.72rem;
  color: var(--ink-faint);
}

/* ------------------------------------------------------------------ footer */

.footer {
  margin-top: 3rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--line);
}

.footer__mail {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--green);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}

.footer__mail:hover { border-bottom-color: var(--green); }

.social {
  display: flex;
  justify-content: center;
  gap: 0.6rem;
  margin: 1.1rem 0 1.25rem;
}

.social a {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--surface);
  color: var(--ink-soft);
  box-shadow: var(--shadow-sm);
  transition: color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.social a:hover {
  color: var(--green);
  border-color: rgba(32, 85, 68, 0.35);
  transform: translateY(-2px);
}

.social svg { width: 16px; height: 16px; fill: currentColor; }

.footer__legal {
  margin: 0.9rem 0 0; /* holds the gap when the social row is hidden */
  font-size: 0.72rem;
  color: var(--ink-faint);
}

/* -------------------------------------------------------------- animations */

.reveal {
  opacity: 0;
  transform: translateY(14px);
  animation: reveal 0.7s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  animation-delay: var(--delay, 0ms);
}

@keyframes reveal {
  to { opacity: 1; transform: none; }
}

/* ------------------------------------------------------------- small print */

@media (max-width: 460px) {
  .countdown { gap: 0.5rem; }
  .unit { padding: 0.75rem 0.25rem 0.6rem; }
  .unit__label { font-size: 0.55rem; letter-spacing: 0.08em; }

  .notify__form { flex-direction: column; }
  .notify__button { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}
