:root {
  --bg: #0f1621;
  --card: #ffffff;
  --text: #0f172a;
  --muted: #6b7280;
  --accent: #1a73e8;
  --border: #e5e7eb;
  --shadow: 0 12px 40px rgba(15, 23, 42, 0.18);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}

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

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

.hero {
  padding: 56px 0 36px;
  color: #f8fafc;
  background: radial-gradient(circle at 18% 10%, rgba(26, 115, 232, 0.18), transparent 32%),
    linear-gradient(135deg, #0b1221 0%, #0f192a 60%, #0b1221 100%);
}

.hero h1 {
  font-size: clamp(30px, 4vw, 42px);
  margin: 12px 0 10px;
  line-height: 1.1;
}

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

.lead {
  margin: 0;
  color: #d7e3f4;
  max-width: 720px;
}

.stack {
  display: grid;
  gap: 16px;
  margin: 30px auto 40px;
}

.card {
  background: var(--card);
  border-radius: 18px;
  padding: 20px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

.card__header h2 {
  margin: 6px 0 0;
  font-size: 22px;
}

.control label {
  display: block;
  font-weight: 600;
  margin-bottom: 8px;
}

.dropzone {
  border: 2px dashed var(--border);
  border-radius: 14px;
  padding: 24px;
  background: #f8fafc;
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.dropzone.is-dragging {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(26, 115, 232, 0.12);
}

.dropzone__title {
  margin: 0 0 6px;
  font-weight: 700;
}

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

input[type="file"] {
  display: none;
}

.actions {
  display: flex;
  gap: 10px;
  margin: 14px 0;
  flex-wrap: wrap;
}

.button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid var(--accent);
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.button:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(26, 115, 232, 0.28);
}

.button--ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}

.status {
  padding: 12px 14px;
  border-radius: 12px;
  background: #f8fafc;
  border: 1px solid var(--border);
}

.status[data-type="success"] {
  border-color: #34c759;
}

.status[data-type="error"] {
  border-color: #ef4444;
}

.rules {
  margin: 10px 0 0;
  padding-left: 18px;
  color: var(--muted);
}

.preview {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px;
  background: #f8fafc;
}

.preview__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 12px;
}

table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: inset 0 0 0 1px var(--border);
}

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

th {
  background: #eef2f7;
  font-weight: 700;
}

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

.footer {
  color: #e2e8f0;
  background: #0b1221;
  padding: 20px 0 28px;
}

.footer__grid {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
}

.footer__links {
  display: flex;
  gap: 14px;
  align-items: center;
}

.footer__note {
  margin: 10px 0 0;
  text-align: center;
  color: #94a3b8;
  font-size: 13px;
}

@media (max-width: 640px) {
  .actions {
    flex-direction: column;
  }
}
