html {
  font-size: 120%;
}


:root {
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --bg: #0f172a;
  --card-bg: #ffffff;
  --border: #e5e7eb;
  --text-main: #0f172a;
  --text-muted: #6b7280;
  --success: #16a34a;
  --danger: #ef4444;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: radial-gradient(circle at top left, #1d4ed8 0, #020617 55%);
  color: var(--text-main);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

header {
  padding: 20px 24px;
  max-width: 1100px;
  margin: 0 auto;
  color: #e5e7eb;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-badge {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background: linear-gradient(135deg, #22c55e, #22d3ee);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 18px;
  color: #0f172a;
  box-shadow: 0 0 20px rgba(34, 197, 94, 0.6);
}

.logo-text {
  display: flex;
  flex-direction: column;
}

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

.logo-text span:last-child {
  font-size: 12px;
  color: #9ca3af;
}

.tagline-chip {
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.5);
  padding: 6px 12px;
  font-size: 12px;
  color: #cbd5f5;
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(15, 23, 42, 0.6);
}

.spark {
  font-size: 10px;
}

main {
  flex: 1;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 16px;
}

.shell {
  width: 100%;
  max-width: 1100px;
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
  gap: 24px;
  align-items: stretch;
}

@media (max-width: 900px) {
  .shell {
    grid-template-columns: minmax(0, 1fr);
  }
  header {
    flex-direction: column;
    align-items: flex-start;
  }
}

.card {
  background: var(--card-bg);
  border-radius: 18px;
  padding: 24px 22px 22px;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.35);
  border: 1px solid rgba(148, 163, 184, 0.4);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top left, rgba(37, 99, 235, 0.06), transparent 55%);
  pointer-events: none;
}

.card h1 {
  margin: 0 0 6px;
  font-size: 1.7rem;
  letter-spacing: -0.02em;
}

.subtitle {
  margin: 0 0 16px;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
  font-size: 0.78rem;
}

.badge {
  padding: 4px 10px;
  border-radius: 999px;
  background: #eff6ff;
  color: #1d4ed8;
  font-weight: 500;
  border: 1px solid #bfdbfe;
}

.badge.badge-green {
  background: #ecfdf3;
  border-color: #bbf7d0;
  color: #15803d;
}

.form-group {
  margin-bottom: 14px;
}

label {
  display: block;
  font-size: 0.8rem;
  font-weight: 500;
  margin-bottom: 4px;
  color: #4b5563;
}

input[type="text"] {
  width: 100%;
  padding: 11px 12px;
  font-size: 0.95rem;
  border-radius: 10px;
  border: 1px solid #d1d5db;
  outline: none;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.06s ease;
  background: #f9fafb;
}

input[type="text"]:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 1px rgba(37, 99, 235, 0.5), 0 10px 25px rgba(37, 99, 235, 0.22);
  background: #ffffff;
  transform: translateY(-1px);
}

.primary-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 999px;
  border: none;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #f9fafb;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  box-shadow: 0 14px 30px rgba(37, 99, 235, 0.5);
  transition: transform 0.12s ease, box-shadow 0.12s ease, filter 0.12s ease;
  text-decoration: none;
}

.primary-btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.05);
  box-shadow: 0 18px 40px rgba(37, 99, 235, 0.7);
}

.primary-btn:active {
  transform: translateY(0);
  box-shadow: 0 10px 20px rgba(37, 99, 235, 0.5);
}

.primary-btn[disabled] {
  opacity: 0.65;
  cursor: not-allowed;
  box-shadow: none;
  filter: none;
}

.btn-icon {
  font-size: 1rem;
}

.helper-text {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 4px;
}

.status-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 16px;
}

.status-label {
  font-size: 0.8rem;
  color: #4b5563;
}

.status-label span {
  font-weight: 600;
  color: var(--primary-dark);
}

.progress-wrapper {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 8px;
}

.progress {
  flex: 1;
  height: 7px;
  background: #e5e7eb;
  border-radius: 999px;
  overflow: hidden;
}

