/* Brekade holding page. Palette and motion tokens match site/src/styles/global.css. */
/* Brekade palette and motion tokens: same values as the main site's global.css */
:root {
  --primary: #330099;
  --accent: #8048FC;
  --haze: #f3f0ff;
  --black: #0a0a0f;
  --white: #ffffff;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  font-family: 'Poppins', system-ui, sans-serif;
  background-color: var(--black);
  background-image: radial-gradient(rgba(255,255,255,0.07) 1.5px, transparent 1.6px);
  background-size: 28px 28px;
  color: var(--white);
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}
.glow {
  position: fixed;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
}
.glow.one { width: 34rem; height: 34rem; top: -14rem; left: -12rem; background: rgba(128,72,252,0.35); animation: drift 16s ease-in-out infinite alternate; }
.glow.two { width: 28rem; height: 28rem; bottom: -14rem; right: -8rem; background: rgba(51,0,153,0.55); animation: drift 20s ease-in-out infinite alternate-reverse; }
@keyframes drift { to { transform: translate(4rem, 3rem); } }

main {
  position: relative;
  z-index: 1;
  flex: 1;
  width: 100%;
  max-width: 44rem;
  margin: 0 auto;
  padding: 3.5rem 1.5rem 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  gap: 2rem;
}
.logo { width: min(13rem, 60vw); height: auto; display: block; }
h1 {
  margin: 0;
  font-size: clamp(2.5rem, 8vw, 4.5rem);
  line-height: 1.02;
  font-weight: 700;
}
h1 em { font-style: italic; color: var(--accent); }
.lede strong { color: var(--white); font-weight: 700; }
.lede { margin: 0; font-size: clamp(1.1rem, 2.6vw, 1.35rem); color: rgba(255,255,255,0.8); max-width: 34rem; }

/* Rebuild progress: construction-stripe meter, clearly labelled so it doesn't read as a page loader */
.loader { display: flex; flex-direction: column; gap: 0.5rem; width: 100%; max-width: 26rem; }
.loader-label { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.25rem 0.6rem; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: rgba(255,255,255,0.55); }
.loader-label .pct { color: var(--accent); }
.bar { height: 10px; border-radius: 999px; background: rgba(255,255,255,0.08); overflow: hidden; box-shadow: inset 0 0 0 1px rgba(255,255,255,0.1); }
.bar span {
  display: block; height: 100%; width: 86%;
  border-radius: inherit;
  background: repeating-linear-gradient(90deg, var(--accent) 0 14px, #9a6bff 14px 28px);
  background-size: 28px 100%;
  animation: fill 2.4s var(--ease) both, march 0.9s linear infinite;
}
@keyframes fill { from { width: 0; } }
@keyframes march { to { background-position: 28px 0; } }

/* Contact card */
.card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 1.25rem;
  padding: 1.5rem;
  backdrop-filter: blur(8px);
  width: 100%;
}
/* Fields stay left-aligned inside the centred card: easier to read and fill in */
.card form { text-align: left; }
.card h2 { margin: 0 0 0.25rem; font-size: 1.25rem; }
.card p { margin: 0 0 1.25rem; color: rgba(255,255,255,0.7); }
form { display: grid; gap: 0.75rem; }
label { font-size: 0.85rem; font-weight: 700; display: grid; gap: 0.35rem; }
input, textarea {
  font: inherit;
  color: var(--white);
  background: rgba(10,10,15,0.6);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 0.75rem;
  padding: 0.75rem 0.9rem;
  transition: border-color 150ms var(--ease);
}
input::placeholder, textarea::placeholder { color: rgba(255,255,255,0.4); }
input:focus, textarea:focus { border-color: var(--accent); outline: none; }
textarea { min-height: 5.5rem; resize: vertical; }
.check { display: flex; align-items: flex-start; gap: 0.6rem; font-weight: 400; color: rgba(255,255,255,0.75); }
.check input { width: 1.1rem; height: 1.1rem; margin: 0.2rem 0 0; padding: 0; accent-color: var(--accent); flex: none; }
.hp { position: absolute; left: -9999px; }
button {
  justify-self: center;
  font: inherit;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--primary);
  background: var(--white);
  border: 0;
  border-radius: 999px;
  padding: 0.85rem 1.75rem;
  cursor: pointer;
  transition: transform 150ms var(--ease), background-color 150ms var(--ease), color 150ms var(--ease);
}
button:hover { background: var(--accent); color: var(--white); transform: translateY(-2px); }
button:active { transform: translateY(1px) scale(0.98); }
button[disabled] { opacity: 0.6; cursor: wait; }
.status { margin: 0.25rem 0 0; font-weight: 700; min-height: 1.5em; }
.status.ok { color: #b9f5c9; }
.status.err { color: #ffb4b4; }

:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }

footer {
  position: relative; z-index: 1;
  padding: 1.5rem;
  text-align: center;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.45);
}

/* Entrance: each block rises in, one after another */
.rise { animation: rise 700ms var(--ease) both; animation-delay: calc(var(--i, 0) * 110ms); }
.d1 { --i: 1; } .d2 { --i: 2; } .d3 { --i: 3; } .d4 { --i: 4; }
@keyframes rise { from { opacity: 0; transform: translateY(16px); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
