@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --bg-primary: #0A0A0A;
  --bg-secondary: #111111;
  --bg-card: #141414;
  --bg-elevated: #181818;
  --border: #1F1F1F;
  --border-hover: #2A2A2A;
  --purple: #A855F7;
  --purple-light: #C084FC;
  --purple-dim: #7C3AED;
  --purple-glow: rgba(168, 85, 247, 0.15);
  --text-primary: #F0F0F0;
  --text-secondary: #9CA3AF;
  --text-dim: #6B7280;
  --green: #22C55E;
  --red: #EF4444;
  --yellow: #EAB308;
}

body {
  background: var(--bg-primary);
  color: var(--text-primary);
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  min-height: 100vh;
  overflow-x: hidden;
}

.landing-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 40px 20px;
  position: relative;
}

.stars-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

.landing-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 600px;
  width: 100%;
}

.logo-container {
  margin-bottom: 32px;
}

.logo-container img {
  width: 120px;
  height: 120px;
  border-radius: 24px;
  border: 2px solid var(--border);
  box-shadow: 0 0 40px var(--purple-glow);
}

.brand-title {
  font-size: 3em;
  font-weight: 800;
  color: var(--purple);
  letter-spacing: -1px;
  margin-bottom: 4px;
}

.brand-subtitle {
  font-size: 1.1em;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 48px;
}

.action-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 40px;
  margin-bottom: 24px;
}

.action-card h2 {
  font-size: 1.3em;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 12px;
}

.action-card p {
  color: var(--text-secondary);
  font-size: 0.95em;
  margin-bottom: 24px;
  line-height: 1.6;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--purple);
  color: white;
  border: none;
  border-radius: 12px;
  padding: 16px 40px;
  font-size: 1.05em;
  font-weight: 700;
  font-family: 'Inter', sans-serif;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
}

.btn-primary:hover {
  background: var(--purple-light);
  transform: translateY(-1px);
  box-shadow: 0 8px 30px var(--purple-glow);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-primary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.divider {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 32px 0;
  color: var(--text-dim);
  font-size: 0.85em;
}

.divider::before,
.divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

.lookup-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px;
}

.lookup-card h3 {
  font-size: 1.1em;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 16px;
}

.lookup-form {
  display: flex;
  gap: 12px;
}

.lookup-form input {
  flex: 1;
  background: var(--bg-primary);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px 18px;
  font-size: 1em;
  font-family: 'Inter', monospace;
  color: var(--text-primary);
  outline: none;
  transition: border-color 0.2s;
}

.lookup-form input::placeholder {
  color: var(--text-dim);
}

.lookup-form input:focus {
  border-color: var(--purple);
  box-shadow: 0 0 0 3px var(--purple-glow);
}

.btn-secondary {
  background: var(--bg-elevated);
  color: var(--purple);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px 24px;
  font-size: 0.95em;
  font-weight: 600;
  font-family: 'Inter', sans-serif;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}

.btn-secondary:hover {
  border-color: var(--purple);
  background: var(--purple-glow);
}

.run-id-display {
  margin-top: 20px;
  padding: 16px;
  background: var(--bg-primary);
  border: 1px solid var(--border);
  border-radius: 10px;
  display: none;
}

.run-id-display .label {
  color: var(--text-dim);
  font-size: 0.85em;
  margin-bottom: 6px;
}

.run-id-display .value {
  color: var(--purple);
  font-size: 1.2em;
  font-weight: 700;
  font-family: 'Inter', monospace;
}

.run-id-display .instructions {
  color: var(--text-secondary);
  font-size: 0.85em;
  margin-top: 10px;
  line-height: 1.5;
}

.footer {
  margin-top: 48px;
  color: var(--text-dim);
  font-size: 0.85em;
}

.error-message {
  color: var(--red);
  font-size: 0.9em;
  margin-top: 12px;
  display: none;
}

.spinner {
  display: inline-block;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.admin-icon {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  color: var(--text-dim);
  text-decoration: none;
  transition: all 0.2s;
}

.admin-icon:hover {
  border-color: var(--purple);
  color: var(--purple);
  box-shadow: 0 0 20px var(--purple-glow);
}
