/* ============================================
   WERK Bedachungen – Under Construction
   ============================================ */

@font-face {
  font-family: "Outfit";
  src: url("../assets/fonts/outfit-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Outfit";
  src: url("../assets/fonts/outfit-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Outfit";
  src: url("../assets/fonts/outfit-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Outfit";
  src: url("../assets/fonts/outfit-800.woff2") format("woff2");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --black: #1a1a1b;
  --black-soft: #2c2c2e;
  --orange: #e65a10;
  --orange-deep: #c44a0a;
  --orange-glow: rgba(230, 90, 16, 0.28);
  --bg: #f2f1ef;
  --bg-warm: #ebe8e3;
  --muted: #6b6b6e;
  --line: rgba(26, 26, 27, 0.1);
  --font: "Outfit", "Segoe UI", sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --space: clamp(1.25rem, 4vw, 2.5rem);
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  font-family: var(--font);
  color: var(--black);
  background: var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

a:hover {
  color: var(--orange);
}

/* ---------- Ambient backdrop ---------- */

.ambient {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.ambient__glow {
  position: absolute;
  inset: -20%;
  background:
    radial-gradient(ellipse 55% 40% at 50% 18%, var(--orange-glow), transparent 60%),
    radial-gradient(ellipse 70% 50% at 80% 90%, rgba(26, 26, 27, 0.05), transparent 55%),
    linear-gradient(165deg, var(--bg) 0%, var(--bg-warm) 45%, #e8e4de 100%);
  animation: glow-drift 14s ease-in-out infinite alternate;
}

.ambient__grain {
  position: absolute;
  inset: 0;
  opacity: 0.35;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.55'/%3E%3C/svg%3E");
  background-size: 180px 180px;
  mix-blend-mode: multiply;
}

@keyframes glow-drift {
  from {
    transform: translate3d(-1.5%, -1%, 0) scale(1);
  }
  to {
    transform: translate3d(1.5%, 1.5%, 0) scale(1.04);
  }
}

/* ---------- Top bar ---------- */

.topbar {
  position: relative;
  z-index: 2;
  padding: 1.25rem var(--space);
}

.topbar__brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  opacity: 0;
  animation: fade-up 0.8s var(--ease) 0.1s forwards;
}

.topbar__brand img {
  width: 40px;
  height: auto;
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1rem var(--space) 3rem;
  gap: clamp(1.5rem, 4vh, 2.75rem);
}

.hero__brand {
  opacity: 0;
  transform: translateY(28px) scale(0.96);
  animation: brand-in 1.1s var(--ease) 0.15s forwards;
}

.hero__logo {
  width: min(420px, 78vw);
  filter: drop-shadow(0 18px 40px rgba(26, 26, 27, 0.08));
}

.hero__copy {
  max-width: 34rem;
  opacity: 0;
  transform: translateY(20px);
  animation: fade-up 0.9s var(--ease) 0.55s forwards;
}

.hero__title {
  font-size: clamp(1.85rem, 5vw, 2.75rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: 0.85rem;
}

.hero__lead {
  color: var(--muted);
  font-size: clamp(1rem, 2.2vw, 1.125rem);
  font-weight: 400;
}

/* ---------- Progress ---------- */

.progress {
  width: min(280px, 70vw);
  opacity: 0;
  animation: fade-up 0.9s var(--ease) 0.85s forwards;
}

.progress__track {
  height: 3px;
  background: var(--line);
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 0.65rem;
}

.progress__bar {
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--orange-deep), var(--orange), #ff8a3d);
  box-shadow: 0 0 16px var(--orange-glow);
  animation: progress-fill 2.4s var(--ease) 1.1s forwards,
    progress-pulse 2.2s ease-in-out 3.5s infinite;
}

.progress__label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--orange);
}

/* ---------- CTA ---------- */

.hero__actions {
  opacity: 0;
  transform: translateY(16px);
  animation: fade-up 0.9s var(--ease) 1.15s forwards;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.85rem 1.75rem;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  border: none;
  border-radius: 2px;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.35s var(--ease), background 0.35s ease, box-shadow 0.35s ease;
}

.btn--primary {
  color: #fff;
  background: var(--black);
  box-shadow: 0 10px 28px rgba(26, 26, 27, 0.15);
}

.btn--primary:hover {
  color: #fff;
  background: var(--orange);
  transform: translateY(-2px);
  box-shadow: 0 14px 32px var(--orange-glow);
}

.btn--primary:active {
  transform: translateY(0);
}

.btn--ready {
  animation: btn-glow 2.8s ease-in-out 1;
}

@keyframes btn-glow {
  0%,
  100% {
    box-shadow: 0 10px 28px rgba(26, 26, 27, 0.15);
  }
  40% {
    box-shadow: 0 12px 36px var(--orange-glow);
  }
}

/* ---------- Footer ---------- */

.footer {
  position: relative;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.75rem 1.5rem;
  padding: 1.25rem var(--space) 1.75rem;
  border-top: 1px solid var(--line);
  opacity: 0;
  animation: fade-up 0.8s var(--ease) 1.35s forwards;
}

.footer__note {
  font-size: 0.85rem;
  color: var(--muted);
}

/* ---------- Keyframes ---------- */

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes brand-in {
  from {
    opacity: 0;
    transform: translateY(28px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes progress-fill {
  0% {
    width: 0;
  }
  70% {
    width: 68%;
  }
  100% {
    width: 72%;
  }
}

@keyframes progress-pulse {
  0%,
  100% {
    opacity: 1;
    filter: brightness(1);
  }
  50% {
    opacity: 0.85;
    filter: brightness(1.15);
  }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .ambient__glow,
  .hero__brand,
  .hero__copy,
  .progress,
  .footer,
  .topbar__brand,
  .progress__bar {
    opacity: 1;
    transform: none;
  }

  .progress__bar {
    width: 72%;
  }
}

/* Mobile tweaks */
@media (max-width: 540px) {
  .hero {
    padding-top: 0.5rem;
  }
}
