:root {
  --bg-color: #fafafa;
  --text-main: #111111;
  --text-muted: #737373;
  --border-color: #e5e5e5;
  --border-focus: #111111;
  --card-bg: #ffffff;
  --font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

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

body {
  font-family: var(--font-family);
  background-color: var(--bg-color);
  color: var(--text-main);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.top-synergy {
  padding: 0.75rem 1.5rem;
  text-align: right;
  font-size: 0.8125rem;
}

.synergy-link {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.15s ease;
}

.synergy-link:hover {
  color: var(--text-main);
}

.container {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 2rem;
  max-width: 680px;
  margin: 0 auto;
  width: 100%;
}

.header {
  text-align: center;
  margin-bottom: 3rem;
}

.brand {
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  margin-bottom: 0.75rem;
  color: var(--text-main);
}

.tagline {
  font-size: 1.125rem;
  color: var(--text-muted);
  font-weight: 400;
}

.roles-section {
  width: 100%;
}

.section-label {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
  text-align: left;
}

.roles-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

@media (max-width: 480px) {
  .roles-grid {
    grid-template-columns: 1fr;
  }
}

.role-card {
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 1.25rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  text-align: left;
  transition: border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.role-card:hover {
  border-color: var(--border-focus);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
}

.role-title {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-main);
}

.role-arrow {
  font-size: 1.125rem;
  color: var(--text-muted);
  transition: transform 0.15s ease, color 0.15s ease;
}

.role-card:hover .role-arrow {
  color: var(--text-main);
  transform: translateX(2px);
}

.footer {
  margin-top: 4rem;
  text-align: center;
}

.powered-by {
  font-size: 0.8125rem;
  color: var(--text-muted);
}

/* Modal */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.35);
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 1.5rem;
  z-index: 100;
}

.modal.hidden {
  display: none;
}

.modal-content {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  max-width: 440px;
  width: 100%;
  padding: 1.75rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.modal-header h2 {
  font-size: 1.125rem;
  font-weight: 600;
}

.close-btn {
  background: none;
  border: none;
  font-size: 1.5rem;
  line-height: 1;
  color: var(--text-muted);
  cursor: pointer;
}

.close-btn:hover {
  color: var(--text-main);
}

.modal-desc {
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.modal-action {
  display: flex;
  justify-content: flex-end;
}

.action-btn {
  background-color: var(--text-main);
  color: #ffffff;
  border: none;
  border-radius: 6px;
  padding: 0.625rem 1.25rem;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: opacity 0.15s ease;
}

.action-btn:hover {
  opacity: 0.85;
}

.deploy-feedback {
  margin-top: 1rem;
  font-size: 0.8125rem;
  color: var(--text-muted);
  text-align: center;
}

.deploy-feedback.hidden {
  display: none;
}