.progress-bar {
  height: 100%;
  width: 0%;
  border-radius: inherit;
  background: linear-gradient(90deg, #22c55e, #22d3ee);
  box-shadow: 0 0 10px rgba(34, 197, 94, 0.7);
  transition: width 0.2s ease-out;
}

.progress-percent {
  font-size: 0.78rem;
  color: #4b5563;
  width: 38px;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.alert {
  margin-top: 10px;
  font-size: 0.8rem;
  padding: 7px 10px;
  border-radius: 8px;
  display: none;
}

.alert.show {
  display: block;
}

.alert-error {
  background: #fef2f2;
  color: #b91c1c;
  border: 1px solid #fecaca;
}

.alert-success {
  background: #ecfdf3;
  color: #166534;
  border: 1px solid #bbf7d0;
}

.live-container {
  margin-top: 18px;
  padding: 10px;
  border-radius: 12px;
  background: #f9fafb;
  border: 1px dashed #d1d5db;
  max-height: 260px;
  overflow-y: auto;
  font-size: 0.8rem;
}

.live-container h3 {
  margin: 0 0 6px;
  font-size: 0.9rem;
  color: #111827;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.live-counter {
  font-size: 0.78rem;
  color: #4b5563;
}

.live-item {
  margin: 2px 0;
  display: flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
}

.live-item span {
  font-size: 0.75rem;
  color: #16a34a;
}

.live-item code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 0.75rem;
  color: #111827;
  background: #e5e7eb;
  padding: 1px 4px;
  border-radius: 4px;
}

/* Right card (info) */
.side-card {
  background: rgba(15, 23, 42, 0.9);
  border-radius: 18px;
  padding: 20px 18px;
  color: #e5e7eb;
  border: 1px solid rgba(148, 163, 184, 0.5);
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.7);
  position: relative;
  overflow: hidden;
}

.side-card::before {
  content: "";
  position: absolute;
  inset: -40%;
  background: radial-gradient(circle at top right, rgba(56, 189, 248, 0.4), transparent 55%);
  opacity: 0.8;
  pointer-events: none;
}

.side-header {
  position: relative;
  z-index: 1;
  margin-bottom: 10px;
}

.side-header h2 {
  margin: 0 0 4px;
  font-size: 1.1rem;
  letter-spacing: -0.01em;
}

.side-header p {
  margin: 0;
  font-size: 0.85rem;
  color: #cbd5f5;
}

.pill-list {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 12px 0 14px;
  font-size: 0.75rem;
}

.pill {
  padding: 5px 9px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(148, 163, 184, 0.85);
  backdrop-filter: blur(10px);
}

.side-list {
  position: relative;
  z-index: 1;
  font-size: 0.85rem;
  list-style: none;
  padding-left: 0;
  margin: 0 0 10px;
}

.side-list li {
  display: flex;
  gap: 6px;
  margin-bottom: 6px;
  align-items: flex-start;
}

.side-list li::before {
  content: "•";
  color: #38bdf8;
  margin-top: 1px;
}

.side-footer {
  position: relative;
  z-index: 1;
  margin-top: 8px;
  font-size: 0.78rem;
  color: #9ca3af;
}

footer {
  text-align: center;
  padding: 16px 12px 22px;
  font-size: 0.8rem;
  color: #9ca3af;
}

footer span {
  color: #e5e7eb;
}

/* Big homepage description section */
.description-section {
  grid-column: 1 / -1; /* span full width under both columns */
  margin-top: 8px;
  padding: 22px 22px 24px;
  border-radius: 18px;
  background: rgba(15, 23, 42, 0.96);
  border: 1px solid rgba(148, 163, 184, 0.7);
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.9);
  color: #e5e7eb;
  position: relative;
  overflow: hidden;
  color: white;
}

.description-section::before {
  content: "";
  position: absolute;
  inset: -40%;
  background:
    radial-gradient(circle at top left, rgba(37, 99, 235, 0.3), transparent 60%),
    radial-gradient(circle at bottom right, rgba(34, 197, 94, 0.25), transparent 60%);
  opacity: 0.9;
  pointer-events: none;
}

.description-section > * {
  position: relative;
  z-index: 1;
}

.description-section h1 {
  margin: 0 0 10px;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
}

.description-section h2 {
  margin: 18px 0 6px;
  font-size: 1.08rem;
  letter-spacing: -0.01em;
}

.description-section h3 {
  margin: 14px 0 6px;
  font-size: 0.98rem;
}

.description-section p {
  margin: 0 0 8px;
  font-size: 0.9rem;
  color: #d1d5db;
}

.description-section ul,
.description-section ol {
  margin: 6px 0 10px 20px;
  padding-left: 16px;
  font-size: 0.88rem;
  color: #cbd5f5;
}

.description-section li {
  margin-bottom: 4px;
}

.description-section strong {
  color: #f9fafb;
}

.description-cta {
  margin-top: 10px;
}

/* Responsive tweaks for description section */
@media (max-width: 900px) {
  .description-section {
    margin-top: 16px;
  }
}
