/* BloomTech — pagină de mentenanță. Același limbaj vizual ca intro-ul site-ului principal. */

:root {
  --ink: #0b0b0a;
  --text: #f7f3ea;
  --muted: #b9b6ad;
  --dim: #9d9a91;
  --gold: #d6ae64;
  --ease-out: cubic-bezier(.23, 1, .32, 1);
  --ease-in-out: cubic-bezier(.77, 0, .175, 1);
  --gold-text: linear-gradient(100deg, #ebd5a4 0%, #e2c58c 14%, #d4aa60 30%, #cb9a47 42%, #dfbf82 56%, #f3e5c0 66%, #d9bf91 82%, #a77839 100%);
}

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

html, body { height: 100%; }

body {
  margin: 0;
  background: #050504;
  color: var(--text);
  font-family: "Geist", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

.page {
  position: relative;
  min-height: 100dvh;
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(circle at 10% 92%, rgba(225, 216, 194, .06), transparent 30%),
    var(--ink);
}

/* ---------- Fundalul cu circuite ---------- */

.signal-field {
  position: absolute;
  inset: -8%;
  z-index: -1;
  color: #ce976a;
  opacity: .42;
  pointer-events: none;
  animation: fade-in 1.4s var(--ease-out) both;
}

.signal-field::after {
  content: "";
  position: absolute;
  inset: 16% 20%;
  background: radial-gradient(circle, rgba(232, 199, 127, .15), transparent 68%);
}

.signal-field svg { width: 100%; height: 100%; overflow: visible; }
.signal-lines path, .signal-pulses path { fill: none; vector-effect: non-scaling-stroke; }
.signal-lines path { stroke: currentColor; stroke-width: 1; opacity: .34; }
.signal-nodes circle { fill: currentColor; opacity: .72; }

.signal-pulses path {
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-dasharray: 74 1020;
  stroke-dashoffset: 1094;
  opacity: .86;
  animation: signal-flow 3.8s linear infinite;
}

.signal-pulses path:nth-child(2) { animation-delay: -1.25s; animation-duration: 3.5s; }
.signal-pulses path:nth-child(3) { animation-delay: -2.4s; animation-duration: 4s; }

/* ---------- Header ---------- */

.header {
  position: absolute;
  top: clamp(30px, 4vw, 54px);
  left: clamp(34px, 5vw, 76px);
  right: clamp(34px, 5vw, 76px);
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  animation: header-in 700ms var(--ease-out) both;
}

.brand { display: flex; align-items: center; gap: 13px; }

.brand > span {
  width: 46px;
  height: 46px;
  display: block;
  background: url("assets/bloomtech-logo.png") center / contain no-repeat;
  filter: drop-shadow(0 9px 18px rgba(0, 0, 0, .42));
}

.brand p { margin: 0; display: flex; flex-direction: column; line-height: 1; }
.brand strong { font-size: 16px; letter-spacing: -.02em; }
.brand small { margin-top: 6px; color: var(--dim); font-size: 13px; line-height: 1; }

.status-pill {
  margin: 0;
  padding: 9px 15px 9px 13px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(238, 229, 209, .14);
  border-radius: 999px;
  background: rgba(20, 19, 16, .6);
  backdrop-filter: blur(8px);
  color: #d8d3c8;
  font-size: 13px;
  font-weight: 560;
}

.status-pill i {
  position: relative;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold);
}

.status-pill i::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--gold);
  animation: ping 2s var(--ease-out) infinite;
}

/* ---------- Layout ---------- */

.layout {
  width: min(1320px, calc(100% - clamp(68px, 10vw, 152px)));
  min-height: 100dvh;
  margin: 0 auto;
  padding: clamp(116px, 14vh, 158px) 0 clamp(102px, 12vh, 130px);
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(420px, .92fr);
  align-items: center;
  gap: clamp(44px, 7vw, 112px);
}

.content { position: relative; z-index: 2; max-width: 720px; }

h1 {
  max-width: 720px;
  margin: 0;
  color: var(--text);
  font-size: clamp(56px, 5.5vw, 88px);
  font-weight: 560;
  line-height: .91;
  letter-spacing: -.035em;
  text-wrap: balance;
  animation: copy-in 900ms 70ms var(--ease-out) both;
}

h1 span {
  display: block;
  font-weight: 300;
  color: transparent;
  background: var(--gold-text);
  background-size: 200% 100%;
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 8px 22px rgba(180, 124, 37, .09));
  animation: gold-sheen 7s var(--ease-in-out) 1.2s infinite alternate;
}

.lead {
  max-width: 54ch;
  margin: 28px 0 0;
  color: var(--muted);
  font-size: clamp(17px, 1.4vw, 21px);
  line-height: 1.55;
  animation: copy-in 900ms 135ms var(--ease-out) both;
}

