:root {
  --navy: #122040;
  --accent: #e8965a;     /* change to the Frobel brand colour */
  --accent-2: #f3c08f;
  --text: #ffffff;
  --muted: rgba(255, 255, 255, 0.78);
}

*, *::before, *::after { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }

body {
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--text);
  background:
    linear-gradient(180deg, rgba(18, 32, 64, 0.35), rgba(18, 32, 64, 0.75)),
    url("assets/background.jpg") center / cover no-repeat fixed,
    var(--navy);
  overflow-x: hidden;
}

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

.page {
  position: relative; z-index: 1;
  min-height: 100vh;
  display: flex; flex-direction: column; align-items: center; justify-content: space-between;
  padding: 2.5rem 1.5rem 2rem;
  text-align: center;
}

/* Entrance animation: each .anim element fades up after its --d delay */
.anim {
  opacity: 0;
  transform: translateY(24px);
  animation: fadeUp 0.9s cubic-bezier(.2, .7, .2, 1) forwards;
  animation-delay: var(--d, 0s);
}
@keyframes fadeUp { to { opacity: 1; transform: none; } }

/* Logo */
.logo { display: inline-flex; align-items: center; gap: 0.7rem; font-size: 1.7rem; font-weight: 800; letter-spacing: -0.01em; }
.logo img { height: 52px; width: auto; }
.logo-mark {
  width: 40px; height: 40px; border-radius: 11px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 6px 20px rgba(232, 150, 90, 0.45);
  animation: pulse 3s ease-in-out infinite;
}
@keyframes pulse { 50% { transform: scale(1.08) rotate(6deg); } }

/* Center block */
.center { max-width: 720px; width: 100%; padding: 2rem 0; }

.gears { position: relative; width: 140px; height: 110px; margin: 0 auto 1.8rem; }
.gear { position: absolute; fill: var(--accent); filter: drop-shadow(0 6px 16px rgba(0,0,0,0.25)); }
.gear-big { width: 90px; height: 90px; left: 0; top: 0; animation: spin 8s linear infinite; }
.gear-small { width: 58px; height: 58px; left: 78px; top: 50px; fill: var(--accent-2); animation: spin 5.2s linear infinite reverse; }
@keyframes spin { to { transform: rotate(360deg); } }

.eyebrow {
  display: inline-block; margin: 0 0 1rem;
  padding: 0.4rem 1rem; border-radius: 999px;
  font-size: 0.78rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--accent); background: rgba(232, 150, 90, 0.12); border: 1px solid rgba(232, 150, 90, 0.35);
}

h1 { font-size: clamp(2rem, 5.5vw, 3.6rem); line-height: 1.15; margin: 0 0 1.2rem; font-weight: 800; letter-spacing: -0.02em; }

.highlight {
  display: inline-block;
  background: linear-gradient(90deg, var(--accent), var(--accent-2), var(--accent));
  background-size: 200% auto;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: shine 4s linear infinite;
  transition: opacity 0.35s, transform 0.35s;
}
.highlight.swap { opacity: 0; transform: translateY(10px); }
@keyframes shine { to { background-position: 200% center; } }

.lead { font-size: clamp(1rem, 2.2vw, 1.15rem); color: var(--muted); line-height: 1.7; max-width: 560px; margin: 0 auto 2.2rem; }

/* Progress bar */
.progress { max-width: 380px; margin: 0 auto; }
.progress-track { height: 6px; border-radius: 99px; background: rgba(255,255,255,0.12); overflow: hidden; }
.progress-bar {
  height: 100%; width: 40%; border-radius: 99px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  animation: load 2.4s ease-in-out infinite;
}
@keyframes load {
  0%   { transform: translateX(-100%); }
  100% { transform: translateX(250%); }
}
.status { margin: 0.9rem 0 0; font-size: 0.9rem; color: var(--muted); }
.dots i { font-style: normal; animation: blink 1.4s infinite; }
.dots i:nth-child(2) { animation-delay: 0.2s; }
.dots i:nth-child(3) { animation-delay: 0.4s; }
@keyframes blink { 0%, 80%, 100% { opacity: 0.2; } 40% { opacity: 1; } }

/* Contact at the bottom */
.contact p { margin: 0 0 0.8rem; color: var(--muted); font-size: 0.95rem; }
.email {
  display: inline-flex; align-items: center; gap: 0.6rem;
  padding: 0.85rem 1.6rem; border-radius: 999px;
  font-size: 1.1rem; font-weight: 600; color: #fff; text-decoration: none;
  background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  transition: background 0.25s, border-color 0.25s, transform 0.25s, box-shadow 0.25s;
}
.email svg { width: 20px; height: 20px; fill: var(--accent); transition: transform 0.25s; }
.email:hover { background: var(--accent); border-color: var(--accent); transform: translateY(-3px); box-shadow: 0 10px 28px rgba(232,150,90,0.4); }
.email:hover svg { fill: #fff; transform: rotate(-10deg) scale(1.1); }
.contact .copy { margin: 1.6rem 0 0; font-size: 0.8rem; opacity: 0.6; }

/* Mobile */
@media (max-width: 700px) {
  body {
    background:
      linear-gradient(180deg, rgba(18, 32, 64, 0.4), rgba(18, 32, 64, 0.8)),
      url("assets/background-mobile.jpg") center / cover no-repeat,
      var(--navy);
  }
  .gears { transform: scale(0.8); }
}

/* Respect users who turn off motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .anim { opacity: 1; transform: none; }
  #particles { display: none; }
}
