/* ====================================================================
   ForestCraft.cz — Coming Soon
   Modern minimalist · forest aesthetic · no frameworks · client-only
   ==================================================================== */

:root {
  /* Palette — deep forest at dusk */
  --bg-0: #07120c;
  --bg-1: #0c1a12;
  --green: #007400;
  --green-soft: #0a9a0a;
  --gold: #e7c873;
  --ink: #e9ebee;        /* off-white, never pure white */
  --ink-dim: #b6bbc0;    /* neutral gray */
  --ink-faint: #767c83;  /* dim neutral gray */
  --line: rgba(255, 255, 255, 0.10);
  --glass: rgba(36, 38, 41, 0.42);  /* neutral graphite glass */

  --font-display: "Space Grotesk", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html { scroll-behavior: smooth; }

body {
  min-height: 100dvh;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg-0);
  display: grid;
  justify-items: center;
  align-items: start;
  padding: clamp(2.5rem, 9vh, 6rem) 1rem 5rem;
  position: relative;
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* ---- Atmospheric layers ---- */
.bg-photo {
  position: fixed;
  inset: -4%;            /* bleed so the blur edges never show */
  z-index: 0;
  background: url("../assets/bg.png") center 35% / cover no-repeat;
  filter: blur(1.5px) saturate(1) brightness(0.82);
  transform: scale(1.04);
  animation: drift 38s ease-in-out infinite alternate;
}

@keyframes drift {
  from { transform: scale(1.06) translate(0, 0); }
  to   { transform: scale(1.12) translate(-1.5%, -1%); }
}

.bg-overlay {
  position: fixed;
  inset: 0;
  z-index: 0;
  /* Darker neutral wash — no green tint. */
  background:
    radial-gradient(125% 100% at 50% 50%, rgba(0, 0, 0, 0.48) 0%, rgba(0, 0, 0, 0.66) 70%, rgba(0, 0, 0, 0.82) 100%);
}

#leaves {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

.vignette {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: radial-gradient(115% 115% at 50% 38%, transparent 52%, rgba(0, 0, 0, 0.6) 100%);
}

/* ---- Shell ---- */
.shell {
  position: relative;
  z-index: 1;
  width: min(680px, 90vw);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(2rem, 5vw, 3.25rem);
  animation: rise 1s var(--ease) both;
}

@keyframes rise {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ---- Brand ---- */
.brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}
.brand__logo {
  width: 56px;
  height: 56px;
  object-fit: contain;
  filter: drop-shadow(0 2px 14px rgba(0, 116, 0, 0.45));
}
.brand__name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.35rem;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.brand__tld,
.brand__pre { color: var(--green); }
.brand__tag {
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--ink-dim);
  padding: 0.45rem 1rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--glass);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

/* ---- Hero ---- */
.hero { display: flex; flex-direction: column; align-items: center; gap: 1.5rem; }

.hero__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.7rem, 9vw, 5rem);
  line-height: 1.0;
  letter-spacing: -0.03em;
  color: var(--ink);
  text-wrap: balance;
  text-shadow: 0 2px 30px rgba(0, 0, 0, 0.45);
}

.hero__sub {
  max-width: 44ch;
  color: var(--ink-dim);
  font-size: clamp(0.98rem, 2.4vw, 1.12rem);
  line-height: 1.6;
  text-wrap: pretty;
}

/* ---- Countdown ---- */
.countdown {
  display: flex;
  gap: clamp(0.5rem, 3vw, 1.25rem);
  margin-top: 0.25rem;
}
.countdown__unit {
  min-width: 66px;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding: 0.9rem 0.5rem;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--glass);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.countdown__num {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.6rem, 5vw, 2.2rem);
  line-height: 1;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}
.countdown__label {
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

/* ---- Socials ---- */
.socials { display: flex; gap: 0.65rem; }
.social {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--ink-dim);
  background: var(--glass);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  text-decoration: none;
  transition: color 0.3s var(--ease), border-color 0.3s var(--ease),
              transform 0.3s var(--ease), background 0.3s var(--ease);
}
.social:hover {
  color: var(--bg-0);
  background: var(--green);
  border-color: var(--green);
  transform: translateY(-3px);
}

/* ---- Footer ---- */
.copyright {
  position: fixed;
  bottom: clamp(0.8rem, 2vw, 1.4rem);
  left: 0;
  right: 0;
  z-index: 1;
  text-align: center;
  font-size: 0.72rem;
  color: var(--ink-faint);
  padding: 0 1rem;
}

/* ---- Utility ---- */
.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;
}

:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---- Responsive ---- */
@media (max-width: 480px) {
  .notify { flex-direction: column; }
  .notify__btn { width: 100%; }
  .countdown__unit { min-width: 0; flex: 1; }
  .copyright { position: static; margin-top: 2rem; }
  .shell { padding-bottom: 1rem; }
}

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