/* ===== CSS Variables matching DreamJob.Today brand ===== */
:root {
  --primary: #2c73d2;
  --secondary: #008080;
  --dark-bg: #0a2540;
  --light-bg: #f7f9fc;
  --text: #2a2a2a;
  --subtle: #5a6473;
  --light: #ffffff;
  --accent: #dce6f6;
}

/* ===== Reset & Base ===== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  height: 100%;
}

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--dark-bg);
  color: var(--light);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

/* ===== Animated Background ===== */
.bg-animated {
  position: fixed;
  inset: 0;
  z-index: 0;
  background: var(--dark-bg);
  overflow: hidden;
}

.bg-animated::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(ellipse at 30% 40%, rgba(44, 115, 210, 0.18) 0%, transparent 60%),
              radial-gradient(ellipse at 70% 60%, rgba(0, 128, 128, 0.14) 0%, transparent 55%),
              radial-gradient(ellipse at 50% 10%, rgba(44, 115, 210, 0.10) 0%, transparent 50%);
  animation: bgShift 12s ease-in-out infinite alternate;
}

@keyframes bgShift {
  0%   { transform: translate(0, 0) scale(1); }
  100% { transform: translate(3%, 2%) scale(1.04); }
}

/* Floating particles */
.particles {
  position: absolute;
  inset: 0;
}

.particle {
  position: absolute;
  border-radius: 50%;
  background: rgba(44, 115, 210, 0.25);
  animation: float linear infinite;
}

.particle:nth-child(1)  { width: 6px;  height: 6px;  left: 10%; top: 20%; animation-duration: 18s; animation-delay: 0s;   background: rgba(44,115,210,0.3); }
.particle:nth-child(2)  { width: 4px;  height: 4px;  left: 25%; top: 60%; animation-duration: 22s; animation-delay: -4s;  background: rgba(0,128,128,0.3); }
.particle:nth-child(3)  { width: 8px;  height: 8px;  left: 40%; top: 35%; animation-duration: 26s; animation-delay: -8s;  background: rgba(44,115,210,0.2); }
.particle:nth-child(4)  { width: 3px;  height: 3px;  left: 60%; top: 75%; animation-duration: 20s; animation-delay: -2s;  background: rgba(0,128,128,0.35); }
.particle:nth-child(5)  { width: 5px;  height: 5px;  left: 75%; top: 15%; animation-duration: 24s; animation-delay: -6s;  background: rgba(44,115,210,0.25); }
.particle:nth-child(6)  { width: 7px;  height: 7px;  left: 85%; top: 50%; animation-duration: 19s; animation-delay: -10s; background: rgba(0,128,128,0.2); }
.particle:nth-child(7)  { width: 4px;  height: 4px;  left: 50%; top: 85%; animation-duration: 28s; animation-delay: -3s;  background: rgba(44,115,210,0.3); }
.particle:nth-child(8)  { width: 6px;  height: 6px;  left: 90%; top: 30%; animation-duration: 21s; animation-delay: -7s;  background: rgba(0,128,128,0.25); }

@keyframes float {
  0%   { transform: translateY(0px) rotate(0deg); opacity: 0.6; }
  50%  { opacity: 1; }
  100% { transform: translateY(-100vh) rotate(360deg); opacity: 0; }
}

/* ===== Page Layout ===== */
.page-wrapper {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 2rem 1.5rem;
}

/* ===== Card ===== */
.card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: 20px;
  padding: 3rem 2.5rem;
  max-width: 640px;
  width: 100%;
  text-align: center;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(44, 115, 210, 0.12);
  animation: cardIn 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes cardIn {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ===== Logo ===== */
.logo-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  margin-bottom: 2rem;
}

.logo-wrap img {
  height: 44px;
  width: auto;
  filter: brightness(0) invert(1);
}

.logo-text {
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.logo-text .dream { color: #7eb8ff; }
.logo-text .job   { color: var(--light); }
.logo-text .dot   { color: var(--subtle); }
.logo-text .today { color: #4dd4c4; }

/* ===== Gear Icon ===== */
.gear-icon {
  margin: 0 auto 1.75rem;
  width: 80px;
  height: 80px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gear-icon svg {
  width: 80px;
  height: 80px;
  animation: gearSpin 8s linear infinite;
  color: var(--primary);
  filter: drop-shadow(0 0 12px rgba(44, 115, 210, 0.5));
}

.gear-icon .gear-inner {
  position: absolute;
  width: 32px;
  height: 32px;
  animation: gearSpin 6s linear infinite reverse;
  color: var(--secondary);
  filter: drop-shadow(0 0 8px rgba(0, 128, 128, 0.5));
}

@keyframes gearSpin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

/* ===== Headline ===== */
h1 {
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 0.75rem;
  letter-spacing: -0.02em;
}

h1 span {
  background: linear-gradient(90deg, #7eb8ff, #4dd4c4);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.subtitle {
  font-size: 1.05rem;
  color: #a0b3c8;
  margin-bottom: 2.25rem;
  max-width: 460px;
  margin-left: auto;
  margin-right: auto;
}

/* ===== Divider ===== */
.divider {
  width: 60px;
  height: 3px;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  margin: 0 auto 2.25rem;
}

/* ===== Progress bar ===== */
.progress-wrap {
  margin-bottom: 2rem;
}

.progress-label {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  color: #7a9ab8;
  margin-bottom: 0.5rem;
}

.progress-bar {
  height: 6px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 99px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  width: 0%;
  animation: fillProgress 2.5s 0.5s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  box-shadow: 0 0 10px rgba(44, 115, 210, 0.6);
}

@keyframes fillProgress {
  to { width: 72%; }
}

/* ===== Features List ===== */
.features {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 2.25rem;
  text-align: left;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.9rem;
  color: #c0d5e8;
}

.feature-icon {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
}

.feature-icon.blue { background: rgba(44, 115, 210, 0.2); color: #7eb8ff; }
.feature-icon.teal { background: rgba(0, 128, 128, 0.2); color: #4dd4c4; }

/* ===== Footer inside card ===== */
.card-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.social-link {
  color: #7a9ab8;
  text-decoration: none;
  font-size: 1.1rem;
  transition: color 0.2s, transform 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.social-link:hover { color: #7eb8ff; border-color: rgba(126, 184, 255, 0.4); transform: translateY(-2px); }

/* ===== Bottom footer ===== */
.page-footer {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 1.25rem 1rem 1.5rem;
  font-size: 0.78rem;
  color: #4a6478;
}

/* ===== Responsive ===== */
@media (max-width: 520px) {
  .card { padding: 2.25rem 1.5rem; }
  h1 { font-size: 1.6rem; }
  .notify-form { flex-direction: column; }
  .gear-icon { width: 64px; height: 64px; }
  .gear-icon svg { width: 64px; height: 64px; }
}
