:root {
  --bg: #0c111d;
  --card: #101726;
  --muted: #93a1bb;
  --text: #eaf0ff;
  --accent: #66e0c2;
  --border: #1c2436;
  --shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
  --radius: 14px;
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: radial-gradient(circle at 20% 20%, rgba(102, 224, 194, 0.08), transparent 28%),
    radial-gradient(circle at 80% 0%, rgba(102, 224, 194, 0.06), transparent 22%),
    var(--bg);
  color: var(--text);
}

.container {
  width: min(1100px, 92vw);
  margin: 0 auto;
}

.hero {
  padding: 64px 0 48px;
  text-align: left;
}

.hero h1 {
  font-size: clamp(2rem, 3vw, 2.6rem);
  margin: 12px 0;
}

.lede {
  color: var(--muted);
  max-width: 620px;
  line-height: 1.6;
  margin-bottom: 24px;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 16px;
  border-radius: 10px;
  border: 1px solid var(--border);
  color: var(--text);
  background: linear-gradient(145deg, rgba(102, 224, 194, 0.14), rgba(102, 224, 194, 0.06));
  text-decoration: none;
  cursor: pointer;
  font-weight: 600;
  transition: transform 0.1s ease, box-shadow 0.1s ease, border-color 0.2s ease;
}

.button:hover {
  transform: translateY(-1px);
  border-color: rgba(102, 224, 194, 0.4);
  box-shadow: var(--shadow);
}

.button.primary {
  background: linear-gradient(135deg, #66e0c2, #5ad1f8);
  color: #0b1b2d;
  border: none;
}

.button.ghost {
  background: transparent;
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 28px;
  box-shadow: var(--shadow);
}

.card-head {
  display: flex;
  align-items: center;
  gap: 12px;
  justify-content: space-between;
  flex-wrap: wrap;
}

.eyebrow {
  color: #8ae5ca;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 12px;
  margin: 0;
}

.muted {
  color: var(--muted);
  margin: 4px 0 0;
}

.badge {
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(102, 224, 194, 0.12);
  color: #9af4d9;
  border: 1px solid rgba(102, 224, 194, 0.3);
  font-weight: 600;
}

.dropzone {
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  padding: 28px;
  text-align: center;
  margin: 20px 0;
  background: rgba(255, 255, 255, 0.02);
}

.dropzone.dragging {
  border-color: rgba(102, 224, 194, 0.6);
  background: rgba(102, 224, 194, 0.04);
}

.results {
  margin-top: 16px;
}

.result-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.spacer { flex: 1; }

.pill-list {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.pill {
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(102, 224, 194, 0.12);
  color: var(--text);
  border: 1px solid rgba(102, 224, 194, 0.25);
  font-size: 12px;
}

.table-wrapper {
  overflow: auto;
  border: 1px solid var(--border);
  border-radius: 10px;
  margin-top: 16px;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 600px;
}

th, td {
  text-align: left;
  padding: 12px;
  border-bottom: 1px solid var(--border);
}

th {
  color: var(--muted);
  font-weight: 600;
}

tr:last-child td {
  border-bottom: none;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

input[list], input[type="text"], input[type="search"] {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 12px;
  color: var(--text);
}

input[list]:focus, input[type="text"]:focus, input[type="search"]:focus {
  outline: 1px solid #66e0c2;
}

.footer {
  padding: 24px 0 48px;
  text-align: center;
}

@media (max-width: 640px) {
  .result-row { flex-direction: column; align-items: stretch; }
  .actions { width: 100%; }
  .button { width: 100%; justify-content: center; }
}
