:root {
  --bg: #080a1d;
  --panel: rgba(16, 21, 47, 0.72);
  --panel-border: rgba(255, 255, 255, 0.14);
  --text: #fff;
  --muted: rgba(255, 255, 255, 0.72);
  --pink: #eb4899;
  --accent-color: #eb4899;
  --violet: #8a5cf6;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: "Inter", system-ui, sans-serif;
  color: var(--text);
  background: radial-gradient(circle at 20% 0%, #3a1b67 0%, #170f3f 40%, var(--bg) 100%);
}

a { color: inherit; text-decoration: none; }
.container { width: min(1120px, 92%); margin: 0 auto; }

/* Django messages (e.g. validation after redirect back to homepage) */
.home-msgs {
  padding: 1rem 0 0.5rem;
}
.home-msg {
  margin: 0 0 0.5rem;
  padding: 0.75rem 1rem;
  border-radius: 0.75rem;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
}
.home-msg--error {
  background: #fef2f2;
  color: #991b1b;
  border-color: #fecaca;
}
.home-msg--success {
  background: #ecfdf5;
  color: #065f46;
  border-color: #a7f3d0;
}
.home-msg--warning {
  background: #fffbeb;
  color: #92400e;
  border-color: #fde68a;
}
.home-msg--info,
.home-msg--debug {
  background: rgba(255, 255, 255, 0.92);
  color: #1e1b4b;
  border-color: rgba(139, 92, 246, 0.25);
}
.section { padding: 5rem 0; }
.section-dark { background: rgba(0, 0, 0, 0.24); }
.section-header { text-align: center; max-width: 760px; margin: 0 auto 3rem; }
.section-header h2 { font-size: clamp(2rem, 3.8vw, 3.1rem); margin: 0 0 .8rem; }
.section-header p { color: var(--muted); margin: 0; font-size: 1.07rem; }

.hero {
  position: relative;
  overflow: hidden;
  /* Tight top padding: previous 5.5rem / 2.5rem still left the brand floating too low on phone & desktop */
  padding: 1rem 0 3.25rem;
  background-image:
    linear-gradient(rgba(0,0,0,.38), rgba(0,0,0,.38)),
    url("https://images.unsplash.com/photo-1512917774080-9991f1c4c750?q=80&w=2070&auto=format&fit=crop");
  background-size: cover;
  background-position: center;
}
@media (min-width: 640px) {
  .hero {
    padding: 1.75rem 0 4rem;
  }
}
@media (min-width: 1024px) {
  .hero {
    padding: 2.5rem 0 5rem;
  }
}
@media (min-width: 1440px) {
  .hero {
    padding: 3rem 0 5.5rem;
  }
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.34);
  backdrop-filter: blur(1px);
}
.hero-content { position: relative; z-index: 1; }
/* Top-left brand: no pill background; gradient wordmark + mark (docker.home / bellengale.com) */
.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: clamp(1.1rem, 3vw, 2rem);
  padding: 0;
  background: none;
  border: none;
  box-shadow: none;
  backdrop-filter: none;
}
.brand-lockup__mark {
  width: 2.5rem;
  height: 2.5rem;
  flex-shrink: 0;
  border-radius: 0.5rem;
  display: block;
  object-fit: contain;
}
.brand-lockup__wordmark {
  font-family: "Roboto", system-ui, sans-serif;
  font-weight: 700;
  font-size: clamp(1.2rem, 2.5vw, 1.65rem);
  letter-spacing: 0.02em;
  line-height: 1.1;
  background: linear-gradient(90deg, #e94e77 0%, #9b51e0 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-copy { text-align: center; max-width: 920px; margin: 0 auto clamp(1.25rem, 3.5vw, 2rem); }
.hero-copy h1.hero-title {
  margin: 0;
  font-size: clamp(2.1rem, 6vw, 4.2rem);
  font-weight: 800;
  line-height: 1.15;
  text-align: center;
  width: 100%;
  /* Safari: explicit headline color on h1 so line spans do not inherit a merged accent fill */
  color: #ffffff;
}
/* Two block lines only; nowrap = no responsive wrap inside a line (break is only between spans). */
.hero-title span {
  display: block;
  text-align: center;
  white-space: nowrap;
  isolation: isolate;
  background: none;
  -webkit-background-clip: border-box;
  background-clip: border-box;
}
.hero-line1 {
  color: #ffffff;
  -webkit-text-fill-color: #ffffff;
}
.hero-line2 {
  color: var(--accent-color);
  -webkit-text-fill-color: var(--accent-color);
}
.hero-copy p { color: #f6f8ff; font-weight: 500; font-size: 1.1rem; margin-top: 1rem; }

.hero-card {
  max-width: 760px;
  margin: clamp(1.35rem, 3vw, 2rem) auto 0;
  padding: 2rem;
  border-radius: 1.4rem;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.34);
  backdrop-filter: blur(14px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.32);
}
@media (min-width: 640px) {
  .hero-card {
    margin-top: 2rem;
  }
}

#heroLeadForm { display: grid; gap: .9rem; }
#heroLeadForm label { color: #334155; letter-spacing: .08em; font-weight: 700; font-size: .72rem; }
#heroLeadForm input {
  border: 1px solid #d8e2f2;
  border-radius: .9rem;
  padding: .86rem .95rem;
  background: #ddebff;
  color: #0f172a;
  font-size: .95rem;
  outline: none;
}
#heroLeadForm input:focus { border-color: var(--pink); box-shadow: 0 0 0 2px rgba(235, 72, 153, .22); }
.helper-text, .form-footnote { color: #475569; font-size: .78rem; margin: 0; font-weight: 500; }
.form-error { color: #b91c1c; font-size: .88rem; margin: 0; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .4rem;
  border-radius: .9rem;
  font-weight: 700;
  padding: .8rem 1.3rem;
  border: 1px solid transparent;
  transition: transform .16s ease, opacity .16s ease, background-color .16s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  background: linear-gradient(90deg, var(--pink), var(--violet));
  color: #fff;
}
.btn-outline {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.28);
  color: #fff;
}
.btn.block { width: 100%; }

.panel {
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: 1rem;
  box-shadow: 0 8px 28px rgba(0, 0, 0, .22);
}

.category-grid, .worker-grid {
  display: grid;
  gap: 1.15rem;
  grid-template-columns: repeat(1, minmax(0, 1fr));
}
@media (min-width: 760px) {
  .category-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .worker-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1060px) {
  .category-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .worker-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

.category-card { padding: 1.2rem; display: flex; flex-direction: column; min-height: 240px; }
.category-icon {
  width: 3.2rem;
  height: 3.2rem;
  border-radius: .9rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: .9rem;
}
.category-icon i { width: 1.5rem; height: 1.5rem; }
.from-violet-500.to-fuchsia-500 { background: linear-gradient(90deg, #8b5cf6, #d946ef); }
.from-cyan-500.to-blue-500 { background: linear-gradient(90deg, #06b6d4, #3b82f6); }
.from-emerald-500.to-teal-500 { background: linear-gradient(90deg, #10b981, #14b8a6); }
.from-pink-500.to-rose-500 { background: linear-gradient(90deg, #ec4899, #f43f5e); }
.from-indigo-500.to-blue-600 { background: linear-gradient(90deg, #6366f1, #2563eb); }
.from-sky-500.to-indigo-500 { background: linear-gradient(90deg, #0ea5e9, #6366f1); }
.from-amber-500.to-orange-500 { background: linear-gradient(90deg, #f59e0b, #f97316); }
.from-purple-500.to-indigo-500 { background: linear-gradient(90deg, #a855f7, #6366f1); }

.category-card h3 { margin: 0 0 .45rem; font-size: 1.15rem; }
.category-card p { margin: 0; color: var(--muted); font-size: .92rem; line-height: 1.45; }
.category-meta {
  margin-top: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #e5e7eb;
  font-size: .82rem;
  padding-top: .95rem;
}

.steps {
  display: grid;
  gap: 1.2rem;
  grid-template-columns: repeat(1, minmax(0, 1fr));
  max-width: 980px;
  margin: 0 auto;
}
@media (min-width: 860px) {
  .steps { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
.step { text-align: center; }
.step-icon {
  width: 6rem;
  height: 6rem;
  border-radius: 999px;
  margin: 0 auto .8rem;
  background: #1f2937;
  border: 1px solid var(--panel-border);
  display: grid;
  place-items: center;
}
.step-icon i { width: 1.9rem; height: 1.9rem; color: #c4b5fd; }
.step h3 { margin: 0; font-size: 1.15rem; }

.center { text-align: center; margin-top: 2rem; }

.worker-card { padding: 1.2rem; }
.worker-top {
  display: flex;
  gap: .9rem;
  margin-bottom: 1rem;
}
.worker-top img {
  width: 4rem;
  height: 4rem;
  border-radius: 999px;
  object-fit: cover;
}
.worker-top h3 { margin: 0 0 .2rem; font-size: 1.05rem; }
.worker-top p { margin: 0; color: var(--muted); font-size: .88rem; }
.worker-rating { display: inline-flex; gap: .35rem; align-items: center; margin-top: .35rem !important; }
.worker-rating i { width: .9rem; height: .9rem; color: #facc15; }
.worker-facts { margin: 0 0 1rem; display: grid; gap: .5rem; }
.worker-facts div { display: flex; justify-content: space-between; gap: .6rem; }
.worker-facts dt { color: var(--muted); font-size: .84rem; }
.worker-facts dd { margin: 0; font-weight: 600; font-size: .9rem; }

.cta h2 { margin: 0 0 .6rem; font-size: clamp(2rem, 4vw, 3.1rem); }
.cta p { margin: 0 auto 1.4rem; max-width: 700px; color: var(--muted); }
.cta-actions { display: flex; gap: .8rem; justify-content: center; flex-wrap: wrap; }

