:root {
  --bg: #040711;
  --bg-alt: #070b1f;
  --card-bg: #0c1024;
  --accent: #2563eb;
  --accent-soft: rgba(37, 99, 235, 0.15);
  --accent-strong: #1d4ed8;
  --text: #e5e7eb;
  --muted: #9ca3af;
  --border: #111827;
  --danger: #f97373;
  --radius-lg: 18px;
  --radius-xl: 24px;
  --shadow-soft: 0 18px 40px rgba(15, 23, 42, 0.65);
}

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

html,
body {
  margin: 0;
  padding: 0;
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  background: radial-gradient(circle at top, #020617 0, #020617 35%, #020617 100%);
  color: var(--text);
}

body.page-alt {
  background: radial-gradient(circle at top, #020617 0, #020617 40%, #020617 100%);
}

body.page-dashboard {
  background: #020617;
}

/* Layout */
.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: linear-gradient(to bottom, rgba(2, 6, 23, 0.98), rgba(2, 6, 23, 0.9));
  border-bottom: 1px solid rgba(15, 23, 42, 0.8);
  backdrop-filter: blur(16px);
}

.simple-header {
  position: static;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.logo-mark {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: radial-gradient(circle at 30% 0, #60a5fa, #1d4ed8);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: #e5e7eb;
  box-shadow: 0 10px 25px rgba(37, 99, 235, 0.7);
}

.logo-text {
  font-weight: 600;
  letter-spacing: 0.02em;
}

.logo-text span {
  color: #60a5fa;
}

/* Nav */
.nav-desktop {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.9rem;
}

.nav-desktop a {
  color: var(--muted);
  text-decoration: none;
  padding: 0.45rem 0.7rem;
  border-radius: 999px;
  transition: 0.18s ease;
}

.nav-desktop a:hover {
  color: #e5e7eb;
  background: rgba(15, 23, 42, 0.95);
}

.nav-link-primary {
  background: var(--accent);
  color: white !important;
  padding-inline: 0.95rem;
}

.nav-link-primary:hover {
  background: var(--accent-strong);
}

.nav-link-ghost {
  border: 1px solid rgba(148, 163, 184, 0.4);
}

/* Mobile nav */
.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid rgba(148, 163, 184, 0.4);
  border-radius: 999px;
  width: 34px;
  height: 34px;
  color: #e5e7eb;
}

.nav-mobile {
  display: none;
  flex-direction: column;
  padding: 0.75rem 1.5rem 1rem;
  gap: 0.5rem;
  background: #020617;
  border-bottom: 1px solid #111827;
}

.nav-mobile a {
  text-decoration: none;
  color: var(--muted);
  padding: 0.4rem 0;
}

/* Hero */
.hero {
  padding: 3.5rem 0 2.5rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1.1fr);
  gap: 2.5rem;
  align-items: center;
}

.hero-copy h1 {
  font-size: clamp(1.9rem, 3vw, 2.4rem);
  line-height: 1.2;
  margin-bottom: 1rem;
}

.hero-copy h1 strong {
  color: #60a5fa;
}

.hero-copy p {
  color: var(--muted);
  max-width: 34rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.4rem;
}

.btn-primary,
.btn-outline,
.btn-primary-full {
  border-radius: 999px;
  padding: 0.65rem 1.4rem;
  border: none;
  cursor: pointer;
  font-weight: 500;
  font-size: 0.95rem;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
}

.btn-primary,
.btn-primary-full {
  background: linear-gradient(to right, #2563eb, #4f46e5);
  color: white;
  box-shadow: 0 12px 30px rgba(37, 99, 235, 0.75);
}

.btn-outline {
  border: 1px solid rgba(148, 163, 184, 0.7);
  background: transparent;
  color: var(--text);
}

.btn-primary-full {
  width: 100%;
  margin-top: 0.75rem;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.25rem;
  font-size: 0.8rem;
  color: var(--muted);
}

.hero-meta span {
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(31, 41, 55, 0.9);
}

/* Hero panel */
.hero-panel {
  display: flex;
  justify-content: flex-end;
}

.card {
  background: radial-gradient(circle at top left, #0b1120, #020617);
  border-radius: var(--radius-xl);
  padding: 1.6rem;
  border: 1px solid #111827;
  box-shadow: var(--shadow-soft);
}

.hero-card h2 {
  margin-top: 0;
  margin-bottom: 1rem;
}

.hero-card label {
  display: block;
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: 0.7rem;
}

.hero-card input,
.hero-card select,
.auth-card input,
.auth-card select,
.auth-card textarea {
  width: 100%;
  margin-top: 0.25rem;
  padding: 0.55rem 0.6rem;
  border-radius: 10px;
  border: 1px solid rgba(31, 41, 55, 0.9);
  background: #020617;
  color: #e5e7eb;
  font-size: 0.9rem;
}

.hero-card input:focus,
.hero-card select:focus,
.auth-card input:focus,
.auth-card select:focus,
.auth-card textarea:focus {
  outline: none;
  border-color: #2563eb;
  box-shadow: 0 0 0 1px rgba(37, 99, 235, 0.6);
}

.form-note {
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: 0.5rem;
}

/* Sections */
.section {
  padding: 3rem 0;
}

.section-alt {
  background: radial-gradient(circle at top, #020617 0, #020617 40%, #020617 100%);
}

.section-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1.2fr);
  gap: 2.2rem;
  align-items: flex-start;
}

.section-title {
  text-align: center;
  margin-bottom: 2rem;
}

.feature-list {
  padding-left: 1rem;
  list-style: none;
  color: var(--muted);
}

.feature-list li {
  position: relative;
  margin-bottom: 0.4rem;
}

.feature-list li::before {
  content: "•";
  position: absolute;
  left: -0.8rem;
  color: #60a5fa;
}

/* Cards list */
.card-list {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1rem;
}

.card h3 {
  margin-top: 0;
  margin-bottom: 0.35rem;
}

.card p {
  margin: 0;
  color: var(--muted);
}

.link-cta {
  display: inline-flex;
  margin-top: 1rem;
  color: #60a5fa;
  text-decoration: none;
  font-size: 0.9rem;
}

/* Steps */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.4rem;
}

.step {
  background: #020617;
  border-radius: var(--radius-lg);
  padding: 1.1rem;
  border: 1px solid #111827;
}

.step-number {
  display: inline-flex;
  width: 26px;
  height: 26px;
  border-radius: 999px;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  background: var(--accent-soft);
  color: #bfdbfe;
  margin-bottom: 0.6rem;
}

/* Coverage */
.coverage-card {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.coverage-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

/* Footer */
.site-footer {
  padding: 2.5rem 0 1.5rem;
  border-top: 1px solid #111827;
  margin-top: 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) repeat(3, minmax(0, 1fr));
  gap: 2rem;
  font-size: 0.85rem;
}

.footer-logo {
  margin-bottom: 0.6rem;
}

.footer-text {
  color: var(--muted);
  max-width: 20rem;
}

.site-footer h4 {
  margin-top: 0;
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
}

.site-footer a {
  display: block;
  color: var(--muted);
  text-decoration: none;
  margin-bottom: 0.35rem;
}

.site-footer a:hover {
  color: #e5e7eb;
}

.footer-bottom {
  margin-top: 1.5rem;
  text-align: center;
  font-size: 0.8rem;
  color: var(--muted);
}

/* Auth pages */
.auth-main {
  min-height: calc(100vh - 64px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2.5rem 1.5rem;
}

.auth-card {
  width: 100%;
  max-width: 520px;
  padding: 2rem 1.8rem;
  border-radius: var(--radius-xl);
  border: 1px solid #111827;
  background: linear-gradient(145deg, #020617, #020617 40%, #020617);
  box-shadow: var(--shadow-soft);
}

.auth-card h1 {
  margin-top: 0;
  margin-bottom: 0.4rem;
}

.auth-subtitle {
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 1.3rem;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 0.7rem;
}

.auth-card label {
  display: block;
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: 0.7rem;
}

.auth-card textarea {
  resize: vertical;
  min-height: 80px;
}

.checkbox-row {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
}

.auth-footer-link {
  margin-top: 1rem;
  font-size: 0.85rem;
  color: var(--muted);
}

.auth-footer-link a {
  color: #60a5fa;
  text-decoration: none;
}

/* Dashboard */
.dashboard-header {
  border-bottom: 1px solid #111827;
  background: #020617;
}

.dash-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}

.dashboard-main {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 1.5rem;
  padding-top: 1.8rem;
  padding-bottom: 2.5rem;
}

.dashboard-sidebar {
  border-radius: var(--radius-lg);
  border: 1px solid #111827;
  background: #020617;
  padding: 0.6rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.sidebar-item {
  border-radius: 999px;
  border: none;
  padding: 0.55rem 0.9rem;
  background: transparent;
  color: var(--muted);
  text-align: left;
  cursor: pointer;
  font-size: 0.9rem;
}

.sidebar-item.active {
  background: var(--accent-soft);
  color: #e5e7eb;
}

.dashboard-content h1 {
  margin-top: 0;
  margin-bottom: 0.3rem;
}

.dash-subtitle {
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 1.2rem;
}

.job-card {
  border-left: 3px solid #2563eb;
}

.badge {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.15);
  font-size: 0.75rem;
  margin-top: 0.5rem;
}

.payout {
  margin-top: 0.6rem;
  font-weight: 600;
}

/* Buttons small/outline for header */
.btn-outline {
  font-size: 0.85rem;
}

/* Responsive */
@media (max-width: 900px) {
  .hero-grid,
  .section-grid,
  .dashboard-main {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-panel {
    justify-content: center;
  }

  .dashboard-main {
    grid-template-columns: minmax(0, 1fr);
  }

  .dashboard-sidebar {
    flex-direction: row;
    overflow-x: auto;
  }

  .dashboard-sidebar::-webkit-scrollbar {
    display: none;
  }

  .footer-grid {
    grid-template-columns: minmax(0, 1.7fr) repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .nav-desktop {
    display: none;
  }

  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .hero {
    padding-top: 2.5rem;
  }

  .footer-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .auth-card {
    padding: 1.5rem 1.3rem;
  }
}
