:root {
  --bg-deep: #13192c;
  --bg-navy: #1e2742;
  --surface: rgba(15, 23, 42, 0.72);
  --surface-border: rgba(255, 255, 255, 0.12);
  --accent-yellow: #facc15;
  --accent-amber: #f59e0b;
  --accent-orange: #f97316;
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-dark: #0f172a;
  --radius-lg: 24px;
  --radius-md: 12px;
}

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

html,
body {
  min-height: 100%;
}

body {
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: var(--text-primary);
  background-color: var(--bg-deep);
  background-image:
    linear-gradient(180deg, rgba(11, 19, 32, 0.52) 0%, rgba(11, 19, 32, 0.74) 100%),
    url("img/bg-ndgroup.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
}

/* Subtle engineering blueprint grid background */
.bg-grid {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(circle at 50% 40%, black 35%, transparent 85%);
  z-index: 0;
}

.bg-glow {
  position: fixed;
  top: -140px;
  left: 50%;
  transform: translateX(-50%);
  width: 720px;
  height: 420px;
  background: radial-gradient(circle, rgba(250, 204, 21, 0.14) 0%, rgba(250, 204, 21, 0) 70%);
  pointer-events: none;
  z-index: 0;
}

/* Top Construction Hazard Strip */
.hazard-strip {
  width: 100%;
  height: 8px;
  background: repeating-linear-gradient(
    -45deg,
    var(--accent-yellow),
    var(--accent-yellow) 16px,
    #111827 16px,
    #111827 32px
  );
  position: relative;
  z-index: 2;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
}

/* Main Layout */
.page-wrapper {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 920px;
  margin: 0 auto;
  padding: 28px 20px 36px;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 28px;
}

/* Header */
.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

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

.brand-logo {
  height: 68px;
  width: auto;
  display: block;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.4);
  object-fit: contain;
  background-color: #0b1320;
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-family: "Montserrat", sans-serif;
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: 1.4px;
  line-height: 1.15;
  color: var(--text-primary);
}

.brand-tagline {
  font-size: 0.78rem;
  color: var(--text-secondary);
  letter-spacing: 0.4px;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 8px 16px;
  border-radius: 999px;
  background: rgba(250, 204, 21, 0.1);
  border: 1px solid rgba(250, 204, 21, 0.28);
  color: var(--accent-yellow);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.3px;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-yellow);
  box-shadow: 0 0 0 0 rgba(250, 204, 21, 0.7);
  animation: pulse-dot 2s infinite;
}

/* Main Card */
.main-card {
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-lg);
  padding: 32px 36px 42px;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow:
    0 24px 60px rgba(0, 0, 0, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

/* Illustration */
.illustration-wrap {
  width: 100%;
  max-width: 520px;
  margin-bottom: 10px;
}

.construction-svg {
  width: 100%;
  height: auto;
  display: block;
  filter: drop-shadow(0 14px 24px rgba(0, 0, 0, 0.35));
}

.swing-group {
  transform-origin: 429px 102px;
  animation: gentle-swing 5s ease-in-out infinite;
}

.beacon-light {
  animation: beacon-blink 1.6s ease-in-out infinite;
}

.beacon-light--delayed {
  animation-delay: 0.8s;
}

/* Animated Hazard Bar */
.hazard-bar {
  width: 100%;
  max-width: 460px;
  height: 12px;
  border-radius: 999px;
  overflow: hidden;
  background: #111827;
  border: 1px solid rgba(255, 255, 255, 0.12);
  margin: 12px 0 26px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
}

.hazard-bar__fill {
  width: 200%;
  height: 100%;
  background: repeating-linear-gradient(
    -55deg,
    var(--accent-yellow),
    var(--accent-yellow) 14px,
    #111827 14px,
    #111827 28px
  );
  animation: slide-stripes 2.4s linear infinite;
}

/* Content */
.content {
  max-width: 600px;
  width: 100%;
}

.title {
  font-family: "Montserrat", sans-serif;
  font-weight: 900;
  font-size: clamp(1.75rem, 4vw, 2.45rem);
  letter-spacing: 0.8px;
  line-height: 1.15;
  color: var(--text-primary);
  margin-bottom: 14px;
}

.title span {
  color: var(--accent-yellow);
}

.subtitle {
  font-size: 1.02rem;
  color: var(--text-secondary);
  margin-bottom: 26px;
}

.subtitle strong {
  color: var(--text-primary);
  font-weight: 600;
}

/* Progress Block */
.progress-block {
  max-width: 420px;
  margin: 0 auto 30px;
  text-align: left;
}

.progress-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.84rem;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.progress-meta strong {
  color: var(--accent-yellow);
  font-weight: 700;
}

.progress-track {
  width: 100%;
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.progress-fill {
  width: 75%;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent-orange), var(--accent-yellow));
  box-shadow: 0 0 12px rgba(250, 204, 21, 0.45);
}

/* Action Buttons */
.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 14px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.96rem;
  padding: 14px 26px;
  border-radius: var(--radius-md);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
  cursor: pointer;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-yellow), var(--accent-amber));
  color: var(--text-dark);
  box-shadow: 0 10px 26px rgba(250, 204, 21, 0.28);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgba(250, 204, 21, 0.4);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
  border: 1px solid rgba(255, 255, 255, 0.14);
  font-weight: 500;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(250, 204, 21, 0.45);
  transform: translateY(-2px);
}

.btn-icon,
.btn-arrow {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.btn-primary:hover .btn-arrow {
  transform: translateX(3px);
  transition: transform 0.2s ease;
}

/* Footer */
.footer {
  text-align: center;
  font-size: 0.84rem;
  color: var(--text-secondary);
}

.footer strong {
  color: var(--text-primary);
  font-weight: 600;
}

/* Animations */
@keyframes pulse-dot {
  0% {
    box-shadow: 0 0 0 0 rgba(250, 204, 21, 0.7);
  }
  70% {
    box-shadow: 0 0 0 9px rgba(250, 204, 21, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(250, 204, 21, 0);
  }
}

@keyframes gentle-swing {
  0%,
  100% {
    transform: rotate(-1.8deg);
  }
  50% {
    transform: rotate(1.8deg);
  }
}

@keyframes beacon-blink {
  0%,
  100% {
    opacity: 1;
    filter: drop-shadow(0 0 8px #facc15);
  }
  50% {
    opacity: 0.35;
    filter: none;
  }
}

@keyframes slide-stripes {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-34px);
  }
}

/* Responsive */
@media (max-width: 640px) {
  .page-wrapper {
    padding: 20px 14px 28px;
    gap: 20px;
  }

  .header {
    justify-content: center;
  }

  .main-card {
    padding: 24px 20px 30px;
    border-radius: 18px;
  }

  .actions {
    flex-direction: column;
    width: 100%;
  }

  .btn {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .status-dot,
  .swing-group,
  .beacon-light,
  .hazard-bar__fill {
    animation: none;
  }
}
