:root {
  color-scheme: dark;
  --bg: #11101a;
  --surface: #1b1928;
  --text: #f2f0ff;
  --muted: #b7b2d4;
  --primary: #806dff;
  --primary-2: #6b5af3;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

html {
  background: var(--bg);
  overscroll-behavior: none;
}

/* Circuit-board texture — fixed bottom-right, 50 % opacity, under gradients */
body::before {
  content: '';
  position: fixed;
  bottom: 0;
  right: 0;
  width: 100%;
  height: 100%;
  background: url('/landing/bg_circuit.jpg') no-repeat bottom right / contain;
  opacity: 0.2;
  pointer-events: none;
  z-index: 1;
}

/* Gradient overlay — generated by JS, sits above circuit image */
#bgGradients {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 2;
}

body {
  min-height: 100vh;
  min-height: 100dvh;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--text);
  background: transparent;
  overscroll-behavior: none;
  position: relative;
  z-index: 0;
}

body > * {
  position: relative;
  z-index: 3;
}
#bgGradients { z-index: 2; }



.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.topbar {
  width: min(1120px, calc(100% - 32px));
  margin: 20px auto 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid #332d4a;
}

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

.brand-logo {
  height: 36px;
  width: auto;
  border-radius: 8px;
}

.nav-links { display: flex; gap: 20px; }

.nav-links a {
  color: #d9d4ff;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  padding: 6px 10px;
  border-radius: 8px;
}

.nav-links a.nav-active {
  color: #ffffff;
  background: linear-gradient(135deg, rgba(128, 109, 255, 0.32), rgba(107, 90, 243, 0.22));
  border: 1px solid #7a66ff;
  box-shadow:
    0 0 0 1px rgba(128, 109, 255, 0.18) inset,
    0 0 14px rgba(128, 109, 255, 0.35),
    0 0 28px rgba(107, 90, 243, 0.22);
}

.actions { display: flex; gap: 10px; align-items: center; }

select {
  height: 34px;
  border: 1px solid #4b426e;
  border-radius: 8px;
  padding: 0 10px;
  background: #211d31;
  color: #f2f0ff;
  font-size: 18px;
}

.hero {
  width: min(860px, calc(100% - 32px));
  margin: 40px auto 0;
  padding-bottom: 80px;
}

.hero-card {
  width: 100%;
  background: var(--surface);
  border: 1px solid #332d4a;
  border-radius: 16px;
  box-shadow: 0 20px 50px rgba(10, 8, 20, 0.45);
  padding: 40px 28px;
  position: relative;
  overflow: hidden;
}

/* Hero card with a background image at 20 % opacity */
.hero-card-services::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url('/landing/services_hero.jpg');
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  opacity: 0.2;
  z-index: 0;
  pointer-events: none;
  border-radius: inherit;
}
.hero-card-services > * {
  position: relative;
  z-index: 1;
}

/* Front page hero background image */
.hero-card-front::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url('/landing/front_hero.jpg');
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  opacity: 0.2;
  z-index: 0;
  pointer-events: none;
  border-radius: inherit;
}
.hero-card-front > * {
  position: relative;
  z-index: 1;
}

.eyebrow {
  color: var(--primary);
  font-weight: 600;
  margin: 0 0 8px;
}

h1 {
  margin: 0;
  font-size: clamp(30px, 4vw, 44px);
  line-height: 1.12;
  letter-spacing: 0.1px;
}

.lead {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.55;
}

.hero-cta {
  margin-top: 26px;
  display: flex;
  gap: 12px;
}

.hero-cta .btn,
.role-actions .btn,
.consent-actions .btn {
  height: 44px;
  padding: 0 20px;
  border-radius: 12px;
  font-size: 15px;
}

.section {
  margin-top: 32px;
  max-width: 860px;
}

.section-head h2 {
  margin: 0;
  font-size: 26px;
  font-weight: 800;
}

.section-head.compact h2 {
  font-size: 18px;
  font-weight: 700;
}

