:root {
  --ink: #101417;
  --night: #071012;
  --panel: #111c1f;
  --paper: #f4efe5;
  --paper-2: #fff8eb;
  --line: rgba(16, 20, 23, 0.14);
  --muted: #697172;
  --acid: #d8ff66;
  --ember: #ff6a3d;
  --mint: #40d6a4;
  --sky: #8bd9ff;
  --white: #ffffff;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --shadow: 0 22px 60px rgba(7, 16, 18, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

a {
  color: inherit;
  text-decoration: none;
}

.app-header {
  position: sticky;
  z-index: 10;
  top: 0;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  padding: 18px max(22px, calc((100vw - 1180px) / 2));
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(7, 16, 18, 0.92);
  color: var(--white);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 900;
}

.brand span {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 50%;
  background: var(--acid);
  color: var(--ink);
  font-family: var(--mono);
}

.app-header nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  color: rgba(255, 255, 255, 0.72);
  font-weight: 800;
}

.app-header a:hover {
  color: var(--acid);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 420px);
  gap: clamp(30px, 7vw, 90px);
  align-items: center;
  padding: 92px max(22px, calc((100vw - 1180px) / 2)) 70px;
  background:
    linear-gradient(100deg, rgba(7, 16, 18, 0.98), rgba(7, 16, 18, 0.86)),
    linear-gradient(rgba(216, 255, 102, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(216, 255, 102, 0.08) 1px, transparent 1px);
  background-size: auto, 54px 54px, 54px 54px;
  color: var(--white);
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--ember);
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: var(--acid);
}

h1,
h2,
h3,
p {
  overflow-wrap: break-word;
}

h1,
h2,
h3 {
  margin: 0;
  letter-spacing: 0;
  hyphens: none;
  overflow-wrap: normal;
  text-wrap: balance;
  word-break: normal;
}

h1 {
  max-width: 760px;
  font-size: clamp(3rem, 6.1vw, 5.9rem);
  font-weight: 950;
  line-height: 0.9;
}

h2 {
  font-size: clamp(2rem, 4vw, 4rem);
  font-weight: 930;
  line-height: 0.98;
}

h3 {
  font-size: 1.1rem;
}

.hero p:not(.eyebrow),
.form-section > div p {
  max-width: 720px;
  color: rgba(255, 255, 255, 0.74);
  font-size: clamp(1.05rem, 1.8vw, 1.22rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 0 20px;
  cursor: pointer;
  font: inherit;
  font-weight: 900;
}

.primary {
  background: var(--ember);
  color: var(--white);
  box-shadow: 0 18px 34px rgba(255, 106, 61, 0.22);
}

.ghost {
  border-color: rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.07);
  color: var(--white);
}

.demo-panel {
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.07);
  box-shadow: var(--shadow);
}

.demo-panel span {
  color: var(--acid);
  font-family: var(--mono);
  font-weight: 900;
}

.demo-panel strong {
  display: block;
  margin: 16px 0;
  font-size: clamp(1.45rem, 2.5vw, 2.2rem);
  line-height: 1.1;
  text-wrap: balance;
}

.demo-panel p {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
}

.metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: var(--ink);
}

.metrics article {
  display: grid;
  gap: 4px;
  padding: 26px max(18px, 3vw);
  background: var(--paper-2);
}

.metrics span {
  color: var(--ember);
  font-size: clamp(2rem, 4vw, 3.6rem);
  font-weight: 950;
  line-height: 1;
}

.metrics strong {
  color: #333c3e;
}

.workspace,
.form-section {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 86px 0;
}

.toolbar {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: end;
  margin-bottom: 34px;
}

.search {
  display: grid;
  min-width: min(100%, 340px);
  gap: 8px;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 850;
}

input,
select,
textarea {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.86);
  color: var(--ink);
  font: inherit;
  padding: 12px;
  outline: none;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--ember);
  box-shadow: 0 0 0 4px rgba(255, 106, 61, 0.12);
}

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

.column {
  min-height: 420px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 248, 235, 0.76);
  box-shadow: 0 12px 34px rgba(16, 20, 23, 0.06);
}

.column header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 16px;
  border-bottom: 1px solid var(--line);
}

.column header span {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.82rem;
  font-weight: 900;
}

.cards {
  display: grid;
  gap: 12px;
  padding: 14px;
}

.card {
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 8px 24px rgba(16, 20, 23, 0.06);
}

.card-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.card h3 {
  margin: 2px 0 0;
}

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

.pill {
  width: fit-content;
  height: fit-content;
  padding: 6px 8px;
  border-radius: 999px;
  background: rgba(64, 214, 164, 0.16);
  color: #0d5a45;
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 900;
}

.pill.urgent {
  background: rgba(255, 106, 61, 0.14);
  color: #9a3217;
}

.pill.low {
  background: rgba(139, 217, 255, 0.2);
  color: #155a77;
}

.card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.card-actions button {
  min-height: 36px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper-2);
  cursor: pointer;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 850;
  padding: 0 11px;
}

.form-section {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(320px, 1fr);
  gap: clamp(30px, 6vw, 80px);
  align-items: start;
  border-top: 1px solid var(--line);
}

.form-section > div p {
  color: var(--muted);
}

.request-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  padding: clamp(22px, 3vw, 32px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper-2);
  box-shadow: var(--shadow);
}

label {
  display: grid;
  gap: 7px;
  color: #394345;
  font-size: 0.9rem;
  font-weight: 850;
}

.wide {
  grid-column: 1 / -1;
}

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

  .board {
    grid-template-columns: 1fr;
  }

  .toolbar {
    align-items: stretch;
    flex-direction: column;
  }
}

@media (max-width: 680px) {
  .app-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .hero {
    padding: 64px 18px 48px;
  }

  h1 {
    font-size: clamp(2.7rem, 14vw, 4.1rem);
  }

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

  .workspace,
  .form-section {
    width: min(100% - 28px, 1180px);
    padding: 62px 0;
  }

  .request-form {
    grid-template-columns: 1fr;
  }

  .hero-actions .button {
    width: 100%;
  }
}