/* ---------- Jurnalul de lucru ---------- */

.worklog {
  max-width: 380px;
  margin-top: 40px;
  padding: 18px 20px 20px;
  border: 1px solid rgba(238, 229, 209, .1);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255, 250, 238, .035), rgba(255, 250, 238, .012));
  animation: copy-in 900ms 270ms var(--ease-out) both;
}

.worklog-head {
  display: flex;
  justify-content: space-between;
  color: var(--dim);
  font-size: 12px;
  font-weight: 560;
  letter-spacing: .02em;
}

.worklog-count { font-variant-numeric: tabular-nums; }

.worklog ul {
  position: relative;
  height: 26px;
  margin: 12px 0 14px;
  padding: 0;
  list-style: none;
  overflow: hidden;
}

.worklog li {
  position: absolute;
  inset: 0;
  color: var(--text);
  font-size: 18px;
  font-weight: 560;
  letter-spacing: -.01em;
  opacity: 0;
  transform: translateY(100%);
  transition: opacity 420ms var(--ease-out), transform 520ms var(--ease-out);
}

.worklog li.is-done { transform: translateY(-100%); }
.worklog li.is-active { opacity: 1; transform: translateY(0); }

.worklog-bar {
  display: block;
  height: 2px;
  overflow: hidden;
  border-radius: 2px;
  background: #1f1e1b;
}

.worklog-bar span {
  display: block;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, #b98a31, #e2d2aa 48%, #aaa 72%, #d5a94b);
  transform-origin: left center;
  animation: worklog-fill 3.2s linear both;
}

/* ---------- Scena: orbite + logo care se reasamblează ---------- */

.scene {
  position: relative;
  justify-self: end;
  width: min(46vw, 650px);
  aspect-ratio: 1;
  isolation: isolate;
  animation: scene-in 1000ms 120ms var(--ease-out) both;
}

.scene::before {
  content: "";
  position: absolute;
  inset: -1%;
  z-index: -1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(224, 185, 108, .12) 0%, rgba(224, 185, 108, .072) 25%, rgba(224, 185, 108, .041) 44%, rgba(224, 185, 108, .021) 58%, rgba(224, 185, 108, .009) 69%, rgba(224, 185, 108, .003) 78%, transparent 89%);
  opacity: .72;
  transform: scale(.96);
  animation: halo-pulse 4.8s var(--ease-in-out) infinite alternate;
  pointer-events: none;
}

.orbit {
  position: absolute;
  border: 1px solid rgba(238, 229, 209, .15);
  border-radius: 50%;
  animation: orbit-in 1100ms var(--ease-out) both;
}

.orbit-outer { --dur: 42s; --start: 220deg; inset: 2%; animation-delay: 150ms; }
.orbit-2 { --dur: 34s; --start: 300deg; inset: 12%; animation-delay: 190ms; }
.orbit-3 { --dur: 28s; --start: 60deg; inset: 23%; border-color: rgba(218, 176, 97, .2); animation-delay: 230ms; }

/* Inelul interior: un arc auriu care se rotește, ca un indicator de lucru. */
.orbit-4 {
  inset: 31%;
  border-color: rgba(218, 176, 97, .18);
  animation-delay: 270ms;
}

.orbit-4::before {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: 50%;
  background: conic-gradient(from 0deg, transparent 0 62%, rgba(214, 174, 100, .05) 70%, rgba(234, 205, 145, .9) 82%, transparent 83%);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 2px), #000 calc(100% - 1.5px));
  mask: radial-gradient(farthest-side, transparent calc(100% - 2px), #000 calc(100% - 1.5px));
  animation: spin 5.5s linear infinite;
}

.track {
  position: absolute;
  inset: -1px;
  display: block;
  border-radius: 50%;
  transform: rotate(var(--start));
  animation: orbit-spin var(--dur) linear infinite;
}

.marker {
  position: absolute;
  left: 50%;
  top: 0;
  z-index: 2;
  width: 10px;
  height: 10px;
  display: block;
  transform: translate(-50%, -50%) rotate(calc(var(--start) * -1));
  animation: marker-counter var(--dur) linear infinite;
}

.marker.opposite { top: 100%; }

.marker i {
  position: absolute;
  inset: 0;
  display: block;
  border: 2px solid #070706;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 4px rgba(214, 174, 100, .08), 0 7px 18px rgba(0, 0, 0, .55);
}

.marker b {
  position: absolute;
  left: 50%;
  top: 18px;
  color: #d8d3c8;
  font-size: 13px;
  font-weight: 560;
  line-height: 1;
  white-space: nowrap;
  transform: translateX(-50%);
}

