:root {
  color-scheme: dark;
  --bg: #07111f;
  --bg-soft: rgba(10, 18, 32, 0.72);
  --panel: rgba(13, 22, 41, 0.82);
  --panel-border: rgba(255, 255, 255, 0.09);
  --text: #eef2ff;
  --muted: #9aa7bd;
  --accent: #ff8a3d;
  --accent-2: #33d6a6;
  --danger: #ff5f7a;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
  --radius: 22px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background:
    radial-gradient(circle at top left, rgba(255, 138, 61, 0.15), transparent 28%),
    radial-gradient(circle at 80% 20%, rgba(51, 214, 166, 0.12), transparent 30%),
    linear-gradient(180deg, #050b15 0%, #07111f 100%);
  color: var(--text);
}

body {
  min-height: 100vh;
  overflow-x: hidden;
}

.bg-orb {
  position: fixed;
  border-radius: 999px;
  filter: blur(40px);
  opacity: 0.7;
  pointer-events: none;
}

.bg-orb-a {
  width: 320px;
  height: 320px;
  background: rgba(255, 138, 61, 0.18);
  top: -120px;
  right: -100px;
}

.bg-orb-b {
  width: 260px;
  height: 260px;
  background: rgba(51, 214, 166, 0.12);
  left: -80px;
  bottom: 4%;
}

.shell {
  width: min(1400px, calc(100vw - 32px));
  margin: 0 auto;
  padding: 32px 0 48px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
  gap: 20px;
  align-items: start;
  margin-bottom: 22px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 12px;
}

h1 {
  margin: 0;
  font-size: clamp(2.3rem, 4vw, 4.7rem);
  line-height: 0.95;
}

.subcopy {
  max-width: 60ch;
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.6;
}

.stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.stats article,
.panel,
.column {
  background: var(--bg-soft);
  border: 1px solid var(--panel-border);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.stats article {
  border-radius: var(--radius);
  padding: 18px 20px;
}

.stats span {
  display: block;
  font-size: 2rem;
  font-weight: 700;
}

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

.panel {
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 18px;
}

.lead-form {
  display: grid;
  grid-template-columns: 1.1fr 1.1fr 0.9fr 0.9fr 0.9fr auto;
  gap: 10px;
}

.lead-form input,
.lead-form select,
.lead-form button {
  min-height: 52px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 0 14px;
  font: inherit;
}

.lead-form input,
.lead-form select {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
}

.lead-form select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  padding-right: 44px;
  background-image: linear-gradient(45deg, transparent 50%, #eef2ff 50%),
    linear-gradient(135deg, #eef2ff 50%, transparent 50%);
  background-position: calc(100% - 20px) 22px, calc(100% - 14px) 22px;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
}

.lead-form select option {
  background: #0d1626;
  color: #eef2ff;
}

.lead-form select option[value=""] {
  color: var(--muted);
}

.lead-form select:focus {
  outline: none;
  border-color: rgba(255, 138, 61, 0.65);
  box-shadow: 0 0 0 3px rgba(255, 138, 61, 0.16);
}

.lead-form button {
  background: linear-gradient(135deg, var(--accent), #ffb56b);
  color: #180f07;
  font-weight: 700;
  cursor: pointer;
}

.client-filters {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 18px;
}

.client-filter {
  min-height: 54px;
  border: 1px solid var(--panel-border);
  border-radius: 16px;
  background: rgba(13, 22, 41, 0.82);
  color: var(--muted);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: border-color 160ms ease, background 160ms ease, color 160ms ease;
}

.client-filter span {
  display: inline-flex;
  min-width: 24px;
  min-height: 24px;
  margin-left: 6px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  font-size: 12px;
}

.client-filter:hover,
.client-filter.active {
  border-color: rgba(255, 138, 61, 0.7);
  background: linear-gradient(135deg, rgba(255, 138, 61, 0.2), rgba(255, 181, 107, 0.08));
  color: var(--text);
}

.kanban {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.column {
  border-radius: 24px;
  padding: 16px;
  min-height: 68vh;
}

.column-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.column h2 {
  margin: 0;
  font-size: 1rem;
}

.pill,
.tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-size: 12px;
}

.pill {
  min-width: 34px;
  padding: 6px 10px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
}

.dropzone {
  display: grid;
  gap: 12px;
  min-height: 50vh;
}

.dropzone.dragover {
  outline: 2px dashed rgba(255, 138, 61, 0.65);
  outline-offset: 8px;
  border-radius: 18px;
}

.card {
  border-radius: 18px;
  padding: 14px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.03));
  border: 1px solid rgba(255, 255, 255, 0.1);
  cursor: grab;
}

.card:active {
  cursor: grabbing;
}

.card-top {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  color: var(--muted);
  font-size: 12px;
}

.tag {
  padding: 5px 10px;
  background: rgba(255, 138, 61, 0.14);
  color: #ffbd87;
}

.card h3 {
  margin: 10px 0 8px;
  font-size: 1.05rem;
}

.meta,
.contact {
  margin: 5px 0 0;
  color: var(--muted);
  line-height: 1.45;
}

.secondary {
  color: #b8c2d4;
}

.contact {
  color: #d9e4f5;
}

.empty {
  display: grid;
  place-items: center;
  color: var(--muted);
  min-height: 140px;
  border: 1px dashed rgba(255, 255, 255, 0.08);
  border-radius: 18px;
}

@media (max-width: 1080px) {
  .hero,
  .lead-form,
  .kanban {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 720px) {
  .shell {
    width: min(100vw - 20px, 1400px);
    padding-top: 16px;
  }

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

  .client-filters {
    grid-template-columns: 1fr;
  }

  .column {
    min-height: auto;
  }
}