.section-subtitle {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.pill-grid {
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.pill {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 10px;
  border: 1px solid #4a4170;
  background: #26213a;
  font-size: 13px;
  font-weight: 500;
  color: #e2ddff;
}

a.pill {
  text-decoration: none;
}

.pill-glow {
  color: #ffffff;
  border-color: #7a66ff;
  background: linear-gradient(135deg, rgba(128, 109, 255, 0.46), rgba(107, 90, 243, 0.34));
  box-shadow:
    0 0 0 1px rgba(128, 109, 255, 0.2) inset,
    0 0 14px rgba(128, 109, 255, 0.35),
    0 0 28px rgba(107, 90, 243, 0.24);
}

.pill-glow:hover {
  border-color: #8b78ff;
  box-shadow:
    0 0 0 1px rgba(128, 109, 255, 0.26) inset,
    0 0 18px rgba(128, 109, 255, 0.42),
    0 0 32px rgba(107, 90, 243, 0.3);
}

.role-grid {
  margin-top: 14px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.role-card,
.service-card,
.contact-card,
.person-card {
  background: rgba(30, 27, 46, 0.8);
  border: 1px solid #332d4a;
  border-radius: 16px;
  box-shadow: 0 10px 28px rgba(10, 8, 20, 0.35);
}

.role-card,
.service-card,
.person-card {
  padding: 16px;
}

.role-card {
  cursor: pointer;
}

.role-card.role-active {
  border: 2px solid var(--primary);
  box-shadow: 0 12px 30px rgba(128, 109, 255, 0.22);
}

.contact-card {
  margin-top: 18px;
  padding: 16px;
}

.role-card h3,
.service-card h3,
.person-card h4 {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
}

.role-card p,
.service-card p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.service-grid {
  margin-top: 16px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.section-link-row {
  margin-top: 10px;
}

.inline-link {
  color: #cbbfff;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
}

.inline-link:hover {
  color: #ffffff;
}

.role-actions {
  margin-top: 20px;
  display: flex;
  justify-content: center;
  gap: 12px;
}

.service-grid-long {
  grid-template-columns: 1fr;
}

.service-list {
  margin: 12px 0 0;
  padding-left: 18px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.service-list li + li {
  margin-top: 6px;
}

.contact-card h3 { margin: 0 0 12px; }
.contact-card p { margin: 6px 0; }

.contact-card a,
.person-card a {
  color: #e2ddff;
  text-decoration: none;
}

.contact-card a { font-weight: 600; }

.people-grid {
  margin-top: 12px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.person-card p { margin: 7px 0 0; }

.lang-flags { font-size: 13px; color: var(--muted); }

.muted { color: var(--muted); }

.footer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 40;
  padding: 10px 24px;
  background: rgba(17, 16, 26, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-top: 1px solid #332d4a;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

@media (max-width: 740px) {
  .footer {
    justify-content: center;
    text-align: center;
  }
  .footer-links {
    margin-left: 0;
    width: 100%;
    justify-content: center;
  }
}

.footer p {
  margin: 0;
  font-size: 12px;
}

.footer-links {
  margin-left: auto;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.footer-links a {
  color: #d9d4ff;
  text-decoration: none;
  font-size: 12px;
}

.footer-links a:hover {
  color: #ffffff;
}

.consent-banner {
  position: fixed;
  left: 50%;
  bottom: 16px;
  width: min(860px, calc(100% - 32px));
  transform: translateX(-50%);
  z-index: 50;
  background: #1e1b2e;
  border: 1px solid #4a4170;
  border-radius: 14px;
  box-shadow: 0 12px 32px rgba(10, 8, 20, 0.45);
  padding: 14px;
}

.consent-banner p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}

.consent-manage {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid #332d4a;
}

.consent-manage h3 {
  margin: 0;
  font-size: 16px;
}

.consent-option {
  margin-top: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #e2ddff;
  font-size: 13px;
}

.consent-actions {
  margin-top: 12px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.consent-actions-manage {
  margin-top: 14px;
}

.consent-inline-actions {
  margin-top: 12px;
}

.consent-learn-more {
  margin: 6px 0 0;
}

.consent-learn-more a {
  color: #cbbfff;
  font-size: 13px;
  text-decoration: underline;
}

.consent-learn-more a:hover {
  color: #ffffff;
}

.btn-consent {
  color: #f2f0ff;
  background: rgba(128, 109, 255, 0.12);
  border: 1px solid rgba(128, 109, 255, 0.35);
  font-weight: 600;
}

.btn-consent:hover {
  background: rgba(128, 109, 255, 0.22);
  border-color: rgba(128, 109, 255, 0.5);
}

.btn-link {
  color: var(--muted);
  background: none;
  border: none;
  text-decoration: underline;
  font-weight: 500;
  padding: 0 10px;
  height: auto;
  font-size: 13px;
}

.btn-link:hover {
  color: #ffffff;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 34px;
  padding: 0 14px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 0.2px;
}

.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  box-shadow: 0 8px 24px rgba(128, 109, 255, 0.28);
}

.btn-ghost {
  color: #e2ddff;
  background: #27213b;
  border: 1px solid #49406d;
}

@media (max-width: 740px) {
  .topbar {
    margin-top: 16px;
    flex-wrap: wrap;
    row-gap: 10px;
  }
  .brand-wrap {
    order: 1;
  }
  .actions {
    order: 2;
    margin-left: auto;
  }
  .nav-links {
    order: 3;
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 2px;
    -webkit-overflow-scrolling: touch;
  }
  .nav-links a {
    flex: 0 0 auto;
    font-size: 13px;
    padding: 6px 8px;
    white-space: nowrap;
  }
  .hero { margin-top: 24px; }
  .hero-card { padding: 24px; border-radius: 16px; }
  .actions .btn { font-size: 12px; padding: 0 10px; height: 30px; }
  .actions select { height: 30px; font-size: 16px; }
  .service-grid,
  .people-grid,
  .role-grid {
    grid-template-columns: 1fr;
  }
  .section-head h2 {
    font-size: 28px;
  }
  .consent-actions .btn {
    width: 100%;
  }
}

/* ── Freelancer landing page ────────────────────────────── */

.fl-hero-layout {
  display: flex;
  flex-direction: column;
  gap: 48px;
}

.fl-stats {
  margin-top: 28px;
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.fl-stat {
  text-align: center;
  flex: 1 1 120px;
}

.fl-stat-value {
  font-size: 32px;
  font-weight: 800;
  color: var(--primary);
  line-height: 1.1;
}

.fl-stat-label {
  margin-top: 4px;
  font-size: 13px;
  color: var(--muted);
}

.fl-value-grid {
  margin-top: 16px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.fl-value-card {
  background: rgba(30, 27, 46, 0.5);
  border: 1px solid #332d4a;
  border-radius: 16px;
  box-shadow: 0 10px 28px rgba(10, 8, 20, 0.35);
  padding: 16px;
}

.fl-value-card h3 {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
}

.fl-value-card p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.fl-steps {
  margin-top: 16px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.fl-step {
  background: rgba(30, 27, 46, 0.5);
  border: 1px solid #332d4a;
  border-radius: 16px;
  box-shadow: 0 10px 28px rgba(10, 8, 20, 0.35);
  padding: 16px;
  text-align: center;
}

.fl-step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  color: #fff;
  font-weight: 800;
  font-size: 16px;
  margin-bottom: 8px;
}

.fl-step h3 {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
}

.fl-step p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.fl-brand {
  display: flex;
  justify-content: center;
  margin-bottom: 8px;
}

.fl-brand img {
  height: 40px;
  width: auto;
  border-radius: 8px;
}

.hero-card.fl-hero-secondary {
  background: rgba(27, 25, 40, 0.5);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.fl-hero-secondary .fl-section-heading {
  margin: 0 0 16px;
  font-size: 22px;
  font-weight: 800;
}

.fl-cta-bottom {
  text-align: center;
}

.fl-cta-bottom .btn {
  height: 48px;
  padding: 0 28px;
  border-radius: 14px;
  font-size: 16px;
  font-weight: 700;
}

.fl-cta-bottom .lead {
  margin-bottom: 24px;
}

@media (max-width: 740px) {
  .fl-value-grid,
  .fl-steps {
    grid-template-columns: 1fr;
  }
  .fl-stats {
    gap: 16px;
  }
}

[data-signup-button], [data-signup-flow], a[href^="/app/signup"] { display: none !important; }