/* Logo-ul doar se rotește. Centrul cercului e la 51.7% / 47.7% din imagine. */
.logo {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 34%;
  aspect-ratio: 1;
  display: block;
  transform: translate(-51.7%, -47.7%);
  transform-origin: 51.7% 47.7%;
  filter: drop-shadow(0 12px 24px rgba(0, 0, 0, .5));
  animation: logo-spin 24s linear infinite;
  user-select: none;
  -webkit-user-drag: none;
}

/* ---------- Footer ---------- */

.footer {
  position: absolute;
  left: clamp(34px, 5vw, 76px);
  right: clamp(34px, 5vw, 76px);
  bottom: max(clamp(24px, 4vh, 44px), env(safe-area-inset-bottom));
  display: flex;
  justify-content: space-between;
  color: #6f6c65;
  font-size: 13px;
  animation: fade-in 1s 400ms var(--ease-out) both;
}

/* ---------- Keyframes ---------- */

@keyframes fade-in { from { opacity: 0; } }
@keyframes signal-flow { to { stroke-dashoffset: 0; } }
@keyframes header-in { from { opacity: 0; transform: translateY(-16px); } }
@keyframes copy-in { from { opacity: 0; transform: translateY(22px); } }
@keyframes scene-in { from { opacity: 0; transform: translateX(34px) scale(.96); } }
@keyframes orbit-in { from { opacity: 0; transform: rotate(-14deg) scale(.94); } }
@keyframes spin { to { transform: rotate(1turn); } }
@keyframes logo-spin { to { transform: translate(-51.7%, -47.7%) rotate(1turn); } }
@keyframes orbit-spin { to { transform: rotate(calc(var(--start) + 1turn)); } }
@keyframes marker-counter { to { transform: translate(-50%, -50%) rotate(calc(var(--start) * -1 - 1turn)); } }
@keyframes halo-pulse { to { opacity: .92; transform: scale(1.04); } }
@keyframes ping { 70%, 100% { opacity: 0; transform: scale(2.6); } }
@keyframes gold-sheen { from { background-position: 0% 50%; } to { background-position: 100% 50%; } }
@keyframes worklog-fill { from { transform: scaleX(0); } to { transform: scaleX(1); } }




/* ---------- Responsive ---------- */

@media (max-width: 980px) {
  .layout { position: relative; width: calc(100% - 96px); grid-template-columns: 1fr; }
  .content { max-width: min(650px, 90%); }
  h1 { font-size: clamp(52px, 8vw, 76px); }
  .scene {
    position: absolute;
    right: -18vw;
    top: 0;
    bottom: 0;
    z-index: 0;
    width: min(68vw, 560px);
    margin-block: auto;
    opacity: .42;
  }
  .marker { display: none; }
}

@media (max-width: 640px) {
  .header { top: 24px; left: 24px; right: 24px; }
  .brand > span { width: 40px; height: 40px; }
  .brand small { margin-top: 5px; }
  .status-pill { padding: 8px 12px 8px 11px; font-size: 12px; }
  .layout { width: calc(100% - 40px); padding: 112px 0 96px; }
  .content { max-width: 100%; }
  h1 { max-width: 100%; font-size: clamp(42px, 11.5vw, 52px); line-height: .94; }
  .lead { max-width: 34ch; margin-top: 22px; font-size: 16px; line-height: 1.5; }
  .worklog { max-width: 100%; }
  .scene {
    right: -238px;
    width: 430px;
    opacity: .24;
    -webkit-mask-image: linear-gradient(90deg, transparent 0 18%, #000 58%);
    mask-image: linear-gradient(90deg, transparent 0 18%, #000 58%);
  }
  .footer { left: 20px; right: 20px; font-size: 12px; }
}

@media (max-width: 380px) {
  .status-pill { display: none; }
}

@media (max-height: 640px) and (orientation: landscape) {
  .header { top: 20px; }
  .layout { width: calc(100% - 96px); padding: 80px 0 64px; grid-template-columns: 1.12fr .88fr; gap: 32px; }
  h1 { font-size: clamp(40px, 6vw, 58px); }
  .lead { margin-top: 14px; font-size: 15px; }
  .worklog { display: none; }
  .scene { position: relative; right: auto; top: auto; bottom: auto; width: min(72vh, 390px); margin-block: 0; opacity: .78; -webkit-mask-image: none; mask-image: none; }
  .footer { display: none; }
}

/* ---------- Mișcare redusă ---------- */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    animation-delay: 0ms !important;
    transition-duration: 1ms !important;
  }
  .signal-pulses { display: none; }
  .logo { animation: none !important; }
  .worklog-bar span { transform: scaleX(1); }
}
